:root {
  color-scheme: dark;
  --ink: #06070b;
  --ink-2: #080a10;
  --ink-3: #0c0f17;
  --ink-4: #111620;
  --paper: #f0ece4;
  --paper-soft: #d8d2c6;
  --paper-dim: rgba(240, 236, 228, 0.58);
  --paper-faint: rgba(240, 236, 228, 0.32);
  --gold: #b99e70;
  --gold-bright: #e5d2ab;
  --gold-faint: rgba(185, 158, 112, 0.14);
  --ice: #9db2c4;
  --red: #c96d5e;
  --green: #89aa91;
  --line: rgba(228, 220, 204, 0.12);
  --line-strong: rgba(228, 220, 204, 0.22);
  --font-display: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "Iowan Old Style", Baskerville, Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --font-latin: "Bodoni 72", Didot, "Iowan Old Style", "Times New Roman", serif;
  --font-mono: "SFMono-Regular", "Roboto Mono", Menlo, Monaco, Consolas, monospace;
  --shell: min(1360px, calc(100vw - 96px));
  --shell-wide: min(1540px, calc(100vw - 64px));
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

html.locale-pending body {
  opacity: 0;
}

html.locale-ready body {
  opacity: 1;
  transition: opacity 0.24s ease;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 77% 13%, rgba(92, 111, 139, 0.12), transparent 26%),
    radial-gradient(circle at 18% 44%, rgba(92, 74, 58, 0.06), transparent 34%),
    var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::selection,
::selection {
  background: rgba(216, 191, 148, 0.28);
  color: #fffaf0;
}

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

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

button {
  border: 0;
  cursor: pointer;
}

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

p,
h1,
h2,
h3,
h4,
h5,
blockquote,
figure {
  margin: 0;
}

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

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 1px solid var(--gold-bright);
  outline-offset: 4px;
}

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

.field-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--paper);
  color: var(--ink);
  font: 12px/1 var(--font-mono);
  letter-spacing: 0.08em;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.grain {
  position: fixed;
  z-index: 1200;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
}

.starfield {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.82;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.88) 38%, transparent 90%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.88) 38%, transparent 90%);
}

.page-vignette {
  position: fixed;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(6, 7, 11, 0.1) 0%, transparent 22%, transparent 80%, rgba(6, 7, 11, 0.82) 100%),
    radial-gradient(ellipse at center, transparent 44%, rgba(3, 4, 7, 0.34) 100%);
}

.scroll-progress {
  position: fixed;
  z-index: 1300;
  top: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), var(--gold-bright));
  box-shadow: 0 0 12px rgba(214, 188, 140, 0.4);
  pointer-events: none;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  overflow: visible;
}

.section-shell {
  position: relative;
  width: var(--shell);
  margin-inline: auto;
}

.section-shell-wide {
  width: var(--shell-wide);
}

.section-rail {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--paper-faint);
  font: 10px/1.2 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-rail::after {
  content: "";
  width: 72px;
  height: 1px;
  background: linear-gradient(to right, var(--line-strong), transparent);
}

.section-rail > span:first-child {
  color: var(--gold);
}

.micro-label {
  display: inline-block;
  color: var(--paper-faint);
  font: 9px/1.4 var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.no-break {
  white-space: nowrap;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(236, 228, 215, 0.52);
  font: 10px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.signal-pulse {
  position: relative;
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 14px rgba(229, 210, 171, 0.75);
}

.signal-pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(229, 210, 171, 0.45);
  border-radius: inherit;
  animation: signal-ping 2.8s var(--ease-out) infinite;
}

@keyframes signal-ping {
  0% { transform: scale(0.45); opacity: 1; }
  70%, 100% { transform: scale(1.8); opacity: 0; }
}

.kicker-rule {
  width: 30px;
  height: 1px;
  background: var(--line-strong);
}

.button {
  --button-fg: var(--paper);
  position: relative;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 24px;
  border: 1px solid transparent;
  font: 11px/1 var(--font-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: color 0.35s var(--ease-soft), border-color 0.35s var(--ease-soft), background-color 0.35s var(--ease-soft), transform 0.35s var(--ease-out);
}

.button:hover {
  transform: translateY(-2px);
}

.button .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.35s var(--ease-out);
}

.button:hover .icon {
  transform: translateX(3px);
}

.button-primary {
  overflow: hidden;
  background: var(--paper);
  color: #101116;
}

.button-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.9) 42%, transparent 64%);
  transform: translateX(-130%);
  transition: transform 0.75s var(--ease-out);
}

