// 标记 JS 已启用（配合 CSS 降级保护，防止内容隐藏）
document.documentElement.classList.add('js');

// ===== 抽屉菜单控制 =====
(function () {
    const menuToggle = document.getElementById('menuToggle');
    const drawer = document.getElementById('drawerMenu');
    const overlay = document.getElementById('drawerOverlay');
    const drawerClose = document.getElementById('drawerClose');
    if (!menuToggle || !drawer || !overlay) return;

    function openDrawer() {
        drawer.classList.add('open');
        overlay.classList.add('open');
        menuToggle.classList.add('open');
        menuToggle.setAttribute('aria-expanded', 'true');
        drawer.setAttribute('aria-hidden', 'false');
        document.body.style.overflow = 'hidden';
    }
    function closeDrawer() {
        drawer.classList.remove('open');
        overlay.classList.remove('open');
        menuToggle.classList.remove('open');
        menuToggle.setAttribute('aria-expanded', 'false');
        drawer.setAttribute('aria-hidden', 'true');
        document.body.style.overflow = '';
    }
    menuToggle.
    }
addEventListener('click', function () {
        drawer.classList.contains('open') ? closeDrawer() : openDrawer();
    });
    if (drawerClose) drawerClose.addEventListener('click', closeDrawer);
    overlay.addEventListener('click', closeDrawer);
    document.addEventListener('keydown', function (e) {
        if (e.key === 'Escape' && drawer.classList.contains('open')) closeDrawer();
    });
    document.querySelectorAll('.drawer-nav a').forEach(function (link) {
        link.
        l
addEventListener('click', closeDrawer);
    });
})();

/* ===== 动画 ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    /* 兜底：3秒后强制显示，防止内容永久隐藏 */
    animation: forceShow 0s linear 3s forwards;
}
.fade-in.visible {
    opacity: 1;
    
    t
transform: translateY(0);
    animation: none;
}
@keyframes forceShow {
    to { opacity: 1; transform: none; }
}

/* JS 未启用时直接显示 */
html:not(.js) .fade-in {
    opacity: 1;
    transform: none;
    animation: none;
}

.float-anim { animation: float 4s ease-in-out infinite; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        
        transit
transition-duration: 0.01ms !important;
    }
    .fade-in { opacity: 1; transform: none; }
}


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

:root {
    --primary: #29a9eb;
    
    --
--primary-dark: #1e8fcf;
    --dark: #1a2b3c;
    --gray: #667;
    --light: #f5f9fc;
    --white: #fff;
    --radius: 12px;
    --shadow: 0 6px 24px rgba(41,169,235,0.12);
    --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans SC', -apple-system, "Microsoft YaHei", sans-serif;
    color: var(--dark);
    line-height: 1.7;
    background: var(--white);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, svg { max-width: 100%; }

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}
.container-narrow { max-width: 820px; }

/* 无障碍：跳转链接 */
.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--primary);
    color: #fff;
    padding: 10px 18px;
    z-index: 2000;
    border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* 焦点可见（无障碍） */
a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* ===== 顶部导航 ===== */
.header {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    z-index: 1000;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}
.logo svg { transition: transform var(--transition); }
.logo:hover svg { transform: rotate(-15deg) scale(1.1); }

.nav-desktop { display: flex; gap: 6px; }
.nav-desktop a {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    color: var(--gray);
    transition: var(--transition);
}
.nav-desktop a:hover { color: var(--primary); background: var(--light); }
.nav-desktop a.active { color: var(--primary); background: rgba(41,169,235,0.1); }

/* 汉堡菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ===== 抽屉菜单 ===== */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1100;
}
.drawer-overlay.open { opacity: 1; visibility: visible; }

.drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: var(--white);
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    transition: right var(--transition);
    z-index: 1200;
}
.drawer.open { right: 0; }
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #eee;
    font-weight: 700;
}
.drawer-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--gray);
}
.drawer-nav { padding: 12px; }
.drawer-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 8px;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
}
.drawer-nav a:hover { background: var(--light); color: var(--primary); }
.drawer-nav a i { width: 22px; text-align: center; color: var(--primary); }

/* ===== 英雄区 ===== */
.hero {
    background: linear-gradient(135deg, #e8f5fd 0%, #f5f9fc 100%);
    padding: 70px 0;
    overflow: hidden;
}
.hero-inner {
    display: flex;
    align-items: center;
    gap: 40px;
}
.hero-text { flex: 1; }
.hero-text h1 {
    font-size: 2.6rem;
    line-height: 1.3;
    margin-bottom: 20px;
}
.hero-text h1 span { color: var(--primary); }
.hero-text p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 520px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-img {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 18px rgba(41,169,235,0.35);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); }
.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
.btn-small { padding: 8px 20px; font-size: 0.9rem; background: var(--primary); color:#fff; }
.btn-small:hover { background: var(--primary-dark); }
.btn-large { padding: 16px 40px; font-size: 1.15rem; }

/* ===== 通用区块 ===== */
section { padding: 70px 0; }
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 12px;
}
.section-sub {
    text-align: center;
    color: var(--gray);
    margin-bottom: 40px;
}

