@charset "UTF-8";

/* Public website tokens. Keep aligned with docs/frontend-design-standard.md. */
:root {
  color-scheme: dark;
  --site-bg: #10151e;
  --site-surface: #192230;
  --site-text: #f2f6fc;
  --site-muted: #b0bed0;
  --site-divider: #35465c;
  --site-control-border: #71869f;
  --site-accent: #8abfff;
  --site-on-accent: #102033;
  --site-accent-hover: #a3cdff;
  --site-accent-pressed: #71aff7;
  --site-focus: #b7d8ff;
  --site-error: #ffb4ab;
  --site-warning: #ffd18a;
  --site-success: #91ddb5;
  --bg: var(--site-bg);
  --panel: var(--site-surface);
  --text: var(--site-text);
  --muted: var(--site-muted);
  --line: var(--site-divider);
  --mint: var(--site-accent);
  --cyan: var(--site-accent);
  --max: 1280px;
  --header-height: 72px;
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--header-offset, var(--header-height)) + 24px); }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.75; }
main { min-height: 50vh; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--site-focus); outline-offset: 3px;
}
:where(input, textarea, select):focus-visible { outline-offset: 2px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.25; letter-spacing: 0; font-weight: 650; }
h1 { font-size: clamp(56px, 4.7vw, 64px); line-height: 1.18; }
h2 { font-size: clamp(36px, 3.1vw, 42px); }
h3 { font-size: 24px; }
p { color: var(--muted); }
svg.ui-icon { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
.container { width: min(var(--max), calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 12px 20px; border-radius: 8px; background: var(--site-accent); color: var(--site-on-accent); }
.skip-link:focus { top: 12px; }

/* Navigation is a native disclosure on small screens, including without JS. */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav-wrap { display: flex; align-items: center; gap: 24px; min-height: var(--header-height); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 20px; font-weight: 650; line-height: 1.35; }
.brand img { flex-shrink: 0; }
.brand span { overflow-wrap: anywhere; }
.main-nav { display: flex; gap: 20px; }
.desktop-nav { margin-left: auto; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--text); }
.main-nav a[aria-current] { color: var(--site-accent); border-bottom-color: var(--site-accent); }
.nav-cta { flex-shrink: 0; }
.mobile-nav { display: none; margin-left: auto; }
.mobile-nav summary { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 76px; min-height: 44px; cursor: pointer; list-style: none; border: 1px solid var(--site-control-border); border-radius: 8px; padding: 8px 12px; font-size: 14px; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav[open] summary { background: var(--panel); }
.mobile-nav .main-nav { position: absolute; inset: 100% 0 auto; display: flex; flex-direction: column; gap: 0; padding: 16px 24px 24px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px #0004; background: var(--bg); max-height: calc(100dvh - var(--header-offset, var(--header-height))); overflow-y: auto; }
.mobile-nav .main-nav a { padding: 10px 12px; min-height: 48px; border-radius: 6px; border: 0; }
.mobile-nav .main-nav a:hover, .mobile-nav .main-nav a[aria-current] { background: var(--panel); }
.mobile-nav .main-nav .mobile-download { justify-content: space-between; background: var(--site-accent); color: var(--site-on-accent); margin-top: 12px; }

/* Controls have stable geometry across hover, focus and loading states. */
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 48px; padding: 10px 20px; border: 1px solid var(--site-control-border); border-radius: 8px; font-size: 16px; font-weight: 600; line-height: 1.5; text-align: center; background: transparent; color: var(--text); cursor: pointer; transition: color 150ms, background-color 150ms, border-color 150ms; }
.button:hover { background: #25344a; border-color: var(--site-accent); }
.button:active { background: #30425a; }
.button.primary { color: var(--site-on-accent); background: var(--site-accent); border-color: var(--site-accent); }
.button.primary:hover { background: var(--site-accent-hover); border-color: var(--site-accent-hover); }
.button.primary:active { background: var(--site-accent-pressed); border-color: var(--site-accent-pressed); }
.button.small, .nav-cta { min-height: 44px; padding: 8px 16px; font-size: 14px; }
.button:disabled { opacity: .6; cursor: default; }
.text-link { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; font-size: 16px; color: var(--site-accent); }
.text-link:hover, .prose a:hover { text-decoration: underline; text-underline-offset: 5px; }
.back-link .ui-icon { transform: rotate(180deg); }
.eyebrow { color: var(--site-accent); font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--site-accent); vertical-align: middle; }
.gradient-text { color: var(--site-accent); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.section { padding-block: 96px; }
.section-first { padding-top: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 40px; }
.section-heading > * { min-width: 0; }
.section-heading h2 { margin: 0; }
.section-heading p:last-child { margin-bottom: 0; }
.section-heading > div > p:not(.eyebrow) { max-width: 440px; margin-bottom: 12px; }
.section-heading > .text-link { flex-shrink: 0; }
.section-lead { font-size: 18px; line-height: 1.8; }
.page-intro { padding-block: 80px 56px; }
.page-intro h1 { margin-bottom: 24px; }
.page-intro > p:last-child { max-width: 720px; margin-bottom: 0; font-size: 18px; }
.product-screenshot { margin: 0; }
.product-screenshot > a { display: block; border-radius: 12px; }
.product-screenshot img { width: 100%; border: 1px solid var(--line); border-radius: 12px; }
.image-caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-size: 14px; color: var(--muted); margin-top: 12px; }
.image-caption a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--site-accent); }
.feature-preview { max-width: 1120px; margin: 0 auto 64px; }
.feature-grid, .news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-card, .news-card { min-width: 0; padding: 32px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.feature-symbol { display: grid; place-items: center; width: 48px; height: 48px; color: var(--site-accent); background: #243950; border-radius: 8px; margin-bottom: 28px; }
.feature-symbol .ui-icon { width: 24px; height: 24px; }
.feature-card h3 { margin-bottom: 16px; }
.feature-card p { margin-bottom: 0; }
.feature-body { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.feature-body p + p { margin-top: 12px; }
.news-card { display: flex; flex-direction: column; align-items: flex-start; }
.news-card .eyebrow { color: var(--muted); letter-spacing: .04em; }
.news-card h3 { margin-bottom: 16px; }
.news-card h3 a:hover { color: var(--site-accent); }
.news-card > p:not(.eyebrow) { margin-bottom: 24px; }
.news-card > .text-link { margin-top: auto; }
.empty-state { grid-column: 1 / -1; padding: 48px 24px; border: 1px dashed var(--site-control-border); border-radius: 12px; background: var(--panel); text-align: center; }
.empty-state h2, .empty-state h3 { font-size: 24px; margin-bottom: 12px; }
.empty-state p { margin-bottom: 0; }
.empty-state .text-link { margin-top: 16px; }
.download-section { border-block: 1px solid var(--line); }
.platform-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.platform-card { position: relative; min-width: 0; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; transition: background-color 150ms, border-color 150ms; }
.platform-card:hover { background: #213149; border-color: var(--site-accent); }
.platform-mark { display: block; color: var(--site-accent); margin-bottom: 28px; }
.platform-mark .ui-icon { width: 28px; height: 28px; }
.platform-card h3 { font-size: 20px; letter-spacing: 0; margin-bottom: 12px; }
.platform-card p { margin-bottom: 0; font-size: 14px; }
.platform-availability { display: block; margin-top: 4px; }
.platform-arrow { position: absolute; top: 24px; right: 24px; color: var(--muted); }
.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 48px; margin-bottom: 96px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.cta-panel h2 { font-size: 32px; margin-bottom: 16px; }
.cta-panel p:last-child { margin-bottom: 0; }
.cta-panel > .button { flex-shrink: 0; }

/* Downloads: navigation wraps; only data tables scroll horizontally. */
.platform-tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.platform-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid transparent; border-radius: 8px; color: var(--muted); }
.platform-tabs a:hover { color: var(--text); background: var(--panel); }
.platform-tabs a[aria-current] { color: var(--site-on-accent); background: var(--site-accent); font-weight: 600; }
.download-featured { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 40px; margin-top: 32px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.download-featured > div { min-width: 0; }
.download-featured > div:last-child { flex-shrink: 0; }
.download-featured h2 { font-size: 32px; margin-bottom: 16px; }
.download-featured p { margin-bottom: 12px; }
.package-meta { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.package-meta span { padding-inline: 8px; }
.package-detail { display: flex; margin-top: 12px; font-size: 14px; }
.availability { display: inline-block; color: var(--muted); padding: 10px 16px; border: 1px solid var(--site-control-border); border-radius: 8px; }
.history-heading { margin-top: 64px; margin-bottom: 24px; }
.history-heading h2 { font-size: 32px; }
.history-heading > p { font-size: 14px; }
.release-row { display: grid; grid-template-columns: minmax(120px, .7fr) minmax(0, 3fr) auto; gap: 32px; align-items: start; padding: 32px 0; border-top: 1px solid var(--line); }
.release-number, .release-description { min-width: 0; overflow-wrap: anywhere; }
.release-number > span, .release-number small { font-size: 14px; color: var(--muted); }
.release-number h3 { margin: 4px 0 8px; font-size: 24px; }
.release-number h3 a:hover { color: var(--site-accent); }
.release-description strong { font-weight: 600; }
.release-description p { margin: 12px 0; white-space: pre-line; }
.release-actions { display: grid; gap: 8px; }
.release-actions .text-link { justify-content: center; font-size: 14px; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; padding-block: 32px; color: var(--muted); }
.download-help { display: flex; align-items: center; gap: 16px; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin-top: 24px; }
.download-help > .ui-icon { color: var(--site-accent); }
.download-help p { margin: 0; font-size: 14px; flex: 1; }
.download-help > a { flex-shrink: 0; font-size: 14px; }
.article-page { max-width: 768px; padding-block: 64px 96px; min-height: 65vh; }
.article-label { margin-top: 40px; }
.article-page h1 { font-size: clamp(40px, 4.7vw, 56px); }
.article-page h2 { font-size: 28px; margin-top: 40px; }
.prose { font-size: 16px; line-height: 1.95; overflow-wrap: anywhere; }
.prose p { margin-bottom: 20px; }
.prose a { color: var(--site-accent); text-decoration: underline; }
.article-page .prose { margin-top: 24px; }
.package-facts { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px 24px; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-size: 14px; }
.package-facts dt { color: var(--muted); }
.package-facts dd { margin: 0; overflow-wrap: anywhere; }
.checksum { font-family: Consolas, "Courier New", monospace; font-size: 14px; user-select: all; }

/* Help and forms share the same control height, border and validation states. */
.support-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; padding-bottom: 96px; }
.support-layout h2 { font-size: 32px; }
.faq-list details { padding-block: 20px; border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; list-style: none; cursor: pointer; overflow-wrap: anywhere; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ui-icon { color: var(--site-accent); }
.faq-list details[open] summary .ui-icon { transform: rotate(180deg); }
.faq-list .prose { margin-top: 16px; }
.faq-list .prose p:last-child { margin-bottom: 0; }
.support-contact { font-size: 14px; margin-top: 32px; overflow-wrap: anywhere; }
.support-contact a { font-size: 14px; overflow-wrap: anywhere; }
.feedback-card { min-width: 0; padding: 32px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.feedback-card > p:not(.eyebrow) { font-size: 16px; }
.feedback-form { display: grid; gap: 20px; margin-top: 28px; }
.feedback-form label { display: grid; gap: 8px; font-size: 14px; }
.field-label { display: flex; justify-content: space-between; gap: 16px; }
.field-label small { font-size: 14px; color: var(--muted); }
.feedback-form input, .feedback-form select, .feedback-form textarea { width: 100%; min-width: 0; min-height: 48px; border: 1px solid var(--site-control-border); border-radius: 8px; padding: 10px 12px; color: var(--text); background: var(--bg); }
.feedback-form input::placeholder, .feedback-form textarea::placeholder { color: var(--muted); opacity: 1; }
.feedback-form input:hover, .feedback-form select:hover, .feedback-form textarea:hover { border-color: var(--site-accent); }
.feedback-form textarea { resize: vertical; min-height: 160px; }
.feedback-form .form-note { margin: 0; font-size: 14px; }
.feedback-form .button { justify-self: start; }
.message { padding: 16px; margin-top: 20px; border: 1px solid var(--site-control-border); border-radius: 8px; font-size: 14px; overflow-wrap: anywhere; }
.message.error { color: var(--site-error); background: #362329; border-color: var(--site-error); }
.message.success { color: var(--site-success); background: #172e2a; border-color: var(--site-success); }
.error-page { min-height: 65vh; }
.error-page .button { margin-top: 24px; }

/* Footer */
.site-footer { padding-top: 56px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-brand p { max-width: 420px; margin: 16px 0 0; font-size: 14px; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; }
.footer-column h2 { font-size: 16px; letter-spacing: 0; margin-bottom: 16px; }
.footer-column a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 14px; }
.footer-column a:hover, .footer-bottom a:hover { color: var(--site-accent); }
.footer-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 32px; padding-block: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-bottom > :last-child { margin-left: auto; }

@media (max-width: 1199px) {
  .nav-wrap { gap: 16px; }
  .main-nav { gap: 14px; }
  .platform-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-card, .news-card { padding: 24px; }
}
@media (max-width: 1023px) {
  .container { width: calc(100% - 48px); }
  .desktop-nav, .nav-cta { display: none; }
  .mobile-nav { display: block; }
  h1 { font-size: clamp(44px, 6vw, 56px); }
  h2 { font-size: 34px; }
  .section { padding-block: 64px; }
  .section-first { padding-top: 0; }
  .section-heading { align-items: flex-start; gap: 24px; }
  .section-heading h2 { font-size: 34px; }
  .section-heading > .text-link { flex-shrink: 1; }
  .feature-grid, .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-intro { padding-block: 64px 40px; }
  .support-layout { gap: 32px; }
  .feedback-card { padding: 24px; }
  .download-featured { padding: 32px; flex-wrap: wrap; gap: 24px; }
  .cta-panel { padding: 32px; margin-bottom: 72px; }
  .cta-panel h2 { font-size: 30px; }
  .footer-top { gap: 32px; }
}
@media (max-width: 639px) {
  :root { --header-height: 64px; }
  .container { width: calc(100% - 32px); }
  .nav-wrap { gap: 12px; }
  .brand { font-size: 18px; }
  .brand img { width: 28px; height: 28px; }
  .mobile-nav { flex-shrink: 0; }
  .mobile-nav .main-nav { padding: 12px 16px 20px; }
  h1 { font-size: clamp(32px, 8.5vw, 40px); }
  h2, .section-heading h2 { font-size: 28px; }
  h3 { font-size: 22px; }
  .section { padding-block: 48px; }
  .section-first { padding-top: 0; }
  .section-heading { flex-direction: column; gap: 20px; margin-bottom: 28px; }
  .page-intro { padding-block: 48px 32px; }
  .page-intro > p:last-child, .section-lead { font-size: 16px; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { flex: 1 1 auto; }
  .desktop-break { display: none; }
  .feature-grid, .news-grid, .platform-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .feature-card, .news-card { padding: 20px; }
  .feature-preview { margin-bottom: 32px; }
  .image-caption { gap: 4px; }
  .platform-card { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px 16px; padding: 20px; }
  .platform-mark { grid-row: 1 / 3; align-self: center; margin: 0; }
  .platform-card h3 { margin: 0; padding-right: 28px; }
  .platform-card p { grid-column: 2; padding-right: 24px; }
  .platform-availability { display: inline; margin-left: 12px; }
  .platform-arrow { right: 20px; top: 24px; }
  .cta-panel { flex-direction: column; align-items: flex-start; gap: 24px; padding: 24px; margin-bottom: 56px; }
  .cta-panel h2 { font-size: 28px; }
  .platform-tabs { gap: 4px; }
  .platform-tabs a { padding-inline: 12px; font-size: 14px; }
  .download-featured { padding: 24px; }
  .download-featured h2 { font-size: 28px; }
  .download-featured > div:last-child { flex-shrink: 1; }
  .history-heading { margin-top: 48px; }
  .history-heading h2 { font-size: 28px; }
  .release-row { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 24px; }
  .release-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
  .release-number > span { display: none; }
  .release-number h3 { display: inline; margin-right: 16px; }
  .download-help { align-items: flex-start; flex-wrap: wrap; padding: 20px; }
  .download-help p { flex-basis: calc(100% - 36px); }
  .article-page { padding-block: 40px 56px; }
  .article-page h1 { font-size: clamp(32px, 8.5vw, 40px); }
  .article-page h2 { font-size: 26px; }
  .package-facts { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 20px; }
  .package-facts dd:not(:last-child) { margin-bottom: 12px; }
  .support-layout { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-bottom: 56px; }
  .support-layout h2 { font-size: 28px; }
  .feedback-card { padding: 20px; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; padding-bottom: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { gap: 12px; align-items: flex-start; flex-direction: column; }
  .footer-bottom > :last-child { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  .button, .platform-tabs a[aria-current], .mobile-nav summary, .mobile-nav .main-nav .mobile-download { border: 1px solid ButtonText; }
  .main-nav a[aria-current] { text-decoration: underline; }
}
