:root {
    --bg-dark: #07080a; /* 更深邃的电影黑 */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-1: #8b5cf6;
    --accent-2: #3b82f6;
    --accent-3: #10b981;
    --accent-warm: rgba(245, 158, 11, 0.15); /* 模拟漏光的暖黄色 */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-hover-bg: rgba(255, 255, 255, 0.06);
    --window-bg: rgba(15, 15, 20, 0.7);
}

[data-theme="light"] {
    --bg-dark: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.08);
    --card-hover-bg: rgba(255, 255, 255, 0.9);
    --window-bg: rgba(255, 255, 255, 0.8);
}

body {
    transition: background-color 0.5s ease, color 0.5s ease;
}

.theme-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
    padding: 0 0.5rem;
}

.theme-btn:hover {
    color: var(--text-primary);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

section {
    padding: 100px 2rem;
    position: relative;
    background: transparent; /* 允许全局暗背景透出 */
}

@keyframes film-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.99; }
}

/* Background Blobs & Cinematic Overlays */
.blob {
    position: absolute;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: float 10s ease-in-out infinite alternate;
}

/* 胶片颗粒感层 */
.film-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 极细微的颗粒底噪，几乎不可见但存在质感 */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.01; /* 极低透明度，防止产生坏点错觉 */
    pointer-events: none;
    z-index: 1000;
}

/* 胶片划痕与尘埃 */
.film-artifacts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1001;
    overflow: hidden;
}

.film-artifacts::after {
    content: '';
    position: absolute;
    top: 5%;
    left: 50%;
    width: 1px;
    height: 90%;
    background: rgba(255, 255, 255, 0.4); 
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    filter: blur(0.3px);
    /* 增加微小倾斜，打破绝对竖直 */
    transform: rotate(0.2deg);
    animation: film-scratch 4s infinite linear;
}

.film-artifacts::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* 随机碎点，不再是阵列 */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 -0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 300px 300px;
    animation: film-dust 0.15s infinite steps(1);
    opacity: 0.15;
}

@keyframes film-scratch {
    0%, 15% { transform: translateX(-45vw) rotate(0.2deg); opacity: 0; }
    16% { transform: translateX(-45vw) rotate(-0.1deg); opacity: 0.5; }
    17% { transform: translateX(-44vw) rotate(0.1deg); opacity: 0; }
    35%, 50% { transform: translateX(10vw) rotate(0.3deg); opacity: 0; }
    51% { transform: translateX(10.5vw) rotate(-0.2deg); opacity: 0.4; }
    52% { transform: translateX(11vw) rotate(0.2deg); opacity: 0; }
    80%, 90% { transform: translateX(-15vw) rotate(-0.3deg); opacity: 0; }
    91% { transform: translateX(-15.5vw) rotate(0.1deg); opacity: 0.6; }
    92% { transform: translateX(-16vw) rotate(-0.1deg); opacity: 0; }
    100% { transform: translateX(45vw) rotate(0.2deg); opacity: 0; }
}

.persistent-scratch {
    position: absolute;
    top: 0;
    left: 8%;
    width: 0.5px;
    height: 100%;
    background: rgba(255, 255, 255, 0.15); /* 极细的半透明亮线 */
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.1);
    animation: constant-jitter 0.1s infinite, scratch-breathe 12s infinite;
    pointer-events: none;
}

@keyframes constant-jitter {
    0%, 100% { transform: translateX(0); }
    33% { transform: translateX(1.5px); }
    66% { transform: translateX(-1px); }
}

@keyframes scratch-breathe {
    0%, 100% { opacity: 0; }
    5%, 15% { opacity: 0.4; }
    20%, 95% { opacity: 0; }
}

@keyframes film-dust {
    0% { background-position: 0 0; }
    100% { background-position: 100% 100%; }
}

/* 电影漏光效果 */
.light-leak {
    position: fixed;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-warm) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    animation: light-leak-flow 15s infinite alternate ease-in-out;
}

.leak-1 { top: -10vw; right: -10vw; animation-delay: 0s; }
.leak-2 { bottom: -10vw; left: -10vw; animation-delay: -7s; font-size: 2px;}

