/* =====================================================================
   金赢国际 · 共享样式 /assets/site.css
   目录型内容地图 · 侧边轨道导航 · 矿物色体系
   ===================================================================== */

/* ---------------------------------------------------------------
   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, figure, blockquote, dl, dd, ol, ul { margin: 0; }

ol, ul { 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; text-decoration: none; }

/* ---------------------------------------------------------------
   2. Tokens
   --------------------------------------------------------------- */
:root {
  --indigo: #14224A;
  --night: #0B1530;
  --gold: #C9A227;
  --gold-soft: #E8C96A;
  --celadon: #4F8A7B;
  --terracotta: #C96F45;
  --rock: #5A616B;
  --rice: #F6F1E7;
  --paper: #FCFAF4;
  --ink: #1C1B18;
  --mist: #8FA3C0;

  --line: rgba(20, 34, 74, .14);
  --line-strong: rgba(20, 34, 74, .30);
  --line-gold: rgba(201, 162, 39, .40);
  --rail-line: rgba(201, 162, 39, .26);

  --rail-w: 88px;
  --rail-w-open: 284px;
  --topbar-h: 60px;

  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", SimSun, serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --cut: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------------------------------------------------------------
   3. Base
   --------------------------------------------------------------- */
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--rice);
  background-image: radial-gradient(rgba(20, 34, 74, .045) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.visually-hidden {
  position: absolute;
  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;
}

/* ---------------------------------------------------------------
   4. Layout & 中文排版
   --------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 3.25rem);
}

.section { padding-block: clamp(2.75rem, 6vw, 5.5rem); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(1.4rem, 3vw, 2.4rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
  transform: skewY(-8deg);
}

.display {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.3rem, 6vw, 5.2rem);
  line-height: 1.06;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  line-height: 1.22;
}

.h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.35;
}

.lede {
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.85;
  color: #3A3F48;
  max-width: 62ch;
}

.num {
  font-family: var(--mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
}

.rule-slant {
  height: 3px;
  border: 0;
  background: linear-gradient(90deg,
    var(--gold) 0 26%,
    var(--celadon) 26% 52%,
    var(--terracotta) 52% 66%,
    var(--line) 66% 100%);
  transform: skewY(-1.6deg);
  transform-origin: left center;
}

.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.75rem); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }

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

/* ---------------------------------------------------------------
   5. 通用组件
   --------------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: -140px;
  left: .9rem;
  z-index: 120;
  padding: .65rem 1.1rem;
  font-size: .85rem;
  letter-spacing: .06em;
  color: var(--paper);
  background: var(--night);
  border-left: 3px solid var(--gold);
  transition: top .18s var(--ease);
}
.skip-link:focus { top: .9rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .82rem 1.5rem;
  font-size: .93rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .04em;
  border: 1px solid transparent;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn--primary { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.btn--primary:hover { background: var(--gold); border-color: var(--gold); color: var(--night); }
.btn--gold { background: var(--gold); color: var(--night); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn--ghost { background: transparent; color: var(--indigo); border-color: var(--line-strong); }
.btn--ghost:hover { color: var(--night); border-color: var(--gold); background: rgba(201, 162, 39, .12); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: .26rem .6rem;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .12em;
  color: var(--rock);
  background: var(--paper);
  border: 1px solid var(--line);
}
.tag--celadon { color: var(--celadon); border-color: rgba(79, 138, 123, .45); background: rgba(79, 138, 123, .08); }
.tag--terracotta { color: var(--terracotta); border-color: rgba(201, 111, 69, .45); background: rgba(201, 111, 69, .08); }

.card {
  position: relative;
  padding: clamp(1.1rem, 2.2vw, 1.8rem);
  background: var(--paper);
  border: 1px solid var(--line);
  clip-path: var(--cut);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.card:hover { border-color: var(--line-gold); background: #fff; }

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--celadon);
}
.panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 1.1rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.panel summary::-webkit-details-marker { display: none; }
.panel summary::after {
  content: "＋";
  font-family: var(--mono);
  color: var(--gold);
}
.panel[open] summary::after { content: "－"; }
.panel[open] summary { border-bottom: 1px solid var(--line); }
.panel__body {
  padding: .9rem 1.1rem 1.1rem;
  font-size: .95rem;
  color: #3B414B;
}

.breadcrumb {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .12em;
}
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.breadcrumb li + li::before { content: "⁄"; margin-right: .4rem; color: var(--mist); }
.breadcrumb a { color: var(--rock); border-bottom: 1px solid var(--line); transition: color .18s var(--ease), border-color .18s var(--ease); }
.breadcrumb a:hover { color: var(--indigo); border-bottom-color: var(--gold); }
.breadcrumb [aria-current="page"] { color: var(--ink); }

.toc { font-size: .86rem; }
.toc__title {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .24em;
  color: var(--gold);
  margin-bottom: .7rem;
}
.toc ol { display: flex; flex-direction: column; gap: .2rem; border-left: 1px solid var(--line); }
.toc a {
  display: block;
  padding: .26rem .5rem .26rem .85rem;
  margin-left: -1px;
  color: var(--rock);
  border-left: 2px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.toc a:hover { color: var(--indigo); border-left-color: var(--gold-soft); }
.toc a[aria-current="true"] { color: var(--indigo); font-weight: 600; border-left-color: var(--gold); }

/* 图片容器基础规则（页面阶段填充 img） */
.figure {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--indigo);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}
.figure::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: repeating-radial-gradient(circle at 32% 38%,
    rgba(201, 162, 39, .22) 0 1px,
    transparent 1px 22px);
  pointer-events: none;
}
.figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure--wide { aspect-ratio: 16 / 9; }
.figure--square { aspect-ratio: 1 / 1; }
.figure--tall { aspect-ratio: 4 / 5; }
.figure__caption {
  margin-top: .6rem;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--rock);
}

