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

body {
    font-family: 'Inter', sans-serif;
    background-color: #05050A;
    color: #EDEEF2;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0F0F1A;
}
::-webkit-scrollbar-thumb {
    background: #6C63FF;
    border-radius: 8px;
}

/* 动态渐变背景 (移动光晕) */
.bg-aura {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 20% 30%, rgba(108, 99, 255, 0.08) 0%, rgba(5, 5, 10, 0.98) 70%);
}
.bg-aura::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.15) 0%, transparent 60%);
    animation: slowDrift 24s infinite alternate ease-in-out;
    pointer-events: none;
}
@keyframes slowDrift {
    0% { transform: translate(0%, 0%) scale(1); opacity: 0.5; }
    100% { transform: translate(8%, 12%) scale(1.3); opacity: 0.9; }
}

/* 加载屏幕 (缓冲动态特效 - 优化缓出时长) */
.loader-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #020208;
    backdrop-filter: blur(2px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.8rem;
    transition: opacity 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1), visibility 0.5s;
    opacity: 1;
    visibility: visible;
}
.loader-screen.hidden {
    opacity: 0;
    visibility: hidden;
}
.loader-ring {
    width: 70px;
    height: 70px;
    border: 3px solid rgba(108, 99, 255, 0.2);
    border-top: 3px solid #6C63FF;
    border-right: 3px solid #FF6584;
    border-radius: 50%;
    animation: spinLoader 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.4);
}
@keyframes spinLoader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.loader-text {
    font-size: 1rem;
    letter-spacing: 4px;
    font-weight: 400;
    background: linear-gradient(135deg, #C0B9FF, #FF95B6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
    animation: pulseText 1.2s infinite alternate;
}
@keyframes pulseText {
    0% { opacity: 0.5; letter-spacing: 2px; }
    100% { opacity: 1; letter-spacing: 6px; }
}

/* 主内容初始渐显 */
#main-content {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
#main-content.visible {
    opacity: 1;
}

/* 通用容器 */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* HERO 区域 */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 2rem 0;
}
.hero-badge {
    background: rgba(108, 99, 255, 0.18);
    backdrop-filter: blur(4px);
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(108, 99, 255, 0.4);
    margin-bottom: 1.5rem;
    display: inline-block;
    letter-spacing: 1px;
}
.hero h1 {
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #FFFFFF 0%, #C0B9FF 50%, #FF95B6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

/* ========== 关键修复：确保段落绝对居中 ========== */
.hero p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #B0B3D0;
    text-align: center;
    /* 块级元素水平居中 */
    display: block;
    width: fit-content;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    /* 避免文字贴边 */
    padding: 0 1rem;
}

/* 电脑端/横屏时微调宽度 */
@media (min-width: 992px) {
    .hero p {
        max-width: 800px;
        width: auto;
    }
}

.download-btn {
    background: linear-gradient(105deg, #6C63FF 0%, #FF6584 100%);
    border: none;
    padding: 1rem 2.6rem;
    border-radius: 60px;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(108, 99, 255, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    letter-spacing: 1px;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255,255,255,0.2);
}
.download-btn i {
    font-size: 1.2rem;
    transition: transform 0.2s;
}
.download-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(108, 99, 255, 0.5);
    background: linear-gradient(105deg, #7C74FF, #FF7A97);
}
.download-btn:hover i {
    transform: translateY(2px);
}
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounceSoft 1.8s infinite;
    color: #8F92B2;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
@keyframes bounceSoft {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 1; }
}

/* 项目介绍区域 (特性卡片) */
.section {
    padding: 5rem 0;
}
.section-title {
    font-size: 2.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(120deg, #E2E4FF, #B6B0FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.feature-card {
    background: rgba(20, 20, 35, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    padding: 2rem 1.8rem;
    border: 1px solid rgba(108, 99, 255, 0.25);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.4, 1);
    box-shadow: 0 10px 20px -8px rgba(0,0,0,0.3);
}
.feature-card:hover {
    transform: translateY(-10px);
    border-color: #6C63FF;
    box-shadow: 0 20px 35px -12px rgba(108, 99, 255, 0.3);
    background: rgba(30, 28, 58, 0.7);
}
.feature-icon {
    font-size: 2.8rem;
    background: linear-gradient(145deg, #6C63FF, #FF6584);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.2rem;
}
.feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}
.feature-card p {
    color: #B7B9DC;
    line-height: 1.5;
}

/* 历史时间线 */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 0;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(to bottom, #6C63FF, #FF6584, #6C63FF);
    border-radius: 4px;
}
.timeline-item {
    display: flex;
    gap: 1.8rem;
    margin-bottom: 2.8rem;
    position: relative;
}
.timeline-icon {
    width: 60px;
    height: 60px;
    background: #12121C;
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    border: 1.5px solid #6C63FF;
    background: rgba(108, 99, 255, 0.15);
    backdrop-filter: blur(4px);
    z-index: 2;
}
.timeline-content {
    flex: 1;
    background: rgba(16, 16, 28, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 24px;
    padding: 1.2rem 1.8rem;
    border: 1px solid rgba(108, 99, 255, 0.3);
    transition: transform 0.3s;
}
.timeline-content:hover {
    transform: scale(1.01);
    background: rgba(28, 26, 55, 0.8);
}
.timeline-year {
    font-size: 1.2rem;
    font-weight: 700;
    color: #FF95B6;
    letter-spacing: 1px;
}
.timeline-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0.4rem 0 0.6rem;
}
.timeline-desc {
    color: #C2C5E5;
    line-height: 1.45;
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid rgba(108, 99, 255, 0.2);
    margin-top: 2rem;
    color: #7A7CA8;
}

/* 响应式 */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    .hero h1 {
        font-size: 3rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .timeline::before {
        left: 20px;
    }
    .timeline-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
    .timeline-content {
        padding: 1rem 1.2rem;
    }
    .download-btn {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
    }
    /* 移动端保持内容宽度自适应并居中 */
    .hero p {
        max-width: 90%;
        width: auto;
        font-size: 1rem;
        padding: 0 0.5rem;
    }
}

/* 粒子画布层 */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}