/* /assets/site.css — 长乐坊服务共享外壳 */

/* ============ 1. 设计变量 ============ */
:root {
  --cinnabar: #C8342B;
  --cinnabar-deep: #8E1F1A;
  --gold: #C9A227;
  --gold-light: #EBD9A0;
  --ink: #171412;
  --ink-soft: #3A3532;
  --paper: #F7F2E8;
  --mist: #DCE4E2;
  --sheet: #FFFDF8;
  --tea: #6B4A2F;
  --grey: #8C9A9B;
  --line: rgba(58, 53, 50, .18);
  --line-strong: rgba(58, 53, 50, .36);
  --line-light: rgba(247, 242, 232, .16);
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(23, 20, 18, .06);
  --shadow-md: 0 18px 44px -26px rgba(23, 20, 18, .5);
  --shell: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(.2, .7, .3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { padding: 0; border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { width: 100%; border-collapse: collapse; }
main { display: block; }

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

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

/* ============ 3. 中文排版 ============ */
body { font-weight: 400; }
h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
p { max-width: 42em; }

.display {
  max-width: 12em;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.6vw, 6rem);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.025em;
}

.lede {
  max-width: 34em;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.8;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65em;
  color: var(--cinnabar-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
  flex: none;
}

.annotation {
  writing-mode: vertical-rl;
  color: var(--grey);
  font-size: 12px;
  letter-spacing: .24em;
  line-height: 1.5;
}

.text-link {
  color: var(--cinnabar-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.text-link:hover { color: var(--cinnabar); }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(28px, 4vw, 56px); }
.section--dark {
  background: var(--ink);
  color: var(--paper);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--paper); }
.section--dark .lede { color: rgba(247, 242, 232, .74); }
.section--dark .eyebrow { color: var(--gold-light); }
.section--mist { background: var(--mist); }
.section--gold { background: var(--gold-light); }

.divider {
  height: 1px;
  margin: 0;
  border: 0;
  background: linear-gradient(90deg, var(--cinnabar) 0 48px, var(--line) 48px 100%);
}

/* ============ 5. 按钮与标签 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .18s var(--ease),
              color .18s var(--ease),
              border-color .18s var(--ease),
              box-shadow .18s var(--ease);
}
.btn--primary {
  background: var(--cinnabar);
  color: var(--sheet);
  box-shadow: 0 8px 18px -12px rgba(200, 52, 43, .9);
}
.btn--primary:hover { background: var(--cinnabar-deep); }
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(23, 20, 18, .04);
}
.btn--gold {
  background: var(--gold);
  color: var(--ink);
}
.btn--gold:hover { background: var(--gold-light); }
.btn--sm {
  padding: 9px 16px;
  font-size: 13.5px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: 4px 12px;
  border: 1px solid rgba(107, 74, 47, .2);
  border-radius: 999px;
  background: var(--gold-light);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: .08em;
}

.stamp {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid rgba(235, 217, 160, .5);
  border-radius: 4px 12px 4px 12px;
  color: var(--gold-light);
  font-size: 11px;
  letter-spacing: .16em;
  line-height: 1.5;
}
.stamp--gold {
  background: var(--gold);
  border-color: transparent;
  color: var(--ink);
}

/* ============ 6. 跳过链接 ============ */
.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--sheet);
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-180%);
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ============ 7. 站点头部 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--paper);
  transition: box-shadow .18s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 18px 40px -30px rgba(23, 20, 18, .7);
}

.scroll-meter {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: 3px;
  background: rgba(23, 20, 18, .07);
  pointer-events: none;
}
.scroll-meter__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.announce-bar {
  background: var(--ink);
  color: var(--gold-light);
}
.announce-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
  padding-block: 6px;
}
.announce-bar__text {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: none;
  font-size: 12.5px;
  letter-spacing: .04em;
  line-height: 1.5;
}
.announce-bar__dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--cinnabar);
  box-shadow: 0 0 0 3px rgba(200, 52, 43, .24);
}
.announce-bar__stamp {
  color: rgba(235, 217, 160, .75);
  font-size: 10.5px;
  letter-spacing: .16em;
  white-space: nowrap;
}

