/* Polaris public site: quiet paper palette, compact navigation and real client imagery. */
:root {
  color-scheme: light;
  --bg-primary: #f7f8fa;
  --bg-alt: #eef1f5;
  --bg-card: #ffffff;
  --border-color: #dce1e8;
  --border-highlight: #c4ccd7;
  --text-primary: #191c22;
  --text-secondary: #454c57;
  --text-muted: #717986;
  --brand-blue: #526b86;
  --brand-blue-hover: #3d5875;
  --brand-accent: #8da2b8;
  --brand-badge-bg: #e9edf2;
  --action-red: #a94a50;
  --action-red-hover: #8f3940;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg-primary: #121419;
  --bg-alt: #191c22;
  --bg-card: #1b1e25;
  --border-color: #ffffff1b;
  --border-highlight: #ffffff35;
  --text-primary: #f0f1f4;
  --text-secondary: #c2c6ce;
  --text-muted: #969ca8;
  --brand-blue: #bdcce0;
  --brand-blue-hover: #d3ddec;
  --brand-accent: #778ba5;
  --brand-badge-bg: #242a34;
}

html { scrollbar-color: #aeb6c2 transparent; scrollbar-width: thin; scroll-behavior: smooth; }
html[data-theme="dark"] { scrollbar-color: #565d68 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 8px; background: #aeb6c2; background-clip: content-box; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #565d68; background-clip: content-box; }
html, body { background: var(--bg-primary) !important; color: var(--text-primary) !important; }
body::before, body::after { display: none !important; }
::selection { background: #526b8626; color: var(--text-primary); }

.polaris-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  margin: 0;
  padding: 0 28px;
  border: 0;
  border-bottom: 1px solid var(--border-color);
  border-radius: 0;
  background: color-mix(in srgb, var(--bg-primary) 92%, transparent);
  box-shadow: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.polaris-header-inner { display: flex; align-items: center; gap: 30px; width: min(1240px, 100%); min-height: 70px; margin: 0 auto; }
.polaris-brand, .polaris-footer-brand > a { color: var(--text-primary) !important; font-family: Sora, Arial, sans-serif; font-size: 16px; font-weight: 600; letter-spacing: .12em; text-decoration: none; }
.polaris-header-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; color: var(--text-secondary); font-size: 13.5px; font-weight: 500; }
.polaris-header-nav a { padding: 7px 0; color: inherit; text-decoration: none; transition: color .18s ease; }
.polaris-header-nav a:hover { color: var(--brand-blue-hover); }
.polaris-header-nav .polaris-header-download { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--text-primary); border-radius: 5px; background: var(--text-primary); color: var(--bg-primary); font-size: 13px; }
.polaris-header-nav .polaris-header-download:hover { background: var(--brand-blue-hover); border-color: var(--brand-blue-hover); color: var(--bg-primary); }
.polaris-theme-options { display: inline-flex; flex: none; overflow: hidden; border: 1px solid var(--border-color); border-radius: 5px; background: var(--bg-card); }
.polaris-theme-options button { min-height: 30px; padding: 5px 10px; border: 0; border-right: 1px solid var(--border-color); background: transparent; color: var(--text-muted); font: inherit; font-size: 11.5px; line-height: 1.2; cursor: pointer; transition: color .16s ease, background .16s ease; }
.polaris-theme-options button:last-child { border-right: 0; }
.polaris-theme-options button:hover { color: var(--text-primary); }
.polaris-theme-options button[aria-pressed="true"] { background: var(--bg-alt); color: var(--text-primary); }
.polaris-theme-options button:focus-visible, .polaris-header a:focus-visible, .polaris-footer a:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; }

