* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  min-height: 100vh;
  background: url("/img/background.jpeg") center/cover no-repeat fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* LOGO */
.top-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 20px;
  width: 100%;
}

.logo-img {
  width: clamp(120px, 18vw, 200px);
  height: auto;
}

/* 公告栏 */
.notice-bar {
  margin-top: 12px;
  padding: 6px 12px;
  font-size: 20px;
  color: #ffffff;          /* 原来是 #ff0000，改成白色 */
  background: rgba(0,0,0,0.35);
  border-radius: 10px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.18);
  width: min(90%, 780px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.notice-label {
  flex: 0 0 auto;
  margin-right: 8px;
  white-space: nowrap;
  color: #ff0000;          /* 官方公告：红色 */
}

.notice-track {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.notice-content {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  color: #ffe600;          /* 后面滚动的字：白色 */
}

/* 只有超宽时才滚动 */
.notice-track.has-scroll .notice-content {
  animation: marquee 24s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* 主卡片 */
.card {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 40px 50px;
  border-radius: 20px;
  background: rgba(10,10,20,0.86);
  backdrop-filter: blur(10px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.65);
  gap: 40px;
}

/* 左侧二维码 */
.left {
  flex: 0 0 260px;
  background: rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 24px 18px 30px;
  display:flex;
  flex-direction:column;
  align-items:center;
}

.left-title {
  margin-bottom: 16px;
  font-size: 20px;      /* 原来 16px → 现在 20px */
  color:#ffd56a;
  font-weight: 600;
}

.qr-box {
  width:180px; height:180px;
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  display:flex; align-items:center; justify-content:center;
}

.qr-box img {
  width:100%; height:100%; object-fit:cover;
}

.left-desc {
  margin-top:12px; margin-bottom:20px;
  text-align:center; font-size:13px; color:#d2d2d2;
}

.service-title {
  margin-top: 14px;
  margin-bottom: 12px;
  color: #ffd56a;
  font-size: 20px;      /* 原来 15px → 现在 20px */
  font-weight: 600;
}

/* 表单 */
.right { flex:1; display:flex; flex-direction:column; }

.form-title { font-size:20px; margin-bottom:16px; }
.form-subtitle { font-size:13px; margin-bottom:22px; color:#ccc; }

.form-row { margin-bottom:14px; }
.form-row label {
  display: block;
  font-size: 18px;      /* 原 13px → 现在 18px */
  margin-bottom: 6px;
  font-weight: 600;
}

.input-wrap { position:relative; }

.input-wrap input {
  width:100%;
  padding:12px 40px 12px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.4);
  background:rgba(10,10,25,0.8);
  color:#fff;
}

.input-icon {
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  font-size:16px;
}

/* 按钮（两条一样） */
.btn-primary,
.btn-secondary {
  width:100%;
  margin-top:10px;
  padding:10px;
  border-radius:999px;
  border:none;
  cursor:pointer;
  font-size:18px;
  letter-spacing:4px;
  background:linear-gradient(90deg,#ffcc66,#ffdf99);
  color:#4b2900;
  font-weight:600;
  box-shadow:0 10px 25px rgba(0,0,0,0.6);
}

.btn-primary:active,
.btn-secondary:active {
  transform:translateY(1px);
  box-shadow:0 4px 16px rgba(0,0,0,0.7);
  filter:brightness(0.95);
}

.version {
  text-align:center; margin-top:14px; font-size:12px; opacity:0.8;
}
.browser-tip {
  text-align:center; font-size:12px; margin-top:4px; color:#d7d7d7;
}

/* 单个字段提示 */
.field-msg {
  margin-top: 4px;
  min-height: 16px;
  font-size: 15px;
}

.field-msg.error {
  color: #ff6b81;
}

.field-msg.ok {
  color: #4cd964;
}

/* 手机适配 */
@media (max-width:900px) {
  body { align-items:flex-start; }

  .card {
    flex-direction:column;
    padding:22px 16px;
    gap:24px;
  }

  .right { order:1; width:100%; }
  .left  { order:3; width:100%; }

  .qr-box {
    width:130px;
    height:130px;
  }

  .logo-img {
    width:clamp(130px,42vw,180px);
  }
}
