/* ============================================================
   金沙服务 · 共享样式表 /assets/site.css
   骨架：品牌轨道 — 双层导航 — 框景首屏 — 连续画布 — 底部联系带
   ============================================================ */

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

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

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

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

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

a { color: inherit; }

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

:focus-visible {
  outline: 2px solid #26C6B8;
  outline-offset: 3px;
}

/* ---------- 2. 变量 ---------- */
:root {
  /* 品牌色板 */
  --gold: #D99A3D;
  --copper: #A8661F;
  --dusk: #16324A;
  --haze: #2E5068;
  --sand: #F4EDE2;
  --warm: #FBF7F0;
  --neon: #26C6B8;
  --ink: #1E1B18;
  --ash: #8C8175;
  --deep: #0E2233;

  /* 线条 */
  --line: rgba(30, 27, 24, 0.14);
  --line-soft: rgba(251, 247, 240, 0.16);
  --line-faint: rgba(251, 247, 240, 0.09);

  /* 字体 */
  --font-head: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Courier New", monospace;

  /* 尺度 */
  --rail-w: 108px;
  --shell: 1280px;
  --gut: clamp(20px, 4vw, 56px);

  /* 动效 */
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --t: 240ms;
}

/* ---------- 3. 基础排版 ---------- */
body {
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.22;
  color: inherit;
}

h1 { font-size: clamp(34px, 5.6vw, 62px); letter-spacing: 0.04em; }
h2 { font-size: clamp(26px, 3.6vw, 38px); }
h3 { font-size: clamp(19px, 2.2vw, 25px); }

p { line-height: 1.78; }

strong { font-weight: 700; color: var(--ink); }

::selection {
  background: rgba(217, 154, 61, 0.32);
  color: var(--deep);
}

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

/* ---------- 4. 通用容器与分区 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.prose { max-width: 44rem; }

.section { padding-block: clamp(48px, 7vw, 96px); position: relative; }
.section--sand { background: var(--sand); color: var(--ink); }
.section--warm { background: var(--warm); color: var(--ink); }
.section--dusk { background: var(--dusk); color: var(--warm); }
.section--deep { background: var(--deep); color: var(--warm); }
.section--dusk strong,
.section--deep strong { color: var(--warm); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  flex: none;
}
.section--dusk .eyebrow,
.section--deep .eyebrow { color: var(--neon); }

/* ---------- 5. 按钮 ---------- */
.btn {
  --btn-bg: var(--dusk);
  --btn-fg: var(--warm);
  --btn-bd: var(--dusk);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid var(--btn-bd);
  border-radius: 2px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t) var(--ease),
              color var(--t) var(--ease),
              border-color var(--t) var(--ease),
              transform var(--t) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold {
  --btn-bg: var(--gold);
  --btn-fg: #23180A;
  --btn-bd: var(--gold);
}
.btn--gold:hover {
  --btn-bg: #E6AC52;
  --btn-bd: #E6AC52;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: rgba(30, 27, 24, 0.28);
}
.btn--ghost:hover {
  --btn-bd: var(--copper);
  --btn-fg: var(--copper);
}

.btn--onDark {
  --btn-bg: transparent;
  --btn-fg: var(--warm);
  --btn-bd: rgba(251, 247, 240, 0.34);
}
.btn--onDark:hover {
  --btn-bd: var(--gold);
  --btn-fg: var(--gold);
}

.btn--sm {
  padding: 8px 15px;
  font-size: 13px;
  letter-spacing: 0.08em;
}

/* ---------- 6. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ash);
  margin-bottom: 28px;
}
.crumbs a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--t), border-color var(--t);
}
.crumbs a:hover {
  color: var(--copper);
  border-bottom-color: var(--copper);
}
.crumbs__sep { color: rgba(140, 129, 117, 0.6); }
.crumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}
.section--dusk .crumbs,
.section--deep .crumbs { color: rgba(251, 247, 240, 0.55); }
.section--dusk .crumbs [aria-current="page"],
.section--deep .crumbs [aria-current="page"] { color: var(--warm); }

/* ---------- 7. 图片容器基础规则 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(140deg, var(--haze) 0%, var(--dusk) 58%, var(--deep) 100%);
  border-radius: 2px;
}
.media > img,
.media > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms var(--ease);
}
.media--3x2 { aspect-ratio: 3 / 2; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--16x9 { aspect-ratio: 16 / 9; }

.media--slide {
  clip-path: polygon(0 0, 100% 0, 100% 91%, 0 100%);
}
.media--slideAlt {
  clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 96%);
}
.media--grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(251, 247, 240, 0.1) 0 1px,
    transparent 1px 56px
  );
  pointer-events: none;
  opacity: 0.55;
}
.media__ph {
  display: grid;
  place-items: center;
  min-height: 160px;
  padding: 24px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(251, 247, 240, 0.55);
}

/* ---------- 8. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -120px;
  z-index: 999;
  padding: 12px 20px;
  background: var(--gold);
  color: #23180A;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 2px;
  transition: top var(--t) var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  outline: 2px solid var(--neon);
  outline-offset: 3px;
}

/* ============================================================
   9. 页头
   ============================================================ */