.site-home { width: min(1240px, calc(100% - 56px)); margin: 0 auto; overflow: visible; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); align-items: center; gap: clamp(32px, 5vw, 72px); min-height: min(650px, calc(100svh - 70px)); padding: 56px 0 64px; }
.home-hero-copy { min-width: 0; animation: home-arrive .52s cubic-bezier(.2,.75,.25,1) both; }
.home-eyebrow, .home-section-kicker { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.home-eyebrow::before, .home-section-kicker::before { width: 22px; height: 1px; background: var(--brand-blue); content: ""; }
.home-title { margin: 20px 0 18px; color: var(--text-primary); }
.home-title-word { display: block; font-family: Sora, Arial, sans-serif; font-size: clamp(48px, 6vw, 80px); font-weight: 500; letter-spacing: -.08em; line-height: .98; }
.home-title-copy { display: block; margin-top: 16px; font-family: "Noto Serif SC", "Songti SC", SimSun, serif; font-size: clamp(28px, 2.85vw, 40px); font-weight: 500; letter-spacing: -.035em; line-height: 1.3; }
.home-lead { max-width: 52ch; color: var(--text-secondary); font-size: 15px; line-height: 1.8; }
.home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.home-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 0 18px; border: 1px solid var(--border-highlight); border-radius: 5px; color: var(--text-primary); font-size: 13.5px; font-weight: 500; text-decoration: none; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.home-button:hover { transform: translateY(-2px); }
.home-button.primary { border-color: var(--text-primary); background: var(--text-primary); color: var(--bg-primary); }
.home-button.primary:hover { background: var(--brand-blue-hover); border-color: var(--brand-blue-hover); }
.home-button.secondary:hover { background: var(--bg-alt); }
.home-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; color: var(--text-muted); font-size: 11px; letter-spacing: .08em; }
.home-meta span + span { position: relative; }
.home-meta span + span::before { position: absolute; top: 50%; left: -10px; width: 1px; height: 11px; background: var(--border-highlight); content: ""; transform: translateY(-50%); }
.home-capture { min-width: 0; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--border-color); border-radius: 7px; background: var(--bg-card); box-shadow: 0 24px 70px #24324712; animation: home-arrive .62s .07s cubic-bezier(.2,.75,.25,1) both; }
.capture-heading, .home-capture figcaption { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 15px; color: var(--text-muted); font-size: 9px; letter-spacing: .06em; }
.capture-heading { border-bottom: 1px solid var(--border-color); }
.home-capture img { display: block; width: 100%; height: auto; aspect-ratio: 1604 / 902; object-fit: cover; }
.home-capture figcaption { border-top: 1px solid var(--border-color); letter-spacing: 0; }
.home-section { padding: 68px 0 74px; border-top: 1px solid var(--border-color); scroll-margin-top: 90px; }
.home-section-heading { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: end; gap: clamp(24px, 4vw, 56px); margin-bottom: 36px; }
.home-section-heading h2, .home-next h2 { margin-top: 12px; color: var(--text-primary); font-family: "Noto Serif SC", "Songti SC", SimSun, serif; font-size: clamp(26px, 2.55vw, 34px); font-weight: 500; letter-spacing: -.035em; line-height: 1.28; }
.home-section-heading > p { max-width: 52ch; color: var(--text-secondary); font-size: 14.5px; line-height: 1.8; }
.home-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border-color); border-radius: 6px; background: var(--bg-card); }
.home-feature { min-width: 0; padding: 28px 26px 30px; }
.home-feature + .home-feature { border-left: 1px solid var(--border-color); }
.home-feature h3 { margin: 0 0 10px; color: var(--text-primary); font-size: 17px; font-weight: 600; line-height: 1.38; letter-spacing: -.015em; }
.home-feature p { margin: 0; color: var(--text-secondary); font-size: 13.5px; line-height: 1.78; }
.home-next { display: grid; grid-template-columns: minmax(230px, .7fr) minmax(0, 1.3fr); align-items: center; gap: 42px; padding: 68px 0 82px; border-top: 1px solid var(--border-color); }
.home-next > div:first-child > p:last-child { max-width: 320px; margin-top: 11px; color: var(--text-muted); font-size: 12px; line-height: 1.85; }
.home-next-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border-color); }
.home-next-links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 2px; border-bottom: 1px solid var(--border-color); color: var(--text-primary); font-size: 12px; text-decoration: none; transition: color .16s ease, padding .16s ease; }
.home-next-links a:nth-child(odd) { margin-right: 22px; }
.home-next-links a:hover { padding-left: 6px; color: var(--brand-blue); }
.polaris-footer { margin: 0; padding: 48px 28px 24px; border: 0; border-top: 1px solid var(--border-color); border-radius: 0; background: var(--bg-alt); color: var(--text-secondary); }
.polaris-footer-inner { display: grid; grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr); gap: 38px 50px; width: min(1240px, 100%); margin: 0 auto; }
.polaris-footer-brand > a { font-size: 15px; }
.polaris-footer-brand p { max-width: 320px; margin-top: 14px; color: var(--text-muted); font-size: 13px; line-height: 1.75; }
.polaris-footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.polaris-footer-links > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.polaris-footer-links h2 { margin: 0 0 4px; color: var(--text-muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.polaris-footer-links a { color: var(--text-secondary); font-size: 13px; text-decoration: none; transition: color .16s ease; }
.polaris-footer-links a:hover { color: var(--brand-blue); }
.polaris-footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 22px; grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 11.5px; }

.docs-page .polaris-header { top: 0; }
.docs-layout { width: min(1180px, calc(100% - 48px)); margin: 42px auto 0; padding: 0; grid-template-columns: 225px minmax(0, 760px); gap: clamp(28px, 5vw, 64px); }
.docs-sidebar { top: 92px; border: 1px solid var(--border-color); border-radius: 6px; background: var(--bg-card); box-shadow: none; }
.docs-sidebar input { border-color: var(--border-color); border-radius: 4px; background: var(--bg-primary); color: var(--text-primary); }
.docs-sidebar a { border-radius: 4px; color: var(--text-secondary); }
.docs-sidebar a:hover, .docs-sidebar a[aria-current=page] { background: var(--bg-alt); color: var(--text-primary); }
.doc-article h1, .doc-article h2 { color: var(--text-primary); font-family: "Noto Serif SC", "Songti SC", SimSun, serif; }
.doc-lead, .doc-article section p { color: var(--text-secondary); }
.code-block { border: 1px solid var(--border-color); background: var(--bg-alt); color: var(--text-secondary); }
.code-toolbar button { border-color: var(--border-color); background: var(--bg-card); color: var(--text-secondary); }
.doc-pagination { border-color: var(--border-color); }
html[data-theme="dark"] .polaris-header { background: color-mix(in srgb, var(--bg-primary) 92%, transparent); }
html[data-theme="dark"] .polaris-header-nav .polaris-header-download, html[data-theme="dark"] .home-button.primary { background: #e8ebf0; border-color: #e8ebf0; color: #17191d; }
html[data-theme="dark"] .polaris-header-nav .polaris-header-download:hover, html[data-theme="dark"] .home-button.primary:hover { background: #cfd7e2; border-color: #cfd7e2; color: #17191d; }
html[data-theme="dark"] .home-capture { box-shadow: 0 24px 70px #0004; }
html[data-theme="dark"] .home-feature-grid { background: var(--bg-card); }
html[data-theme="dark"] .polaris-footer { background: var(--bg-alt); }

@keyframes home-arrive { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; gap: 40px; min-height: 0; padding: 58px 0 64px; }
  .home-hero-copy { max-width: 640px; }
  .home-title-word { font-size: clamp(54px, 12vw, 86px); }
  .home-title-copy { font-size: clamp(30px, 6vw, 43px); }
  .home-capture { width: 100%; }
  .home-section-heading { grid-template-columns: 1fr; gap: 14px; }
  .home-next { grid-template-columns: 1fr; gap: 26px; }
  .docs-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 640px) {
  .polaris-header { padding: 0 16px; }
  .polaris-header-inner { min-height: 62px; flex-wrap: wrap; gap: 8px 14px; padding: 10px 0; }
  .polaris-brand { font-size: 14px; }
  .polaris-header-nav { order: 2; gap: 15px; margin-left: 0; font-size: 13px; }
  .polaris-header-nav .polaris-header-download { padding: 6px 10px; gap: 6px; font-size: 12.5px; }
  .polaris-theme-options { margin-left: auto; }
  .polaris-theme-options button { min-height: 28px; padding: 4px 8px; font-size: 11px; }
  .site-home { width: calc(100% - 36px); }
  .home-hero { gap: 28px; padding: 40px 0 48px; }
  .home-title { margin: 16px 0 14px; }
  .home-title-word { font-size: clamp(44px, 13vw, 64px); }
  .home-title-copy { margin-top: 12px; font-size: clamp(25px, 6.8vw, 32px); line-height: 1.32; }
  .home-lead { font-size: 14px; line-height: 1.78; }
  .capture-heading, .home-capture figcaption { padding: 12px 13px; font-size: 12px; }
  .home-section { padding: 48px 0; }
  .home-section-heading h2, .home-next h2 { font-size: 25px; }
  .home-feature-grid { grid-template-columns: 1fr; }
  .home-feature { padding: 22px 19px; }
  .home-feature + .home-feature { border-top: 1px solid var(--border-color); border-left: 0; }
  .home-next { gap: 20px; padding: 50px 0 58px; }
  .home-next-links { grid-template-columns: 1fr; }
  .home-next-links a:nth-child(odd) { margin-right: 0; }
  .polaris-footer { padding: 32px 18px 20px; }
  .polaris-footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .polaris-footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .polaris-footer-bottom { grid-column: auto; }
  .docs-page .polaris-header { position: relative; }
  .docs-layout { display: block; width: calc(100% - 36px); margin-top: 22px; }
  .docs-sidebar { position: static; max-height: none; margin-bottom: 24px; }
  .doc-article h1 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-hero-copy, .home-capture { animation: none; }
  .home-button:hover { transform: none; }
}


.home-capture-video { display: block; width: 100%; height: auto; aspect-ratio: 1604 / 902; object-fit: cover; background: var(--bg-alt); }
.home-capture-video:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: -3px; }

/* Homepage structure: intro, feature map, client captures, FAQ and one clear next step. */
.home-title-word.dot-title { width: min(100%, 440px); height: clamp(84px, 9.5vw, 122px); margin: 0; line-height: 1; }
.home-title-word.dot-title canvas { opacity: 0; transition: opacity .24s ease; }
.home-title-word.dot-title.dots-ready canvas { opacity: 1; }
.home-title-word.dot-title.dots-ready .dot-fallback { visibility: hidden; }
.home-hero-aside { align-self: end; max-width: 310px; margin: 0 0 12px auto; padding: 20px 22px; border-left: 1px solid var(--border-highlight); color: var(--text-secondary); font-size: 13px; line-height: 1.78; }
.home-hero-index { margin: 0 0 8px; color: var(--text-primary); font-size: 11px; font-weight: 600; letter-spacing: .12em; }
.home-hero-aside p:not(.home-hero-index) { margin: 0; }
.home-hero-aside a { display: inline-flex; gap: 10px; margin-top: 14px; color: var(--text-primary); font-size: 12.5px; font-weight: 500; text-decoration: none; }
.home-feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-feature { border-left: 0; }
.home-feature:nth-child(3n + 2), .home-feature:nth-child(3n + 3) { border-left: 1px solid var(--border-color); }
.home-feature:nth-child(n + 4) { border-top: 1px solid var(--border-color); }
.home-feature-index { display: block; margin-bottom: 16px; color: var(--brand-blue); font-size: 11px; font-weight: 600; letter-spacing: .12em; }
.home-showcase { padding-bottom: 74px; }
.home-showcase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.home-showcase-card { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--border-color); border-radius: 6px; background: var(--bg-card); }
.home-showcase-media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-alt); }
.home-showcase-media > img, .home-showcase-media > video { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-showcase-media > img { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.home-showcase-card:hover .home-showcase-media > img { transform: scale(1.025); }
.home-showcase-media > video { background: #111; }
.home-showcase-card figcaption { display: grid; gap: 6px; padding: 16px 18px 18px; border-top: 1px solid var(--border-color); color: var(--text-secondary); font-size: 13px; line-height: 1.6; }
.home-showcase-card figcaption span:first-child { color: var(--text-primary); font-size: 11px; font-weight: 600; letter-spacing: .1em; }
.home-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 72px; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.home-facts > div { display: grid; gap: 7px; padding: 20px 22px; }
.home-facts > div + div { border-left: 1px solid var(--border-color); }
.home-facts span { color: var(--text-muted); font-size: 11.5px; }
.home-facts strong { color: var(--text-primary); font-size: 15px; font-weight: 600; }
.home-faq-list { border-top: 1px solid var(--border-color); }
.home-faq-list details { border-bottom: 1px solid var(--border-color); }
.home-faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 4px; color: var(--text-primary); font-size: 15.5px; font-weight: 500; line-height: 1.5; cursor: pointer; list-style: none; }
.home-faq-list summary::-webkit-details-marker { display: none; }
.home-faq-list summary span { color: var(--brand-blue); font-size: 18px; transition: transform .2s ease; }
.home-faq-list details[open] summary span { transform: rotate(45deg); }
.home-faq-list details p { max-width: 72ch; margin: 0 0 20px; color: var(--text-secondary); font-size: 14px; line-height: 1.85; }
.home-faq-list details p a { color: var(--text-primary); }
.home-cta { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin: 12px 0 72px; padding: 36px; border: 1px solid var(--border-color); border-radius: 6px; background: var(--bg-alt); }
.home-cta h2 { margin: 10px 0 8px; color: var(--text-primary); font-family: "Noto Serif SC", "Songti SC", SimSun, serif; font-size: clamp(24px, 2.3vw, 31px); font-weight: 500; letter-spacing: -.03em; line-height: 1.3; }
.home-cta p:not(.home-section-kicker) { margin: 0; max-width: 54ch; color: var(--text-secondary); font-size: 14px; line-height: 1.75; }
@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; min-height: 0; gap: 25px; padding: 55px 0; }
  .home-hero-aside { max-width: none; margin: 0; }
  .home-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-feature:nth-child(3n + 2), .home-feature:nth-child(3n + 3) { border-left: 0; }
  .home-feature:nth-child(2n) { border-left: 1px solid var(--border-color); }
  .home-feature:nth-child(n + 3) { border-top: 1px solid var(--border-color); }
  .home-feature:nth-child(3) { border-top: 1px solid var(--border-color); }
}
@media (max-width: 640px) {
  .home-title-word.dot-title { height: clamp(92px, 24vw, 120px); }
  .home-feature-grid, .home-showcase-grid { grid-template-columns: 1fr; }
  .home-feature:nth-child(n) { border-left: 0; }
  .home-feature:nth-child(n + 2) { border-top: 1px solid var(--border-color); }
  .home-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-facts > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--border-color); }
  .home-facts > div:nth-child(4) { border-top: 1px solid var(--border-color); }
  .home-cta { align-items: start; flex-direction: column; margin-bottom: 50px; padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-title-word.dot-title canvas, .home-showcase-media > img, .home-faq-list summary span { transition: none; }
  .home-showcase-card:hover .home-showcase-media > img { transform: none; }
}.home-hero { position: relative; isolation: isolate; overflow: hidden; }
.home-hero-video { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: .66; filter: saturate(.76) contrast(1.03); }
.home-hero::after { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(94deg, color-mix(in srgb, var(--bg-primary) 91%, transparent) 0%, color-mix(in srgb, var(--bg-primary) 82%, transparent) 44%, color-mix(in srgb, var(--bg-primary) 68%, transparent) 100%); content: ""; }
.home-hero-copy, .home-hero-aside { position: relative; z-index: 2; }
.home-showcase-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-showcase-wide { grid-column: auto; }
.home-showcase-video { background: transparent; }
@media (max-width: 900px) { .home-showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home-showcase-card:last-child:nth-child(odd) { grid-column: span 2; } }
@media (max-width: 640px) { .home-showcase-grid { grid-template-columns: 1fr; } .home-showcase-card:last-child:nth-child(odd) { grid-column: auto; } }
@media (prefers-reduced-motion: reduce) { .home-hero { background: var(--bg-primary) url('/site/showcase-gui-20261111.png') center / cover no-repeat; } .home-hero-video { display: none; } }
/* Keep the copy calm while letting the game footage read clearly across the right half. */
.home-hero { width: 100vw; margin-left: calc(50% - 50vw); padding-left: max(28px, calc((100vw - 1240px) / 2)); padding-right: max(28px, calc((100vw - 1240px) / 2)); }
.home-hero-video { opacity: .78; filter: blur(1px) saturate(.82) contrast(1.04); transform: scale(1.035); }
.home-hero::after { background: linear-gradient(90deg, rgba(247,248,250,.88) 0%, rgba(247,248,250,.80) 30%, rgba(247,248,250,.52) 62%, rgba(247,248,250,.20) 100%); }
html[data-theme="dark"] .home-hero::after { background: linear-gradient(90deg, rgba(18,20,25,.88) 0%, rgba(18,20,25,.80) 30%, rgba(18,20,25,.52) 62%, rgba(18,20,25,.24) 100%); }
.home-hero-copy { max-width: 720px; }
.home-hero-aside { max-width: 310px; padding: 20px 22px; border: 1px solid var(--border-color); border-radius: 6px; background: rgba(247,248,250,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--text-secondary); }
html[data-theme="dark"] .home-hero-aside { background: rgba(18,20,25,.90); }
.home-bilibili-link { display: inline-block; margin: 7px 0 0; border-bottom: 1px solid var(--border-highlight); color: var(--text-primary); text-decoration: none; white-space: nowrap; }
.home-bilibili-link:hover { border-color: var(--text-primary); }
@media (max-width: 900px) { .home-hero { padding-left: 28px; padding-right: 28px; } }
@media (max-width: 640px) { .home-hero { padding-left: 20px; padding-right: 20px; } }
@media (prefers-reduced-motion: reduce) { .home-hero-video { display: none; } }
.polaris-header .polaris-brand { display: inline-flex !important; align-items: center !important; }
.polaris-header .polaris-brand .polaris-mark { display: inline-block; width: 88px; height: 20px; vertical-align: middle; }
.polaris-footer-brand > a { display: inline-flex; align-items: center; min-height: 27px; }
.polaris-footer-brand .polaris-mark { display: inline-block; width: 112px; height: 25px; vertical-align: middle; }
.polaris-mark canvas { touch-action: pan-y; }
.polaris-mark .dot-fallback { font-size: inherit; letter-spacing: .12em; }


