/* =========================================================================
   天枢竞策 · 全局样式 —— 高级深色主题
   ========================================================================= */
/* 本地思源黑体 (Noto Sans SC, 开源可商用) */
@font-face {
  font-family: 'Mingce Sans';
  font-style: normal; font-weight: 300;
  src: url('/vendor/fonts/NotoSansSC-300.ttf') format('truetype');
  font-display: swap;
}
/* 思源宋体 (Source Han Serif SC) —— 标题艺术衬线, 金属质感标题 */
@font-face {
  font-family: 'Tianshu Serif';
  font-style: normal; font-weight: 800;
  src: url('/vendor/fonts/SourceHanSerifCN-Bold.otf') format('opentype');
  font-display: swap;
}
@font-face {
  font-family: 'Tianshu Serif';
  font-style: normal; font-weight: 900;
  src: url('/vendor/fonts/SourceHanSerifCN-Heavy.otf') format('opentype');
  font-display: swap;
}
@font-face {
  font-family: 'Mingce Sans';
  font-style: normal; font-weight: 400;
  src: url('/vendor/fonts/NotoSansSC-400.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Mingce Sans';
  font-style: normal; font-weight: 700;
  src: url('/vendor/fonts/NotoSansSC-700.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Mingce Sans';
  font-style: normal; font-weight: 900;
  src: url('/vendor/fonts/NotoSansSC-900.ttf') format('truetype');
  font-display: swap;
}

:root {
  --bg: #0a0e1a;
  --bg-2: #0f1524;
  --card: #141b2c;
  --card-2: #182136;
  --line: #2a3551;
  --gold: #e8b549;
  --gold-2: #f7e27a;
  --gold-deep: #b9781f;
  --text: #eef2f8;
  --text-2: #a7b0c3;
  --text-3: #6d7890;
  --accent: #e0484f;
  --accent-2: #3ddc97;
  --radius: 16px;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.62);
  --shadow-gold: 0 10px 34px rgba(232, 181, 73, 0.28);
  --font: 'Mingce Sans', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', -apple-system, Segoe UI, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background:
    /* 内容可读性遮罩 */
    linear-gradient(180deg, rgba(6,10,20,0.72) 0%, rgba(6,10,20,0.55) 45%, rgba(6,10,20,0.82) 100%),
    /* 场馆背景 */
    url('/assets/stadium-bg.svg') center / cover no-repeat,
    #050a16;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  background-attachment: fixed;
  overflow-x: hidden;
}

/* 顶部氛围光斑 (叠加在场馆背景上) */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(760px 520px at 30% 0%, rgba(232,181,73,0.12), transparent 55%),
    radial-gradient(700px 500px at 76% 6%, rgba(224,72,79,0.10), transparent 55%),
    /* 两侧聚光 (纵向扫光, 填充两侧留白) */
    radial-gradient(560px 90% at 0% 50%, rgba(232,181,73,0.09), transparent 60%),
    radial-gradient(560px 90% at 100% 50%, rgba(224,72,79,0.07), transparent 60%),
    /* 左右斜向射灯 */
    linear-gradient(115deg, transparent 40%, rgba(232,181,73,0.06) 48%, transparent 56%),
    linear-gradient(245deg, transparent 40%, rgba(224,72,79,0.05) 48%, transparent 56%);
}
/* 漂浮粒子 + 科技感微网格 */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    /* 科技网格线 (细微) */
    linear-gradient(rgba(120,170,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,170,255,0.035) 1px, transparent 1px),
    /* 微光扫描线 */
    linear-gradient(180deg, transparent 0%, rgba(232,181,73,0.05) 50%, transparent 100%),
    /* 数据光点/漂浮粒子 */
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 70% 20%, rgba(255,255,255,.4), transparent),
    radial-gradient(2px 2px at 40% 70%, rgba(232,181,73,.5), transparent),
    radial-gradient(1.5px 1.5px at 85% 60%, rgba(255,255,255,.35), transparent),
    radial-gradient(2px 2px at 60% 85%, rgba(232,181,73,.45), transparent);
  background-size: 56px 56px, 56px 56px, 100% 180%, auto, auto, auto, auto, auto;
  background-position: 0 0, 0 0, 0 0, center, center, center, center, center;
  animation: floatparticles 22s linear infinite;
  opacity: .8;
}
@keyframes floatparticles {
  0%   { transform: translateY(0) }
  50%  { transform: translateY(-30px) }
  100% { transform: translateY(0) }
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1360px; margin: 0 auto; padding: 0 24px; }

