/* =========================================================
   半岛体育 · 共享样式表  /assets/site.css
   色系：夜场深靛 · 熔金橙 · 沙砾米白 · 信号红
   结构：页面特色布局由页面专属 CSS 承接，此处只负责外壳与通用组件
   ========================================================= */

/* ---------- 1. 重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol { margin: 0; }

ul, ol { padding: 0; list-style: none; }

img, svg, video { display: block; max-width: 100%; height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }

button { background: none; border: 0; padding: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 2. 变量 ---------- */
:root {
  --ind-night: #0B1B33;
  --ind-mid:   #16305A;
  --ind-soft:  #2A4B85;
  --gold:      #E8A33D;
  --gold-2:    #F2C879;
  --gold-deep: #96631A;
  --sand:      #F5EFE3;
  --paper:     #E3D8C4;
  --signal:    #D03A2B;
  --stone:     #6E6A63;
  --moss:      #5C6B4F;
  --clay:      #A9603F;
  --char:      #1B2430;

  --shell: 1180px;
  --gutter: 20px;
  --radius: 3px;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
               -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Noto Sans CJK SC", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas,
               "Liberation Mono", "Courier New", monospace;

  --ease-out: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.9;
  color: var(--char);
  background-color: var(--sand);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--ind-night);
}
h1 { font-size: clamp(34px, 6vw, 64px); }
h2 { font-size: clamp(25px, 3.4vw, 38px); }
h3 { font-size: clamp(19px, 2vw, 23px); line-height: 1.35; }

strong { font-weight: 700; color: var(--ind-night); }

::selection { background: var(--gold); color: var(--ind-night); }

/* ---------- 4. 布局容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page-wrap {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: 36px 96px;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  line-height: 1.4;
  white-space: nowrap;
  transition: background-color .22s ease, color .22s ease,
              border-color .22s ease, transform .22s var(--ease-out);
}

.btn--gold {
  background: var(--gold);
  color: var(--ind-night);
  border-color: var(--gold);
}
.btn--gold:hover {
  background: var(--gold-2);
  border-color: var(--gold-2);
  transform: translate(-1px, -1px);
}

.btn--ghost {
  background: transparent;
  color: var(--sand);
  border-color: rgba(245, 239, 227, .38);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-2);
  transform: translate(-1px, -1px);
}

.btn--line {
  background: transparent;
  color: var(--ind-night);
  border-color: var(--paper);
  box-shadow: 3px 3px 0 0 rgba(227, 216, 196, .85);
}
.btn--line:hover {
  border-color: var(--ind-night);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 0 rgba(227, 216, 196, .95);
}

/* ---------- 6. 标签 ---------- */
.lbl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lbl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  line-height: 1.6;
  white-space: nowrap;
}

.lbl--gold {
  color: var(--gold-deep);
  border-color: rgba(150, 99, 26, .45);
  background: rgba(232, 163, 61, .12);
}
.lbl--moss {
  color: var(--moss);
  border-color: rgba(92, 107, 79, .45);
  background: rgba(92, 107, 79, .1);
}
.lbl--clay {
  color: var(--clay);
  border-color: rgba(169, 96, 63, .45);
  background: rgba(169, 96, 63, .1);
}
.lbl--signal {
  color: var(--signal);
  border-color: rgba(208, 58, 43, .45);
  background: rgba(208, 58, 43, .1);
}

/* ---------- 7. 卡片 · 数字 · 图片容器 ---------- */
.card {
  position: relative;
  background: var(--sand);
  border: 1px solid var(--paper);
  border-radius: var(--radius);
  padding: 24px 22px;
}

.card--paper { box-shadow: 6px 6px 0 0 rgba(227, 216, 196, .92); }

.card--slab {
  background: var(--ind-mid);
  color: rgba(245, 239, 227, .82);
  border-color: var(--ind-soft);
  box-shadow: 6px 6px 0 0 rgba(11, 27, 51, .28);
}
.card--slab h2,
.card--slab h3 { color: var(--sand); }
.card--slab a { color: var(--gold-2); }

.card--ink {
  background: var(--ind-night);
  color: rgba(245, 239, 227, .8);
  border-color: var(--ind-soft);
  box-shadow: 6px 6px 0 0 rgba(11, 27, 51, .3);
}
.card--ink h2,
.card--ink h3 { color: var(--sand); }
.card--ink a { color: var(--gold-2); }

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1;
  letter-spacing: .01em;
  color: var(--ind-night);
}
.stat__cap {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--stone);
}
.card--slab .stat__num,
.card--ink .stat__num { color: var(--gold); }
.card--slab .stat__cap,
.card--ink .stat__cap { color: rgba(245, 239, 227, .58); }

.plate {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ind-mid);
  border: 1px solid var(--paper);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 0 rgba(227, 216, 196, .9);
  aspect-ratio: 16 / 10;
}
.plate__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.plate__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 7px 12px;
  background: rgba(11, 27, 51, .88);
  color: var(--sand);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  border-top-right-radius: var(--radius);
}
.plate--wide   { aspect-ratio: 21 / 9; }
.plate--tall   { aspect-ratio: 3 / 4; }
.plate--square { aspect-ratio: 1 / 1; }