.masthead {
  background-color: var(--paper);
  background-image: radial-gradient(rgba(23, 20, 18, .055) .8px, transparent .8px);
  background-size: 6px 6px;
}
.masthead__inner {
  position: relative;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  grid-template-areas: "brand note nav toggle";
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding-block: 14px 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  grid-area: brand;
}
.brand__seal {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  flex: none;
  padding: 5px;
  border-radius: 14px 5px 14px 5px;
  background: var(--cinnabar);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .04em;
  writing-mode: vertical-rl;
  text-orientation: upright;
  box-shadow: inset 0 0 0 1px rgba(235, 217, 160, .45),
              0 8px 18px -12px rgba(142, 31, 26, .9);
}
.brand__seal::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-light);
  opacity: .8;
}
.brand__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.brand__name {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: .02em;
  white-space: nowrap;
}
.brand__tagline {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: .04em;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.masthead__note {
  grid-area: note;
  justify-self: start;
  align-self: center;
  max-height: 62px;
  padding-left: 7px;
  border-left: 1px solid var(--line);
  color: var(--grey);
  font-size: 11px;
  letter-spacing: .24em;
  line-height: 1.4;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
  grid-area: nav;
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 11px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  right: 11px;
  bottom: 4px;
  left: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--cinnabar);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .18s var(--ease);
}
.nav-link:hover {
  background: rgba(220, 228, 226, .7);
  color: var(--ink);
}
.nav-link[aria-current="page"] {
  color: var(--cinnabar-deep);
  font-weight: 700;
}
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-aside {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  flex: none;
}
.utility-link {
  padding: 6px 4px;
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: rgba(58, 53, 50, .3);
  text-underline-offset: 4px;
  transition: color .18s var(--ease);
}
.utility-link:hover {
  color: var(--cinnabar-deep);
  text-decoration-color: currentColor;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  grid-area: toggle;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--sheet);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .2s 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);
}

/* ============ 8. 通用内容组件 ============ */
.page-head {
  position: relative;
  padding-block: clamp(38px, 6vw, 72px) clamp(24px, 4vw, 40px);
}
.page-head__title {
  max-width: 12em;
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  line-height: .98;
}
.page-head__note {
  max-width: 36em;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
}

.breadcrumbs { margin-bottom: 18px; }
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--grey);
  font-size: 12.5px;
}
.breadcrumbs__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs__link {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: rgba(58, 53, 50, .25);
  text-underline-offset: 3px;
}
.breadcrumbs__link:hover { color: var(--cinnabar-deep); }
.breadcrumbs__sep { color: var(--grey); }
.breadcrumbs__current { color: var(--ink); font-weight: 600; }

.grid {
  display: grid;
  gap: clamp(18px, 3vw, 32px);
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--7-5 { grid-template-columns: 7fr 5fr; }
.grid--5-7 { grid-template-columns: 5fr 7fr; }

.card {
  position: relative;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--sheet);
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease),
              box-shadow .18s var(--ease),
              border-color .18s var(--ease);
}
.card--flat {
  background: transparent;
  box-shadow: none;
}
.card--dark {
  border-color: rgba(247, 242, 232, .14);
  background: var(--ink);
  color: var(--paper);
}
.card--dark .card__title,
.card--dark h2,
.card--dark h3 { color: var(--paper); }
.card--dark .lede { color: rgba(247, 242, 232, .72); }
.card--gold {
  border-color: rgba(107, 74, 47, .22);
  background: var(--gold-light);
}
.card__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 900;
  line-height: 1.2;
}
.card__meta {
  color: var(--grey);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
}

@media (hover: hover) {
  .card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
  }
  .card--flat:hover { box-shadow: var(--shadow-sm); }
}

