/* 主页样式 */

/* ==================== 第一屏：Hero区域 ==================== */
.hero-section {
    position: relative;
    height: calc(100vh - 65px - 35px);
    height: calc(100dvh - 65px - 35px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: rgb(var(--hero-bg-rgb));
}

/* Canvas 事件脉冲网络背景 */
.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-y;
}

/* 内容层：允许点击穿透到 Canvas */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
    pointer-events: none;
    animation: heroFadeIn 1s ease-out;
}

.hero-content a,
.hero-content button,
.hero-content .btn {
    pointer-events: auto;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Logo */
.hero-logo {
    margin-bottom: 1.5rem;
}

.logo-img {
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 0 24px rgba(var(--hero-accent-rgb), 0.4));
    animation: logoBreath 4s ease-in-out infinite;
}

@keyframes logoBreath {
    0%, 100% { transform: scale(1); opacity: 0.92; }
    50%      { transform: scale(1.04); opacity: 1; }
}

.hero-title {
    font-size: 4.2rem;
    font-weight: 200;
    letter-spacing: 0.04em;
    color: rgba(var(--hero-text-rgb), var(--hero-text-a));
    margin-bottom: 0.8rem;
    animation: heroFadeIn 1s ease-out 0.15s backwards;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(var(--hero-text-rgb), var(--hero-subtext-a));
    margin-bottom: 2.2rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    animation: heroFadeIn 1s ease-out 0.3s backwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    position: relative;
    animation: heroFadeIn 1s ease-out 0.45s backwards;
}

.hero-start-btn {
    padding: 0.85rem 2.4rem;
    font-size: 1rem;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(var(--hero-primary-rgb), 0.88);
    border: none;
    color: white;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-start-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(var(--hero-primary-rgb), 0.3);
}

.hero-start-btn.hiding {
    opacity: 0;
    transform: scale(0.85);
    pointer-events: none;
}

.hero-start-btn.hidden {
    display: none;
}

.hero-actions-expanded {
    display: flex;
    gap: 1rem;
    justify-content: center;
    position: absolute;
    left: 50%;
    white-space: nowrap;
    transform: translateX(-50%) translateY(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s 0.5s;
}

.hero-actions-expanded.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
                visibility 0s 0s;
}

.hero-actions-expanded .btn {
    padding: 0.8rem 1.6rem;
    font-size: 0.92rem;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(12px);
    transition: background 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease,
                transform 0.3s ease,
                opacity 0s 0.5s;
}

.hero-actions-expanded.visible .btn {
    opacity: 1;
    transform: translateY(0);
}

.hero-actions-expanded.visible .btn:nth-child(1) {
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.08s,
                transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.08s,
                background 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

.hero-actions-expanded.visible .btn:nth-child(2) {
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.16s,
                transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.16s,
                background 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

.hero-actions-expanded.visible .btn:nth-child(3) {
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.24s,
                transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.24s,
                background 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

.hero-btn-ghost {
    background: rgba(var(--hero-text-rgb), 0.04);
    border: 1.5px solid rgba(var(--hero-text-rgb), 0.12);
    color: rgba(var(--hero-text-rgb), 0.75);
    box-shadow: none;
}

.hero-btn-ghost:hover {
    background: rgba(var(--hero-text-rgb), 0.08);
    border-color: rgba(var(--hero-text-rgb), 0.2);
    color: rgba(var(--hero-text-rgb), 0.9);
    transform: translateY(-1px);
}

.hero-btn-install {
    background: rgba(var(--hero-primary-rgb), 0.88);
    border: 1.5px solid transparent;
    color: white;
    box-shadow: 0 2px 12px rgba(var(--hero-primary-rgb), 0.2);
}

.hero-btn-install:hover {
    background: rgba(var(--hero-primary-rgb), 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(var(--hero-primary-rgb), 0.3);
}

/* 交互提示 */
.scroll-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(var(--hero-text-rgb), 0.25);
    font-size: 1.2rem;
    animation: scrollBounce 2.5s ease-in-out infinite;
    z-index: 2;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.35; }
    50%      { transform: translateX(-50%) translateY(8px); opacity: 0.6; }
}

/* ==================== Install Overlay ==================== */
.hero-install-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s 0.4s;
}

.hero-install-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s 0s;
}

