/* 项目官网的视觉与响应式布局；复用产品截图，主题由 main.js 管理。 */
/* 主题色在根元素统一插值；后代继承同一帧的颜色，不重复启动文字过渡。 */
@property --bg {
    syntax: "<color>";
    inherits: true;
    initial-value: #101014;
}

@property --text {
    syntax: "<color>";
    inherits: true;
    initial-value: #f4f2f8;
}

@property --muted {
    syntax: "<color>";
    inherits: true;
    initial-value: #a5a1b1;
}

@property --accent {
    syntax: "<color>";
    inherits: true;
    initial-value: #c2aff5;
}

@property --line {
    syntax: "<color>";
    inherits: true;
    initial-value: #ffffff14;
}

@property --surface {
    syntax: "<color>";
    inherits: true;
    initial-value: #18171e;
}

@property --surface-raised {
    syntax: "<color>";
    inherits: true;
    initial-value: #24212e;
}

@property --soft-text {
    syntax: "<color>";
    inherits: true;
    initial-value: #d4cfdf;
}

@property --link {
    syntax: "<color>";
    inherits: true;
    initial-value: #d2c1fc;
}

@property --shadow {
    syntax: "<color>";
    inherits: true;
    initial-value: #0008;
}

@property --glow {
    syntax: "<color>";
    inherits: true;
    initial-value: #8a5de02b;
}

@property --button-bg {
    syntax: "<color>";
    inherits: true;
    initial-value: #8860c4;
}

@property --button-text {
    syntax: "<color>";
    inherits: true;
    initial-value: #fff;
}

:root {
    color-scheme: dark;
    --bg: #101014;
    --text: #f4f2f8;
    --muted: #a5a1b1;
    --accent: #c2aff5;
    --line: #ffffff14;
    --surface: #18171e;
    --surface-raised: #24212e;
    --soft-text: #d4cfdf;
    --link: #d2c1fc;
    --shadow: #0008;
    --glow: #8a5de02b;
    /* 主按钮保持白字紫底，避免主题切换时文字与底色同时反转、短暂失去对比。 */
    --button-bg: #8860c4;
    --button-text: #fff;
    --columns: minmax(0, 5fr) minmax(0, 7fr);
    --ease: cubic-bezier(.22, 1, .36, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* 顶栏背景用 100vw 铺满视口，出现滚动条时会比可用宽度多出约 8px；裁掉而非产生横向滚动。 */
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #faf9fc;
    --text: #272330;
    --muted: #706979;
    --accent: #7854b8;
    --line: #32234019;
    --surface: #f0edf6;
    --surface-raised: #e8e1f2;
    --soft-text: #554c63;
    --link: #69469f;
    --shadow: #3923502b;
    --glow: #b598eb32;
    --button-bg: #7953b9;
    --button-text: #fff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    overflow-x: clip;
}

/* 极轻的颗粒噪点，避免大面积纯色显得平板；只做背景纹理，不参与交互。 */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

:root[data-theme="light"] body::before {
    opacity: .022;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--accent);
}

button {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

figure {
    margin: 0;
}

a, button, summary {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 5px;
}

::selection {
    background: #a484d855;
}

.wrap {
    width: min(1120px, calc(100% - 96px));
    margin-inline: auto;
}

/* 吸顶导航：背景铺满视口宽度，内容仍受 .wrap 约束。 */
.header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    height: 68px;
}

.header::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    font-size: 19px;
    font-weight: 650;
    letter-spacing: -.6px;
}

.brand img {
    border-radius: 9px;
}

.brand span {
    margin-left: -5px;
    font-weight: 400;
    color: var(--muted);
}

.header-actions {
    display: flex;
    gap: 18px;
    align-items: center;
}

.theme-toggle {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--soft-text);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.theme-toggle[hidden], .gallery-tabs[hidden] {
    display: none;
}

.theme-toggle:hover {
    background: var(--surface-raised);
    color: var(--accent);
}

.github-link {
    font-size: 13px;
}

.github-link span {
    margin-left: 5px;
    color: var(--muted);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 50px;
    padding: 14px 24px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: transform .2s;
}

.button:hover {
    transform: translateY(-2px);
}

.primary {
    background: var(--button-bg);
    color: var(--button-text);
    box-shadow: 0 4px 16px var(--glow), inset 0 1px 0 #ffffff20;
}

.primary:hover {
    background: var(--button-bg);
    color: var(--button-text);
    box-shadow: 0 6px 26px var(--glow);
}

