/* ==================== 系统首页样式 ==================== */

:root {
    --primary: #2D1B69;
    --primary-light: #1B2469;
    --bg: #fff;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    margin: 0;
    padding: 0;
    background: #fafbfc;
}

a {
    text-decoration: none;
    color: var(--primary);
}

a:hover {
    color: var(--primary-light);
}

.homepage-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

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

.homepage-nav .nav-brand i {
    font-size: 24px;
    color: var(--primary-light);
}

.homepage-nav .nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.homepage-nav .nav-link {
    font-size: 15px;
    color: var(--text-light);
    transition: color 0.2s;
    padding: 8px 0;
    font-weight: 500;
}

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

.nav-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.nav-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
}

.nav-btn-primary:hover {
    opacity: 0.9;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 27, 105, 0.3);
}

.hero-section {
    padding: 120px 40px 80px;
    text-align: center;
    background: linear-gradient(180deg, #f5f3ff 0%, #fafbfc 100%);
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(45, 27, 105, 0.08);
    color: var(--primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 16px;
    line-height: 1.2;
}

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

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.hero-btn {
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.hero-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
}

.hero-btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45, 27, 105, 0.3);
}

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

.hero-btn-secondary:hover {
    color: #fff;
    background: var(--primary);
}

.features-section {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 2px;
}

.section-title {
    font-size: 34px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 12px 0 16px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
}

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

.feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    border: 1px solid #f0f0f5;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.feature-icon.blue {
    background: #dbeafe;
    color: #3b82f6;
}

.feature-icon.green {
    background: #d1fae5;
    color: #10b981;
}

.feature-icon.purple {
    background: #ede9fe;
    color: #7c3aed;
}

.feature-icon.orange {
    background: #fef3c7;
    color: #f59e0b;
}

.feature-icon.red {
    background: #fee2e2;
    color: #ef4444;
}

.feature-icon.indigo {
    background: #e0e7ff;
    color: #4f46e5;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.api-section {
    padding: 80px 40px;
    background: #fff;
}

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

.api-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.api-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
}

.api-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px;
}

.api-card .api-endpoint {
    display: inline-block;
    padding: 6px 14px;
    background: #ede9fe;
    color: var(--primary);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    font-family: "Consolas", "Monaco", monospace;
    margin-bottom: 12px;
}

.api-card p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.stats-section {
    padding: 80px 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    text-align: center;
    color: #fff;
}

.stats-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.stats-item {
    padding: 20px;
}

.stats-item .stat-value {
    font-size: 36px;
    font-weight: 800;
}

.stats-item .stat-label {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 4px;
}

.footer {
    background: #1a1a2e;
    color: #fff;
    padding: 40px;
    text-align: center;
}

.footer-info {
    max-width: 600px;
    margin: 0 auto;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 8px 0;
}

.footer-info .footer-brand {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .homepage-nav {
        padding: 0 20px;
        height: 56px;
    }

    .homepage-nav .nav-brand {
        font-size: 16px;
    }

    .homepage-nav .nav-links {
        gap: 12px;
    }

    .homepage-nav .nav-link {
        display: none;
    }

    .hero-section {
        padding: 100px 20px 60px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero-btn {
        width: 100%;
        text-align: center;
    }

    .features-section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 26px;
    }

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

    .api-section {
        padding: 60px 20px;
    }

    .api-cards {
        grid-template-columns: 1fr;
    }

    .stats-grid-home {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stats-section {
        padding: 50px 20px;
    }

    .footer {
        padding: 30px 20px;
    }
}