/* ---------------------------------------------------------------
   6. 页头：顶部进度条 / 品牌条 / 侧边轨道
   --------------------------------------------------------------- */
.site-header { position: static; }

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 95;
  background: rgba(20, 34, 74, .12);
  pointer-events: none;
}
.progress i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transition: width .1s linear;
}

/* 品牌组合 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-width: 0;
  color: inherit;
}
.brand__mark {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--night);
  background: var(--gold);
  clip-path: polygon(0 0, 72% 0, 100% 28%, 100% 100%, 28% 100%, 0 72%);
  transition: background-color .2s var(--ease);
}
.brand:hover .brand__mark { background: var(--gold-soft); }
.brand__text { display: block; min-width: 0; }
.brand__name {
  display: block;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.25;
  white-space: nowrap;
}
.brand__line {
  display: block;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .2em;
  line-height: 1.6;
  color: var(--mist);
}

/* 顶部品牌条（移动 / 平板） */
.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--topbar-h);
  padding: .55rem clamp(1rem, 4vw, 2rem);
  color: var(--rice);
  background: var(--indigo);
  border-bottom: 1px solid var(--rail-line);
}
.brand--bar .brand__mark { flex-basis: 34px; width: 34px; height: 34px; font-size: 1rem; }
.brand--bar .brand__name { font-size: .95rem; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .75rem;
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--paper);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-gold);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.nav-toggle:hover { background: rgba(201, 162, 39, .2); border-color: var(--gold-soft); }
.nav-toggle__label { line-height: 1; }
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 3px; }
.nav-toggle__bars i {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

/* 侧边轨道 */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 85;
  display: flex;
  flex-direction: column;
  width: var(--rail-w);
  padding: 1rem .5rem .9rem;
  color: #C6CEDE;
  background: var(--indigo);
  border-right: 1px solid var(--rail-line);
  overflow: hidden;
  isolation: isolate;
  transition: width .24s var(--ease), box-shadow .24s var(--ease);
}
.rail::before {
  content: "";
  position: absolute;
  left: -78px;
  bottom: -88px;
  width: 230px;
  height: 230px;
  z-index: -1;
  border-radius: 50%;
  background: repeating-radial-gradient(circle,
    rgba(201, 162, 39, .20) 0 1px,
    transparent 1px 16px);
  pointer-events: none;
}

