/* ============================================================
   澳门威斯人3775中心 · 共享样式表 /assets/site.css
   深海墨蓝基底 + 鎏金索引 + 珊瑚橙节点 + 奶油纸长文
   ============================================================ */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --deep: #071A2B;
  --deep-void: #04101C;
  --harbor: #0E2C45;
  --gold: #C9A45C;
  --gold-soft: #E8C98A;
  --coral: #E0664A;
  --jade: #2F7D6E;
  --cream: #F4ECD8;
  --mist: #DCE6EA;
  --espresso: #1B1F23;
  --wine: #6A2E35;

  --hairline: rgba(201, 164, 92, 0.30);
  --hairline-soft: rgba(220, 230, 234, 0.14);
  --veil: rgba(244, 236, 216, 0.78);

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

  --radius-leaf: 26px 6px 26px 6px;
  --radius-plate: 16px 4px 16px 4px;
  --shell: min(1280px, 100% - 3rem);
  --seal: 52px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-lift: 0 26px 60px -34px rgba(0, 0, 0, 0.9);
}

/* ---------- 2. 基础重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 0.35vw + 0.86rem, 1.05rem);
  line-height: 1.75;
  color: var(--cream);
  background-color: var(--deep);
  background-image:
    radial-gradient(1100px 620px at 84% -8%, rgba(201, 164, 92, 0.16), transparent 62%),
    radial-gradient(880px 520px at 2% 4%, rgba(47, 125, 110, 0.16), transparent 66%),
    radial-gradient(780px 720px at 46% 116%, rgba(224, 102, 74, 0.12), transparent 72%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[id] { scroll-margin-top: 128px; }

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

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

/* ---------- 3. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  padding: 0.7rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--deep-void);
  background: var(--gold);
  border-radius: 0 0 14px 14px;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { top: 0; }

/* ---------- 4. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  color: var(--cream);
  background:
    linear-gradient(180deg, rgba(6, 22, 37, 0.985) 0%, rgba(7, 26, 43, 0.94) 100%);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 18px 40px -32px rgba(0, 0, 0, 0.95);
}

.header-rail {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.25rem);
  padding-block: 0.85rem 0.75rem;
}

.brand-cluster {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.brand-seal {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--seal);
  height: var(--seal);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-soft);
  background:
    linear-gradient(152deg, rgba(201, 164, 92, 0.22), rgba(9, 31, 50, 0.95) 68%);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-leaf);
  box-shadow: inset 0 0 0 1px rgba(4, 16, 28, 0.6);
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease), color 0.22s var(--ease);
}

.brand-mark:hover .brand-seal,
.brand-mark:focus-visible .brand-seal {
  border-color: var(--gold-soft);
  color: var(--cream);
  transform: rotate(-3deg);
}

.brand-text {
  display: grid;
  gap: 0.14rem;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  letter-spacing: 0.12em;
  line-height: 1.2;
  color: var(--cream);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  color: rgba(220, 230, 234, 0.62);
}

.brand-note {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(220, 230, 234, 0.5);
  padding-left: calc(var(--seal) + 0.85rem);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.4vw, 1.15rem);
  justify-self: end;
}

.utility-list {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  list-style: none;
}

.utility-item { display: inline-flex; }

.utility-link,
.utility-button {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: rgba(220, 230, 234, 0.78);
  background: none;
  border: 0;
  border-bottom: 1px dashed rgba(220, 230, 234, 0.28);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.utility-link:hover,
.utility-button:hover {
  color: var(--gold-soft);
  border-bottom-color: var(--gold);
}

.utility-button[aria-pressed="true"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
  border-bottom-style: solid;
}

.utility-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.54rem 1.05rem;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #08131F;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border: 1px solid var(--gold);
  border-radius: var(--radius-plate);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.utility-cta::after {
  content: "→";
  font-family: var(--font-mono);
  font-size: 0.92em;
  transition: transform 0.2s var(--ease);
}

.utility-cta:hover,
.utility-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -18px rgba(201, 164, 92, 0.9);
}

.utility-cta:hover::after { transform: translateX(3px); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.85rem;
  color: var(--gold-soft);
  background: rgba(9, 31, 50, 0.7);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-plate);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

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

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 17px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child { transform: translateY(-3px) rotate(-45deg); }

.nav-toggle-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.primary-nav {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.45rem 0.55rem;
  border-top: 1px solid var(--hairline-soft);
}

.nav-caption {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: rgba(220, 230, 234, 0.46);
  white-space: nowrap;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.12rem 0.3rem;
  list-style: none;
}

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

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.46rem 0.72rem;
  font-size: 0.93rem;
  letter-spacing: 0.06em;
  color: rgba(244, 236, 216, 0.82);
  border: 1px solid transparent;
  border-radius: 12px 3px 12px 3px;
  text-decoration: none;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--gold-soft);
  background: rgba(201, 164, 92, 0.09);
  border-color: var(--hairline);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  opacity: 0.68;
}

.nav-label {
  font-weight: 600;
  letter-spacing: 0.08em;
}

.nav-link[aria-current="page"] {
  color: #08131F;
  background: var(--gold);
  border-color: var(--gold-soft);
}

.nav-link[aria-current="page"] .nav-index { opacity: 0.8; }

.read-progress {
  position: relative;
  height: 2px;
  overflow: hidden;
  background: rgba(220, 230, 234, 0.1);
}

.read-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--jade) 0%, var(--gold) 55%, var(--coral) 100%);
  transition: width 0.14s linear;
}

/* ---------- 5. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 7vw, 6rem);
  color: var(--cream);
  background: linear-gradient(180deg, #0A2033 0%, var(--deep) 46%, #05131F 100%);
  border-top: 1px solid var(--hairline);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 22%, var(--coral) 54%, var(--jade) 78%, transparent 100%);
  opacity: 0.6;
}

.footer-main {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr) minmax(0, 1.05fr);
  gap: clamp(1.6rem, 3.4vw, 3.5rem);
  padding-block: clamp(2.4rem, 4.6vw, 4rem) clamp(1.6rem, 3vw, 2.6rem);
}

.footer-brand {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding-right: clamp(0.8rem, 2vw, 1.8rem);
  border-right: 1px solid var(--hairline-soft);
}

.footer-seal {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--gold-soft);
  background: linear-gradient(150deg, rgba(201, 164, 92, 0.24), rgba(4, 16, 28, 0.9) 70%);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-leaf);
}

.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  letter-spacing: 0.12em;
  line-height: 1.25;
}

.footer-tagline {
  max-width: 30ch;
  font-size: 0.93rem;
  line-height: 1.8;
  color: var(--veil);
}

.footer-mono {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: rgba(201, 164, 92, 0.78);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.8rem);
  align-content: start;
}

.footer-col { display: grid; align-content: start; }

.footer-col-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  color: var(--gold);
  white-space: nowrap;
}

.footer-col-title::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  background: var(--gold);
}

.footer-links {
  display: grid;
  gap: 0.42rem;
  list-style: none;
}

.footer-link {
  display: inline-block;
  width: fit-content;
  font-size: 0.93rem;
  letter-spacing: 0.05em;
  color: rgba(244, 236, 216, 0.82);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--gold-soft);
  border-bottom-color: var(--hairline);
  transform: translateX(2px);
}

.footer-contact { display: grid; align-content: start; }

.footer-contact-list {
  display: grid;
  gap: 0.62rem;
  list-style: none;
}

.footer-contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}

.footer-contact-label {
  min-width: 3.4em;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: rgba(220, 230, 234, 0.5);
}

.footer-contact-value {
  font-size: 0.92rem;
  color: var(--cream);
  overflow-wrap: anywhere;
}

.footer-note {
  margin-top: 0.95rem;
  padding-left: 0.9rem;
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(220, 230, 234, 0.6);
  border-left: 2px solid var(--wine);
}

.footer-legal {
  background: rgba(4, 16, 28, 0.6);
  border-top: 1px solid var(--hairline-soft);
}

.footer-legal-inner {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem 1.6rem;
  padding-block: 1.05rem 1.15rem;
  font-size: 0.78rem;
  color: rgba(220, 230, 234, 0.66);
}

.footer-copy { letter-spacing: 0.06em; }

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  list-style: none;
}

.footer-legal-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.footer-legal-link:hover,
.footer-legal-link:focus-visible {
  color: var(--gold-soft);
  border-bottom-color: var(--hairline);
}

.footer-icp {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: rgba(220, 230, 234, 0.58);
}

/* ---------- 6. 通用容器与排版 ---------- */
.shell {
  width: var(--shell);
  margin-inline: auto;
}

