:root {
    --display-font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --body-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
    --mono-font: "JetBrains Mono", "SF Mono", "Fira Code", Menlo, Consolas, monospace;

    /* 浅色模式配色 (Brand Slate Evolution) */
    --lp-bg: #fbfbfa;
    --lp-bg-subtle: #F3F5F8;
    --lp-panel: #ffffff;
    --lp-panel-solid: #ffffff;
    --lp-line: rgba(15, 23, 42, 0.075);
    --lp-line-strong: rgba(15, 23, 42, 0.14);
    --lp-ink: #0F172A;
    --lp-muted: #475569;
    --lp-soft: #64748B;
    --lp-accent: #0070f3;
    --lp-accent-strong: #0060df;
    --lp-accent-grad: linear-gradient(180deg, #1b82ff 0%, #0070f3 100%);
    --lp-accent-grad-hover: linear-gradient(180deg, #0e76f5 0%, #005ed4 100%);
    --lp-accent-soft: rgba(0, 112, 243, 0.08);
    --lp-accent-glow: rgba(0, 112, 243, 0.16);
    --lp-mint: #10b981;
    --lp-mint-soft: rgba(16, 185, 129, 0.10);
    --lp-amber: #d97706;
    --lp-amber-soft: rgba(217, 119, 6, 0.10);
    --lp-purple: #8b5cf6;
    --lp-purple-soft: rgba(139, 92, 246, 0.10);

    --lp-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.03), 0 8px 20px -10px rgba(15, 23, 42, 0.06);
    --lp-shadow: 0 4px 12px rgba(15, 23, 42, 0.04), 0 14px 28px -12px rgba(15, 23, 42, 0.09);
    --lp-shadow-lg: 0 20px 50px -18px rgba(15, 23, 42, 0.12), 0 1px 3px rgba(15, 23, 42, 0.04);
    --lp-btn-primary-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 1px 2px rgba(0, 78, 175, 0.28);
    --lp-radius-sm: 8px;
    --lp-radius-md: 14px;
    --lp-radius-lg: 16px;
}

[data-theme="dark"] {
    --lp-bg: #090a0f;
    --lp-bg-subtle: #141720;
    --lp-panel: #0F1218;
    --lp-panel-solid: #0F1218;
    --lp-line: rgba(255, 255, 255, 0.08);
    --lp-line-strong: rgba(255, 255, 255, 0.15);
    --lp-ink: #F8FAFC;
    --lp-muted: #94A3B8;
    --lp-soft: #758295;
    --lp-accent: #3291ff;
    --lp-accent-strong: #1e7ff5;
    --lp-accent-grad: linear-gradient(180deg, #4ba0ff 0%, #3291ff 100%);
    --lp-accent-grad-hover: linear-gradient(180deg, #3c95fc 0%, #1c7ef2 100%);
    --lp-accent-soft: rgba(50, 145, 255, 0.13);
    --lp-accent-glow: rgba(50, 145, 255, 0.22);
    --lp-mint: #34d399;
    --lp-mint-soft: rgba(52, 211, 153, 0.12);
    --lp-amber: #fbbf24;
    --lp-amber-soft: rgba(251, 191, 36, 0.12);
    --lp-purple: #a78bfa;
    --lp-purple-soft: rgba(167, 139, 250, 0.12);

    --lp-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    --lp-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    --lp-shadow-lg: 0 28px 64px -20px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    --lp-btn-primary-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 1px 3px rgba(0, 0, 0, 0.45);
}

@media (prefers-color-scheme: dark) {
    :is([data-theme="auto"]) {
        --lp-bg: #090a0f;
        --lp-bg-subtle: #141720;
        --lp-panel: #0F1218;
        --lp-panel-solid: #0F1218;
        --lp-line: rgba(255, 255, 255, 0.08);
        --lp-line-strong: rgba(255, 255, 255, 0.15);
        --lp-ink: #F8FAFC;
        --lp-muted: #94A3B8;
        --lp-soft: #758295;
        --lp-accent: #3291ff;
        --lp-accent-strong: #1e7ff5;
        --lp-accent-grad: linear-gradient(180deg, #4ba0ff 0%, #3291ff 100%);
        --lp-accent-grad-hover: linear-gradient(180deg, #3c95fc 0%, #1c7ef2 100%);
        --lp-accent-soft: rgba(50, 145, 255, 0.13);
        --lp-accent-glow: rgba(50, 145, 255, 0.22);
        --lp-mint: #34d399;
        --lp-mint-soft: rgba(52, 211, 153, 0.12);
        --lp-amber: #fbbf24;
        --lp-amber-soft: rgba(251, 191, 36, 0.12);
        --lp-purple: #a78bfa;
        --lp-purple-soft: rgba(167, 139, 250, 0.12);

        --lp-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
        --lp-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.07);
        --lp-shadow-lg: 0 28px 64px -20px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.07);
        --lp-btn-primary-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 1px 3px rgba(0, 0, 0, 0.45);
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    overflow-x: hidden;
    overflow-x: clip;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--lp-ink);
    background-color: var(--lp-bg);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
}

/* 顶部超淡空气感流光底座 (移除 48px 草稿方格) */
.ambient-glow-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    max-width: 100%;
    height: 320px;
    background: radial-gradient(ellipse 65% 220px at 50% 0%, rgba(0, 112, 243, 0.055), transparent 72%);
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] .ambient-glow-top {
    background: radial-gradient(ellipse 65% 220px at 50% 0%, rgba(50, 145, 255, 0.08), transparent 72%);
}

@media (prefers-color-scheme: dark) {
    :is([data-theme="auto"]) .ambient-glow-top {
        background: radial-gradient(ellipse 65% 220px at 50% 0%, rgba(50, 145, 255, 0.08), transparent 72%);
    }
}

.page-shell {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 按钮通用规范 (统一 8px 圆角 + 主按钮顶缘微高光) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 36px;
    padding: 0 14px;
    border-radius: var(--lp-radius-sm);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
    font-family: var(--body-font);
}

.btn-primary {
    background: var(--lp-accent-grad);
    color: #ffffff !important;
    box-shadow: var(--lp-btn-primary-shadow);
}

.btn-primary:hover {
    background: var(--lp-accent-grad-hover);
    transform: translateY(-1px);
    box-shadow: var(--lp-btn-primary-shadow), 0 4px 12px var(--lp-accent-soft);
}

.btn-secondary {
    background: var(--lp-panel-solid);
    color: var(--lp-ink) !important;
    border-color: var(--lp-line-strong);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.btn-secondary:hover {
    border-color: var(--lp-accent);
    color: var(--lp-accent) !important;
    transform: translateY(-1px);
}

.btn-sm {
    height: 30px;
    padding: 0 12px;
    font-size: 12px;
}

.btn-lg {
    height: 44px;
    padding: 0 22px;
    font-size: 14.5px;
    border-radius: var(--lp-radius-sm);
}

/* 核心版心 */
.section-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
    position: relative;
    z-index: 10;
    width: 100%;
}

/* 1. Hero 区域 */
.hero {
    padding-top: 60px;
    padding-bottom: 70px;
    text-align: center;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--lp-panel);
    border: 1px solid var(--lp-line);
    box-shadow: var(--lp-shadow-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--lp-accent);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lp-mint);
    box-shadow: 0 0 0 3px var(--lp-mint-soft);
}

