/* ==========================================================================
   果博东方 · 共享样式表 /assets/site.css
   东方夜幕下的数字档案库 —— 蓝图网格 / 切角面板 / 12° 斜线
   ========================================================================== */

/* ---------- 0. 设计令牌 ---------- */
:root {
  --ink-950: #05131F;
  --ink-900: #071A2F;
  --ink-800: #0C2440;
  --slate-600: #4A5F78;
  --line-400: #24405F;
  --text-primary: #E8EEF6;
  --text-muted: #9FB2C8;
  --vermilion-500: #FF6A2B;
  --vermilion-700: #D9481A;
  --gold-400: #F2B33D;
  --gold-600: #C98F2A;
  --mint-400: #4FC3AE;

  --f-2xs: 11px;
  --f-xs: 13px;
  --f-sm: 16px;
  --f-md: 20px;
  --f-lg: clamp(19px, 2.4vw, 25px);
  --f-xl: clamp(21px, 3vw, 31px);
  --f-2xl: clamp(24px, 4vw, 39px);
  --f-3xl: clamp(28px, 5.4vw, 49px);
  --f-4xl: clamp(34px, 7vw, 61px);

  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;

  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 32px);
  --header-space: 100px;
  --cut: 18px;
  --skew: 12deg;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-drawer: -28px 0 56px rgba(0, 0, 0, .45);
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--ink-900);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background-image:
    repeating-linear-gradient(to right, rgba(74, 95, 120, .13) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(to bottom, rgba(36, 64, 95, .20) 0 1px, transparent 1px 8px);
  opacity: .55;
}

body::after {
  background-image:
    radial-gradient(58% 46% at 82% 6%, rgba(255, 106, 43, .10), transparent 68%),
    radial-gradient(52% 42% at 6% 94%, rgba(242, 179, 61, .07), transparent 70%);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.02em;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
hr { border: 0; height: 1px; background: var(--line-400); margin: 0; }
strong, b { font-weight: 900; }

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

::selection {
  background: var(--vermilion-500);
  color: var(--ink-950);
}

.is-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- 2. 跳到主内容 ---------- */
.skip-link {
  position: fixed;
  top: -110px;
  left: 16px;
  z-index: 200;
  display: inline-block;
  padding: 11px 20px;
  background: var(--vermilion-500);
  color: var(--ink-950);
  font-size: var(--f-xs);
  font-weight: 900;
  letter-spacing: .08em;
  text-decoration: none;
  border-radius: 2px;
  transition: top .22s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 14px;
  outline: 2px solid var(--gold-400);
  outline-offset: 2px;
}

/* ---------- 3. 头部 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .28s var(--ease), border-color .28s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(7, 26, 47, .96);
  border-bottom-color: var(--line-400);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.header-grid {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px 28px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 26px var(--gutter);
  transition: padding .3s var(--ease);
}

.site-header.is-scrolled .header-grid { padding-block: 19px; }

/* 品牌 */
.brand-block {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  white-space: nowrap;
}

.brand-cn {
  font-family: var(--sans);
  font-size: var(--f-md);
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1.2;
}

.brand-tag {
  font-size: var(--f-2xs);
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--text-muted);
}

.brand-link:hover .brand-cn { color: var(--gold-400); }

.version-chip {
  display: inline-block;
  padding: 3px 9px;
  font-family: var(--mono);
  font-size: var(--f-2xs);
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.4;
  color: var(--gold-400);
  background: rgba(242, 179, 61, .08);
  border: 1px solid rgba(242, 179, 61, .42);
  border-radius: 2px;
  white-space: nowrap;
}

/* 主导航 */
.site-nav {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 9px 13px;
  font-size: var(--f-xs);
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.4;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 2px;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 3px;
  height: 1px;
  background: var(--vermilion-500);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .24s var(--ease);
}

.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] {
  color: var(--text-primary);
  background: rgba(255, 106, 43, .07);
}