.secondary {
    border-color: var(--line);
    color: var(--link);
    background: var(--surface);
}

.secondary:hover {
    background: var(--surface-raised);
}

/* 导航下载沿用主按钮配色，普通与悬停状态都保持文字对比。 */
.nav-download {
    min-height: 36px;
    padding: 9px 15px;
    font-size: 12px;
    background: var(--button-bg);
    color: var(--button-text);
}

.nav-download:hover {
    background: var(--button-bg);
    color: var(--button-text);
}

/* 首屏以中心标题与完整截图建立主次，光晕只属于截图背景。 */
.hero {
    position: relative;
    padding-block: 76px 0;
    text-align: center;
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0 0 20px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.8px;
    line-height: 1.8;
}

.hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 13px;
    margin-bottom: 26px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: var(--surface);
    font-size: 11px;
    letter-spacing: .7px;
}

.hero .eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--glow);
}

h1 {
    margin: 0;
    font-size: clamp(44px, 5.2vw, 72px);
    line-height: 1.22;
    font-weight: 650;
    letter-spacing: -2.8px;
}

.hero-line {
    display: block;
}

.hero-line + .hero-line {
    margin-top: 8px;
}

.accent {
    color: var(--accent);
}

.hero-description span {
    display: block;
}

.hero-description {
    margin: 26px auto 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.95;
    text-wrap: pretty;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}

.hero-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 17px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
}

.hero-meta li + li::before {
    content: '·';
    margin-right: 14px;
}

.hero-preview {
    position: relative;
    isolation: isolate;
    max-width: 1000px;
    margin: 54px auto 0;
    text-align: left;
}

.hero-preview::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -80px -40px 20px;
    background: radial-gradient(ellipse at 50% 55%, var(--glow), transparent 68%);
    pointer-events: none;
}

.preview-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 5px 14px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1.8px;
}

.preview-label span:last-child {
    letter-spacing: .6px;
}

.hero-preview img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 0 0 1px var(--line), 0 36px 70px -24px var(--shadow);
}

.hero-preview figcaption {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
}

.section {
    padding-block: 112px;
}

.section-heading {
    display: grid;
    grid-template-columns: var(--columns);
    align-items: end;
    gap: 64px;
    margin-bottom: 42px;
}

h2 {
    margin: 0;
    font-size: clamp(30px, 3.3vw, 42px);
    line-height: 1.45;
    font-weight: 600;
    letter-spacing: -1.5px;
}

.section-heading > p, .section-description {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 14px;
    line-height: 2;
}

.gallery-tabs {
    position: relative;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 5px;
    width: max-content;
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 26px;
    background: var(--surface);
}

/* 选中态由滑块承担，按钮本身只保留文字颜色，切换时给人连续滑动而非闪烁的感觉。 */
.tab-indicator {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 5px;
    width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-raised);
    pointer-events: none;
    transition: transform .38s var(--ease), width .38s var(--ease);
}

.gallery-tabs button {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    min-height: 42px;
    padding: 11px 20px;
    background: none;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--muted);
    font-size: 12px;
    cursor: pointer;
}

.gallery-tabs button:hover {
    color: var(--text);
}

.gallery-tabs button[aria-pressed=true] {
    color: var(--link);
}

.gallery-tabs button:focus-visible {
    outline-offset: -3px;
}

.gallery-stage {
    position: relative;
    aspect-ratio: 3 / 2;
    border-radius: 12px;
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line), 0 24px 56px -24px var(--shadow);
    overflow: hidden;
}

/* 两张截图叠放：新图淡入、旧图淡出，避免硬替换时的闪白。 */
.shot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity .5s var(--ease);
}

.shot.is-active {
    opacity: 1;
}

.gallery figcaption {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.9;
}

.gallery figcaption::before {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--accent);
    flex-shrink: 0;
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-top: 48px;
}

.feature-row article {
    border-top: 1px solid var(--line);
    padding-top: 24px;
}

.feature-icon {
    width: 24px;
    height: 24px;
    color: var(--accent);
    margin-bottom: 18px;
}

.feature-row h3 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
}

.feature-row p, .steps p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.95;
}

.sources-section {
    padding-block: 88px;
    background: var(--surface);
    border-block: 1px solid var(--line);
}

.sources-layout {
    display: grid;
    grid-template-columns: var(--columns);
    align-items: center;
    gap: 64px;
}

.sources-layout .section-description {
    margin-block: 24px;
}

.text-link {
    color: var(--link);
    font-size: 13px;
    line-height: 1.8;
}

