:root {
  --bg: #30232E;
  --panel: #3C2D39;
  --panel-raised: #493845;
  --border: #705969;
  --accent: #C9AC96;
  --accent-dark: #B8967E;
  --text: #F4EDE8;
  --muted: #C5B6BF;
  --blue: #8596A4;
  --success: #A8BCA8;
  --warn: #CAB58D;
  --error: #D0A0A6;
  --flag-white: #FFFFFF;
  --flag-red: #E43B46;
  --flag-blue: #294470;
  --flag-fr-blue: #2C4A91;
  --flag-black: #252128;
  --flag-gold: #F1C653;
  --clear: transparent;
  --hairline: rgba(197,182,191,.17);
  --shadow-ink: rgba(25,15,24,.3);
  --shadow-soft: rgba(25,15,24,.16);
  --edge-light: rgba(244,237,232,.10);
  --veil: rgba(25,15,24,.65);
  --font-body: 'Inter','Noto Sans SC','Noto Sans JP','Noto Sans KR',system-ui,sans-serif;
  --font-display: var(--font-body);
  --font-mono: 'JetBrains Mono',ui-monospace,'SFMono-Regular',Consolas,monospace;
  --regular: 400;
  --medium: 500;
  --semibold: 600;
  --small: 12px;
  --caption: 13px;
  --body-small: 14px;
  --body: 16px;
  --lead: 17px;
  --brand-size: 23px;
  --h1: 60px;
  --h2: 36px;
  --h3: 23px;
  --mobile-h1: 36px;
  --mobile-h2: 28px;
  --price-size: 40px;
  --radius: 6px;
  --radius-small: 2px;
  --logo-radius: 12px;
  --pill: 999px;
  --line: 1px;
  --focus: 2px;
  --focus-offset: 5px;
  --leading: 1.8;
  --heading-leading: 1.2;
  --tight-leading: 1.5;
  --tracking: .08em;
  --brand-tracking: .015em;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s7: 28px;
  --s8: 32px;
  --s9: 40px;
  --s10: 48px;
  --s11: 56px;
  --s12: 64px;
  --s13: 80px;
  --gutter: 80px;
  --page-width: 1280px;
  --reading-width: 820px;
  --header-height: 96px;
  --hero-height: 704px;
  --panel-height: 540px;
  --button-height: 54px;
  --login-height: 40px;
  --touch-size: 44px;
  --icon-size: 22px;
  --flag-width: 24px;
  --flag-height: 16px;
  --logo-size: 38px;
  --popup-width: 166px;
  --table-width: 680px;
  --toc-height: 64px;
  --anchor-offset: 96px;
  --counter-width: 3ch;
  --popup-shadow: 0 16px 40px var(--shadow-ink);
  --paper-shadow: 3px 7px 5px var(--shadow-ink);
  --rack-shadow: 0 14px 12px var(--shadow-soft);
  --panel-shadow: inset 0 1px 0 var(--edge-light);
  --lift-shadow: 0 8px 24px var(--shadow-soft);
  --transition-fast: 160ms;
  --transition-reveal: 600ms;
  --ease: cubic-bezier(.2,.65,.3,1);
  --disabled-opacity: .55;
  --z-toc: 10;
  --z-veil: 30;
  --z-header: 40;
  --z-popup: 50;
}