.rail__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--rail-line);
}

.brand--rail {
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  text-align: center;
}
.brand--rail .brand__text { display: none; }
.brand__side {
  display: block;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .28em;
  line-height: 1;
  color: var(--mist);
}

.rail__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  width: 100%;
  padding: .4rem .2rem;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .12em;
  color: var(--gold-soft);
  border: 1px solid rgba(201, 162, 39, .32);
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.rail__toggle:hover { background: rgba(201, 162, 39, .16); border-color: var(--gold); }
.rail__toggle-icon {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .2s var(--ease);
}
.rail[data-open] .rail__toggle-icon { transform: rotate(135deg); }

.rail__close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--gold-soft);
  border: 1px solid rgba(201, 162, 39, .32);
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.rail__close:hover { background: rgba(201, 162, 39, .16); border-color: var(--gold); }

.rail__nav {
  flex: 1;
  min-height: 0;
  padding: .7rem 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 162, 39, .4) transparent;
}
.rail__nav::-webkit-scrollbar { width: 4px; }
.rail__nav::-webkit-scrollbar-thumb { background: rgba(201, 162, 39, .4); }

.nav-list { display: flex; flex-direction: column; gap: .1rem; }

.nav-link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: .5rem .3rem .5rem .45rem;
  color: #C6CEDE;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45rem;
  bottom: .45rem;
  width: 2px;
  background: transparent;
  transition: background-color .18s var(--ease);
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav-link:focus-visible { outline-color: var(--gold-soft); outline-offset: -2px; }
.nav-index {
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .12em;
  line-height: 1.4;
  color: var(--gold);
}
.nav-label {
  font-size: .72rem;
  line-height: 1.28;
  letter-spacing: .01em;
  word-break: break-word;
}
.nav-link[aria-current="page"] {
  color: #fff;
  background: rgba(201, 162, 39, .14);
}
.nav-link[aria-current="page"]::before { background: var(--gold); }
.nav-link[aria-current="page"] .nav-label { font-weight: 600; }

.rail__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding-top: .8rem;
  border-top: 1px solid var(--rail-line);
}
.rail__cta {
  display: block;
  padding: .55rem .3rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-align: center;
  color: var(--night);
  background: var(--gold);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background-color .18s var(--ease);
}
.rail__cta:hover { background: var(--gold-soft); }
.rail__meta {
  font-family: var(--mono);
  font-size: .56rem;
  letter-spacing: .14em;
  text-align: center;
  color: var(--mist);
}

/* 展开态 */
.rail[data-open] {
  width: var(--rail-w-open);
  box-shadow: 26px 0 56px rgba(11, 21, 48, .32);
}
.rail[data-open] .rail__top {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.rail[data-open] .brand--rail {
  flex-direction: row;
  align-items: center;
  text-align: left;
}
.rail[data-open] .brand--rail .brand__text { display: block; }
.rail[data-open] .brand--rail .brand__side { display: none; }
.rail[data-open] .rail__toggle { width: auto; padding: .4rem .6rem; font-size: .66rem; }
.rail[data-open] .nav-link {
  flex-direction: row;
  align-items: baseline;
  gap: .6rem;
  padding: .62rem .7rem;
}
.rail[data-open] .nav-index { font-size: .68rem; }
.rail[data-open] .nav-label { font-size: .95rem; }
.rail[data-open] .rail__cta { font-size: .82rem; padding: .7rem .3rem; }
.rail[data-open] .rail__meta { font-size: .64rem; }

/* 遮罩 */
.scrim { display: none; }

/* ---------------------------------------------------------------
   7. 页脚
   --------------------------------------------------------------- */
.site-footer {
  position: relative;
  isolation: isolate;
  margin-top: clamp(2.75rem, 7vw, 5.5rem);
  padding: clamp(2.4rem, 6vw, 4.25rem) 0 1.25rem;
  color: #B9C2D4;
  background: var(--night);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  height: 6px;
  background: linear-gradient(90deg,
    var(--gold) 0 30%,
    var(--celadon) 30% 58%,
    var(--terracotta) 58% 74%,
    var(--indigo) 74% 100%);
  transform: skewY(-.6deg);
  transform-origin: left top;
}
.site-footer::after {
  content: "";
  position: absolute;
  right: -150px;
  bottom: -150px;
  z-index: 0;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle,
    rgba(201, 162, 39, .16) 0 1px,
    transparent 1px 22px);
  pointer-events: none;
}
.site-footer .shell { position: relative; z-index: 1; }

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.8rem, 4vw, 3rem);
}