.site-head {
  position: relative;
  z-index: 60;
  background: var(--dusk);
  color: var(--warm);
}

.site-head__shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  background: var(--dusk);
}

/* --- 品牌轨道 --- */
.brand-rail {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px var(--gut);
  background: transparent;
  color: var(--warm);
  min-width: 0;
}
.brand-rail__mark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}
.brand-rail__cn {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.14em;
  color: var(--warm);
}
.brand-rail__en {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.brand-rail__rule { display: none; }
.brand-rail__note { display: none; }

/* --- 移动菜单按钮 --- */
.nav-toggle {
  grid-column: 2;
  grid-row: 1;
  margin-right: var(--gut);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(217, 154, 61, 0.55);
  border-radius: 2px;
  background: rgba(14, 34, 51, 0.65);
  color: var(--warm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
}
.nav-toggle:hover { border-color: var(--gold); }
.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 16px;
}
.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  background: var(--gold);
  transition: width var(--t) var(--ease);
}
.nav-toggle__bars span:nth-child(2) { width: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { width: 16px; }

/* --- 主栏 --- */
.head-main {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* --- 上层信息条 --- */
.head-top {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--line);
}
.head-top__lede {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ash);
  line-height: 1.5;
}
.head-top__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 3px rgba(38, 198, 184, 0.16);
  margin-right: 10px;
  flex: none;
}
.head-top__tools {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: none;
}
.head-tool {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--dusk);
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(217, 154, 61, 0.55);
  transition: color var(--t), border-color var(--t);
}
.head-tool:hover {
  color: var(--copper);
  border-bottom-color: var(--copper);
}

/* --- 导航本体（移动端为抽屉） --- */
.main-nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(88vw, 380px);
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 34px;
  background: var(--dusk);
  color: var(--warm);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(102%);
  visibility: hidden;
  transition: transform var(--t) var(--ease), visibility var(--t) var(--ease);
  box-shadow: -18px 0 48px rgba(14, 34, 51, 0.35);
}
.main-nav[data-open] {
  transform: translateX(0);
  visibility: visible;
}

.nav-close {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  margin-bottom: 22px;
  border: 1px solid rgba(251, 247, 240, 0.32);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--warm);
  cursor: pointer;
  transition: border-color var(--t), color var(--t);
}
.nav-close:hover { border-color: var(--gold); color: var(--gold); }

.main-nav__list {
  display: flex;
  flex-direction: column;
}
.main-nav__item { border-bottom: 1px solid var(--line-soft); }
.main-nav__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.08em;
  color: var(--warm);
  transition: color var(--t);
}
.main-nav__link:hover { color: var(--gold); }
.main-nav__num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(251, 247, 240, 0.45);
  transform: translateY(-4px);
  transition: color var(--t);
  flex: none;
  order: 2;
}
.main-nav__label { order: 1; }
.main-nav__link[aria-current="page"] {
  color: var(--gold);
  box-shadow: inset 3px 0 0 var(--gold);
  padding-left: 12px;
}
.main-nav__link[aria-current="page"] .main-nav__num { color: var(--neon); }

.nav-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: auto;
  padding-top: 32px;
}
.nav-foot__note {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(251, 247, 240, 0.5);
}

/* ============================================================
   10. 页脚
   ============================================================ */
.site-foot {
  position: relative;
  background: var(--deep);
  color: rgba(251, 247, 240, 0.86);
  padding: clamp(44px, 6vw, 84px) var(--gut) 0;
  overflow: hidden;
}
.site-foot::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(251, 247, 240, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 247, 240, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.site-foot::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--copper) 34%, var(--neon) 100%);
  opacity: 0.85;
}
.site-foot > * { position: relative; z-index: 1; }

.site-foot__grid {
  max-width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(36px, 5vw, 66px);
}

.foot-brand__name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: 0.14em;
  color: var(--warm);
  line-height: 1.2;
}
.foot-brand__en {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.foot-brand__note {
  margin-top: 18px;
  max-width: 24em;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(251, 247, 240, 0.66);
}
.foot-brand__icp {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(251, 247, 240, 0.42);
}

.foot-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.foot-list {
  display: grid;
  gap: 9px;
  font-size: 14px;
}
.foot-list + .foot-title { margin-top: 30px; }
.foot-list a {
  display: inline-block;
  text-decoration: none;
  color: rgba(251, 247, 240, 0.78);
  border-bottom: 1px solid transparent;
  transition: color var(--t), border-color var(--t);
}
.foot-list a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.foot-list--plain { gap: 0; }

.foot-contact__item {
  display: grid;
  gap: 2px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-faint);
}
.foot-contact__k {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(251, 247, 240, 0.45);
}
.foot-contact__v {
  font-size: 14px;
  line-height: 1.7;
  color: var(--warm);
  word-break: break-word;
}
.foot-contact__note {
  margin: 6px 0 20px;
  max-width: 34em;
  font-size: 12px;
  line-height: 1.8;
  color: rgba(251, 247, 240, 0.5);
}

