/* ==========================================================================
   欧皇冠军体育 · 共享样式表 /assets/site.css
   深空蓝墨块 + 竞技金强调 + 奶油纸底；粗野主义描边只落在关键模块边缘
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 132px;
}

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

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

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

a { color: inherit; }

/* --- 2. 变量 ---------------------------------------------------------- */
:root {
  /* 色彩体系 */
  --ink: #0B1B3A;
  --ink-deep: #06122A;
  --gold: #E3B341;
  --orange: #FF6B35;
  --cyan: #35E0D0;
  --paper: #F4EFE4;
  --paper-2: #E0D8C6;
  --brown: #241E1A;
  --graphite: #5A6472;
  --alert: #C4361F;

  /* 字体 */
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  /* 字号阶 72 / 48 / 32 / 24 / 18 / 16 / 14 / 12 */
  --t1: clamp(40px, 6.4vw, 72px);
  --t2: clamp(30px, 4.2vw, 48px);
  --t3: clamp(24px, 2.8vw, 32px);
  --t4: clamp(20px, 2vw, 24px);
  --t5: 18px;
  --t6: 16px;
  --t7: 14px;
  --t8: 12px;

  /* 尺度 */
  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --gap: clamp(12px, 1.6vw, 24px);
  --band: clamp(40px, 6vw, 88px);

  /* 材质 */
  --stroke: 2px solid var(--brown);
  --hair: 1px solid rgba(36, 30, 26, 0.18);
  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-gold: 6px 6px 0 var(--gold);
  --shadow-orange: 3px 3px 0 var(--orange);
}

/* --- 3. 中文排版基础 --------------------------------------------------- */
body {
  background: var(--paper);
  color: var(--brown);
  font-family: var(--sans);
  font-size: var(--t6);
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: var(--t1); }
h2 { font-size: var(--t2); }
h3 { font-size: var(--t3); }
h4 { font-size: var(--t4); }

p { text-wrap: pretty; }

strong, b { font-weight: 900; }

code, kbd, samp, pre { font-family: var(--mono); }

::selection {
  background: var(--gold);
  color: var(--ink-deep);
}

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

/* 数字一律等宽 + 表格数字对齐 */
.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0.01em;
}

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

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

.grid12 > .c-3 { grid-column: span 3; }
.grid12 > .c-4 { grid-column: span 4; }
.grid12 > .c-5 { grid-column: span 5; }
.grid12 > .c-6 { grid-column: span 6; }
.grid12 > .c-8 { grid-column: span 8; }
.grid12 > .c-12 { grid-column: span 12; }

.prose { max-width: 40em; }
.prose p + p { margin-top: 1.1em; }

/* --- 5. 通用件 -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font-family: var(--sans);
  font-size: var(--t7);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  border: var(--stroke);
  background: var(--paper);
  color: var(--brown);
  cursor: pointer;
  transition: transform 120ms linear, box-shadow 120ms linear,
              background-color 120ms linear, color 120ms linear,
              border-color 120ms linear;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--gold);
}

.btn:active {
  transform: none;
  box-shadow: 2px 2px 0 var(--brown);
}

.btn--gold {
  background: var(--gold);
  color: var(--ink-deep);
  box-shadow: var(--shadow-orange);
}

.btn--gold:hover { box-shadow: 5px 5px 0 var(--orange); }

.btn--ink {
  background: var(--ink);
  color: var(--paper);
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(244, 239, 228, 0.45);
}

.btn--ghost:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 4px 4px 0 rgba(53, 224, 208, 0.32);
}

.btn--sm { padding: 8px 13px; font-size: 13px; }

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: var(--t8);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--graphite);
}

.eyebrow--vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.3em;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: var(--t8);
  letter-spacing: 0.08em;
  color: var(--graphite);
}

.crumbs a {
  text-decoration: none;
  border-bottom: 1px solid rgba(90, 100, 114, 0.4);
}

.crumbs a:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.crumbs__sep { color: var(--gold); }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 700; }

/* 图片容器：页面阶段直接放 img，不带边框的场景可加 .media--bare */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: var(--ink);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(244, 239, 228, 0.07) 0 12px,
    transparent 12px 24px
  );
  border: var(--stroke);
  box-shadow: var(--shadow-hard);
}

