:root {
    --ink: #182133;
    --muted: #556279;
    --dark: #10131d;
    --blue: #2245c5;
    --cyan: #a5e7ff;
    --line: #dce4f3;
    font-family: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
    color: var(--ink);
    background: #eef3fc;
    line-height: 1.65;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, summary:focus-visible {
    outline: 3px solid #42b9ec;
    outline-offset: 4px;
}
h1, h2, h3, p { margin: 0; }
img { display: block; }
[hidden] { display: none !important; }
#demo, #download, #features, #help { scroll-margin-top: 1.25rem; }

.wrap { width: min(74rem, 100% - 4rem); margin-inline: auto; }

.site-header {
    background: var(--dark);
    color: #f1f5ff;
    border-bottom: 1px solid #292e43;
}
.header-inner { min-height: 4.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.125rem; font-weight: 680; white-space: nowrap; }
.brand span { letter-spacing: -.025em; }
.brand strong { font-weight: 760; margin-left: .15em; }
.header-inner nav { display: flex; align-items: center; gap: 2.2rem; color: #c7ccdf; font-size: .95rem; }
.header-inner nav a { padding-block: .35rem; }
.header-inner nav a:hover { color: #a5e7ff; }

.button {
    display: inline-flex;
    min-height: 3.05rem;
    justify-content: center;
    align-items: center;
    gap: .55rem;
    padding: .65rem 1.05rem;
    border: 1px solid transparent;
    border-radius: .58rem;
    font-size: .96rem;
    font-weight: 700;
    line-height: 1.3;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.button-header { min-height: 2.5rem; color: #f1f5ff; background: #272a42; border-color: #3f4668; }
.button-header:hover { background: #363d5d; }
.button-primary { color: #fff; background: var(--blue); }
.button-primary:hover { background: #293da8; }
.button-ghost { border-color: #495169; color: #e8eeff; background: #151a2b99; }
.button-ghost:hover { background: #252d46; border-color: #7988b0; }

.hero {
    background:
        radial-gradient(ellipse at 78% 25%, #2b3570b8 0, transparent 46%),
        radial-gradient(ellipse at 63% 114%, #1a4d6294 0, transparent 49%),
        linear-gradient(118deg, #10131d 14%, #161a31 79%, #131628 100%);
    color: #f6f8ff;
    position: relative;
    isolation: isolate;
}
.hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .3;
    background-image: linear-gradient(#8ca6eb22 1px, transparent 1px), linear-gradient(90deg, #8ca6eb22 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(90deg, transparent 25%, #000 100%);
    pointer-events: none;
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: clamp(1.5rem, 3.2vw, 3.4rem);
    padding-block: clamp(3.25rem, 7.4vw, 6.1rem) clamp(3.6rem, 7.6vw, 6.4rem);
}
.eyebrow { display: flex; align-items: center; gap: .55rem; color: #b9c6eb; font-size: .92rem; font-weight: 620; }
.eyebrow span { width: .6rem; height: .6rem; border-radius: 2px; background: #79dbff; box-shadow: 0 0 15px #8ddbff84; }
.hero h1 {
    margin: .85rem 0 1.2rem;
    font-size: clamp(2.6rem, 4.5vw, 4.05rem);
    line-height: 1.15;
    font-weight: 790;
    letter-spacing: -.075em;
}
.hero h1 span { color: #aeccff; }
.hero-description { max-width: 25.8rem; font-size: clamp(1rem, 1.45vw, 1.17rem); color: #bbc8e3; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.75rem; }
.hero .button-primary { color: #17263d; background: #b2e8ff; border-color: #c5ecff; box-shadow: 0 .4rem 1.5rem #42a5e338; }
.hero .button-primary:hover { background: #e1f6ff; }
.download-icon {
    width: .93rem;
    height: .93rem;
    background:
        linear-gradient(90deg, transparent 45%, #b2e8ff 45%, #b2e8ff 55%, transparent 55%),
        linear-gradient(0deg, transparent 45%, #b2e8ff 45%, #b2e8ff 55%, transparent 55%),
        #234a7f;
    border-radius: .1rem;
}

.product-window {
    background: #111727;
    border: 1px solid #5564a0;
    border-radius: 1rem;
    box-shadow: 0 1.75rem 4.25rem #02041591, inset 0 0 0 1px #94aaff16;
    min-width: 0;
    color: #f1f5ff;
}
.window-top {
    min-height: 3rem;
    padding: .6rem 1.05rem;
    border-bottom: 1px solid #343e60;
    border-radius: 1rem 1rem 0 0;
    background: #212a46;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
}
.window-brand { display: flex; align-items: center; gap: .5rem; font-size: .88rem; font-weight: 650; }
.demo-label { font-size: .75rem; color: #bad2f4; border: 1px solid #536ca5; border-radius: 1rem; padding: .08rem .55rem; }
.demo-grid { display: grid; grid-template-columns: 7.3rem minmax(0, 1fr); min-height: 19rem; }
.demo-nav { padding: .9rem .48rem; border-right: 1px solid #313955; background: #161e33; }
.demo-tab {
    display: flex;
    align-items: center;
    gap: .45rem;
    width: 100%;
    border: 1px solid transparent;
    border-radius: .38rem;
    color: #aebcda;
    background: transparent;
    padding: .55rem .42rem;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
    font-size: .81rem;
}
.demo-tab + .demo-tab { margin-top: .38rem; }
.demo-tab:hover { background: #242f4a; color: #fff; }
.demo-tab[aria-pressed="true"] { border-color: #4666ac; background: #293b63; color: #edf3ff; font-weight: 680; }

.demo-icon { display: inline-block; flex: none; position: relative; width: 1rem; height: 1rem; color: inherit; }
.icon-clock { border: 1.5px solid currentColor; border-radius: 50%; }
.icon-clock::before { content: ""; position: absolute; inset: 17% 24% 38% 44%; border-left: 1.5px solid; border-bottom: 1.5px solid; }
.icon-forward::before, .icon-forward::after { content: ""; position: absolute; width: 63%; height: 62%; border: 1.5px solid; border-radius: .15rem; }
.icon-forward::before { left: 1%; top: 1%; }
.icon-forward::after { right: 1%; bottom: 1%; background: var(--icon-surface, #293b63); }
.icon-reply { border: 1.5px solid; border-radius: 22%; height: .8rem; }
.icon-reply::before { content: ""; position: absolute; width: 25%; height: 17%; border-left: 1.5px solid; border-bottom: 1.5px solid; transform: skewY(-27deg); bottom: -18%; left: 22%; background: var(--icon-surface, #293b63); }
.icon-record { border: 1.5px solid; border-radius: .16rem; }
.icon-record::before { content: ""; position: absolute; left: 22%; right: 22%; top: 31%; border-top: 1.5px solid; box-shadow: 0 .3rem currentColor; }
.demo-tab:not([aria-pressed="true"]) { --icon-surface: #161e33; }
.demo-content { min-width: 0; padding: 1.1rem; display: flex; flex-direction: column; justify-content: center; }
.demo-heading { display: flex; align-items: end; justify-content: space-between; gap: .55rem; margin-bottom: .85rem; }
.demo-heading p { font-size: .83rem; color: #9eb5df; }
.demo-heading h2 { font-size: clamp(1.12rem, 1.8vw, 1.45rem); line-height: 1.35; font-weight: 710; letter-spacing: -.025em; }
.demo-run {
    min-height: 2.25rem;
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    background: #b3c7ff;
    border: 1px solid #c7d5ff;
    border-radius: .4rem;
    padding: .35rem .56rem;
    color: #172649;
    font-size: .81rem;
    font-weight: 730;
    white-space: nowrap;
    cursor: pointer;
}
.demo-run:hover { background: #e0e9ff; }
.demo-run:disabled { cursor: wait; color: #d7e4ff; background: #344267; border-color: #7084b0; }
.play-icon {
    border-block: .25rem solid transparent;
    border-left: .38rem solid currentColor;
    width: 0;
    height: 0;
}
.demo-message { padding: .73rem .68rem; background: #1b253e; border: 1px solid #3a4c76; border-radius: .55rem; display: flex; gap: .55rem; align-items: flex-start; }
.message-avatar { display: grid; place-content: center; flex: none; color: #d5e7ff; background: #344875; border-radius: .4rem; width: 1.8rem; height: 1.8rem; font-size: .85rem; }
.demo-message p:first-child { color: #adc7ef; font-size: .79rem; }
.demo-message p:last-child { color: #eaf0ff; font-size: .9rem; overflow-wrap: anywhere; }
.demo-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .44rem; list-style: none; padding: 0; margin: .8rem 0 .65rem; }
.demo-flow li {
    display: grid;
    align-content: start;
    gap: .1rem;
    padding: .52rem .43rem;
    border: 1px solid #374360;
    border-radius: .4rem;
    background: #171f33;
    color: #d9e4fb;
    min-width: 0;
    transition: border-color .2s ease, background .2s ease;
}
.demo-flow span { color: #9badcf; font-size: .75rem; }
.demo-flow strong { font-size: .81rem; font-weight: 650; line-height: 1.43; overflow-wrap: anywhere; }
.demo-flow .running { background: #253e6a; border-color: #91b8ff; }
.demo-flow .complete { background: #173733; border-color: #367a66; }
.demo-flow .complete span { color: #a1e2cd; }
.demo-status { min-height: 1.75rem; color: #b4c3de; font-size: .81rem; }
.window-foot { padding: .48rem .88rem; border-top: 1px solid #303954; color: #b3c1dc; display: flex; align-items: center; gap: .45rem; font-size: .76rem; }
.demo-dot { width: .38rem; height: .38rem; border-radius: 50%; background: #85a7ef; }

.capabilities { background: #f5f8fd; padding-block: clamp(2.8rem, 5vw, 4.7rem); }
.section-intro { display: grid; gap: .35rem; margin-bottom: 1.55rem; }
.section-intro h2 { color: #1a2744; font-size: clamp(1.65rem, 3.2vw, 2.45rem); letter-spacing: -.047em; line-height: 1.23; }
.section-intro p { color: var(--muted); max-width: 36rem; font-size: 1rem; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.feature { background: #fff; min-width: 0; border: 1px solid var(--line); border-radius: .75rem; padding: 1.05rem; }
.feature-icon { width: 2.4rem; height: 2.4rem; border-radius: .57rem; display: grid; place-content: center; margin-bottom: .72rem; }
.feature-blue { color: #2a51be; background: #e7eeff; --icon-surface: #e7eeff; }
.feature-purple { color: #633db1; background: #f0e8ff; --icon-surface: #f0e8ff; }
.feature-green { color: #237055; background: #e1f4ed; --icon-surface: #e1f4ed; }
.feature-orange { color: #ad541e; background: #ffebdd; --icon-surface: #ffebdd; }
.feature h3 { color: #1b2947; font-size: 1.04rem; margin-bottom: .3rem; }
.feature p { color: #556279; font-size: .93rem; line-height: 1.7; }

.downloads { background: #eaf0fd; border-block: 1px solid #dce5f8; padding-block: clamp(2.7rem, 5vw, 4.5rem); }
.release-card {
    min-width: 0;
    max-width: 54rem;
    background: #fff;
    border: 1px solid #d4dff4;
    border-radius: .9rem;
    padding: clamp(1rem, 2.5vw, 1.6rem);
    box-shadow: 0 .65rem 1.9rem #1d3d7820;
}
.release-overview { display: flex; align-items: center; justify-content: space-between; gap: .8rem 1.4rem; flex-wrap: wrap; }
.release-tag { color: #3b59ac; font-size: .84rem; font-weight: 690; }
.release-card h3 { color: #1d2b4c; font-size: clamp(1.28rem, 2.3vw, 1.67rem); margin: .05rem 0 .2rem; }
.release-description { color: var(--muted); font-size: .98rem; }
.release-meta { color: #4e6287; margin-top: .7rem; min-height: 1.5rem; font-size: .9rem; }
.release-actions:not(:has(a:not([hidden]))) { display: none; }
.release-details { border-top: 1px solid #dce5f4; margin-top: .9rem; padding-top: .6rem; color: #3b527e; }
.release-details summary, .questions summary { cursor: pointer; font-weight: 650; }
.release-details summary { font-size: .91rem; }
.release-notes { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: .5rem; font-size: .92rem; }
.release-notes:empty { display: none; }
.release-hash { display: grid; gap: .2rem; padding: .42rem .56rem; margin-block: .55rem .15rem; color: #344f83; background: #edf2fb; font-size: .79rem; border-radius: .4rem; }
.release-hash code { overflow-wrap: anywhere; }
.noscript { margin-top: 1rem; color: var(--muted); }

.help { background: #f5f8fd; padding-block: clamp(2.6rem, 5vw, 4.1rem); }
.help-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 2rem; }
.questions details { border-bottom: 1px solid #d4dfee; padding: .74rem 0; color: #23385c; }
.questions details:first-child { border-top: 1px solid #d4dfee; }
.questions p { margin: .4rem 0 .1rem; color: var(--muted); }

.site-footer { background: #131728; color: #bdc7df; border-top: 1px solid #273452; }
.footer-inner { min-height: 5rem; display: flex; align-items: center; gap: 1rem; }
.footer-inner .brand { color: #edf4ff; }
.footer-inner p, .operating-link { font-size: .9rem; }
.operating-link { margin-left: auto; }
.operating-link:hover { color: #c1e9ff; }

@media (max-width: 880px) {
    .wrap { width: min(74rem, 100% - 2.5rem); }
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 1.85rem; }
    .hero h1 { font-size: clamp(2.6rem, 7vw, 3.65rem); }
    .hero-copy { max-width: 38rem; }
    .product-window { max-width: 42rem; }
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
    .wrap { width: calc(100% - 2rem); }
    .header-inner { min-height: 4.2rem; flex-wrap: wrap; gap: .45rem .7rem; padding-block: .55rem; }
    .header-inner nav { display: none; }
    .hero-grid { padding-block: 2.65rem 2.85rem; }
    .hero h1 { font-size: clamp(2rem, 8.3vw, 3.45rem); }
    .hero-actions { gap: .6rem; }
    .hero-actions .button { padding-inline: .8rem; }
    .demo-grid { display: block; min-height: 0; }
    .demo-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem; border-right: 0; border-bottom: 1px solid #313955; padding: .5rem; }
    .demo-tab { width: auto; gap: .27rem; padding: .45rem .25rem; justify-content: center; }
    .demo-tab + .demo-tab { margin-top: 0; }
    .demo-tab .demo-icon { display: none; }
    .demo-content { padding: .72rem; }
    .demo-flow { gap: .34rem; }
    .demo-flow li { padding: .4rem .36rem; }
    .help-grid { grid-template-columns: minmax(0, 1fr); }
    .release-actions, .release-actions .button { width: 100%; }
    .help-grid { gap: .55rem; }
    .help .section-intro { margin-bottom: .3rem; }
    .footer-inner { flex-wrap: wrap; gap: .5rem .8rem; }
}
@media (max-width: 359px) {
    .feature-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-actions .button { font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0s !important; }
}
