:root {
    --bg-color: #f8fafc;
    --text-main: #334155;
    --text-muted: #64748b;
    --primary-color: #8b5cf6;
    --primary-hover: #7c3aed;
    --accent-color: #ec4899;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px rgba(148, 163, 184, 0.15);
}

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

body {
    font-family: 'ZCOOL QingKe HuangYou', cursive;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 动态网格背景 */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
}

/* 导航栏 */
.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: 'ZCOOL QingKe HuangYou', cursive;
    font-size: 2.5rem;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-btn {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: var(--glass-shadow);
}

/* 玻璃拟物化通用类 */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
}

/* 首屏区域 */
.hero {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 5%;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    animation: fadeUp 1s ease-out forwards;
}

.hero-title {
    font-family: 'ZCOOL QingKe HuangYou', cursive;
    font-size: 4.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero-title span {
    background: linear-gradient(120deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--bg-color); /* 与背景色相同，这是拟物风的核心 */
    color: var(--primary-color);
    border: none;
    /* 外阴影产生凸起感 */
    box-shadow: 
        8px 8px 16px rgba(186, 201, 227, 0.6), 
        -8px -8px 16px rgba(255, 255, 255, 1);
    font-weight: 700;
    transition: all 0.2s ease-out;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        10px 10px 20px rgba(186, 201, 227, 0.7), 
        -10px -10px 20px rgba(255, 255, 255, 1);
    color: var(--primary-hover);
}

.btn-primary:active {
    transform: translateY(1px);
    /* 内阴影产生按压凹陷感 */
    box-shadow: 
        inset 6px 6px 12px rgba(186, 201, 227, 0.6), 
        inset -6px -6px 12px rgba(255, 255, 255, 1);
    color: var(--primary-hover);
}

.icon {
    width: 24px;
    height: 24px;
}

/* 手机/播放器 Mockup */
.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: fadeLeft 1s ease-out 0.3s forwards;
    opacity: 0;
}

.mockup-card {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16/10;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.mockup-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    height: 40px;
    background: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 8px;
    border-bottom: 1px solid var(--glass-border);
}

.dot {
    width: 12px; height: 12px;
    border-radius: 50%;
}
.dot:nth-child(1) { background: #ff5f56; }
.dot:nth-child(2) { background: #ffbd2e; }
.dot:nth-child(3) { background: #27c93f; }

.mockup-body {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, rgba(161, 196, 253, 0.3), rgba(194, 233, 251, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.play-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
    cursor: pointer;
    transition: transform 0.3s;
}

.play-icon:hover {
    transform: scale(1.1);
}

/* 弹幕动画 */
.danmaku-line {
    position: absolute;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    white-space: nowrap;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    animation: danmaku linear infinite;
    opacity: 0.9;
}

.d-1 { top: 20%; animation-duration: 8s; animation-delay: 0s; color: #fecfef; }
.d-2 { top: 50%; animation-duration: 10s; animation-delay: 2s; color: #a1c4fd; }
.d-3 { top: 75%; animation-duration: 7s; animation-delay: 4s; color: #fff; }

@keyframes danmaku {
    0% { right: -50%; }
    100% { right: 120%; }
}

/* 特性展示区 */
.features {
    width: 100%;
    flex: 1; /* 推送 footer 到底部 */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 5rem auto;
    padding: 0 5%;
}

.feature-card {
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeUp 1s ease-out 0.6s forwards;
    opacity: 0;
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    white-space: nowrap;
}

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

.feature-card p {
    color: var(--text-muted);
}

/* 页脚 */
footer {
    width: 100%;
    text-align: center;
    padding: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    margin-top: auto; /* 保证 footer 在最底部 */
}

/* 动画关键帧 */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeLeft {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* 响应式 */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
        gap: 2rem;
    }
    .hero-title {
        font-size: 3.5rem;
    }
    .hero-subtitle {
        margin: 0 auto 2.5rem;
        padding: 0 1rem;
    }
    .hero-image-container {
        width: 100%;
        margin-top: 1rem;
    }
    .mockup-card {
        transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 1rem 5%;
    }
    .logo {
        font-size: 2rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    .btn {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
    }
    .features {
        margin: 3rem auto;
        gap: 1.5rem;
    }
    .feature-card {
        padding: 1.5rem 1rem;
    }
    .feature-icon {
        font-size: 2rem;
    }
    .feature-card h3 {
        font-size: 1.3rem;
    }
}
