/* ==========================================================================
   金赢国际 · 共享站点样式 / assets/site.css
   01 变量与重置  02 中文排版  03 布局骨架  04 通用组件
   05 头部        06 页脚    07 动效与可访问性
   ========================================================================== */

/* ---------- 01 变量与重置 ---------- */
:root {
  --ink: #0A1A2A;
  --ink-2: #122C45;
  --ink-3: #1B3A57;
  --gold: #C9A24A;
  --gold-light: #E6C97E;
  --sand: #F4EFE4;
  --paper: #FBFAF6;
  --cinnabar: #A63C32;
  --graphite: #2E3B47;
  --mist: #8B98A3;
  --bronze: #7B6A3F;

  --line-dark: rgba(230, 201, 126, 0.26);
  --line-light: rgba(46, 59, 71, 0.14);
  --on-dark: rgba(244, 239, 228, 0.78);
  --on-dark-strong: #F4EFE4;

  --shell: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --baseline: 8px;
  --radius: 2px;

  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", "SFMono-Regular", "Consolas", "Courier New", monospace;
}

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

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

body {
  margin: 0;
  background-color: var(--sand);
  color: var(--graphite);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) { body { font-size: 17px; } }
@media (min-width: 1200px) { body { font-size: 18px; } }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.32;
  color: var(--ink);
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img, picture, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
table { border-collapse: collapse; }

::selection {
  background: rgba(201, 162, 74, 0.34);
  color: var(--ink);
}

/* ---------- 02 中文排版 ---------- */
.display {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(28px, 6vw, 56px);
  letter-spacing: 0.08em;
  line-height: 1.18;
  color: var(--ink);
}

.headline {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(22px, 3.4vw, 36px);
  letter-spacing: 0.12em;
  line-height: 1.34;
  color: var(--ink);
}

.lede {
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.8;
  letter-spacing: 0.01em;
  color: var(--graphite);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.index-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

/* ---------- 03 布局骨架 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(44px, 6vw, 88px); }
.section--ink { background: var(--ink); color: var(--on-dark); }
.section--ink-2 { background: var(--ink-2); color: var(--on-dark); }
.section--paper { background: var(--paper); }
.section--sand { background: var(--sand); }

.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4,
.section--ink-2 h1, .section--ink-2 h2, .section--ink-2 h3, .section--ink-2 h4,
.section--ink .display, .section--ink .headline,
.section--ink-2 .display, .section--ink-2 .headline { color: var(--sand); }

.section--ink .lede,
.section--ink-2 .lede { color: rgba(244, 239, 228, 0.82); }

.grid { display: grid; gap: clamp(16px, 2.4vw, 32px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.grid--sidebar { grid-template-columns: 1fr; }

@media (min-width: 1024px) {
  .grid--sidebar {
    grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
    gap: clamp(32px, 4vw, 56px);
    align-items: start;
  }
}

#main-content { display: block; }

/* ---------- 04 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, transform 0.18s ease;
}

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #12100A;
}
.btn--gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn--gold:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-dark);
  color: var(--on-dark-strong);
}
.btn--ghost:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
  background: rgba(230, 201, 126, 0.08);
}

.btn--ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--sand);
}
.btn--ink:hover { background: var(--ink-2); border-color: var(--ink-2); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--gold);
  color: #12100A;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.18s ease;
}
.skip-link:focus { top: 12px; }

.breadcrumbs {
  padding-block: 14px;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li:not(:last-child)::after {
  content: "／";
  color: var(--mist);
  font-size: 12px;
}
.breadcrumbs a {
  color: var(--graphite);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.breadcrumbs a:hover { color: var(--ink); border-bottom-color: var(--gold); }
.breadcrumbs [aria-current="page"] { color: var(--mist); }

.rule-line {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, rgba(46, 59, 71, 0.30), rgba(46, 59, 71, 0.02));
}
.rule-line--gold {
  background: linear-gradient(90deg, var(--gold), rgba(201, 162, 74, 0));
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid rgba(123, 106, 63, 0.45);
  border-radius: 1px;
  background: rgba(123, 106, 63, 0.07);
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: var(--bronze);
}
.tag--gold {
  border-color: rgba(201, 162, 74, 0.55);
  background: rgba(201, 162, 74, 0.12);
  color: #7A5F1F;
}
.tag--red {
  border-color: rgba(166, 60, 50, 0.42);
  background: rgba(166, 60, 50, 0.08);
  color: var(--cinnabar);
}

.stat {
  display: grid;
  gap: 4px;
  padding-block: 16px;
  border-top: 1px solid var(--line-light);
}
.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.stat__label {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--paper);
}
.table {
  width: 100%;
  min-width: 520px;
  font-size: 14px;
  background: var(--paper);
}
.table caption {
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--mist);
}
.table th,
.table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-light);
}
.table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--ink-2);
  color: var(--sand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-bottom-color: rgba(230, 201, 126, 0.24);
}
.table tbody tr:nth-child(even) { background: rgba(46, 59, 71, 0.035); }
.table tbody tr { transition: background-color 0.16s ease; }
.table tbody tr:hover { background: rgba(201, 162, 74, 0.12); }
.cell-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  letter-spacing: 0.02em;
}

/* 图片容器：页面阶段放置占位图 */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
}
.media > img,
.media > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--3x4 { aspect-ratio: 3 / 4; }
.media--ink {
  background: var(--ink);
  border-color: rgba(230, 201, 126, 0.22);
}
.media__caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  line-height: 1.7;
  color: var(--mist);
}
.media__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  background: var(--gold);
  color: #12100A;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  border-radius: 1px;
}

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

