/* Modern Tech Theme CSS */
:root {
    --primary-color: #2196F3;
    --secondary-color: #03A9F4;
    --dark-color: #22297a;
    --light-color: #E3F2FD;
    --text-color: #333;
    --background-color: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 2rem;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Features Section */
.features {
    padding: 5rem 2rem;
    background-color: white;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.feature-container {
    max-width: 1200px;
    margin: 0 auto;
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

/* Screenshots Section */
.screenshots {
    padding: 5rem 2rem;
    background-color: var(--light-color);
    overflow: hidden;
}

.screenshots h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.screenshot-carousel {
    width: 100%;
    max-width: 1100px; /* 限制最大宽度以显示最多5张图片 */
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.screenshot-track {
    display: flex;
    animation: scroll 15s linear infinite;
    width: calc(1000px + 20rem); /* 5张图片宽度 + 间距，需要重复两组 */
}

.screenshot-track img {
    width: 200px;
    height: auto;
    margin-right: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.screenshot-track img:hover {
    transform: scale(1.05);
}

.screenshot-carousel:hover .screenshot-track {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-500px - 10rem)); /* 精确移动5张图片的距离 */
    }
}

/* Contact Section */
.contact {
    padding: 4rem 2rem;
    text-align: center;
    background-color: white;
}

.contact h2 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.contact p {
    margin-bottom: 2rem;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

.contact-email i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-row {
        grid-template-columns: 1fr;
    }
    
    .screenshot-carousel {
        max-width: 100%;
    }
    
    .screenshot-track {
        animation-duration: 12s;
        width: calc(750px + 15rem); /* 移动端调整宽度 */
    }
    
    .screenshot-track img {
        width: 150px;
        margin-right: 1.5rem;
    }
    
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-375px - 7.5rem)); /* 移动端精确距离 */
        }
    }
}

@media (max-width: 480px) {
    .screenshot-carousel {
        max-width: 100%;
    }
    
    .screenshot-track {
        animation-duration: 10s;
        width: calc(600px + 12rem);
    }
    
    .screenshot-track img {
        width: 120px;
        margin-right: 1.2rem;
    }
    
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-300px - 6rem)); /* 小屏幕精确距离 */
        }
    }
} 