/* 电影随机光斑 (Bokeh) */
.bokeh-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}
.bokeh {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    animation: bokeh-float 15s infinite ease-in-out alternate, bokeh-shimmer 4s infinite alternate;
}

@keyframes bokeh-float {
    0% { transform: translate(0, 0) scale(1.0); }
    33% { transform: translate(15vw, -10vh) scale(1.2); }
    66% { transform: translate(-5vw, 20vh) scale(0.8); }
    100% { transform: translate(10vw, 5vh) scale(1.1); }
}

@keyframes bokeh-shimmer {
    0% { opacity: 0.1; }
    50% { opacity: 0.4; }
    100% { opacity: 0.2; }
}

@keyframes light-leak-flow {
    0% { opacity: 0.1; transform: translate(0, 0) rotate(0deg) scale(1); }
    50% { opacity: 0.8; transform: translate(-30px, 30px) rotate(5deg) scale(1.3); }
    100% { opacity: 0.3; transform: translate(30px, -30px) rotate(-5deg) scale(0.9); }
}

/* 全局暗角 */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
    z-index: 9998;
}

/* Typography & Utilities */
h1, h2, h3 { line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.gradient-text {
    background: linear-gradient(135deg, #c084fc 0%, #6366f1 50%, #3b82f6 100%);
    background-clip: text;
    -webkit-background-clip: text;
}

/* 入场动画基础类 */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.btn-secondary:hover { 
    background: rgba(255,255,255,0.08); 
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 0 15px rgba(255,255,255,0.05);
}

.btn-outline {
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
}
.btn-outline:hover { background: white; color: black; }

.btn-large { padding: 1rem 2.5rem; font-size: 1.1rem; }

.btn-muted {
    background: rgba(255, 255, 255, 0.08); /* 稍微增加不透明度 */
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    cursor: not-allowed;
    opacity: 0.7; /* 提高一点基础对比度 */
    filter: grayscale(0.8);
}
.btn-muted:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    border-color: var(--glass-border);
}


/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
}

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.nav-links a:hover { color: white; }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8rem 5% 4rem;
    text-align: center;
    position: relative;
    background-image: url('./assets/galaxy-earth.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
[data-theme="light"] .hero {
    background-color: var(--bg-dark);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 80%);
    z-index: 1;
}

[data-theme="light"] .hero::before {
    background: radial-gradient(circle at center, rgba(248, 250, 252, 0.85) 0%, var(--bg-dark) 90%);
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    margin-top: 2rem;
}

.hero-visual {
    position: relative;
    z-index: 5; /* 确保截图层级高于底层 system-env (z-index:1) */
}