.hero-title {
    font-size: clamp(34px, 4.8vw, 54px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.032em;
    margin-bottom: 18px;
    color: var(--lp-ink);
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
}

.hero-title-sub {
    display: block;
    color: var(--lp-muted);
    font-weight: 650;
}

.hero-title-gradient {
    color: var(--lp-muted);
    font-weight: 650;
}

.hero-desc {
    max-width: 620px;
    margin: 0 auto 32px;
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--lp-muted);
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.hero-stats-bar {
    display: inline-flex;
    align-items: center;
    gap: 32px;
    padding: 12px 28px;
    background: var(--lp-panel);
    border: 1px solid var(--lp-line);
    border-radius: 999px;
    box-shadow: var(--lp-shadow-sm);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero-stat-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 13px;
    color: var(--lp-soft);
}

.hero-stat-item strong {
    font-family: var(--mono-font);
    font-size: 17px;
    color: var(--lp-ink);
    font-weight: 700;
    font-feature-settings: "tnum";
}

/* 重点亮点：Hero 产品视窗 (Interactive Showcase) */
.hero-window-wrapper {
    margin-top: 56px;
    position: relative;
    perspective: 1000px;
}

.hero-window-glow {
    position: absolute;
    inset: 20px 40px;
    background: radial-gradient(circle, var(--lp-accent-glow) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
    opacity: 0.6;
    pointer-events: none;
}

.hero-window {
    position: relative;
    z-index: 1;
    background: var(--lp-panel);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--lp-line-strong);
    border-radius: var(--lp-radius-lg);
    box-shadow: var(--lp-shadow-lg);
    overflow: hidden;
    text-align: left;
}

.window-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--lp-bg-subtle);
    border-bottom: 1px solid var(--lp-line);
    gap: 12px;
}