.plate--empty::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(42, 75, 133, .95), rgba(11, 27, 51, .98)),
    repeating-linear-gradient(90deg, rgba(245, 239, 227, .07) 0 1px, transparent 1px 14px);
}

/* ---------- 8. 文字组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--clay);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.page-title {
  font-size: clamp(34px, 4.6vw, 44px);
  line-height: 1.1;
  color: var(--ind-night);
}

.page-lede {
  max-width: 70ch;
  font-size: 17px;
  color: #3A4553;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--paper);
  margin-bottom: 28px;
}
.section-head h2 { font-size: clamp(22px, 2.8vw, 30px); }

.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--stone);
}
.crumb__sep { color: var(--paper); }
.crumb a:hover { color: var(--clay); }

.prose {
  max-width: 72ch;
  font-size: 17px;
  line-height: 1.9;
  color: #2C3644;
}
.prose p + p { margin-top: 18px; }
.prose h2 { margin-top: 40px; margin-bottom: 14px; }
.prose h3 { margin-top: 28px; margin-bottom: 10px; }
.prose ul,
.prose ol {
  margin-top: 14px;
  padding-left: 1.25em;
  list-style: disc;
}
.prose ol { list-style: decimal; }
.prose li { margin-top: 8px; }
.prose a {
  color: var(--clay);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose a:hover { color: var(--ind-night); }

/* ---------- 9. 横向主题带 ---------- */
.band {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--paper);
  border-bottom: 1px solid var(--paper);
  padding-block: 16px;
}
.band__item {
  flex: 1 1 180px;
  padding-inline: 20px;
  border-right: 1px solid var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--stone);
}
.band__item:last-child { border-right: 0; }
.band__item strong { color: var(--ind-night); }

/* ---------- 10. 坐标索引锚点 ---------- */
.rail {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
}
.rail__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--paper);
}
.rail__link {
  display: block;
  padding: 8px 12px;
  margin-left: -1px;
  color: var(--stone);
  border-left: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.rail__link:hover {
  color: var(--ind-night);
  border-left-color: var(--gold);
}
.rail__link[aria-current="true"] {
  color: var(--ind-night);
  border-left-color: var(--signal);
}

/* ---------- 11. 滚动显现 ---------- */
.reveal {
  opacity: 0;
  transform: translate3d(14px, 16px, 0);
  transition: opacity .5s ease, transform .5s var(--ease-out);
  transition-delay: var(--rd, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ---------- 12. 站点页头 ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  color: var(--sand);
  background-color: var(--ind-night);
  background-image: repeating-linear-gradient(
    0deg,
    rgba(245, 239, 227, .028) 0 1px,
    transparent 1px 3px
  );
  border-bottom: 1px solid var(--ind-soft);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -70px;
  z-index: 90;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--ind-night);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  border-radius: var(--radius);
  transition: top .22s var(--ease-out);
}
.skip-link:focus { top: 10px; }

.masthead__upper {
  overflow: hidden;
  max-height: 240px;
  border-bottom: 1px solid rgba(42, 75, 133, .6);
  transition: max-height .38s var(--ease-out),
              opacity .24s ease,
              border-color .24s ease;
}
.masthead.is-condensed .masthead__upper {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.masthead__upper-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 13px;
}

.masthead__identity {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brandmark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.brandmark__cn {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: .02em;
  color: var(--sand);
  transition: color .22s ease;
}
.brandmark__lat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
}
.brandmark:hover .brandmark__cn { color: var(--gold-2); }

.season-motto {
  font-size: 12px;
  letter-spacing: .2em;
  color: rgba(245, 239, 227, .6);
  padding-left: 14px;
  border-left: 1px solid rgba(232, 163, 61, .45);
  white-space: nowrap;
}

.masthead__utility {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.press-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(245, 239, 227, .68);
  white-space: nowrap;
}
.press-check__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(208, 58, 43, .22);
  flex-shrink: 0;
}

.auth-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
}

.masthead__lower {
  background-image: linear-gradient(90deg, rgba(22, 48, 90, .92), rgba(11, 27, 51, .92));
}

.masthead__lower-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.masthead__stamp {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: rgba(245, 239, 227, .5);
  white-space: nowrap;
  padding-right: 4px;
}

/* --- 栏目导航 --- */
.site-nav__list {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 2px;
}
.site-nav__item { display: flex; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 16px;
  font-size: 14px;
  letter-spacing: .05em;
  color: rgba(245, 239, 227, .76);
  border-bottom: 2px solid transparent;
  transition: color .22s ease, background-color .22s ease, border-color .22s ease;
}
.nav-link__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--gold);
  opacity: .72;
  transition: opacity .22s ease;
}
.nav-link:hover {
  color: var(--sand);
  background: rgba(42, 75, 133, .42);
}
.nav-link:hover .nav-link__idx { opacity: 1; }
.nav-link[aria-current="page"] {
  color: var(--gold-2);
  border-bottom-color: var(--signal);
}
.nav-link[aria-current="page"] .nav-link__idx { opacity: 1; }

