@import url('./tokens.css');
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; position: relative; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(1000px 480px at 50% -18%, color-mix(in oklab, var(--accent) 12%, transparent), transparent 70%), radial-gradient(600px 360px at 96% 8%, rgba(53,192,138,.07), transparent 65%); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; margin: 0; line-height: 1.04; letter-spacing: -0.03em; color: var(--ink); }
p { margin: 0; }
.wrap { width: min(var(--max), 100% - 64px); margin-inline: auto; }
@media (max-width: 720px) { .wrap { width: calc(100% - 40px); } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 10px 14px; border-radius: var(--radius-md); z-index: 100; }
header { position: sticky; top: 0; z-index: 20; background: color-mix(in oklab, var(--bg) 82%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.bar { height: 68px; display: flex; align-items: center; justify-content: space-between; }
.wordmark, .subbrand { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-size: 17px; font-weight: 800; letter-spacing: -0.03em; }
.wordmark::before, .subbrand::before { content: 'U'; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 800; }
.subbrand span { color: var(--accent-ink); font-weight: 800; }
nav.main { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
nav.main a:hover, nav.main a[aria-current='page'] { color: var(--ink); }
.header-cta { font-size: 13px; font-weight: 700; color: #fff; background: var(--accent); padding: 9px 16px; border-radius: 9px; }
.header-cta:hover { background: var(--accent-hover); }
@media (max-width: 860px) { nav.main { display: none; } }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; padding: 12px 22px; border-radius: 10px; font-size: 15px; font-weight: 700; }
.btn:hover { background: var(--accent-hover); }
.btn-dark { background: var(--ink); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
.link { font-size: 14px; font-weight: 700; color: var(--accent-ink); }
.link:hover { color: var(--accent); }
.hero { padding: 76px 0 64px; position: relative; }
.hero h1 { font-size: clamp(44px, 6.4vw, 80px); max-width: 14ch; margin: 18px 0 22px; }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 50ch; }
.hero-actions { display: flex; gap: 12px; align-items: center; margin-top: 28px; flex-wrap: wrap; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }
.eyebrow-green { font-family: var(--font-display); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--accent-ink); background: var(--accent-subtle); border-radius: var(--radius-pill); padding: 5px 12px; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.stats { display: flex; gap: 44px; margin-top: 40px; }
.stat b { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.stat span { font-size: 12px; color: var(--faint); }
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 20px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 46px); max-width: 20ch; }
.section-head p { color: var(--muted); max-width: 44ch; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 22px; display: flex; flex-direction: column; gap: 8px; color: inherit; box-shadow: var(--shadow-sm); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.card:hover { transform: translateY(-2px); border-color: color-mix(in oklab, var(--accent) 40%, var(--line)); box-shadow: var(--shadow-md); }
.card h3 { font-size: 18px; }
.card p { font-size: 14px; color: var(--muted); }
.card .arrow { margin-top: auto; padding-top: 12px; font-size: 13px; font-weight: 700; color: var(--accent-ink); }
.badge { font-size: 12px; color: var(--faint); }
.badge-live { color: var(--accent-ink); font-weight: 700; }
.shot { border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; }
.shot-bar { height: 34px; background: var(--soft); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.shot-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.shot-body { padding: 20px; background: var(--bg); min-height: 280px; }
.mock-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-sm); }
.mock-word { font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.mock-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); padding: 9px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); margin-top: 8px; }
.mock-row b { color: var(--accent-ink); font-weight: 700; }
.band { background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 9%, var(--bg)), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 64px 0; }
.panel { background: var(--surface); border: 1px solid color-mix(in oklab, var(--accent) 18%, var(--line)); border-radius: var(--radius-xl); padding: 36px; box-shadow: 0 30px 60px -34px color-mix(in oklab, var(--accent) 40%, transparent); }
.panel h2 { font-size: clamp(30px, 4vw, 44px); max-width: 16ch; margin-bottom: 12px; }
.panel p { color: var(--muted); max-width: 48ch; }
.search { display: flex; align-items: center; gap: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px 16px; margin-top: 24px; max-width: 560px; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent); }
.search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 15px; color: var(--fg); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; font-size: 12px; color: var(--muted); }
.chip { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 5px 10px; }
.chip:hover { color: var(--accent-ink); border-color: var(--accent); }
.prose { max-width: 68ch; }
.prose h2 { font-size: 28px; margin: 36px 0 12px; }
.prose h3 { font-size: 20px; margin: 26px 0 10px; }
.prose p { margin: 12px 0; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--accent-ink); }
.faq details[open] summary::after { content: '–'; }
.faq p { margin-top: 10px; color: var(--muted); font-size: 14px; }
.form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.form input { flex: 1; min-width: 240px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-md); padding: 12px 16px; font-size: 15px; color: var(--fg); }
.form input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent); }
.word-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.word-head h1 { font-size: clamp(38px, 5.4vw, 56px); }
.ipa { font-family: var(--font-mono); font-size: 15px; color: var(--muted); }
.sense { padding: 20px 0; border-top: 1px solid var(--line); }
.sense-pos { font-family: var(--font-mono); font-size: 12px; color: var(--accent-ink); }
.sense-zh { font-size: 18px; font-weight: 700; margin-top: 4px; }
.sense-en { color: var(--muted); margin-top: 2px; }
.example { margin-top: 10px; padding-left: 14px; border-left: 2px solid var(--line); }
.example .zh { color: var(--muted); font-size: 14px; margin-top: 2px; }
.toc { padding: 16px; border-radius: var(--radius-lg); background: var(--soft); font-size: 14px; }
.toc a { display: block; padding: 4px 0; color: var(--muted); }
.toc a:hover { color: var(--accent-ink); }
.cta-band { padding: 28px; border-radius: var(--radius-xl); background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 14%, var(--surface)), var(--surface)); border: 1px solid color-mix(in oklab, var(--accent) 16%, var(--line)); display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; }
footer { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12px; color: var(--faint); }
.foot a:hover { color: var(--accent-ink); }
.crumbs { font-size: 13px; color: var(--faint); padding-top: 18px; }
.crumbs a:hover { color: var(--accent-ink); }
