/* H5 报名页样式（CHG-2026-056 §4.13）：按 prototype.html 原型落地「金红蓝赛事 Landing」体系。
 * 视觉独立于小程序 ADR-0011 档位（check-design-tokens 仅扫 miniprogram）；
 * 无构建、无外部依赖；写侧 sanitizeRichText 清洗后的 detailHtml 由 .rich-html 渲染。 */

:root {
  --bg: #f4f5f2;
  --bg2: #ffffff;
  --bg3: #eceee9;
  --line: rgba(28, 33, 38, .09);
  --line2: rgba(28, 33, 38, .16);
  --txt: #1c2126;
  --txt2: #3d454b;
  --muted: #6f7a80;
  --gold: #a8874a;
  --gold-l: #c9a96a;
  --gold-deep: #8a6d38;
  --red: #d43535;
  --red-l: #e85555;
  --blue: #2568c9;
  --blue-l: #4a88e0;
  --green: #22a55b;
  --err: #d43535;
  --radius: 20px;
  --shadow-s: 0 2px 10px rgba(28, 33, 38, .05);
  --shadow-m: 0 10px 34px rgba(28, 33, 38, .08);
  --shadow-l: 0 26px 70px rgba(28, 33, 38, .13);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  background: var(--bg);
  color: var(--txt);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
  width: 100%;
  max-width: 100vw;
}
/* 弹窗打开时锁滚动（底部操作栏让位） */
body.locked { overflow: hidden; }

body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 620px at 8% -8%, rgba(212, 53, 53, .07), transparent 62%),
    radial-gradient(900px 620px at 92% 108%, rgba(37, 104, 201, .07), transparent 62%),
    radial-gradient(700px 500px at 50% 42%, rgba(201, 169, 106, .09), transparent 70%);
}
.noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .022;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

::selection { background: rgba(201, 169, 106, .35); }
img, svg { max-width: 100%; display: block; }

/* 图标雪碧图统一描边（use 内容继承 currentColor） */
.ic {
  width: 22px; height: 22px;
  stroke: currentColor; fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- 全屏状态：加载 / 错误 ---------- */
.state {
  position: relative; z-index: 2;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px; text-align: center; gap: 14px;
}
.sk {
  background: linear-gradient(100deg, #e9eae5 40%, #f3f4ef 50%, #e9eae5 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 12px;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.sk-badge { width: 190px; height: 36px; border-radius: 999px; }
.sk-title { width: min(560px, 82vw); height: 58px; margin-top: 10px; }
.sk-vs { width: min(340px, 70vw); height: 62px; border-radius: 16px; }
.sk-line { width: min(300px, 60vw); height: 16px; border-radius: 999px; }

.err-card {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-m);
  padding: 46px 34px; max-width: 420px; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.err-ico {
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; color: var(--red);
  background: rgba(212, 53, 53, .07); border: 1px solid rgba(212, 53, 53, .2);
  margin-bottom: 8px;
}
.err-card h2 { font-size: 20px; font-weight: 800; letter-spacing: .02em; }
.err-card p { color: var(--muted); font-size: 13.5px; line-height: 1.8; }
.err-card .btn { margin-top: 16px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 36px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 700; letter-spacing: .1em;
  font-family: inherit; cursor: pointer; text-decoration: none;
  transition: .3s cubic-bezier(.2, .7, .3, 1);
  white-space: nowrap; min-height: 48px;
}
.btn.sm { padding: 11px 22px; font-size: 12.5px; min-height: 42px; }
.btn.gold {
  /* 低端内核不支持渐变时退化取纯色金底 */
  background: #b8975a;
  background: linear-gradient(135deg, #d9bb7d, var(--gold-l) 40%, var(--gold) 78%, var(--gold-deep));
  color: #fff;
  box-shadow: 0 8px 26px rgba(168, 135, 74, .32);
  text-shadow: 0 1px 1px rgba(120, 90, 40, .18);
}
.btn.gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(168, 135, 74, .42); }
.btn.ghost {
  border-color: var(--line2); color: var(--txt); background: #fff;
  box-shadow: var(--shadow-s);
}
.btn.ghost:hover { border-color: rgba(168, 135, 74, .5); background: #fffdf8; transform: translateY(-2px); box-shadow: var(--shadow-m); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .55; pointer-events: none; }

.btn-spin {
  width: 15px; height: 15px; flex: none;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 44px;
  padding-top: calc(18px + env(safe-area-inset-top));
  transition: .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 12px 44px;
  padding-top: calc(12px + env(safe-area-inset-top));
  background: rgba(244, 245, 242, .86);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 22px rgba(28, 33, 38, .05);
}
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--txt); }
/* 真实 <img>（logo.png）而非 CSS 绘制：微信分享缩略图靠抓取页面首个真实渲染图片，勿改回 span/CSS */
.logo-mark { width: 30px; height: 30px; border-radius: 50%; flex: none; display: block; box-shadow: 0 3px 12px rgba(201, 169, 106, .35); }
/* 品牌组合：主标 TeamWorld + slogan 副标，上下两行 */
.logo-text { display: flex; flex-direction: column; gap: 1px; line-height: 1.15; }
.logo-text b { font-size: 13.5px; letter-spacing: .18em; font-weight: 700; white-space: nowrap; color: var(--txt); }
.logo-text small { font-size: 9px; letter-spacing: .2em; font-weight: 500; white-space: nowrap; color: var(--muted); }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 13.5px; letter-spacing: .1em;
  transition: .25s; position: relative; font-weight: 500;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1.5px;
  background: var(--gold); transition: .3s; border-radius: 2px;
}
.nav-links a:hover { color: var(--txt); }
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 12px; }