/* Official System Environment */
.system-env {
    position: absolute;
    bottom: 3rem;
    left: 4rem;
    z-index: 1; /* 强制垫底，在 hero-content 的 z-index:10 之下 */
    text-align: left;
    font-family: monospace;
    pointer-events: none;
}
.system-env p, .system-env h2 { margin: 0; }
.space-y-2 {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.sys-title {
    color: rgba(255, 255, 255, 0.3);
    font-size: 10px;
    letter-spacing: 0.6em;
    text-transform: uppercase;
    font-weight: 400;
}
.sys-node {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.sys-node .line {
    height: 2px;
    width: 4rem;
    background: rgba(255, 255, 255, 0.3);
}
.node-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.text-indigo-400 { color: #818cf8; }
.sys-grid {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 3rem;
    color: rgba(255, 255, 255, 0.2);
    font-size: 9px;
    letter-spacing: 0.1em;
}
.sys-col {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.text-emerald-500-60 { color: rgba(16, 185, 129, 0.6); }

[data-theme="light"] .system-env {
    display: none;
}

.tagline {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.1);
    color: #c084fc;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* =========================================
   Mobile Responsiveness (全站小屏幕/手机适配)
   ========================================= */
@media (max-width: 768px) {
    .navbar { padding: 1rem 5%; }
    .nav-links { display: none; /* 手机端优先隐藏顶部导航即可 */ }
    
    .hero { padding: 6rem 5% 3rem; min-height: auto; }
    .hero-title { font-size: 2.2rem; margin-bottom: 1rem; }
    .hero-desc { font-size: 1rem; margin-bottom: 2rem; }
    
    /* 大标题下方的按钮改为垂直排列填满 */
    .hero-actions { flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
    .hero-actions .btn { width: 100%; padding: 1rem; }
    
    /* 隐藏对手机过宽的极客小终端 */
    .system-env { display: none; }
    
    .mockup-img { 
        margin-top: 1rem; 
        border-radius: 8px; 
        animation: none; /* 关闭浮动以省电和防止抖动 */
    }
    
    .features-section { padding: 3rem 5%; }
    .section-heading h2 { font-size: 1.8rem; }
    .glass-card { padding: 1.5rem; }
    
    .workflow-section { padding: 3rem 5%; }
    .workflow-steps { gap: 2rem; }
    .step-card { padding: 2rem 1.5rem; }
    
    .cta-section { padding: 0 5% 3rem; }
    .cta-card { padding: 2rem 1rem; }
    .cta-card h2 { font-size: 1.6rem; }
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 5rem;
}

/* Workbench Shell UI Rendering */
.workbench-shell {
    width: 100%;
    max-width: 1200px;
    margin: 3rem auto 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--window-bg);
    backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    text-align: left;
    height: 600px;
}

.wb-header {
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.wb-dots { display: flex; gap: 8px; }
.wb-dots .dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.wb-title { font-size: 0.8rem; color: var(--text-secondary); opacity: 0.8; font-weight: 500; }
.wb-icons { font-size: 0.9rem; opacity: 0.5; display: flex; gap: 1rem; }

.wb-content {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.5fr);
    overflow: hidden;
}

.wb-col {
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.01);
}

.wb-col:last-child { border-right: none; }

.col-header {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.02);
}

.editor-content, .story-items, .ai-gallery { padding: 1.5rem; overflow-y: auto; }

/* Skeleton Text / Pixelated UI effect */
.editor-content h4 { font-size: 1.1rem; margin-bottom: 1.2rem; color: var(--text-primary); font-weight: 700; }
.script-body {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-family: inherit;
    text-align: justify;
}
.skeleton-text {
    display: none;
}

/* Story Cards */
.story-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.story-card.active {
    border-color: var(--accent-2);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}
.sketch-box {
    height: 110px;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.sketch-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}
.sketch-box.blurred { filter: blur(4px); opacity: 0.3; }
.card-meta { padding: 0.6rem; font-size: 0.65rem; color: var(--text-secondary); opacity: 0.8; }

/* AI Gallery */
.ai-card.loading {
    height: 150px;
    background: rgba(255,255,255,0.02);
    border: 1px dashed rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.75rem;
    animation: pulse-border 1.5s infinite;
}
@keyframes pulse-border {
    0%, 100% { border-color: rgba(255,255,255,0.1); }
    50% { border-color: var(--accent-1); }
}
.ai-card {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    transition: transform 0.3s;
}
.ai-card img { width: 100%; display: block; object-fit: cover; }
.card-tag {
    padding: 0.5rem;
    background: #111;
    font-size: 0.65rem;
    font-weight: bold;
    color: var(--accent-3);
    letter-spacing: 0.1em;
}

.highlight-col { background: rgba(59, 130, 246, 0.03); }

/* UI Mockup Display Replacement */
.mockup-img { display: none; } /* Hide old img approach */

@keyframes float-slow {
    0% { transform: translateY(0); }
    100% { transform: translateY(-15px); }
}

/* Features */
.features-section { padding: 5rem 5%; }
.section-heading { text-align: center; margin-bottom: 4rem; }
.section-heading h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.section-heading p { color: var(--text-secondary); font-size: 1.1rem; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s, border-color 0.3s;
}

/* Spotlight 效果伪类 */
.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle 120px at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.06) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Staggered Delay Utilities (用于依次展示卡片) */
.stagger-1 { transition-delay: 0.1s !important; }
.stagger-2 { transition-delay: 0.15s !important; }
.stagger-3 { transition-delay: 0.2s !important; }
.stagger-4 { transition-delay: 0.25s !important; }
.stagger-5 { transition-delay: 0.3s !important; }
.stagger-6 { transition-delay: 0.35s !important; }
.stagger-7 { transition-delay: 0.4s !important; }
.stagger-8 { transition-delay: 0.45s !important; }

.icon-wrapper {
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 { margin-bottom: 1rem; font-size: 1.3rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* Workflow */
.workflow-section { padding: 5rem 5%; background: rgba(0,0,0,0.15); }
[data-theme="light"] .workflow-section { background: rgba(0,0,0,0.02); }

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}
.film-strip-container {
    padding: 6rem 0;
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8) 20%, rgba(0,0,0,0.8) 80%, transparent);
    box-shadow: 0 0 100px rgba(0,0,0,1); /* 深度环境光 */
}