.button-primary:hover::before {
  transform: translateX(130%);
}

.button-primary > * {
  position: relative;
}

.button-quiet {
  border-color: var(--line-strong);
  color: var(--paper-soft);
}

.button-quiet:hover {
  border-color: rgba(229, 210, 171, 0.5);
  color: var(--gold-bright);
}

.button-index {
  color: var(--paper-faint);
  font-size: 9px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--paper-soft);
  font: 10px/1.4 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.text-link span {
  color: var(--gold);
  transition: transform 0.35s var(--ease-out);
}

.text-link:hover {
  color: var(--gold-bright);
  border-color: rgba(229, 210, 171, 0.5);
}

.text-link:hover span {
  transform: translate(2px, -2px);
}

/* Header */
.site-header {
  position: fixed;
  z-index: 1100;
  top: 0;
  left: 0;
  right: 0;
  height: 88px;
  border-bottom: 1px solid transparent;
  transition: height 0.45s var(--ease-soft), background-color 0.45s ease, border-color 0.45s ease, backdrop-filter 0.45s ease;
}

.site-header.is-scrolled {
  height: 70px;
  border-color: rgba(228, 220, 204, 0.08);
  background: rgba(6, 7, 11, 0.6);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  backdrop-filter: blur(20px) saturate(120%);
}

.header-inner {
  display: flex;
  width: var(--shell-wide);
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 38px;
  height: 38px;
  color: var(--gold-bright);
  transition: transform 0.8s var(--ease-out);
}

.brand:hover .brand-mark {
  transform: rotate(18deg);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-cn {
  font: 20px/1 var(--font-display);
  letter-spacing: 0.15em;
}

.brand-en {
  color: var(--paper-faint);
  font: 7px/1 var(--font-mono);
  letter-spacing: 0.24em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 42px);
}

.site-nav a {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: rgba(236, 229, 217, 0.58);
  font: 11px/1 var(--font-sans);
  letter-spacing: 0.08em;
  transition: color 0.3s ease;
}

.site-nav a span {
  color: rgba(185, 158, 112, 0.54);
  font: 7px/1 var(--font-mono);
  letter-spacing: 0.05em;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--paper);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 0 0 auto;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--paper-faint);
  font: 8px/1 var(--font-mono);
  letter-spacing: 0.12em;
}

.header-status i,
.window-status i,
.footer-live i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(137, 170, 145, 0.75);
}