.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media--wide { aspect-ratio: 16 / 9; }
.media--portrait { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 4 / 5; }

.media__tag {
  position: absolute;
  left: 0;
  top: 0;
  padding: 5px 10px;
  background: var(--gold);
  color: var(--ink-deep);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  border-right: var(--stroke);
  border-bottom: var(--stroke);
}

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(6, 18, 42, 0) 0%, rgba(6, 18, 42, 0.88) 100%);
  color: var(--paper);
  font-family: var(--mono);
  font-size: var(--t8);
  letter-spacing: 0.06em;
}

/* 显现动效 */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 240ms linear, transform 240ms linear;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* --- 6. 页头 ---------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -120px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--ink-deep);
  font-weight: 800;
  font-size: var(--t7);
  text-decoration: none;
  border: var(--stroke);
  transition: top 150ms linear;
}

.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 2px 0 rgba(6, 18, 42, 0.35);
}

/* 顶部状态细条 */
.status-bar {
  background: var(--ink-deep);
  border-bottom: 1px solid rgba(244, 239, 228, 0.14);
  overflow: hidden;
  max-height: 48px;
  opacity: 1;
  transition: max-height 240ms linear, opacity 200ms linear;
}

.site-header[data-condensed="true"] .status-bar {
  max-height: 0;
  opacity: 0;
}

.status-bar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 34px;
  font-family: var(--mono);
  font-size: var(--t8);
  letter-spacing: 0.06em;
  color: rgba(244, 239, 228, 0.68);
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.status-bar__inner::-webkit-scrollbar { display: none; }

.status-bar__seg {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.status-bar__seg--live { color: var(--cyan); }

.status-bar__seg--time {
  margin-left: auto;
  color: var(--gold);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(53, 224, 208, 0.18);
  animation: status-pulse 2.4s linear infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* 主命令栏 */
.masthead__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: 72px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--paper);
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--gold);
  color: var(--ink-deep);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  border: var(--stroke);
  box-shadow: var(--shadow-orange);
}

.brand__text { display: block; }

.brand__name {
  display: block;
  font-size: var(--t5);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.brand__line {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(244, 239, 228, 0.6);
  line-height: 1.4;
}

/* 编号索引导航 */
.nav { flex: 1 1 auto; }

.nav__list {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__item { list-style: none; }

.nav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 11px;
  color: rgba(244, 239, 228, 0.78);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: var(--stroke);
  border-color: transparent;
  transition: background-color 120ms linear, color 120ms linear,
              border-color 120ms linear, box-shadow 120ms linear;
}

.nav__idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gold);
  opacity: 0.72;
}

.nav__link:hover {
  color: var(--paper);
  background: rgba(244, 239, 228, 0.08);
  border-color: rgba(244, 239, 228, 0.2);
}

.nav__link[aria-current="page"] {
  background: var(--gold);
  color: var(--ink-deep);
  border-color: var(--brown);
  box-shadow: var(--shadow-orange);
}

.nav__link[aria-current="page"] .nav__idx {
  color: var(--ink-deep);
  opacity: 0.85;
}

/* 右侧动作区 */
.masthead__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  background: transparent;
  color: var(--paper);
  border: var(--stroke);
  border-color: rgba(244, 239, 228, 0.45);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 120ms linear, border-color 120ms linear, background-color 120ms linear;
}

.nav-toggle:hover { color: var(--cyan); border-color: var(--cyan); }

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
}

.nav-toggle[aria-expanded="true"] {
  background: var(--gold);
  color: var(--ink-deep);
  border-color: var(--brown);
}

/* 阅读进度尺 */
.progress {
  display: block;
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--orange) 55%, var(--cyan) 100%);
  pointer-events: none;
  will-change: transform;
}