.window-file {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--mono-font);
    font-size: 12px;
    font-weight: 600;
    color: var(--lp-ink);
    white-space: nowrap;
}

.window-address {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--lp-panel-solid);
    padding: 4px 14px;
    border-radius: 6px;
    font-family: var(--mono-font);
    font-size: 11px;
    color: var(--lp-muted);
    border: 1px solid var(--lp-line);
    overflow: hidden;
    min-width: 0;
    flex: 1;
}

#hero-window-url {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.window-tabs {
    display: flex;
    gap: 4px;
}

.window-tab {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--lp-soft);
    cursor: pointer;
    border: none;
    background: transparent;
    font-family: var(--mono-font);
    transition: all 0.2s;
}

.window-tab.active {
    background: var(--lp-accent);
    color: #fff;
}

.window-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    min-height: 380px;
    background: var(--lp-panel-solid);
}

.window-pane-code {
    padding: 24px;
    background: var(--lp-bg-subtle);
    border-right: 1px solid var(--lp-line);
    font-family: var(--mono-font);
    font-size: 13px;
    line-height: 1.7;
    color: var(--lp-muted);
    overflow-x: auto;
}

.code-line {
    display: flex;
    gap: 16px;
}

.code-num {
    color: var(--lp-soft);
    user-select: none;
    width: 20px;
    text-align: right;
    flex-shrink: 0;
}

.code-text {
    color: var(--lp-ink);
    word-break: break-all;
}

.code-keyword { color: #d73a49; }
.code-string { color: #032f62; }
.code-tag { color: #22863a; }
[data-theme="dark"] .code-keyword { color: #ff7b72; }
[data-theme="dark"] .code-string { color: #a5d6ff; }
[data-theme="dark"] .code-tag { color: #7ee787; }
@media (prefers-color-scheme: dark) {
    :is([data-theme="auto"]) .code-keyword { color: #ff7b72; }
    :is([data-theme="auto"]) .code-string { color: #a5d6ff; }
    :is([data-theme="auto"]) .code-tag { color: #7ee787; }
}

.window-pane-preview {
    padding: 28px;
    background: var(--lp-panel-solid);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.preview-content {
    border-left: 3px solid var(--lp-accent);
    padding-left: 18px;
    margin-bottom: 24px;
}

.preview-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--lp-ink);
}

.preview-p {
    font-size: 14px;
    color: var(--lp-muted);
    line-height: 1.65;
}

.preview-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid var(--lp-line);
}

.preview-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--lp-mint);
}

.preview-btn-copy {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    background: var(--lp-bg-subtle);
    border: 1px solid var(--lp-line);
    color: var(--lp-ink);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.preview-btn-copy:hover {
    border-color: var(--lp-accent);
    color: var(--lp-accent);
}

/* 标题区通用 */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 52px;
}

.section-kicker {
    font-family: var(--mono-font);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--lp-accent);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
    color: var(--lp-ink);
}

.section-subtitle {
    font-size: 16px;
    color: var(--lp-muted);
    line-height: 1.65;
}

/* 2. 格式卡片 (收敛为核心三段式，带有 1.8px 极细抽象几何矢量图腾与微预览) */
.formats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    min-width: 0;
}

.format-card {
    background: var(--lp-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius-md);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    box-sizing: border-box;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.format-card:hover {
    transform: translateY(-3px);
    border-color: var(--lp-line-strong);
    box-shadow: var(--lp-shadow);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.card-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lp-bg-subtle);
    border: 1px solid var(--lp-line);
    color: var(--lp-accent);
}

.card-type-tag {
    font-family: var(--mono-font);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--lp-soft);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--lp-ink);
}

.card-desc {
    font-size: 14px;
    color: var(--lp-muted);
    line-height: 1.65;
    margin-bottom: 24px;
}

/* 精致微预览切片 */
.card-preview-shell {
    background: var(--lp-bg-subtle);
    border: 1px solid var(--lp-line);
    border-radius: 10px;
    padding: 13px 14px;
    min-height: 86px;
    font-family: var(--mono-font);
    font-size: 11.5px;
    color: var(--lp-muted);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
}

.slice-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    color: var(--lp-soft);
}

