/* ===== CSS 变量 ===== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-section: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --white: #ffffff;
    --border: #e2e8f0;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .06);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, .1);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, .15);
    --transition: .3s cubic-bezier(.4, 0, .2, 1);
}

/* ===== 基础重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.logo i {
    font-size: 24px;
}

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

.nav-links a {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-primary);
    cursor: pointer;
}

/* ===== 通用标题 ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header.light * {
    color: var(--white);
}

.section-header.light .section-tag {
    background: rgba(255, 255, 255, .15);
    color: var(--accent);
}

.section-tag {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(37, 99, 235, .1);
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* ===== Hero ===== */
.hero {
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 50%, rgba(37, 99, 235, .12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 30%, rgba(245, 158, 11, .08) 0%, transparent 60%);
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(245, 158, 11, .15);
    border: 1px solid rgba(245, 158, 11, .3);
    margin-bottom: 28px;
}

.hero-content h1 {
    font-size: 54px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-content h1 strong {
    background: linear-gradient(135deg, var(--accent), #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 17px;
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 480px;
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    background: var(--primary);
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, .4);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, .2);
    transition: var(--transition);
}

.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, .05);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, .15);
}

/* Hero 右侧设备模拟 */
.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-screen {
    width: 420px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}

.screen-dots {
    display: flex;
    gap: 6px;
    padding: 14px 16px;
    background: rgba(0, 0, 0, .3);
}

.screen-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .3);
}

.screen-dots span:first-child {
    background: #ff5f57;
}

.screen-body {
    display: flex;
    height: 320px;
}

.screen-sidebar {
    width: 52px;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(0, 0, 0, .2);
}

.s-item {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
    transition: var(--transition);
}

.s-item.active {
    background: var(--primary);
}

.screen-main {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sm-row {
    display: flex;
    gap: 12px;
    flex: 1;
}

.sm-card {
    flex: 1;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    animation: pulse 3s ease-in-out infinite;
}

.sm-card.large {
    flex: 2;
}

.sm-row:last-child .sm-card:first-child {
    animation-delay: .5s;
}

.sm-row:last-child .sm-card:last-child {
    animation-delay: 1s;
}

@keyframes pulse {

    0%,
    100% {
        opacity: .5;
    }

    50% {
        opacity: 1;
    }
}

/* ===== 系统介绍 ===== */
.intro {
    padding: 100px 0;
    background: var(--bg-section);
}

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

.intro-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.intro-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.intro-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.intro-card:nth-child(2) .intro-icon {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.intro-card:nth-child(3) .intro-icon {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.intro-card:nth-child(4) .intro-icon {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.intro-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.intro-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== 核心功能 ===== */
.features {
    padding: 100px 0;
    background: var(--bg-dark);
}

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

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--bg-card);
    transition: var(--transition);
}

.feature-item:hover {
    background: #283548;
    transform: translateY(-2px);
}

.feature-item>i {
    font-size: 22px;
    color: var(--accent);
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, .12);
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 17px;
    color: var(--white);
    margin-bottom: 6px;
}

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

/* ===== 下载 ===== */
.download {
    padding: 100px 0;
    background: var(--bg-section);
}

.download-card {
    max-width: 520px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.download-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: var(--white);
    background: linear-gradient(135deg, #0078d4, #00bcf2);
}

.download-card h3 {
    font-size: 24px;
    margin-bottom: 4px;
}

.download-ver {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.download-features {
    text-align: left;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-features li {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    gap: 10px;
    align-items: center;
}

.download-features li i {
    color: #10b981;
    font-size: 14px;
}

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), #6366f1);
    transition: var(--transition);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 99, 235, .4);
}

.download-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-light);
}

.download-note a {
    color: var(--primary);
    text-decoration: underline;
}

/* ===== 小程序 ===== */
.miniapp {
    padding: 100px 0;
    background: var(--white);
}

.miniapp-wrapper {
    display: flex;
    align-items: center;
    gap: 100px;
    max-width: 900px;
    margin: 0 auto;
}

.miniapp-info {
    flex: 1;
}

.miniapp-info h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.miniapp-info>p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.miniapp-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.miniapp-list li {
    font-size: 15px;
    color: var(--text-primary);
    display: flex;
    gap: 10px;
    align-items: center;
}

.miniapp-list li i {
    color: #10b981;
    font-size: 16px;
    width: 20px;
}

.miniapp-tip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--primary);
    background: rgba(37, 99, 235, .06);
}

.miniapp-qr {
    flex-shrink: 0;
}

.qr-card {
    width: 220px;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.qr-placeholder {
    width: 164px;
    height: 164px;
    margin: 0 auto 16px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f0fdf4;
    border: 2px dashed #bbf7d0;
}

.qr-placeholder i {
    font-size: 40px;
    color: #10b981;
}

.qr-placeholder p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.qr-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== 底部 ===== */
.footer {
    padding: 60px 0 30px;
    background: var(--bg-dark);
    color: var(--white);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-brand i {
    font-size: 28px;
    color: var(--accent);
}

.footer-brand span {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin: 8px 0 6px;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-light);
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-visual {
        display: none;
    }

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

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

    .miniapp-wrapper {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .miniapp-list li {
        justify-content: center;
    }

    .miniapp-tip {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }

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

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

    .hero-actions {
        flex-direction: column;
    }

    .section-header h2 {
        font-size: 28px;
    }
}