.hero-install-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(var(--dark-bg-rgb), 0.32);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.hero-install-panel {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem 2.8rem;
    max-width: 600px;
    width: 92%;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(var(--border-rgb), 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transform: scale(0.92) translateY(12px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-install-overlay.active .hero-install-panel {
    transform: scale(1) translateY(0);
}

.install-overlay-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(var(--border-rgb), 0.3);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.install-overlay-close:hover {
    background: rgba(var(--border-rgb), 0.6);
    color: var(--text);
}

.install-overlay-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.install-overlay-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 1.6rem;
    line-height: 1.5;
}

.install-platform-tabs {
    display: flex;
    background: rgba(var(--border-rgb), 0.25);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 1.2rem;
}

.install-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.install-tab:hover {
    color: var(--text);
}

.install-tab.active {
    background: var(--card-bg);
    color: var(--text);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 0 0 0.5px rgba(var(--border-rgb), 0.5);
}

.install-tab i {
    font-size: 0.92rem;
}

.install-code-block {
    display: flex;
    align-items: center;
    background: rgba(var(--dark-bg-rgb), 0.04);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.9rem 1.1rem;
    gap: 0.6rem;
    margin-bottom: 1rem;
    transition: border-color 0.25s ease;
}

.install-code-block:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
}

[data-theme="dark"] .install-code-block {
    background: rgba(0, 0, 0, 0.2);
}

.install-code-prefix {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.82rem;
    color: var(--text-secondary);
    opacity: 0.6;
    flex-shrink: 0;
    user-select: none;
}

.install-code-text {
    flex: 1;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.82rem;
    color: var(--primary);
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.install-copy-btn {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(var(--card-bg-rgb), 0.6);
    color: var(--text-secondary);
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.install-copy-btn:hover {
    background: var(--card-bg);
    color: var(--primary);
    border-color: rgba(var(--primary-rgb), 0.3);
}

.install-copy-btn.copied {
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.06);
}

.install-hint {
    font-size: 0.82rem;
    color: var(--text-secondary);
    opacity: 0.7;
    text-align: center;
}

/* ==================== AI Vibe Coding 提示条 ==================== */
.ai-vibe-banner {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.06), rgba(var(--primary-rgb), 0.02));
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
    padding: 0.55rem 1.5rem;
    text-align: center;
}

.ai-vibe-banner-content {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
    justify-content: center;
}

.ai-vibe-banner-content > i {
    color: var(--primary);
    font-size: 0.95rem;
}

.ai-vibe-link {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.75rem;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.ai-vibe-link:hover {
    background: var(--primary);
    color: var(--text-light);
}

.ai-vibe-banner-content .banner-text-wrapper {
    display: inline-block;
    position: relative;
    overflow: hidden;
    vertical-align: middle;
    min-width: 200px;
}

.ai-vibe-banner-content .banner-text-inner {
    display: inline-block;
    transition: opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.ai-vibe-banner-content .banner-text-inner.fade-out {
    opacity: 0;
    transform: translateY(-6px);
}

.ai-vibe-banner-content .banner-text-inner.fade-in {
    opacity: 0;
    transform: translateY(6px);
}

.ai-vibe-banner-dots {
    display: inline-flex;
    gap: 4px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.ai-vibe-banner-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.ai-vibe-banner-dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

/* ==================== 第二屏：核心特性 ==================== */
.features-scroll-section {
    position: relative;
    background: var(--bg);
    height: 900vh;
}

.features-scroll-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-immersive {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                visibility 0s 0.5s;
    pointer-events: none;
    transform: scale(0.96);
    filter: blur(4px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.feature-immersive.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
    filter: blur(0);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                visibility 0s 0s;
}

.feature-immersive.leaving {
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    transform: scale(1.03);
    filter: blur(6px);
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                visibility 0s 0.4s;
}

.feature-immersive-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1100px;
    width: 90%;
    align-items: center;
    padding: 0 2rem;
    min-width: 0;
}

.feature-immersive-text {
    position: relative;
}

.feature-immersive-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
}

.feature-immersive.active .feature-immersive-eyebrow {
    opacity: 1;
    transform: translateY(0);
}

.feature-immersive-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 1.2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
}

.feature-immersive.active .feature-immersive-title {
    opacity: 1;
    transform: translateY(0);
}

.feature-immersive-desc {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 460px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s;
}

.feature-immersive.active .feature-immersive-desc {
    opacity: 1;
    transform: translateY(0);
}

.feature-immersive-code {
    position: relative;
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s;
    min-width: 0;
    overflow: hidden;
}

.feature-immersive.active .feature-immersive-code {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.code-window {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-hover), 0 0 0 0.5px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border);
    min-width: 0;
}

