/* =========================================================
   欧易体育 · 看台目录 / site.css
   夜场看台手账：透明叠加导轨 → 深墨绿实色阅读态
   ========================================================= */

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h, 68px) + 16px);
}

body,
h1, h2, h3, h4, h5,
p, ul, ol, li,
figure, figcaption, blockquote {
  margin: 0;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a { color: inherit; }

table { border-collapse: collapse; }

/* ---------- 变量 ---------- */
:root {
  /* 品牌色阶 */
  --ink: #071A15;
  --deep: #0B2B24;
  --deep-2: #123C31;
  --gold: #D8A43A;
  --gold-soft: #F2C766;
  --ice: #7FD3E8;
  --ember: #E8793B;
  --wine: #6E2334;
  --paper: #F4F0E6;
  --char: #1C2420;

  /* 文字与线条 */
  --paper-dim: rgba(244, 240, 230, 0.78);
  --paper-mute: rgba(244, 240, 230, 0.54);
  --hair: rgba(216, 164, 58, 0.26);
  --hair-strong: rgba(216, 164, 58, 0.55);
  --hair-soft: rgba(244, 240, 230, 0.12);

  /* 尺度 */
  --rail: 1200px;
  --header-h: 64px;
  --gutter: clamp(16px, 4vw, 32px);

  /* 切角 */
  --cut: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  --cut-sm: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));

  /* 字体 */
  --font-display: "Bahnschrift", "DIN Alternate", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Songti SC", "Source Han Serif SC", "Noto Serif SC", "SimSun", serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
}

@media (min-width: 920px) {
  :root { --header-h: 76px; }
}

/* ---------- 中文排版与基础 ---------- */
body {
  min-height: 100vh;
  background-color: var(--deep);
  background-image:
    radial-gradient(120% 70% at 82% -10%, rgba(216, 164, 58, 0.14), transparent 62%),
    radial-gradient(90% 60% at 6% 4%, rgba(127, 211, 232, 0.10), transparent 60%);
  color: var(--paper-dim);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  text-underline-offset: 0.22em;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--paper);
  text-wrap: balance;
}

h1 { font-size: clamp(28px, 4.4vw, 52px); }
h2 { font-size: clamp(22px, 3.1vw, 34px); }
h3 { font-size: clamp(18px, 2.2vw, 22px); }

p { text-wrap: pretty; }

strong { color: var(--paper); }

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

/* ---------- 焦点与无障碍 ---------- */
:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 400;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  clip-path: var(--cut-sm);
  transform: translateY(-180%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: none;
  box-shadow: inset 0 0 0 3px var(--ink);
}

/* ---------- 布局容器 ---------- */
.wrap {
  width: min(100% - (var(--gutter) * 2), var(--rail));
  margin-inline: auto;
}

.page-shell {
  padding-block: clamp(28px, 5vw, 64px);
}

.section {
  padding-block: clamp(28px, 4.4vw, 56px);
  border-top: 1px solid var(--hair);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 24px;
  margin-bottom: clamp(16px, 2.4vw, 28px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold);
  transform: skewX(-24deg);
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--paper-mute);
}

.rule {
  height: 1px;
  border: 0;
  background:
    repeating-linear-gradient(115deg, var(--hair-strong) 0 6px, transparent 6px 12px);
  opacity: 0.7;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  clip-path: var(--cut-sm);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

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

.btn-gold:hover,
.btn-gold:focus-visible {
  background: var(--gold-soft);
}

.btn-ghost {
  background: transparent;
  border-color: var(--hair-strong);
  color: var(--gold-soft);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--gold);
  background: rgba(216, 164, 58, 0.12);
  color: var(--gold-soft);
}

.btn:active { transform: translateY(1px); }

.btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px var(--ice);
}

/* ---------- 面包屑 ---------- */
.crumbs {
  margin-bottom: clamp(18px, 2.6vw, 30px);
}

.crumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--paper-mute);
}

.crumbs-item { display: inline-flex; align-items: center; gap: 6px; }