.slice-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 7px;
    border-radius: 5px;
    background: var(--lp-panel-solid);
    border: 1px solid var(--lp-line);
    color: var(--lp-ink);
    font-weight: 600;
    font-size: 10.5px;
}

.slice-skeleton {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.slice-line {
    height: 6px;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.11);
}

[data-theme="dark"] .slice-line {
    background: rgba(248, 250, 252, 0.13);
}

@media (prefers-color-scheme: dark) {
    :is([data-theme="auto"]) .slice-line {
        background: rgba(248, 250, 252, 0.13);
    }
}

/* 3. 核心特性 6 块 Bento 矩阵 (2 列 x 3 行，完美整除对称网格) */
.features-bento {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    min-width: 0;
}

.bento-item {
    background: var(--lp-panel);
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    box-sizing: border-box;
    box-shadow: var(--lp-shadow-sm);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.bento-item:hover {
    transform: translateY(-2px);
    border-color: var(--lp-line-strong);
    box-shadow: var(--lp-shadow);
}

.bento-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
}

.bento-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--lp-accent-soft);
    color: var(--lp-accent);
    border: 1px solid rgba(0, 112, 243, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bento-foot {
    padding: 9px 12px;
    border-radius: 9px;
    background: var(--lp-bg-subtle);
    border: 1px solid var(--lp-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-family: var(--mono-font);
    font-size: 11.5px;
    color: var(--lp-muted);
}

.bento-pill-mint {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--lp-mint-soft);
    color: var(--lp-mint);
    font-weight: 600;
    font-size: 11px;
}

.bento-content h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--lp-ink);
}

.bento-content p {
    font-size: 14px;
    color: var(--lp-muted);
    line-height: 1.6;
}

/* 4. AI 辅助生成体验舱 */
.ai-studio {
    background: var(--lp-panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--lp-line-strong);
    border-radius: var(--lp-radius-lg);
    padding: 36px;
    box-shadow: var(--lp-shadow);
}

.window-body > *,
.ai-studio-grid > * {
    min-width: 0;
}

.ai-studio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

.ai-input-box {
    background: var(--lp-bg-subtle);
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
}

.ai-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ai-select {
    appearance: none;
    -webkit-appearance: none;
    height: 34px;
    padding: 0 32px 0 12px;
    background-color: var(--lp-panel-solid);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 13px 13px;
    border: 1px solid var(--lp-line-strong);
    color: var(--lp-ink);
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    outline: none;
    cursor: pointer;
    font-family: var(--body-font);
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

[data-theme="dark"] .ai-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

@media (prefers-color-scheme: dark) {
    :is([data-theme="auto"]) .ai-select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }
}

.ai-select:hover {
    border-color: rgba(15, 23, 42, 0.24);
}

[data-theme="dark"] .ai-select:hover {
    border-color: rgba(255, 255, 255, 0.26);
}