/* === 2026-11-11 Layout, Overflow, Typography & Subpage Polish === */
html, body {
  overflow-x: clip;
}
.home-hero {
  overflow: clip;
}
.home-hero-aside {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.home-hero-copy .home-lead {
  max-width: min(52ch, 100%);
}
.polaris-header .polaris-mark,
.polaris-footer .polaris-mark {
  width: 102px !important;
  height: 22px !important;
}
.home-section-heading {
  align-items: end;
}
.home-section-heading > p {
  max-width: 52ch;
  line-height: 1.8;
}
.home-bilibili-link {
  display: inline-block;
  margin-left: 8px;
  white-space: nowrap;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.home-faq details summary span {
  display: inline-block;
  transition: transform 0.22s ease;
}
.home-faq details[open] summary span {
  transform: rotate(45deg);
}

/* Fix 3-column Docs layout + sidebar search input truncation + Dark Mode contrast */
body.docs-page .docs-layout {
  width: min(1240px, calc(100% - 56px)) !important;
  max-width: none !important;
  grid-template-columns: 232px minmax(0, 1fr) 168px !important;
  gap: clamp(28px, 4vw, 48px) !important;
  margin: 40px auto 72px !important;
  padding: 0 !important;
  align-items: start !important;
}
body.docs-page .docs-sidebar input {
  width: 100%;
  font-size: 13px;
  padding: 9px 11px;
  text-overflow: ellipsis;
}
body.docs-page .doc-sidebar-top {
  font-size: 13.5px;
  font-weight: 600;
}
body.docs-page .nav-group {
  font-size: 11.5px;
  font-weight: 600;
  padding: 18px 9px 6px;
}
body.docs-page .docs-sidebar a {
  font-size: 13px;
  line-height: 1.55;
  padding: 7px 10px;
}
body.docs-page .doc-article {
  min-width: 0;
}
body.docs-page .doc-article .doc-breadcrumb {
  font-size: 12px;
}
body.docs-page .doc-article h1 {
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.25;
  margin-top: 14px;
}
body.docs-page .doc-lead {
  font-size: 15px;
  line-height: 1.8;
  max-width: 62ch;
  margin: 14px 0 30px;
}
body.docs-page .doc-article h2 {
  font-size: 20px;
  line-height: 1.45;
  margin-bottom: 14px;
}
body.docs-page .doc-article section p,
body.docs-page .doc-article li {
  font-size: 14.5px;
  line-height: 1.85;
}
body.docs-page .doc-article :not(pre) > code {
  font-size: 12.5px;
}
body.docs-page .doc-table-wrap table {
  font-size: 13px;
  line-height: 1.75;
}
body.docs-page .doc-table-wrap th {
  font-size: 12px;
  font-weight: 600;
}
body.docs-page .doc-table-wrap td code {
  font-size: 12px;
}
body.docs-page .doc-cards strong {
  font-size: 14px;
}
body.docs-page .doc-cards a > span {
  font-size: 13px;
}
body.docs-page .doc-toc {
  top: 96px;
  font-size: 12px;
  line-height: 1.75;
}
body.docs-page .doc-toc > p {
  font-size: 11.5px;
  font-weight: 600;
}
body.docs-page .doc-code .code-toolbar > span,
body.docs-page .doc-code .code-toolbar button,
body.docs-page .doc-code .code-toolbar a {
  font-size: 12px;
}
body.docs-page .doc-code .code-block {
  font-size: 12.5px;
  line-height: 1.75;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.legal-doc h1 {
  font-size: 28px;
  line-height: 1.3;
  color: var(--text-primary, inherit);
}
.legal-doc h2 {
  font-size: 17px;
  color: var(--text-primary, inherit);
}
.legal-doc p,
.legal-doc li {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text-secondary, inherit);
}

@media (max-width: 1100px) {
  body.docs-page .docs-layout {
    grid-template-columns: 205px minmax(0, 1fr) !important;
    gap: 30px !important;
  }
}

@media (max-width: 760px) {
  body.docs-page .docs-layout {
    display: block !important;
    width: calc(100% - 36px) !important;
    margin: 24px auto 48px !important;
    padding: 0 !important;
  }
  .home-section-heading {
    align-items: start;
  }
  .polaris-footer-inner {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .polaris-footer-links {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px 24px !important;
  }
  .polaris-footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }
}

@media (max-width: 640px) {
  .polaris-header .polaris-header-inner {
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px 12px !important;
    padding: 10px 0 !important;
  }
  .polaris-header .polaris-brand {
    order: 0 !important;
  }
  .polaris-header .polaris-theme-options {
    order: 1 !important;
    margin-left: auto !important;
  }
  .polaris-header .polaris-header-nav {
    order: 2 !important;
    width: 100% !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-left: 0 !important;
    padding-top: 6px !important;
    border-top: 1px solid var(--border-color) !important;
  }
  .home-hero-aside {
    margin-top: 8px;
  }
  .home-bilibili-link {
    display: inline-block;
    margin-left: 0;
    margin-top: 6px;
  }
}

@media (max-width: 420px) {
  .polaris-footer-links {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
}