.code-window-bar {
    display: flex;
    align-items: center;
    padding: 0.7rem 1rem;
    background: rgba(var(--border-rgb), 0.3);
    border-bottom: 1px solid var(--border);
    gap: 0.8rem;
}

.code-window-dots {
    display: flex;
    gap: 6px;
}

.code-window-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.code-window-dots span:nth-child(1) {
    background: #ff5f57;
}

.code-window-dots span:nth-child(2) {
    background: #ffbd2e;
}

.code-window-dots span:nth-child(3) {
    background: #28c840;
}

.code-window-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: 'Fira Code', 'Courier New', monospace;
    letter-spacing: 0.02em;
}

.code-window-body {
    margin: 0;
    padding: 1.2rem 1.4rem;
    background: transparent !important;
    font-size: 0.88rem;
    line-height: 1.7;
    font-family: 'Fira Code', 'Courier New', monospace;
    overflow-x: auto;
    white-space: pre;
    word-break: break-word;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.code-window-body code {
    background: transparent !important;
    font-size: 0.88rem;
    text-shadow: none !important;
}

/* Immersive nav dots */
.feature-immersive-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.feature-immersive-nav.visible {
    opacity: 1;
    visibility: visible;
}

.feature-nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.feature-nav-dot:hover {
    background: var(--text-secondary);
    transform: scale(1.3);
}

.feature-nav-dot.active {
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.15);
    transform: scale(1.2);
}

/* ===== Chat Window Demo ===== */
.feature-immersive-visual {
    position: relative;
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s;
    min-width: 0;
    overflow: hidden;
}

.feature-immersive.active .feature-immersive-visual {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.chat-window {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-hover), 0 0 0 0.5px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border);
}

.chat-window-body {
    padding: 1.2rem 1.2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-height: 320px;
}

.chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 82%;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-immersive.active .chat-msg {
    opacity: 1;
    transform: translateY(0);
}

.feature-immersive.active .chat-msg:nth-child(1) { transition-delay: 0.5s; }
.feature-immersive.active .chat-msg:nth-child(2) { transition-delay: 0.9s; }
.feature-immersive.active .chat-msg:nth-child(3) { transition-delay: 1.3s; }
.feature-immersive.active .chat-msg:nth-child(4) { transition-delay: 1.7s; }
.feature-immersive.active .chat-msg:nth-child(5) { transition-delay: 2.1s; }

.chat-msg-bot {
    align-self: flex-start;
}

.chat-msg-user {
    align-self: flex-end;
}

.chat-msg-bot .chat-bubble {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--text);
    border-radius: 16px 16px 16px 4px;
}

.chat-msg-user .chat-bubble {
    background: var(--primary);
    color: white;
    border-radius: 16px 16px 4px 16px;
}

.chat-bubble-selected {
    background: var(--sel-bg, var(--primary)) !important;
    color: var(--sel-color, white) !important;
    border: 1px solid color-mix(in srgb, var(--sel-color, var(--primary)) 30%, transparent);
    font-weight: 500;
}

.chat-bubble-success {
    background: rgba(34, 197, 94, 0.08) !important;
    color: #16a34a !important;
    border: 1px solid rgba(34, 197, 94, 0.15);
}

[data-theme="dark"] .chat-bubble-success {
    background: rgba(34, 197, 94, 0.12) !important;
    color: #4ade80 !important;
}

[data-theme="dark"] .chat-bubble-selected {
    background: var(--sel-bg, rgba(var(--primary-rgb), 0.15)) !important;
    color: var(--sel-color, white) !important;
}