/* -------------------------------------------------------------------------
   顶部导航
   ------------------------------------------------------------------------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 26, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.brand .logo { height: 44px; width: 44px; border-radius: 12px; box-shadow: 0 4px 16px rgba(232,181,73,.45), 0 0 0 1px rgba(232,181,73,.25); }
.brand .brand-text b {
  font-size: 21px; letter-spacing: 3px; font-weight: 900; display: block;
  background: linear-gradient(120deg, var(--gold), var(--gold-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 6px rgba(232,181,73,.25));
}
.brand .brand-text span { display: none; }
/* 顶部右侧按钮 (登录/注册/开始分析) —— 全局横排, 各页面共用 */
.nav-right { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; white-space: nowrap; }
.nav-right .pill { display: inline-flex; align-items: center; }
.nav-right .nav-cta { flex-shrink: 0; }
/* 导航菜单放进一个圆角容器, 与 logo/右侧按钮区分 */
nav.menu {
  display: flex; gap: 4px; align-items: center;
  padding: 5px 8px; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
}
nav.menu a {
  padding: 9px 20px; border-radius: 999px; font-size: 15px; font-weight: 600;
  color: var(--text-2); transition: all .2s ease; position: relative;
  display: inline-flex; align-items: center; gap: 6px;
}
nav.menu a:hover { color: var(--text); background: rgba(232,181,73,.1); box-shadow: inset 0 0 0 1px rgba(232,181,73,.25); }
nav.menu a.admin-link { color: var(--gold); border: 1px solid rgba(232,181,73,.3); }
nav.menu a.admin-link:hover { background: rgba(232,181,73,.1); }
nav.menu a.active {
  color: var(--bg); font-weight: 800;
  background: linear-gradient(120deg, var(--gold), var(--gold-2));
  box-shadow: 0 8px 22px rgba(232,181,73,.45), inset 0 1px 0 rgba(255,255,255,.5);
}
nav.menu a.active::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 2px; border-radius: 2px; background: rgba(10,14,26,.55);
}
.nav-cta {
  padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 700;
  color: var(--bg); background: linear-gradient(120deg, var(--gold), var(--gold-2));
  box-shadow: 0 8px 24px rgba(232,181,73,.4), inset 0 1px 0 rgba(255,255,255,.5);
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(232,181,73,.5), inset 0 1px 0 rgba(255,255,255,.5); }
/* 导航右上按钮 (登录/注册/开始分析) —— 全局统一, 参考图样式 */
.nav-right .pill {
  padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: all .2s ease; cursor: pointer; white-space: nowrap;
}
.nav-right .pill.ghost { color: var(--text-2); border: 1px solid rgba(255,255,255,.14); background: transparent; }
.nav-right .pill.ghost:hover { color: var(--gold); border-color: var(--gold); }
.nav-right .pill.gold-outline { color: var(--gold); border: 1px solid rgba(232,181,73,.4); background: transparent; }
.nav-right .pill.gold-outline:hover { background: rgba(232,181,73,.1); }

