/* ============================================================
   神话娱乐方方 · 共享样式 /assets/site.css
   方方神话图鉴：深空蓝纸面、鎏金细线、珊瑚橙索引签
   ============================================================ */

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

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

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

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

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

button,
input,
select,
textarea { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 品牌色 */
  --space-900: #0B1B2B;
  --space-800: #102238;
  --space-700: #14243D;
  --gold: #C9A45C;
  --gold-soft: #E6C98A;
  --coral: #F26B4E;
  --cream: #F7F3EA;
  --sand: #E8E2D9;
  --ink: #1B2A3A;
  --teal: #1F4E5A;
  --wine: #6B2C3E;

  /* 线与影 */
  --line-gold: rgba(201, 164, 92, 0.32);
  --line-soft: rgba(247, 243, 234, 0.12);
  --shadow-plate: 0 26px 60px -42px rgba(0, 0, 0, 0.95);

  /* 字体 */
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-sans: "Noto Sans SC", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* 尺度 */
  --shell: 1180px;
  --gutter: clamp(18px, 4vw, 44px);
  --radius: 8px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--cream);
  background-color: var(--space-900);
  background-image:
    radial-gradient(130% 90% at 50% -12%, rgba(31, 78, 90, 0.42), transparent 62%),
    radial-gradient(80% 60% at 100% 0%, rgba(107, 44, 62, 0.22), transparent 70%),
    linear-gradient(180deg, #0B1B2B 0%, #0C1E33 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; line-height: 1.5; }
h4 { font-size: 1.0625rem; line-height: 1.6; }

strong { font-weight: 600; color: var(--gold-soft); }

::selection {
  background: rgba(201, 164, 92, 0.35);
  color: var(--cream);
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: var(--radius);
  background: var(--gold);
  color: #10202c;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}

/* ---------- 4. 布局工具 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.canvas { padding-block: clamp(48px, 7vw, 96px); }

.canvas--light { background: var(--cream); color: var(--ink); }
.canvas--sand { background: var(--sand); color: var(--ink); }
.canvas--teal { background: var(--teal); color: var(--cream); }
.canvas--wine { background: var(--wine); color: var(--cream); }

.canvas--light ::selection,
.canvas--sand ::selection { background: rgba(201, 164, 92, 0.4); color: var(--ink); }

.prose {
  max-width: 68ch;
  font-size: 1rem;
  line-height: 1.85;
}
.prose > * + * { margin-top: 1.2em; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.6em; }
.prose ul,
.prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.5em; }
.prose a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.canvas--light .prose a,
.canvas--sand .prose a { color: #8A5F1E; }
.prose a:hover { color: var(--gold); }

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

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- 5. 通用文字组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  flex: 0 0 auto;
}
.canvas--light .eyebrow,
.canvas--sand .eyebrow { color: #7A5A22; }
.canvas--light .eyebrow::before,
.canvas--sand .eyebrow::before { background: #A8813C; }

.mono-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(230, 201, 138, 0.66);
}
.canvas--light .mono-note,
.canvas--sand .mono-note { color: rgba(27, 42, 58, 0.6); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--gold-soft);
  white-space: nowrap;
}
.chip--coral {
  border-color: rgba(242, 107, 78, 0.5);
  color: #F9A28F;
  background: rgba(242, 107, 78, 0.1);
}
.chip--teal {
  border-color: rgba(120, 180, 190, 0.4);
  color: #BFD8DC;
  background: rgba(31, 78, 90, 0.45);
}
.chip--wine {
  border-color: rgba(215, 150, 168, 0.4);
  color: #EBC3CC;
  background: rgba(107, 44, 62, 0.45);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(247, 243, 234, 0.5);
}
.breadcrumb a {
  color: var(--gold-soft);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.breadcrumb a:hover { color: var(--cream); }
.breadcrumb__sep { opacity: 0.45; }
.breadcrumb [aria-current="page"] { color: var(--cream); }
.canvas--light .breadcrumb,
.canvas--sand .breadcrumb { color: rgba(27, 42, 58, 0.55); }
.canvas--light .breadcrumb a,
.canvas--sand .breadcrumb a { color: #8A5F1E; }
.canvas--light .breadcrumb [aria-current="page"],
.canvas--sand .breadcrumb [aria-current="page"] { color: var(--ink); }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.2;
  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);
  border-color: var(--gold);
  color: #10202c;
}
.btn--gold:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -16px rgba(201, 164, 92, 0.95);
}
.btn--coral {
  background: var(--coral);
  border-color: var(--coral);
  color: #2A0F09;
}
.btn--coral:hover {
  background: #FF8A6E;
  border-color: #FF8A6E;
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  border-color: var(--line-gold);
  color: var(--gold-soft);
}
.btn--ghost:hover {
  border-color: var(--gold);
  background: rgba(201, 164, 92, 0.1);
  transform: translateY(-2px);
}
.btn--sm { padding: 8px 16px; font-size: 0.8125rem; }

/* ---------- 7. 刊头 / header ---------- */
.masthead {
  position: relative;
  z-index: 60;
  background:
    radial-gradient(120% 150% at 50% -30%, rgba(201, 164, 92, 0.18), transparent 62%),
    var(--space-900);
  border-bottom: 1px solid var(--line-gold);
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 200;
  background: rgba(201, 164, 92, 0.14);
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold), var(--coral));
}

