/* ===== 全局重置 ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fafbfc;
    color: #1e293b;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

.section {
    padding: 100px 0;
}

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

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.section-header.light h2 {
    color: #fff;
}

.section-header.light p {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== 按钮 ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #fff;
    transform: translateY(-3px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #6366f1;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid #6366f1;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #6366f1;
    color: #fff;
    transform: translateY(-2px);
}

.btn-small {
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* ===== 导航 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.08);
    padding: 10px 0;
}

.navbar.scrolled .logo span,
.navbar.scrolled .nav-links a {
    color: #1e293b;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
}

.logo i {
    color: #6366f1;
    font-size: 1.8rem;
}

.navbar.scrolled .logo i {
    color: #6366f1;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #6366f1;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta .btn-primary {
    padding: 10px 22px;
    font-size: 0.9rem;
}

.hamburger {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.navbar.scrolled .hamburger {
    color: #1e293b;
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #312e81 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 120px 0 80px;
}

.hero-text {
    color: #fff;
}

.hero-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #a5b4fc;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text .highlight {
    background: linear-gradient(135deg, #6366f1, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 6px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img-wrapper {
    width: 380px;
    height: 480px;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== About ===== */
.about {
    background: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.about-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 36px 24px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    background: #fff;
}

.about-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
}

.about-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0f172a;
}

.about-card p {
    font-size: 0.93rem;
    color: #64748b;
    line-height: 1.7;
}

/* ===== Advantages ===== */
.advantages {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.advantage-item {
    display: flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 28px 24px;
    transition: all 0.4s ease;
}

.advantage-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

.adv-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(99, 102, 241, 0.3);
    line-height: 1;
    min-width: 50px;
}

.adv-content h3 {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.adv-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ===== Programs ===== */
.programs {
    background: #f8fafc;
}

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

.program-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px 28px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

.program-card.program-recommended {
    border: 2px solid #6366f1;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
    transform: scale(1.03);
}

.program-card.program-recommended:hover {
    transform: scale(1.03) translateY(-8px);
}

.program-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
}

.program-card.program-recommended .program-badge {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.program-header {
    margin-bottom: 24px;
}

.program-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0f172a;
}

.program-price {
    font-size: 2.8rem;
    font-weight: 900;
    color: #6366f1;
    line-height: 1;
}

.price-symbol {
    font-size: 1.4rem;
    vertical-align: super;
}

.price-unit {
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
    margin-left: 4px;
}

.program-features {
    text-align: left;
    margin-bottom: 28px;
    padding: 0 8px;
}

.program-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    color: #475569;
}

.program-features li:last-child {
    border-bottom: none;
}

.program-features li i {
    color: #10b981;
    font-size: 1rem;
}

/* ===== Flow ===== */
.flow {
    background: #fff;
}

.flow-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.step {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f8fafc;
    padding: 28px 24px;
    border-radius: 16px;
    min-width: 220px;
    flex: 1;
    transition: all 0.4s ease;
}

.step:hover {
    background: #eef2ff;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #0f172a;
}

.step-content p {
    font-size: 0.85rem;
    color: #64748b;
}

.step-connector {
    color: #cbd5e1;
    font-size: 1.5rem;
    padding: 0 12px;
    display: flex;
    align-items: center;
}

/* ===== Stats ===== */
.stats-section {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stats-item {
    color: #fff;
    padding: 20px;
}

.stats-item i {
    font-size: 2.2rem;
    margin-bottom: 16px;
    opacity: 0.8;
}

.stats-num {
    font-size: 3rem;
    font-weight: 900;
    display: block;
    line-height: 1.2;
    margin-bottom: 6px;
}

.stats-label {
    font-size: 1rem;
    opacity: 0.8;
    font-weight: 500;
}

/* ===== Contact ===== */
.contact {
    background: #fff;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 16px;
    transition: all 0.3s;
}

.info-item:hover {
    background: #eef2ff;
}

.info-item i {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #0f172a;
}

.info-item p {
    font-size: 0.9rem;
    color: #64748b;
}

.contact-form {
    background: #f8fafc;
    padding: 36px;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 16px 20px 16px 48px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    transition: all 0.3s ease;
    color: #1e293b;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #6366f1;
    outline: none;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-group i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 1.05rem;
}

.form-tip {
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 16px;
}

/* ===== Footer ===== */
.footer {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand .logo {
    color: #fff;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #6366f1;
    color: #fff;
}

.footer-links h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    font-size: 0.9rem;
    padding: 6px 0;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s;
}

.footer-links a:hover {
    color: #a5b4fc;
    padding-left: 6px;
}

.footer-contact h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    width: 20px;
    color: #6366f1;
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: #a5b4fc;
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.4s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 36px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .programs-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

    .program-card.program-recommended {
        transform: none;
    }

    .program-card.program-recommended:hover {
        transform: translateY(-8px);
    }

    .flow-steps {
        flex-direction: column;
        gap: 16px;
    }

    .step-connector {
        transform: rotate(90deg);
        padding: 8px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 20px 24px;
        gap: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        color: #1e293b;
        font-size: 1.05rem;
    }

    .hamburger {
        display: block;
    }

    .nav-cta {
        display: none;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

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

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

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

    .stats-num {
        font-size: 2.2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form {
        padding: 24px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        justify-content: center;
    }

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

    .stats-item i {
        font-size: 1.6rem;
    }

    .stats-num {
        font-size: 1.8rem;
    }

    .stats-label {
        font-size: 0.8rem;
    }

    .program-card {
        padding: 28px 20px;
    }

    .program-price {
        font-size: 2.2rem;
    }
}