/* 登录后账号下拉菜单 */
.user-wrap { position: relative; }
.user-wrap .user-chip { cursor: pointer; }
.user-wrap .um-arrow { font-style: normal; margin-left: 4px; font-size: 11px; color: var(--text-3); }
.user-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 120;
  min-width: 200px; background: #141c2f; border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.55);
}
.user-menu .um-head { padding: 14px 16px 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.user-menu .um-head b { display: block; font-size: 15px; }
.user-menu .um-head span { font-size: 12px; color: var(--text-3); }
.user-menu .um-item { padding: 12px 16px; font-size: 14px; color: var(--text-2); cursor: pointer; transition: background .15s ease; }
.user-menu .um-item:hover { background: rgba(232,181,73,.08); color: var(--text); }
.user-menu .um-item.out { color: var(--accent); }
.user-menu .um-item.out:hover { background: rgba(224,72,79,.1); }

/* 通用信息弹窗 (个人中心/协议) */
.info-modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; }
.info-backdrop { position: absolute; inset: 0; background: rgba(3,6,14,.72); backdrop-filter: blur(4px); }
.info-card { position: relative; width: 440px; max-width: 92vw; background: linear-gradient(180deg,#182035,#10172a); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: fadeUp .25s ease; }
.info-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.info-title { font-size: 16px; font-weight: 800; color: var(--gold); }
.info-close { background: none; border: none; color: var(--text-3); font-size: 18px; cursor: pointer; }
.info-close:hover { color: var(--text); }
.info-body { padding: 18px; font-size: 14px; color: var(--text-2); line-height: 1.8; max-height: 70vh; overflow: auto; }
.policy-link { color: var(--gold); cursor: pointer; text-decoration: none; }
.policy-link:hover { text-decoration: underline; }
.profile .pf-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06); color: var(--text-2); }
.profile .pf-row b { color: var(--text); }
.profile .pf-row b.pf-ok { color: var(--accent-2); }
.profile .pf-note { margin-top: 14px; font-size: 12px; color: var(--text-3); }

/* 移动端菜单按钮 */
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--text);
  font-size: 22px; padding: 4px 12px; border-radius: 8px; cursor: pointer;
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-right .pill { display: none; }
  nav.menu {
    position: absolute; top: 74px; left: 0; right: 0; flex-direction: column;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 12px;
    gap: 4px; display: none;
  }
  nav.menu.open { display: flex; }
  nav.menu a { width: 100%; border-radius: 10px; text-align: center; }
  .nav-cta { display: none; }
}

/* -------------------------------------------------------------------------
   通用组件
   ------------------------------------------------------------------------- */
.section { padding: 40px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.section-head h2 {
  font-size: 26px; font-weight: 900; display: flex; align-items: center; gap: 12px;
}
.section-head h2 .dot {
  width: 12px; height: 28px; border-radius: 4px;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
}
.section-head .sub { color: var(--text-3); font-size: 14px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; padding: 4px 11px; border-radius: 999px; font-weight: 600;
}
.badge.live { color: #ffd6d8; background: rgba(224,72,79,.16); border: 1px solid rgba(224,72,79,.4); }
.badge.gold { color: var(--gold); background: rgba(232,181,73,.14); border: 1px solid rgba(232,181,73,.4); }
.badge.gray { color: var(--text-2); background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.badge.green { color: var(--accent-2); background: rgba(61,220,151,.12); border: 1px solid rgba(61,220,151,.4); }
.badge .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100%{opacity:.4} 50%{opacity:1} }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  cursor: pointer; border: none; transition: all .18s ease; font-family: var(--font);
}
.btn.gold {
  color: var(--bg); background: linear-gradient(180deg, var(--gold-2), var(--gold));
  box-shadow: 0 10px 28px rgba(232,181,73,.38), inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(0,0,0,.12);
}
.btn.gold:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(232,181,73,.5), inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(0,0,0,.12); }
.btn.gold:active { transform: translateY(0); box-shadow: 0 6px 18px rgba(232,181,73,.4), inset 0 2px 4px rgba(0,0,0,.2); }
.btn.ghost { color: var(--text); background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); background: rgba(232,181,73,.06); box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* 骨架屏 */
.skeleton { border-radius: var(--radius); background: linear-gradient(90deg, var(--card) 25%, var(--card-2) 50%, var(--card) 75%); background-size: 200% 100%; animation: sh 1.4s infinite; }
@keyframes sh { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* 空状态 */
.empty { text-align: center; padding: 60px 20px; color: var(--text-3); }
.empty .icon { font-size: 46px; margin-bottom: 12px; }

/* footer */
footer.site { margin-top: 40px; border-top: 1px solid var(--line); padding: 26px 0; }
footer.site .container { display: flex; justify-content: space-between; align-items: center; color: var(--text-3); font-size: 13px; flex-wrap: wrap; gap: 10px; }
footer.site a:hover { color: var(--gold); }

/* toast */
#toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(30px);
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  padding: 13px 24px; border-radius: 12px; box-shadow: var(--shadow); z-index: 100;
  opacity: 0; transition: all .3s ease; font-size: 14px; max-width: 90vw;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- 认证弹窗 ---- */
.auth-overlay {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(5, 8, 16, .7); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: all .25s ease;
}
.auth-overlay.open { opacity: 1; visibility: visible; }
.auth-box {
  width: 400px; max-width: 92vw; background: linear-gradient(180deg, #182035, #10172a);
  border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.08);
  position: relative; padding: 22px 26px 26px;
  transform: translateY(16px); transition: transform .25s ease; overflow: hidden;
}
.auth-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .9;
}
.auth-overlay.open .auth-box { transform: translateY(0); }
.auth-close { position: absolute; top: 12px; right: 16px; background: none; border: none; color: var(--text-3); font-size: 26px; cursor: pointer; line-height: 1; }
.auth-close:hover { color: var(--text); }
.auth-tabs { display: flex; gap: 6px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.auth-tab { padding: 10px 4px; font-size: 17px; font-weight: 800; cursor: pointer; color: var(--text-3); margin-right: 22px; border-bottom: 2px solid transparent; }
.auth-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.af { margin-bottom: 15px; }
.af label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.af input { width: 100%; padding: 13px 15px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 16px; font-family: var(--font); }
.af input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,181,73,.12); }
.auth-err { min-height: 18px; font-size: 13px; color: var(--accent); margin: 4px 0 10px; }
.auth-hint { min-height: 18px; font-size: 13px; color: var(--accent-2); margin-top: 12px; text-align: center; }
.pill.gold-outline { color: var(--gold); border-color: rgba(232,181,73,.4); }
.pill.gold-outline:hover { background: rgba(232,181,73,.1); }
.user-chip { display: inline-flex; align-items: center; gap: 6px; }
.user-chip b { color: var(--gold); font-weight: 700; }