/* 报眼 */
.masthead__bar {
  background: rgba(20, 36, 61, 0.55);
  border-bottom: 1px solid rgba(247, 243, 234, 0.09);
}
.masthead__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}
.masthead__meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: rgba(230, 201, 138, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.masthead__meta--end { text-align: right; }

/* 品牌行 */
.masthead__core {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  padding-block: clamp(18px, 2.4vw, 26px) clamp(14px, 2vw, 22px);
}
.masthead__core > .brand {
  grid-column: 2;
  justify-self: center;
}
.masthead__cta {
  grid-column: 3;
  justify-self: end;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 4px 0;
  text-decoration: none;
  color: inherit;
}
.brand__sigil {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-inline: 5px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  transition: transform 0.45s var(--ease), border-color 0.3s var(--ease);
}
.brand__sigil::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 1px solid var(--gold-soft);
  background: rgba(201, 164, 92, 0.18);
}
.brand__sigil::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(201, 164, 92, 0.22);
  transition: border-color 0.3s var(--ease);
}
.brand:hover .brand__sigil { transform: rotate(135deg); border-color: var(--gold-soft); }
.brand:hover .brand__sigil::after { border-color: rgba(230, 201, 138, 0.45); }

.brand__words {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.brand__name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.1;
  letter-spacing: 0.14em;
  color: var(--cream);
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  line-height: 1.4;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(230, 201, 138, 0.6);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: rgba(20, 36, 61, 0.85);
  color: var(--gold-soft);
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-toggle:hover { border-color: var(--gold); background: rgba(201, 164, 92, 0.12); }
.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 16px;
  flex: 0 0 auto;
}
.nav-toggle__bars i {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.masthead[data-open] .nav-toggle__bars i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.masthead[data-open] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.masthead[data-open] .nav-toggle__bars i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* 栏目带 */
.site-nav {
  background: linear-gradient(180deg, rgba(20, 36, 61, 0.92), rgba(11, 27, 43, 0.55));
  border-top: 1px solid var(--line-gold);
  border-bottom: 1px solid var(--line-gold);
}
.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: clamp(2px, 1.4vw, 10px);
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 14px clamp(9px, 1.5vw, 20px);
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: rgba(247, 243, 234, 0.76);
  transition: color 0.2s var(--ease);
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width 0.25s var(--ease), background-color 0.2s var(--ease);
}
.site-nav__link:hover,
.site-nav__link:focus-visible { color: var(--gold-soft); }
.site-nav__link:hover::after,
.site-nav__link:focus-visible::after { width: 58%; }
.site-nav__link[aria-current="page"] { color: var(--gold-soft); }
.site-nav__link[aria-current="page"]::after {
  width: 58%;
  background: var(--coral);
}

/* 直达索引轨 */
.masthead__rail {
  background: var(--space-900);
  border-bottom: 1px solid var(--line-gold);
}
.masthead__rail-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 11px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 164, 92, 0.4) transparent;
}
.masthead__rail-inner::-webkit-scrollbar { height: 4px; }
.masthead__rail-inner::-webkit-scrollbar-thumb {
  background: rgba(201, 164, 92, 0.4);
  border-radius: 999px;
}
.masthead__rail-label {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(247, 243, 234, 0.4);
}
.rail-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 7px;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  background: rgba(20, 36, 61, 0.6);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--cream);
  transition:
    transform 0.2s var(--ease),
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}
.rail-chip__no {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  background: var(--coral);
  color: #2A0F09;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1;
}
.rail-chip:hover {
  background: rgba(201, 164, 92, 0.16);
  border-color: var(--gold);
  color: var(--gold-soft);
  transform: translateY(-1px);
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(31, 78, 90, 0.5), transparent 66%),
    radial-gradient(90% 80% at 0% 100%, rgba(107, 44, 62, 0.28), transparent 70%),
    linear-gradient(180deg, var(--space-800), var(--space-900));
  border-top: 1px solid var(--line-gold);
  padding-block: clamp(44px, 6vw, 78px) 26px;
  color: rgba(247, 243, 234, 0.76);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer__cols {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 1.3fr 0.8fr;
  gap: clamp(26px, 4vw, 52px);
}

.footer__brand .brand { gap: 18px; }
.footer__tagline {
  margin-top: 20px;
  max-width: 30ch;
  font-size: 0.9375rem;
  line-height: 1.85;
  color: rgba(247, 243, 234, 0.6);
}

.footer__title {
  margin-bottom: 14px;
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold-soft);
}

.footer__links li + li { margin-top: 9px; }
.footer__links a {
  display: inline-block;
  font-size: 0.9375rem;
  color: rgba(247, 243, 234, 0.74);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer__links a:hover,
.footer__links a:focus-visible {
  color: var(--gold-soft);
  transform: translateX(4px);
}

.footer__contact li {
  display: grid;
  gap: 2px;
  margin-bottom: 14px;
}
.footer__contact li:last-child { margin-bottom: 0; }
.footer__label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  color: rgba(230, 201, 138, 0.55);
}
.footer__value {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(247, 243, 234, 0.86);
  overflow-wrap: anywhere;
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  margin-top: clamp(30px, 4vw, 46px);
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.footer__mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(230, 201, 138, 0.6);
}