/* 登录态按钮 */
.auth-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; min-height: 42px;
  border: 1px solid var(--line2);
  background: #fff;
  color: var(--txt); font-size: 12.5px; font-weight: 600; letter-spacing: .08em;
  font-family: inherit; cursor: pointer; white-space: nowrap;
  box-shadow: var(--shadow-s);
  transition: .3s cubic-bezier(.2, .7, .3, 1);
}
.auth-btn:hover { border-color: rgba(168, 135, 74, .55); background: #fffdf8; transform: translateY(-1px); box-shadow: var(--shadow-m); }
.auth-btn:active { transform: scale(.97); }
.auth-btn .dot {
  width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: var(--gold-l); box-shadow: 0 0 8px rgba(201, 169, 106, .6);
}
.auth-btn.on .dot { background: var(--green); box-shadow: 0 0 8px rgba(34, 165, 91, .6); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 150px 24px 110px;
  text-align: center; overflow: hidden;
}
.glow { position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none; }
.glow.red { width: 54vw; height: 54vw; left: -16vw; top: 0; background: radial-gradient(circle, rgba(212, 53, 53, .2), transparent 68%); }
.glow.blue { width: 54vw; height: 54vw; right: -16vw; bottom: -6%; background: radial-gradient(circle, rgba(37, 104, 201, .19), transparent 68%); }
.glow.gold { width: 44vw; height: 44vw; left: 50%; top: 44%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(201, 169, 106, .22), transparent 70%); }

.hero-inner { position: relative; z-index: 3; max-width: 960px; width: 100%; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 20px; border: 1px solid rgba(168, 135, 74, .35); border-radius: 999px;
  font-size: 11.5px; letter-spacing: .3em; color: var(--gold-deep);
  background: rgba(255, 255, 255, .75);
  box-shadow: 0 4px 16px rgba(168, 135, 74, .1);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-weight: 600;
  max-width: 88vw;
}
.badge i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold); display: block; flex: none;
  box-shadow: 0 0 8px rgba(201, 169, 106, .9); animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.hero h1 {
  margin: 30px 0 0;
  font-size: clamp(34px, 9vw, 96px);
  line-height: 1.04; font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(180deg, #242a2f 4%, #3d454b 46%, #7c878d 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  overflow-wrap: anywhere;
}

.vs-row {
  display: flex; align-items: stretch; justify-content: center; gap: 26px;
  margin: 46px 0 0;
}
.team-chip {
  display: flex; flex-direction: column; justify-content: center; gap: 3px;
  padding: 15px 30px; border-radius: 16px; border: 1px solid;
  font-size: 15px; font-weight: 700; letter-spacing: .14em;
  min-width: 148px; max-width: 40vw; transition: .35s; position: relative;
  background: #fff;
}
/* 队卡层级：队名单行不换行（超长省略号兜底）> 人数金胶囊 > 队长弱化；vs-row stretch 保证两卡等高 */
.team-chip .tc-name {
  text-align: center; font-size: 14.5px; font-weight: 800;
  letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.team-chip .tc-captain { opacity: .45; font-weight: 500; letter-spacing: .08em; }
.team-chip .tc-count {
  align-self: center; display: inline-flex; align-items: center; margin-top: 3px;
  padding: 3px 11px; border-radius: 999px;
  background: rgba(168, 135, 74, .12); border: 1px solid rgba(168, 135, 74, .32);
  color: var(--gold-deep); font-size: 10px; letter-spacing: .08em; opacity: 1;
  /* 名单入口（CHG-2026-070）：small→button，整胶囊可点弹名单层 */
  font-family: inherit; font-weight: 700; line-height: 1.5; cursor: pointer;
  transition: .3s; -webkit-appearance: none; appearance: none;
}
.team-chip .tc-count::after { content: "▸"; margin-left: 4px; font-size: 8px; opacity: .6; }
.team-chip .tc-count:hover { background: rgba(168, 135, 74, .2); border-color: rgba(168, 135, 74, .52); }
.team-chip .tc-count:focus-visible { outline: 2px solid rgba(168, 135, 74, .6); outline-offset: 2px; }
.team-chip small { font-size: 10px; letter-spacing: .16em; opacity: .62; font-weight: 600; }
.team-chip.red {
  border-color: rgba(212, 53, 53, .28);
  color: #b32c2c;
  box-shadow: 0 8px 26px rgba(212, 53, 53, .12);
}
.team-chip.blue {
  border-color: rgba(37, 104, 201, .28);
  color: #1d55a8;
  box-shadow: 0 8px 26px rgba(37, 104, 201, .12);
}
.team-chip.pending {
  border-style: dashed;
  color: var(--muted);
  box-shadow: none;
  background: rgba(255, 255, 255, .6);
}

.vs {
  width: 58px; height: 58px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 900; font-style: italic; font-size: 15px; letter-spacing: .04em;
  color: #fff;
  background: var(--gold);
  background: linear-gradient(140deg, #d9bb7d, var(--gold-l) 44%, var(--gold) 82%, var(--gold-deep));
  box-shadow: 0 8px 26px rgba(168, 135, 74, .4);
  text-shadow: 0 1px 2px rgba(120, 90, 40, .25);
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.countdown {
  margin-top: 52px; display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; letter-spacing: .14em; color: var(--muted);
  padding: 10px 22px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--shadow-s);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-weight: 500;
}
.countdown b { color: var(--gold-deep); font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 800; }
.countdown.warn b { color: var(--red); }
.countdown.cd-state b { color: var(--muted); font-weight: 700; }

/* 已报名徽标（Hero 内绿色状态 pill） */
.hero-note {
  margin: 26px auto 0;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 22px; border-radius: 999px;
  border: 1px solid rgba(34, 165, 91, .3);
  background: rgba(34, 165, 91, .08);
  color: #1a8a4b; font-size: 13px; font-weight: 700; letter-spacing: .06em;
}
.hero-note::before { content: "✓"; font-size: 14px; }

.hero-divider {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 53, 53, .35) 22%, rgba(168, 135, 74, .6) 50%, rgba(37, 104, 201, .35) 78%, transparent);
}

/* ---------- 通道关闭横幅 ---------- */
.notice-sec { position: relative; z-index: 2; padding: 0 24px; }
.notice-card {
  max-width: 720px; margin: -34px auto 0;
  display: flex; align-items: flex-start; gap: 18px;
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-m);
  padding: 30px 30px;
}
.notice-ico {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--gold);
  background: rgba(201, 169, 106, .14);
  border: 1px solid rgba(168, 135, 74, .28);
}
.notice-ico .ic { width: 21px; height: 21px; }
.notice-card.nc-coral .notice-ico { color: var(--red); background: rgba(212, 53, 53, .08); border-color: rgba(212, 53, 53, .24); }
.notice-card.nc-grey .notice-ico { color: var(--muted); background: var(--bg3); border-color: var(--line2); }
.notice-body h2 { font-size: 19px; font-weight: 800; letter-spacing: .02em; margin-bottom: 6px; }
.notice-body p { color: var(--muted); font-size: 13.5px; line-height: 1.85; }

