@font-face {
  font-family: Saira;
  src: url("assets/Saira.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* 优设标题黑（优设发布，免费商用）— 仅用于大标题，已按站内用字子集化 */
@font-face {
  font-family: "YouShe BiaoTiHei";
  src: url("assets/YouSheBiaoTiHei-subset.woff2?v=12") format("woff2"),
       url("assets/YouSheBiaoTiHei-subset.ttf?v=12") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* Orbitron（SIL OFL 1.1, Matt McInerney）— 数字/英文标题用，仅需 ASCII，已子集化 */
@font-face {
  font-family: "Orbitron";
  src: url("assets/Orbitron-Bold-subset.woff2?v=12") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

/* 庞门正道标题体（免费商用）— logo 里那款中文标题字，站点左上角品牌名用 */
@font-face {
  font-family: "PangMenZhengDao";
  src: url("assets/PangMenZhengDao-subset.woff2?v=8") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* 默认 = 工地（amber / warm / wide / hatch） */
  --paper: #f3f1ea;
  --panel: #fffefa;
  --ink: #191916;
  --ink-2: #5f5d55;
  --rule: #dcd8cc;
  --chip: #e7e3d8;
  --signal: #ffb31f;
  --signal-ink: #191916;
  --trace: #191916;
  --cut-k: 1.6;
  --cut: calc(10px * var(--cut-k));
  --font-ui: "Saira", "Arial Narrow", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-display: "YouShe BiaoTiHei", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-text: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --ease-mech: cubic-bezier(.7, 0, .2, 1);
  --ease-snap: cubic-bezier(.16, 1, .3, 1);
}

/* 深色 = 夜班（lime / neutral / standard / plain） */
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #191919;
  --panel: #222222;
  --ink: #ededed;
  --ink-2: #a3a3a3;
  --rule: #353535;
  --chip: #2e2e2e;
  --signal: #b8ff3d;
  --trace: var(--signal);
  --cut-k: 1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; background: transparent; color: var(--ink); font-family: var(--font-text); font-size: 16px; line-height: 1.7; }
/* 图标 sprite 不能占行（inline svg 会撑出一行文字高度，把彩条往下顶） */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
button, a { color: inherit; font: inherit; }
a { text-decoration: none; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
::selection { background: var(--signal); color: var(--signal-ink); }
[hidden] { display: none !important; }

.tri { display: flex; width: 100%; height: 3px; }
.tri i { flex: 1; }
.tri i:nth-child(1) { background: #ff00f0; }
.tri i:nth-child(2) { background: var(--signal); }
.tri i:nth-child(3) { background: #00ffa2; }
.site-header { position: relative; z-index: 10; min-height: 82px; padding: 0 5.4vw; display: flex; align-items: center; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--rule); background: var(--paper); }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; }
.brand-logo { height: 30px; width: auto; display: block; }
.footer-logo { height: 26px; width: auto; display: block; }
.brand-logo--dark { display: none; }
html[data-theme="dark"] .brand-logo--light { display: none; }
html[data-theme="dark"] .brand-logo--dark { display: block; }
.brand-divider { width: 1px; height: 26px; flex: none; background: var(--rule); }
.brand-copy { display: grid; line-height: 1.25; }
.brand-copy b { font-family: "PangMenZhengDao", var(--font-ui); font-size: 17px; font-weight: 400; line-height: 1.2; letter-spacing: .02em; font-synthesis: none; }
.brand-dot { margin: 0 .13em; font-style: normal; }
.brand-copy small { margin-top: 3px; color: var(--ink-2); font-size: 11px; }
.primary-nav { display: flex; align-items: stretch; gap: 5px; height: 82px; }
.primary-nav a { min-width: 94px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; font-size: 13px; font-weight: 700; transition: background 180ms var(--ease-mech), color 180ms var(--ease-mech); }
.primary-nav a span { align-self: center; color: var(--ink-2); font: 600 11px/1 var(--font-ui); }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { background: var(--signal); color: var(--signal-ink); }
.primary-nav a[aria-current="page"] span, .primary-nav a:hover span { color: var(--signal-ink); }
.theme-toggle, .menu-toggle { width: 44px; height: 44px; border: 1px solid var(--rule); background: transparent; display: grid; place-items: center; font-size: 21px; }
.theme-toggle:hover, .menu-toggle:hover { background: var(--signal); color: var(--signal-ink); }
.menu-toggle { display: none; padding: 12px; align-content: center; gap: 5px; }
.menu-toggle span { width: 100%; height: 1px; background: currentColor; }

.page { min-height: 60vh; animation: enter .38s var(--ease-snap) both; }
@keyframes enter { from { opacity: .45; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.hero { min-height: min(710px, calc(100svh - 86px)); height: 650px; max-height: 760px; position: relative; overflow: hidden; isolation: isolate; background: #d5d1c5; color: #191916; }
.hero-wash { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, var(--paper) 0 40%, color-mix(in srgb, var(--paper) 82%, transparent) 55%, transparent 84%); clip-path: polygon(0 0, 96% 0, 78% 100%, 0 100%); }
.hero-content { width: min(700px, 66%); padding: 72px 0 72px 9.5vw; position: relative; z-index: 1; }
.eyebrow { margin: 0; color: var(--ink-2); font: 600 11px/1.5 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; }
.hero .eyebrow { color: var(--ink-2); }
.edition-label { display: flex; align-items: center; gap: 13px; margin: 25px 0 8px; font-size: 12px; line-height: 1.4; font-weight: 700; }
.edition-no { font-family: "Orbitron", var(--font-ui); font-size: 50px; font-weight: 700; line-height: .95; letter-spacing: .01em; }
.hero h1 { margin: 0; font-family: var(--font-display); font-size: 88px; line-height: 1.04; font-weight: 400; letter-spacing: .01em; font-synthesis: none; }
.hero h1 span { display: inline-block; margin-top: 2px; font-size: .52em; font-weight: 400; line-height: 1.12; letter-spacing: .02em; }
.hero-intro { margin: 18px 0 22px; font-size: 16px; line-height: 1.9; font-weight: 500; }
.hero-actions { display: flex; align-items: center; gap: 25px; }
.button { position: relative; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 0 22px 0 18px; clip-path: polygon(0 0,100% 0,100% calc(100% - var(--cut)),calc(100% - var(--cut)) 100%,0 100%); font-size: 13px; font-weight: 700; transition: color 180ms var(--ease-mech), background 180ms var(--ease-mech), transform 100ms; }
.button span { font: 600 18px/1 var(--font-ui); }
.button:active { transform: translateY(1px); }
.button-dark { background: var(--ink); color: var(--panel); }
.button-dark:hover { background: var(--signal); color: var(--signal-ink); }
.button-light { background: var(--signal); color: var(--signal-ink); }
.button-light:hover { background: var(--panel); color: var(--ink); }
.text-link, .small-link { font-size: 13px; font-weight: 700; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.text-link span, .small-link span { margin-left: 7px; font: 600 15px/1 var(--font-ui); }
.hero-caption { position: absolute; left: 5.4vw; right: 5.4vw; bottom: 0; padding: 13px 0; display: flex; justify-content: space-between; border-top: 1px solid rgba(25,25,22,.42); color: var(--ink); font: 600 10px/1.4 var(--font-ui); letter-spacing: .12em; }
.hero-stamp { position: absolute; right: 5.6vw; top: 44px; padding: 12px 18px; border: 1px solid color-mix(in srgb, var(--ink) 56%, transparent); color: var(--ink); font: 600 11px/1.6 var(--font-ui); letter-spacing: .12em; transform: rotate(7deg); }

.ticker { min-height: 76px; padding: 14px 5.4vw; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--rule); }
.ticker-lead, .ticker-en { color: var(--ink-2); font: 600 10px/1.5 var(--font-ui); letter-spacing: .12em; }
.ticker-words { display: flex; align-items: center; gap: 24px; font-size: 23px; font-weight: 800; }
.ticker-words i { width: 6px; height: 6px; display: block; background: var(--signal); transform: rotate(45deg); }
.facts-band { padding: 90px 8vw 92px; display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 38px; border-bottom: 1px solid var(--rule); }
.section-intro h2 { margin: 12px 0 0; font-size: 28px; line-height: 1.4; font-weight: 800; }
.fact { padding-top: 2px; border-top: 1px solid var(--ink); }
.fact-number, .fact-word { min-height: 76px; display: flex; align-items: center; font: 700 52px/1 var(--font-ui); letter-spacing: .02em; }
.fact-label { display: block; padding: 8px 10px; width: max-content; max-width: 100%; background: var(--signal); color: var(--signal-ink); font-size: 12px; font-weight: 700; }
.fact p { max-width: 240px; margin: 12px 0 0; color: var(--ink-2); font-size: 13px; line-height: 1.8; }
.section-pad { padding: 76px 8vw 92px; }
.section-heading, .page-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-heading h2 { margin: 8px 0 0; font-size: 29px; line-height: 1.35; font-weight: 800; }
.small-link { margin-bottom: 5px; }
.record-list { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.record-list li { border-bottom: 1px solid var(--rule); }
.record-list a { position: relative; min-height: 68px; padding: 12px 8px; display: grid; grid-template-columns: 60px 100px 1fr auto; gap: 16px; align-items: center; transition: padding 180ms var(--ease-mech), background 180ms; }
.record-list a::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--trace); transform: scaleY(0); transform-origin: top; transition: transform 180ms var(--ease-mech); }
.record-list a:hover { padding-left: 16px; background: var(--panel); }
.record-list a:hover::before { transform: scaleY(1); }
.record-no, .timeline-no { color: var(--ink-2); font: 600 14px/1 var(--font-ui); font-variant-numeric: tabular-nums; }
.record-category { color: var(--ink-2); font-size: 12px; }
.record-title { font-size: 14px; font-weight: 600; }
.record-state { padding: 4px 9px; border: 1px dashed var(--rule); color: var(--ink-2); font-size: 11px; white-space: nowrap; }
.record-state.pending { color: var(--ink); border-style: solid; }
.invitation { min-height: 300px; padding: 62px 9vw; display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: 30px; background: var(--ink); color: var(--panel); }
.invitation-index { color: color-mix(in srgb, var(--panel) 32%, transparent); font-family: "Orbitron", var(--font-ui); font-size: 46px; font-weight: 700; line-height: .95; letter-spacing: .01em; }
.invitation .eyebrow { color: color-mix(in srgb, var(--panel) 62%, transparent); }
.invitation h2 { margin: 10px 0 0; font-size: 34px; line-height: 1.45; font-weight: 800; }
.invitation .button { justify-self: end; }

.reading-page, .gallery-page { padding: 76px 8vw 110px; }
.page-head { max-width: 930px; margin: 0 auto 58px; padding-bottom: 27px; border-bottom: 1px solid var(--ink); }
.page-title-row { margin-top: 12px; }
.page-title-row h1 { margin: 0; font-family: var(--font-display); font-size: 68px; line-height: 1.15; font-weight: 400; letter-spacing: .015em; font-synthesis: none; }
.page-index { padding-bottom: 9px; color: var(--ink-2); font: 600 13px/1 var(--font-ui); letter-spacing: .08em; }
.page-lede { max-width: 660px; margin: 17px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.9; }
.section-label { max-width: 930px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: space-between; font-weight: 800; }
.section-label .eyebrow { font-size: 10px; }
.document-list { max-width: 930px; margin: 0 auto; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.document-list li { min-height: 112px; padding: 20px 9px; display: grid; grid-template-columns: 55px 1fr 130px 110px; gap: 20px; align-items: center; border-bottom: 1px solid var(--rule); }
.doc-main h2 { margin: 0; font-size: 18px; font-weight: 800; }
.doc-main p { margin: 6px 0 0; color: var(--ink-2); font-size: 13px; }
.doc-version { color: var(--ink-2); font: 500 11px/1.5 var(--font-ui); }
.notice { max-width: 930px; margin: 27px auto 0; padding: 16px 18px; display: grid; grid-template-columns: 118px 1fr; gap: 16px; border: 1px solid var(--rule); background: var(--panel); }
.notice b { padding-left: 11px; border-left: 5px solid var(--signal); font-size: 13px; }
.notice p { margin: 0; color: var(--ink-2); font-size: 13px; }
.revision-log, .bulletin-board { max-width: 930px; margin: 74px auto 0; }
.revision-log .section-heading h2, .bulletin-board .section-heading h2 { font-size: 24px; }
.empty-state { margin: 20px 0 0; padding: 25px 20px; color: var(--ink-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 14px; }

.timeline { max-width: 930px; list-style: none; margin: 0 auto; padding: 0; border-top: 1px solid var(--rule); }
.timeline li { min-height: 130px; padding: 22px 8px; display: grid; grid-template-columns: 68px 1fr 110px; gap: 15px; border-bottom: 1px solid var(--rule); }
.timeline-no { padding-top: 5px; }
.timeline-status { display: inline-block; padding: 3px 8px; background: var(--chip); color: var(--ink-2); font-size: 10px; font-weight: 700; }
.timeline h2 { margin: 7px 0 3px; font-size: 17px; font-weight: 800; }
.timeline p { margin: 0; color: var(--ink-2); font-size: 13px; }
.timeline time { justify-self: end; padding-top: 4px; color: var(--ink-2); font: 500 11px/1.5 var(--font-ui); }
.board-count { color: var(--ink-2); font: 600 11px/1 var(--font-ui); letter-spacing: .08em; }

.gallery-page { max-width: 1180px; margin: 0 auto; }
.gallery-page .page-head { max-width: none; }
.gallery-toolbar { margin: 0 0 12px; display: flex; align-items: center; justify-content: space-between; }
.gallery-toolbar b { color: var(--ink); font-variant-numeric: tabular-nums; }
.gallery-controls { display: flex; gap: 7px; }
.gallery-controls button { width: 46px; height: 44px; border: 1px solid var(--rule); background: transparent; font: 600 20px/1 var(--font-ui); transition: background 150ms, color 150ms; }
.gallery-controls button:hover { background: var(--signal); color: var(--signal-ink); }
.gallery-viewport { overflow: hidden; }
.gallery-track { position: relative; min-height: 0; }
.gallery-slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transform: translateX(28px); transition: opacity 280ms var(--ease-mech), transform 360ms var(--ease-mech), visibility 360ms; }
.gallery-slide.is-current { position: relative; opacity: 1; visibility: visible; transform: translateX(0); }
.photo-placeholder { height: clamp(340px, 52vw, 560px); position: relative; overflow: hidden; display: grid; place-items: center; background-color: #dedbd1; color: #34332f; }
.photo-placeholder::before { content: ""; position: absolute; inset: 0; opacity: .6; background: repeating-linear-gradient(135deg, transparent 0 17px, rgba(25,25,22,.08) 17px 18px); }
.photo-one { background-color: #ddd9ce; }
.photo-two { background-color: #d6d8d2; }
.photo-three { background-color: #e1d8c9; }
.photo-index { position: absolute; z-index: 1; top: 20px; left: 25px; font: 700 86px/.9 var(--font-ui); opacity: .27; }
.placeholder-cross { position: absolute; z-index: 1; width: 68px; height: 68px; display: grid; place-items: center; border: 1px solid rgba(25,25,22,.5); font: 300 46px/1 var(--font-ui); }
.placeholder-label { position: relative; z-index: 1; padding: 5px 18px 8px; background: var(--signal); color: var(--signal-ink); font-size: 18px; line-height: 1.5; text-align: center; font-weight: 800; }
.placeholder-label small { font-size: 11px; font-weight: 600; }
.placeholder-foot { position: absolute; z-index: 1; right: 19px; bottom: 17px; font: 600 10px/1 var(--font-ui); letter-spacing: .12em; }
.gallery-slide figcaption { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); font-size: 12px; }
.gallery-slide figcaption span:first-child { color: var(--ink); font-weight: 700; }
.gallery-dots { margin: 20px 0 0; display: flex; justify-content: center; gap: 9px; }
.gallery-dots button { width: 12px; height: 12px; min-width: 44px; min-height: 44px; padding: 16px; border: 0; background: transparent; position: relative; }
.gallery-dots button::before { content: ""; position: absolute; inset: 16px; background: var(--chip); transition: background 150ms; }
.gallery-dots button.is-current::before { background: var(--signal); }
.gallery-note { margin: 2px 0 0; color: var(--ink-2); font-size: 11px; text-align: center; }

.site-footer { min-height: 140px; padding: 31px 5.4vw; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 24px; border-top: 1px solid var(--rule); }
.site-footer > p { margin: 0; justify-self: center; font-size: 13px; font-weight: 700; }
.site-footer > p span { color: var(--ink-2); font-size: 11px; font-weight: 400; }
.footer-code { justify-self: end; color: var(--ink-2); font: 500 10px/1.7 var(--font-ui); letter-spacing: .11em; text-align: right; }
.organizer { display: inline-flex; align-items: center; gap: 10px; }
.cone-mark { width: 28px; height: 28px; flex: none; color: var(--ink); }
.organizer-copy { display: grid; line-height: 1.25; }
.organizer-copy b { font: 700 13px/1.25 var(--font-ui); letter-spacing: .04em; }
.organizer-univ { font-weight: 500; }
.organizer-team { white-space: nowrap; }
.organizer-copy small { margin-top: 2px; color: var(--ink-2); font-size: 10px; letter-spacing: .05em; }

html[data-theme="dark"] .hero { filter: saturate(.8); }
html[data-theme="dark"] .hero-content, html[data-theme="dark"] .hero .eyebrow, html[data-theme="dark"] .hero-caption, html[data-theme="dark"] .hero-stamp { color: var(--ink); }
html[data-theme="dark"] .hero-caption { border-color: rgba(255,255,255,.42); }
html[data-theme="dark"] .hero-stamp { border-color: rgba(255,255,255,.5); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

@media (max-width: 980px) {
  .site-header { padding: 0 4vw; gap: 15px; }
  .primary-nav { gap: 0; }
  .primary-nav a { min-width: auto; padding: 0 10px; }
  .hero-content { padding-left: 7vw; }
  .facts-band { padding-left: 6vw; padding-right: 6vw; gap: 24px; grid-template-columns: 1.1fr repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .site-header { min-height: 68px; padding: 0 18px; justify-content: flex-start; }
  .brand { gap: 9px; }
  .brand-logo { height: 25px; }
  .brand-divider { height: 22px; }
  .brand-copy small { display: block; font-size: 10px; margin-top: 2px; }
  .eyebrow-more { display: none; }
  .brand-copy b { font-size: 16px; }
  .primary-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; height: auto; padding: 9px 18px 15px; flex-direction: column; align-items: stretch; gap: 2px; border-bottom: 1px solid var(--rule); background: var(--paper); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { min-height: 48px; justify-content: flex-start; padding: 0 13px; }
  .theme-toggle { position: absolute; top: 13px; right: 69px; margin-left: 0; width: 42px; height: 42px; }
  .menu-toggle { position: absolute; top: 13px; right: 18px; display: grid; width: 42px; height: 42px; }
  .hero { height: 620px; min-height: 0; }
  .hero-wash { right: 12%; background: color-mix(in srgb, var(--paper) 78%, transparent); }
  .hero-content { width: 100%; padding: 58px 24px 80px; }
  .hero h1 { font-size: 68px; }
  .hero-stamp { z-index: 2; }
  .edition-label { margin-top: 22px; }
  .hero-stamp { right: 22px; top: 25px; }
  .hero-caption { left: 22px; right: 22px; font-size: 9px; }
  .hero-caption span:last-child { display: none; }
  .ticker { min-height: 76px; padding: 12px 21px; flex-wrap: wrap; gap: 8px 15px; }
  .ticker-lead { width: 100%; }
  .ticker-words { gap: 13px; font-size: 20px; }
  .ticker-en { display: none; }
  .facts-band { padding: 55px 23px 58px; grid-template-columns: 1fr 1fr; gap: 28px 17px; }
  .section-intro { grid-column: 1 / -1; }
  .section-intro h2 { font-size: 25px; }
  .fact-number, .fact-word { min-height: 63px; font-size: 42px; }
  .fact-label { font-size: 11px; padding: 6px 7px; }
  .fact p { font-size: 12px; }
  .section-pad { padding: 55px 22px 62px; }
  .section-heading h2 { font-size: 25px; }
  .record-list { margin-top: 23px; }
  .record-list a { grid-template-columns: 36px 1fr auto; gap: 9px; padding: 13px 4px; }
  .record-category { display: none; }
  .record-title { grid-column: 2; grid-row: 1; font-size: 13px; }
  .record-state { grid-column: 3; grid-row: 1; font-size: 10px; padding: 3px 6px; }
  .invitation { padding: 42px 24px; min-height: 280px; grid-template-columns: 44px 1fr; gap: 15px; }
  .invitation-index { font-size: 30px; }
  .invitation h2 { font-size: 27px; }
  .invitation .button { grid-column: 2; justify-self: start; }
  .reading-page, .gallery-page { padding: 55px 22px 72px; }
  .page-head { margin-bottom: 42px; }
  .page-title-row h1 { font-size: 48px; }
  .page-lede { font-size: 14px; }
  .document-list li { padding: 17px 3px; grid-template-columns: 32px 1fr auto; gap: 8px 11px; }
  .doc-main h2 { font-size: 16px; }
  .doc-main p { font-size: 12px; }
  .doc-version { grid-column: 2; font-size: 10px; }
  .document-list .record-state { grid-column: 3; grid-row: 1 / span 2; }
  .notice { grid-template-columns: 1fr; gap: 8px; padding: 14px; }
  .timeline li { padding: 19px 3px; grid-template-columns: 35px 1fr; gap: 11px; }
  .timeline time { grid-column: 2; justify-self: start; padding-top: 3px; }
  .timeline h2 { font-size: 15px; }
  .timeline p { font-size: 12px; }
  .gallery-track { min-height: 0; }
  .photo-placeholder { height: 350px; }
  .photo-index { font-size: 64px; }
  .gallery-slide figcaption { font-size: 11px; }
  .site-footer { padding: 25px 22px; grid-template-columns: 1fr auto; gap: 16px; }
  .footer-code { display: none; }
  .footer-logo { height: 21px; }
  .cone-mark { width: 21px; height: 21px; }
  .organizer { gap: 7px; }
  .organizer-copy b { font-size: 11px; }
  .organizer-copy small { font-size: 9px; }
  .site-footer > p { grid-column: 1; justify-self: start; }
  .footer-code { grid-column: 2; grid-row: 1 / span 2; font-size: 9px; }
}
@media (max-width: 390px) {
  .brand { gap: 7px; }
  .brand-logo { height: 22px; }
  .brand-divider { height: 20px; }
  .brand-copy b { font-size: 14px; }
  .brand-copy small { font-size: 9px; }
  .hero-content { padding-left: 19px; padding-right: 19px; }
  .hero h1 { font-size: 52px; }
  .hero-intro { font-size: 14px; }
  .hero-actions { gap: 15px; }
  .button { gap: 9px; padding-left: 13px; padding-right: 18px; font-size: 12px; }
  .section-heading { align-items: flex-start; }
  .small-link { font-size: 11px; }
  .page-title-row h1 { font-size: 42px; }
  .page-index { font-size: 11px; }
  .gallery-track { min-height: 0; }
  .photo-placeholder { height: 300px; }
}

/* ---------- 变体：endfield-ui-skill 的六个维度 ----------
   data-ef-accent   yellow | lime | ice | amber
   data-ef-paper    neutral | warm | cool
   data-ef-cut      standard | tight | wide
   data-ef-ground   contours | grid | hatch | plain
   data-ef-density  standard | compact | roomy（本站按 px 排版，暂未接入整体缩放）
   data-ef-motion   full | calm（本站只有短过渡，不介入）
   预设：?variant=standard | coldstore | site | nightshift，由 assets/variant.js 写入。
   规则见 endfield-ui-skill/references/variation.md：强调色只做填充、深色下才当线；
   纸色只改纸/板/细线/浅填充，墨色和次要文字不动。 */

html[data-ef-accent="yellow"] { --signal: #fffa00; }
html[data-ef-accent="lime"] { --signal: #b8ff3d; }
html[data-ef-accent="ice"] { --signal: #7de6ff; }
html[data-ef-accent="amber"] { --signal: #ffb31f; }

html[data-ef-paper="neutral"] { --paper: #f4f4f2; --panel: #ffffff; --rule: #d9d9d6; --chip: #e4e4e0; }
html[data-ef-paper="warm"] { --paper: #f3f1ea; --panel: #fffefa; --rule: #dcd8cc; --chip: #e7e3d8; }
html[data-ef-paper="cool"] { --paper: #f0f3f5; --panel: #ffffff; --rule: #d3dadf; --chip: #e0e6ea; }
html[data-ef-paper="neutral"][data-theme="dark"] { --paper: #191919; --panel: #222222; --rule: #353535; --chip: #2e2e2e; }
html[data-ef-paper="warm"][data-theme="dark"] { --paper: #1b1a17; --panel: #24221e; --rule: #38352f; --chip: #302d28; }
html[data-ef-paper="cool"][data-theme="dark"] { --paper: #171a1c; --panel: #1f2326; --rule: #323a3f; --chip: #2a3034; }

html[data-ef-cut="tight"] { --cut-k: .6; }
html[data-ef-cut="standard"] { --cut-k: 1; }
html[data-ef-cut="wide"] { --cut-k: 1.6; }

/* 底纹：默认浅色（标准）在纸面下铺等高线，深色（夜班）不铺；斜线纹在主视觉内部 */
/* 底纹：默认浅色（工地）不铺页面底纹——斜线纹在主视觉内部；深色（夜班）也不铺。
   ?variant=standard / ?ground=contours 时才铺等高线，?ground=grid 铺网格。 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: none;
  -webkit-mask: none;
  mask: none;
}
html[data-theme="dark"] body::before { background: none; -webkit-mask: none; mask: none; }
html[data-ef-ground="contours"] body::before {
  background: color-mix(in srgb, var(--ink) 9%, transparent);
  -webkit-mask:
    url("assets/contours/contour-a.svg") right -5rem top -3rem / 34rem auto no-repeat,
    url("assets/contours/contour-b.svg") left -4rem bottom -7rem / 26rem auto no-repeat;
  mask:
    url("assets/contours/contour-a.svg") right -5rem top -3rem / 34rem auto no-repeat,
    url("assets/contours/contour-b.svg") left -4rem bottom -7rem / 26rem auto no-repeat;
}
html[data-ef-ground="grid"] body::before {
  background: transparent;
  background-image:
    linear-gradient(color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask: none;
  mask: none;
}
html[data-ef-ground="plain"] body::before,
html[data-ef-ground="hatch"] body::before { background: none; -webkit-mask: none; mask: none; }

/* 冷库：主视觉是暖色插画，冷纸下整体降温，插画里的强调色块也跟到冰蓝 */
html[data-ef-paper="cool"] .hero-slide {
  filter: saturate(.35) sepia(.15) hue-rotate(165deg) brightness(1.06);
}
/* ---------- 规则 / 资料中心：阅读版式（纸页 + 边栏台账） ---------- */
.docs-page { padding: clamp(26px, 3.6vw, 46px) 0 0; }
.docs-spread {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(0, 1fr);
  border-top: 1px solid var(--rule);
}
.docs-sheet {
  min-width: 0;
  padding: clamp(38px, 4.2vw, 60px) clamp(22px, 3.4vw, 54px) clamp(46px, 4.8vw, 74px);
  background: var(--panel);
  border-right: 1px solid var(--rule);
}
.docs-margin { min-width: 0; padding: clamp(38px, 4.2vw, 60px) clamp(22px, 2.4vw, 38px); }
.docs-toc { position: sticky; top: 96px; }

.docs-crumb { display: flex; flex-wrap: wrap; gap: 0 .6em; margin: 0 0 14px; color: var(--ink-2); font: 600 11px/1.5 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; }
.docs-crumb a { border-bottom: 1px solid var(--rule); }
.docs-crumb > * + *::before { content: "/"; margin-right: .6em; color: var(--rule); }

.docs-ids { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.docs-tag {
  padding: 2px calc(5px + var(--cut)) 2px 8px;
  background: var(--ink);
  color: var(--panel);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
  font: 600 11px/1.7 var(--font-ui);
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}
.docs-tag.is-current { background: var(--signal); color: var(--signal-ink); }
.docs-kv { display: inline-flex; align-items: center; background: var(--chip); font: 500 11px/1.7 var(--font-ui); letter-spacing: .06em; }
.docs-kv > * { padding: 2px 8px; }
.docs-kv > :first-child { color: var(--ink-2); border-right: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); }
.docs-state { padding: 1px 8px; border: 1px dashed var(--rule); color: var(--ink-2); font: 600 10px/1.7 var(--font-ui); letter-spacing: .08em; white-space: nowrap; }

.docs-facts { display: flex; flex-wrap: wrap; margin: 0 0 20px; padding: 0; list-style: none; color: var(--ink-2); font: 500 11px/1.6 var(--font-ui); letter-spacing: .09em; text-transform: uppercase; }
.docs-facts li { margin-left: -1px; padding: 0 12px; border-left: 1px solid var(--rule); }
.docs-facts li:first-child { margin-left: 0; padding-left: 0; border-left: 0; }
.docs-facts b { color: var(--ink); font-variant-numeric: tabular-nums; }

.docs-title { margin: 20px 0 18px; font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 4.6vw, 60px); line-height: 1.12; letter-spacing: .02em; }
.docs-slash { margin: 0 .14em; color: var(--ink-2); font-size: .78em; vertical-align: .06em; }
.docs-lede { max-width: 38em; margin: 20px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.9; }

.docs-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin: 46px 0 0; padding-bottom: 10px; border-bottom: 1px solid var(--ink); font-size: 19px; font-weight: 800; }
.docs-field { color: var(--ink-2); font: 600 10px/1.6 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }

.docs-records { margin: 0; padding: 0; list-style: none; }
.docs-records li { border-bottom: 1px solid var(--rule); }
.docs-record { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 15px 10px; transition: background-color 180ms, padding 180ms var(--ease-mech); }
.docs-record::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--trace); transform: scaleY(0); transform-origin: top; transition: transform 180ms var(--ease-mech); }
.docs-record:hover { background: var(--chip); padding-left: 16px; }
.docs-record:hover::before { transform: scaleY(1); }
.docs-name { display: grid; gap: 3px; min-width: 0; }
.docs-name b { font-size: 15px; font-weight: 700; }
.docs-name small { color: var(--ink-2); font-size: 12px; line-height: 1.6; }

.docs-empty { max-width: 34em; margin: 18px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.85; }
.docs-prose { max-width: 38em; margin-top: 18px; font-size: 15px; line-height: 1.9; }
.docs-prose p { margin: 0 0 14px; }
.docs-prose strong { font-weight: 700; }
.docs-prose blockquote { margin: 20px 0 0; padding-left: 16px; border-left: 3px solid var(--ink); color: var(--ink-2); }

.docs-margin-h { margin: 34px 0 10px; color: var(--ink-2); font: 600 10px/1.6 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; }
.docs-margin-h:first-child { margin-top: 0; }
.docs-toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--rule); }
.docs-toc ol a { display: block; margin-left: -1px; padding: 6px 0 6px 14px; border-left: 3px solid transparent; color: var(--ink-2); font-size: 13px; }
.docs-toc ol a[aria-current] { color: var(--ink); border-left-color: var(--trace); }
.docs-ledger { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.docs-ledger li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.docs-note { margin: 26px 0 0; color: var(--ink-2); font-size: 12px; line-height: 1.8; }

@media (max-width: 1099px) {
  .docs-spread { grid-template-columns: minmax(0, 1fr); }
  .docs-sheet { border-right: 0; border-bottom: 1px solid var(--rule); }
}
@media (max-width: 720px) {
  .docs-page { padding-top: 16px; }
  .docs-toc { position: static; }
  .docs-sheet { padding: 34px 22px 46px; }
  .docs-margin { padding: 34px 22px 44px; }
  .docs-title { font-size: 38px; }
  .docs-group-head { margin-top: 36px; font-size: 17px; }
  .docs-record { grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; padding: 14px 6px; }
  .docs-record > :nth-child(3),
  .docs-record > :nth-child(4) { grid-column: 2; justify-self: start; }
  .docs-record:hover { padding-left: 10px; }
}
/* ---------- 动态内容（后台发布后注入） ---------- */
.bulletin-list { margin: 26px 0 0; padding: 0; list-style: none; }
.bulletin-item { display: grid; gap: 10px; padding: 22px 0 24px; border-top: 1px solid var(--rule); }
.bulletin-list > li:last-child { border-bottom: 1px solid var(--rule); }
.bulletin-meta { display: flex; align-items: baseline; gap: 14px; color: var(--ink-2); font: 600 10px/1.5 var(--font-ui); letter-spacing: .1em; }
.bulletin-meta time { font-variant-numeric: tabular-nums; }
.bulletin-item h3 { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.5; }
.bulletin-item p { margin: 0; max-width: 46em; color: var(--ink-2); font-size: 14px; line-height: 1.9; white-space: pre-line; }
.bulletin-pin { padding: 1px 7px; background: var(--signal); color: var(--signal-ink); font-weight: 700; }
.docs-versions .docs-record { cursor: default; }
.docs-versions .docs-record:hover { background: transparent; padding-left: 10px; }
.docs-versions .docs-record:hover::before { transform: scaleY(0); }
/* ---------- 公告：摘要 + 展开（Markdown 正文） ---------- */
.bulletin-list { margin: 26px 0 0; padding: 0; list-style: none; counter-reset: bulletin; }
.bulletin-item { border-top: 1px solid var(--rule); }
.bulletin-list > .bulletin-item:last-child { border-bottom: 1px solid var(--rule); }
.bulletin-head {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 20px 6px 18px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms, padding 160ms var(--ease-mech);
}
.bulletin-head:hover { background: color-mix(in srgb, var(--chip) 55%, transparent); padding-left: 14px; }
.bulletin-meta { display: flex; align-items: baseline; gap: 12px; color: var(--ink-2); font: 600 10px/1.5 var(--font-ui); letter-spacing: .1em; }
.bulletin-meta time { font-variant-numeric: tabular-nums; }
.bulletin-title { font-size: 18px; font-weight: 800; line-height: 1.5; }
.bulletin-excerpt { max-width: 46em; color: var(--ink-2); font-size: 13px; line-height: 1.8; }
.bulletin-toggle { color: var(--ink-2); font: 700 10px/1.5 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; }
.bulletin-toggle::after { content: " ↓"; }
.bulletin-item.is-open .bulletin-toggle::after { content: " ↑"; }
.bulletin-body { padding: 4px 6px 24px; }
.bulletin-pin { padding: 1px 7px; background: var(--signal); color: var(--signal-ink); font-weight: 700; }

/* Markdown 正文排版 */
.md-body { max-width: 46em; font-size: 14px; line-height: 1.9; color: var(--ink); }
.md-body > :first-child { margin-top: 0; }
.md-body p { margin: 0 0 12px; }
.md-body h1, .md-body h2, .md-body h3, .md-body h4 { margin: 22px 0 10px; font-weight: 800; line-height: 1.4; }
.md-body h1 { font-size: 22px; }
.md-body h2 { font-size: 19px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
.md-body h3 { font-size: 16px; }
.md-body h4 { font-size: 14px; }
.md-body ul, .md-body ol { margin: 0 0 12px; padding-left: 22px; }
.md-body li { margin: 4px 0; }
.md-body a { border-bottom: 1px solid currentColor; }
.md-body a:hover { background: var(--signal); color: var(--signal-ink); border-bottom-color: transparent; }
.md-body code { padding: 1px 5px; background: var(--chip); font: 400 12px/1.6 monospace; }
.md-body pre { margin: 0 0 12px; padding: 12px 14px; overflow: auto; background: var(--chip); font: 400 12px/1.7 monospace; }
.md-body pre code { padding: 0; background: none; }
.md-body blockquote { margin: 0 0 12px; padding-left: 14px; border-left: 3px solid var(--ink); color: var(--ink-2); }
.md-body img { max-width: 100%; height: auto; }
.md-body table { width: 100%; margin: 0 0 12px; border-collapse: collapse; font-size: 13px; }
.md-body th, .md-body td { padding: 7px 9px; border: 1px solid var(--rule); text-align: left; }
.md-body th { background: var(--chip); font-weight: 700; }
.md-body hr { margin: 18px 0; border: 0; border-top: 1px solid var(--rule); }
.md-loading { color: var(--ink-2); font-size: 12px; }

/* ---------- 版本：折叠展开 ---------- */
.docs-versions { margin: 0; padding: 0; list-style: none; }
.version-item { border-bottom: 1px solid var(--rule); }
.version-head {
  display: grid;
  grid-template-columns: 14px auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 14px 10px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms, padding 160ms var(--ease-mech);
}
.version-head:hover { background: color-mix(in srgb, var(--chip) 55%, transparent); padding-left: 16px; }
.version-caret { color: var(--ink-2); font-size: 9px; line-height: 1; transition: transform 180ms var(--ease-mech); }
.version-item.is-open .version-caret { transform: rotate(90deg); }
.version-main { display: grid; gap: 3px; min-width: 0; }
.version-main b { font-size: 15px; font-weight: 700; }
.version-main small { color: var(--ink-2); font-size: 12px; line-height: 1.6; }
.version-body { padding: 2px 10px 16px 46px; display: grid; gap: 8px; }
.version-file {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--chip) 45%, transparent);
  border-left: 3px solid var(--trace);
  font-size: 13px;
}
.version-file:hover { background: var(--chip); }
.version-file-name { font-weight: 700; }
.version-file-meta { color: var(--ink-2); font-size: 11px; }
.version-file-go { margin-left: auto; color: var(--ink-2); font: 700 10px/1.5 var(--font-ui); letter-spacing: .1em; white-space: nowrap; }
.version-nofile { margin: 0; padding: 8px 0; color: var(--ink-2); font-size: 12px; }

/* ---------- 队伍介绍卡片 ---------- */
.team-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 26px 30px;
  margin-top: 22px;
  padding: 26px 24px;
  background: var(--panel);
  border: 1px solid var(--rule);
}
.team-mark { display: grid; place-items: center; }
.team-mark svg { width: 82px; height: 82px; color: var(--ink); }
.team-copy h2 { margin: 8px 0 10px; font-family: var(--font-display); font-size: 30px; font-weight: 400; line-height: 1.2; }
.team-copy p { margin: 0 0 8px; max-width: 46em; color: var(--ink-2); font-size: 14px; line-height: 1.9; }
.team-facts { grid-column: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--rule); border: 1px solid var(--rule); }
.team-facts li { display: grid; gap: 3px; padding: 10px 12px; background: var(--panel); }
.team-facts span { color: var(--ink-2); font: 600 10px/1.4 var(--font-ui); letter-spacing: .12em; }
.team-facts b { font-size: 13px; font-weight: 700; }

@media (max-width: 720px) {
  .version-head { grid-template-columns: 12px auto minmax(0, 1fr); gap: 10px; }
  .version-head > time { grid-column: 3; }
  .version-body { padding-left: 14px; }
  .team-card { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .team-mark { justify-items: start; }
  .team-mark svg { width: 62px; height: 62px; }
  .team-facts { grid-column: 1; }
}
/* ---------- 赛事进程：第一条里的分组名单 ---------- */
.timeline-status.is-done { background: var(--ink); color: var(--panel); }
.timeline-item--roster .timeline-no { padding-top: 3px; }
.roster-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  padding: 6px 11px;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink);
  font: 700 11px/1.4 var(--font-ui);
  letter-spacing: .08em;
  cursor: pointer;
}
.roster-toggle:hover { background: var(--chip); }
.roster-count { color: var(--ink-2); font-weight: 600; letter-spacing: .06em; }
.roster-caret { color: var(--ink-2); font-size: 8px; line-height: 1; transition: transform 180ms var(--ease-mech); }
[aria-expanded="true"] > .roster-caret { transform: rotate(90deg); }
.roster { margin-top: 12px; border-top: 1px solid var(--rule); }
.roster-groups { margin: 0; padding: 0; list-style: none; }
.roster-group { border-bottom: 1px solid var(--rule); }
.roster-head {
  display: grid;
  grid-template-columns: 12px auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 11px 6px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms;
}
.roster-head:hover { background: color-mix(in srgb, var(--chip) 55%, transparent); }
.roster-name { font-size: 14px; font-weight: 800; }
.roster-summary { justify-self: end; color: var(--ink-2); font: 600 10px/1.4 var(--font-ui); letter-spacing: .08em; white-space: nowrap; }
.roster-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 2px 6px 16px 28px; }
.roster-col { display: grid; gap: 6px; }
.roster-role { color: var(--ink-2); font: 700 9px/1.4 var(--font-ui); letter-spacing: .14em; }
.roster-members { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.roster-members li { padding: 3px 9px; background: var(--chip); font-size: 12px; }
.roster-members li.is-lead { background: transparent; border: 1px solid #b3261e; color: #b3261e; font-weight: 700; }
.roster-note { margin: 12px 0 0; color: var(--ink-2); font-size: 11px; line-height: 1.75; }

@media (max-width: 720px) {
  .roster-body { grid-template-columns: minmax(0, 1fr); padding-left: 22px; }
  .roster-summary { white-space: normal; text-align: right; }
}
/* 时间轴对 li 的通用规则会误命中分组名单里的 li（display:grid / 68px 1fr 110px / min-height 130px），
   这里给名单内部的 li 显式复位，避免组名竖排、成员被拉成大方块。 */
.timeline .roster-groups > li,
.timeline .roster-members > li {
  display: block;
  min-height: 0;
  padding: 0;
  gap: 0;
  grid-template-columns: none;
  border: 0;
}
.timeline li.roster-group { border-bottom: 1px solid var(--rule); }
.timeline .roster-members > li { padding: 3px 9px; background: var(--chip); }
.timeline .roster-members > li.is-lead { background: transparent; border: 1px solid #b3261e; color: #b3261e; font-weight: 700; }
.timeline li.timeline-item--roster { min-height: 0; }
/* 名单底部岗位行：队长红、项管蓝、技术指导墨色 */
.roster-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 16px 0 0;
  padding: 12px 0 0;
  list-style: none;
  border-top: 1px dashed var(--rule);
}
.roster-roles li { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.roster-roles b { font-weight: 700; }
.roster-role-tag { padding: 2px 8px; font: 700 10px/1.6 var(--font-ui); letter-spacing: .1em; border: 1px solid currentColor; }
.roster-role-tag.is-captain { color: #b3261e; }
.roster-role-tag.is-pm { color: #1f5fb0; }
.roster-role-tag.is-tech { color: var(--ink); }
/* 成员若被标为项管：蓝色描边（把 li 的 class 改成 is-pm 即可） */
.roster-members li.is-pm { background: transparent; border: 1px solid #1f5fb0; color: #1f5fb0; font-weight: 700; }
/* ---------- 公告卡片（列表里） ---------- */
.bulletin-card {
  display: grid;
  gap: 9px;
  width: 100%;
  padding: 22px 8px 20px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: background-color 180ms, padding 180ms var(--ease-mech);
}
.bulletin-card:hover { background: color-mix(in srgb, var(--chip) 55%, transparent); padding-left: 16px; padding-right: 16px; }
.bulletin-card__meta { display: flex; align-items: baseline; gap: 12px; color: var(--ink-2); font: 600 10px/1.5 var(--font-ui); letter-spacing: .1em; }
.bulletin-card__meta time { font-variant-numeric: tabular-nums; }
.bulletin-card__cat { padding: 1px 7px; border: 1px solid var(--rule); letter-spacing: .12em; }
.bulletin-card__pin { padding: 1px 7px; background: var(--signal); color: var(--signal-ink); font-weight: 700; letter-spacing: .1em; }
.bulletin-card__title { font-size: 19px; font-weight: 800; line-height: 1.45; }
.bulletin-card:hover .bulletin-card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.bulletin-card__excerpt { max-width: 44em; color: var(--ink-2); font-size: 13px; line-height: 1.8; }
.bulletin-card__more { color: var(--ink-2); font: 700 10px/1.5 var(--font-ui); letter-spacing: .14em; }
.bulletin-card__more::after { content: " ↗"; }
.bulletin-card:hover .bulletin-card__more { color: var(--ink); }

/* ---------- 公告全文浮层 ---------- */
html.is-bulletin-open { overflow: hidden; }
.bulletin-modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 24px; }
.bulletin-modal[hidden] { display: none; }
.bulletin-modal__veil {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, #14110d 58%, transparent);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 200ms ease;
}
.bulletin-modal.is-open .bulletin-modal__veil { opacity: 1; }
.bulletin-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  max-height: min(86vh, 920px);
  background: var(--panel);
  border: 1px solid var(--ink);
  box-shadow: 0 30px 70px -24px rgba(18, 16, 12, .55);
  opacity: 0;
  transform: translateY(20px) scale(.992);
  transition: opacity 200ms ease, transform 260ms var(--ease-mech);
  outline: none;
}
.bulletin-modal.is-open .bulletin-modal__panel { opacity: 1; transform: none; }
.bulletin-modal__stripe { display: flex; flex: none; height: 3px; }
.bulletin-modal__stripe i { flex: 1; }
.bulletin-modal__stripe i:nth-child(1) { background: #ff00f0; }
.bulletin-modal__stripe i:nth-child(2) { background: var(--signal); }
.bulletin-modal__stripe i:nth-child(3) { background: #00ffa2; }
.bulletin-modal__head { position: relative; flex: none; padding: 26px 30px 18px; border-bottom: 1px solid var(--rule); }
.bulletin-modal__head .eyebrow { margin: 0 0 12px; }
.bulletin-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 160ms, color 160ms, border-color 160ms;
}
.bulletin-modal__close:hover, .bulletin-modal__close:focus-visible { background: var(--ink); color: var(--panel); border-color: var(--ink); }
.bulletin-modal__meta { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; color: var(--ink-2); font: 600 10px/1.5 var(--font-ui); letter-spacing: .1em; }
.bulletin-modal__meta time { font-variant-numeric: tabular-nums; }
.bulletin-modal__tag { padding: 1px 7px; border: 1px solid var(--rule); letter-spacing: .12em; }
.bulletin-modal__pin { padding: 1px 7px; background: var(--signal); color: var(--signal-ink); font-weight: 700; }
.bulletin-modal__index { margin-left: auto; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bulletin-modal__head h2 {
  margin: 0;
  padding-right: 56px;
  /* 公告标题是后台动态内容，用正文字体加粗渲染，避免花体子集缺字时混排 */
  font-family: var(--font-text);
  font-size: 27px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.005em;
}
.bulletin-modal__body { flex: 1 1 auto; overflow: auto; padding: 24px 30px 32px; }
.bulletin-modal__body.md-body { max-width: none; font-size: 14.5px; line-height: 1.95; }
.bulletin-modal__body::-webkit-scrollbar { width: 8px; }
.bulletin-modal__body::-webkit-scrollbar-thumb { background: var(--rule); }
.bulletin-modal__foot {
  display: flex;
  flex: none;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 30px 14px;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  font: 600 9.5px/1.5 var(--font-ui);
  letter-spacing: .12em;
}

@media (max-width: 640px) {
  .bulletin-modal { padding: 0; align-items: flex-end; }
  .bulletin-modal__panel { width: 100%; max-height: 92svh; border-left: 0; border-right: 0; border-bottom: 0; transform: translateY(30px); }
  .bulletin-modal__head { padding: 20px 20px 14px; }
  .bulletin-modal__head h2 { font-size: 24px; padding-right: 48px; }
  .bulletin-modal__close { top: 14px; right: 14px; width: 34px; height: 34px; }
  .bulletin-modal__body { padding: 18px 20px 24px; }
  .bulletin-modal__foot { padding: 10px 20px 12px; }
  .bulletin-modal__hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bulletin-modal__panel, .bulletin-modal__veil { transition: none; }
}
/* ---------- 主视觉照片轮播 ---------- */
.hero-media { position: absolute; z-index: -2; inset: 0; overflow: hidden; background: #d5d1c5; }
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 700ms ease, transform 9s linear;
}
.hero-slide.is-active { opacity: 1; transform: scale(1.055); }
.hero-switch-wrap {
  position: absolute;
  right: 5.4vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 10px;
}
.hero-switch {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--ink) 52%, transparent);
  background: color-mix(in srgb, var(--panel) 76%, transparent);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font: 400 21px/1 var(--font-ui);
  cursor: pointer;
  transition: background-color 180ms, color 180ms, border-color 180ms, transform 200ms var(--ease-mech);
}
.hero-switch:hover, .hero-switch:focus-visible { background: var(--ink); color: var(--panel); border-color: var(--ink); transform: translateX(3px); }
.hero-count {
  padding: 3px 8px;
  background: color-mix(in srgb, var(--panel) 76%, transparent);
  color: var(--ink);
  font: 600 10px/1.4 var(--font-ui);
  letter-spacing: .14em;
  font-variant-numeric: tabular-nums;
}
.hero-count b { font-weight: 700; }

@media (max-width: 900px) {
  .hero-slide { object-position: 58% center; opacity: .82; }
  .hero-slide.is-active { opacity: 1; }
  .hero-switch-wrap { right: 22px; top: auto; bottom: 84px; transform: none; }
  .hero-switch { width: 46px; height: 46px; font-size: 18px; }
  .hero-wash {
    background: linear-gradient(90deg, var(--paper) 0 46%, color-mix(in srgb, var(--paper) 90%, transparent) 68%, transparent 100%);
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
  }
}
/* ---------- 风采展示：照片与放大 ---------- */
.gallery-photo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: #dedbd1;
  overflow: hidden;
  cursor: zoom-in;
}
.gallery-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-mech); }
.gallery-photo:hover img, .gallery-photo:focus-visible img { transform: scale(1.035); }
.gallery-photo::after {
  content: "放大查看 ↗";
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 9px 13px;
  background: color-mix(in srgb, var(--ink) 84%, transparent);
  color: var(--panel);
  font: 700 10px/1 var(--font-ui);
  letter-spacing: .12em;
  opacity: 0;
  transition: opacity 180ms;
}
.gallery-photo:hover::after, .gallery-photo:focus-visible::after { opacity: 1; }

html.is-lightbox-open { overflow: hidden; }
.photo-lightbox { position: fixed; inset: 0; z-index: 130; display: flex; align-items: center; justify-content: center; padding: 44px 20px; }
.photo-lightbox[hidden] { display: none; }
.photo-lightbox__veil { position: absolute; inset: 0; background: color-mix(in srgb, #0f0e0c 84%, transparent); backdrop-filter: blur(4px); opacity: 0; transition: opacity 200ms ease; }
.photo-lightbox.is-open .photo-lightbox__veil { opacity: 1; }
.photo-lightbox__figure {
  position: relative;
  margin: 0;
  max-width: min(1180px, 92vw);
  max-height: 88vh;
  display: grid;
  background: #0f0e0c;
  border: 1px solid color-mix(in srgb, #fff 26%, transparent);
  opacity: 0;
  transform: translateY(16px) scale(.992);
  transition: opacity 200ms ease, transform 260ms var(--ease-mech);
}
.photo-lightbox.is-open .photo-lightbox__figure { opacity: 1; transform: none; }
.photo-lightbox__figure img { display: block; width: 100%; max-height: calc(88vh - 44px); object-fit: contain; }
.photo-lightbox__figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  font: 600 11px/1.5 var(--font-ui);
  letter-spacing: .06em;
  border-top: 1px solid var(--rule);
}
.photo-lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid color-mix(in srgb, #fff 34%, transparent);
  background: color-mix(in srgb, #0f0e0c 58%, transparent);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 160ms, color 160ms;
}
.photo-lightbox__close:hover { background: #fff; color: #111; }
.photo-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 1px solid color-mix(in srgb, #fff 34%, transparent);
  background: color-mix(in srgb, #0f0e0c 58%, transparent);
  color: #fff;
  font: 600 20px/1 var(--font-ui);
  cursor: pointer;
  transition: background-color 160ms, color 160ms;
}
.photo-lightbox__nav:hover { background: #fff; color: #111; }
.photo-lightbox__nav--prev { left: 20px; }
.photo-lightbox__nav--next { right: 20px; }

@media (max-width: 720px) {
  .gallery-photo { height: auto; aspect-ratio: 16 / 9; }
  .photo-lightbox { padding: 16px; }
  .photo-lightbox__figure { max-width: 94vw; }
  .photo-lightbox__nav { width: 42px; height: 42px; font-size: 17px; }
  .photo-lightbox__nav--prev { left: 8px; }
  .photo-lightbox__nav--next { right: 8px; }
  .photo-lightbox__close { top: 10px; right: 10px; }
}

/* 顶栏三格布局：品牌 / 导航 / 主题按钮；导航严格居中，不再被左右宽度差挤偏 */
@media (min-width: 1200px) {
  /* 够宽时才三格居中：品牌列和按钮列等宽，导航严格落在视口中心 */
  .site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); column-gap: 24px; }
  .site-header .brand { justify-self: start; }
  .site-header .primary-nav { justify-self: center; }
  .site-header .theme-toggle { justify-self: end; margin-left: 0; }
}
@media (min-width: 901px) and (max-width: 1199px) {
  /* 中等宽度放不下三格居中，保持两端对齐，导航略偏但不会压到品牌 */
  .site-header { justify-content: space-between; }
}


/* ---------- 赛事名片（首页 facts band） ---------- */
.section-lede { margin: 14px 0 0; max-width: 32em; color: var(--ink-2); font-size: 13.5px; line-height: 1.9; text-wrap: pretty; }
.facts-meta { margin: 20px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.facts-meta li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.facts-meta span { color: var(--ink-2); font: 600 10px/1.5 var(--font-ui); letter-spacing: .14em; }
.facts-meta b { font-size: 13px; font-weight: 700; text-align: right; }
/* 大词改成中文标题体，不再用看不懂的 02 / OPEN / C·I·E */
.fact-number, .fact-word { min-height: 76px; display: flex; align-items: center; font-family: var(--font-display); font-size: 42px; font-weight: 400; line-height: 1.05; letter-spacing: .02em; }
/* 段落不再定死 240px，跟着列宽自适应，长句自然折行 */
.fact p { margin: 12px 0 0; color: var(--ink-2); font-size: 13px; line-height: 1.85; text-wrap: pretty; }
.facts-tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.facts-tags span { padding: 7px 13px; border: 1px solid var(--rule); color: var(--ink-2); font: 600 10px/1.5 var(--font-ui); letter-spacing: .14em; }

@media (max-width: 720px) {
  .fact-number, .fact-word { min-height: 54px; font-size: 30px; }
  .section-lede { font-size: 12.5px; }
  .facts-meta b { font-size: 12px; }
}
/* 赛事名片：列宽与底部信息条 */
@media (min-width: 901px) {
  .facts-band { grid-template-columns: 1.05fr repeat(3, 1fr); padding: 86px 6.5vw 88px; }
  .fact p { max-width: none; }
}
.facts-meta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 32px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}
.facts-meta li { display: grid; gap: 5px; padding: 14px 0 13px; border-bottom: 1px solid var(--rule); }
.facts-meta span { color: var(--ink-2); font: 600 10px/1.5 var(--font-ui); letter-spacing: .14em; }
.facts-meta b { font-size: 14px; font-weight: 800; }

@media (max-width: 900px) {
  .facts-band { padding: 62px 6.5vw 66px; }
  .facts-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
}
@media (max-width: 720px) {
  .facts-band { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .fact p { max-width: none; }
  .fact-number, .fact-word { min-height: 0; font-size: 34px; }
  .facts-meta { grid-template-columns: minmax(0, 1fr); }
}
/* 三条 fact 的桌面网格：导语 + 3 列并排 */
@media (min-width: 901px) {
  .facts-band { grid-template-columns: 1.05fr repeat(3, 1fr); }
}
/* 赛事名片底部：现场照片一排 */
.facts-photos {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 0;
}
.facts-photo { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--rule); background: var(--chip); }
.facts-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-mech); }
.facts-photo:hover img, .facts-photo:focus-visible img { transform: scale(1.04); }
.facts-photo span {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 7px 12px;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  color: var(--panel);
  font: 700 10px/1.4 var(--font-ui);
  letter-spacing: .16em;
}

@media (max-width: 900px) {
  .facts-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-photo:last-child { display: none; }
}
@media (max-width: 720px) {
  .facts-photos { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .facts-photo:last-child { display: block; }
  .facts-photo { scroll-snap-align: start; }
}
/* 底部照片不再有文字标签 */
.facts-photo span { display: none; }

/* C·ONE 里的间隔号：中文字体的 · 是等宽 16px，会撑成 “C · ONE”；
   这里单独用西文字体排版，恢复紧凑 */
.cdot { font-family: var(--font-ui); font-style: normal; font-weight: 600; letter-spacing: 0; }



/* 邀请区左侧：矢量标识水印（浅色主题反白，深色主题保持墨色） */
.inv-lockup { display: block; height: 96px; width: auto; opacity: .34; filter: invert(1); }
html[data-theme="dark"] .inv-lockup { filter: none; }

@media (max-width: 900px) {
  .invitation { grid-template-columns: auto 1fr; }
}
@media (max-width: 560px) {
}

/* 页头品牌：文字行浮在矢量标识上方，标识高度与左侧 IRC 字标一致 */
.brand-stack { position: relative; display: block; width: max-content; }
.brand-stack__text {
  position: absolute;
  left: 0;
  bottom: 100%;
  margin-bottom: 2px;
  color: var(--ink-2);
  font-family: "PangMenZhengDao", var(--font-ui);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: .02em;
  white-space: nowrap;
}
.brand-stack__logo { display: block; height: 30px; width: auto; }
html[data-theme="dark"] .brand-stack__logo { filter: invert(1); }

@media (max-width: 900px) {
  .brand-stack__logo { height: 25px; }
  .brand-stack__text { font-size: 9px; }
}
@media (max-width: 560px) {
  .brand-stack__logo { height: 22px; }
  .brand-stack__text { font-size: 8px; letter-spacing: .01em; }
}

@media (max-width: 900px) { .inv-lockup { height: 78px; } }
@media (max-width: 560px) { .inv-lockup { height: 66px; } }

