:root {
    --primary-color: #3b82f6;
    --secondary-color: #60a5fa;
    --text-color: #e5e7eb;
    --bg-color: #111827;
    --card-bg: #1f2937;
    --header-bg: rgba(17, 24, 39, 0.95);
}

:root[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f7f9;
    --bg-tertiary: #edf2f7;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --border-color: #e2e8f0;
    --accent-color: #4f46e5;
    --accent-hover: #4338ca;
    --nav-bg: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.95);
    --card-bg: #f8f9fa;
}

:root[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #242424;
    --bg-tertiary: #2d2d2d;
    --text-primary: #e5e5e5;
    --text-secondary: #a0a0a0;
    --border-color: #363636;
    --accent-color: #4f46e5;
    --accent-hover: #6366f1;
    --nav-bg: #1a1a1a;
    --header-bg: rgba(26, 26, 26, 0.95);
    --card-bg: #242424;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

header {
    position: fixed;
    width: 100%;
    background: var(--header-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
}

main {
    padding-top: 4rem;
}

.hero {
    text-align: center;
    padding: 6rem 2rem;
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.hero-content {
    max-width: 800px;
}

.hero-image {
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
}

.editor-preview {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-button {
    margin-top: 2rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.3s;
}

.cta-button:hover {
    background: var(--secondary-color);
}

.features {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-slider {
    position: relative;
    max-width: 1200px;
    margin: 2.5rem auto;
    overflow: hidden;
    perspective: 1000px;
    transform-style: preserve-3d;
    height: 800px;
}

.feature-slide {
    display: none;
    text-align: center;
    padding: 2rem;
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: rotateY(90deg);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.feature-slide.active {
    display: block;
    opacity: 1;
    transform: rotateY(0);
}

.feature-slide.prev {
    transform: rotateY(-90deg);
}

.feature-slide.next {
    transform: rotateY(90deg);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.5rem;
    z-index: 2;
    transition: background 0.3s;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 1rem;
}

.next-btn {
    right: 1rem;
}

.feature-gif {
    width: 100%;
    max-width: 1000px;
    height: 600px;
    object-fit: contain;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.3s;
}

.indicator.active {
    background: var(--primary-color);
}

.demo {
    padding: 4rem 2rem;
    background: var(--bg-color);
}

.editor-container {
    max-width: 1000px;
    margin: 2rem auto;
    height: 400px;
    background: #1e1e1e;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #2d3748;
}

.download {
    padding: 4rem 2rem;
    text-align: center;
}

.download-options {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.download-btn {
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.3s;
}

.download-btn:hover {
    background: var(--secondary-color);
}

footer {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .download-options {
        flex-direction: column;
        align-items: center;
    }
    
    .hero {
        padding: 4rem 1rem;
    }
    
    .hero-image {
        padding: 0 1rem;
    }
    
    .feature-gif {
        height: 400px;
    }
    
    .slider-btn {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 2rem auto;
    padding-top: 40%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    margin-top: 2rem;
}

.feature-card {
    width: 100%;
    max-width: 1000px;
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.feature-gif {
    width: 100%;
    max-width: 1000px;
    height: 600px;
    object-fit: contain;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .feature-gif {
        height: 400px;
    }
    
    .feature-card {
        padding: 1rem;
    }
}

.section-title, .demo h2, .download h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
    font-weight: 600;
}

:root[data-theme="light"] .section-title,
:root[data-theme="light"] .demo h2,
:root[data-theme="light"] .download h2 {
    color: #1a202c;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .section-title, .demo h2, .download h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
} 