﻿:root {
    --front-primary: #4f46e5;
    --front-primary-dark: #3730a3;
    --front-accent: #0ea5e9;
    --front-ink: #1e293b;
    --front-muted: #64748b;
    --front-soft: #f8fafc;
    --front-line: #e2e8f0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--front-ink);
    background: #ffffff;
}

section[id] {
    scroll-margin-top: 76px;
}

/* ===== 导航 ===== */
.front-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 8px rgba(30, 41, 59, 0.08);
}

.front-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--front-primary) !important;
}

    .front-brand i {
        margin-right: 4px;
        color: var(--front-accent);
    }

.front-navbar .nav-link {
    color: var(--front-ink);
    font-weight: 500;
    padding: 0.5rem 0.9rem;
    transition: color 0.2s;
}

    .front-navbar .nav-link:hover,
    .front-navbar .nav-link:focus {
        color: var(--front-primary);
    }

/* ===== 按钮 ===== */
.btn-front-primary {
    background: linear-gradient(135deg, var(--front-primary), var(--front-accent));
    border: none;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.28);
    transition: transform 0.15s, box-shadow 0.2s;
}

    .btn-front-primary:hover,
    .btn-front-primary:focus {
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(79, 70, 229, 0.38);
    }

.btn-front-ghost {
    border: 1px solid var(--front-line);
    background: #fff;
    color: var(--front-ink);
    font-weight: 500;
}

    .btn-front-ghost:hover,
    .btn-front-ghost:focus {
        border-color: var(--front-primary);
        color: var(--front-primary);
    }

/* ===== 首屏 ===== */
.front-hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0 90px;
    color: #fff;
    background:
        radial-gradient(circle at 15% 20%, rgba(14, 165, 233, 0.35), transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(79, 70, 229, 0.45), transparent 45%),
        linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #172554 100%);
}

    .front-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1px);
        background-size: 26px 26px;
        opacity: 0.5;
        pointer-events: none;
    }

    .front-hero .container {
        position: relative;
        z-index: 1;
    }

.front-hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #e0f2fe;
    background: rgba(14, 165, 233, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.4);
    margin-bottom: 20px;
}

.front-hero-title {
    font-size: 2.9rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.front-highlight {
    color: #38bdf8;
}

.front-hero-sub {
    max-width: 760px;
    margin: 0 auto;
    color: #cbd5e1;
    font-size: 1.15rem;
    line-height: 1.9;
}

/* ===== 通用区块 ===== */
.front-section {
    padding: 80px 0;
}

.front-section-alt {
    background: var(--front-soft);
    border-top: 1px solid var(--front-line);
    border-bottom: 1px solid var(--front-line);
}

.front-section-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--front-ink);
}

    .front-section-title::after {
        content: "";
        display: block;
        width: 56px;
        height: 4px;
        margin: 12px auto 0;
        border-radius: 2px;
        background: linear-gradient(90deg, var(--front-primary), var(--front-accent));
    }

.front-section-sub {
    font-size: 1.05rem;
    margin-top: 10px;
}

/* ===== 卡片 ===== */
.front-card {
    background: #fff;
    border: 1px solid var(--front-line);
    border-radius: 14px;
    padding: 30px 26px;
    transition: transform 0.18s, box-shadow 0.2s, border-color 0.2s;
}

    .front-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(30, 41, 59, 0.10);
        border-color: rgba(79, 70, 229, 0.35);
    }

.front-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 12px;
    font-size: 1.4rem;
    color: #fff;
    background: linear-gradient(135deg, var(--front-primary), var(--front-accent));
    margin-bottom: 18px;
    box-shadow: 0 6px 14px rgba(79, 70, 229, 0.25);
}

.front-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.front-card p {
    color: var(--front-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0;
}

/* ===== 接入步骤 ===== */
.front-step {
    text-align: center;
    padding: 24px 18px;
}

.front-step-num {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--front-primary);
    border: 2px solid currentColor;
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 16px;
}

.front-step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* ===== 平台优势 ===== */
.front-adv {
    padding: 26px 16px;
}

.front-adv-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--front-primary);
    background: #eef2ff;
    margin-bottom: 16px;
}

.front-adv h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

/* ===== 手风琴微调 ===== */
.accordion .accordion-button:not(.collapsed) {
    background: #eef2ff;
    color: var(--front-primary-dark);
    font-weight: 600;
}

/* ===== 行动号召 ===== */
.front-cta {
    padding: 70px 0;
    color: #fff;
    background:
        radial-gradient(circle at 80% 10%, rgba(14, 165, 233, 0.4), transparent 45%),
        linear-gradient(135deg, #312e81 0%, #0f172a 100%);
}

    .front-cta h2 {
        font-weight: 800;
        margin-bottom: 12px;
    }

    .front-cta p {
        color: #cbd5e1;
        font-size: 1.1rem;
    }

/* ===== 页脚 ===== */
.front-footer {
    background: #0f172a;
    color: #cbd5e1;
}

.front-footer-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 14px;
}

.front-footer-text {
    font-size: 0.95rem;
    line-height: 1.9;
}

.front-footer-list li {
    margin-bottom: 8px;
}

    .front-footer-list a {
        color: #94a3b8;
        text-decoration: none;
        transition: color 0.2s;
    }

        .front-footer-list a:hover,
        .front-footer-list a:focus {
            color: #38bdf8;
        }

.front-footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    margin-top: 10px;
    padding-top: 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* ===== 响应式微调 ===== */
@media (max-width: 767.98px) {
    .front-hero {
        padding: 64px 0 56px;
    }

    .front-hero-title {
        font-size: 1.9rem;
    }

    .front-section {
        padding: 56px 0;
    }

    .front-section-title {
        font-size: 1.6rem;
    }
}