.media-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 15% 10%, rgba(200, 52, 43, .17), transparent 60%),
    radial-gradient(120% 100% at 85% 90%, rgba(201, 162, 39, .28), transparent 62%),
    linear-gradient(135deg, var(--mist), var(--sheet) 55%, var(--paper));
}
.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(23, 20, 18, .14) 1px, transparent 1px);
  background-size: 8px 8px;
  opacity: .35;
  pointer-events: none;
}
.media-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame__caption {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(23, 20, 18, .78);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: .06em;
  line-height: 1.5;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat__num {
  color: var(--cinnabar);
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -.02em;
}
.stat__label {
  color: var(--grey);
  font-size: 12px;
  letter-spacing: .16em;
}

.list-clean {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.list-clean li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.7;
}
.list-clean li::before {
  content: "";
  position: absolute;
  top: .72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.copy-btn {
  align-self: start;
  padding: 3px 10px;
  border: 1px solid rgba(201, 162, 39, .5);
  border-radius: 999px;
  background: transparent;
  color: var(--gold-light);
  font-size: 11px;
  letter-spacing: .06em;
  line-height: 1.5;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.copy-btn:hover {
  background: rgba(201, 162, 39, .18);
  color: var(--gold-light);
}
.copy-btn.is-copied {
  background: var(--gold);
  color: var(--ink);
}
.copy-feedback {
  display: block;
  min-height: 1.2em;
  margin-top: 4px;
  color: var(--cinnabar-deep);
  font-size: 12px;
  line-height: 1.5;
}

/* ============ 9. 站点页脚 ============ */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(40px, 7vw, 88px);
  background: var(--ink);
  color: var(--paper);
}
.footer-rule {
  height: 6px;
  background: linear-gradient(90deg,
    var(--cinnabar) 0 22%,
    var(--gold) 22% 30%,
    var(--ink) 30% 100%);
}
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .6fr .6fr .55fr 1.55fr;
  gap: 40px 32px;
  padding-block: 64px 44px;
}

.footer-brand { min-width: 0; }
.footer-mark {
  max-width: none;
  margin-bottom: 12px;
  color: rgba(201, 162, 39, .16);
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 92px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: .06em;
  -webkit-text-stroke: 1px rgba(201, 162, 39, .28);
}
.footer-brand__line {
  max-width: 22em;
  color: var(--paper);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}
.footer-brand__summary {
  max-width: 30em;
  margin-top: 10px;
  color: rgba(247, 242, 232, .62);
  font-size: 13px;
  line-height: 1.8;
}
.footer-stamps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.footer-col { min-width: 0; }
.footer-col__title {
  margin-bottom: 14px;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .2em;
}
.footer-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-list a {
  display: inline-block;
  padding: 5px 0;
  color: rgba(247, 242, 232, .78);
  font-size: 14px;
  line-height: 1.5;
  transition: color .18s var(--ease);
}
.footer-list a:hover {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-contact { min-width: 0; }
.footer-contact__row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(247, 242, 232, .12);
  font-size: 13px;
}
.footer-contact__row--stack { grid-template-columns: 42px minmax(0, 1fr); }
.footer-contact__label {
  padding-top: 2px;
  color: var(--grey);
  font-size: 12px;
  letter-spacing: .12em;
  line-height: 1.5;
}
.footer-contact__value {
  color: rgba(247, 242, 232, .85);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.footer-contact__value.mono {
  font-size: 12px;
  letter-spacing: .02em;
}
.footer-contact .copy-feedback { color: var(--gold-light); }

.footer-note {
  padding-bottom: 28px;
}
.footer-note__text {
  display: block;
  max-width: 78ch;
  color: rgba(247, 242, 232, .52);
  font-size: 12px;
  line-height: 1.8;
}

.footer-base {
  background: rgba(0, 0, 0, .28);
  border-top: 1px solid var(--line-light);
}
.footer-base__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 18px 26px;
  color: rgba(247, 242, 232, .58);
  font-size: 12.5px;
}
.footer-base__copy { max-width: none; }
.footer-base__legal {
  color: var(--gold);
  font-size: 11.5px;
}
.footer-base__note {
  max-width: none;
  color: rgba(247, 242, 232, .45);
  font-size: 12px;
}

/* ============ 10. 加载与滚动状态 ============ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ============ 11. 断点：页头 ============ */
@media (max-width: 1180px) {
  .masthead__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand nav toggle";
  }
  .masthead__note { display: none; }
  .nav-link { font-size: 13.5px; padding-inline: 9px; }
}

@media (max-width: 1080px) and (min-width: 901px) {
  .nav-aside .utility-link { display: none; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 112px; }

  .masthead__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand toggle";
    gap: 12px;
    padding-block: 12px 14px;
  }
  .brand__seal {
    width: 50px;
    height: 50px;
    padding: 4px;
    font-size: 13px;
  }
  .brand__name { font-size: 19px; }
  .brand__tagline { font-size: 11.5px; }

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

  .site-nav {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    display: none;
    z-index: 5;
    max-height: calc(100vh - 128px);
    overflow-y: auto;
    padding: 16px 18px 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--sheet);
    box-shadow: 0 28px 48px -30px rgba(23, 20, 18, .65);
  }
  .site-nav[data-open="true"] {
    display: block;
    animation: nav-drop .2s var(--ease);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .nav-link {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 16px;
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] {
    background: rgba(200, 52, 43, .1);
    color: var(--cinnabar-deep);
  }

  .nav-aside {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    padding-left: 0;
    border-top: 1px dashed var(--line);
    border-left: 0;
  }
  .utility-link {
    display: flex;
    padding: 8px 14px;
    font-size: 14px;
  }
  .nav-aside .btn { width: 100%; }
}

@media (max-width: 460px) {
  .brand__tagline { display: none; }
  .announce-bar__stamp { display: none; }
  .announce-bar__text { font-size: 12px; }
}

/* ============ 12. 断点：页脚 ============ */
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    padding-block: 52px 36px;
  }
  .footer-brand,
  .footer-contact { grid-column: 1 / -1; }
  .footer-mark { font-size: clamp(56px, 10vw, 84px); }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-brand,
  .footer-contact { grid-column: auto; }
  .footer-base__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ============ 13. 断点：通用栅格 ============ */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--7-5,
  .grid--5-7 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .grid--2,
  .grid--3 { grid-template-columns: 1fr; }
  .display { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .page-head__title { font-size: clamp(2rem, 9vw, 2.8rem); }
}

/* ============ 14. 动效与可访问性 ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .card:hover { transform: none; }
}
