:root {
  color-scheme: light;
  --ink: #162b46;
  --muted: #4f6480;
  --blue: #225ecb;
  --blue-deep: #174baf;
  --line: #dce7f5;
  --tint: #f3f7fe;
  --sans: Inter, "Segoe UI", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--ink); background: #fff; font: 1rem/1.6 var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
::selection { background: #d1e6ff; color: var(--ink); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.23; }
p { margin: 0; }
:focus-visible { outline: 2px solid #2564d7; outline-offset: 4px; }
.container { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.icon { flex: none; width: 18px; height: 18px; }
.skip-link { position: fixed; z-index: 50; top: 12px; left: 12px; padding: 10px 16px; background: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

/* 顶部沿用双语导航，并在窄屏收起章节链接。 */
.site-header { position: sticky; z-index: 20; top: 0; background: #fffffff0; border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.nav, .nav-actions, .brand, .nav-links, .language-switch { display: flex; align-items: center; }
.nav { min-height: 77px; gap: 24px; }
.brand { flex: none; gap: 10px; font-size: 1.36rem; font-weight: 720; letter-spacing: -.035em; white-space: nowrap; }
.brand img { flex: none; border-radius: 10px; }
.nav-links { margin-inline-start: auto; gap: clamp(9px, 1.45vw, 23px); }
.nav-links a { display: flex; min-height: 44px; align-items: center; color: var(--muted); font-size: .9rem; font-weight: 550; white-space: nowrap; }
.nav-links a:hover, .footer-contact a:hover { color: var(--blue); }
.nav-links .mobile-github { display: none; }
.nav-actions { flex: none; gap: 9px; }
.github-button, .menu-toggle {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: .88rem;
  font-weight: 600;
}
.github-button:hover, .menu-toggle:hover, .menu-toggle[aria-expanded="true"] { background: #edf4ff; }
.menu-toggle { display: none; }
.language-switch { flex: none; gap: 2px; padding: 3px; background: #eef3fa; border: 1px solid var(--line); border-radius: 9px; }
.language-switch button { min-width: 36px; min-height: 34px; padding: 0 5px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: .85rem; }
.language-switch button[aria-pressed="true"] { background: #fff; color: var(--blue-deep); font-weight: 700; box-shadow: 0 1px 4px #203e701e; }

.hero {
  overflow: hidden;
  background: radial-gradient(ellipse at 79% 45%, #d9e9ff 0, transparent 53%),
    radial-gradient(ellipse at 97% 80%, #e8dcff 0, transparent 49%), #f6f9ff;
}
.hero-content { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); align-items: center; gap: 22px; min-height: 595px; }
.hero-copy { position: relative; z-index: 1; padding-block: 55px; }
.eyebrow { margin-bottom: 17px; color: var(--blue-deep); font-size: .85rem; font-weight: 750; letter-spacing: .12em; }
.hero h1 { margin-bottom: 20px; font-size: clamp(2.6rem, 4.3vw, 3.85rem); font-weight: 770; letter-spacing: -.047em; line-height: 1.11; }
.hero h1:lang(zh) { font-size: clamp(2rem, 4.3vw, 3.85rem); }
.hero h1 span { display: block; }
.hero h1 span:first-child { color: #2359c5; }
.hero-description { max-width: 33rem; margin-bottom: 27px; color: var(--muted); font-size: 1.065rem; line-height: 1.75; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 11px; }
.button {
  display: inline-flex;
  min-height: 46px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: .94rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
}
.button-primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 6px 16px #2261cb22; }
.button-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.button-primary .icon { filter: brightness(0) invert(1); }
.button-ghost { border-color: #afc7ee; background: #fff; color: var(--blue-deep); }
.button-ghost:hover { border-color: #80a9e9; background: #edf4ff; }
.compatibility { display: flex; align-items: center; gap: 8px; margin-top: 19px; color: #435a75; font-size: .9rem; }
.compatibility img { flex: none; }
.hero-art { display: grid; place-items: center; padding: 28px 0; }
.hero-image { width: min(100%, 556px); height: auto; filter: drop-shadow(0 22px 22px #22477d32); }

.facts { border-block: 1px solid var(--line); background: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 21px; }
.fact { display: grid; align-content: center; gap: 3px; padding-inline: 24px; border-inline-end: 1px solid var(--line); }
.fact:first-child { padding-inline-start: 0; }
.fact:last-child { border: 0; }
.fact strong { color: #204d96; font-size: 1.45rem; line-height: 1.25; }
.fact span { color: var(--muted); font-size: .9rem; }

.section { padding-block: clamp(54px, 6.5vw, 86px); }
.section-heading { margin-bottom: 26px; }
.section-heading h2 { font-size: clamp(1.8rem, 3.6vw, 2.65rem); font-weight: 720; letter-spacing: -.032em; }
.section-heading p { max-width: 45rem; margin-top: 10px; color: var(--muted); }
.feature-explorer { display: grid; grid-template-columns: minmax(230px, 29%) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 17px; overflow: hidden; box-shadow: 0 14px 34px #1d4a7910; }
.feature-tabs { display: grid; gap: 5px; align-content: center; padding: 14px; border-inline-end: 1px solid var(--line); background: #f8faff; }
.feature-tab { display: flex; gap: 10px; width: 100%; min-height: 77px; align-items: center; padding: 12px 11px; border: 1px solid transparent; border-radius: 10px; text-align: start; background: transparent; }
.feature-tab:hover { background: #f0f5ff; }
.feature-tab[aria-selected="true"] { border-color: #c8daf5; background: #eaf2ff; }
.feature-tab strong, .feature-tab small { display: block; }
.feature-tab strong { font-size: .98rem; line-height: 1.33; }
.feature-tab small { margin-top: 4px; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.feature-icon { flex: none; width: 37px; height: 37px; padding: 9px; border: 1px solid #d8e5f7; border-radius: 10px; background: #eef4ff; }
.feature-panels { min-width: 0; background: radial-gradient(ellipse at 76% 10%, #e6ecff, transparent 68%), #f2f7ff; }
.feature-scene { display: grid; min-height: 294px; place-content: center; gap: 18px; padding: 25px 22px; text-align: center; }
.feature-scene > p { max-width: 35rem; margin-inline: auto; color: var(--muted); }
.feature-scene code { color: #214d9b; font: .87rem var(--mono); overflow-wrap: anywhere; }
.diagram { display: grid; align-items: center; justify-content: center; gap: clamp(6px, 1.4vw, 18px); width: min(100%, 31rem); margin-inline: auto; }
.diagram-spaces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.diagram-flow { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.diagram-card { display: grid; min-height: 111px; align-content: center; justify-items: center; gap: 6px; padding: 10px; border: 1px solid #cee0f9; border-radius: 12px; background: #ffffffd9; box-shadow: 0 6px 16px #2e5a9e0f; }
.diagram-card .icon { width: 25px; height: 25px; }
.diagram-card strong { font-size: .96rem; line-height: 1.3; }
.diagram-card span { color: var(--muted); font-size: .86rem; line-height: 1.4; }
.flow-icon { width: 24px; height: 24px; }
.feature-extras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 17px; }
.feature-extra { display: flex; align-items: start; gap: 11px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #f8fbff; }
.feature-extra h3 { margin-bottom: 6px; font-size: 1rem; }
.feature-extra p { color: var(--muted); font-size: .9rem; }

.experience { border-block: 1px solid var(--line); background: #f8fbff; }
.experience .section-heading { text-align: center; }
.experience .section-heading p { margin-inline: auto; }
.screenshots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 6vw, 78px); max-width: 590px; margin-inline: auto; }
.screenshot-item { display: flex; min-width: 0; align-items: center; flex-direction: column; margin: 0; text-align: center; }
.screenshot-button { display: block; width: 100%; max-width: 230px; border: 1px solid #2b3e5c; border-radius: 22px; padding: 5px; background: #0b1422; box-shadow: 0 14px 28px #21447d2b; }
.screenshot-button:hover { border-color: #5281d6; }
.screenshot-button img { width: 100%; height: auto; aspect-ratio: 9 / 20; object-fit: contain; border-radius: 16px; background: #101826; }
figcaption { display: grid; gap: 3px; margin-top: 15px; }
figcaption strong { font-size: 1rem; }
figcaption span { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.image-dialog { max-width: calc(100vw - 28px); max-height: 94dvh; padding: 8px; overflow: visible; border: 1px solid #41506d; border-radius: 16px; background: #101724; }
.image-dialog::backdrop { background: #132742c9; }
.image-dialog img { max-height: 87dvh; max-width: calc(100vw - 50px); width: auto; height: auto; border-radius: 9px; }
.image-dialog button { position: absolute; top: 12px; right: 12px; min-width: 44px; min-height: 44px; padding: 0; border: 1px solid #bccce6; background: #fff; border-radius: 9px; font-size: 1.45rem; line-height: 1; }

.download-section { background: radial-gradient(ellipse at right top, #e4edff, transparent 70%), #f5f8fe; }
.download-layout { padding: clamp(14px, 2.65vw, 31px); border: 1px solid #d0dff4; border-radius: 18px; background: #ffffffdf; box-shadow: 0 12px 35px #214e8312; }
.download-channel-heading { display: flex; min-width: 0; align-items: center; gap: 9px; }
.download-channel-heading h3 { font-size: 1.13rem; }
.download-build p { margin-top: 3px; color: var(--muted); font-size: .9rem; }
.download-version, .download-build .release-state { padding: 4px 9px; border: 1px solid #c9daf6; border-radius: 999px; background: #edf4ff; color: #204e97; font-size: .84rem; line-height: 1.4; }
.download-version { margin-inline-start: auto; font-family: var(--mono); font-weight: 650; overflow-wrap: anywhere; }
.download-build { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px 12px; margin-top: 15px; padding: clamp(12px, 1.8vw, 18px); border: 1px solid #bdd3f4; border-radius: 13px; background: linear-gradient(125deg, #ebf3ff, #f7faff); }
.download-build h4 { font: 680 1.12rem/1.4 var(--mono); }
.download-build .release-state { margin-top: 0; }
.download-layout .button { width: 10rem; margin-inline-start: auto; }

.start-layout, .faq-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: 30px 46px; }
.steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style-position: inside; }
.steps li { padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: #f8fbff; }
.steps li::marker { color: var(--blue-deep); font-weight: 750; }
.steps h3 { display: inline; font-size: 1.04rem; }
.steps p { margin-top: 5px; color: var(--muted); }
.faq-section { border-block: 1px solid var(--line); background: #f7faff; }
.faq-list { display: grid; gap: 9px; }
.faq-list details { padding: 12px 16px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.faq-list summary { font-weight: 630; cursor: pointer; }
.faq-list p { margin-top: 9px; color: var(--muted); }
.footer { padding-block: 25px 18px; }
.footer-top { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.footer .brand-name { color: #173c5c; font-size: 18px; font-weight: 700; line-height: normal; letter-spacing: -1px; }
.footer .brand-name span { color: #355978; font-weight: 450; }
.footer-tagline { margin-top: 6px; color: #6c879b; font-size: 12px; line-height: normal; }
.footer-contact { display: grid; grid-template-columns: max-content auto; gap: 8px 9px; padding-top: 3px; font-size: 12px; line-height: 1.7; }
.contact-label { color: #7791a6; }
.contact-value { color: #345d7f; font-family: var(--mono); user-select: all; }
.footer-bottom { margin-top: 18px; padding-top: 14px; color: #708ba0; border-top: 1px solid var(--line); font-size: 10px; line-height: 1.9; }

@media (max-width: 1020px) {
  .nav { position: relative; flex-wrap: wrap; min-height: 67px; gap: 10px; }
  .nav-actions { margin-inline-start: auto; }
  .nav-links { order: 1; flex: 0 0 100%; flex-wrap: wrap; margin: 0; }
  .has-js .nav-links { position: absolute; top: 100%; right: 0; left: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 7px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: 0 9px 25px #214b8524; }
  .has-js .nav-links:not([data-open="true"]) { display: none; }
  .has-js .nav-links a { padding-inline: 10px; }
  .has-js .menu-toggle { display: inline-flex; }
  .hero-content { min-height: 500px; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 36px); }
  .hero-content { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero-copy { padding: 38px 0 7px; }
  .hero h1 { font-size: clamp(2.17rem, 8vw, 3.55rem); }
  .hero h1:lang(zh) { font-size: clamp(1.75rem, 8.9vw, 3.55rem); }
  .hero-art { padding: 7px 6px 28px; }
  .hero-image { width: min(100%, 444px); }
  .feature-explorer { grid-template-columns: 1fr; }
  .feature-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; padding: 8px; border-inline: 0; border-bottom: 1px solid var(--line); }
  .feature-tab { flex-direction: column; justify-content: center; gap: 5px; padding: 6px 4px; text-align: center; }
  .feature-tabs small { display: none; }
  .feature-tab strong { font-size: .86rem; overflow-wrap: anywhere; }
  .feature-tab .feature-icon { width: 29px; height: 29px; padding: 6px; }
  .feature-scene { min-height: 233px; padding: 19px 12px; }
  .feature-extras, .start-layout, .faq-layout { grid-template-columns: 1fr; }
  .start-layout, .faq-layout { gap: 5px; }
}
@media (max-width: 680px) {
  .footer-tagline, .contact-value { font-size: 11px; }
}
@media (max-width: 460px) {
  html { scroll-padding-top: 75px; }
  .nav { gap: 8px; }
  .brand { gap: 8px; font-size: 1.24rem; }
  .brand img { width: 34px; height: 34px; }
  .github-button { display: none; }
  .nav-links .mobile-github { display: flex; }
  .hero-description { font-size: 1rem; }
  .hero-buttons .button { padding-inline: 10px; font-size: .89rem; }
  .facts-grid { grid-template-columns: 1fr; padding-block: 8px; }
  .fact { grid-template-columns: minmax(100px, 1fr) 1.16fr; align-items: center; gap: 8px; padding: 8px 0; border-inline: 0; border-bottom: 1px solid var(--line); }
  .fact strong { font-size: 1.06rem; }
  .fact span { font-size: .86rem; }
  .download-layout .button { width: 8.25rem; padding-inline: 8px; }
  .screenshot-button { border-radius: 16px; }
  .screenshot-button img { border-radius: 10px; }
  .footer-top { flex-direction: column; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