.ai-select:focus-visible {
    outline: none;
    border-color: var(--lp-accent);
    box-shadow: 0 0 0 3px var(--lp-accent-soft);
}

@supports (appearance: base-select) {
    .ai-select,
    .ai-select::picker(select) {
        appearance: base-select;
    }

    .ai-select,
    [data-theme="dark"] .ai-select,
    :is([data-theme="auto"]) .ai-select {
        background-image: none;
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        padding: 0 10px 0 12px;
        white-space: nowrap;
    }

    .ai-select::picker-icon {
        content: "";
        width: 13px;
        height: 13px;
        flex-shrink: 0;
        background-color: var(--lp-soft);
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
        transition: transform 0.18s ease, background-color 0.15s ease;
    }

    .ai-select:hover::picker-icon {
        background-color: var(--lp-ink);
    }

    .ai-select:open::picker-icon {
        transform: rotate(180deg);
        background-color: var(--lp-accent);
    }

    .ai-select::picker(select) {
        margin-top: 6px;
        padding: 4px;
        border-radius: 10px;
        border: 1px solid var(--lp-line-strong);
        background: var(--lp-panel-solid);
        color: var(--lp-ink);
        box-shadow: var(--lp-shadow-lg);
        min-width: anchor-size(width);
    }

    .ai-select option {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 7px 10px;
        border-radius: 6px;
        font-size: 12.5px;
        font-weight: 500;
        color: var(--lp-ink);
        cursor: pointer;
    }

    .ai-select option:hover,
    .ai-select option:focus-visible {
        background: var(--lp-bg-subtle);
        outline: none;
    }

    .ai-select option:checked {
        background: var(--lp-accent-soft);
        color: var(--lp-accent);
        font-weight: 600;
    }

    .ai-select option::checkmark {
        content: "";
        width: 12px;
        height: 12px;
        order: 2;
        margin-left: auto;
        background-color: var(--lp-accent);
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
    }
}

.ai-textarea {
    width: 100%;
    height: 96px;
    background: transparent;
    border: none;
    resize: none;
    outline: none;
    font-family: var(--body-font);
    font-size: 14px;
    color: var(--lp-ink);
    line-height: 1.6;
    box-sizing: border-box;
}

.ai-input-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--lp-line);
    padding-top: 12px;
    gap: 10px;
    flex-wrap: wrap;
}

.ai-presets {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ai-preset-tag {
    font-family: inherit;
    line-height: 1.4;
    font-size: 11px;
    background: var(--lp-panel-solid);
    border: 1px solid var(--lp-line);
    color: var(--lp-muted);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.ai-preset-tag:hover {
    color: var(--lp-accent);
    border-color: var(--lp-accent);
}

.ai-preview-terminal {
    background: var(--lp-bg-subtle);
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius-md);
    padding: 20px;
    font-family: var(--mono-font);
    font-size: 12px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--lp-soft);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--lp-line);
}

.terminal-body {
    color: var(--lp-ink);
    line-height: 1.7;
    padding: 14px 0;
    white-space: pre-wrap;
    flex: 1;
    max-height: 260px;
    overflow-y: auto;
    word-break: break-word;
}

.terminal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--lp-mint);
    font-size: 11px;
    font-weight: 600;
    padding-top: 10px;
    border-top: 1px solid var(--lp-line);
}

/* 5. 价格方案 Pricing (高低差与推荐视觉锚定) */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

.pricing-card {
    background: var(--lp-panel);
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius-md);
    padding: 26px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    min-width: 0;
    box-sizing: border-box;
    box-shadow: var(--lp-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--lp-shadow);
}

.pricing-card.recommended {
    border: 1.5px solid var(--lp-accent);
    background: var(--lp-panel);
    box-shadow: 0 12px 30px -12px rgba(0, 112, 243, 0.24), var(--lp-shadow-sm);
}

.pricing-recommended-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--lp-accent);
    color: #fff;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.pricing-head-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--lp-ink);
}

.pricing-price-box {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 6px;
}

.pricing-currency {
    font-size: 18px;
    font-weight: 600;
    color: var(--lp-ink);
}