.header-cta {
  display: inline-flex;
  height: 38px;
  align-items: center;
  gap: 18px;
  padding: 0 15px;
  border: 1px solid var(--line);
  color: var(--paper-soft);
  font: 9px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.header-cta:hover {
  border-color: rgba(229, 210, 171, 0.42);
  background: rgba(229, 210, 171, 0.04);
  color: var(--gold-bright);
}

.header-cta .icon {
  width: 13px;
  height: 13px;
}

.locale-toggle {
  display: inline-flex;
  height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper-dim);
  font: 9px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.locale-toggle:hover {
  border-color: rgba(229, 210, 171, 0.42);
  background: rgba(229, 210, 171, 0.04);
  color: var(--gold-bright);
}

.locale-toggle-mark {
  color: var(--gold);
  font-size: 12px;
  line-height: 1;
}

.not-found-locale {
  position: fixed;
  z-index: 20;
  top: max(24px, env(safe-area-inset-top));
  right: max(28px, env(safe-area-inset-right));
}

[data-locale="en"] .brand-en {
  display: none;
}

[data-locale="en"] .brand-cn {
  font: 15px/1 var(--font-latin);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

[data-locale="en"] .brand-footer .brand-cn {
  font-size: 20px;
}

[data-locale="en"] .hero h1 {
  max-width: 1080px;
  font-size: clamp(54px, 5.7vw, 92px);
  font-weight: 400;
  line-height: 1.01;
  letter-spacing: -0.045em;
}

[data-locale="en"] .hero h1 em,
[data-locale="en"] .page-title em {
  font-weight: 400;
}

[data-locale="en"] .page-title {
  letter-spacing: -0.04em;
}

[data-locale="en"] .footer-statement {
  line-height: 1.35;
}

/* Motion */
.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

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

.motion-ready [data-reveal-delay="1"] { transition-delay: 0.09s; }
.motion-ready [data-reveal-delay="2"] { transition-delay: 0.18s; }
.motion-ready [data-reveal-delay="3"] { transition-delay: 0.27s; }

/* Toast */
.toast {
  position: fixed;
  z-index: 9000;
  right: 24px;
  bottom: 24px;
  max-width: min(380px, calc(100vw - 48px));
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  background: rgba(12, 15, 23, 0.94);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
  color: var(--paper-soft);
  font: 11px/1.5 var(--font-mono);
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: 100px 0 30px;
  border-top: 1px solid var(--line);
  background: #040509;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -240px;
  left: 50%;
  width: 800px;
  height: 400px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(107, 122, 145, 0.08), transparent 68%);
  pointer-events: none;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
}

.brand-footer .brand-mark {
  width: 46px;
  height: 46px;
}

.brand-footer .brand-cn {
  font-size: 24px;
}

.footer-statement {
  max-width: 320px;
  color: var(--paper-dim);
  font: 25px/1.5 var(--font-display);
  text-align: right;
  letter-spacing: 0.04em;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 30px;
  width: min(560px, 48%);
  margin-top: 46px;
  margin-left: auto;
}

.footer-links > div {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-links > div > span:first-child {
  margin-bottom: 7px;
  color: var(--paper-faint);
  font: 8px/1 var(--font-mono);
  letter-spacing: 0.16em;
}

.footer-links a {
  width: fit-content;
  color: var(--paper-dim);
  font-size: 12px;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.footer-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--paper-faint);
  font: 8px/1 var(--font-mono);
  letter-spacing: 0.08em;
}

.footer-wordmark {
  margin: 90px 0 -0.15em -0.06em;
  color: transparent;
  font: clamp(140px, 24vw, 370px)/0.8 var(--font-display);
  letter-spacing: -0.07em;
  white-space: nowrap;
  -webkit-text-stroke: 1px rgba(228, 220, 204, 0.1);
  user-select: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(228, 220, 204, 0.07);
  color: rgba(240, 236, 228, 0.26);
  font: 8px/1.5 var(--font-mono);
  letter-spacing: 0.1em;
}

.footer-domain {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: color 200ms ease;
}

.footer-domain:hover,
.footer-domain:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.footer-domain:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

/* Generic page primitives used by changelog / bugs / report / 404 */
.inner-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 8%, rgba(91, 108, 136, 0.12), transparent 25%),
    radial-gradient(circle at 11% 28%, rgba(114, 90, 65, 0.06), transparent 30%),
    var(--ink);
}

.inner-main {
  position: relative;
  z-index: 2;
  padding-top: 88px;
}

.page-shell {
  width: min(1240px, calc(100vw - 80px));
  margin-inline: auto;
}

.page-hero {
  padding: 112px 0 84px;
  border-bottom: 1px solid var(--line);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
  gap: 80px;
  align-items: end;
}

.page-eyebrow {
  margin-bottom: 26px;
}