* { box-sizing: border-box; }
html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  scroll-padding-top: calc(var(--header-height) + var(--s4));
}
body {
  margin: 0;
  font-size: var(--body);
  font-weight: var(--regular);
  line-height: var(--leading);
  -webkit-font-smoothing: antialiased;
}
html.nav-open { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select, textarea, summary { font: inherit; }
button { cursor: pointer; }
button, input, select, textarea { color: var(--text); }
button { border: 0; }
button:disabled { cursor: not-allowed; }
:where(a,button,summary,input,select,textarea,[tabindex]):focus-visible {
  outline: var(--focus) solid var(--accent);
  outline-offset: var(--focus-offset);
}
::selection { background: var(--accent); color: var(--bg); }
img, video { max-width: 100%; height: auto; }
svg { display: block; flex-shrink: 0; }
figure { margin: 0; }
p { margin: 0 0 var(--s5); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--regular);
  line-height: var(--heading-leading);
  letter-spacing: 0;
  text-wrap: balance;
}
h1 { font-size: var(--h1); margin: var(--s6) 0 0; }
h2 { font-size: var(--h2); margin: 0 0 var(--s6); }
h3 { font-size: var(--h3); margin: 0 0 var(--s4); }
h4 { font-size: var(--lead); margin: 0 0 var(--s3); }
strong { font-weight: var(--semibold); }
ul, ol { padding-left: var(--s6); }
li + li { margin-top: var(--s2); }
code {
  font-family: var(--font-mono);
  font-size: var(--body-small);
  overflow-wrap: anywhere;
  word-break: break-word;
}
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: var(--s6);
  border: var(--line) solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  line-height: var(--tight-leading);
}
pre code { overflow-wrap: normal; word-break: normal; white-space: pre; }
blockquote { margin-inline: 0; }
hr { border: 0; border-top: var(--line) solid var(--hairline); margin-block: var(--s8); }
.no-break { white-space: nowrap; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.sr-only {
  position: absolute;
  width: var(--line);
  height: var(--line);
  padding: 0;
  margin: calc(var(--line) * -1);
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.symbol-bank { position: absolute; width: 0; height: 0; overflow: hidden; }
.page-width, .wrap {
  width: 100%;
  max-width: calc(var(--page-width) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-width: 0;
}
.section { padding-top: var(--s13); padding-bottom: var(--s13); }
.reading { max-width: var(--reading-width); min-width: 0; margin-inline: auto; }
.prose { min-width: 0; overflow-wrap: break-word; }
.prose h2 { margin-top: var(--s12); }
.prose h3 { margin-top: var(--s8); }
.prose a:not(.action) { text-decoration: underline; text-underline-offset: var(--s1); }
.prose > :first-child { margin-top: 0; }
.grid { display: grid; gap: var(--s6); }
.grid > *, .hero-grid > *, .footer-grid > *, .feature-sheet > * { min-width: 0; }
.panel {
  min-width: 0;
  padding: var(--s8);
  background: var(--panel);
  border: var(--line) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--panel-shadow);
}
.panel-raised { background: var(--panel-raised); }
.decor-boundary { position: relative; overflow-x: clip; }
.decor-rail {
  position: absolute;
  inset: var(--s5) var(--s6);
  pointer-events: none;
  border-top: var(--line) dashed var(--blue);
}
.icon { width: var(--s6); height: var(--s6); }
.chevron { width: var(--s3); height: var(--s3); }
.action, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s7);
  min-height: var(--button-height);
  padding-inline: var(--s6);
  border: var(--line) solid var(--clear);
  border-radius: var(--radius);
  font-size: var(--body);
  font-weight: var(--medium);
  line-height: var(--tight-leading);
  text-align: center;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}