/* ---------- 05 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  color: var(--sand);
  border-bottom: 1px solid rgba(230, 201, 126, 0.22);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 1px, transparent 1px 18px);
  opacity: 0.5;
  pointer-events: none;
}

.header-top { position: relative; }

.header-top__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  min-height: 64px;
  padding-block: 8px;
}

@media (min-width: 901px) {
  .header-top__inner { min-height: 76px; }
}

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

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(150deg, var(--gold-light), var(--gold));
  color: #12100A;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45),
              0 0 0 1px rgba(230, 201, 126, 0.55);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.18em;
  color: var(--sand);
}

.brand__tagline {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--gold);
  white-space: nowrap;
}

.header-note {
  display: none;
  flex: 1 1 auto;
  margin: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(230, 201, 126, 0.62);
  white-space: nowrap;
}

@media (min-width: 1080px) {
  .header-note { display: block; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
}

.header-link {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: rgba(244, 239, 228, 0.84);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.header-link:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

@media (min-width: 720px) {
  .header-link { display: inline-flex; }
}

.header-actions .btn {
  padding-inline: 16px;
  font-size: 14px;
}

@media (max-width: 519px) {
  .header-actions .btn { display: none; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid rgba(230, 201, 126, 0.4);
  border-radius: var(--radius);
  color: var(--gold-light);
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.nav-toggle:hover {
  border-color: var(--gold-light);
  background: rgba(230, 201, 126, 0.08);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}
.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.nav-toggle__label {
  font-size: 12px;
  letter-spacing: 0.2em;
  line-height: 1;
}

@media (min-width: 901px) {
  .nav-toggle { display: none; }
}

.header-nav {
  position: relative;
  background: var(--ink-2);
  border-top: 1px solid rgba(230, 201, 126, 0.18);
}

.nav__list {
  display: flex;
  align-items: stretch;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav__list::-webkit-scrollbar { display: none; }

@media (min-width: 901px) {
  .nav__list {
    justify-content: space-between;
    gap: 8px;
    overflow: visible;
  }
}

.nav__item { flex: 0 0 auto; }

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 12px;
  color: rgba(244, 239, 228, 0.82);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.26s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.nav__link:hover { color: var(--gold-light); }
.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--gold-light); }

.nav__index {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(230, 201, 126, 0.55);
  transition: transform 0.2s ease, color 0.2s ease;
}
.nav__link:hover .nav__index,
.nav__link[aria-current="page"] .nav__index {
  color: var(--gold);
  transform: translateY(-2px);
}

.nav__label { letter-spacing: 0.1em; }

.scroll-meter {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left center;
  box-shadow: 0 0 10px rgba(230, 201, 126, 0.6);
  pointer-events: none;
}

@media (max-width: 900px) {
  .header-nav {
    display: none;
    max-height: 70vh;
    overflow-y: auto;
  }
  .header-nav[data-open] { display: block; }

  .nav__list {
    flex-direction: column;
    gap: 0;
    padding-block: 8px;
    overflow: visible;
  }
  .nav__item {
    flex: 1 1 auto;
    border-bottom: 1px solid rgba(244, 239, 228, 0.09);
  }
  .nav__item:last-child { border-bottom: 0; }

  .nav__link {
    width: 100%;
    min-height: 52px;
    padding: 0 4px;
    justify-content: flex-start;
    font-size: 16px;
  }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] {
    background: rgba(201, 162, 74, 0.12);
    box-shadow: inset 2px 0 0 var(--gold);
  }
  .nav__index { font-size: 12px; }
}

/* ---------- 06 页脚 ---------- */
.site-footer {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  padding-block: clamp(40px, 6vw, 76px) 0;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 2px, transparent 2px 24px);
  opacity: 0.45;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
}

@media (min-width: 640px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 1.5fr 1fr 1.15fr 1fr; }
}

.footer__col { min-width: 0; }

.footer__col--brand { max-width: 34ch; }

.footer__brand {
  display: inline-block;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.16em;
  line-height: 1.3;
  color: var(--sand);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.footer__brand:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

.footer__motto {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.footer__note {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: rgba(244, 239, 228, 0.52);
}

.footer__title {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold-light);
}

.footer__list {
  display: grid;
  gap: 2px;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 2px 0;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: rgba(244, 239, 228, 0.76);
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer__link::before {
  content: "";
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.22s ease;
}
.footer__link:hover { color: var(--gold-light); }
.footer__link:hover::before { width: 12px; }

.footer__contact {
  display: grid;
  gap: 12px;
}
.footer__contact li {
  display: grid;
  gap: 2px;
}
.footer__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(230, 201, 126, 0.7);
}
.footer__value {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(244, 239, 228, 0.88);
  word-break: break-word;
}
.footer__value--mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: clamp(32px, 5vw, 56px);
  padding-block: 18px;
  border-top: 1px solid rgba(230, 201, 126, 0.18);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(244, 239, 228, 0.55);
}
.footer__base p { margin: 0; }
.footer__reg {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

/* ---------- 07 动效与可访问性 ---------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

[data-js] [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-js] [data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .scroll-meter { transition: none; }

  [data-js] [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    transition-delay: 0ms !important;
  }

  .nav__link:hover .nav__index,
  .nav__link[aria-current="page"] .nav__index { transform: none; }
  .btn--gold:active { transform: none; }
}

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
}