/* ---- 浮动客服按钮 (右下角) ---- */
.float-kefu {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; width: 60px; height: 60px; border-radius: 50%;
  color: var(--bg); cursor: grab; touch-action: none;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 8px 26px rgba(232,181,73,.5), inset 0 1px 0 rgba(255,255,255,.5);
  transition: transform .2s ease, box-shadow .2s ease;
}
.float-kefu:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 34px rgba(232,181,73,.6), inset 0 1px 0 rgba(255,255,255,.5); }
.float-kefu .fk-icon { font-size: 24px; line-height: 1; }
.float-kefu .fk-label { font-size: 10px; font-weight: 800; letter-spacing: 1px; }

/* =========================================================================
   层次分级增强 (Layered depth polish)
   ========================================================================= */
/* 细分滚动条, 提升质感 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--line), #1a2236); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--gold-deep), var(--gold)); }

::selection { background: rgba(232,181,73,.25); color: var(--text); }

/* 全局焦点环 (可访问性 + 层次) */
:focus-visible { outline: 2px solid rgba(232,181,73,.55); outline-offset: 2px; border-radius: 4px; }

/* 段落/标题文字层级 */
h1, h2, h3 { letter-spacing: .5px; }

/* 页面主容器进入动画 (隐性层次) */
main, .hero, .match-center-section { animation: fadeUp .5s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* 通用 "弱说明" 文字 */
.hint-muted { color: var(--text-3); font-size: 12px; letter-spacing: .3px; }
/* 通用 "轻标签" 胶囊 */
.tag-soft {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
  border-radius: 999px; font-size: 11px; color: var(--text-2);
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
}

/* =========================================================================
   移动端导航优化 (手机顶栏紧凑协调)
   ========================================================================= */
@media (max-width: 768px) {
  header.site { height: auto; min-height: 60px; }
  .nav { height: 60px; padding: 0 14px; }
  .brand .logo { height: 36px; width: 36px; }
  .brand .brand-text b { font-size: 17px; letter-spacing: 2px; }
  .brand .brand-text span { display: none; }
  .menu-toggle { font-size: 20px; padding: 4px 9px; }
  /* 右侧按钮在手机上仅保留 "开始分析"(用登录入口), 让顶栏不过挤 */
  .nav-right { gap: 6px; }
  .nav-right .pill { padding: 6px 12px; font-size: 13px; }
  .nav-right .nav-cta { display: none; } /* 手机上隐藏开始分析大按钮, 避免拥挤 */
}
@media (max-width: 480px) {
  .brand .brand-text b { font-size: 15px; letter-spacing: 1px; }
}

