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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0f0f23;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    width: 1200px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255,255,255,0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
}

.download-container {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 50px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    width: 100%;
}

.download-title {
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 600;
}

.download-buttons {
    display: flex;
    gap: 80px;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 60px;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    color: white;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 320px;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: rgba(255,255,255,0.6);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.download-btn.windows {
    background: linear-gradient(135deg, rgba(0,120,212,0.8), rgba(0,84,180,0.8));
}

.download-btn.macos {
    background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(51,51,51,0.8));
}

.os-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.3));
    font-family: 'Segoe UI', system-ui;
    font-weight: normal;
}

.windows-icon {
    color: #00a1f1;
    text-shadow: 0 0 15px rgba(0, 161, 241, 0.6);
    background: linear-gradient(45deg, #0078d4, #00a1f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 0.8;
    font-size: 3rem;
    letter-spacing: 2px;
}

.macos-icon {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f39c12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.os-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.version {
    font-size: 1rem;
    opacity: 0.8;
    font-weight: 300;
}

.features-section {
    padding: 100px 20px;
    background: #0f0f23;
}

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

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 80px;
    background: linear-gradient(45deg, #667eea, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

.feature-card {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 40px 30px;
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #f093fb);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 25px;
    display: block;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: #fff;
}

.feature-desc {
    color: #b8b8b8;
    line-height: 1.6;
}

.version-info {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 25px;
    padding: 50px;
    border: 1px solid rgba(255,255,255,0.1);
}

.version-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.version-card {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.version-card h4 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.version-card ul {
    list-style: none;
}

.version-card li {
    padding: 8px 0;
    color: #b8b8b8;
    position: relative;
    padding-left: 25px;
    font-size: 0.95rem;
}

.version-card li:before {
    content: "✓";
    color: #4ade80;
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.1rem;
}

.footer {
    text-align: center;
    padding: 60px 20px;
    background: #0a0a1a;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer p {
    color: #888;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .download-container {
        padding: 30px 20px;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .download-btn {
        min-width: 280px;
        padding: 30px 40px;
    }

    .section-title {
        font-size: 2rem;
    }

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

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

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* JavaScript增强的样式 */
.download-btn.clicked {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

.feature-card.animate-in {
    animation: slideInUp 0.6s ease-out forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 页面加载状态 */
body.loaded .hero-content {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 兼容性增强 */
.no-css-animations .shape {
    animation: none;
}

.no-css-animations .feature-card {
    animation: none;
}

/* 降级样式 */
@media (prefers-reduced-motion: reduce) {
    .shape,
    .feature-card,
    .download-btn {
        animation: none;
        transition: none;
    }
}