.text-link span {
    margin-left: 8px;
}

.source-list article {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.source-list article:first-child {
    padding-top: 0;
}

.source-list article:last-child {
    border: 0;
    padding-bottom: 0;
}

.source-symbol {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--bg);
    color: var(--accent);
}

.source-symbol svg {
    width: 23px;
    height: 23px;
}

.source-list h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
}

.source-list p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.9;
}

.watch-section {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: center;
    gap: 56px;
    padding-block: 112px;
}

.watch-copy .section-description {
    margin-top: 24px;
    font-size: 13px;
}

.watch-note {
    margin-top: 24px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.9;
}

.watch-section figure {
    position: relative;
    isolation: isolate;
}

.watch-section figure::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -35px;
    background: radial-gradient(ellipse, var(--glow), transparent 70%);
}

.watch-section img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 24px 48px -16px var(--shadow);
}

#start {
    border-top: 1px solid var(--line);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps li {
    position: relative;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.steps li::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.steps li > span {
    color: var(--accent);
    font-size: 13px;
    font-family: ui-monospace, "SFMono-Regular", monospace;
}

.steps h3 {
    margin: 20px 0 12px;
    font-size: 17px;
    font-weight: 600;
}

.download-section {
    padding: 64px 48px 32px;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0, var(--glow), transparent 65%), var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
}

.download-heading > img {
    margin: 0 auto 24px;
    border-radius: 16px;
    box-shadow: 0 8px 32px var(--glow);
}

.download-heading .eyebrow {
    margin-bottom: 14px;
}

.download-heading > p:last-child {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

.download-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 760px;
    margin: 40px auto 28px;
    text-align: left;
}

.download-options article {
    position: relative;
    padding: 28px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 14px;
    transition: transform .25s var(--ease);
}

.platform-icon {
    position: absolute;
    right: 28px;
    top: 30px;
    width: 26px;
    height: 26px;
    color: var(--muted);
}

.download-options h3 {
    margin: 0;
    font-size: 23px;
    font-weight: 550;
    letter-spacing: -.7px;
}

.download-options p {
    margin: 8px 0 24px;
    color: var(--muted);
    font-size: 12px;
}

.download-options .button {
    width: 100%;
    font-size: 13px;
}

.download-options small {
    display: block;
    margin-top: 18px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.9;
}

.download-note {
    margin: 0;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    line-height: 2;
}

.faq {
    display: grid;
    grid-template-columns: var(--columns);
    gap: 0 64px;
    padding-block: 104px;
}

.faq > .eyebrow {
    grid-column: 1;
    align-self: start;
    margin-bottom: 12px;
}

.faq > h2 {
    grid-column: 1;
    grid-row: 2 / span 4;
    font-size: 30px;
}

.faq details {
    grid-column: 2;
    border-bottom: 1px solid var(--line);
}

.faq details:first-of-type {
    grid-row: 1 / span 2;
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    list-style: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.7;
}

.faq summary::-webkit-details-marker {
    display: none;
}

/* 图标用两条渐变线拼成，open 时旋转成 ×，这样开关都能平滑过渡（字符 content 无法过渡）。 */
.faq summary::after {
    content: '';
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    background: linear-gradient(var(--accent), var(--accent)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 1.5px 12px no-repeat;
    transition: transform .3s var(--ease);
}

.faq details[open] summary::after {
    transform: rotate(45deg);
}

/* 展开高度动画：interpolate-size 让 auto 可插值，content-visibility 用离散过渡延后隐藏，
   使收起时先收高度再消失，而不是瞬间塌陷。能力检测兜底，不支持时退回原生开合。 */
@supports (interpolate-size: allow-keywords) {
    .faq details {
        interpolate-size: allow-keywords;
    }

    .faq details::details-content {
        block-size: 0;
        overflow: hidden;
        transition: block-size .32s var(--ease), content-visibility .32s;
        transition-behavior: allow-discrete;
    }

    .faq details[open]::details-content {
        block-size: auto;
    }
}

.faq details p {
    margin: 0;
    padding-bottom: 22px;
    color: var(--muted);
    font-size: 13px;
    line-height: 2;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.faq details[open] p {
    opacity: 1;
    transform: none;
}

.faq details a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 48px;
    border-top: 1px solid var(--line);
    padding-block: 24px;
}

.footer > div > p {
    color: var(--muted);
    font-size: 11px;
    margin: 8px 0 0;
}

.footer-resources {
    text-align: right;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 24px;
    padding-top: 10px;
    color: var(--muted);
    font-size: 11px;
}

.credits {
    color: var(--muted);
    font-size: 11px;
    line-height: 2;
}

.credits a {
    color: var(--accent);
}

.skip-link {
    position: fixed;
    left: 20px;
    top: -100px;
    z-index: 10;
    padding: 14px;
    border-radius: 8px;
    background: var(--button-bg);
    color: var(--button-text);
}

.skip-link:focus {
    top: 15px;
}

/* ---- 动效与材质：只操作 transform / opacity，逐段呼应滚动节奏 ---- */
/* 无 JS 时内容始终可见；只有脚本接管后才隐藏待入场元素。 */
.has-js [data-reveal],
.has-js [data-reveal-group] > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    transition-delay: var(--d, 0ms);
}