/* ---------- SECTIONS ---------- */
#st-main section, #st-main footer { position: relative; z-index: 2; }
#st-main section { padding: 108px 24px; }
#st-main .wrap { max-width: 1180px; margin: 0 auto; }
.sec-head { text-align: center; margin-bottom: 60px; }
.eyebrow {
  font-size: 11.5px; letter-spacing: .34em; color: var(--gold-deep);
  text-transform: uppercase; margin-bottom: 16px; font-weight: 700;
}
h2 {
  font-size: clamp(28px, 4.2vw, 46px); font-weight: 800; letter-spacing: -.02em;
  line-height: 1.16; color: var(--txt);
}
h2 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--gold), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sec-desc { margin-top: 16px; color: var(--muted); font-size: 14.5px; max-width: 560px; margin-left: auto; margin-right: auto; white-space: pre-line; }

/* ---------- INFO ---------- */
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.info-item {
  background: var(--bg2); padding: 34px 28px; transition: .4s;
  position: relative; border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-s);
  overflow: hidden;
}
.info-item::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold-l), var(--gold), transparent); transition: .5s;
  border-radius: 3px;
}
.info-item:hover { background: #fff; transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: rgba(168, 135, 74, .28); }
.info-item:hover::after { width: 100%; }
.info-item .ic { width: 22px; height: 22px; color: var(--gold); margin-bottom: 18px; display: block; }
/* 内层 svg 未写宽高会按 300×150 默认尺寸溢出压字，须铺满 .ic 盒 */
.info-item .ic svg { width: 100%; height: 100%; display: block; }
.info-item .k { font-size: 11.5px; letter-spacing: .24em; color: var(--muted); margin-bottom: 10px; font-weight: 600; }
.info-item .v { font-size: 17px; font-weight: 700; letter-spacing: .02em; color: var(--txt); }
.info-item small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; margin-top: 6px; letter-spacing: .04em; }
/* 场地导航引导（CHG-2026-067）：金调 pill 链接，跳腾讯地图（坐标系与后台选点同源） */
.nav-guide {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  padding: 5px 13px; border: 1px solid rgba(168, 135, 74, .45); border-radius: 999px;
  color: var(--gold-deep); font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-decoration: none; white-space: nowrap; transition: .25s;
}
.nav-guide svg { width: 13px; height: 13px; display: block; }
.nav-guide:hover { background: rgba(168, 135, 74, .1); border-color: var(--gold); }
.nav-guide:active { transform: scale(.97); }
.nowrap { white-space: nowrap; }

