:root {
  --bg: #ffffff;
  --bg-panel: #f7f7fa;
  --bg-panel-2: #f0eff6;
  --border: #e3e1ec;
  --accent: #7438ea;
  --accent-dark: #5a24c4;
  --accent-light: #8b5cf0;
  --accent-top: #b39af7;
  --accent-soft: #eee7fd;
  --text: #2a2733;
  --text-muted: #6a6580;
  --success: #17a892;
  --success-ring: rgba(23, 168, 146, 0.18);
  --warn: #d99a14;
  --error: #e0457b;
  --cyan: #3fd9c8;
  --pink: #ff7ab8;
  --yellow: #f5c84a;
  --sky: #cfe3fb;
  --lilac: #ece6fa;
  --blush: #f9d6e6;
  --cyan-wash: #cbf5ef;
  --stream-blue: #93c2f5;
  --ink: #231d36;
  --ink-soft: #4a4360;
  --paper: #fffaf0;
  --white: #ffffff;
  --wash: rgba(255, 255, 255, 0.3);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.88);
  --hairline: rgba(42, 39, 51, 0.12);
  --dot: rgba(255, 255, 255, 0.75);
  --clear: transparent;
  --veil: rgba(35, 29, 54, 0.22);
  --font-display: 'Iowan Old Style', 'Charter', 'Palatino Linotype', Georgia, 'Songti SC', 'STSong', 'Noto Serif CJK SC', 'Source Han Serif SC', 'Hiragino Mincho ProN', 'Yu Mincho', 'Nanum Myeongjo', serif;
  --font-body: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'PingFang TC', 'Hiragino Sans', 'Apple SD Gothic Neo', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --radius-card: 10px;
  --radius-btn: 8px;
  --radius-pill: 999px;
  --radius-shot: 10px;
  --radius-focus: 4px;
  --radius-logo: 50%;
  --radius-preview-logo: 9px;
  --radius-zero: 0;
  --shadow-soft: 0 1px 2px rgba(42, 39, 51, 0.06), 0 8px 20px -12px rgba(42, 39, 51, 0.28);
  --shadow-card: 0 1px 2px rgba(42, 39, 51, 0.05), 0 18px 44px -22px rgba(42, 39, 51, 0.26);
  --shadow-btn: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 1px 2px rgba(42, 39, 51, 0.12), 0 12px 24px -12px rgba(90, 36, 196, 0.7);
  --shadow-fab: 0 1px 2px rgba(42, 39, 51, 0.08), 0 14px 30px -14px rgba(42, 39, 51, 0.35);
  --header-h: 72px;
  --hero-h: 760px;
  --gutter: 64px;
  --space-section: 96px;
  --duration: 200ms;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