.shell--narrow {
  width: min(820px, 100% - 3rem);
  margin-inline: auto;
}

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

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

.section-head {
  display: grid;
  gap: 0.85rem;
  max-width: 62ch;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  letter-spacing: 0.08em;
  line-height: 1.22;
  color: var(--cream);
}

.lede {
  max-width: 64ch;
  font-size: 1.02rem;
  color: var(--veil);
}

/* ---------- 7. 面包屑 ---------- */
.breadcrumb { padding-block: 1.1rem 0; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(220, 230, 234, 0.6);
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--hairline);
}

.breadcrumb-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.breadcrumb-link:hover {
  color: var(--gold-soft);
  border-bottom-color: var(--hairline);
}

.breadcrumb-item[aria-current="page"] { color: var(--gold-soft); }

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.82rem 1.55rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-soft);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 18px 5px 18px 5px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--gold-soft);
  background: rgba(201, 164, 92, 0.12);
  color: var(--cream);
}

.btn--solid {
  color: #08131F;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border-color: transparent;
}

.btn--solid:hover,
.btn--solid:focus-visible {
  color: #08131F;
  background: linear-gradient(135deg, #F2DCA8, var(--gold-soft));
}

.btn--coral {
  color: #FFE4DC;
  border-color: rgba(224, 102, 74, 0.7);
  background: rgba(224, 102, 74, 0.16);
}

.btn--coral:hover,
.btn--coral:focus-visible {
  color: #FFF3EE;
  background: rgba(224, 102, 74, 0.3);
  border-color: var(--coral);
}

/* ---------- 9. 面板与角标 ---------- */
.panel {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding: clamp(1.1rem, 2.3vw, 1.85rem);
  background: linear-gradient(158deg, rgba(14, 44, 69, 0.94) 0%, rgba(7, 26, 43, 0.94) 100%);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-leaf);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.panel:hover {
  transform: translateY(-3px);
  border-color: var(--gold-soft);
  box-shadow: var(--shadow-lift);
}

.panel-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: 0.06em;
  line-height: 1.4;
  color: var(--cream);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.26rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  background: rgba(201, 164, 92, 0.08);
  width: fit-content;
}

