:root {
  --bg: #FFFEFB;
  --bg-panel: #F6F5F1;
  --bg-panel-2: #EEEDE8;
  --surface: #FFFFFF;
  --border: #E2E0DA;
  --accent: #776A00;
  --accent-dark: #554B00;
  --accent-soft: rgba(119, 106, 0, .12);
  --on-accent: #FFFFFF;
  --text: #1E1D1A;
  --text-muted: #5F5D57;
  --text-faint: #8C8981;
  --success: #2F7D4A;
  --warn: #B5700A;
  --error: #B3261E;
  --field-stone: #D9D8D2;
  --field-sage: #C9CDC2;
  --field-clay: #E3D9CC;
  --dot: rgba(30, 29, 26, .15);
  --orbit: rgba(30, 29, 26, .16);
  --shadow-line: rgba(30, 29, 26, .07);
  --shadow-soft: rgba(30, 29, 26, .26);
  --veil: rgba(30, 29, 26, .24);
  --mask-on: #000000;
  --mask-off: transparent;
  --shadow-win: 0 1px 0 var(--shadow-line), 0 26px 48px -34px var(--shadow-soft);
  --shadow-dlg: -1px 1px 0 var(--shadow-line), 0 18px 34px -22px var(--shadow-soft);
  --font-display: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
  --r-ctl: 4px;
  --r-card: 8px;
  --r-pill: 999px;
  --r-round: 50%;
  --gutter: 32px;
  --width-content: 1216px;
  --width-reading: 800px;
  --width-header: 1280px;
  --header-height: 64px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --motion-fast: .15s;
  --motion-reveal: .45s;
  --ease: ease;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --title-size: clamp(34px, 3.4vw, 48px);
  --section-size: clamp(26px, 2.8vw, 36px);
  --tracking-title: -.02em;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img, svg { vertical-align: middle; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-ctl); }