/* ===== 平台卡片 ===== */
.platforms { background: var(--white); }
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 24px;
}
.platform-card {
    background: var(--light);
    padding: 34px 24px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}
.platform-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
    background: var(--white);
}
.platform-card i { font-size: 2.8rem; color: var(--primary); margin-bottom: 16px; }
.platform-card h3 { margin-bottom: 8px; }
.platform-card p { color: var(--gray); margin-bottom: 18px; font-size: 0.95rem; }

/* ===== 功能特色 ===== */
.features { background: var(--light); }
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
    gap: 26px;
}
.feature-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    transition: var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.feature-icon i { font-size: 1.6rem; color: #fff; }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--gray); }

/* ===== CTA ===== */
.cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    text-align: center;
}
.cta h2 { font-size: 2rem; margin-bottom: 12px; }
.cta p { margin-bottom: 30px; opacity: 0.9; }
.cta .btn-primary { background: #fff; color: var(--primary); }
.cta .btn-primary:hover { background: #f0f0f0; }

/* ===== 页面头部 ===== */
.page-hero {
    background: linear-gradient(135deg, #e8f5fd, #f5f9fc);
    padding: 50px 0;
    text-align: center;
}
.page-hero h1 { font-size: 2.3rem; margin-bottom: 14px; }
.page-hero p { color: var(--gray); max-width: 660px; margin: 0 auto; }
.breadcrumb {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 20px;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* ===== 下载卡片 ===== */
.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
    gap: 30px;
    max-width: 820px;
    margin: 0 auto;
}
.download-card {
    background: var(--white);
    border: 1px solid #e6eef4;
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}
.download-card:hover { box-shadow: var(--shadow); transform: translateY(-6px); }
.download-card > i { font-size: 3.4rem; color: var(--primary); margin-bottom: 16px; }
.download-card h3 { margin-bottom: 20px; }
.dl-info { text-align: left; margin-bottom: 24px; display: inline-block; }
.dl-info li { color: var(--gray); margin-bottom: 8px; }
.dl-info li i { color: var(--primary); margin-right: 8px; }

/* ===== 步骤 ===== */
.steps-section { background: var(--light); }
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px,1fr));
    gap: 24px;
}
.step {
    background: var(--white);
    padding: 30px 24px;
    border-radius: var(--radius);
    text-align: center;
    position: relative;
    transition: var(--transition);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--gray); font-size: 0.95rem; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
    background: var(--white);
    border: 1px solid #e6eef4;
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.faq-item[open] { box-shadow: var(--shadow); border-color: var(--primary); }
.faq-item summary {
    padding: 20px 24px;
    font-weight: 500;
    font-size: 1.05rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 1.6rem;
    color: var(--primary);
    transition: var(--transition);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer {
    padding: 0 24px 22px;
    color: var(--gray);
    animation: fadeDown 0.4s ease;
}
.faq-answer strong { color: var(--primary-dark); }
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 页脚 ===== */
.footer {
    background: var(--dark);
    color: #cbd5e0;
    padding-top: 50px;
}
.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 34px;
    padding-bottom: 40px;
}
.footer-col h4 { color: #fff; margin-bottom: 16px; }
.footer-col a { display: block; color: #cbd5e0; margin-bottom: 10px; transition: var(--transition); }
.footer-col a:hover { color: var(--primary); }
.footer-col p { color: #9fb0c0; font-size: 0.95rem; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #8a99a8;
}

/* ===== 动画 ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

.float-anim { animation: float 4s ease-in-out infinite; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

/* 尊重减少动画偏好（无障碍） */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .fade-in { opacity: 1; transform: none; }
}

/* ===== 响应式 ===== */
@media (max-width: 860px) {
    .nav-desktop { display: none; }
    .menu-toggle { display: flex; }
    .hero-inner { flex-direction: column-reverse; text-align: center; }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .hero-btns { justify-content: center; }
    .hero-text h1 { font-size: 2.1rem; }
    section { padding: 50px 0; }
}


}
@media (max-width: 480px) {
    .hero-text h1 { font-size: 1.7rem; }
    .section-title { font-size: 1.6rem; }
    .btn { padding: 11px 22px; font-size: 0.95rem; }
}