.workflow-steps {
    display: flex;
    gap: 0; /* 无缝连接 */
    justify-content: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    /* 极致纤细的齿孔带 */
    border-top: 40px solid #080808;
    border-bottom: 40px solid #080808;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* 矩形齿孔效果 */
.workflow-steps::before,
.workflow-steps::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 20px;
    background-image: 
        linear-gradient(to right, #1a1a1a 0%, #1a1a1a 70%, transparent 70%);
    background-size: 40px 100%;
    background-position: center;
    z-index: 5;
}

.workflow-steps::before { top: -30px; }
.workflow-steps::after { bottom: -30px; }

.film-frame {
    background: rgba(20, 21, 23, 0.8) !important;
    border: none !important;
    border-right: 1px solid rgba(255,255,255,0.05) !important; /* 画幅线 */
    border-radius: 0 !important;
    padding: 3rem 2.5rem;
    position: relative;
    flex: 1;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(5px);
}

.film-frame:last-child { border-right: none !important; }

.film-frame:hover {
    background: rgba(30, 31, 35, 0.95) !important;
    box-shadow: inset 0 0 50px rgba(139, 92, 246, 0.1);
    z-index: 2;
}

.frame-info {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 0.6rem;
    font-family: 'Courier New', monospace;
    color: var(--accent-1);
    opacity: 0.6;
    letter-spacing: 2px;
}

.film-frame h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.film-frame p {
    color: #cbd5e1 !important; /* 加亮：从暗灰提升至亮浅灰 */
    font-size: 0.95rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

.film-frame .step-number {
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
}

.step-number {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    position: absolute;
    top: -1.5rem;
    left: 1rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.02) 100%);
    -webkit-background-clip: text;
    background-clip: text; /* 修复 lint 提示 */
    -webkit-text-fill-color: transparent;
    z-index: -1;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scale(0.8);
}

.step-card.active .step-number {
    transform: scale(1);
}
.step-card h3 { margin-top: 0.5rem; margin-bottom: 1rem; font-size: 1.4rem; position: relative; z-index: 1;}
.step-card p { color: var(--text-secondary); position: relative; z-index: 1; font-size: 0.95rem;}

/* CTA */
.cta-section {
    padding: 0 5% 5rem;
    background: transparent;
}
.cta-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    text-align: center;
}
.cta-card h2 { font-size: 2.2rem; margin-bottom: 1rem; }
.cta-card p { color: var(--text-secondary); margin-bottom: 2.5rem; font-size: 1.1rem; }

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
    font-size: 0.9rem;
}

/* ====== Modal Styles ====== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content {
    background: var(--window-bg); border: 1px solid var(--glass-border);
    padding: 3rem; border-radius: 20px; text-align: center;
    transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 400px; color: var(--text-primary); position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.modal-overlay.active .modal-content { transform: scale(1); }
.modal-close {
    position: absolute; top: 1rem; right: 1.5rem; cursor: pointer;
    font-size: 1.5rem; color: var(--text-secondary); transition: color 0.2s;
}
.modal-close:hover { color: var(--accent-1); }

/* Form Styles */
.contact-form-modal {
    max-width: 700px;
    width: 90%;
    text-align: left;
}
.contact-form-modal h3, .contact-form-modal p {
    text-align: left;
}
.advisor-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s;
}
[data-theme="light"] .form-group input, [data-theme="light"] .form-group textarea {
    background: rgba(0, 0, 0, 0.02);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-1);
    background: rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .form-group input:focus, [data-theme="light"] .form-group textarea:focus {
    background: rgba(0, 0, 0, 0.05);
}
.form-group input::placeholder, .form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}