.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  background: var(--gold-400);
  transform: rotate(45deg);
}

.nav-kicker,
.nav-foot { display: none; }

/* 右侧元信息 */
.header-meta {
  grid-column: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.meta-domain {
  font-family: var(--mono);
  font-size: var(--f-2xs);
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--text-muted);
}

/* 移动按钮 */
.nav-toggle {
  grid-column: 4;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  background: transparent;
  border: 1px solid var(--line-400);
  border-radius: 2px;
  font-size: var(--f-2xs);
  font-weight: 500;
  letter-spacing: .14em;
  line-height: 1.4;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease), background-color .18s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--vermilion-500);
  color: var(--vermilion-500);
}

.nav-toggle-glyph {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 16px;
  height: 12px;
}

.nav-toggle-glyph i {
  display: block;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform .24s var(--ease), opacity .18s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-glyph i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-glyph i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-glyph i:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

/* 滚动进度刻度 */
.scroll-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: transparent;
  opacity: 0;
  transition: opacity .3s var(--ease);
}

.site-header.is-scrolled .scroll-rail { opacity: 1; }

.scroll-rail-fill {
  display: block;
  width: 0;
  height: 100%;
  background-image: linear-gradient(90deg, var(--vermilion-500), var(--gold-400));
}

/* ---------- 4. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--ink-950);
  border-top: 1px solid var(--line-400);
  margin-top: clamp(64px, 9vw, 120px);
  padding-bottom: 40px;
}

.footer-scale {
  height: 20px;
  margin-inline: auto;
  max-width: var(--maxw);
  background-image: repeating-linear-gradient(90deg, var(--slate-600) 0 1px, transparent 1px 16px);
  background-size: 100% 8px;
  background-position: 0 100%;
  background-repeat: repeat-x;
  opacity: .6;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.9fr) minmax(0, 1.3fr);
  gap: 48px 44px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 56px var(--gutter) 0;
}

.footer-brand { min-width: 0; }

.footer-brand-cn {
  margin: 0 0 6px;
  font-size: var(--f-lg);
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1.2;
  color: var(--text-primary);
}

.footer-brand-sub {
  margin: 0 0 14px;
  font-size: var(--f-xs);
  letter-spacing: .08em;
  line-height: 1.6;
  color: var(--text-muted);
}

.footer-domain {
  display: inline-block;
  margin: 0;
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: var(--f-2xs);
  letter-spacing: .04em;
  color: var(--gold-400);
  background: rgba(242, 179, 61, .07);
  border-left: 2px solid var(--gold-600);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 20px;
  min-width: 0;
}

.footer-col { min-width: 0; }

.footer-col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: var(--f-2xs);
  font-weight: 500;
  letter-spacing: .18em;
  line-height: 1.4;
  color: var(--text-muted);
}

.footer-col-title::after {
  content: "";
  flex: 1 1 auto;
  min-width: 12px;
  height: 1px;
  background: var(--line-400);
}

.footer-col-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-list a {
  display: inline-block;
  padding-bottom: 2px;
  font-size: 14px;
  letter-spacing: .03em;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.footer-col-list a:hover {
  color: var(--gold-400);
  border-bottom-color: rgba(242, 179, 61, .5);
}

.footer-channel { min-width: 0; }

.footer-channel-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-channel-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: var(--f-xs);
  line-height: 1.6;
  color: var(--text-muted);
  word-break: break-word;
}

.channel-key {
  flex: none;
  min-width: 32px;
  font-family: var(--mono);
  font-size: var(--f-2xs);
  letter-spacing: .08em;
  color: var(--gold-600);
}

.channel-val { color: var(--text-primary); }

.footer-channel-note {
  margin: 16px 0 0;
  font-size: var(--f-2xs);
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--text-muted);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 28px;
  max-width: var(--maxw);
  margin: 52px auto 0;
  padding: 22px var(--gutter) 0;
  border-top: 1px solid var(--line-400);
}

.footer-legal {
  margin: 0;
  font-size: var(--f-xs);
  line-height: 1.7;
  letter-spacing: .02em;
  color: var(--text-muted);
}

.footer-stamp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: var(--f-2xs);
  letter-spacing: .04em;
  color: var(--text-muted);
}

.footer-stamp-tick {
  width: 46px;
  height: 8px;
  background-image: repeating-linear-gradient(90deg, var(--gold-600) 0 1px, transparent 1px 6px);
  background-size: 100% 6px;
  background-position: 0 100%;
  background-repeat: repeat-x;
  opacity: .85;
}

/* ---------- 5. 布局容器与网格 ---------- */
main#main-content {
  position: relative;
  z-index: 1;
  padding-block-start: var(--header-space);
  min-height: 60vh;
}