.crumbs-link {
  color: var(--paper-mute);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.crumbs-link:hover,
.crumbs-link:focus-visible {
  color: var(--ice);
  border-bottom-color: var(--ice);
}

.crumbs-sep {
  color: rgba(216, 164, 58, 0.5);
}

/* ---------- 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 切角面板 ---------- */
.panel {
  position: relative;
  padding: clamp(16px, 2.4vw, 26px);
  background: linear-gradient(158deg, var(--deep-2), var(--deep) 72%);
  border: 1px solid var(--hair);
  clip-path: var(--cut);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.panel:hover { border-color: var(--hair-strong); }

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--hair-soft);
}

.panel-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  color: var(--paper);
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold-soft);
  background: rgba(216, 164, 58, 0.12);
  border: 1px solid var(--hair);
  clip-path: var(--cut-sm);
}

.tag-ember {
  color: #FFD6BC;
  background: rgba(232, 121, 59, 0.18);
  border-color: rgba(232, 121, 59, 0.5);
}

.tag-ice {
  color: #CBF2FA;
  background: rgba(127, 211, 232, 0.14);
  border-color: rgba(127, 211, 232, 0.45);
}

/* ---------- 图片容器基础规则 ---------- */
.figure-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    repeating-linear-gradient(122deg, rgba(216, 164, 58, 0.16) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, var(--deep-2), var(--ink));
  border: 1px solid var(--hair);
  clip-path: var(--cut);
}

.figure-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
  transition: transform 0.4s ease;
}

.figure-frame:hover img { transform: scale(1.02); }

.figure-frame--wide { aspect-ratio: 21 / 9; }
.figure-frame--tall { aspect-ratio: 4 / 5; }
.figure-frame--square { aspect-ratio: 1 / 1; }

.figure-frame-tag {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  padding: 6px 14px 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink);
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.figure-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--paper-mute);
}

/* ---------- 显现协议 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(
    180deg,
    rgba(7, 26, 21, 0.95) 0%,
    rgba(7, 26, 21, 0.74) 56%,
    rgba(7, 26, 21, 0) 100%
  );
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: var(--ink);
  box-shadow: 0 1px 0 var(--hair), 0 16px 32px rgba(0, 0, 0, 0.42);
}

.header-rail {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(100%, var(--rail));
  margin-inline: auto;
  min-height: var(--header-h);
  padding-inline: clamp(14px, 3vw, 28px);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(150deg, var(--gold-soft), var(--gold) 55%, #A9701F);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  clip-path: polygon(0 0, 100% 0, 100% 66%, 66% 100%, 0 100%);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  color: var(--paper);
  letter-spacing: 0.02em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-top: 3px;
}

.brand:hover .brand-name { color: var(--gold-soft); }

/* 移动开关 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(216, 164, 58, 0.4);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  clip-path: var(--cut-sm);
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

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

.nav-toggle-bars {
  display: inline-grid;
  gap: 3px;
  width: 16px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--gold);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-toggle-label { white-space: nowrap; }

.site-header.is-nav-open .nav-toggle {
  border-color: var(--gold);
  background: rgba(216, 164, 58, 0.12);
  color: var(--gold-soft);
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header.is-nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.site-header.is-nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 行动入口 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.header-action {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--gold-soft);
  border: 1px solid var(--hair-strong);
  clip-path: var(--cut-sm);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.header-action:hover,
.header-action:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  outline: none;
}

/* 阅读进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(216, 164, 58, 0.16);
  overflow: hidden;
}

.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--gold) 0%, var(--ember) 55%, var(--ice) 100%);
  transition: transform 0.12s linear;
}

/* 导航：移动优先（面板） */
.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--ink);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 4px 0 14px;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  box-shadow: 0 26px 44px rgba(0, 0, 0, 0.5);
  transition: max-height 0.28s ease, opacity 0.2s ease, visibility 0.28s ease;
}

.site-nav[data-open] {
  max-height: min(78vh, 560px);
  overflow-y: auto;
  visibility: visible;
  opacity: 1;
}

.nav-item {
  border-bottom: 1px solid rgba(244, 240, 230, 0.08);
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px var(--gutter);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--paper-dim);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(216, 164, 58, 0.6);
  transition: color 0.15s ease;
}

.nav-label { display: inline-block; }

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
  display: none;
}