/* --- 移动栏目按钮 --- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 4px;
  color: var(--sand);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.nav-toggle__glyph {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
  flex-shrink: 0;
}
.nav-toggle__glyph i {
  display: block;
  height: 1px;
  background: currentColor;
  transition: width .24s var(--ease-out);
}
.nav-toggle__glyph i:nth-child(1) { width: 18px; }
.nav-toggle__glyph i:nth-child(2) { width: 11px; }
.nav-toggle__glyph i:nth-child(3) { width: 18px; }
.nav-toggle:hover .nav-toggle__glyph i:nth-child(2) { width: 18px; }
.nav-toggle[aria-expanded="true"] { color: var(--gold-2); }

/* ---------- 13. 站点页脚 ---------- */
.footer {
  position: relative;
  color: rgba(245, 239, 227, .76);
  background-color: var(--ind-night);
  background-image: repeating-linear-gradient(
    0deg,
    rgba(245, 239, 227, .026) 0 1px,
    transparent 1px 3px
  );
  border-top: 1px solid var(--ind-soft);
  box-shadow: inset 0 6px 0 -5px rgba(232, 163, 61, .4);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 44px 30px;
  padding-block: 56px 40px;
}

.footer__col { min-width: 0; }

.footer__col--brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__brand {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .02em;
  color: var(--sand);
}

.footer__motto {
  font-size: 13px;
  letter-spacing: .22em;
  color: var(--gold);
}

.footer__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: .04em;
  color: rgba(245, 239, 227, .58);
}

.footer__heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer__heading::before {
  content: "";
  width: 16px;
  height: 1px;
  background: currentColor;
  opacity: .7;
  flex-shrink: 0;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer__link {
  display: inline-block;
  font-size: 14px;
  color: rgba(245, 239, 227, .76);
  border-bottom: 1px solid transparent;
  transition: color .2s ease, transform .2s var(--ease-out), border-color .2s ease;
}
.footer__link:hover {
  color: var(--gold-2);
  transform: translateX(3px);
  border-bottom-color: rgba(242, 200, 121, .5);
}

.footer__list--contact { gap: 12px; }

.footer__contact-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  line-height: 1.7;
}

.footer__contact-key {
  flex-shrink: 0;
  padding: 1px 7px;
  background: var(--paper);
  color: var(--ind-night);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  line-height: 1.7;
}

.footer__contact-value {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .02em;
  color: rgba(245, 239, 227, .86);
  word-break: break-word;
  min-width: 0;
}

.footer__note {
  margin-top: 14px;
  max-width: 36ch;
  font-size: 12.5px;
  line-height: 1.8;
  color: rgba(245, 239, 227, .55);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 20px 28px;
  border-top: 1px solid rgba(42, 75, 133, .6);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: rgba(245, 239, 227, .55);
}
.footer__icp { color: rgba(245, 239, 227, .72); }

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1100px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 28px;
  }
  .footer__col--brand,
  .footer__col--contact { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .season-motto { display: none; }
  .masthead__stamp { display: none; }
  .grid-12 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .masthead__lower { position: relative; }

  .nav-toggle { display: inline-flex; }

  .masthead__lower-inner {
    justify-content: flex-start;
    gap: 12px;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 5;
    max-height: 0;
    overflow: hidden;
    background: var(--ind-mid);
    border-top: 1px solid var(--ind-soft);
    border-bottom: 1px solid var(--ind-soft);
    transition: max-height .34s var(--ease-out);
  }
  .site-nav[data-open="true"] {
    max-height: min(74vh, 540px);
    overflow-y: auto;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 16px;
  }
  .site-nav__item { display: block; }

  .nav-link {
    width: 100%;
    padding: 15px 12px;
    border-bottom: 1px solid rgba(42, 75, 133, .55);
    border-left: 2px solid transparent;
  }
  .nav-link[aria-current="page"] {
    border-bottom-color: rgba(42, 75, 133, .55);
    border-left-color: var(--signal);
  }

  .page-wrap { padding-block: 28px 72px; }
  .band__item {
    flex: 1 1 100%;
    padding: 8px 0;
    border-right: 0;
    border-bottom: 1px solid var(--paper);
  }
  .band__item:last-child { border-bottom: 0; }
}

@media (max-width: 760px) {
  .masthead__upper-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 12px;
  }
  .masthead__utility {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
  .press-check { font-size: 10.5px; letter-spacing: .06em; }
  .btn { padding: 9px 14px; font-size: 11px; letter-spacing: .14em; }

  .card { padding: 20px 18px; }
  .plate { box-shadow: 4px 4px 0 0 rgba(227, 216, 196, .9); }
  .card--paper { box-shadow: 4px 4px 0 0 rgba(227, 216, 196, .92); }
  .card--slab,
  .card--ink { box-shadow: 4px 4px 0 0 rgba(11, 27, 51, .28); }
}

@media (max-width: 640px) {
  body { font-size: 16px; line-height: 1.85; }
  .grid-12 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-block: 44px 32px;
  }
  .footer__note { max-width: none; }
  .footer__legal { font-size: 11px; }
}

/* ---------- 15. 动效克制与无障碍 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