.pricing-amount {
    font-family: var(--display-font);
    font-size: 38px;
    font-weight: 800;
    color: var(--lp-ink);
    font-feature-settings: "tnum";
    line-height: 1;
}

.pricing-unit {
    font-size: 13px;
    color: var(--lp-soft);
}

.pricing-annual-tag {
    font-size: 11px;
    color: var(--lp-soft);
    margin-bottom: 18px;
    font-weight: 500;
}

.pricing-desc {
    font-size: 13px;
    color: var(--lp-muted);
    line-height: 1.5;
    min-height: 40px;
    margin-bottom: 20px;
}

.pricing-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--lp-line);
    padding-left: 0;
}

.pricing-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--lp-muted);
}

.pricing-feature-item svg {
    width: 14px;
    height: 14px;
    color: var(--lp-accent);
    flex-shrink: 0;
}

/* 6. 常见问题 FAQ (2 列手风琴卡片) */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    min-width: 0;
    align-items: start;
}

.faq-card {
    background: var(--lp-panel);
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius-md);
    padding: 0 22px;
    min-width: 0;
    box-sizing: border-box;
    box-shadow: var(--lp-shadow-sm);
    transition: border-color 0.2s ease;
}

.faq-card:hover {
    border-color: var(--lp-line-strong);
}