/* ---------- 赛事详情富文本（写侧 sanitizeRichText 白名单后的 HTML，§4.13） ---------- */
.rich-html {
  max-width: 760px; margin: 0 auto;
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-s);
  padding: 44px 40px;
  font-size: 14.5px; color: var(--txt2); line-height: 1.9;
  overflow-wrap: anywhere;
}
.rich-html h1, .rich-html h2, .rich-html h3, .rich-html h4, .rich-html h5 {
  color: var(--txt); font-weight: 800; letter-spacing: .02em;
  margin: 26px 0 12px; line-height: 1.35;
}
.rich-html h1:first-child, .rich-html h2:first-child, .rich-html h3:first-child, .rich-html p:first-child { margin-top: 0; }
.rich-html h1 { font-size: 22px; }
.rich-html h2 { font-size: 19px; }
.rich-html h3 { font-size: 17px; }
.rich-html h4, .rich-html h5 { font-size: 15px; }
.rich-html p { margin: 0 0 14px; }
.rich-html ul, .rich-html ol { margin: 0 0 14px; padding-left: 22px; }
.rich-html li { margin-bottom: 6px; }
.rich-html strong, .rich-html b { color: var(--txt); }
.rich-html blockquote {
  margin: 0 0 14px; padding: 12px 18px;
  border-left: 3px solid var(--gold-l);
  background: rgba(201, 169, 106, .08);
  border-radius: 0 12px 12px 0;
  color: var(--gold-deep);
}
.rich-html img { border-radius: 14px; margin: 6px auto 14px; box-shadow: var(--shadow-s); }
.rich-html a { color: var(--gold-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.rich-html hr { border: none; border-top: 1px solid var(--line); margin: 22px 0; }

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 44px 24px calc(44px + env(safe-area-inset-bottom));
  text-align: center; color: var(--muted); font-size: 12px; letter-spacing: .12em;
}
.foot-contact { margin-bottom: 12px; font-size: 13px; letter-spacing: .06em; }
.foot-contact b { color: var(--gold-deep); font-weight: 700; }

/* ---------- 移动端底部操作栏 ---------- */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none; align-items: center; gap: 12px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 26px rgba(28, 33, 38, .07);
}
/* 弹窗打开（body.locked）时让位隐藏 */
body.locked .bottom-bar { display: none; }

