/* Base styles */
:root {
    --primary-color: #3498db;
    --primary-color-dark: #2980b9;
    --secondary-color: #2ecc71;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-secondary-light: #f1f3f5;
    --border-color: #dcdde1;
    --code-bg: #f1f3f5;
}

/* Hero stats styling */
.hero-stats {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats .stat {
    background: var(--bg-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Chrome Store Info Section */
.chrome-store-info {
    background: var(--bg-secondary);
    padding: 4rem 2rem;
    text-align: center;
}

.store-container {
    max-width: 800px;
    margin: 0 auto;
}

.store-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.badge {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.badge strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.badge span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    background-color: var(--bg-primary);
    /* Add top margin to account for fixed header */
    padding-top: 80px;
}

/* Navigation */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo span {
    font-size: 1.25rem;
    font-weight: 600;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--primary-color);
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 8rem 2rem;
    width: 100%;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background: rgb(77, 142, 175);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Features */
.features {
    padding: 4rem 2rem;
    background: var(--bg-secondary);
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.feature-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* How it works */
.how-it-works {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--bg-primary);
}

.how-it-works h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.steps {
    display: flex;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    flex: 1;
    max-width: 300px;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    line-height: 40px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.step h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-secondary);
}

/* Testimonials */
.testimonials {
    background: var(--bg-secondary);
    padding: 4rem 2rem;
}

.testimonials h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

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

blockquote {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

blockquote p {
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

blockquote cite {
    color: var(--text-secondary);
    font-style: normal;
}

/* Footer */
footer {
    background: var(--text-primary);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin: 0.5rem 0;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-section a.active {
    opacity: 1;
    font-weight: 500;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .hero {
        padding: 6rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }

    .video-tutorial {
        padding: 4rem 1rem;
    }

    .video-tutorial h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .video-container {
        border-radius: 8px;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    nav {
        padding: 0.8rem 1rem;
    }

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

    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    /* Improve subpage mobile layout */
    .docs-container,
    .support-content,
    .contact-content,
    .privacy-content,
    .terms-content,
    .changelog-content {
        margin: 1rem auto 2rem auto;
        padding: 1.5rem 1rem;
    }
}

/* Print styles */
@media print {
    header {
        position: static;
        box-shadow: none;
    }

    .hero {
        background: none;
        color: var(--text-primary);
        padding: 2rem 1rem;
    }

    .cta-button {
        display: none;
    }

    .feature-card,
    blockquote {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }

    footer {
        background: none;
        color: var(--text-primary);
    }

    .footer-section a {
        color: var(--text-primary);
    }
}

.alternative-install {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

.alternative-install a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.alternative-install a:hover {
    text-decoration: underline;
}

.video-tutorial {
    padding: 6rem 1rem;
    text-align: center;
    background-color: var(--bg-secondary);
}

.video-tutorial h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.video-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: #000;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* 对于不支持 aspect-ratio 的旧浏览器的后备方案 */
@supports not (aspect-ratio: 16/9) {
    .video-container {
        position: relative;
        padding-bottom: 56.25%; /* 16:9 */
        height: 0;
    }
    
    .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

.manual-install {
    display: block;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    margin-top: 12px;
    transition: color 0.3s;
}

.manual-install:hover {
    color: #ffffff;
    text-decoration: underline;
} 