.faq-q {
    list-style: none;
    font-size: 14.5px;
    font-weight: 650;
    color: var(--lp-ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 0;
    cursor: pointer;
    user-select: none;
}

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

.faq-q-text {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.faq-q-num {
    font-family: var(--mono-font);
    font-size: 12px;
    color: var(--lp-accent);
    font-weight: 700;
    font-feature-settings: "tnum";
}

.faq-plus {
    width: 18px;
    height: 18px;
    color: var(--lp-accent);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.faq-card[open] .faq-plus {
    transform: rotate(45deg);
}

.faq-a {
    padding: 0 0 18px;
    font-size: 13.5px;
    color: var(--lp-muted);
    line-height: 1.68;
}

/* 7. 底部 CTA (深蓝靛节奏断裂带) */
.cta-box {
    background: radial-gradient(640px 220px at 50% 0%, rgba(59, 130, 246, 0.28), transparent 72%), linear-gradient(145deg, #0F172A 0%, #172554 55%, #1E3A8A 100%);
    border: 1px solid rgba(147, 197, 253, 0.22);
    border-radius: var(--lp-radius-lg);
    padding: 50px 36px;
    text-align: center;
    box-shadow: 0 22px 48px -20px rgba(15, 23, 42, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    color: #F8FAFC;
}

[data-theme="dark"] .cta-box {
    background: radial-gradient(640px 220px at 50% 0%, rgba(59, 130, 246, 0.22), transparent 72%), linear-gradient(145deg, #0F172A 0%, #111C38 100%);
    border-color: rgba(96, 165, 250, 0.25);
    box-shadow: 0 24px 52px -22px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@media (prefers-color-scheme: dark) {
    :is([data-theme="auto"]) .cta-box {
        background: radial-gradient(640px 220px at 50% 0%, rgba(59, 130, 246, 0.22), transparent 72%), linear-gradient(145deg, #0F172A 0%, #111C38 100%);
        border-color: rgba(96, 165, 250, 0.25);
        box-shadow: 0 24px 52px -22px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
}

.cta-title {
    font-size: clamp(24px, 3.1vw, 34px);
    font-weight: 800;
    margin-bottom: 12px;
    color: #FFFFFF;
    text-wrap: balance;
}

.cta-desc {
    font-size: 15.5px;
    color: #CBD5E1;
    max-width: 560px;
    margin: 0 auto 26px;
}

.cta-box .btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #FFFFFF !important;
    box-shadow: none !important;
}

.cta-box .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.34) !important;
    color: #FFFFFF !important;
}

/* 动画过渡与可见性 */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式断点 */
@media (max-width: 1080px) {
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .formats-grid, .features-bento, .ai-studio-grid, .faq-grid {
        grid-template-columns: 1fr;
    }
    .window-body {
        grid-template-columns: 1fr;
    }
    .hero-stats-bar {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        max-width: 460px;
        padding: 12px 6px;
        gap: 0;
        border-radius: var(--lp-radius-md);
    }
    .hero-stat-item {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        text-align: center;
        font-size: 11px;
        padding: 2px 6px;
    }
    .hero-stats-bar > :not(.hero-stat-item) {
        display: none;
    }
    .hero-stats-bar .hero-stat-item ~ .hero-stat-item {
        border-left: 1px solid var(--lp-line);
    }
    .hero-stat-item strong {
        order: -1;
        font-size: 17px;
        line-height: 1.15;
    }
}

@media (max-width: 640px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .section-wrap {
        padding: 36px 16px;
    }
    .section-header {
        margin-bottom: 24px;
    }
    .section-title {
        font-size: clamp(1.45rem, 6.2vw, 1.85rem);
        text-wrap: balance;
    }
    .section-subtitle {
        font-size: 14px;
        text-wrap: pretty;
    }
    .hero {
        padding-top: 26px;
        padding-bottom: 28px;
    }
    .hero-title {
        font-size: clamp(1.75rem, 7.6vw, 2.25rem);
        line-height: 1.18;
        text-wrap: balance;
        margin-bottom: 14px;
    }
    .hero-desc {
        font-size: 14.5px;
        line-height: 1.65;
        margin-bottom: 22px;
        text-wrap: pretty;
    }
    .hero-cta-group {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
        margin-bottom: 22px;
    }
    .hero-cta-group .btn {
        flex: 1 1 140px;
        min-height: 44px;
        padding: 0 12px;
        font-size: 13.5px;
        white-space: nowrap;
        justify-content: center;
    }
    .hero-window-wrapper {
        margin-top: 26px;
    }
    .hero-window .window-topbar {
        padding: 10px 12px;
        gap: 8px;
        flex-wrap: nowrap;
    }
    .hero-window .window-address {
        display: none;
    }
    .window-body {
        min-height: auto;
    }
    .window-pane-code {
        padding: 14px;
        font-size: 12px;
        max-height: 230px;
    }
    .window-pane-preview {
        padding: 16px;
    }
    .preview-title {
        font-size: 17px;
    }
    .preview-content {
        margin-bottom: 16px;
    }
    .format-card,
    .bento-item {
        padding: 18px 16px;
    }
    .pricing-card {
        padding: 20px 16px;
    }
    .pricing-amount {
        font-size: 32px;
    }
    .pricing-desc {
        min-height: auto;
        margin-bottom: 14px;
    }
    .pricing-features-list {
        gap: 8px;
        margin-bottom: 18px;
        padding-top: 14px;
    }
    .ai-studio {
        padding: 18px 14px;
    }
    .ai-studio-grid {
        gap: 16px;
    }
    .ai-input-box {
        padding: 14px;
    }
    .ai-toolbar {
        display: grid;
        grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
        gap: 8px;
    }
    .ai-select {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: 36px;
        padding: 0 8px 0 10px;
        gap: 4px;
        font-size: 12px;
        overflow: hidden;
    }
    .ai-presets {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        width: 100%;
        padding-bottom: 2px;
    }
    .ai-presets::-webkit-scrollbar {
        display: none;
    }
    .ai-preset-tag {
        flex-shrink: 0;
        white-space: nowrap;
    }
    .ai-input-bottom .btn {
        width: 100%;
        min-height: 40px;
        justify-content: center;
    }
    .terminal-header,
    .terminal-footer {
        flex-wrap: wrap;
        gap: 8px;
    }
    .faq-card {
        padding: 0 16px;
    }
    .faq-q {
        padding: 14px 0;
        font-size: 14px;
    }
    .cta-box {
        padding: 30px 18px;
    }
}

.skip-link {
    position: fixed;
    top: -64px;
    left: 16px;
    z-index: 99999;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--lp-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--lp-shadow);
    transition: top 0.16s ease;
}

.skip-link:focus {
    top: 14px;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