.nav-link:hover { color: var(--gold-soft); }
.nav-link:hover .nav-index { color: var(--gold-soft); }

.nav-link[aria-current="page"] {
  color: var(--gold-soft);
  background: rgba(216, 164, 58, 0.1);
  box-shadow: inset 3px 0 0 var(--gold);
}

.nav-link[aria-current="page"] .nav-index { color: var(--gold); }

.nav-note {
  padding: 12px var(--gutter) 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(127, 211, 232, 0.82);
}

/* 导航：桌面横排 */
@media (min-width: 920px) {
  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    max-height: none;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: clamp(4px, 1.3vw, 18px);
    flex: 1 1 auto;
    justify-content: center;
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: clamp(4px, 1.3vw, 18px);
    flex-wrap: nowrap;
  }

  .nav-item { border-bottom: 0; }

  .nav-link {
    padding: 10px 2px;
    font-size: 15px;
    gap: 6px;
  }

  .nav-link::after { display: block; }

  .nav-link[aria-current="page"] {
    background: transparent;
    box-shadow: none;
  }

  .nav-link[aria-current="page"]::after {
    transform: scaleX(1);
    background: var(--gold);
  }

  .nav-link:hover::after { transform: scaleX(1); }

  .nav-note { display: none; }
}

@media (max-width: 1079px) and (min-width: 920px) {
  .nav-index { display: none; }
  .nav-link { font-size: 14px; }
}

@media (max-width: 600px) {
  .header-action { display: none; }
  .brand-sub { display: none; }
  .brand-mark { width: 34px; height: 34px; font-size: 15px; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  margin-top: clamp(32px, 5vw, 64px);
  background: var(--ink);
  border-top: 1px solid var(--hair);
}

/* 两步反馈带：斜线轨迹 + 珠宝色分区 */
.feedback-band {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(104deg, rgba(216, 164, 58, 0.09) 0 2px, transparent 2px 22px),
    linear-gradient(104deg, var(--deep-2) 0%, var(--deep) 46%, var(--wine) 100%);
  border-bottom: 1px solid var(--hair);
}

.feedback-band::after {
  content: "";
  position: absolute;
  top: 0;
  right: -60px;
  width: 220px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(216, 164, 58, 0.16));
  transform: skewX(-18deg);
  pointer-events: none;
}

.feedback-band-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 3vw, 40px);
  width: min(100% - (var(--gutter) * 2), var(--rail));
  margin-inline: auto;
  padding-block: clamp(26px, 4vw, 46px);
}

.feedback-band-copy { max-width: 62ch; }

.feedback-title {
  margin-top: 10px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(22px, 3.2vw, 34px);
  color: var(--paper);
}

.feedback-text {
  margin-top: 10px;
  font-size: 15px;
  color: var(--paper-dim);
}

.feedback-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.feedback-mail {
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold-soft);
  border: 1px dashed rgba(216, 164, 58, 0.5);
  clip-path: var(--cut-sm);
  word-break: break-all;
}

.footer-body {
  width: min(100% - (var(--gutter) * 2), var(--rail));
  margin-inline: auto;
  padding-block: clamp(28px, 4vw, 52px) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3vw, 40px);
  padding-bottom: clamp(22px, 3vw, 34px);
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
  .footer-grid { grid-template-columns: 1.3fr 1.5fr 1fr 1fr; }
}

.footer-brand { border-left: 2px solid var(--gold); padding-left: 14px; }

.footer-brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  color: var(--paper);
}

.footer-brand-note {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--paper-mute);
}

.footer-col-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 12px;
}

.footer-list {
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--paper-dim);
}

.footer-list-links { gap: 7px; }

.footer-link {
  display: inline-block;
  color: var(--paper-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--gold-soft);
  border-bottom-color: var(--gold);
}

.footer-hint {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(127, 211, 232, 0.72);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-block: 16px 22px;
  border-top: 1px solid var(--hair-soft);
}

.footer-copy,
.footer-icp {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--paper-mute);
}

@media (max-width: 639px) {
  .feedback-actions { width: 100%; }
  .btn-gold { width: 100%; }
}

/* =========================================================
   动效偏好
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-progress-bar { transition: none; }
  .figure-frame:hover img { transform: none; }
}
