/* ==========================================================================
   金沙服务 · 共享样式 /assets/site.css
   砂漏意象：暖纸细砂白 + 深墨绿功能区 + 暖金行动点
   ========================================================================== */

:root {
  --sand-white: #F4EFE6;
  --sand-paper: #E6D8C2;
  --gold: #C9A063;
  --gold-deep: #8C6B3F;
  --clay: #A65E3C;
  --ink-green: #2D4A3E;
  --ink: #1E2A24;
  --moss: #4F6A59;
  --gold-light: #D9B87A;
  --glass: rgba(244, 239, 230, 0.72);
  --glass-line: rgba(217, 184, 122, 0.55);
  --line: rgba(30, 42, 36, 0.14);
  --line-soft: rgba(140, 107, 63, 0.24);

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-data: "DIN Condensed", "DIN Alternate", "Oswald", "Helvetica Neue", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius: 2px;
  --shadow-soft: 0 18px 44px -28px rgba(30, 42, 36, 0.55);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
  background-color: var(--sand-white);
  background-image:
    radial-gradient(120% 70% at 14% 4%, rgba(201, 160, 99, 0.13), transparent 58%),
    radial-gradient(90% 60% at 88% 96%, rgba(166, 94, 60, 0.10), transparent 62%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.06em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.12; }
h2 { font-size: clamp(1.8rem, 3.2vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); letter-spacing: 0.04em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--gold-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--clay); }

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

button { font: inherit; }

::selection { background: rgba(201, 160, 99, 0.42); color: var(--ink); }

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

/* ---------- 容器与正文列 ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

.prose { max-width: 44rem; }
.prose p { max-width: 38em; }
.prose ul,
.prose ol { margin: 0 0 1em 1.2em; padding: 0; list-style: disc; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.72em 1.5em;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
    color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn--gold {
  background: var(--gold);
  color: #1B1A16;
  box-shadow: 0 10px 22px -14px rgba(140, 107, 63, 0.9);
}
.btn--gold:hover { background: var(--gold-light); color: #1B1A16; transform: translateY(-1px); }

.btn--line {
  background: transparent;
  color: var(--gold-deep);
  border-color: var(--gold-deep);
}
.btn--line:hover { background: rgba(201, 160, 99, 0.16); color: var(--ink); }

.btn--sm { padding: 0.5em 1.1em; font-size: 13px; letter-spacing: 0.12em; }

.btn--on-dark {
  background: transparent;
  color: var(--sand-white);
  border-color: rgba(217, 184, 122, 0.7);
}
.btn--on-dark:hover { background: rgba(217, 184, 122, 0.16); color: #FFFDF8; }

/* ---------- 标签与分隔 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 0.9em;
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.tag {
  display: inline-block;
  padding: 0.2em 0.75em;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--moss);
  background: rgba(244, 239, 230, 0.85);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
}

.rule {
  height: 1px;
  border: 0;
  margin: clamp(24px, 4vw, 44px) 0;
  background: linear-gradient(90deg, var(--gold), rgba(140, 107, 63, 0.16) 62%, transparent);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55em;
  margin: 0 0 clamp(18px, 3vw, 32px);
  padding: 0;
  list-style: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--moss);
}
.breadcrumb a { color: var(--gold-deep); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__sep {
  display: inline-block;
  width: 14px;
  height: 1px;
  background: var(--gold-deep);
  opacity: 0.65;
}

/* ---------- 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr); }
.grid--split-rev { grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.62fr); }

/* ---------- 面板与玻璃层 ---------- */
.panel {
  position: relative;
  padding: clamp(20px, 2.6vw, 32px);
  background: var(--sand-paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.panel--paper { background: var(--sand-white); }

.panel--ink {
  background: var(--ink-green);
  border-color: rgba(217, 184, 122, 0.35);
  color: var(--sand-white);
}
.panel--ink h2,
.panel--ink h3 { color: var(--sand-white); }
.panel--ink a { color: var(--gold-light); }

.glass {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
}
.glass > .panel { background: var(--sand-white); }

/* ---------- 图片容器 ---------- */
.figure {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(142deg, var(--sand-paper) 0%, #EDE2CF 46%, rgba(201, 160, 99, 0.38) 100%);
}
.figure > img,
.figure > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: repeating-linear-gradient(115deg, rgba(30, 42, 36, 0.05) 0 1px, transparent 1px 4px);
}
.figure--wide { aspect-ratio: 21 / 9; }
.figure--landscape { aspect-ratio: 16 / 9; }
.figure--square { aspect-ratio: 1 / 1; }
.figure--portrait { aspect-ratio: 3 / 4; }
.figure--auto { aspect-ratio: auto; }

.figure__caption {
  margin-top: 0.7em;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--moss);
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 99;
  padding: 0.7em 1.5em;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--sand-white);
  background: var(--ink-green);
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  transform: translate(-50%, -160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translate(-50%, 0); color: var(--sand-white); }

/* ---------- 页头 ---------- */
.site-header {
  position: relative;
  z-index: 20;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(244, 239, 230, 0.98) 0%, rgba(230, 216, 194, 0.9) 58%, rgba(244, 239, 230, 0.99) 100%);
  border-bottom: 1px solid var(--line-soft);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  pointer-events: none;
  opacity: 0.55;
  background-image: repeating-linear-gradient(90deg, rgba(140, 107, 63, 0.32) 0 1px, transparent 1px 16px);
}

.header-strip {
  background: rgba(244, 239, 230, 0.6);
  border-bottom: 1px solid rgba(140, 107, 63, 0.2);
}
.header-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  min-height: 52px;
  padding-block: 6px;
}
.header-strip__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--moss);
}
.header-strip__item { white-space: nowrap; }
.header-strip__dot {
  flex: none;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}
