/* Global Styles */
:root {
    --primary-color: #1e40af;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --secondary-color: #f8fafc;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --light-gray: #f3f4f6;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

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

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-light);
    border-radius: 2px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    gap: 2rem;
    padding: 0 1rem;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 2rem; /* Ensure some space between logo and nav items */
}

.logo img {
    height: 40px;
    width: 40px;
    margin-right: 10px;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.nav-links::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.nav-links .tutorial-link {
    margin-left: auto;
}

.nav-links .tutorial-link a {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav-links .tutorial-link a:hover {
    background-color: var(--primary-dark);
    text-decoration: none;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 80%;
    max-width: 900px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #000;
}

/* 教程容器样式 */
.tutorial-container {
    max-height: 80vh;
    overflow-y: auto;
    padding: 1rem;
}

.tutorial-steps {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.tutorial-step {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.step-content {
    padding: 1.5rem;
}

.step-content h3 {
    color: var(--primary-color);
    margin: 0 0 1rem 0 !important;
    padding: 0 0 0.75rem 0 !important;
    font-size: 1.25rem !important;
    display: block !important;
    border-bottom: 1px solid #e5e7eb !important;
    font-weight: 600 !important;
}

.step-content p {
    color: var(--text-color);
    margin: 0.75rem 0 !important;
    line-height: 1.7;
    font-size: 1rem !important;
    padding: 0 !important;
}

.step-content code {
    background-color: #eef2ff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.95em;
    color: var(--primary-dark);
    margin: 0 0.2rem;
}

.step-image {
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem;
    background-color: #f9fafb;
    text-align: center;
}

.step-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.step-image img:hover {
    transform: translateY(-2px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tutorial-container {
        max-height: 70vh;
        padding: 0.5rem;
    }
    
    .tutorial-steps {
        gap: 2rem;
    }
    
    .step-content {
        padding: 1.25rem;
    }
    
    .step-image {
        padding: 1rem;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tutorial-container {
        max-height: 65vh;
    }
    
    .tutorial-step {
        padding: 1.25rem 1rem;
    }
    
    .tutorial-step h3 {
        font-size: 1.1rem;
    }
    
    .tutorial-step p {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 10% auto;
        padding: 1.5rem;
    }
    
    .carousel-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-indicators {
        order: -1;
        margin-bottom: 1rem;
    }
}

@keyframes fadeIn {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e1effe 100%);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: flex-start; /* Align items to the top */
    justify-content: space-between;
    position: relative;
    z-index: 1;
    gap: 2rem; /* Add some space between content and video */
}

.hero-content {
    flex: 1;
    max-width: 45%; /* Take up to 45% of container width */
    padding-right: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 1.5rem; /* Add some top margin to align with video */
}

.hero h1 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    word-break: keep-all;
    white-space: nowrap;
}

.hero h2 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-video {
    flex: 1;
    position: relative;
    width: 100%; /* Full width on mobile */
    max-width: 600px; /* Limit maximum width */
    margin: 2rem auto 0; /* Center the video */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    aspect-ratio: 16/9; /* Standard video aspect ratio */
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.hero-video:hover {
    transform: translateY(-5px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: translateY(-5px);
}

/* Features Section */
.features {
    background-color: var(--white);
}

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

.feature-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

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

.features-details {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin-top: 3rem;
}

.features-details h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
}

.feature-list {
    columns: 2;
    column-gap: 2rem;
}

.feature-list li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
    break-inside: avoid;
}

.feature-list li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.feature-list ul {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.feature-list ul li::before {
content: '•';
color: var(--primary-light);
}

/* Tutorial Section */
.tutorial {
background-color: var(--light-gray);
padding: 4rem 0;
}

.tutorial-steps {
max-width: 900px;
margin: 3rem auto 0;
position: relative;
}

.tutorial-step {
display: flex;
margin-bottom: 3rem;
position: relative;
padding-left: 60px;
}

.step-number {
position: absolute;
left: 0;
top: 0;
width: 40px;
height: 40px;
background-color: var(--primary-color);
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 1.25rem;
}

.step-content {
flex: 1;
background: white;
border-radius: var(--border-radius);
padding: 1.5rem;
box-shadow: var(--box-shadow);
}

.step-content h3 {
color: var(--primary-color);
margin-top: 0;
margin-bottom: 0.75rem;
}

.step-content p {
margin: 0.5rem 0;
color: var(--text-color);
}

.step-content .note {
font-size: 0.9rem;
color: var(--text-light);
margin-top: 0.5rem;
}

.tutorial-image {
max-width: 100%;
height: auto;
border: 1px solid #e5e7eb;
border-radius: 8px;
margin-top: 1rem;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tutorial-note {
background-color: #f8fafc;
border-left: 4px solid var(--primary-light);
padding: 1.5rem;
margin-top: 2rem;
border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.tutorial-note h4 {
margin-top: 0;
color: var(--primary-color);
}

.tutorial-note ul {
margin: 0.5rem 0 0 1.25rem;
padding: 0;
}

.tutorial-note li {
margin-bottom: 0.5rem;
color: var(--text-color);
}

.tutorial-note a {
color: var(--primary-color);
text-decoration: none;
font-weight: 500;
}

.tutorial-note a:hover {
text-decoration: underline;
}

/* Download Section */
.download {
background-color: var(--light-gray);
text-align: center;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.download-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-card p {
    margin: 1rem 0;
    color: var(--text-light);
    min-height: 24px;
}

.download-card .btn {
    width: 100%;
    max-width: 180px;
    margin: 0.5rem 0;
    padding: 0.75rem 0.5rem;
    text-align: center;
}

.extension-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    width: 100%;
    margin: 0.5rem 0;
}

.extension-buttons .btn {
    flex: 1;
    max-width: 140px;
    text-align: center;
    padding: 0.75rem 0.5rem;
    margin: 0;
}

/* Ensure all download cards have consistent button positioning */
.download-card > *:last-child {
    margin-top: auto;
    margin-bottom: 0;
}

.browser-compatibility {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-style: italic;
}

.download-card i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.download-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.download-card p {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Team Section */
.team {
    background-color: var(--white);
    text-align: center;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-member {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.member-avatar {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 4rem;
    overflow: hidden;
}

.member-avatar .avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.team-member h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.member-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-bio {
    color: var(--text-light);
    font-style: italic;
}

/* Contact Section */
.contact {
    background-color: var(--light-gray);
    text-align: center;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    box-shadow: var(--box-shadow);
}

.contact h3 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    font-size: 1.2rem;
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.contact-method a {
    color: var(--primary-dark);
    font-weight: 500;
    transition: var(--transition);
}

.contact-method a:hover {
    color: var(--primary-light);
}

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

.footer-content {
    text-align: center;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.footer-logo img {
    height: 50px;
    margin-right: 1rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 2rem;
}

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

.footer-bottom p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
        max-width: 100%;
    }

    .cta-buttons {
        justify-content: center;
    }

    .feature-list {
        columns: 1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero-video {
        width: 100% !important;
        max-width: 100% !important;
        margin: 2rem auto 0 !important;
        padding-top: 0 !important;
    }
    
    .hero-video video {
        width: 100% !important;
        height: auto !important;
        max-height: 300px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }

    .hero {
        padding: 150px 0 80px;
    }

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

    .hero h2 {
        font-size: 1.3rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
    }
}