html.nav-open { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--accent-dark); }
img, svg { max-width: 100%; }
img { display: block; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button, a { -webkit-tap-highlight-color: var(--clear); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-focus); }
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.015em; }
h1 { font-size: clamp(34px, 3.35vw, 48px); line-height: 1.17; }
h2 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.25; }
h3 { font-size: 19px; line-height: 1.4; font-weight: 500; }
p, li, dd { overflow-wrap: break-word; }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; font-size: 0.88em; }
pre { max-width: 100%; min-width: 0; overflow-x: auto; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-btn); background: var(--bg-panel); color: var(--text); font-size: 14px; line-height: 1.8; overscroll-behavior-inline: contain; }
pre code { font-size: inherit; white-space: pre; overflow-wrap: normal; }
hr { border: 0; border-top: 1px solid var(--border); }
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.reading-wrap { max-width: 980px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.section-title { margin: 0 0 20px; }
.section-intro { max-width: 48em; margin-bottom: 36px; color: var(--text-muted); }
.grid { display: grid; gap: 24px; }
.grid > *, .head-row > *, .hero-inner > *, .footer-grid > *, .card-grid > * { min-width: 0; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card, .panel { border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-card); }
.card { padding: 28px; }
.card h3 { margin-top: 0; }
.card p { color: var(--text-muted); }
.nowrap { white-space: nowrap; }
.muted { color: var(--text-muted); }
.accent { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 60; padding: 8px 14px; border-radius: var(--radius-btn); background: var(--accent); color: var(--white); text-decoration: none; font-size: 14px; }
.skip-link:focus { top: 12px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 50px; max-width: 100%; padding: 12px 22px; border: 1px solid var(--clear); border-radius: var(--radius-btn); font-family: var(--font-body); font-size: 15.5px; font-weight: 500; line-height: 1.3; text-align: center; text-decoration: none; transition: background-color var(--duration), transform var(--duration), border-color var(--duration); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }
.btn-store, .btn-primary { background: var(--accent); color: var(--white); box-shadow: var(--shadow-btn); }
.btn-store:hover, .btn-primary:hover, .btn-primary.is-hover { background: var(--accent-dark); color: var(--white); }
.btn-quiet { border-color: var(--glass-strong); background: var(--glass-strong); color: var(--text); box-shadow: var(--shadow-soft); }
.btn-quiet:hover { border-color: var(--accent); color: var(--text); }
.btn-outline { border-color: var(--border); background: var(--bg); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn .arrow { color: var(--accent); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--bg-panel-2); color: var(--text-muted); border-color: var(--border); box-shadow: none; transform: none; }
.btn.is-focus { outline: 2px solid var(--accent); outline-offset: 3px; }
.site-head, #site-header { position: sticky; top: 0; z-index: 40; height: var(--header-h); background: var(--bg); color: var(--text); }
.head-row { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; width: 100%; max-width: min(100%, calc(1280px + var(--gutter) * 2)); margin-inline: auto; padding-inline: var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-logo { width: 34px; height: 34px; flex-shrink: 0; border-radius: var(--radius-logo); }
.brand-name { font-family: var(--font-display); font-size: 20px; font-weight: 400; letter-spacing: -0.01em; line-height: 1; }
.brand-sub { margin-left: 2px; font-family: var(--font-body); font-size: 13.5px; color: var(--text-muted); letter-spacing: 0; }
.primary-nav { display: flex; align-items: center; min-width: 0; margin-left: auto; }
.nav-line { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.nav-line li { display: flex; align-items: center; }
.nav-line li + li::before { content: "·"; margin-inline: 11px; color: var(--text-muted); opacity: 0.55; }
.nav-line a { display: block; padding: 6px 1px; font-size: 14.5px; color: var(--text-muted); text-decoration: none; transition: color var(--duration); }
.nav-line a:hover { color: var(--text); }
.nav-line a[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 9px; }
.header-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.language-control { position: relative; }
.lang-switch { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 7px 14px 7px 12px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--bg); color: var(--text); font-size: 13.5px; line-height: 1.2; white-space: nowrap; }
.lang-switch:hover { border-color: var(--accent); }
.lang-switch svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--text-muted); }
.lang-short { display: none; }
.lang-caret { font-size: 10px; color: var(--text-muted); }
.language-menu { position: absolute; top: calc(100% + 12px); right: 0; width: 190px; margin: 0; padding: 8px; list-style: none; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-card); z-index: 45; }
.language-menu a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; text-decoration: none; border-radius: var(--radius-btn); }
.language-menu a:hover, .language-menu a[aria-current="true"] { background: var(--accent-soft); color: var(--accent-dark); }
.menu-toggle { display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid var(--border); border-radius: var(--radius-btn); background: var(--bg); color: var(--text); }
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-drawer { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 43; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; padding: 16px var(--gutter) 28px; background: var(--bg); color: var(--text); border-top: 1px solid var(--border); box-shadow: var(--shadow-card); }
.mobile-drawer ul { margin: 0; padding: 0; list-style: none; }
.mobile-drawer a { display: flex; align-items: center; width: 100%; min-height: 46px; padding: 11px 8px; text-decoration: none; border-bottom: 1px solid var(--border); }
.mobile-drawer a[aria-current] { color: var(--accent-dark); }
.drawer-label { margin: 20px 8px 6px; font-size: 13px; color: var(--text-muted); }
.menu-veil { position: fixed; inset: var(--header-h) 0 0; z-index: 41; border: 0; background: var(--veil); color: var(--text); }
.prose { min-width: 0; line-height: 1.85; }
.prose h2 { margin-top: 56px; }
.prose h3 { margin-top: 32px; }
.prose p { margin-block: 18px; }
.prose a { color: var(--accent-dark); }
.prose li + li { margin-top: 8px; }
.prose > :first-child { margin-top: 0; }
.prose section, .prose div { min-width: 0; max-width: 100%; }
.site-footer, #site-footer { background: var(--bg); color: var(--text); }
.footer-inner { padding-top: 64px; padding-bottom: 100px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.35fr 0.8fr 1.4fr 0.65fr; gap: 40px; }
.footer-grid h2 { font-family: var(--font-body); font-size: 14px; font-weight: 600; letter-spacing: 0; margin: 0 0 16px; }
.footer-grid p { font-size: 14px; color: var(--text-muted); max-width: 26em; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li + li { margin-top: 8px; }
.footer-grid li a { display: inline-block; font-size: 13.5px; color: var(--text-muted); text-decoration: none; padding-block: 3px; }
.footer-grid li a:hover { color: var(--accent-dark); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 12.5px; color: var(--text-muted); }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.reveal { opacity: 1; transform: none; }
.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(16px); }
.reveal-ready .reveal { transition: opacity 650ms ease, transform 650ms ease; }
.reveal.shown { opacity: 1; transform: none; }
.decorated-section, .hero { position: relative; overflow-x: clip; }
@media (max-width: 1279px) {
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-tools { margin-left: auto; }
  .mobile-drawer:not([hidden]) { display: block; }
  .brand-sub { display: none; }
}
@media (min-width: 1280px) {
  .menu-veil, .mobile-drawer { display: none !important; }
}
@media (max-width: 1024px) {
  :root { --gutter: 32px; --space-section: 72px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  h1 { font-size: clamp(24px, 4vw, 30px); }
  .card-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; --space-section: 56px; }
  .head-row { gap: 12px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 18px; }
  .brand-logo { width: 30px; height: 30px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .lang-switch { min-height: 44px; padding-inline: 10px; }
  .header-tools { gap: 6px; margin-left: auto; }
  .btn { min-height: 48px; padding-inline: 18px; font-size: 15px; }
  .card { padding: 22px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tilt, .tilt-left, .tilt-right { transform: none !important; rotate: none !important; }
}
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .brand-name { font-size: 16px; }
  .head-row { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-ready .reveal:not(.shown) { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
}