.chat-bubble {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-options {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.chat-option {
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.82rem;
    background: rgba(var(--primary-rgb), 0.06);
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    color: var(--text);
    cursor: default;
    transition: all 0.2s ease;
}

.chat-option-color {
    background: var(--option-bg, rgba(var(--primary-rgb), 0.06));
    border-color: color-mix(in srgb, var(--option-color, var(--primary)) 25%, transparent);
    color: var(--option-color, var(--text));
}

.chat-option-active {
    background: var(--option-bg-active, var(--primary)) !important;
    color: white !important;
    border-color: var(--option-bg-active, var(--primary)) !important;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--option-color, var(--primary)) 30%, transparent);
}

.chat-confirm {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.chat-confirm-btn {
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
    font-size: 0.82rem;
    background: rgba(var(--primary-rgb), 0.06);
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    color: var(--text);
    cursor: default;
}

.chat-confirm-yes {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== Dashboard Window Demo ===== */
.dashboard-window {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-hover), 0 0 0 0.5px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border);
}

.dashboard-body {
    padding: 1rem 1.2rem 1.2rem;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--border);
}

.dash-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dash-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: dashPulse 2s ease-in-out infinite;
}

.dash-status-online { background: #28c840; }

@keyframes dashPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(40, 200, 64, 0); }
}

.dash-status-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.dash-uptime {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.dash-sys-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
}

.dash-card-sys {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.dash-card-sys .dash-card-info {
    flex: 1;
    min-width: 0;
}

.dash-card-sys .dash-card-bar {
    width: 100%;
    order: 10;
}

.dash-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 700;
}

.dash-icon-cpu {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.dash-icon-mem {
    background: rgba(124, 196, 168, 0.15);
    color: var(--accent);
}

.dash-icon-cpu::before { content: "CPU"; }
.dash-icon-mem::before { content: "MEM"; }

.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
}

