/* ===========================================================
   金多宝赛场 / site.css
   共享外壳：reset · 变量 · 头部 · 页脚 · 通用组件
   =========================================================== */

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

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

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

ul, ol { list-style: none; }

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

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

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

[hidden] { display: none !important; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #061713;
  --ink-2: #081D18;
  --panel: #0D2620;
  --line: #1B4438;

  --gold: #C9A227;
  --gold-b: #E7C766;
  --cyan: #2BE3C7;
  --teal: #12857A;
  --violet: #6C5CE7;
  --amber: #E08A2E;

  --text: #EAF2EE;
  --muted: #92A8A0;
  --paper: #F3F0E6;
  --paper-ink: #0B231D;

  --f-cn: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --f-narrow: "Oswald", "Barlow Condensed", "Arial Narrow", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --f-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Courier New", monospace;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur: 180ms;
  --dur-slow: 260ms;

  --header-h: 68px;
  --wrap: 1440px;
  --pad: clamp(18px, 4vw, 56px);
}

/* ---------- 3. 基础排版 ---------- */
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-cn);
  font-size: 16.5px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--f-cn);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; }
h2 { font-size: clamp(26px, 3.4vw, 34px); }
h3 { font-size: clamp(19px, 2vw, 22px); }

strong { font-weight: 700; }

::selection { background: var(--cyan); color: #04201b; }

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

.mono,
.eyebrow,
.index-num {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
}

.mono {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.index-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.index-num::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}

.rule {
  height: 1px;
  border: 0;
  background: var(--line);
  margin: 0;
}

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

.section { padding: clamp(48px, 7vw, 104px) 0; }
.section--tight { padding: clamp(30px, 4vw, 60px) 0; }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(22px, 3vw, 40px);
}

.section__title { max-width: 22ch; }

.section__note {
  max-width: 46ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.grid-auto {
  display: grid;
  gap: clamp(14px, 1.8vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* ---------- 5. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  left: 14px;
  top: -80px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--cyan);
  color: #04201b;
  font-weight: 700;
  font-size: 14px;
  border-radius: 2px;
  transition: top 160ms var(--ease);
}

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

/* ---------- 6. 头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(6, 23, 19, 0.78) 0%, rgba(6, 23, 19, 0) 100%);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-slow) var(--ease),
              border-color var(--dur-slow) var(--ease),
              backdrop-filter var(--dur-slow) var(--ease);
}

.site-header[data-scrolled="true"] {
  background: rgba(8, 29, 24, 0.95);
  border-bottom-color: var(--line);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 36px);
  height: var(--header-h);
}

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

.brand__mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 2px;
  color: var(--gold-b);
  font-family: var(--f-narrow);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.brand:hover .brand__mark { border-color: var(--cyan); color: var(--cyan); }

.brand__text { display: block; }

.brand__name {
  display: block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--text);
}

.brand__tag {
  display: block;
  margin-top: 3px;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

/* 导航 */
.nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.1vw, 30px);
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 7px 0;
  font-size: 15px;
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 22px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease);
}

.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); }

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

.nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* 头部快捷入口 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* 折叠按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

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

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 11px;
  flex: 0 0 auto;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transition: transform var(--dur-slow) var(--ease);
}

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-5px) rotate(-45deg);
}

/* 滚动刻度 */
.meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--line);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease);
}

.site-header[data-scrolled="true"] .meter { opacity: 1; }

.meter__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--teal) 0%, var(--cyan) 55%, var(--gold-b) 100%);
  transition: width 120ms linear;
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #061713;
  font-weight: 700;
}

.btn--gold:hover {
  background: var(--gold-b);
  border-color: var(--gold-b);
  color: #061713;
}

.btn--line:hover {
  border-color: var(--gold-b);
  color: var(--gold-b);
}

.btn--cyan {
  border-color: rgba(43, 227, 199, 0.55);
  color: var(--cyan);
}

.btn--cyan:hover {
  background: rgba(43, 227, 199, 0.12);
  border-color: var(--cyan);
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumb { padding-top: calc(var(--header-h) + 26px); }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.breadcrumb__list li { display: inline-flex; align-items: center; gap: 10px; }

.breadcrumb__list li:not(:last-child)::after {
  content: "/";
  color: var(--line);
}

.breadcrumb__list a { transition: color var(--dur) var(--ease); }
.breadcrumb__list a:hover { color: var(--gold-b); }

/* ---------- 9. 面板 / 标签 / 数字 ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(18px, 2.4vw, 28px);
}

.panel--paper {
  background: var(--paper);
  border-color: rgba(11, 35, 29, 0.14);
  color: var(--paper-ink);
}

.panel--paper .section__note,
.panel--paper .mono { color: #4b645c; }

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}

.tag--violet { color: var(--violet); }
.tag--gold { color: var(--gold-b); }

.stat { display: block; }

.stat__value {
  display: block;
  font-family: var(--f-mono);
  font-size: clamp(28px, 3.2vw, 34px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--gold-b);
}

.stat__label {
  display: block;
  margin-top: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 10. 筛选标签 ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

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

.chip[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04201b;
}

/* ---------- 11. 可展开组 ---------- */
.fold {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(13, 38, 32, 0.55);
  transition: border-color var(--dur-slow) var(--ease);
}

.fold + .fold { margin-top: 10px; }

.fold[data-open="true"] { border-color: rgba(43, 227, 199, 0.5); }

.fold__btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px clamp(16px, 2vw, 24px);
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  transition: color var(--dur) var(--ease);
}

