/* ===========================================================
   金多宝赛场 · 共享样式 /assets/site.css
   坐标轴框架 · 丹霞赭红 / 戈壁暖沙 / 黄河深青 / 夜赛荧光
   =========================================================== */

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

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

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

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

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

button { font: inherit; color: inherit; }

a { color: inherit; }

:root {
  /* 色板 */
  --dansha: #B23A22;
  --dansha-mid: #D97757;
  --gobi: #E7D3B3;
  --sand: #F7F2E9;
  --huanghe: #0E3A3C;
  --huanghe-mid: #1C6E6A;
  --night: #C6F24E;
  --ink: #26201C;
  --line: #C9A98A;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-dark: rgba(14, 58, 60, 0.72);

  /* 深底上的主客场标记（提亮版，保证在深青上可辨） */
  --home-mark: #E0705A;
  --away-mark: #5FB6B0;

  /* 尺寸 */
  --axis-w: 112px;
  --bar-h: 62px;
  --maxw: 1180px;
  --gutter: clamp(18px, 4vw, 56px);

  /* 字体 */
  --font-display: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Courier New", "Microsoft YaHei", monospace;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--sand);
  background-image:
    radial-gradient(120% 90% at 100% 0%, rgba(231, 211, 179, 0.55) 0%, rgba(247, 242, 233, 0) 58%),
    radial-gradient(90% 70% at 0% 100%, rgba(217, 119, 87, 0.10) 0%, rgba(247, 242, 233, 0) 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: var(--dansha);
  color: var(--sand);
}

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

.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--night);
}

/* ---------------- 跳转链接 ---------------- */

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--night);
  color: var(--huanghe);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 2px;
  transform: translateY(-220%);
  transition: transform 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

#main-content {
  scroll-margin-top: calc(var(--bar-h) + 12px);
}

/* ---------------- 坐标轴页头 ---------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 90;
  width: var(--axis-w);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 0 16px;
  background: var(--huanghe);
  background-image: linear-gradient(180deg, rgba(28, 110, 106, 0.28) 0%, rgba(14, 58, 60, 0) 42%);
  color: var(--sand);
  border-right: 1px solid rgba(201, 169, 138, 0.32);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 169, 138, 0.45) transparent;
}

.site-header::-webkit-scrollbar { width: 4px; }
.site-header::-webkit-scrollbar-thumb { background: rgba(201, 169, 138, 0.45); }

/* 品牌署名 */
.axis-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0 10px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(201, 169, 138, 0.25);
}

.axis-brand__name {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: 0.2em;
  color: var(--sand);
  text-decoration: none;
  transition: color 0.2s ease;
}

.axis-brand__name:hover,
.axis-brand__name:focus-visible {
  color: var(--night);
}

.axis-brand__tag {
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: rgba(247, 242, 233, 0.58);
}

.axis-brand__mark {
  display: flex;
  gap: 5px;
}

.axis-brand__dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.axis-brand__dot--home { background: var(--home-mark); }
.axis-brand__dot--away { background: var(--away-mark); }

/* 移动端切换按钮（桌面隐藏） */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid rgba(201, 169, 138, 0.5);
  border-radius: 2px;
  color: var(--sand);
  cursor: pointer;
}

.nav-toggle__ticks {
  position: relative;
  display: block;
  width: 16px;
  height: 12px;
}

.nav-toggle__ticks i {
  position: absolute;
  left: 0;
  height: 2px;
  background: var(--night);
  border-radius: 1px;
  transition: transform 0.28s ease, width 0.28s ease, opacity 0.2s ease;
}

.nav-toggle__ticks i:nth-child(1) { top: 0; width: 16px; }
.nav-toggle__ticks i:nth-child(2) { top: 5px; width: 11px; }
.nav-toggle__ticks i:nth-child(3) { top: 10px; width: 16px; }

.site-header[data-open] .nav-toggle__ticks i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle__ticks i:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__ticks i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav-toggle__text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

/* 竖向坐标导航 */
.axis-nav {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 4px;
  padding: 0 10px;
}

.axis-nav__label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(247, 242, 233, 0.42);
  padding: 0 2px 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(201, 169, 138, 0.22);
}

.axis-nav__list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.axis-nav__item { display: block; }

.axis-nav__link {
  position: relative;
  display: block;
  padding: 9px 2px;
  font-size: 12.5px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: rgba(247, 242, 233, 0.78);
  text-decoration: none;
  transition: color 0.2s ease;
}