.footer__wordmark {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  color: var(--paper);
}
.footer__wordmark::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: .7rem;
  background: var(--gold);
  transform: skewY(-10deg);
}
.footer__tagline {
  margin-top: .85rem;
  max-width: 30ch;
  font-size: .9rem;
  line-height: 1.75;
  color: #97A3BA;
}
.footer__note {
  margin-top: .9rem;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .16em;
  color: var(--gold-soft);
}

.footer__col-title {
  margin-bottom: .85rem;
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .26em;
  color: var(--gold);
}
.footer__list { display: flex; flex-direction: column; gap: .42rem; }
.footer__link {
  position: relative;
  display: inline-block;
  padding-bottom: .1rem;
  font-size: .9rem;
  color: #B9C2D4;
  transition: color .18s var(--ease);
}
.footer__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold-soft);
  transition: width .2s var(--ease);
}
.footer__link:hover { color: var(--paper); }
.footer__link:hover::after { width: 100%; }
.footer__link:focus-visible { outline-color: var(--gold-soft); }

.footer__contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: .6rem 2rem;
  margin-top: clamp(1.9rem, 4vw, 3rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-gold);
}
.footer__contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem;
  font-size: .88rem;
  line-height: 1.6;
}
.footer__label {
  padding: .08rem .42rem;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .18em;
  color: var(--mist);
  border: 1px solid rgba(143, 163, 192, .35);
}
.footer__value { color: var(--paper); word-break: break-word; }
.footer__copy {
  padding: .1rem .5rem;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .1em;
  color: var(--gold-soft);
  border: 1px solid var(--line-gold);
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.footer__copy:hover { color: var(--night); background: var(--gold); border-color: var(--gold); }
.footer__copy-status {
  min-height: 1.3em;
  margin-top: .5rem;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .06em;
  color: var(--gold-soft);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .7rem 1.5rem;
  margin-top: clamp(1.5rem, 3vw, 2.2rem);
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer__legal-text {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .04em;
  color: #8C98B0;
}
.footer__legal-list { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.footer__legal-link {
  font-size: .76rem;
  color: #9AA6BD;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.footer__legal-link:hover { color: var(--gold-soft); border-bottom-color: var(--gold-soft); }

/* ---------------------------------------------------------------
   8. 断点
   --------------------------------------------------------------- */
@media (min-width: 700px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }
  .topbar { display: none; }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer__contact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  .rail {
    width: min(86vw, 330px);
    padding: 1rem 1rem 1.15rem;
    transform: translateX(-104%);
    visibility: hidden;
    transition: transform .24s var(--ease), visibility .24s var(--ease);
    box-shadow: none;
  }
  .rail[data-open] {
    transform: translateX(0);
    visibility: visible;
    box-shadow: 28px 0 64px rgba(11, 21, 48, .48);
  }
  .rail__toggle { display: none; }
  .rail__close { display: inline-flex; }
  .rail[data-open] .brand--rail { flex-direction: row; align-items: center; text-align: left; }
  .rail[data-open] .brand--rail .brand__text { display: block; }
  .rail[data-open] .brand--rail .brand__side { display: none; }
  .rail[data-open] .nav-label { font-size: .98rem; }
  .rail[data-open] .nav-index { font-size: .7rem; }
  .rail[data-open] .rail__cta { font-size: .85rem; padding: .72rem .3rem; }

  .scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 84;
    background: rgba(11, 21, 48, .58);
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s var(--ease);
  }
  body.nav-open .scrim { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
}

/* ---------------------------------------------------------------
   9. 降低动效
   --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .progress i { transition: none; }
}