.tag--coral {
  color: #FFD8CE;
  border-color: rgba(224, 102, 74, 0.7);
  background: rgba(224, 102, 74, 0.18);
}

.tag--jade {
  color: #CFEDE4;
  border-color: rgba(47, 125, 110, 0.7);
  background: rgba(47, 125, 110, 0.2);
}

/* ---------- 10. 奶油纸长文 ---------- */
.paper {
  padding: clamp(1.4rem, 4vw, 3rem);
  color: var(--espresso);
  background: var(--cream);
  border-radius: 6px;
  box-shadow: var(--shadow-lift);
}

.paper .section-title,
.paper .panel-title { color: var(--espresso); }

.paper .eyebrow { color: var(--wine); }

.prose { max-width: 70ch; }

.prose > * + * { margin-top: 1rem; }

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.4;
  margin-top: 2rem;
  color: var(--espresso);
}

.prose h3 {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 1.6rem;
  color: #2C241E;
}

.prose p,
.prose li { color: #2E2A24; }

.prose a {
  color: var(--wine);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose ul,
.prose ol { padding-left: 1.3rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4rem; }

.prose blockquote {
  margin: 1.5rem 0;
  padding: 0.35rem 0 0.35rem 1.1rem;
  border-left: 3px solid var(--wine);
  color: #3A2B23;
}

/* ---------- 11. 图像容器 ---------- */
.figure {
  display: grid;
  gap: 0.7rem;
  margin: 0;
}

.figure-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-leaf);
  background:
    linear-gradient(150deg, rgba(14, 44, 69, 0.95) 0%, rgba(4, 16, 28, 0.98) 100%);
}

.figure-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(201, 164, 92, 0.14) 0 1px, transparent 1px 64px),
    radial-gradient(120% 90% at 78% 8%, rgba(224, 102, 74, 0.18), transparent 62%);
  opacity: 0.7;
  pointer-events: none;
}

.figure-frame--wide { aspect-ratio: 21 / 9; }
.figure-frame--tall { aspect-ratio: 4 / 5; }

.figure-media {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

.figure-media img,
.figure-media picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure-caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(220, 230, 234, 0.66);
}

/* ---------- 12. 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.6rem);
}

.grid--split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.grid--duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 13. 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1120px) {
  .footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .footer-brand {
    grid-column: 1 / -1;
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--hairline-soft);
    padding-bottom: 1.4rem;
  }
}

@media (max-width: 900px) {
  :root { --seal: 44px; --shell: min(1280px, 100% - 2rem); }

  .header-rail {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand toggle"
      "tools tools";
    row-gap: 0.85rem;
    padding-block: 0.9rem 0.95rem;
  }

  .brand-cluster { grid-area: brand; }
  .nav-toggle { grid-area: toggle; display: inline-flex; }
  .header-tools { grid-area: tools; justify-self: start; flex-wrap: wrap; }

  .brand-note { padding-left: 0; }

  .primary-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding-block: 0.95rem 1.3rem;
    border-top: 1px solid var(--hairline);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }

  .primary-nav[data-open] { display: flex; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.1rem;
    margin-top: 0.35rem;
  }

  .nav-link {
    justify-content: flex-start;
    gap: 0.8rem;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(220, 230, 234, 0.08);
  }

  .nav-link[aria-current="page"] {
    border-radius: var(--radius-plate);
    border-bottom-color: transparent;
  }

  .grid--split,
  .grid--trio,
  .grid--duo { grid-template-columns: 1fr; }

  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .footer-main { grid-template-columns: 1fr; }
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-legal-inner { justify-content: flex-start; }
  .figure-frame--wide { aspect-ratio: 16 / 10; }
}

@media (max-width: 460px) {
  .utility-list { gap: 0.65rem; }
  .utility-link,
  .utility-button { font-size: 0.68rem; letter-spacing: 0.1em; }
  .utility-cta { padding: 0.5rem 0.85rem; font-size: 0.78rem; }
  .footer-columns { grid-template-columns: 1fr; }
  .brand-name { letter-spacing: 0.08em; }
}

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

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

  .panel:hover,
  .btn:hover,
  .btn:focus-visible,
  .utility-cta:hover,
  .footer-link:hover,
  .brand-mark:hover .brand-seal { transform: none; }
}