.header-strip__cta { flex: none; white-space: nowrap; }

.masthead {
  position: relative;
  padding: clamp(16px, 2.6vw, 28px) 16px clamp(12px, 2vw, 20px);
  text-align: center;
}
.masthead::before {
  content: "";
  display: block;
  width: min(240px, 46%);
  height: 1px;
  margin: 0 auto clamp(10px, 1.6vw, 16px);
  opacity: 0.75;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
}
.masthead__brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}
.masthead__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  color: var(--ink);
  transition: color 0.24s var(--ease);
}
.masthead__sub {
  font-family: var(--font-data);
  font-size: clamp(10px, 0.95vw, 12px);
  font-weight: 600;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: var(--gold-deep);
}
.masthead__brand:hover .masthead__title { color: var(--ink-green); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto clamp(12px, 2vw, 18px);
  padding: 9px 20px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--ink-green);
  background: rgba(244, 239, 230, 0.92);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-toggle:hover { border-color: var(--gold-deep); background: rgba(230, 216, 194, 0.9); }
.nav-toggle__bars {
  position: relative;
  display: block;
  flex: none;
  width: 16px;
  height: 8px;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.24s 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(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-3.25px) rotate(-45deg); }
.nav-toggle__label { line-height: 1; }

.site-nav { padding-bottom: clamp(10px, 1.6vw, 16px); }
.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(4px, 1.4vw, 26px);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}
.site-nav__item { display: block; }
.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 9px 4px 11px;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--ink-green);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 4px;
  height: 2px;
  background: var(--gold);
  transition: left 0.26s var(--ease), right 0.26s var(--ease);
}
.site-nav__link:hover { color: var(--ink); }
.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after { left: 4px; right: 4px; }
.site-nav__link[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  padding-top: clamp(40px, 6vw, 72px);
  font-size: 15px;
  color: #EFE7D9;
  background:
    radial-gradient(120% 70% at 12% 0%, rgba(201, 160, 99, 0.18), transparent 60%),
    radial-gradient(90% 60% at 88% 8%, rgba(166, 94, 60, 0.16), transparent 62%),
    linear-gradient(180deg, #2D4A3E 0%, #24382F 58%, #1E2A24 100%);
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
}
.site-footer a { color: #EFE7D9; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(24px, 3.4vw, 48px);
}

.footer-brand__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: 0.16em;
  color: #F4EFE6;
}
.footer-brand__sub {
  margin: 0 0 16px;
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.36em;
  color: var(--gold-light);
}
.footer-brand__note {
  max-width: 26em;
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(239, 231, 217, 0.78);
}

.footer-col__title {
  margin: 0 0 14px;
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--gold-light);
}
.footer-col__list { display: grid; gap: 9px; }
.footer-col__item { margin: 0; }
.footer-col__link {
  font-size: 14px;
  letter-spacing: 0.06em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.footer-col__link:hover { border-bottom-color: rgba(217, 184, 122, 0.7); }

.footer-contact { display: grid; gap: 12px; font-size: 14px; }
.footer-contact__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}
.footer-contact__label {
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(217, 184, 122, 0.9);
}
.footer-contact__value {
  color: rgba(239, 231, 217, 0.86);
  word-break: break-word;
}

.footer-bottom {
  margin-top: clamp(32px, 5vw, 56px);
  border-top: 1px solid rgba(217, 184, 122, 0.26);
}
.footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 18px 22px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(239, 231, 217, 0.66);
}
.footer-copy { margin: 0; letter-spacing: 0.08em; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.footer-legal__link { font-size: 13px; color: rgba(239, 231, 217, 0.78); }
.footer-legal__link:hover { color: var(--gold-light); }
.footer-icp { margin: 0; font-family: var(--font-data); letter-spacing: 0.1em; }

/* ---------- 滚动进度（JS 注入） ---------- */
.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 3px;
  pointer-events: none;
  background: rgba(45, 74, 62, 0.12);
}
.scroll-meter__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--clay), var(--gold) 55%, var(--gold-light));
}

/* ---------- 滚动显现（JS 协议） ---------- */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 平板 ---------- */
@media (max-width: 1080px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 36px);
  }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- 手机 / 窄屏导航折叠 ---------- */
@media (max-width: 900px) {
  body { font-size: 16px; }

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

  .site-nav { padding-bottom: 0; }
  .site-nav__list { display: none; }
  .site-nav[data-open] .site-nav__list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px clamp(16px, 4vw, 32px) 12px;
  }
  .site-nav__link {
    display: block;
    padding: 14px 4px;
    font-size: 15px;
    border-bottom: 1px dashed rgba(140, 107, 63, 0.28);
  }
  .site-nav__link::after { display: none; }
  .site-nav__link[aria-current="page"] { color: var(--clay); }
  .site-nav__link[aria-current="page"]::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 0.6em;
    vertical-align: middle;
    background: var(--gold);
    border-radius: 50%;
  }
  .site-nav__item:last-child .site-nav__link { border-bottom: 0; }

  .masthead { padding-top: 14px; }
  .header-strip__inner { justify-content: center; gap: 8px 14px; padding-block: 9px; }

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

@media (max-width: 560px) {
  .masthead__title { letter-spacing: 0.14em; text-indent: 0.14em; }
  .masthead__sub { letter-spacing: 0.3em; text-indent: 0.3em; }
  .header-strip__meta { font-size: 12px; letter-spacing: 0.02em; }
  .footer-main { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom__inner { 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;
  }
  .reveal-ready [data-reveal],
  .reveal-ready [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
  }
  .scroll-meter__bar { transition: none; }
}
