:root {
    --theme-primary: #265BD7;
    --theme-primary-light: #3A6FEB;
    --theme-primary-dark: #1247C3;
    --bg-base: #f4f7ff;
    --bg-card: rgba(255, 255, 255, 0.82);
    --bg-card-hover: rgba(255, 255, 255, 0.96);
    --text-main: #1a1d2e;
    --text-sub: #5a5f7a;
    --text-body: #3d4270;
    --text-muted: #9299b8;
    --radius: 1.25rem;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg-base);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.container {
    width: 100%;
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 2000;
    background: transparent;
    transition: background .3s, border-color .3s;
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(244, 247, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: rgba(38, 91, 215, 0.14);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.75rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--theme-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img { height: 2rem; width: auto; }

.nav { display: flex; align-items: center; gap: 1.5rem; }

.nav a {
    font-size: 0.9375rem;
    color: var(--text-main);
    font-weight: 500;
    transition: color .2s;
}

.nav a:hover { color: var(--theme-primary); }

.nav-toggle { display: none; font-size: 1.5rem; color: var(--text-main); }

/* Gradients */
.text-grad {
    background: linear-gradient(90deg, var(--theme-primary-light) 0%, var(--theme-primary) 55%, var(--theme-primary-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: linear-gradient(135deg, var(--theme-primary-light) 0%, var(--theme-primary) 60%, var(--theme-primary-dark) 100%);
    color: #fff;
    font-size: 1.125rem;
    font-weight: 600;
    padding: .75rem 2.25rem;
    border-radius: 3rem;
    border: none;
    box-shadow: 0 8px 28px rgba(38, 91, 215, 0.38);
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 36px rgba(38, 91, 215, 0.48);
}

/* Hero */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(160deg, #eef2ff 0%, #f5f0ff 40%, #edf8ff 100%);
    padding-top: 8rem;
    padding-bottom: 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -120px; left: -100px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(38, 91, 215, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -80px; right: -60px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(38, 91, 215, 0.10) 0%, transparent 70%);
    pointer-events: none;
}

.grid-bg {
    background-image:
        linear-gradient(rgba(38, 91, 215, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(38, 91, 215, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    max-width: 52rem;
    min-height: 1.4em;
}

@media (min-width: 1024px) {
    .hero-title { font-size: 3.75rem; }
}

.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: .75em;
    background: var(--theme-primary);
    margin-left: 3px;
    border-radius: 2px;
    vertical-align: middle;
    position: relative;
    top: -.05em;
    animation: blink .7s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: .65rem 3rem;
    width: auto;
    margin-top: 2rem;
    margin-bottom: .5rem;
}

@media (max-width: 640px) {
    .features-grid { grid-template-columns: auto; }
}

.hero-feature {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    text-align: left;
    white-space: nowrap;
}

.hero-feature-name {
    font-weight: 700;
    color: var(--theme-primary-dark);
    margin-right: .25rem;
}

.check-dot {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--theme-primary-light) 0%, var(--theme-primary) 60%, var(--theme-primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: .25rem;
}

.check-dot::after {
    content: '';
    width: .45rem;
    height: .3rem;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-sub);
}

.hero-banner {
    width: 100%;
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-banner img {
    width: 100%;
    display: block;
    border-radius: 1.25rem 1.25rem 0 0;
    box-shadow: 0 -4px 60px rgba(38, 91, 215, 0.15), 0 16px 60px rgba(38, 91, 215, 0.15);
    border: 1px solid rgba(38, 91, 215, 0.14);
    border-bottom: none;
}

/* Sections */
.section-label {
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--theme-primary);
    margin-bottom: .75rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
}

@media (min-width: 768px) {
    .section-title { font-size: 2.25rem; }
}

.feature-section {
    padding: 5rem 0;
}

.feature-section:nth-of-type(even) { background: #fff; }

.feature-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .feature-row { flex-direction: row; gap: 4rem; }
    .feature-row.reverse { flex-direction: row-reverse; }
    .feature-text { width: 42%; flex-shrink: 0; }
    .feature-media { width: 58%; flex-grow: 1; }
}

.media-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(38, 91, 215, 0.15);
    border: 1px solid rgba(38, 91, 215, 0.14);
    background: #fff;
}

.media-wrap img { width: 100%; display: block; }

/* Testimonials */
.testimonials {
    background: linear-gradient(160deg, #eef2ff 0%, #f5f0ff 50%, #edf8ff 100%);
    padding: 5rem 0;
}

.comment-card {
    background: var(--bg-card);
    border: 1px solid rgba(38, 91, 215, 0.14);
    border-radius: var(--radius);
    box-shadow: 0 4px 32px rgba(38, 91, 215, 0.10), 0 1px 6px rgba(38, 91, 215, 0.10);
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.comment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(38, 91, 215, 0.15);
}

.quote-mark {
    font-size: 2rem;
    line-height: 1;
    color: rgba(38, 91, 215, 0.30);
    margin-bottom: .75rem;
}

/* FAQ */
.faq-section { background: #fff; padding: 5rem 0; }

.faq-item {
    background: var(--bg-card);
    border: 1px solid rgba(38, 91, 215, 0.14);
    border-radius: .875rem;
    margin-bottom: .75rem;
    overflow: hidden;
    transition: box-shadow .2s;
}

.faq-item:hover { box-shadow: 0 4px 32px rgba(38, 91, 215, 0.10); }

.faq-q {
    padding: 1.1rem 1.25rem;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-q:hover { color: var(--theme-primary-dark); }

.faq-a {
    padding: 0 1.25rem 1.1rem;
    font-size: 1rem;
    color: var(--text-sub);
    line-height: 1.75;
    display: none;
}

.faq-a-inner { border-top: 1px solid rgba(38, 91, 215, 0.14); padding-top: .875rem; }

.faq-arrow {
    flex-shrink: 0;
    font-size: 1rem;
    color: var(--text-muted);
    transition: transform .3s;
}

.faq-item.active .faq-arrow { transform: rotate(90deg); }

/* Footer */
.footer {
    background: #fff;
    border-top: 1px solid rgba(38, 91, 215, 0.14);
    padding: 3rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 1.2fr .8fr .8fr 1fr; }
}

.footer-brand { font-size: 1.5rem; font-weight: 800; color: var(--theme-primary); margin-bottom: 1rem; }

.footer-desc { color: var(--text-sub); font-size: .9375rem; line-height: 1.75; }

.footer-title {
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.footer-links a {
    display: block;
    color: var(--text-sub);
    font-size: .9375rem;
    margin-bottom: .5rem;
    transition: color .2s;
}

.footer-links a:hover { color: var(--theme-primary); }

.footer-qr img {
    width: 100%;
    max-width: 10rem;
    border-radius: .75rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.copyright {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(38, 91, 215, 0.10);
    text-align: center;
    color: var(--text-muted);
    font-size: .875rem;
}

/* Floating bar */
.float-bar {
    position: fixed;
    right: 1rem;
    bottom: 5rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.float-item {
    position: relative;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 16px rgba(38, 91, 215, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--theme-primary);
    font-size: 1.25rem;
    transition: transform .2s;
}

.float-item:hover { transform: translateY(-2px); }

.float-popup {
    position: absolute;
    right: 3.5rem;
    bottom: 0;
    width: 12rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    padding: 1rem;
    display: none;
    text-align: center;
    font-size: .875rem;
}

.float-item:hover .float-popup { display: block; }

.float-popup img { width: 100%; border-radius: .5rem; margin-top: .5rem; }

.back-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 16px rgba(38, 91, 215, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--theme-primary);
    font-size: 1.25rem;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}

.back-top.visible { opacity: 1; visibility: visible; }

/* Mobile nav */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 3.75rem; left: 0; right: 0;
        background: rgba(244, 247, 255, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        border-bottom: 1px solid rgba(38, 91, 215, 0.14);
        transform: translateY(-150%);
        transition: transform .3s;
    }
    .nav.open { transform: translateY(0); }
    .nav-toggle { display: block; }
    .hero { padding-top: 6rem; }
    .hero-title { font-size: 2rem; }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s ease-out, transform .8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity .8s ease-out, transform .8s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity .8s ease-out, transform .8s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}