main#main-content.bleed-top { padding-block-start: 0; }

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--line-400);
}

/* ---------- 6. 排版工具 ---------- */
.mono {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: .02em;
}

.num {
  font-family: var(--mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

.label {
  font-size: var(--f-2xs);
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.4;
  color: var(--text-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: var(--f-2xs);
  font-weight: 500;
  letter-spacing: .18em;
  line-height: 1.4;
  color: var(--gold-400);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--vermilion-500);
  transform: rotate(-12deg);
}

.section-number {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: var(--f-md);
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.2;
  color: var(--gold-400);
}

.section-number::after {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--vermilion-500);
  transform: rotate(-12deg);
}

.serif-line {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: .02em;
}

.prose {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
}

.prose > * + * { margin-top: 1em; }
.prose p { margin: 0; }
.prose h2 { font-size: var(--f-lg); margin-top: 1.6em; }
.prose h3 { font-size: var(--f-md); margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { list-style: none; position: relative; }
.prose li::before {
  content: "";
  position: absolute;
  left: -1.1em;
  top: .78em;
  width: 5px;
  height: 1px;
  background: var(--vermilion-500);
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  font-family: var(--sans);
  font-size: var(--f-xs);
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1.4;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: background-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}

.btn--primary {
  background: var(--vermilion-500);
  color: var(--ink-950);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--vermilion-700);
  color: var(--text-primary);
}

.btn--ghost {
  background: rgba(255, 106, 43, .07);
  color: var(--vermilion-500);
  box-shadow: inset 0 0 0 1px var(--vermilion-500);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(255, 106, 43, .16);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px var(--vermilion-700);
}

/* ---------- 8. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  font-size: var(--f-2xs);
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.4;
  color: var(--text-muted);
  background: var(--ink-800);
  border: 1px solid var(--line-400);
  border-radius: 2px;
  text-decoration: none;
  transition: color .16s var(--ease), border-color .16s var(--ease), background-color .16s var(--ease), box-shadow .16s var(--ease);
}

.tag:hover {
  color: var(--gold-400);
  border-color: var(--gold-600);
  box-shadow: 0 0 0 3px rgba(242, 179, 61, .10);
}

.tag--active {
  background: var(--vermilion-500);
  border-color: var(--vermilion-500);
  color: var(--ink-950);
  font-weight: 900;
  box-shadow: 0 0 12px rgba(255, 106, 43, .38);
}

/* ---------- 9. 面包屑 ---------- */
.breadcrumb {
  font-size: var(--f-2xs);
  letter-spacing: .1em;
  color: var(--text-muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb li::after {
  content: "/";
  color: var(--slate-600);
}

.breadcrumb li:last-child::after { content: none; }

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color .16s var(--ease);
}

.breadcrumb a:hover { color: var(--gold-400); }
.breadcrumb [aria-current="page"] { color: var(--text-primary); }

/* ---------- 10. 图片容器基础规则 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink-800);
  border: 1px solid var(--line-400);
  border-radius: 0;
}

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

.media--cut {
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  border: 0;
}

.media--ratio-16-9 { aspect-ratio: 16 / 9; }
.media--ratio-4-3 { aspect-ratio: 4 / 3; }
.media--ratio-3-2 { aspect-ratio: 3 / 2; }
.media--ratio-1-1 { aspect-ratio: 1 / 1; }

.media-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  padding: 20px;
  background-color: var(--ink-800);
  background-image: repeating-linear-gradient(135deg, rgba(36, 64, 95, .55) 0 1px, transparent 1px 12px);
  border: 1px solid var(--line-400);
  color: var(--slate-600);
  font-family: var(--mono);
  font-size: var(--f-2xs);
  letter-spacing: .18em;
  text-align: center;
}

/* ---------- 11. 动效：滚动显现 ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .32s var(--ease), transform .32s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
  }

  [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

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

/* ---------- 12. 响应式 ---------- */
@media (max-width: 1080px) {
  .header-grid { gap: 14px 18px; }
  .nav-link { padding: 9px 10px; letter-spacing: .05em; }
  .meta-domain { display: none; }
}

@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-channel { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-space: 76px; }

  .header-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 16px var(--gutter);
  }

  .site-header.is-scrolled .header-grid { padding-block: 12px; }

  .brand-block { grid-column: 1; }
  .header-meta { display: none; }
  .nav-toggle {
    grid-column: 2;
    position: relative;
    z-index: 130;
  }

  .nav-toggle-label { display: none; }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 120;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: min(86vw, 360px);
    padding: 92px 0 32px;
    background: var(--ink-950);
    border-left: 1px solid var(--line-400);
    box-shadow: var(--shadow-drawer);
    overflow-y: auto;
    visibility: hidden;
    transform: translateX(101%);
    transition: transform .32s var(--ease), visibility .32s var(--ease);
  }

  .site-nav[data-open="true"] {
    visibility: visible;
    transform: translateX(0);
  }

  .nav-kicker {
    display: block;
    margin: 0;
    padding: 0 28px 14px;
    font-family: var(--mono);
    font-size: var(--f-2xs);
    letter-spacing: .18em;
    color: var(--gold-400);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-item { border-bottom: 1px solid var(--line-400); }

  .nav-item:first-child { border-top: 1px solid var(--line-400); }

  .nav-link {
    display: block;
    padding: 16px 28px;
    font-size: var(--f-sm);
    letter-spacing: .06em;
    border-radius: 0;
    color: var(--text-muted);
  }

  .nav-link::after {
    left: 0;
    right: auto;
    top: 14px;
    bottom: 14px;
    width: 3px;
    height: auto;
    transform: scaleY(0);
    transform-origin: top center;
  }

  .nav-link:hover { background: rgba(232, 238, 246, .03); }
  .nav-link:hover::after { transform: scaleY(1); }

  .nav-link[aria-current="page"] {
    color: var(--vermilion-500);
    background: rgba(255, 106, 43, .08);
  }

  .nav-link[aria-current="page"]::after { transform: scaleY(1); }
  .nav-link[aria-current="page"]::before { display: none; }

  .nav-foot {
    display: block;
    margin-top: auto;
    padding: 26px 28px 0;
  }

  .nav-foot-label {
    margin: 0 0 12px;
    font-family: var(--mono);
    font-size: var(--f-2xs);
    letter-spacing: .18em;
    color: var(--text-muted);
  }

  .nav-foot-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .nav-foot-link {
    font-size: var(--f-xs);
    letter-spacing: .06em;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .16s var(--ease), border-color .16s var(--ease);
  }

  .nav-foot-link:hover {
    color: var(--gold-400);
    border-bottom-color: rgba(242, 179, 61, .5);
  }

  body[data-nav-open="true"] { overflow: hidden; }
}

@media (max-width: 640px) {
  .brand-tag { display: none; }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-top: 40px;
  }

  .footer-brand,
  .footer-channel { grid-column: auto; }

  .footer-cols { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 36px;
  }

  .grid-12 { gap: 16px; }
}