.has-js [data-reveal].in,
.has-js [data-reveal-group].in > * {
    opacity: 1;
    transform: none;
}

.has-js [data-reveal-group] > *:nth-child(2) {
    transition-delay: 80ms;
}

.has-js [data-reveal-group] > *:nth-child(3) {
    transition-delay: 160ms;
}

.has-js [data-reveal-group] > *:nth-child(4) {
    transition-delay: 240ms;
}

/* 首屏按层级依次浮现：文案先行，截图随后。 */
.has-js .hero-copy > * {
    animation: rise .9s var(--ease) both;
}

.has-js .hero-copy > *:nth-child(2) {
    animation-delay: 60ms;
}

.has-js .hero-copy > *:nth-child(3) {
    animation-delay: 120ms;
}

.has-js .hero-copy > *:nth-child(4) {
    animation-delay: 180ms;
}

.has-js .hero-copy > *:nth-child(5) {
    animation-delay: 240ms;
}

.has-js .hero-preview {
    animation: rise 1s var(--ease) 220ms both;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* 首屏截图跟随指针做极小透视位移，由 main.js 写入 --rx / --ry。 */
.has-js .hero-preview img {
    transform: perspective(1600px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .5s var(--ease);
}

/* 媒体源条目悬停只用左侧竖线加标题变色：不铺底色，避免大面积染色，也不会有被元素边界裁断的边缘。 */
.source-list article {
    position: relative;
}

.source-list article::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    width: 2px;
    height: 54px;
    border-radius: 2px;
    background: var(--accent);
    opacity: 0;
    transform: translateY(-50%) scaleY(.35);
    transition: opacity .25s var(--ease), transform .25s var(--ease);
}

.source-list article:hover::before {
    opacity: 1;
    transform: translateY(-50%) scaleY(1);
}

.source-list article:hover h3 {
    color: var(--accent);
}

/* 下载卡片内部已有实心紫色按钮，再叠彩色光斑会糊；只做轻微抬升与描边变化。 */
.download-options article:hover {
    border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -24px var(--shadow);
}

@media (max-width: 900px) {
    .wrap {
        width: calc(100% - 64px);
    }

    .header {
        height: 64px;
        gap: 20px;
    }

    .header-actions {
        margin-left: auto;
    }

    .hero {
        padding-top: 60px;
    }

    .hero-preview {
        margin-top: 44px;
    }

    .hero-preview::before {
        inset-inline: -24px;
    }

    .section {
        padding-block: 80px;
    }

    .section-heading, .sources-layout, .watch-section {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .section-heading > p {
        margin: 0;
    }

    .sources-section {
        padding-block: 72px;
    }

    .source-list {
        margin-top: 8px;
    }

    .watch-section {
        padding-block: 80px;
        gap: 36px;
    }

    .watch-section figure::before {
        inset: -28px;
    }

    .watch-copy {
        max-width: 36em;
    }

    .feature-row, .steps {
        gap: 24px;
    }

    .download-section {
        padding-inline: 28px;
    }

    .download-options article {
        padding: 24px;
    }

    .platform-icon {
        right: 24px;
        top: 26px;
    }

    .faq {
        grid-template-columns: 1fr;
        padding-block: 80px;
    }

    .faq > .eyebrow, .faq > h2, .faq details, .faq details:first-of-type {
        grid-column: auto;
        grid-row: auto;
    }

    .faq > h2 {
        margin-bottom: 20px;
    }
}

@media (max-width: 600px) {
    :root {
        scroll-padding-top: 24px;
    }

    .wrap {
        width: calc(100% - 40px);
    }

    .header {
        height: 60px;
        gap: 12px;
    }

    .brand {
        font-size: 17px;
        gap: 8px;
    }

    .brand img {
        width: 29px;
        height: 29px;
    }

    .brand span {
        display: none;
    }

    .header-actions {
        gap: 8px;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
    }

    .hero {
        padding-top: 44px;
    }

    .eyebrow {
        font-size: 10px;
        margin-bottom: 14px;
        letter-spacing: 1.2px;
    }

    .hero .eyebrow {
        font-size: 10px;
        margin-bottom: 22px;
    }

    h1 {
        font-size: clamp(36px, 10vw, 54px);
        letter-spacing: -1.8px;
    }

    .hero-description {
        font-size: 12px;
        margin-top: 22px;
        max-width: 26em;
    }

    .actions {
        margin-top: 24px;
    }

    .hero-meta {
        font-size: 10px;
    }

    .hero-preview {
        margin-top: 38px;
    }

    .hero-preview::before {
        inset-inline: -15px;
    }

    .preview-label {
        font-size: 8px;
        letter-spacing: 1.1px;
    }

    .preview-label span:last-child {
        font-size: 9px;
    }

    .hero-preview img, .gallery-stage {
        border-radius: 6px;
    }

    .hero-preview figcaption {
        font-size: 9px;
        margin-top: 13px;
        gap: 10px;
    }

    .section {
        padding-block: 64px;
    }

    h2 {
        font-size: 29px;
        letter-spacing: -1px;
    }

    .section-heading {
        gap: 20px;
        margin-bottom: 24px;
    }

    .section-heading > p, .section-description {
        font-size: 13px;
    }

    .gallery-tabs {
        gap: 2px;
        margin-bottom: 20px;
    }

    .gallery-tabs button {
        font-size: 12px;
        padding-inline: 14px;
    }

    .gallery figcaption {
        font-size: 11px;
        margin-top: 16px;
        gap: 10px;
    }

    .feature-row {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 32px;
    }

    .feature-row article {
        position: relative;
        padding: 22px 0 0 42px;
    }

    .feature-icon {
        position: absolute;
        left: 0;
        top: 22px;
        width: 22px;
        height: 22px;
    }

    .feature-row h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .feature-row p, .steps p {
        font-size: 12px;
    }

    .sources-section {
        padding-block: 56px;
    }

    .source-list article {
        gap: 18px;
        padding-block: 22px;
    }

    .source-list article::before {
        left: -12px;
        height: 46px;
    }

    .source-list h3 {
        font-size: 16px;
    }

    .source-symbol {
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }

    .watch-section {
        padding-block: 64px;
    }

    .watch-section figure::before {
        inset: -18px;
    }

    .watch-note {
        font-size: 10px;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .steps h3 {
        display: inline-block;
        margin: 0 0 12px 16px;
        font-size: 16px;
    }

    .download-section {
        padding: 40px 20px 26px;
        border-radius: 18px;
    }

    .download-heading > img {
        width: 52px;
        height: 52px;
    }

    .download-heading h2 {
        font-size: 25px;
    }

    .download-heading > p:last-child {
        font-size: 12px;
    }

    .download-options {
        grid-template-columns: 1fr;
        margin-block: 28px;
        gap: 16px;
    }

    .download-options article {
        padding: 22px;
    }

    .download-note {
        font-size: 10px;
    }

    .faq {
        padding-block: 64px;
    }

    .faq > h2 {
        font-size: 27px;
    }

    .faq summary {
        font-size: 13px;
    }

    .faq details p {
        font-size: 12px;
    }

    .footer {
        justify-content: flex-start;
        gap: 12px 24px;
    }

    .footer-resources {
        width: 100%;
        text-align: left;
    }

    .footer-links {
        justify-content: flex-start;
        gap: 18px;
        font-size: 10px;
    }

    .credits {
        font-size: 10px;
    }
}

/* 主题颜色使用起止柔和的独立曲线，避免入场曲线的快速起步和过长收尾。 */
:root {
    transition-property: --bg, --text, --muted, --accent, --line, --surface, --surface-raised, --soft-text, --link, --shadow, --glow, --button-bg, --button-text;
    transition-duration: .3s;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
}

@media (prefers-reduced-motion: reduce) {
    :root {
        scroll-behavior: auto;
    }

    :root, *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }

    .has-js [data-reveal], .has-js [data-reveal-group] > * {
        opacity: 1;
        transform: none;
    }

    .has-js .hero-preview img {
        transform: none;
    }

    .download-options article:hover {
        transform: none;
    }
}
