/* SPDX-License-Identifier: Apache-2.0 */
:root {
  color-scheme: light;
  --paper: #f5f7fa;
  --surface: #fff;
  --ink: #1d3045;
  --muted: #53677d;
  --line: #dce3ec;
  --wash: #eaf0f7;
  --blue: #245bb4;
  --strong: #19488e;
  --accent: #ad6536;
  --header: #f5f7faf2;
  --diagram: #edf2f9;
  font-family: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  font-synthesis: none;
  scroll-behavior: smooth;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #172230;
  --surface: #202f40;
  --ink: #edf3fc;
  --muted: #b0c1d4;
  --line: #3b4b60;
  --wash: #293b50;
  --blue: #a4c7ff;
  --strong: #c8ddff;
  --accent: #edb98c;
  --header: #172230f2;
  --diagram: #223347;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 15px; line-height: 1.85; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
img, svg { max-width: 100%; }
img { height: auto; }
svg.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
[hidden] { display: none !important; }
::selection { background: #bfd5f5; color: #173454; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 16px; padding: 8px 16px; background: var(--surface); transform: translateY(-180%); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.container { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: var(--header); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(16px); }
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 38px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 32px; height: 32px; }
.brand span { font-family: "Bahnschrift", "Segoe UI", sans-serif; font-size: 28px; font-weight: 650; letter-spacing: -.8px; }
.desktop-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-link { padding: 8px 20px; color: var(--muted); border-radius: 8px; transition: color .16s, background .16s; }
.nav-link:hover { color: var(--ink); background: var(--wash); }
.nav-link[aria-current="page"] { color: var(--blue); background: var(--wash); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 50%; }
.icon-button:hover { color: var(--blue); background: var(--wash); }
.sun { display: none; }
[data-theme="dark"] .moon { display: none; }
[data-theme="dark"] .sun { display: inline; }
.mobile-menu { display: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.45; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; padding: 90px 0 78px; align-items: center; }
.hello { color: var(--blue); font-size: 16px; font-weight: 600; margin-bottom: 20px; }
.hero h1 { font-size: clamp(34px, 3.5vw, 52px); font-weight: 650; line-height: 1.45; letter-spacing: -1.5px; margin-bottom: 24px; }
.hero h1 span { display: block; }
.hero-copy { max-width: 460px; color: var(--muted); font-size: 16px; line-height: 2; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 11px 20px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; font-size: 14px; transition: background .16s, border-color .16s, box-shadow .16s; }
.button-primary, .button-green { color: #fff; background: #245bb4; border-color: #245bb4; }
.button-primary:hover, .button-green:hover { background: #19488e; border-color: #19488e; box-shadow: 0 0 0 4px #245bb420; }
.button-secondary { background: var(--surface); color: var(--ink); }
.button-secondary:hover { background: var(--wash); border-color: var(--blue); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 12px; color: var(--muted); margin: 24px 0 0; }
.hero-tags span + span { border-left: 1px solid var(--line); padding-left: 18px; }
.hero-art { min-width: 0; }
.bench { width: 100%; display: block; }
.bench .ghost { fill: var(--diagram); stroke: var(--line); }
.bench .trace { stroke: var(--line); stroke-width: 2; fill: none; }
.bench .signal { stroke: var(--blue); stroke-width: 2.5; fill: none; }
.bench .node { fill: var(--surface); stroke: var(--blue); stroke-width: 2; }
.bench .chip { fill: var(--surface); stroke: var(--line); stroke-width: 2; }
.bench .small-label { fill: var(--muted); font-family: "Cascadia Code", Consolas, monospace; font-size: 12px; }
.bench .chip-subtitle { font-size: 10px; }
.bench .label { fill: var(--ink); font-size: 15px; }
.bench .accent { fill: var(--accent); }
.bench .chip-title { fill: var(--ink); font-family: "Bahnschrift", sans-serif; font-size: 21px; font-weight: 700; }
.section { margin-bottom: 76px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head h2 { font-size: 25px; font-weight: 650; margin: 0; }
.interests { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; padding: 26px 0 6px; border-top: 1px solid var(--line); }
.interest-item > .icon { color: var(--blue); width: 26px; height: 26px; margin-bottom: 14px; }
.interest-item h3 { font-size: 17px; margin-bottom: 10px; }
.interest-item p { color: var(--muted); font-size: 14px; margin-bottom: 0; max-width: 300px; }
.text-link { color: var(--blue); display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.text-link:hover, .footer-links a:hover, .registration a:hover { text-decoration: underline; text-underline-offset: 5px; }
.project-feature { display: grid; grid-template-columns: .9fr 1.2fr; align-items: center; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.project-feature-text { padding: 36px; }
.project-brand, .download-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.project-icon, .download-brand img { display: block; width: 48px; height: 48px; border-radius: 12px; background: #264339; padding: 7px; flex-shrink: 0; }
.project-brand h2, .download-brand h2 { margin: 0; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.5px; }
.project-version, .version { color: var(--blue); font-size: 12px; font-weight: 600; }
.project-feature p { color: var(--muted); font-size: 14px; max-width: 360px; }
.feature-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 26px; }
.feature-tags span { background: var(--wash); color: var(--muted); border-radius: 6px; font-size: 12px; padding: 3px 9px; }
.project-feature-image { padding: 35px 30px 35px 0; min-width: 0; }
.project-feature-image img { width: 100%; display: block; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 14px 36px #182a4514; }
.small-note { display: flex; align-items: start; gap: 10px; color: var(--muted); font-size: 13px; margin: 22px 0 0; }
.small-note .icon { margin-top: 3px; width: 18px; }
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 24px; color: var(--muted); font-size: 12px; background: var(--surface); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.registration { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px 24px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; min-height: 44px; font-size: 12px; }
.registration a, .registration span { display: inline-flex; gap: 6px; align-items: center; }
.registration .icon { width: 15px; height: 15px; }
.registration img { width: 18px; height: 20px; object-fit: contain; }
.page-heading { padding: 62px 0 36px; }
.page-heading h1 { font-size: clamp(28px, 3.2vw, 42px); font-weight: 650; letter-spacing: -.7px; margin-bottom: 16px; }
.page-heading p { color: var(--muted); font-size: 16px; max-width: 700px; margin: 0; }
.download-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; margin-bottom: 24px; }
.download-main, .download-details { padding: 36px; }
.download-main p { color: var(--muted); max-width: 470px; }
.download-meta { display: flex; gap: 10px 18px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 22px 0; }
.download-main .button { width: 100%; min-height: 54px; font-size: 16px; }
.download-alt { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--blue); font-size: 12px; margin-top: 16px; }
.download-alt a:hover { text-decoration: underline; }
.download-details { background: var(--wash); }
.download-details h3 { font-size: 17px; margin-bottom: 22px; }
.download-details ul { list-style: none; padding: 0; margin: 0; }
.download-details li { display: flex; gap: 10px; align-items: start; margin-bottom: 14px; font-size: 14px; }
.download-details .icon { color: var(--blue); width: 18px; margin-top: 4px; }
.checksum { border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; margin-bottom: 32px; background: var(--surface); }
.checksum-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; margin-bottom: 10px; }
.copy-button { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 6px; background: var(--wash); color: var(--blue); padding: 6px 10px; font-size: 12px; flex-shrink: 0; }
.checksum code { display: block; font-family: "Cascadia Code", Consolas, monospace; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.release-notes { margin: 36px 0; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.release-notes h2 { font-size: 23px; }
.release-notes h3 { font-size: 17px; margin-top: 24px; }
.release-notes p, .release-notes li { font-size: 14px; color: var(--muted); }
.release-notes pre { overflow-x: auto; padding: 16px; background: var(--wash); border-radius: 8px; max-width: 100%; font-size: 13px; }
.download-help { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 56px; padding: 16px 0 20px; }
.download-help h3 { font-size: 17px; margin-bottom: 12px; }
.download-help p { color: var(--muted); font-size: 14px; margin: 0; }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 70px; padding: 8px 0 80px; }
.prose p { color: var(--muted); font-size: 16px; line-height: 2.1; margin-bottom: 22px; }
.prose .button { margin-top: 12px; }
.about-note { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; align-self: start; }
.about-note h2 { font-size: 19px; margin-bottom: 24px; }
.topic-lines { display: grid; gap: 20px; }
.topic-lines div { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.topic-lines .icon { color: var(--blue); }
.not-found { text-align: center; padding: 80px 0 100px; }
.not-found .number { font-size: 80px; line-height: 1.2; color: var(--blue); font-family: "Bahnschrift", sans-serif; margin-bottom: 18px; }
.not-found h1 { font-size: 28px; }
.not-found p { color: var(--muted); }
#toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 20; background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 10px; font-size: 13px; width: max-content; max-width: calc(100% - 32px); }
.clipboard-helper { position: fixed; top: -1000px; }
@media (max-width: 1000px) {
  .container { width: calc(100% - 56px); }
  .hero { gap: 24px; padding: 64px 0; }
  .hero h1 { font-size: 36px; }
  .project-feature-text, .download-main, .download-details { padding: 28px; }
  .project-feature-image { padding: 28px 24px 28px 0; }
  .about-grid { gap: 36px; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 70px; gap: 20px; }
  .desktop-nav { display: none; }
  .header-actions { margin-left: auto; }
  .mobile-menu { display: block; }
  .mobile-menu summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-nav { position: absolute; top: calc(100% + 8px); right: 20px; width: 180px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 10px 28px #172d4820; display: grid; gap: 4px; }
  .hero { grid-template-columns: 1fr; padding: 46px 0; gap: 20px; }
  .hero h1 { font-size: clamp(30px, 6.8vw, 42px); letter-spacing: -1px; }
  .hero-copy { max-width: 540px; }
  .hero-art { width: min(480px, 100%); margin: 0 auto; }
  .hero-actions .button { flex: 1 1 auto; }
  .interests { gap: 22px; }
  .interest-item h3 { font-size: 16px; }
  .section { margin-bottom: 50px; }
  .project-feature, .download-panel { grid-template-columns: 1fr; }
  .project-feature-text { padding: 28px; }
  .project-feature-image { padding: 0 24px 26px; }
  .project-feature p { max-width: 100%; }
  .page-heading { padding: 40px 0 28px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 50px; }
  .footer-inner { justify-content: center; text-align: center; gap: 12px; }
  .footer-links { gap: 20px; }
}
@media (max-width: 480px) {
  .container { width: calc(100% - 36px); }
  .hero { padding-top: 36px; }
  .hero-actions { flex-direction: column; }
  .hero-copy { font-size: 15px; }
  .interests { grid-template-columns: 1fr; gap: 24px; }
  .interest-item { display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; }
  .interest-item > .icon { grid-row: 1 / 3; margin-top: 2px; }
  .interest-item h3 { margin-bottom: 6px; }
  .interest-item p { max-width: 100%; }
  .section-head h2 { font-size: 22px; }
  .section-head { gap: 12px; }
  .text-link { font-size: 13px; }
  .project-feature-text, .download-main, .download-details, .about-note { padding: 24px; }
  .download-help { grid-template-columns: 1fr; gap: 28px; }
  .checksum { padding: 18px; }
  .checksum-heading { gap: 8px; font-size: 12px; }
  .registration { flex-direction: column; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