.bb-contact {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 14px 18px; border-radius: 999px;
  border: 1px solid var(--line2);
  background: #fff;
  color: var(--txt);
  font-family: inherit; font-size: 14px; font-weight: 700; letter-spacing: .04em;
  cursor: pointer; text-decoration: none;
  min-height: 50px;
  box-shadow: var(--shadow-s);
  transition: .3s cubic-bezier(.2, .7, .3, 1);
  white-space: nowrap;
}
.bb-contact:hover { border-color: rgba(168, 135, 74, .5); background: #fffdf8; }
.bb-contact:active { transform: scale(.97); }
.bb-contact svg { width: 16px; height: 16px; flex: none; stroke: var(--gold); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.bottom-bar .btn { flex: 1; padding: 15px 18px; font-size: 15px; min-height: 50px; }

/* ---------- MODAL ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-bg {
  position: absolute; inset: 0; background: rgba(28, 33, 38, .42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.modal-card {
  position: relative; z-index: 2; width: 100%; max-width: 520px;
  max-height: 90vh; max-height: 90dvh; overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border-radius: 24px; padding: 44px 40px 40px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 40px 100px rgba(28, 33, 38, .24);
  transform: translateY(22px) scale(.97);
  transition: transform .4s cubic-bezier(.2, .8, .3, 1);
}
.modal.open .modal-card { transform: none; }
.modal-card::-webkit-scrollbar, .form-scroll::-webkit-scrollbar { width: 5px; }
.modal-card::-webkit-scrollbar-thumb, .form-scroll::-webkit-scrollbar-thumb { background: rgba(168, 135, 74, .3); border-radius: 9px; }
.modal-close {
  position: absolute; right: 18px; top: 18px; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--bg);
  color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: .3s; font-family: inherit;
}
.modal-close:hover { color: var(--txt); border-color: var(--line2); transform: rotate(90deg); background: #fff; }
.modal-card h3 { font-size: 24px; font-weight: 800; letter-spacing: .02em; margin-bottom: 8px; color: var(--txt); }
/* 登录/报名弹窗均无 msub 副标题（省空间）；账号行紧随标题：掩码手机号 + 换账号出口 */
#form-box h3 { margin-bottom: 8px; }
.account-line {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--muted); letter-spacing: .04em;
  margin-bottom: 20px; font-weight: 500;
}
.account-line b { font-weight: 700; color: var(--txt); letter-spacing: .08em; }

/* ---------- 报名名单弹层（CHG-2026-070）：本队真名/对方昵称由服务端视角脱敏 ---------- */
.roster-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.roster-tab {
  flex: 1; padding: 9px 10px; border-radius: 11px; cursor: pointer;
  border: 1px solid var(--line2); background: var(--bg); color: var(--txt2);
  font-size: 12.5px; font-weight: 700; letter-spacing: .05em;
  font-family: inherit; transition: .3s;
}
.roster-tab.on {
  border-color: rgba(168, 135, 74, .55); background: #fffdf8; color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(201, 169, 106, .12);
}
.roster-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 2px; border-bottom: 1px solid var(--line);
}
.roster-row:last-of-type { border-bottom: none; }
.roster-idx {
  flex: none; width: 20px; text-align: center;
  font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.roster-name {
  flex: 1; min-width: 0; font-size: 14.5px; font-weight: 700; color: var(--txt);
  letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.roster-date { flex: none; font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.roster-chip {
  flex: none; padding: 2px 9px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  background: rgba(34, 165, 91, .1); border: 1px solid rgba(34, 165, 91, .26); color: #1a8a4b;
}
/* 观战行弱化（同小程序：参赛绿章 / 观战灰章） */
.roster-row.spec .roster-chip { background: var(--bg3); border-color: var(--line2); color: var(--muted); }
.roster-row.spec .roster-name { font-weight: 600; color: var(--txt2); }
.roster-empty { padding: 34px 0 22px; text-align: center; font-size: 13px; color: var(--muted); letter-spacing: .06em; }
.roster-msg {
  margin-top: 14px; padding: 12px 14px; border-radius: 11px;
  background: rgba(168, 135, 74, .08); border: 1px solid rgba(168, 135, 74, .24);
  color: var(--gold-deep); font-size: 12.5px; letter-spacing: .04em; line-height: 1.7;
}

/* ---------- 登录弹窗 ---------- */
.login-head { text-align: center; margin-bottom: 30px; }
.login-icon {
  width: 62px; height: 62px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle, rgba(201, 169, 106, .18), transparent 74%);
  border: 1px solid rgba(168, 135, 74, .32);
  color: var(--gold);
}
.login-icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.login-head h3 { margin-bottom: 6px; }

/* 验证码行：输入框与按钮并排 */
.code-row { display: flex; gap: 10px; align-items: stretch; width: 100%; }
.code-row input { flex: 1 1 auto; width: 100%; min-width: 0; }
.code-row .code-btn {
  flex: 0 0 auto; width: auto; margin-top: 0;
  padding: 0 18px; min-height: 52px; border-radius: 12px;
  font-size: 12.5px; letter-spacing: .06em; font-weight: 700;
}
.code-btn:disabled { opacity: .5; pointer-events: none; }

.login-tip {
  margin-top: 18px; text-align: center;
  font-size: 11.5px; color: var(--muted); letter-spacing: .06em; line-height: 1.8;
}
.login-tip b { color: var(--gold-deep); font-weight: 700; }

.hint { margin-top: 10px; font-size: 12px; color: var(--muted); letter-spacing: .04em; line-height: 1.7; }

.form-error {
  margin-bottom: 16px;
  padding: 11px 14px; border-radius: 11px;
  background: rgba(212, 53, 53, .07);
  border: 1px solid rgba(212, 53, 53, .22);
  color: var(--err); font-size: 12.5px; letter-spacing: .04em;
}
.form-error.ok {
  background: rgba(34, 165, 91, .07);
  border-color: rgba(34, 165, 91, .22);
  color: #1a8a4b;
}

/* ---------- FIELD ---------- */
.field { margin-bottom: 15px; }
.field > label {
  display: block; font-size: 11.5px; letter-spacing: .2em;
  color: var(--muted); margin-bottom: 8px; font-weight: 700;
}
.field em { color: var(--red); font-style: normal; }
.field input[type="text"], .field input[type="tel"], .field input[type="datetime-local"] {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line2); background: var(--bg);
  color: var(--txt); font-size: 16px; font-family: inherit; outline: none;
  transition: .3s;
  -webkit-appearance: none; appearance: none;
}
/* date 字段自绘「日历+时钟」图标（CHG-2026-073 单个 datetime-local）：iOS 的
   appearance:none 会抹掉原生指示图标；图标纯装饰，整框可点开选择器；原生指示器
   隐藏防桌面双图标。padding-right 带 .field 前缀提高特异性，压过 ≤768px 媒体查询对 padding 的重置 */
.field input[type="datetime-local"] {
  padding-right: 42px;
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 17px 17px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f7a80' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2.5'/%3E%3Cpath d='M8 3v4M16 3v4M3 11h10'/%3E%3Ccircle cx='16.5' cy='16.5' r='4'/%3E%3Cpath d='M16.5 14.2v2.3l1.6 1.2'/%3E%3C/svg%3E");
}
.field input[type="datetime-local"]::-webkit-calendar-picker-indicator { opacity: 0; }
/* 多选字段标签的「可多选」提示（CHG-2026-072） */
.multi-hint {
  font-style: normal; color: var(--muted); font-size: 10.5px;
  letter-spacing: .04em; margin-left: 4px; opacity: .85; font-weight: 500;
}
.field input:focus {
  border-color: rgba(168, 135, 74, .55);
  background: #fffdf8;
  box-shadow: 0 0 0 3px rgba(201, 169, 106, .14);
}
.field input::placeholder { color: #a3abaf; }
.link {
  flex: none; border: none; background: none; padding: 4px 2px;
  color: var(--gold-deep); font-size: 12.5px; font-weight: 700;
  letter-spacing: .06em; cursor: pointer; font-family: inherit;
  border-bottom: 1px dashed rgba(168, 135, 74, .5);
}
.link:active { opacity: .7; }

/* 字段级校验错误 */
.field.invalid > input { border-color: rgba(212, 53, 53, .55); }
.field.invalid .side-cards { box-shadow: 0 0 0 3px rgba(212, 53, 53, .1); border-radius: 14px; }
.field-err { margin-top: 8px; font-size: 12px; color: var(--err); letter-spacing: .04em; }

/* ---------- 选边卡（红 / 蓝） ---------- */
.side-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.side-card {
  position: relative; padding: 13px 10px; border-radius: 12px;
  border: 1px solid var(--line2); background: var(--bg);
  text-align: center; cursor: pointer;
  transition: .3s; overflow: hidden;
}
.side-card .side-name {
  display: block; font-size: 14px; font-weight: 700; letter-spacing: .04em;
  color: var(--txt); margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.side-card .side-tag {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  font-size: 11px; letter-spacing: .06em; color: var(--muted); font-weight: 600; min-height: 17px;
}
.side-card .side-tag .ic { width: 12px; height: 12px; stroke-width: 2; }
.side-card[data-side="a"].on {
  border-color: transparent;
  background: linear-gradient(135deg, var(--red-l), var(--red));
  box-shadow: 0 6px 18px rgba(212, 53, 53, .28);
}
.side-card[data-side="b"].on {
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue-l), var(--blue));
  box-shadow: 0 6px 18px rgba(37, 104, 201, .28);
}
.side-card.on .side-name, .side-card.on .side-tag { color: #fff; }
.side-card.locked { cursor: default; }
.side-card.locked:not(.on) { opacity: .45; }

/* ---------- 选项 pill（性别 / 身份 / 动态单选） ---------- */
.option-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.option { display: block; position: relative; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option span {
  display: block; padding: 11px 6px; border-radius: 12px; text-align: center;
  border: 1px solid var(--line2); background: var(--bg);
  cursor: pointer; font-size: 13px; letter-spacing: .06em; color: var(--muted);
  transition: .3s; font-weight: 600;
}
.option input:checked + span, .option.on span {
  border-color: transparent;
  background: #b8975a;
  background: linear-gradient(135deg, #d9bb7d, var(--gold));
  color: #fff; font-weight: 800;
  box-shadow: 0 6px 18px rgba(168, 135, 74, .28);
}
/* 自定义字段的单选/多选组同款紧凑标签流（不再用网格撑满宽度） */
#custom-fields .option-row { display: flex; flex-wrap: wrap; gap: 8px; }
#custom-fields .option span { padding: 8px 14px; border-radius: 999px; font-size: 12.5px; }
.check-row { display: flex; flex-wrap: wrap; gap: 8px; }
.check-item { position: relative; }
.check-item input { position: absolute; opacity: 0; pointer-events: none; }
.check-item span {
  display: inline-block; padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line2); background: var(--bg);
  font-size: 12.5px; color: var(--muted); font-weight: 600; cursor: pointer; transition: .3s;
}
/* 多选选中态（CHG-2026-072）：✓ 前缀常驻提示可多选，选中金底加深白字与单选明确区分 */
.check-item span::before { content: "✓"; margin-right: 5px; opacity: .4; font-weight: 700; }
.check-item input:checked + span, .check-item.on span {
  border-color: var(--gold);
  background: var(--gold);
  color: #fff;
}
.check-item input:checked + span::before, .check-item.on span::before { opacity: 1; }

/* ---------- 同意 / 提交 ---------- */
.consent {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 2px 0 14px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg);
  font-size: 12px; color: var(--muted); line-height: 1.8; letter-spacing: .03em;
  cursor: pointer; transition: .3s;
}
.consent input { margin-top: 4px; flex: none; width: 16px; height: 16px; accent-color: var(--gold); }
.consent b { color: var(--gold-deep); }
.consent.invalid { border-color: rgba(212, 53, 53, .5); }

.form-msg {
  margin-bottom: 14px;
  padding: 11px 14px; border-radius: 11px;
  background: rgba(212, 53, 53, .07);
  border: 1px solid rgba(212, 53, 53, .22);
  color: var(--err); font-size: 12.5px; letter-spacing: .04em;
  animation: shake .3s ease;
}
.form-msg.ok {
  background: rgba(34, 165, 91, .07);
  border-color: rgba(34, 165, 91, .22);
  color: #1a8a4b;
}
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* 桌面：卡片整体滚动 + 按钮吸底常驻。移动端见媒体查询——改「滚动主体 + 底部页脚」结构 */
.submit-btn { width: 100%; margin-top: 16px; position: sticky; bottom: 0; z-index: 5; }

/* ---------- 报名结果（弹窗内） ---------- */
.success { text-align: center; padding: 26px 0 6px; }
.success .ok {
  width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 24px;
  display: grid; place-items: center;
  background: radial-gradient(circle, rgba(201, 169, 106, .2), transparent 72%);
  border: 1px solid rgba(168, 135, 74, .4);
  color: var(--gold); font-size: 26px; font-weight: 700;
}
.success h3 { margin-bottom: 12px; }
.success p { color: var(--muted); font-size: 13.5px; line-height: 1.9; }
.succ-hint { margin-top: 14px; font-size: 12px !important; color: #a3abaf !important; }
.success .btn { margin-top: 26px; min-width: 160px; }

/* 「我的报名」详情（CHG-2026-070）：提交成功与回访共用，self 全量字段只读展示 */
.entry-detail {
  margin: 18px 0 4px; padding: 4px 16px; text-align: left;
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg);
}
.ed-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.ed-row:last-child { border-bottom: none; }
.ed-k { flex: none; color: var(--muted); letter-spacing: .06em; font-size: 12px; }
.ed-v { min-width: 0; text-align: right; font-weight: 600; color: var(--txt); overflow-wrap: anywhere; }

/* 提交前复核（CHG-2026-075）：摘要复用 .entry-detail/.ed-row；双按钮常驻抽屉底部 */
.review-sub { margin: 4px 0 0; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.review .entry-detail { margin-top: 16px; }
.review-actions { display: flex; gap: 10px; margin-top: 16px; }
.review-actions .btn { flex: 1; }
/* 「待提交」状态标签：随标题的小胶囊，琥珀色（待确认）与成功页绿色✓区分 */
.review-chip {
  display: inline-block; margin-left: 8px; padding: 2px 9px;
  border-radius: 999px; vertical-align: 2px;
  background: rgba(214, 158, 46, .14); color: #9a6d15;
  font-size: 11px; font-weight: 600; letter-spacing: .08em;
}

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2, .7, .3, 1), transform .9s cubic-bezier(.2, .7, .3, 1); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 980px) {
  .nav { padding: 14px 22px; padding-top: calc(14px + env(safe-area-inset-top)); }
  .nav.scrolled { padding: 10px 22px; padding-top: calc(10px + env(safe-area-inset-top)); }
  .nav-links { display: none; }
  .nav .nav-cta { display: none; }
}

/* 手机 */
@media (max-width: 768px) {
  :root { --radius: 18px; }

  .bottom-bar { display: flex; }
  footer { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }

  .nav { padding: 12px 18px; padding-top: calc(12px + env(safe-area-inset-top)); }
  .nav.scrolled { padding: 10px 18px; padding-top: calc(10px + env(safe-area-inset-top)); }
  .logo-text b { font-size: 12px; letter-spacing: .14em; }
  .logo-text small { font-size: 8px; letter-spacing: .16em; }
  .logo-mark { width: 26px; height: 26px; }

  .hero {
    min-height: auto;
    padding: calc(104px + env(safe-area-inset-top)) 20px 76px;
    align-items: flex-start;
  }
  .hero h1 { font-size: clamp(34px, 11.5vw, 64px); margin-top: 24px; }
  .badge { padding: 8px 16px; font-size: 10px; letter-spacing: .22em; }
  .glow.red, .glow.blue { width: 92vw; height: 92vw; filter: blur(80px); }
  .glow.gold { width: 70vw; height: 70vw; }

  .vs-row { gap: 10px; margin-top: 34px; }
  .team-chip {
    min-width: 0; flex: 1; max-width: 46vw;
    padding: 12px 8px; font-size: 13.5px; letter-spacing: .06em;
    border-radius: 13px; gap: 2px;
  }
  .team-chip small { font-size: 9px; letter-spacing: .1em; }
  .team-chip .tc-name { font-size: 13px; }
  .team-chip .tc-count { padding: 2px 9px; font-size: 9px; }
  .vs { width: 46px; height: 46px; font-size: 12.5px; }

  .countdown { margin-top: 40px; font-size: 11px; letter-spacing: .08em; padding: 9px 18px; gap: 6px; }
  .countdown b { font-size: 12.5px; }
  .hero-note { margin-top: 22px; font-size: 12px; padding: 9px 18px; }

  .notice-sec { padding: 0 18px; }
  .notice-card { padding: 24px 20px; gap: 14px; margin-top: -26px; }
  .notice-body h2 { font-size: 17px; }
  .notice-body p { font-size: 12.5px; }

  #st-main section { padding: 68px 18px; }
  .sec-head { margin-bottom: 38px; }
  .eyebrow { font-size: 10.5px; letter-spacing: .26em; margin-bottom: 12px; }
  .sec-desc { font-size: 13.5px; margin-top: 12px; }

  .info-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .info-item { padding: 22px 16px; border-radius: 16px; }
  .info-item .ic { margin-bottom: 12px; width: 19px; height: 19px; }
  .info-item .k { font-size: 10.5px; letter-spacing: .16em; margin-bottom: 7px; }
  .info-item .v { font-size: 14.5px; line-height: 1.45; }
  .info-item small { font-size: 11px; margin-top: 4px; }
  .nav-guide { margin-top: 9px; padding: 4px 11px; font-size: 11px; }

  .rich-html { padding: 30px 22px; border-radius: 16px; font-size: 14px; }
  .rich-html h1 { font-size: 20px; }
  .rich-html h2 { font-size: 17.5px; }
  .rich-html h3 { font-size: 16px; }


  footer { padding: 36px 20px; font-size: 11px; letter-spacing: .06em; }

  /* 弹窗 → 底部抽屉 */
  .modal { padding: 0; align-items: flex-end; }
  .modal-card {
    max-width: 100%; width: 100%;
    max-height: 92vh; max-height: 92dvh;
    border-radius: 26px 26px 0 0;
    padding: 34px 22px calc(34px + env(safe-area-inset-bottom));
    transform: translateY(100%);
    border-left: none; border-right: none; border-bottom: none;
  }
  .modal.open .modal-card { transform: translateY(0); }
  .modal-card::before {
    content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
    width: 38px; height: 4px; border-radius: 99px; background: rgba(28, 33, 38, .14);
  }
  .modal-close { right: 14px; top: 16px; width: 38px; height: 38px; }
  .modal-card h3 { font-size: 21px; }
  .field { margin-bottom: 13px; }
  .field > label { font-size: 11px; letter-spacing: .16em; margin-bottom: 8px; }
  .field input[type="text"], .field input[type="tel"], .field input[type="datetime-local"] { font-size: 16px; padding: 13px 14px; border-radius: 11px; }
  .code-row .code-btn { padding: 0 14px; min-height: 48px; font-size: 11.5px; }
  /* 软键盘兼容的结构解：卡片=定高 flex 容器，表单内容在 .form-scroll 里滚，
     按钮是抽屉底部页脚（常驻可见），内容与按钮各自区域、结构上不重叠；
     键盘弹出压缩视口时整卡收高，内容在按钮上方滚动 */
  .modal-card { display: flex; flex-direction: column; overflow: hidden; }
  #form-box, #form, #login-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  .form-scroll {
    flex: 1; min-height: 0; overflow-y: auto;
    overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  }
  .submit-btn { position: static; flex: none; margin-top: 10px; }

  /* 「我的报名」视图（CHG-2026-070）：与表单同构——内容在 .form-scroll 滚动，
     完成按钮常驻抽屉底部；表单字段多、详情行多时按钮不再被裁切 */
  #success-box { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  #success-box > .btn { flex: none; margin-top: 14px; }

  /* 提交前复核视图（CHG-2026-075）：与表单/成功视图同构——摘要行多时在
     .form-scroll 内滚，「返回修改/确认提交」常驻抽屉底部，不再被顶出裁切；
     标题/待提交标签/指引在滚动层外常驻，不随列表滚走 */
  #review-box { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  #review-box > h3, #review-box > .review-sub { flex: none; }
  .review-actions { flex: none; margin-top: 14px; }

  /* 名单层（CHG-2026-070）：手机卡片 overflow:hidden，滚动必须收在 .roster-list 内层 */
  .roster-list {
    flex: 1; min-height: 0; overflow-y: auto;
    overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  }
  .roster-tab { padding: 8px 10px; font-size: 12px; }
  .roster-name { font-size: 14px; }

  .login-icon { width: 54px; height: 54px; margin-bottom: 16px; }
  .login-icon svg { width: 23px; height: 23px; }
  .login-tip { font-size: 11px; margin-top: 16px; }

  .bb-contact { padding: 13px 15px; font-size: 13px; gap: 6px; min-height: 48px; }
  .bb-contact svg { width: 15px; height: 15px; }
  .bottom-bar .btn { padding: 14px 16px; font-size: 14.5px; min-height: 48px; }

  .success .ok { width: 60px; height: 60px; font-size: 24px; }
  .success h3 { font-size: 20px; }
  .success p { font-size: 13px; }
}

