:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --bg: linear-gradient(135deg, #1b2440 0%, #0b1020 100%);
  --card: rgba(255, 255, 255, .88);
  --card-solid: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: rgba(255, 255, 255, .55);
  --ok: #16a34a;
  --err: #dc2626;
  --radius: 18px;
  --shadow: 0 8px 32px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  background: var(--bg);
}

/* 底层：用 bg2.jpg 铺满屏幕作为空白填充背景 */
.bg2 {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: url('../img/bg2.jpg') center / cover no-repeat;
}

/* 上层：主视觉图完整居中显示（周围留白由 bg2 填充） */
.bg-img {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url('../img/bg1.jpg') center / contain no-repeat;
}

a { color: var(--brand); text-decoration: none; }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 16px 40px;
  min-height: 100dvh;
}

/* 顶部导航 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--text);
  padding: 16px;
  text-align: center;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: none;
  border: none;
}
.topbar h1 { margin: 0; font-size: 20px; letter-spacing: .5px; color: var(--brand-dark); text-align: center; }
.topbar .nav {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.topbar .nav a {
  background: rgba(235, 77, 77, .34);
  color: #0f9d2f;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 18px;
  transition: background .15s ease;
}
.topbar .nav a:hover { background: rgba(37, 99, 235, .18); }
.topbar .nav a.active { background: rgba(235, 77, 77, .34); color: #0f9d2f; }

/* 主视觉 Hero */
.hero {
  text-align: center;
  padding: 40px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-title {
  margin: 0;
  font-family: 'ZCOOL QingKe HuangYou', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: clamp(48px, 16vw, 96px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: 4px;
  background: linear-gradient(180deg, #fff7d6 0%, #eb600e 35%, #ffc83d 65%, #f0a500 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 200, 60, .85)) drop-shadow(0 2px 6px rgba(180, 120, 0, .35));
}
.hero-sub {
  margin: 14px 0 0;
  font-size: clamp(18px, 5.5vw, 26px);
  font-weight: 700;
  letter-spacing: 6px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.hero-tag {
  margin: 8px 0 0;
  font-size: clamp(13px, 3.8vw, 16px);
  letter-spacing: 2px;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}

/* 卡片 */
.card {
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-top: 200px;
}
.card h2 { margin: 0 0 4px; font-size: 17px; }
.meta { color: var(--muted); font-size: 13px; margin: 6px 0; }
.meta span { display: inline-flex; align-items: center; gap: 4px; margin-right: 12px; }
.badge {
  display: inline-block;
  background: #eef3ff;
  color: var(--brand);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  margin-left: 8px;
}
.req { font-size: 14px; line-height: 1.6; color: #334155; white-space: pre-wrap; }

/* 按钮 */
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  padding: 11px 18px;
  border-radius: 10px;
  transition: background .15s ease, transform .05s ease;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: scale(.98); }
.btn.block { width: 100%; }
.btn.ghost { background: rgba(255, 255, 255, .85); color: var(--brand); border: 1px solid rgba(255, 255, 255, .7); }
.btn.danger { background: var(--err); }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* 表单 */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; margin-bottom: 6px; font-weight: 600; }
.field .hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 10px;
  font-size: 15px;
  background: rgba(255, 255, 255, .92);
  color: var(--text);
  font-family: inherit;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, .98);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.field textarea { resize: vertical; min-height: 90px; }

/* 弹窗 */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
  padding: 0;
}
.modal-mask.show { display: flex; }
.modal {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, .8);
  width: 100%;
  max-width: 720px;
  border-radius: 18px 18px 0 0;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  max-height: 92dvh;
  overflow-y: auto;
  animation: slideUp .22s ease;
}
@keyframes slideUp { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.modal h3 { margin: 0 0 14px; font-size: 18px; }
.modal .close {
  float: right;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}

/* 提示信息 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: #111827;
  color: #fff;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  max-width: 90vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
.toast.ok { background: var(--ok); }
.toast.err { background: var(--err); }

.empty { text-align: center; color: var(--muted); padding: 30px 0; }

.section-title { margin: 22px 4px 0; font-size: 15px; color: var(--muted); }

/* 移动端：保持背景层 fixed，滑动时背景图片固定不滚动 */

/* 横屏/短屏：背景图焦点稍微上移，避免人物被过度裁切 */
@media (max-height: 500px) and (orientation: landscape) {
  .bg-img { background-position: center top; }
}