.action svg { width: var(--s5); height: var(--s5); }
.action-primary, .btn-primary { background: var(--accent); color: var(--bg); }
.action-primary:hover, .btn-primary:hover { background: var(--accent-dark); color: var(--bg); }
.action-secondary { border-color: var(--border); background: var(--panel); color: var(--text); padding-inline: var(--s7); }
.action-secondary:hover { background: var(--panel-raised); color: var(--text); }
.action:active { background: var(--accent-dark); color: var(--bg); }
.action:disabled, .action[aria-disabled="true"] { opacity: var(--disabled-opacity); cursor: not-allowed; }
.text-link { display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--s6); text-decoration: underline; text-underline-offset: var(--s1); }
.action-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.masthead { height: var(--header-height); border-bottom: var(--line) solid var(--hairline); position: relative; z-index: var(--z-header); background: var(--bg); }
.masthead-inner { height: 100%; display: flex; align-items: center; gap: var(--s10); position: relative; }
.identity { display: inline-flex; align-items: center; gap: var(--s3); white-space: nowrap; min-height: var(--touch-size); }
.identity-mark { width: var(--logo-size); height: var(--logo-size); border-radius: var(--logo-radius); flex-shrink: 0; }
.identity-name { font-size: var(--brand-size); font-weight: var(--semibold); letter-spacing: var(--brand-tracking); }
.identity-zh { font-size: var(--body-small); color: var(--muted); font-weight: var(--regular); }
.primary-nav { display: flex; align-items: center; gap: var(--s8); margin-left: auto; font-size: var(--body-small); }
.primary-nav a, .nav-more summary { white-space: nowrap; min-height: var(--s6); }
.primary-nav .active { color: var(--text); position: relative; }
.primary-nav .active::after { content: ''; position: absolute; left: 0; right: 0; bottom: calc(var(--s3) * -1); height: var(--line); background: var(--accent); }
.primary-nav a:not(.active), .nav-more summary { color: var(--muted); }
.primary-nav a:hover, .nav-more summary:hover { color: var(--accent); }
.nav-more { position: relative; }
.nav-more summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--s2); }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-dropdown {
  position: absolute;
  z-index: var(--z-popup);
  top: calc(100% + var(--s5));
  left: calc(var(--s4) * -1);
  min-width: var(--popup-width);
  padding: var(--s2);
  background: var(--panel-raised);
  border: var(--line) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--popup-shadow);
}
.nav-dropdown a { display: flex; align-items: center; min-height: var(--touch-size); padding: var(--s3); }
.nav-dropdown a:hover { background: var(--panel); color: var(--text); }
.account-tools { display: flex; align-items: center; gap: var(--s6); font-size: var(--body-small); }
.language-picker { position: relative; }
.language-trigger { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: var(--touch-size); padding: 0; background: var(--clear); color: var(--muted); white-space: nowrap; }
.language-menu { right: 0; left: auto; }
.language-menu [aria-current] { color: var(--accent); }
.login-link { min-height: var(--login-height); min-width: var(--s13); display: inline-flex; align-items: center; justify-content: center; padding-inline: var(--s5); border: var(--line) solid var(--border); border-radius: var(--radius); background: var(--panel); }
.login-link:hover { background: var(--panel-raised); color: var(--text); }
.menu-toggle { display: none; width: var(--touch-size); min-width: var(--touch-size); min-height: var(--touch-size); align-items: center; justify-content: center; background: var(--panel); border: var(--line) solid var(--border); border-radius: var(--radius); }
.menu-toggle svg { width: var(--s5); height: var(--s5); }
.mobile-drawer { display: none; }
.nav-veil { position: fixed; inset: var(--header-height) 0 0; z-index: var(--z-veil); background: var(--veil); border: 0; width: 100%; cursor: pointer; }
.skip-link { position: absolute; top: var(--s2); left: var(--s4); z-index: var(--z-popup); padding: var(--s3); background: var(--accent); color: var(--bg); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.site-footer { border-top: var(--line) solid var(--border); background: var(--panel); padding-top: var(--s12); padding-bottom: var(--s8); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr; gap: var(--s9); }
.footer-brand p { color: var(--muted); max-width: 32ch; margin-top: var(--s5); font-size: var(--body-small); }
.footer-heading { font-size: var(--body-small); font-weight: var(--medium); margin-bottom: var(--s4); }
.footer-links { list-style: none; margin: 0; padding: 0; font-size: var(--body-small); }
.footer-links li + li { margin-top: var(--s1); }
.footer-links a { display: inline-flex; align-items: center; min-height: var(--s8); color: var(--muted); overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { border-top: var(--line) solid var(--hairline); margin-top: var(--s10); padding-top: var(--s6); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s5); font-size: var(--caption); color: var(--muted); }
.footer-bottom p { margin: 0; margin-right: auto; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: var(--s6); }
.reveal { transition: opacity var(--transition-reveal) var(--ease), transform var(--transition-reveal) var(--ease); }
.reveal.pending { opacity: 0; transform: translateY(var(--s4)); }
.reveal.shown { opacity: 1; transform: none; }
[data-counter] { display: inline-block; min-width: var(--counter-width); font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; }

@media (max-width: 1200px) {
  :root { --gutter: 48px; }
  .masthead-inner { gap: var(--s6); }
  .primary-nav { gap: var(--s6); }
}
@media (max-width: 960px) {
  :root { --gutter: 32px; --h1: 52px; --panel-height: 520px; }
  .masthead-inner { gap: var(--s5); }
  .primary-nav { gap: var(--s5); }
  .account-tools { gap: var(--s4); }
  .language-trigger { font-size: var(--small); }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 768px) {
  :root { --gutter: 20px; --header-height: 76px; --h1: var(--mobile-h1); --h2: var(--mobile-h2); --hero-height: 0px; --panel-height: 340px; }
  .masthead-inner { gap: var(--s2); }
  .identity { gap: var(--s2); }
  .identity-name { font-size: var(--s5); }
  .identity-mark { width: var(--s8); height: var(--s8); }
  .primary-nav { display: none; }
  .account-tools { margin-left: auto; gap: var(--s2); }
  .language-trigger { font-size: var(--small); }
  .login-link { min-width: 0; min-height: var(--touch-size); padding-inline: var(--s3); }
  .menu-toggle { display: inline-flex; }
  .mobile-drawer:not([hidden]) { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--panel); padding: var(--s4) var(--gutter) var(--s6); max-height: calc(100dvh - var(--header-height)); overflow-y: auto; overscroll-behavior: contain; border-bottom: var(--line) solid var(--border); box-shadow: var(--popup-shadow); }
  .mobile-drawer a { display: flex; align-items: center; width: 100%; min-height: var(--touch-size); padding: var(--s3) var(--s4); border-radius: var(--radius); }
  .mobile-drawer a:hover, .mobile-drawer .active { background: var(--panel-raised); color: var(--accent); }
  .drawer-label { border-top: var(--line) solid var(--border); padding-top: var(--s5); margin-top: var(--s4); color: var(--muted); font-size: var(--caption); }
  .section { padding-top: var(--s10); padding-bottom: var(--s10); }
  .panel { padding: var(--s6); }
  .action { min-height: var(--s10); gap: var(--s4); padding-inline: var(--s4); }
  .footer-grid { gap: var(--s8); }
}
@media (max-width: 640px) {
  .tilt, [data-tilt] { transform: none !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { align-items: flex-start; gap: var(--s3) var(--s5); }
  .footer-bottom p { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.pending, .reveal.shown { opacity: 1; transform: none; transition: none; }
  .action, .btn { transition: none; }
}