/* ===== 基础样式 ===== */
:root {
    --primary-color: #4A90E2;
    --primary-light: #E8F4FD;
    --primary-dark: #357ABD;
    --secondary-color: #6BB6FF;
    --bg-color: #F8FBFF;
    --card-bg: #FFFFFF;
    --text-primary: #2C3E50;
    --text-secondary: #5A6C7D;
    --text-light: #8B9DC3;
    --border-color: #E1EEF7;
    --shadow: 0 2px 12px rgba(74, 144, 226, 0.1);
    --shadow-hover: 0 8px 24px rgba(74, 144, 226, 0.2);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* 兼容性重置 */
html {
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ===== 导航栏 ===== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    background-color: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.logo-img-footer {
    height: 36px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-light);
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===== 英雄区 ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
    background: linear-gradient(135deg, #E8F4FD 0%, #F8FBFF 50%, #E1EEF7 100%);
    position: relative;
    overflow: hidden;
}

/* 粒子背景 */
.particle-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    text-align: center;
    max-width: 700px;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* 兼容性回退 */
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: 4px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 36px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-light);
}

.hero-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 3rem;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.floating-icon:nth-child(2) { top: 60%; right: 15%; animation-delay: 1.5s; }
.floating-icon:nth-child(3) { bottom: 20%; left: 20%; animation-delay: 3s; }
.floating-icon:nth-child(4) { top: 30%; right: 25%; animation-delay: 4.5s; }

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

/* ===== 功能模块 ===== */
.features {
    padding: 100px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    margin: 15px auto 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: inline-block;
    transition: var(--transition);
}

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

.feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.feature-arrow {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 700;
    transition: var(--transition);
}

.feature-card:hover .feature-arrow {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

/* ===== 最新动态 ===== */
.updates {
    padding: 80px 0;
    background: var(--bg-color);
}

.updates-list {
    max-width: 800px;
    margin: 0 auto;
}

.update-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: white;
    border-radius: var(--radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.update-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
}

.update-date {
    color: var(--text-light);
    font-size: 0.9rem;
    white-space: nowrap;
}

.update-tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.tag-new {
    background: #E8F5E9;
    color: #4CAF50;
}

.tag-dev {
    background: #FFF3E0;
    color: #FF9800;
}

.tag-plan {
    background: #E3F2FD;
    color: var(--primary-color);
}

.update-text {
    color: var(--text-primary);
    flex: 1;
}

/* ===== 页脚 ===== */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    padding: 50px 0 30px;
    text-align: center;
}

.footer-slogan {
    font-size: 1.6rem;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 30px;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.footer-slogan .highlight {
    font-weight: 600;
    position: relative;
}

.footer-slogan .highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.6);
    border-radius: 1px;
}

.footer-copyright {
    font-size: 0.85rem;
    opacity: 0.6;
    letter-spacing: 1px;
}

/* ===== 页面内容区通用样式 ===== */
.page-header {
    padding: 100px 20px 40px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-color) 100%);
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0;
}

.page-content {
    padding: 40px 0;
    min-height: 400px;
}

.developing-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 40px;
    background: white;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px dashed var(--border-color);
}

.developing-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.developing-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.developing-text {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

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

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

    .update-item {
        flex-wrap: wrap;
    }

    .update-text {
        width: 100%;
        margin-top: 10px;
    }
}

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

    .btn {
        padding: 12px 28px;
        font-size: 0.9rem;
    }

    .feature-card {
        padding: 30px 20px;
    }
}