.fold__btn:hover { color: var(--gold-b); }

.fold__idx {
  flex: 0 0 auto;
  min-width: 34px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.fold__arrow {
  position: relative;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-left: auto;
}

.fold__arrow::before,
.fold__arrow::after {
  content: "";
  position: absolute;
  background: var(--cyan);
  transition: transform var(--dur-slow) var(--ease);
}

.fold__arrow::before { left: 0; top: 5.5px; width: 12px; height: 1px; }
.fold__arrow::after { left: 5.5px; top: 0; width: 1px; height: 12px; }

.fold[data-open="true"] .fold__arrow::after { transform: scaleY(0); }

.fold__body {
  overflow: hidden;
  height: 0;
  transition: height var(--dur-slow) var(--ease);
}

html:not(.js) .fold__body { height: auto; }

.fold__inner {
  padding: 16px clamp(16px, 2vw, 24px) 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

/* ---------- 12. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
}

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

.media-frame > img,
.media-frame > picture,
.media-frame > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(43, 227, 199, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 227, 199, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
}

.media-frame__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  max-width: 100%;
  padding: 9px 13px;
  background: linear-gradient(90deg, rgba(6, 23, 19, 0.94) 0%, rgba(6, 23, 19, 0.32) 100%);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

/* ---------- 13. 显现 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
}

html.js [data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: none;
  transition: opacity 460ms var(--ease), transform 460ms var(--ease);
}

/* ---------- 14. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #061713 0%, #081D18 55%, #061713 100%);
  border-top: 1px solid var(--line);
  color: var(--text);
}

.site-footer__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(78deg, transparent 0 44px, rgba(43, 227, 199, 0.055) 44px 45px),
    repeating-linear-gradient(102deg, transparent 0 66px, rgba(201, 162, 39, 0.05) 66px 67px),
    radial-gradient(120% 90% at 8% 118%, rgba(43, 227, 199, 0.1) 0%, transparent 62%),
    radial-gradient(90% 80% at 92% -20%, rgba(108, 92, 231, 0.12) 0%, transparent 60%);
}

.site-footer__top {
  position: relative;
  display: grid;
  gap: clamp(28px, 4vw, 60px);
  grid-template-columns: minmax(280px, 1.5fr) repeat(3, minmax(130px, 1fr));
  padding-top: clamp(46px, 6vw, 88px);
  padding-bottom: clamp(30px, 4vw, 56px);
}

.site-footer__brand { display: block; }

.site-footer__motto {
  margin-top: 16px;
  max-width: 34ch;
  color: var(--muted);
  font-size: 15px;
}

.site-footer__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.footer-col__title {
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-col__list li + li { margin-top: 10px; }

.footer-col__list a {
  font-size: 15px;
  color: var(--muted);
  transition: color var(--dur) var(--ease);
}

.footer-col__list a:hover { color: var(--gold-b); }

.site-footer__contact {
  position: relative;
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 1px solid var(--line);
}

.contact-list {
  display: grid;
  gap: 16px 32px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.contact-list__item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.contact-list__key {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-list__val {
  font-size: 15px;
  color: var(--text);
  overflow-wrap: anywhere;
}

.site-footer__base {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  padding-top: 18px;
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
}

.legal-line {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1200px) {
  :root { --header-h: 64px; }
  .nav__link { font-size: 14.5px; }
}

@media (max-width: 900px) {
  :root { --header-h: 62px; --pad: clamp(16px, 5vw, 32px); }

  .site-header {
    background: rgba(8, 29, 24, 0.94);
    border-bottom-color: var(--line);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

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

  .nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    display: block;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 6px var(--pad) 22px;
    background: rgba(6, 23, 19, 0.985);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 220ms var(--ease),
                transform 220ms var(--ease),
                visibility 220ms var(--ease);
  }

  .nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav__list {
    counter-reset: nav-item;
    display: block;
  }

  .nav__list li { border-bottom: 1px solid var(--line); }

  .nav__link {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 15px 2px;
    font-size: 16px;
    color: var(--text);
    white-space: normal;
  }

  .nav__link::before {
    counter-increment: nav-item;
    content: counter(nav-item, decimal-leading-zero);
    font-family: var(--f-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--gold);
  }

  .nav__link::after { display: none; }

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

  .site-footer__top {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }

  body { font-size: 16px; }

  .header-actions__wide { display: none; }

  .btn { min-height: 36px; padding: 0 13px; font-size: 13px; }

  .brand__name { font-size: 16px; }

  .site-footer__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .site-footer__base {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- 16. 减少动效 ---------- */
@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;
  }

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