/* ===== 全局变量与重置 ===== */
:root {
    --primary: #4f8ef7;
    --primary-dark: #3b6fd4;
    --secondary: #818cf8;
    --secondary-dark: #6366f1;
    --accent: #38bdf8;
    --gradient: linear-gradient(135deg, #4f8ef7 0%, #818cf8 100%);
    --gradient-soft: linear-gradient(135deg, rgba(79, 142, 247, 0.15) 0%, rgba(129, 140, 248, 0.15) 100%);
    --bg-dark: #141822;
    --bg-card: #1c2133;
    --bg-card-light: #252c42;
    --text-main: #ffffff;
    --text-sub: #a0a8b8;
    --text-muted: #6b7390;
    --border: rgba(79, 142, 247, 0.2);
    --shadow-glow: 0 10px 40px rgba(79, 142, 247, 0.25);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

/* ===== 通用组件 ===== */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section {
    padding: 100px 0;
    position: relative;
}

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

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

.section-tag {
    display: inline-block;
    padding: 6px 18px;
    background: var(--gradient-soft);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 500;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 18px;
    color: var(--text-sub);
    max-width: 600px;
    margin: 0 auto;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-lg {
    padding: 16px 38px;
    font-size: 17px;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(79, 142, 247, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: var(--gradient-soft);
    transform: translateY(-3px);
}

.btn-icon {
    font-size: 20px;
}

/* 背景光斑 */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -80px;
    right: -50px;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: var(--accent);
    top: 40%;
    right: 30%;
    opacity: 0.3;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(20, 24, 34, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 22px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--gradient);
}

.logo-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    color: var(--text-sub);
    font-size: 15px;
    font-weight: 500;
    border-radius: 50px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
}

.nav-download {
    background: var(--gradient);
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(79, 142, 247, 0.3);
}

.nav-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(79, 142, 247, 0.45);
    background: var(--gradient);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    width: 26px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== 首屏 Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-content {
    animation: fadeInLeft 1s ease;
}

.version-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: var(--gradient-soft);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 14px;
    margin-bottom: 24px;
}

.version-tag {
    color: var(--primary);
    font-weight: 700;
}

.version-dot {
    color: var(--text-muted);
}

.update-date {
    color: var(--text-sub);
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 19px;
    color: var(--text-sub);
    margin-bottom: 36px;
    max-width: 520px;
    line-height: 1.8;
}

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

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

.stat-num {
    font-size: 30px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

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

/* ===== 三张截图叠加 ===== */
.hero-showcase {
    position: relative;
    height: 560px;
    animation: fadeInRight 1s ease;
}

.screens-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.screen {
    position: absolute;
    width: 280px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: var(--transition);
}

.screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 480px;
    background: linear-gradient(160deg, #252c42 0%, #1c2133 100%);
}

.screen-label {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: rgba(20, 24, 34, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.screen-1 {
    top: 20px;
    left: 0;
    transform: rotate(-8deg);
    animation: floatSlow 6s ease-in-out infinite;
    z-index: 1;
}

.screen-2 {
    top: 0;
    left: 50%;
    transform: translateX(-50%) rotate(2deg);
    animation: floatMid 6s ease-in-out infinite 0.5s;
    z-index: 3;
    width: 300px;
}

.screen-3 {
    top: 40px;
    right: 0;
    transform: rotate(8deg);
    animation: floatSlow 6s ease-in-out infinite 1s;
    z-index: 2;
}

.screen:hover {
    z-index: 10;
    transform: rotate(0) translateY(-15px) scale(1.03);
    box-shadow: 0 35px 80px rgba(79, 142, 247, 0.35);
}

/* 滚动提示 */
.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 32px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    margin: 8px auto 0;
    position: relative;
}

.scroll-arrow::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scrollDot 2s infinite;
}

/* ===== 功能特色 ===== */
.features {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #181d2a 100%);
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-light);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 44px;
    margin-bottom: 20px;
    display: inline-block;
}

.feature-title {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 15px;
    color: var(--text-sub);
    line-height: 1.8;
}

/* ===== 用户评价 ===== */
.reviews {
    background: #181d2a;
}

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

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-6px);
    border-color: var(--secondary);
    box-shadow: 0 15px 40px rgba(129, 140, 248, 0.2);
}

.review-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-soft);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-name {
    font-size: 17px;
    font-weight: 700;
}