.dash-card {
    background: rgba(var(--border-rgb), 0.2);
    border-radius: 12px;
    padding: 0.65rem 0.8rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-immersive.active .dash-card {
    opacity: 1;
    transform: translateY(0);
}

.feature-immersive.active .dash-card:nth-child(1) { transition-delay: 0.5s; }
.feature-immersive.active .dash-card:nth-child(2) { transition-delay: 0.6s; }
.feature-immersive.active .dash-card:nth-child(3) { transition-delay: 0.7s; }
.feature-immersive.active .dash-card:nth-child(4) { transition-delay: 0.8s; }
.feature-immersive.active .dash-card:nth-child(5) { transition-delay: 0.9s; }

.dash-card-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.dash-card-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.dash-card-unit {
    font-size: 0.68rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.dash-card-items {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.35rem;
    flex-wrap: wrap;
}

.dash-tag {
    font-size: 0.65rem;
    padding: 0.12rem 0.4rem;
    border-radius: 6px;
    font-weight: 500;
}

.dash-tag-yunhu { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.dash-tag-tg { background: rgba(0, 136, 204, 0.12); color: #0088cc; }
.dash-tag-qq { background: rgba(18, 183, 245, 0.12); color: #12b7f5; }
.dash-tag-mod { background: rgba(var(--primary-rgb), 0.08); color: var(--primary); }

.dash-card-bar {
    height: 3px;
    background: rgba(var(--border-rgb), 0.4);
    border-radius: 2px;
    margin-top: 0.4rem;
    overflow: hidden;
}

.dash-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    width: 0;
    transition: width 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.2s;
}

.dash-bar-cpu {
    background: var(--primary);
}

.feature-immersive.active .dash-bar-cpu {
    width: 12%;
}

.dash-bar-mem {
    background: var(--accent);
}

.feature-immersive.active .dash-bar-mem {
    width: 23%;
}

.feature-immersive.active .dash-bar-fill:not(.dash-bar-cpu):not(.dash-bar-mem) {
    width: 70%;
}

.dash-card-events {
    background: rgba(var(--border-rgb), 0.15);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1s;
}

.feature-immersive.active .dash-card-events {
    opacity: 1;
    transform: translateY(0);
}

.dash-events-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.dash-events-badge {
    font-size: 0.6rem;
    font-weight: 600;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    letter-spacing: 0.04em;
    animation: dashLivePulse 2s ease-in-out infinite;
}

@keyframes dashLivePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.dash-events-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.68rem;
    line-height: 1.5;
}

.dash-event-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-event-time {
    color: var(--text-secondary);
    opacity: 0.6;
    flex-shrink: 0;
}

.dash-event-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dash-dot-msg { background: #3b82f6; }
.dash-dot-sys { background: var(--primary); }
.dash-dot-ok { background: #28c840; }

.dash-event-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-bot-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--text);
}

.dash-bot-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dash-bot-online { background: #28c840; }

.dash-bot-id {
    margin-left: auto;
    font-family: 'Fira Code', monospace;
    font-size: 0.68rem;
    color: var(--text-secondary);
}

[data-theme="dark"] .dash-card {
    background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .dash-card-events {
    background: rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .chat-msg-bot .chat-bubble {
    background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .chat-option {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .chat-confirm-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .code-window-bar {
    background: rgba(255, 255, 255, 0.04);
}

/* ==================== 第四屏：快速开始 ==================== */
.steps-section {
    padding: 6rem 0;
    background: var(--bg);
}

.steps-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.steps-section .section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3.5rem;
    font-size: 1.15rem;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 3.5rem;
    position: relative;
}

/* 连接线 */
.steps-container::before {
    content: '';
    position: absolute;
    left: 2.5rem;
    top: 2.5rem;
    bottom: 2.5rem;
    width: 2px;
    background: repeating-linear-gradient(
        to bottom,
        var(--border) 0px,
        var(--border) 6px,
        transparent 6px,
        transparent 12px
    );
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding-left: 0;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--border);
    z-index: 1;
}

.step-content {
    flex: 1;
    padding-top: 0.5rem;
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 600;
}

.step-code {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 0.8rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.step-code pre {
    margin: 0;
}

.step-code code {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 1rem;
    color: var(--primary);
}

.step-desc {
    color: var(--text-secondary);
    line-height: 1.6;
}

.steps-footer {
    text-align: center;
    padding-top: 2rem;
}

/* ==================== 按钮样式补充 ==================== */
.btn-secondary {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.15);
}

.btn-secondary:hover {
    background: var(--accent);
    opacity: 0.92;
    box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.2);
}

/* ==================== 响应式设计 ==================== */

@media (max-width: 1024px) {
    .feature-immersive-inner {
        gap: 2.5rem;
    }

    .feature-immersive-title {
        font-size: 2.4rem;
    }

    .code-window-body {
        font-size: 0.82rem;
    }

    .code-window-body code {
        font-size: 0.82rem;
    }

    .feature-immersive-nav {
        right: 1rem;
    }
}

@media (max-width: 768px) {
    .ai-vibe-banner {
        position: absolute;
        top: 65px;
        left: 0;
        right: 0;
        z-index: 5;
    }

    .hero-section {
        height: calc(100dvh - 65px);
    }
    
    .hero-content {
        padding: 1rem 1.2rem;
        padding-top: 60px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        font-weight: 300;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.7rem;
    }

    .hero-start-btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.4rem;
        font-size: 0.95rem;
    }

    .hero-actions-expanded {
        flex-direction: column;
        position: relative;
        left: auto;
        transform: translateY(8px);
        white-space: normal;
        width: 100%;
        gap: 0.7rem;
    }

    .hero-actions-expanded.visible {
        transform: translateY(0);
    }

    .hero-actions-expanded .btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.4rem;
        font-size: 0.95rem;
    }
    
    .logo-img {
        width: 72px;
        height: 72px;
    }

    .features-scroll-section {
        height: 500vh;
    }

    .feature-immersive-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

    .feature-immersive-title {
        font-size: 2rem;
    }

    .feature-immersive-desc {
        font-size: 1rem;
    }

    .code-window-body {
        font-size: 0.72rem;
        padding: 0.8rem;
    }

    .code-window-body code {
        font-size: 0.72rem;
    }

    .code-window-bar {
        padding: 0.5rem 0.8rem;
    }

    .code-window-dots span {
        width: 10px;
        height: 10px;
    }

    .feature-immersive-nav {
        right: 0.6rem;
    }

    .feature-nav-dot {
        width: 6px;
        height: 6px;
    }

    .chat-window-body {
        min-height: 200px;
        padding: 0.8rem;
    }

    .chat-options {
        gap: 0.3rem;
    }

    .chat-option {
        font-size: 0.75rem;
        padding: 0.25rem 0.55rem;
    }

    .dashboard-window {
        max-height: none;
    }

    .dashboard-body {
        padding: 0.7rem 0.8rem;
    }

    .dash-header {
        margin-bottom: 0.6rem;
        padding-bottom: 0.5rem;
    }

    .dash-sys-grid {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .dash-grid {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .dash-card {
        padding: 0.5rem 0.6rem;
    }

    .dash-card-value {
        font-size: 1rem;
    }

    .dash-card-icon {
        width: 26px;
        height: 26px;
        font-size: 0.6rem;
        border-radius: 6px;
    }

    .dash-events-list {
        font-size: 0.6rem;
    }

    .steps-section {
        padding: 4rem 0;
    }
    
    .steps-container {
        padding: 0 1rem;
    }
    
    .steps-container::before {
        left: 1.5rem;
        top: 1.5rem;
        bottom: 1.5rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.3rem;
    }
    
    .step-item {
        gap: 1rem;
    }
    
    .scroll-indicator {
        bottom: 1.5rem;
    }

    .hero-install-panel {
        padding: 2rem 1.6rem;
        border-radius: 20px;
    }

    .install-overlay-title {
        font-size: 1.3rem;
    }

    .install-overlay-desc {
        font-size: 0.85rem;
    }

    .install-code-block {
        padding: 0.75rem 0.9rem;
        border-radius: 12px;
    }

    .install-code-text {
        font-size: 0.75rem;
    }

    .install-code-prefix {
        font-size: 0.75rem;
    }

    .install-copy-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.9rem;
        font-weight: 300;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }

    .feature-immersive-inner {
        padding: 0 0.8rem;
    }

    .feature-immersive-title {
        font-size: 1.5rem;
    }

    .feature-immersive-desc {
        font-size: 0.9rem;
    }

    .code-window-body {
        font-size: 0.68rem;
        padding: 0.6rem;
        line-height: 1.5;
    }

    .code-window-body code {
        font-size: 0.68rem;
    }

    .chat-bubble {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }

    .chat-option {
        font-size: 0.7rem;
    }

    .dash-sys-grid {
        grid-template-columns: 1fr;
    }

    .dash-grid {
        grid-template-columns: 1fr;
    }

    .dash-card-value {
        font-size: 0.95rem;
    }

    .dash-tag {
        font-size: 0.6rem;
        padding: 0.1rem 0.3rem;
    }

    .dash-event-row {
        font-size: 0.55rem;
    }

    .step-title {
        font-size: 1.3rem;
    }

    .hero-install-panel {
        padding: 1.6rem 1.2rem;
        border-radius: 18px;
    }

    .install-overlay-title {
        font-size: 1.15rem;
    }

    .install-code-text {
        font-size: 0.68rem;
    }

    .install-code-block {
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .install-copy-btn {
        width: 100%;
        height: auto;
        padding: 0.5rem;
        border-radius: 10px;
        font-size: 0.82rem;
        gap: 0.4rem;
    }
}

/* ==================== 动画禁用状态 ==================== */
.no-animations * {
    animation-duration: 0s !important;
    animation: none !important;
    transition: none !important;
}

.no-animations .hero-canvas {
    cursor: default;
}

.no-animations .logo-img {
    transform: none;
    filter: drop-shadow(0 0 20px rgba(var(--primary-rgb), 0.3));
}

.no-animations .feature-immersive {
    opacity: 1;
    visibility: visible;
    transform: none;
    filter: none;
    position: relative;
    top: auto;
    left: auto;
    pointer-events: auto;
    width: 100%;
    margin-bottom: 2rem;
}

.no-animations .features-scroll-section {
    height: auto;
}

.no-animations .features-scroll-stage {
    position: relative;
    height: auto;
    display: block;
}

.no-animations .feature-immersive-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.no-animations .feature-immersive-text .feature-immersive-eyebrow,
.no-animations .feature-immersive-text .feature-immersive-title,
.no-animations .feature-immersive-text .feature-immersive-desc,
.no-animations .feature-immersive-code,
.no-animations .feature-immersive-visual,
.no-animations .dash-card,
.no-animations .dash-card-events {
    opacity: 1;
    transform: none;
}

.no-animations .feature-immersive.leaving {
    opacity: 1;
    visibility: visible;
    transform: none;
    filter: none;
}

.no-animations .feature-immersive-nav {
    display: none;
}

.no-animations .scroll-indicator {
    animation: none;
}