/* --- 7. 页脚 ---------------------------------------------------------- */
.site-footer {
  margin-top: var(--band);
  background: var(--ink-deep);
  color: var(--paper);
  border-top: 3px solid var(--gold);
}

.ticker {
  background: #030C1D;
  border-bottom: 1px solid rgba(244, 239, 228, 0.14);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.ticker__track {
  display: flex;
  align-items: stretch;
  min-width: max-content;
  padding-inline: var(--gutter);
}

.ticker__item {
  flex: 0 0 auto;
  padding: 12px 20px;
  font-family: var(--mono);
  font-size: var(--t8);
  letter-spacing: 0.08em;
  color: rgba(244, 239, 228, 0.66);
  border-right: 1px solid rgba(244, 239, 228, 0.12);
  white-space: nowrap;
  scroll-snap-align: start;
}

.ticker__item--live { color: var(--cyan); }
.ticker__item--gold { color: var(--gold); }

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(28px, 5vw, 72px);
  padding-block: clamp(36px, 6vw, 64px);
}

.brand--footer { margin-bottom: 18px; }

.site-footer__note {
  max-width: 34em;
  font-size: var(--t7);
  line-height: 1.8;
  color: rgba(244, 239, 228, 0.68);
}

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

.foot-nav__title {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: var(--t8);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.foot-nav__list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-nav__link {
  width: fit-content;
  font-size: 15px;
  color: rgba(244, 239, 228, 0.78);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 120ms linear, border-color 120ms linear;
}

.foot-nav__link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.site-footer__legal {
  display: grid;
  gap: 10px;
  padding-block: 22px 36px;
  border-top: 1px solid rgba(244, 239, 228, 0.16);
  font-family: var(--mono);
  font-size: var(--t8);
  letter-spacing: 0.04em;
  line-height: 1.9;
  color: rgba(244, 239, 228, 0.58);
}

.site-footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
}

.site-footer__contact-item { flex: 0 0 auto; }

.site-footer__service { color: rgba(244, 239, 228, 0.48); }

.site-footer__copy { color: rgba(244, 239, 228, 0.66); }

/* --- 8. 响应式 -------------------------------------------------------- */
@media (max-width: 1320px) and (min-width: 1121px) {
  .nav__link { padding: 8px 8px; font-size: var(--t7); }
  .masthead__actions .btn { padding: 8px 12px; font-size: 13px; }
}

@media (max-width: 1120px) {
  html { scroll-padding-top: 96px; }

  .masthead__inner { min-height: 62px; }
  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 6px var(--gutter) 18px;
    background: var(--ink);
    border-top: 1px solid rgba(244, 239, 228, 0.16);
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 18px 40px rgba(6, 18, 42, 0.55);
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }

  .nav[data-open="true"] { display: block; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    justify-content: flex-start;
    padding: 14px 4px;
    font-size: var(--t5);
    border: none;
    border-bottom: 1px solid rgba(244, 239, 228, 0.12);
  }

  .nav__link:hover { background: transparent; border-color: rgba(244, 239, 228, 0.12); }

  .nav__link[aria-current="page"] {
    background: transparent;
    color: var(--gold);
    box-shadow: none;
    border-bottom-color: var(--gold);
  }

  .nav__link[aria-current="page"] .nav__idx { color: var(--gold); }

  .site-footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --band: clamp(36px, 9vw, 64px); }

  /* 12 列在此断点塌成单列 */
  .grid12 > * { grid-column: 1 / -1 !important; }

  .foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .brand__line { display: none; }
}

@media (max-width: 620px) {
  :root { --t5: 17px; }

  .masthead__actions { gap: 8px; }
  .masthead__actions .btn--ghost { display: none; }
  .brand__mark { width: 38px; height: 38px; font-size: 18px; }
  .brand__name { font-size: var(--t6); }

  .foot-nav { grid-template-columns: 1fr; }
  .site-footer__contact { flex-direction: column; gap: 4px; }
}

/* --- 9. 偏好降低动态 -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

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