/* =====================================================================
 * CIGC v3 · 全站统一层（顶栏 / 菜单 / 页脚 / 字体 / 色板 / 子页统一）
 * 每个页面最后加载本文件。请勿在其它文件里再改颜色和字号。
 * 色板：深海军蓝 + 香槟金 + 白 / 米色；金色只做按钮、细线与深底上的小字。
 * 可读性：最小字 14px，正文 16–17px；浅底文字对比 ≥ 7:1；深底浅字不透明度 ≥ 0.85。
 * ===================================================================== */
@font-face { font-family: "CIGC Serif"; src: url(/assets/fonts/cigc-serif-600.woff2?v=20261115v32r2b) format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "CIGC Serif"; src: url(/assets/fonts/cigc-serif-700.woff2?v=20261115v32r2b) format("woff2"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "Marcellus"; src: url(/assets/fonts/Marcellus-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --v-navy-950: #071426;
  --v-navy-900: #0b1d36;
  --v-navy-800: #12294a;
  --v-navy-700: #1b3a63;
  --v-gold: #c9a45c;
  --v-gold-lt: #e4cb94;      /* 深底上的金色文字 */
  --v-gold-ink: #5f4512;     /* 浅底上的金色文字（对米色 ≥ 7:1） */
  --v-paper: #faf7f0;
  --v-cream: #f2ece0;
  --v-ink: #121b29;
  --v-ink-2: #334050;        /* 浅底辅助文字（对米色 ≥ 7:1） */
  --v-line: rgba(11, 29, 54, .16);
  --v-line-dark: rgba(228, 203, 148, .28);
  --v-radius: 3px;
  --v-head-h: 64px;

  --serif: "CIGC Serif", "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --latin: "Marcellus", "Times New Roman", serif;

  /* 旧子页样式变量统一映射到 v3 色板 */
  --font-display: var(--serif);
  --font-en: var(--latin);
  --navy: var(--v-navy-900);
  --navy-950: var(--v-navy-950);
  --navy-900: var(--v-navy-900);
  --navy-850: var(--v-navy-800);
  --navy-800: var(--v-navy-800);
  --navy-700: var(--v-navy-700);
  --navy-2: var(--v-navy-800);
  --navy-3: var(--v-navy-700);
  --club-blue: var(--v-navy-700);
  --cigc-primary: var(--v-navy-900);
  --gold: var(--v-gold);
  --gold-2: var(--v-gold-lt);
  --gold-lt: var(--v-gold-lt);
  --gold-deep: var(--v-gold-ink);
  --gold-pale: #f3ead4;
  --ivory: var(--v-cream);
  --paper: var(--v-paper);
  --cream: var(--v-cream);
  --ink: var(--v-ink);
  --muted: var(--v-ink-2);
  --line: var(--v-line);
  --radius: var(--v-radius);
  --radius-btn: 2px;
  --shadow: none;
  --maxw: 1200px;
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--v-head-h) + 12px); }
body { font-family: var(--sans); color: var(--v-ink); background: var(--v-paper); -webkit-font-smoothing: antialiased; animation: none; }
html { overflow-x: hidden; }
body { overflow-x: visible; }
@supports (overflow-x: clip) {
  body { overflow-x: clip; }
}
html.v-lock, html.v-lock body { overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--serif); }
.v-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 统一顶栏 ---------- */
.gh { position: sticky; top: 0; z-index: 90; background: var(--v-navy-900); color: #fff; border-bottom: 1px solid rgba(201, 164, 92, .55); transition: background .35s ease, border-color .35s ease; }
.gh__in { display: flex; align-items: center; gap: 10px; height: var(--v-head-h); width: calc(100% - 28px); max-width: 1200px; margin: 0 auto; }
.gh__brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: #fff; text-decoration: none; }
.gh__crest { flex: none; width: 42px; height: 42px; display: block; }
.gh__name { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.gh__name b { font-family: var(--serif); font-weight: 700; font-size: 18px; letter-spacing: .06em; white-space: nowrap; color: #fff; }
.gh__name small { display: none; font-family: var(--latin); font-size: 14px; letter-spacing: .14em; color: var(--v-gold-lt); white-space: nowrap; margin-top: 3px; }
.gh__links { display: none; }
.gh__menu { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 10px; border: 1px solid rgba(228, 203, 148, .6); border-radius: 2px; background: transparent; color: #fff; font: 600 16px/1 var(--sans); letter-spacing: .1em; cursor: pointer; }
.gh__burger { position: relative; width: 18px; height: 12px; }
.gh__burger i { position: absolute; left: 0; right: 0; height: 2px; background: var(--v-gold-lt); transition: transform .25s, top .25s; }
.gh__burger i:first-child { top: 1px; } .gh__burger i:last-child { top: 9px; }
.gh__menu[aria-expanded="true"] .gh__burger i:first-child { top: 5px; transform: rotate(45deg); }
.gh__menu[aria-expanded="true"] .gh__burger i:last-child { top: 5px; transform: rotate(-45deg); }

/* 首页：顶栏透明覆盖在首屏大图上，滚动后变实色 */
body.home .gh { position: fixed; left: 0; right: 0; background: linear-gradient(180deg, rgba(7, 20, 38, .72), rgba(7, 20, 38, 0)); border-bottom-color: transparent; }
body.home .gh.is-solid, html.v-lock body.home .gh { background: var(--v-navy-900); border-bottom-color: rgba(201, 164, 92, .55); }

/* ---------- 全屏菜单 ---------- */
.gh-panel { position: fixed; inset: var(--v-head-h) 0 0; z-index: 89; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--v-navy-950); color: #fff; padding: 8px 0 calc(32px + env(safe-area-inset-bottom)); }
.gh-panel[hidden] { display: none; }
.gh-panel__in { width: calc(100% - 40px); max-width: 720px; margin: 0 auto; }
.gh-panel__main { list-style: none; margin: 0; padding: 0; }
.gh-panel__main a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; padding: 10px 0; border-bottom: 1px solid var(--v-line-dark); color: #fff; text-decoration: none; }
.gh-panel__main b { font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: .12em; }
.gh-panel__main small { font-family: var(--latin); font-size: 14px; letter-spacing: .18em; color: var(--v-gold-lt); text-transform: uppercase; }
.gh-panel__main a[aria-current="page"] b { color: var(--v-gold-lt); }
.gh-panel__label { margin: 30px 0 8px; font-size: 14px; letter-spacing: .2em; color: var(--v-gold-lt); }
.gh-panel__sub { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.gh-panel__sub a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .92); font-size: 16px; text-decoration: none; }
.gh-panel__font { display: flex; align-items: center; gap: 8px; margin-top: 28px; }
.gh-panel__font span { margin-right: auto; font-size: 16px; color: rgba(255, 255, 255, .92); }
.gh-panel__font button { min-width: 64px; min-height: 44px; border: 1px solid rgba(228, 203, 148, .5); border-radius: 2px; background: transparent; color: #fff; font: 500 16px/1 var(--sans); cursor: pointer; }
.gh-panel__font button.is-active { background: var(--v-gold); border-color: var(--v-gold); color: var(--v-navy-950); font-weight: 700; }
.gh-panel__cta { display: flex; align-items: center; justify-content: center; margin-top: 28px; min-height: 54px; background: var(--v-gold); color: var(--v-navy-950); font-weight: 700; font-size: 17px; letter-spacing: .16em; text-decoration: none; border-radius: 2px; }

/* ---------- 统一页脚 ---------- */
.gf { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 14px; background: var(--v-navy-950); border-top: 1px solid rgba(201, 164, 92, .45); color: var(--v-paper); }
.gf__crest { flex: none; width: 28px; height: 28px; }
.gf__copy { margin: 0; font-size: 14px; line-height: 1.5; }


/* ---------- 统一按钮 ---------- */
.btn { border-radius: 2px !important; letter-spacing: .12em; font-weight: 700; }
.btn--gold, a.btn--gold, button.btn--gold { background: var(--v-gold) !important; color: var(--v-navy-950) !important; border: 1px solid var(--v-gold) !important; box-shadow: none !important; }
.btn--navy { background: var(--v-navy-900) !important; color: #fff !important; border: 1px solid var(--v-navy-900) !important; }
.btn--disabled, .btn--gold.btn--disabled, .btn[aria-disabled="true"] { background: #d9d4c8 !important; border-color: #d9d4c8 !important; color: #3c4450 !important; }

@media (min-width: 1000px) {
  :root { --v-head-h: 76px; }
  .gh__in { width: calc(100% - 64px); gap: 14px; }
  .gh__crest { width: 50px; height: 50px; }
  .gh__name b { font-size: 20px; }
  .gh__name small { display: block; }
  .gh__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
  .gh__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: rgba(255, 255, 255, .92); font-size: 16px; letter-spacing: .08em; text-decoration: none; }
  .gh__links a:hover, .gh__links a[aria-current="page"] { color: var(--v-gold-lt); }
  .gh__links a.gh__cta { margin-left: 8px; padding: 0 20px; background: var(--v-gold); color: var(--v-navy-950); font-weight: 700; border-radius: 2px; }
  .gh__menu { margin-left: 8px; }
  .gh-panel__main b { font-size: 28px; }
}
@media (max-width: 359px) {
  .gh__name b { font-size: 16px; letter-spacing: .02em; }
  .gh__crest { width: 36px; height: 36px; }
  .gh__menu { padding: 0 8px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* ===================== v3.1 · 手机底部快速导航 =====================
 * 深蓝底 + 金色细线图标；固定在页面底部，避开 iPhone 底部安全区；
 * 微信内置浏览器的底部工具栏在网页区域之外，不会与它重叠。≥1000px 隐藏。 */
:root { --v-nav-h: 58px; }
.bn { position: fixed; left: 0; right: 0; bottom: 0; z-index: 88; display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--v-nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(7, 20, 38, .97); border-top: 1px solid rgba(201, 164, 92, .55); box-shadow: 0 -8px 24px rgba(0, 0, 0, .18); }
.bn a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: rgba(255, 255, 255, .86); text-decoration: none; font-size: 14px; line-height: 1.1; letter-spacing: .08em; -webkit-tap-highlight-color: transparent; }
.bn svg { width: 22px; height: 22px; fill: none; stroke: var(--v-gold-lt); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.bn a[aria-current="page"] { color: var(--v-gold-lt); }
.bn a[aria-current="page"]::before { content: ""; position: absolute; top: -1px; left: 30%; right: 30%; height: 2px; background: var(--v-gold); }
.bn a[aria-current="page"] svg { stroke: var(--v-gold); stroke-width: 1.7; }
.bn a:active { background: rgba(255, 255, 255, .05); }
body { padding-bottom: calc(var(--v-nav-h) + env(safe-area-inset-bottom)); }
html.v-lock .bn { visibility: hidden; }
html[data-font="xlarge"] .bn a, html[data-font="large"] .bn a { font-size: 14px; }
@media (max-width: 359px) { .bn a { font-size: 14px; letter-spacing: 0; } .bn svg { width: 20px; height: 20px; } }
@media (min-width: 1000px) { .bn { display: none; } body { padding-bottom: 0; } }


/* =====================================================================
 * v3.2 · 深蓝配比调整（手机微信「黑压压」反馈）
 * 原则：象牙白 / 米色做主底；深蓝只做点睛与压轴——
 *   首页只留「首屏照片」「球队历史与辉煌」「页脚」三处深色；
 *   顶栏、底部导航、菜单、子页页头一律浅色，同一屏里不叠加深色条。
 * 深蓝略提亮，更像海军蓝而不是近黑。
 * ===================================================================== */
:root {
  --v-navy-950: #0e2342; --v-navy-900: #15305a; --v-navy-800: #1d3d6b; --v-navy-700: #284c80;
  --v-head-bg: rgba(250, 247, 240, .96);
}

/* 顶栏：象牙白 + 金色细线（首页首屏上保持透明，滚动后变象牙白） */
.gh { background: var(--v-head-bg); color: var(--v-navy-900); border-bottom: 1px solid rgba(201, 164, 92, .6); -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px); }
.gh__brand, .gh__name b { color: var(--v-navy-900); }
.gh__name small { color: var(--v-gold-ink); }
.gh__menu { color: var(--v-navy-900); border-color: rgba(21, 48, 90, .35); }
.gh__burger i { background: var(--v-navy-900); }
.gh__links a { color: var(--v-ink) !important; }
.gh__links a[aria-current="page"] { color: var(--v-gold-ink) !important; }
body.home .gh { background: linear-gradient(180deg, rgba(7, 20, 38, .62), rgba(7, 20, 38, 0)); border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.home .gh:not(.is-solid) .gh__brand, body.home .gh:not(.is-solid) .gh__name b, body.home .gh:not(.is-solid) .gh__menu, body.home .gh:not(.is-solid) .gh__links a { color: #fff !important; }
body.home .gh:not(.is-solid) .gh__name small { color: var(--v-gold-lt); }
body.home .gh:not(.is-solid) .gh__burger i { background: var(--v-gold-lt); }
body.home .gh:not(.is-solid) .gh__menu { border-color: rgba(228, 203, 148, .6); }
body.home .gh.is-solid, html.v-lock body.home .gh { background: var(--v-head-bg); border-bottom-color: rgba(201, 164, 92, .6); -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px); }
html.v-lock body.home .gh .gh__brand, html.v-lock body.home .gh .gh__name b, html.v-lock body.home .gh .gh__menu { color: var(--v-navy-900) !important; }
html.v-lock body.home .gh .gh__burger i { background: var(--v-navy-900); }

/* 全屏菜单：象牙白 */
.gh-panel { background: var(--v-paper); color: var(--v-ink); }
.gh-panel__main a { color: var(--v-navy-900); border-bottom-color: var(--v-line); }
.gh-panel__main small { color: var(--v-gold-ink); }
.gh-panel__main a[aria-current="page"] b { color: var(--v-gold-ink); }
.gh-panel__label { color: var(--v-gold-ink); }
.gh-panel__sub a { color: var(--v-ink); border-bottom-color: var(--v-line); }
.gh-panel__font span { color: var(--v-ink); }
.gh-panel__font button { color: var(--v-navy-900); border-color: rgba(21, 48, 90, .35); }

/* 底部快速导航：白底 + 深蓝细线图标 + 金色选中 */
.bn { background: rgba(255, 255, 255, .97); border-top: 1px solid rgba(201, 164, 92, .55); box-shadow: 0 -6px 20px rgba(14, 35, 66, .08); -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px); }
.bn a { color: var(--v-ink-2); }
.bn svg { stroke: var(--v-navy-800); }
.bn a[aria-current="page"] { color: var(--v-gold-ink); font-weight: 700; }
.bn a[aria-current="page"] svg { stroke: var(--v-gold-ink); stroke-width: 1.8; }
.bn a:active { background: rgba(14, 35, 66, .04); }

/* 首页「加入我们」：深蓝 → 米色（首页深色只留历史与辉煌 + 页脚） */
.join { background: var(--v-cream); color: var(--v-ink); }
.join::before { background: radial-gradient(ellipse 80% 60% at 90% 0%, rgba(201, 164, 92, .14), transparent 60%); }
.join .v-head--dark em { color: var(--v-gold-ink); }
.join .v-head--dark h2 { color: var(--v-navy-900); }
.join__desc { color: var(--v-ink-2); }
.steps li { border-color: rgba(201, 164, 92, .7); background: #fff; color: var(--v-ink); }
.steps b { color: var(--v-gold-ink); }
.cats div { background: #fff; }
.cats b { color: var(--v-navy-900); }
.cats span { color: var(--v-ink-2); }
.join .contact-card { border: 1px solid var(--v-line); border-top: 3px solid var(--v-gold); }

/* 赛事详情（app.js）：标题区改浅色，相册区改米色 */
.ev-hero { background: var(--v-paper); color: var(--v-ink); }
.ev-cover { background: var(--v-cream); }
.ev-hero__inner { border-bottom: 1px solid var(--v-gold); }
.ev-back { color: var(--v-gold-ink); }
.ev-hero .hero__kicker { color: var(--v-gold-ink); }
.ev-title { color: var(--v-navy-900); }
.meta-lines--light { color: var(--v-ink-2); }
.ev-vs { color: var(--v-gold-ink); }
.section--dark { background: var(--v-cream); color: var(--v-ink); }
.section--dark .sec-title em { color: var(--v-gold-ink); }
.section--dark .sec-title span { color: var(--v-navy-900); }
.section--dark .tile { background: #fff; border-color: var(--v-line); }
.section--dark .tile > span { color: var(--v-ink-2); }
.section--dark .album-frame { background: #fff; }

/* 往届赛事页（event-page.css）、会员服务页头：改浅色 */
.event-hero { background: var(--v-cream); }
.event-story__head { background: transparent; }
.service-wrap h1 { background: var(--v-paper); color: var(--v-navy-900); border-bottom: 1px solid var(--v-gold); padding-top: 28px; padding-bottom: 22px; }
.service-wrap h1::before { color: var(--v-gold-ink) !important; }

/* 薪火时间线：浅色版 */
.section--timeline { padding-top: 8px; }
.h-sub { color: var(--v-navy-900); }
.h-sub::after { background: var(--v-line); }
.h-sub--dark { color: #fff; } .h-sub--dark::after { background: var(--v-line-dark); }
.timeline--light .tl > a, .timeline--light .tl > div { color: var(--v-ink); border-bottom-color: var(--v-line); }
.timeline--light .tl > a::before, .timeline--light .tl > div::before { background: var(--v-paper); }
.timeline--light .tl--link > a::before { background: var(--v-gold); }
.timeline--light .tl__when { color: var(--v-gold-ink); }
.timeline--light .tl__body b { color: var(--v-navy-900); }
.timeline--light .tl__text { color: var(--v-ink-2); }
.timeline--light .tl__img img { border-color: var(--v-line); }
.timeline--light .tl__img--crest img { filter: none; }
#history { padding-bottom: 48px; }