.page-title {
  font: clamp(56px, 7.2vw, 112px)/0.96 var(--font-display);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.page-title em {
  color: var(--gold-bright);
  font-style: italic;
  font-weight: 400;
}

.page-title-en {
  display: block;
  margin-top: 24px;
  color: var(--paper-faint);
  font: 10px/1 var(--font-mono);
  letter-spacing: 0.36em;
}

.page-intro {
  padding-bottom: 6px;
  color: var(--paper-dim);
  font: 18px/1.8 var(--font-display);
}

.page-intro small {
  display: block;
  margin-top: 24px;
  color: var(--paper-faint);
  font: 9px/1.7 var(--font-mono);
  letter-spacing: 0.1em;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 36px;
  margin-top: 44px;
  color: var(--paper-faint);
  font: 8px/1.5 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-meta i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.empty-state {
  display: grid;
  min-height: 280px;
  place-items: center;
  padding: 60px 24px;
  border: 1px solid var(--line);
  background: rgba(13, 16, 24, 0.42);
  text-align: center;
}

.empty-state-inner {
  max-width: 460px;
}

.empty-orbit {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.empty-orbit::before,
.empty-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.empty-orbit::before {
  inset: 12px;
  border: 1px dashed rgba(228, 220, 204, 0.15);
}

.empty-orbit::after {
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(185, 158, 112, 0.7);
  transform: translate(-50%, -50%);
}

.empty-state h3 {
  margin-bottom: 9px;
  font: 25px/1.35 var(--font-display);
  font-weight: 400;
}

.empty-state p {
  color: var(--paper-dim);
  font-size: 13px;
}

.empty-state .button,
.empty-state .text-link {
  margin-top: 24px;
}

.loading-lines {
  display: grid;
  gap: 14px;
  width: 100%;
}

.loading-lines span {
  display: block;
  height: 64px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

/* Embedded mode */
body.is-embed {
  background: var(--ink);
}

body.is-embed .site-header,
body.is-embed .scroll-progress,
body.is-embed .page-vignette,
body.is-embed .site-footer {
  display: none;
}

body.is-embed .inner-main {
  padding-top: 0;
}

body.is-embed .starfield {
  opacity: 0.45;
  -webkit-mask-image: none;
  mask-image: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .starfield {
    display: none;
  }

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

@media (max-width: 1100px) {
  :root {
    --shell: calc(100vw - 56px);
    --shell-wide: calc(100vw - 48px);
  }

  .site-nav {
    gap: 18px;
  }

  .site-nav a span,
  .header-status {
    display: none;
  }

  .page-shell {
    width: calc(100vw - 56px);
  }
}

@media (max-width: 820px) {
  :root {
    --shell: calc(100vw - 40px);
    --shell-wide: calc(100vw - 32px);
  }

  .site-header {
    height: 72px;
  }

  .site-nav {
    display: none;
  }

  .header-cta {
    height: 36px;
    gap: 12px;
  }

  .footer-top {
    display: grid;
    gap: 34px;
  }

  .footer-statement {
    text-align: left;
    font-size: 21px;
  }

  .footer-links {
    width: 100%;
    margin-top: 0;
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-wordmark {
    margin-top: 64px;
  }

  .page-shell {
    width: calc(100vw - 40px);
  }

  .page-hero {
    padding: 76px 0 56px;
  }

  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .page-intro {
    max-width: 560px;
  }

  .page-title {
    font-size: clamp(48px, 12vw, 74px);
  }

  .toast {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 540px) {
  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-cn {
    font-size: 18px;
  }

  .brand-en {
    font-size: 6px;
  }

  .header-inner {
    gap: 12px;
  }

  .header-actions {
    gap: 8px;
  }

  .locale-toggle {
    height: 36px;
    gap: 6px;
    padding: 0 9px;
    font-size: 8px;
  }

  .header-cta {
    padding: 0 11px;
    font-size: 8px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 30px 24px;
  }

  .footer-links > div:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .header-cta {
    display: none;
  }
}


/* Public navigation legibility */
.site-nav a {
  color: rgba(236, 229, 217, 0.68);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.site-nav a span {
  font-size: 8px;
  color: rgba(185, 158, 112, 0.68);
}

html[data-locale="zh"] .site-nav a {
  font-size: 14px;
  font-weight: 560;
  letter-spacing: 0.12em;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fffaf0;
}

.header-cta {
  font-size: 10px;
}

/* Theme switch */
.theme-toggle {
  gap: 9px;
}

.theme-toggle-mark {
  display: inline-block;
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
  opacity: 0.72;
  transition: transform 0.45s var(--ease-out), opacity 0.3s ease;
}

.theme-toggle:hover .theme-toggle-mark {
  transform: rotate(180deg);
  opacity: 1;
}

html[data-theme="light"] .theme-toggle-mark {
  background: linear-gradient(90deg, transparent 50%, currentColor 50%);
}

.not-found-locale {
  display: flex;
  align-items: center;
  gap: 8px;
}
