:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --portal: #0d9488;
    --portal-light: #14b8a6;
    --bg: #0f172a;
    --bg-card: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --radius: 16px;
    --shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.15);
}

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

html { scroll-behavior: smooth; }

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

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

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.site-header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary);
}
.logo svg { width: 28px; height: 28px; }
.nav-desktop { display: flex; gap: 28px; font-size: 14px; font-weight: 600; color: var(--muted); }
.nav-desktop a:hover { color: var(--primary); }
.nav-cta { display: flex; gap: 10px; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: #fff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}
.btn-portal {
    background: linear-gradient(135deg, var(--portal), var(--portal-light));
    color: #fff;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}
.btn-outline {
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--primary-light, #e0e7ff);
}
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 12px; }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text);
    cursor: pointer;
}
.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px 20px;
    border-top: 1px solid #eee;
    background: #fff;
}
.nav-mobile.open { display: flex; }

/* Hero */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(160deg, #1e1b4b 0%, #312e81 35%, #4f46e5 70%, #818cf8 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero--portal {
    background: linear-gradient(160deg, #042f2e 0%, #0d9488 45%, #14b8a6 75%, #5eead4 100%);
}
.btn-outline-light {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.25); color: #fff; }
.hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    top: -100px;
    right: -80px;
}
.hero .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}
.hero .lead {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 28px;
    max-width: 480px;
}
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}
.hero-badges span {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-mockup {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 20px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.phone-frame {
    background: #fff;
    border-radius: 28px;
    padding: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    max-width: 280px;
    margin: 0 auto;
}
.phone-screen {
    background: #f8fafc;
    border-radius: 20px;
    padding: 16px;
    min-height: 320px;
    color: var(--text);
}
.mock-stat {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}
.mock-card {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    font-size: 11px;
    color: var(--muted);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.mock-card strong { display: block; font-size: 20px; color: var(--primary); margin-top: 4px; }
.mock-card.warn strong { color: #d97706; }
.mock-list {
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    font-size: 11px;
}
.mock-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text);
}
.mock-row:last-child { border: none; }
.mock-row > span:first-child {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    color: #1e293b;
}
.mock-row .mock-tag {
    flex-shrink: 0;
}
.mock-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}
.mock-tag {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 6px;
    background: #eef2ff;
    color: var(--primary);
    font-weight: 600;
}
.mock-progress {
    display: flex;
    gap: 6px;
    margin-top: 14px;
    justify-content: center;
}
.mock-progress span {
    width: 28px;
    height: 4px;
    border-radius: 2px;
    background: #e2e8f0;
}
.mock-progress span.on { background: var(--portal); }

.guide-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.guide-step {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--shadow);
}
.guide-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--portal), var(--portal-light));
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}
.guide-step h3 { font-size: 1rem; margin-bottom: 8px; }
.guide-step p { font-size: 13px; color: var(--muted); }
.flow-note {
    text-align: center;
    margin-top: 32px;
    font-size: 14px;
    color: var(--muted);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.cta--portal {
    background: linear-gradient(135deg, #042f2e, #0d9488);
}

/* Sections */
section { padding: 72px 0; }
.section-title {
    text-align: center;
    margin-bottom: 48px;
}
.section-title h2 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}
.section-title p { color: var(--muted); font-size: 15px; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    border: 1px solid #f1f5f9;
    transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}
.feature-icon.store { background: #eef2ff; }
.feature-icon.portal { background: #ccfbf1; }
.feature-icon.data { background: #fef3c7; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); }

/* Dual platform */
.dual {
    background: linear-gradient(180deg, #fff 0%, #f1f5f9 100%);
}
.dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.platform-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
}
.platform-card.portal-side { border-top-color: var(--portal); }
.platform-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.platform-card ul {
    list-style: none;
    margin: 20px 0 24px;
}
.platform-card li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--muted);
    padding-left: 24px;
    position: relative;
}
.platform-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--portal);
    font-weight: 700;
}
.platform-card.store li::before { color: var(--primary); }

/* Flow */
.flow-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    align-items: center;
}
.flow-step {
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    min-width: 100px;
}
.flow-step .num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}
.flow-step span { font-size: 13px; font-weight: 700; }
.flow-arrow {
    color: var(--muted);
    font-size: 20px;
    font-weight: 300;
}

/* CTA */
.cta {
    background: linear-gradient(135deg, #312e81, #4f46e5);
    color: #fff;
    text-align: center;
    border-radius: 0;
}
.cta h2 { font-size: 1.75rem; margin-bottom: 12px; }
.cta p { opacity: 0.9; margin-bottom: 28px; }
.cta .btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta .btn-outline { border-color: rgba(255,255,255,0.4); color: #fff; background: transparent; }

/* Footer */
.site-footer {
    padding: 32px 0;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    border-top: 1px solid #e2e8f0;
}

/* Responsive */
@media (max-width: 900px) {
    .hero .grid,
    .features-grid,
    .dual-grid,
    .guide-steps { grid-template-columns: 1fr; }
    .hero-mockup { order: -1; max-width: 260px; margin: 0 auto 32px; }
    .nav-desktop, .nav-cta { display: none; }
    .menu-toggle { display: block; }
    .flow-arrow { display: none; }
    .flow-steps { gap: 12px; }
}