/* ---------- 9. 共享内容组件 ---------- */
/* 切角展签面板 */
.cut-panel {
  --cut: 16px;
  --panel-bg: var(--space-700);
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  background: var(--panel-bg);
  box-shadow: var(--shadow-plate);
  clip-path: polygon(
    0 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut))
  );
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.cut-panel::before {
  content: "";
  position: absolute;
  top: 4.69px;
  right: 4.68px;
  width: 22.63px;
  height: 22.63px;
  border-top: 1px solid var(--gold);
  transform: rotate(45deg);
  transform-origin: center;
  opacity: 0.8;
  pointer-events: none;
}
.cut-panel--light {
  --panel-bg: var(--cream);
  color: var(--ink);
}
.cut-panel--sand {
  --panel-bg: var(--sand);
  color: var(--ink);
}
.cut-panel--wine {
  --panel-bg: var(--wine);
  color: var(--cream);
}
.cut-panel--teal {
  --panel-bg: var(--teal);
  color: var(--cream);
}
.cut-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 34px 70px -44px rgba(0, 0, 0, 1);
}

/* 展签卡 */
.plate {
  padding: 18px 20px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: rgba(20, 36, 61, 0.45);
}
.plate__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  color: rgba(230, 201, 138, 0.6);
}
.plate__value {
  display: block;
  margin-top: 6px;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--cream);
}
.canvas--light .plate,
.canvas--sand .plate {
  border-color: rgba(27, 42, 58, 0.16);
  background: rgba(255, 255, 255, 0.5);
}
.canvas--light .plate__label,
.canvas--sand .plate__label { color: rgba(27, 42, 58, 0.55); }
.canvas--light .plate__value,
.canvas--sand .plate__value { color: var(--ink); }

/* 图片容器基础规则（页面阶段放置 <img>） */
.frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background:
    linear-gradient(140deg, rgba(201, 164, 92, 0.18), rgba(31, 78, 90, 0.42) 55%, rgba(11, 27, 43, 0.9));
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px);
  opacity: 0.85;
}
.frame:hover img { transform: scale(1.02); }
.frame--square { aspect-ratio: 1 / 1; }
.frame--wide { aspect-ratio: 16 / 9; }
.frame__tag {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 4px 10px;
  border: 1px solid rgba(201, 164, 92, 0.55);
  border-radius: 999px;
  background: rgba(11, 27, 43, 0.72);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  color: var(--gold-soft);
}

/* ---------- 10. 显现动效 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 11. 响应式 ---------- */
@media (max-width: 1080px) {
  .footer__cols { grid-template-columns: 1.5fr 1fr 1.3fr; }
  .footer__col:last-child { grid-column: 2 / -1; }
}

@media (max-width: 980px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col:last-child { grid-column: auto; }
}

@media (max-width: 920px) {
  .masthead__core {
    grid-template-columns: 1fr auto;
    padding-block: 16px 14px;
  }
  .masthead__core > .brand {
    grid-column: 1;
    justify-self: start;
  }
  .masthead__cta { display: none; }
  .nav-toggle {
    display: inline-flex;
    grid-column: 2;
    justify-self: end;
  }

  .site-nav {
    max-height: 0;
    overflow: hidden;
    border-top: 0 solid transparent;
    transition: max-height 0.34s var(--ease);
  }
  .masthead[data-open] .site-nav {
    max-height: 560px;
    border-top: 1px solid var(--line-gold);
  }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 6px 14px;
  }
  .site-nav__item { border-bottom: 1px solid rgba(247, 243, 234, 0.08); }
  .site-nav__item:last-child { border-bottom: 0; }
  .site-nav__link { padding: 14px 2px; }
  .site-nav__link::after { display: none; }
  .site-nav__link[aria-current="page"] {
    color: var(--coral);
    padding-left: 12px;
  }
  .site-nav__link[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 5px;
    height: 5px;
    background: var(--coral);
    transform: translateY(-50%) rotate(45deg);
  }
}

@media (max-width: 900px) {
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .masthead__meta--end { display: none; }
  .masthead__bar-inner { justify-content: center; min-height: 34px; }
  .masthead__meta { font-size: 0.625rem; letter-spacing: 0.14em; }
  .brand { gap: 16px; }
  .brand__name { letter-spacing: 0.1em; }
  .brand__sub { letter-spacing: 0.18em; }

  .footer__cols { grid-template-columns: 1fr; }
  .footer__base { flex-direction: column; align-items: flex-start; }

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

/* ---------- 12. 降低动效 ---------- */
@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;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .cut-panel:hover,
  .btn:hover,
  .rail-chip:hover,
  .footer__links a:hover { transform: none; }
  .frame:hover img { transform: none; }
  .brand:hover .brand__sigil { transform: rotate(45deg); }
}
