:root {
    --primary-color: #00f2fe;
    --primary-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --card-bg: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --glow: 0 0 20px rgba(0, 242, 254, 0.3);
}

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

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(79, 172, 254, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 242, 254, 0.1) 0%, transparent 40%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* Prevent scrollbar from animations */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* 装饰性网格背景 - 增加动态移动效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 200%; /* Larger to allow movement */
    height: 200%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    animation: gridMove 60s linear infinite;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px); /* 3D effect */
    opacity: 0.6;
}

header {
    padding: 2rem 0;
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.8s ease-out;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo-container {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    padding: 5px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover .logo-container {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.5);
}

.logo img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.hero {
    text-align: center;
    padding: 8vh 0 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    text-shadow: 0 0 30px rgba(79, 172, 254, 0.3);
    animation: fadeInUp 0.8s ease-out 0.2s backwards, float 6s ease-in-out infinite;
}

.hero p {
    font-size: 1.5rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto 4rem;
    font-weight: 300;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.download-section {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(79, 172, 254, 0.5);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0.1;
    transition: opacity 0.3s;
    z-index: -1;
}

/* 按钮扫光特效 */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
    pointer-events: none;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.4);
    border-color: #00f2fe;
}

.btn-primary:hover::before {
    opacity: 0.3;
}

.btn-primary:hover::after {
    left: 100%;
}

.icon {
    margin-right: 0.8rem;
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.btn:hover .icon {
    transform: rotate(-10deg) scale(1.2);
}

.version-info {
    margin-top: 2rem;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
    transition: background 0.3s;
}

.version-info:hover {
    background: rgba(255, 255, 255, 0.1);
}

.version-info p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

footer {
    text-align: center;
    padding: 3rem 0;
    color: #475569;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeIn 1s ease-out 1s backwards;
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .download-section {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 320px;
    }
    .btn {
        justify-content: center;
    }
    /* Disable complex 3D background on mobile for performance */
    body::before {
        transform: none;
        animation: gridMoveMobile 30s linear infinite;
    }
}

/* Keyframes Definitions */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 50px; }
}

@keyframes gridMoveMobile {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

/* Features Grid Styles */
.features-grid {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
    width: 100%;
    max-width: 1000px;
}

.feature-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    width: calc(33.333% - 2rem);
    min-width: 280px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(0, 242, 254, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-12px);
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 242, 254, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(0, 242, 254, 0.4));
    transform: scale(1);
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.feature-card p {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 900px) {
    .feature-card {
        width: calc(50% - 1.25rem);
    }
}

@media (max-width: 600px) {
    .feature-card {
        width: 100%;
    }
}