/* 软键盘弹出或矮视口（resizes-content 内核键盘弹出后视口只剩 ~400-550px）：
   装饰性登录头部与多余留白让位给输入区，否则字段被挤成一条缝；
   iOS resizes-visual 内核布局视口不变、不触发本档，不受影响 */
@media (max-width: 768px) and (max-height: 560px) {
  /* 40px：输入框顶随标签下移后避开右上角 ×（× 底缘 ~54px），键盘弹出时不互相压盖 */
  .modal-card { padding-top: 40px; }
  .modal-card h3 { font-size: 17px; }
  .login-head { display: none; }
  .login-tip { font-size: 10.5px; margin-top: 12px; }
  .submit-btn { margin-top: 10px; }
}

/* 小屏手机 */
@media (max-width: 400px) {
  .info-grid { grid-template-columns: 1fr; }
  .info-item { display: flex; align-items: center; gap: 16px; padding: 20px 18px; }
  .info-item .ic { margin-bottom: 0; flex: none; }
  .info-item .k { margin-bottom: 4px; }
  .hero h1 { font-size: clamp(30px, 10.5vw, 46px); }
  .team-chip { padding: 11px 6px; font-size: 12.5px; }
  .vs { width: 40px; height: 40px; font-size: 11px; }
  .bottom-bar { gap: 9px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
  .bb-contact { padding: 12px 12px; font-size: 12.5px; gap: 5px; }
  .bb-contact svg { width: 14px; height: 14px; }
  .bottom-bar .btn { padding: 13px 14px; font-size: 14px; }
}

/* 横屏矮屏 */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { padding-top: 90px; min-height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* 触屏（无悬停能力）：点按后 :hover 会粘滞，取消位移/顶线等 hover 专属效果 */
@media (hover: none) {
  .btn.gold:hover { transform: none; box-shadow: 0 8px 26px rgba(168, 135, 74, .32); }
  .btn.ghost:hover { transform: none; border-color: var(--line2); background: #fff; box-shadow: var(--shadow-s); }
  .auth-btn:hover { transform: none; border-color: var(--line2); background: #fff; box-shadow: var(--shadow-s); }
  .nav-links a:hover { color: var(--muted); }
  .nav-links a:hover::after { width: 0; }
  .info-item:hover { transform: none; background: var(--bg2); border-color: var(--line); box-shadow: var(--shadow-s); }
  .info-item:hover::after { width: 0; }
  .modal-close:hover { transform: none; background: var(--bg); color: var(--muted); border-color: var(--line); }
  .bb-contact:hover { border-color: var(--line2); background: #fff; }
  .team-chip .tc-count:hover { background: rgba(168, 135, 74, .12); border-color: rgba(168, 135, 74, .32); }
}
