/* Global Styles */
:root {
    --primary-color: #2196f3;
    --secondary-color: #1976d2;
    --accent-color: #64b5f6;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --dark-bg: #1a1a1a;
}

* {
    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);
}

/* Navigation Bar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 40px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Tech Animation Effects */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 168, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 168, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 168, 255, 0);
    }
}

@keyframes glow {
    0% {
        text-shadow: 0 0 5px rgba(0, 168, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(0, 168, 255, 0.8);
    }
    100% {
        text-shadow: 0 0 5px rgba(0, 168, 255, 0.5);
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.9), rgba(25, 118, 210, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('static/images/bg.png') center/cover;
    opacity: 0.2;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: glow 3s infinite;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: float 6s ease-in-out infinite;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: #01875f;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.cta-button i {
    font-size: 1.2rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    background: #016d4e;
    box-shadow: 0 5px 15px rgba(1, 135, 95, 0.3);
}

/* Features Section */
.features {
    padding: 5rem 2rem;
    background: var(--light-bg);
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.features-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: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    animation: float 6s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.2s);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.feature-card:hover i {
    transform: scale(1.2) rotate(360deg);
    transition: transform 0.5s ease;
}

/* Gallery Section */
.gallery {
    padding: 5rem 2rem;
    background: var(--light-bg);
    position: relative;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 168, 255, 0.1), rgba(76, 209, 55, 0.1));
    z-index: 0;
}

.gallery h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    aspect-ratio: 3/4;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: scale(0.95);
    background: white;
    padding: 0.5rem;
}

/* 隐藏第8个及以后的格子 */
.gallery-item:nth-child(n+8) {
    display: none;
}

.gallery-item:hover {
    transform: scale(1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 0.3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    background: white;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

/* Download Section */
.download {
    padding: 5rem 2rem;
    background: var(--dark-bg);
    color: white;
    text-align: center;
}

.download h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.download-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    transition: background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-button:hover {
    background: var(--secondary-color);
}

.download-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* Footer */
.footer {
    background-color: #f8f9fa;
    padding: 40px 0 20px;
    color: #333;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-info {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.footer-section p {
    line-height: 1.6;
    color: #666;
}

.footer-section.about {
    max-width: 60%;
}

.footer-section.contact {
    max-width: 40%;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #666;
}

@media (max-width: 768px) {
    .footer-info {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-section.about,
    .footer-section.contact {
        max-width: 100%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        flex-direction: column;
    }
}

/* Responsive Design for Gallery */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
    
    .gallery-item {
        aspect-ratio: 2/3;
    }
} 