button:disabled { cursor: not-allowed; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--weight-normal); text-wrap: balance; }
h1 { font-size: var(--title-size); line-height: 1.14; letter-spacing: var(--tracking-title); }
h2 { font-size: var(--section-size); line-height: 1.25; letter-spacing: var(--tracking-title); }
h3 { font-size: 22px; line-height: 1.4; }
p { margin-bottom: var(--space-4); }
strong { font-weight: var(--weight-semibold); }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; font-size: .9em; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg-panel);
  color: var(--text);
  line-height: 1.7;
  tab-size: 2;
}
pre code { overflow-wrap: normal; word-break: normal; white-space: pre; }
hr { border: 0; border-top: 1px solid var(--border); margin-block: var(--space-6); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.shell, .wrap {
  width: 100%;
  max-width: calc(var(--width-content) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.reading { max-width: calc(var(--width-reading) + var(--gutter) * 2); }
.section { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.section-heading { text-align: center; margin-bottom: var(--space-7); }
.section-heading p { color: var(--text-muted); max-width: 680px; margin-inline: auto; }
.section-title-key, .text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }
.keep { white-space: nowrap; }
.grid-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.grid-two > *, .wrap > *, .shell > *, .prose > * { min-width: 0; }
.stack > * + * { margin-top: var(--space-5); }
.card, .panel {
  min-width: 0;
  padding: var(--space-5);
  border-radius: var(--r-card);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.panel { background: var(--bg-panel); color: var(--text); border-color: var(--bg-panel); }
.card h3, .panel h3 { margin-bottom: var(--space-3); }
.card p:last-child, .panel p:last-child { margin-bottom: 0; }
.prose { min-width: 0; line-height: 1.85; overflow-wrap: break-word; }
.prose h2 { margin-top: var(--space-8); margin-bottom: var(--space-5); }
.prose h3 { margin-top: var(--space-6); }
.prose a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; color: var(--accent); }
.prose li + li { margin-top: var(--space-2); }
.prose :where(div, section, article, figure) { min-width: 0; max-width: 100%; }
.icon { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 24px; }
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-ctl);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-weight: var(--weight-medium);
  line-height: 1.4;
  text-align: center;
  transition: background-color var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease);
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-main { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-main:hover, .btn-main.is-hover { background: var(--accent-dark); color: var(--on-accent); border-color: var(--accent-dark); }
.btn-line { background: var(--mask-off); color: var(--text); border-color: var(--text); }
.btn-line:hover, .btn-line.is-hover { background: var(--bg-panel); color: var(--text); }
.btn:active { box-shadow: inset 0 0 0 1px currentColor; }
.btn.is-focus { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--bg-panel-2); color: var(--text-muted); border-color: var(--border); box-shadow: none; }
.topbar { position: relative; z-index: 40; height: var(--header-height); border-bottom: 1px solid var(--border); background: var(--bg); color: var(--text); }
.header-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
  width: 100%;
  max-width: min(100%, calc(var(--width-header) + var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: var(--weight-semibold); letter-spacing: -.01em; flex-shrink: 0; }
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; }
.mainnav { min-width: 0; margin-left: auto; }
.mainnav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.mainnav-link { position: relative; display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 10px; border-radius: var(--r-ctl); font-size: 14px; color: var(--text-muted); white-space: nowrap; }
.mainnav-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.mainnav-link:hover { background: var(--bg-panel); color: var(--text); }
.mainnav-link[aria-current="page"] { color: var(--accent); }
.mainnav-link[aria-current="page"]::after { content: ""; position: absolute; left: 10px; bottom: -14px; width: 12px; height: 3px; background: var(--accent); color: var(--on-accent); }
.header-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.language { position: relative; }
.langswitch { display: flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--r-ctl); background: var(--bg); color: var(--text); font-size: 13px; white-space: nowrap; }
.langswitch svg { width: 15px; height: 15px; color: var(--text-muted); flex-shrink: 0; }
.langswitch-caret { font-size: 10px; color: var(--text-muted); }
.lang-short { display: none; }
.language-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 168px; padding: 6px; margin: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-win); }
.language-menu a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: var(--r-ctl); }
.language-menu a:hover { background: var(--bg-panel); color: var(--text); }
.language-menu [aria-current="true"] { color: var(--accent); }
.menu-toggle { display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid var(--border); border-radius: var(--r-ctl); background: var(--bg); color: var(--text); }
.mobile-menu { position: absolute; top: var(--header-height); left: 0; right: 0; padding: 16px var(--gutter) 24px; max-height: calc(100dvh - var(--header-height)); overflow-y: auto; overscroll-behavior: contain; border-bottom: 1px solid var(--border); background: var(--bg); color: var(--text); z-index: 2; }
.mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu a { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--r-ctl); }
.mobile-menu a:hover { background: var(--bg-panel); color: var(--text); }
.mobile-menu [aria-current] { color: var(--accent); }
.mobile-languages { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.menu-veil { position: fixed; inset: var(--header-height) 0 0; z-index: 30; border: 0; background: var(--veil); color: var(--text); cursor: default; }
html.nav-open { overflow: hidden; }
.site-footer { border-top: 1px solid var(--border); padding-top: var(--space-7); padding-bottom: var(--space-5); background: var(--bg-panel); color: var(--text); }
.footer-grid { display: grid; grid-template-columns: 1.15fr 1fr 1.2fr .8fr; gap: 40px; }
.footer-grid > * { min-width: 0; }
.footer-brand p { margin-top: 16px; max-width: 290px; color: var(--text-muted); font-size: 14px; }
.footer-title { font-size: 14px; font-weight: var(--weight-medium); margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a { display: inline-block; padding-block: 4px; color: var(--text-muted); font-size: 13px; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--border); margin-top: 32px; padding-top: 20px; font-size: 12px; color: var(--text-muted); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.reveal { opacity: 1; transform: none; }
html.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(12px); }
html.reveal-ready .reveal { transition: opacity var(--motion-reveal) var(--ease), transform var(--motion-reveal) var(--ease); }
.reveal.shown { opacity: 1; transform: none; }
.hero, .decorated, [data-hero-visual] { overflow-x: clip; }
@media (max-width: 1280px) {
  .header-shell { gap: 14px; }
  .mainnav-link { padding-inline: 7px; gap: 5px; }
}
@media (max-width: 1180px) {
  .mainnav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 1181px) {
  .mobile-menu, .menu-veil { display: none !important; }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}
@media (max-width: 768px) {
  h1 { font-size: 28px; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; --space-8: 48px; }
  .grid-two { grid-template-columns: minmax(0, 1fr); }
  .tilt, [data-tilt] { transform: none !important; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .header-shell { gap: 8px; }
  .brand { font-size: 14px; gap: 8px; }
  .brand-mark { width: 28px; height: 28px; }
  .footer-grid { gap: 24px; }
  .card, .panel { padding: 20px; }
}
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .header-tools { gap: 4px; }
  .langswitch { padding-inline: 8px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html.reveal-ready .reveal:not(.shown) { opacity: 1; transform: none; }
}