:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f7f8fa;
  --surface-2: #f0f1f4;
  --text: #181a20;
  --muted: #626976;
  --border: #e3e5e9;
  --border-strong: #858d99;
  --accent: #2f6bf2;
  --accent-hover: #2459d3;
  --accent-text: #2459d3;
  --ring: #2f6bf2;
  --on-accent: #ffffff;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101113;
  --surface: #18191c;
  --surface-2: #222428;
  --text: #eeeff2;
  --muted: #a2a8b3;
  --border: #2c2f35;
  --border-strong: #697381;
  --accent: #2f6bf2;
  --accent-hover: #2459d3;
  --accent-text: #91b1ff;
  --ring: #91b1ff;
}
:root:not([data-lang="en"]) [data-l="en"], :root[data-lang="en"] [data-l="zh"], [hidden] { display: none !important; }
:root:not([data-site-region="cn"]) [data-legal="cn"], :root[data-site-region="cn"] [data-legal="international"] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.7 var(--font-sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; overflow-wrap: anywhere; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a, button { transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, opacity 150ms ease; }
a:active, button:active { opacity: .75; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 4px; }
.container { width: 100%; max-width: 1120px; padding: 0 24px; margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px 20px; background: var(--bg); border: 1px solid var(--border-strong); }
.skip-link:focus { top: 12px; }
.arrow { flex: 0 0 auto; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--border); background: var(--bg); }
.header-row { height: 72px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.brand-mark { width: 30px; height: 30px; }
.desktop-nav { display: flex; align-items: center; margin-left: 14px; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.nav-link:hover, .header-login:hover { color: var(--text); background: var(--surface); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; height: 44px; min-width: 44px; border: 0; border-radius: 6px; background: transparent; }
.icon-button:hover { background: var(--surface); }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lang-toggle { font-size: 13px; font-weight: 600; }
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
.header-login, .header-register { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 15px; font-size: 14px; font-weight: 600; border-radius: 6px; white-space: nowrap; }
.header-register, .header-console { background: var(--text); color: var(--bg); }
/* NH-N2a: the Console link replaces both auth links only after boot.js or app.js sets the flag. */
.header-console { display: none; }
:root[data-signed-in] .header-console { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border-radius: 8px; font-size: 14px; font-weight: 600; }
:root[data-signed-in] .header-login, :root[data-signed-in] .header-register { display: none; }
:root[data-signed-in] .mobile-actions .header-console { grid-column: 1 / -1; width: 100%; }
.header-register:hover, .header-console:hover { opacity: .85; }
.menu-button { display: none; flex-direction: column; gap: 5px; }
.menu-button span { width: 18px; height: 2px; background: currentColor; }
.menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-nav { padding: 8px 24px 20px; border-top: 1px solid var(--border); }
.mobile-link { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--border); }
.mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 16px; }
.mobile-actions .header-login { border: 1px solid var(--border-strong); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 10px 20px; border: 1px solid transparent; border-radius: 6px; font-weight: 600; font-size: 15px; }
.button-primary { background: var(--accent); color: var(--on-accent); }
.button-primary:hover { background: var(--accent-hover); }
.button-secondary { background: var(--bg); border-color: var(--border-strong); }
.button-secondary:hover { background: var(--surface); border-color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--accent-text); font-size: 14px; font-weight: 550; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--muted); margin-bottom: 20px; }
.hero { padding: 80px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: center; }
.hero-copy { min-width: 0; }
h1 { font-size: clamp(40px, 4.2vw, 58px); line-height: 1.19; letter-spacing: -.045em; font-weight: 650; }
.hero-lead { margin-top: 24px; max-width: 490px; font-size: 16px; color: var(--muted); line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 14px; color: var(--muted); font-size: 12px; }
.hero-enterprise { margin-top: 8px; color: var(--muted); }
.connection-panel { min-width: 0; padding: 28px; border: 1px solid var(--border); border-radius: 10px; }
.panel-heading { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 17px; }
.panel-icon { color: var(--accent-text); }
.panel-icon svg { height: 22px; width: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.panel-intro { color: var(--muted); font-size: 15px; margin-top: 12px; }
.connection-fields { margin-top: 24px; }
.field-label { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.endpoint-value { display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 12px; margin-top: 6px; border-radius: 6px; background: var(--surface); }
.endpoint-value code { flex: 1; min-width: 0; font: 12px/1.7 var(--font-mono); overflow-wrap: anywhere; }
.copy-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0; min-width: 44px; min-height: 44px; padding: 0 8px; border: 0; border-radius: 4px; background: var(--bg); font-size: 12px; }
.copy-button:hover { background: var(--surface-2); }
.copy-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.copied-label { display: none; }
.copy-button.is-copied .copy-label { display: none; }
.copy-button.is-copied .copied-label { display: inline; }
.connection-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 58px; border-bottom: 1px solid var(--border); }
.connection-row .text-link { font-size: 12px; }
.compatibility { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--muted); margin: 18px 0 24px; }
.compatibility svg, .enterprise-features > article > svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--accent-text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.panel-bottom { padding-top: 20px; border-top: 1px solid var(--border); }
.panel-bottom > p { font-size: 13px; color: var(--muted); }
.small-note { display: block; font-size: 12px; color: var(--muted); }
.model-strip { padding: 32px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.strip-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.strip-heading h2 { font-size: 14px; font-weight: 500; color: var(--muted); }
.model-list { display: grid; grid-template-columns: repeat(6, 1fr); margin: 20px 0 16px; }
.model-list li { font-size: 22px; font-weight: 600; letter-spacing: -.04em; text-align: center; line-height: 1.3; border-right: 1px solid var(--border); }
.model-list li:first-child { text-align: left; }
.model-list li:last-child { border-right: 0; text-align: right; }
.model-strip .small-note { font-size: 12px; }
.section { padding: 88px 0; }
.section-tint { background: var(--surface); }
.section-heading { max-width: 660px; }
.section-heading h2, .closing h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.3; letter-spacing: -.035em; font-weight: 600; }
.section-heading > p:not(.eyebrow) { font-size: 16px; margin-top: 18px; color: var(--muted); }
.section-heading .eyebrow { margin-bottom: 14px; }
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 44px; }
.audience-card { display: flex; flex-direction: column; align-items: flex-start; padding-top: 24px; border-top: 1px solid var(--border-strong); }
.line-icon { color: var(--text); margin-bottom: 20px; }
.line-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
h3 { font-size: 18px; line-height: 1.4; font-weight: 600; }
.audience-card p { margin: 12px 0 16px; font-size: 15px; color: var(--muted); }
.audience-card .text-link { margin-top: auto; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px; }
.step-number { display: block; font: 13px var(--font-mono); color: var(--muted); padding-bottom: 16px; border-bottom: 1px solid var(--border-strong); margin-bottom: 24px; }
.steps p { margin: 12px 0 16px; font-size: 15px; color: var(--muted); }
.step-links { display: flex; flex-wrap: wrap; column-gap: 18px; }
.developer-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.tool-list { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 24px 0; font: 12px/1.7 var(--font-mono); color: var(--muted); }
.developer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-bottom: 12px; }
.code-panel { min-width: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface); }
.code-heading { display: flex; justify-content: space-between; gap: 20px; padding: 16px 22px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--muted); }
pre { margin: 0; padding: 24px 22px; overflow: auto; font: 12px/2 var(--font-mono); }
pre code { font: inherit; }
.code-note { padding: 0 22px 20px; color: var(--muted); font-size: 12px; }
.code-note a, .faq-answer a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.enterprise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: start; }
.section-heading .enterprise-note { font-size: 13px; margin-top: 18px; }
.enterprise-grid .button { margin-top: 26px; }
.contact-hint { font-size: 12px; color: var(--muted); margin-top: 12px; }
.enterprise-features article { display: flex; align-items: flex-start; gap: 16px; padding: 0 0 20px; margin: 0 0 20px; border-bottom: 1px solid var(--border); }
.enterprise-features h3 { font-size: 16px; }
.enterprise-features p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.faq-layout { display: grid; grid-template-columns: 1fr 1.65fr; gap: 64px; }
.faq-layout .section-heading .text-link { margin-top: 18px; }
.faq { border-bottom: 1px solid var(--border); }
.faq:first-child { border-top: 1px solid var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; min-height: 64px; list-style: none; cursor: pointer; font-size: 15px; font-weight: 550; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-text); }
.faq-plus { width: 16px; height: 16px; flex: 0 0 auto; position: relative; color: var(--muted); }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; top: 7px; left: 2px; width: 12px; height: 1.5px; background: currentColor; }
.faq-plus::after { transform: rotate(90deg); }
.faq[open] .faq-plus::after { display: none; }
.faq-answer { padding-bottom: 24px; font-size: 15px; color: var(--muted); }
.closing { padding: 56px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.closing-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.closing h2 { font-size: 30px; }
.closing p:not(.contact-hint) { margin-top: 12px; color: var(--muted); font-size: 15px; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.site-footer { padding: 44px 0 24px; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; padding-bottom: 36px; }
.footer-top p { margin-top: 14px; max-width: 300px; font-size: 15px; color: var(--muted); }
.footer-nav { display: grid; grid-template-columns: repeat(4, auto); gap: 2px 24px; align-content: start; font-size: 12px; color: var(--muted); }
.footer-nav a { min-width: 44px; display: inline-flex; align-items: center; min-height: 44px; }
.footer-nav a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.footer-identity { min-width: 0; display: grid; gap: 8px; }
.footer-registrations { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.footer-registrations a { display: inline-flex; align-items: center; gap: 6px; }
.footer-registrations img { flex-shrink: 0; }
@media (max-width: 1023.98px) {
  .desktop-nav, .header-actions > .header-login, .header-actions > .header-register, :root[data-signed-in] .header-actions > .header-console { display: none; }
  .menu-button { display: inline-flex; }
  .hero { padding: 56px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  h1 { font-size: 52px; }
  .hero-lead { max-width: 600px; }
  .connection-panel { max-width: 600px; width: 100%; }
  .enterprise-grid { grid-template-columns: 1fr; gap: 40px; }
  .developer-grid { gap: 32px; }
  .closing-inner { flex-direction: column; align-items: flex-start; }
  .footer-top { gap: 24px; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }
@media (max-width: 767.98px) {
  .container { padding: 0 20px; }
  .header-row { height: 64px; gap: 12px; }
  .header-actions { gap: 4px; }
  .brand { font-size: 18px; }
  h1 { font-size: clamp(36px, 10.5vw, 46px); line-height: 1.23; }
  .hero { padding: 40px 0; }
  .hero-lead { font-size: 16px; }
  .hero-actions { margin-top: 24px; gap: 10px; }
  .hero-actions .button { padding: 10px 14px; font-size: 14px; }
  .connection-panel { padding: 20px; }
  .endpoint-value { padding-left: 8px; }
  .copy-button .copy-label, .copy-button .copied-label { display: none; }
  .model-strip { padding: 24px 0; }
  .model-list { grid-template-columns: repeat(3, 1fr); gap: 24px 0; }
  .model-list li { font-size: 20px; }
  .model-list li:nth-child(3) { border: 0; text-align: right; }
  .model-list li:nth-child(4) { text-align: left; }
  .section { padding: 56px 0; }
  .audience-grid, .steps, .developer-grid, .faq-layout { grid-template-columns: 1fr; gap: 28px; }
  .audience-grid { margin-top: 28px; }
  .audience-card { padding-top: 24px; }
  .line-icon { margin-bottom: 14px; }
  .steps { margin-top: 32px; }
  .step-number { margin-bottom: 18px; }
  .section-heading h2 { font-size: 30px; }
  .section-heading > p:not(.eyebrow) { font-size: 16px; }
  .code-panel { width: 100%; }
  .closing { padding: 40px 0; }
  .closing h2 { font-size: 28px; }
  .closing-actions .button { padding: 10px 14px; font-size: 14px; }
  .footer-top { flex-direction: column; gap: 24px; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { padding-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