.axis-nav__link::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 1px;
  margin-right: 7px;
  vertical-align: middle;
  background: rgba(201, 169, 138, 0.55);
  transition: width 0.25s ease, height 0.25s ease, background-color 0.25s ease;
}

.axis-nav__link:hover,
.axis-nav__link:focus-visible {
  color: var(--sand);
}

.axis-nav__link:hover::before {
  background: var(--dansha-mid);
  width: 14px;
}

.axis-nav__link[aria-current="page"] {
  color: var(--night);
  font-weight: 700;
}

.axis-nav__link[aria-current="page"]::before {
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: var(--night);
}

/* 图例与快捷入口 */
.axis-nav__legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  padding: 14px 2px;
  border-top: 1px solid rgba(201, 169, 138, 0.22);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(247, 242, 233, 0.7);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
}

.legend-dot--home { background: var(--home-mark); }
.legend-dot--away { background: var(--away-mark); }

.axis-nav__quick {
  display: block;
  margin: 10px 0 4px;
  padding: 11px 8px;
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  color: var(--huanghe);
  background: var(--night);
  border-radius: 2px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.axis-nav__quick:hover,
.axis-nav__quick:focus-visible {
  background: var(--sand);
  transform: translateY(-1px);
}

/* 滚动进度 */
.axis-nav__progress {
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  background: var(--night);
  transform: scaleY(0);
  transform-origin: top center;
  pointer-events: none;
}

/* ---------------- 页脚 ---------------- */

.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 108px);
  padding: 0 var(--gutter) 28px;
  background: var(--huanghe);
  background-image: linear-gradient(180deg, rgba(28, 110, 106, 0.22) 0%, rgba(14, 58, 60, 0) 45%);
  color: var(--sand);
}

.footer-rule {
  position: relative;
  height: 34px;
  border-top: 1px solid rgba(201, 169, 138, 0.45);
}

.footer-rule::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background-image: repeating-linear-gradient(
    to right,
    rgba(201, 169, 138, 0.55) 0 1px,
    transparent 1px 56px
  );
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.5fr 1fr;
  gap: clamp(26px, 4vw, 46px);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(26px, 4vw, 46px) 0 clamp(30px, 4vw, 52px);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: 0.06em;
  color: var(--night);
}

.footer-brand__desc {
  margin-top: 14px;
  max-width: 30em;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(247, 242, 233, 0.72);
}

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: rgba(247, 242, 233, 0.5);
  padding-bottom: 9px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(201, 169, 138, 0.25);
}

.footer-list li { margin-bottom: 9px; }

.footer-list a {
  font-size: 14px;
  color: rgba(247, 242, 233, 0.82);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--night);
  border-bottom-color: var(--night);
}

.footer-list--contact li {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  color: rgba(247, 242, 233, 0.78);
  word-break: break-word;
}

.footer-note {
  margin-top: 14px;
  font-size: 11.5px;
  line-height: 1.75;
  color: rgba(247, 242, 233, 0.55);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid rgba(201, 169, 138, 0.25);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(247, 242, 233, 0.55);
}

.footer-base__legal { letter-spacing: 0.08em; }

.footer-axis-mark {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* ---------------- 内容容器与排版 ---------------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dansha);
}

.section-label::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--dansha);
}

.display-xl {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(52px, 11vw, 150px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  font-stretch: condensed;
}

.display-l {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 5.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.prose {
  max-width: 36em;
  line-height: 1.75;
}

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

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  margin-top: 1.8em;
  margin-bottom: 0.6em;
}

.prose h2 { font-size: clamp(24px, 3vw, 28px); }
.prose h3 { font-size: 20px; }

.prose ul,
.prose ol { margin: 1em 0; padding-left: 1.4em; }
.prose ul { list-style: none; }
.prose ul li { position: relative; padding-left: 1.1em; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 10px;
  height: 1px;
  background: var(--dansha-mid);
}
.prose ol { list-style: decimal; }

.stack > * + * { margin-top: var(--stack-gap, 20px); }

.grid-2,
.grid-3 {
  display: grid;
  gap: clamp(18px, 3vw, 34px);
  grid-template-columns: 1fr;
}

/* ---------------- 面包屑 ---------------- */

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(38, 32, 28, 0.58);
  margin-bottom: 22px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--line);
}

.breadcrumb a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--dansha);
  border-bottom-color: var(--dansha);
}

/* ---------------- 按钮 ---------------- */

.btn {
  --btn-bg: var(--dansha);
  --btn-fg: var(--sand);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, transform 0.2s ease;
}