.review-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.review-stars {
    color: #ffc107;
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.review-text {
    font-size: 15px;
    color: var(--text-sub);
    line-height: 1.8;
}

/* ===== 常见问题 ===== */
.faq {
    background: var(--bg-dark);
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(79, 142, 247, 0.15);
}

.faq-question {
    width: 100%;
    padding: 22px 26px;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 17px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    font-size: 24px;
    color: var(--primary);
    flex-shrink: 0;
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 26px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 26px 22px;
}

.faq-answer p {
    font-size: 15px;
    color: var(--text-sub);
    line-height: 1.9;
}

/* ===== 下载区域 ===== */
.download {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #181d2a 100%);
}

.download-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 70px 40px;
    text-align: center;
    overflow: hidden;
}

.download-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.download-bg .blob {
    opacity: 0.25;
}

.download-content {
    position: relative;
    z-index: 1;
}

.download-logo {
    margin-bottom: 24px;
}

.logo-img-large {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin: 0 auto;
    object-fit: cover;
    background: var(--gradient);
    box-shadow: var(--shadow-glow);
}

.download-content .section-tag {
    margin-bottom: 20px;
}

.download-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.download-desc {
    font-size: 17px;
    color: var(--text-sub);
    max-width: 580px;
    margin: 0 auto 36px;
    line-height: 1.9;
}

.download-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

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

.info-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.info-value {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
}

.info-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

.btn-download {
    background: var(--gradient);
    color: #fff;
    padding: 20px 56px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(79, 142, 247, 0.4);
    position: relative;
}

.btn-download:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(79, 142, 247, 0.55);
}

.btn-download .btn-icon {
    font-size: 22px;
}

.btn-pulse {
    animation: pulse 2.5s infinite;
}

.download-tip {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

/* ===== 页脚 ===== */
.footer {
    background: #0f1219;
    padding: 50px 0 30px;
    border-top: 1px solid var(--border);
}

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

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gradient);
}

.footer-name {
    font-size: 20px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-text {
    color: var(--text-sub);
    font-size: 15px;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.footer-links a {
    color: var(--text-sub);
    font-size: 15px;
    transition: var(--transition);
}

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

.footer-copyright {
    color: var(--text-muted);
    font-size: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* ===== 动画 ===== */
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes floatSlow {
    0%, 100% { transform: rotate(-8deg) translateY(0); }
    50% { transform: rotate(-8deg) translateY(-18px); }
}

@keyframes floatMid {
    0%, 100% { transform: translateX(-50%) rotate(2deg) translateY(0); }
    50% { transform: translateX(-50%) rotate(2deg) translateY(-22px); }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

@keyframes scrollDot {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 12px); }
}

@keyframes pulse {
    0% { box-shadow: 0 10px 40px rgba(79, 142, 247, 0.4), 0 0 0 0 rgba(79, 142, 247, 0.5); }
    70% { box-shadow: 0 10px 40px rgba(79, 142, 247, 0.4), 0 0 0 20px rgba(79, 142, 247, 0); }
    100% { box-shadow: 0 10px 40px rgba(79, 142, 247, 0.4), 0 0 0 0 rgba(79, 142, 247, 0); }
}

/* 滚动显现 */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

    .hero-content {
        order: 2;
    }

    .hero-showcase {
        order: 1;
        height: 420px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-title {
        font-size: 48px;
    }

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

    .section-title {
        font-size: 36px;
    }

    .download-title {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(20, 24, 34, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 6px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-150%);
        transition: transform 0.4s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .nav-toggle {
        display: flex;
    }

    .section {
        padding: 70px 0;
    }

    .hero {
        padding: 100px 0 50px;
    }

    .hero-title {
        font-size: 38px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-showcase {
        height: 360px;
    }

    .screen {
        width: 200px !important;
    }

    .screen img {
        min-height: 340px;
    }

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

    .section-title {
        font-size: 30px;
    }

    .section-desc {
        font-size: 16px;
    }

    .download-card {
        padding: 50px 24px;
    }

    .download-title {
        font-size: 30px;
    }

    .download-desc {
        font-size: 15px;
    }

    .download-info {
        gap: 16px;
    }

    .info-divider {
        display: none;
    }

    .btn-download {
        padding: 16px 40px;
        font-size: 17px;
        width: 100%;
    }

    .hero-stats {
        gap: 14px;
    }

    .stat-num {
        font-size: 24px;
    }

    .footer-links {
        gap: 18px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-showcase {
        height: 300px;
    }

    .screen {
        width: 160px !important;
    }

    .screen img {
        min-height: 280px;
    }

    .screen-label {
        font-size: 11px;
        padding: 4px 12px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .section-title {
        font-size: 26px;
    }
}