.site-foot__base {
  max-width: var(--shell);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 20px 0 30px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(251, 247, 240, 0.46);
}

/* ============================================================
   11. 滚动进度 / 返回顶部
   ============================================================ */
.progress-rail {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  pointer-events: none;
  background: rgba(14, 34, 51, 0.1);
}
.progress-rail__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--neon) 100%);
  transition: transform 90ms linear;
}

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 80;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 154, 61, 0.5);
  border-radius: 2px;
  background: var(--dusk);
  color: var(--gold);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--t) var(--ease),
              transform var(--t) var(--ease),
              visibility var(--t) var(--ease),
              border-color var(--t);
}
.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover { border-color: var(--gold); color: var(--warm); }

/* ============================================================
   12. 平板断点 ≥ 768px
   ============================================================ */
@media (min-width: 768px) {
  .site-foot__grid {
    grid-template-columns: 1.25fr 1fr;
  }
  .foot-brand { grid-column: 1 / -1; }
}

/* ============================================================
   13. 桌面断点 ≥ 1024px —— 品牌轨道 + 双层导航
   ============================================================ */
@media (min-width: 1024px) {
  .site-head {
    background: var(--warm);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }

  .site-head__shell {
    grid-template-columns: var(--rail-w) minmax(0, 1fr);
    align-items: stretch;
    background: var(--warm);
  }

  .brand-rail {
    grid-column: 1;
    grid-row: 1;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    padding: 28px 0 24px;
    background: var(--dusk);
    border-right: 1px solid rgba(251, 247, 240, 0.14);
  }
  .brand-rail__mark {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .brand-rail__cn {
    writing-mode: vertical-rl;
    font-size: 20px;
    letter-spacing: 0.26em;
    line-height: 1.1;
  }
  .brand-rail__en {
    writing-mode: vertical-rl;
    letter-spacing: 0.34em;
    font-size: 9px;
  }
  .brand-rail__rule {
    display: block;
    width: 1px;
    flex: 1 1 auto;
    min-height: 36px;
    margin: 18px 0;
    background-image: repeating-linear-gradient(
      to bottom,
      rgba(251, 247, 240, 0.5) 0 1px,
      transparent 1px 7px
    );
  }
  .brand-rail__note {
    display: block;
    writing-mode: vertical-rl;
    font-size: 10px;
    letter-spacing: 0.3em;
    color: rgba(251, 247, 240, 0.55);
    line-height: 1.2;
  }

  .nav-toggle { display: none; }

  .head-main {
    grid-column: 2;
    grid-row: 1;
    justify-content: center;
    padding: 0 clamp(28px, 3.4vw, 52px);
  }

  .head-top { display: flex; }

  .main-nav {
    position: static;
    inset: auto;
    width: auto;
    padding: 0;
    background: transparent;
    color: var(--ink);
    overflow: visible;
    transform: none;
    visibility: visible;
    box-shadow: none;
    transition: none;
  }
  .main-nav[data-open] { transform: none; }

  .nav-close { display: none; }
  .nav-foot { display: none; }

  .main-nav__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: clamp(10px, 2.4vw, 34px);
  }
  .main-nav__item { border-bottom: 0; }

  .main-nav__link {
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px 0 14px;
    font-size: 15px;
    letter-spacing: 0.05em;
    color: var(--ink);
    border-bottom: 2px solid transparent;
  }
  .main-nav__link:hover {
    color: var(--copper);
    border-bottom-color: rgba(217, 154, 61, 0.45);
  }
  .main-nav__num {
    order: 1;
    color: var(--ash);
    font-size: 10px;
    transform: translateY(-5px);
  }
  .main-nav__label { order: 2; }

  .main-nav__link[aria-current="page"] {
    color: var(--copper);
    box-shadow: none;
    padding-left: 0;
    border-bottom-color: var(--gold);
  }
  .main-nav__link[aria-current="page"] .main-nav__num { color: var(--gold); }

  .site-foot__grid {
    grid-template-columns: 1.3fr 1fr 1.1fr;
  }
  .foot-brand { grid-column: auto; }
}

/* ============================================================
   14. 无障碍动效偏好
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover,
  .to-top { transform: none; }
}