.btn::after {
  content: "→";
  font-size: 14px;
  line-height: 1;
  transition: transform 0.2s ease;
}

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

.btn:hover::after { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--huanghe);
  border-color: var(--line);
}

.btn--ghost:hover {
  background: var(--gobi);
  border-color: var(--dansha);
  color: var(--ink);
}

.btn--night {
  --btn-bg: var(--night);
  --btn-fg: var(--huanghe);
}

.btn--night:hover { --btn-bg: var(--sand); }

/* ---------------- 分段切换 ---------------- */

.tabs { display: block; }

.tablist {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background: var(--gobi);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.tab {
  padding: 9px 18px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tab:hover:not([aria-selected="true"]) {
  background: rgba(255, 255, 255, 0.5);
}

.tab[aria-selected="true"] {
  background: var(--huanghe);
  color: var(--sand);
}

.tabpanel { padding-top: 22px; }

.tabpanel[hidden] { display: none; }

.tabpanel:focus-visible {
  outline: 2px solid var(--dansha);
  outline-offset: 6px;
}

/* ---------------- 图片容器 ---------------- */

.img-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(150deg, var(--gobi) 0%, rgba(247, 242, 233, 0.9) 68%, rgba(217, 119, 87, 0.18) 100%);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.img-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(to right, rgba(201, 169, 138, 0.42) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(to bottom, rgba(201, 169, 138, 0.32) 0 1px, transparent 1px 40px);
  opacity: 0.7;
  pointer-events: none;
}

.img-frame > img,
.img-frame > picture > img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.img-frame__caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: rgba(38, 32, 28, 0.66);
}

/* ---------------- 显现 / 工具类 ---------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------------- 平板 / 桌面 ---------------- */

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

@media (min-width: 900px) {
  body { padding-left: var(--axis-w); }

  #main-content { scroll-margin-top: 24px; }

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

  .footer-grid { grid-template-columns: 1.6fr 1fr 1.5fr 1fr; }
}

@media (min-width: 900px) and (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------------- 移动端：顶部坐标条 ---------------- */

@media (max-width: 899px) {
  .site-header {
    position: sticky;
    top: 0;
    left: auto;
    bottom: auto;
    width: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: var(--bar-h);
    padding: 0 var(--gutter);
    border-right: 0;
    border-bottom: 1px solid rgba(201, 169, 138, 0.35);
    overflow: visible;
  }

  .axis-brand {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 0;
    text-align: left;
    border-bottom: 0;
  }

  .axis-brand__name {
    writing-mode: horizontal-tb;
    font-size: 16px;
    letter-spacing: 0.06em;
  }

  .axis-brand__tag {
    max-width: 17em;
    font-size: 9px;
    line-height: 1.4;
    letter-spacing: 0.04em;
  }

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

  .axis-nav {
    position: fixed;
    top: var(--bar-h);
    right: 0;
    bottom: 0;
    left: auto;
    width: min(360px, 88vw);
    flex: none;
    padding: 24px 20px 32px;
    gap: 0;
    background: var(--huanghe);
    background-image: linear-gradient(180deg, rgba(28, 110, 106, 0.3) 0%, rgba(14, 58, 60, 0) 40%);
    border-left: 1px solid rgba(201, 169, 138, 0.3);
    transform: translateX(100%);
    visibility: hidden;
    overflow-y: auto;
    transition: transform 0.34s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0.34s;
  }

  .site-header[data-open] .axis-nav {
    transform: none;
    visibility: visible;
  }

  .axis-nav__label {
    font-size: 10px;
    padding-left: 4px;
  }

  .axis-nav__link {
    padding: 15px 4px;
    font-size: 16px;
  }

  .axis-nav__link::before { width: 14px; margin-right: 10px; }

  .axis-nav__link[aria-current="page"]::before { width: 24px; height: 3px; }

  .axis-nav__legend {
    flex-direction: row;
    gap: 20px;
    margin-top: 22px;
    padding: 18px 4px;
    font-size: 11px;
  }

  .axis-nav__quick {
    margin: 8px 0 0;
    padding: 15px 12px;
    font-size: 14px;
  }

  .axis-nav__progress { display: none; }

  #main-content { padding-top: clamp(20px, 5vw, 40px); }
}

@media (max-width: 560px) {
  .axis-brand__tag { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { justify-content: flex-start; }
}

/* ---------------- 动效降级 ---------------- */

@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 .reveal,
  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .axis-nav { transition: none; }
}
