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

:root {
    --primary: #5B5CEB;
    --primary-light: #8B8DF5;
    --primary-dark: #3D3ED1;
    --accent: #FF6B9D;
    --gradient-1: linear-gradient(135deg, #5B5CEB 0%, #8B5CF6 50%, #EC4899 100%);
    --gradient-2: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-dark: #1a1a2e;
    --text-body: #4a4a6a;
    --text-light: #7b7b99;
    --bg-light: #f8f9ff;
    --bg-white: #ffffff;
    --shadow-sm: 0 4px 12px rgba(91, 92, 235, 0.1);
    --shadow-md: 0 8px 24px rgba(91, 92, 235, 0.15);
    --shadow-lg: 0 20px 60px rgba(91, 92, 235, 0.2);
    --radius: 16px;
    --radius-lg: 24px;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
        "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.page {
    min-height: 100vh;
    scroll-snap-align: start;
    position: relative;
}

/* ============ 导航栏 ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(91, 92, 235, 0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-body);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

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

.nav-link.active {
    color: var(--primary);
}

.nav-download {
    padding: 10px 24px;
    background: var(--gradient-1);
    color: #fff;
    border-radius: 100px;
    box-shadow: 0 4px 14px rgba(91, 92, 235, 0.35);
}

.nav-download:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(91, 92, 235, 0.45);
}

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

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ============ 第一页 Hero ============ */
.page-1 {
    background: linear-gradient(180deg, #f5f5ff 0%, #ffffff 100%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(91, 92, 235, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 32px 80px;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-left {
    flex: 1;
    max-width: 560px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(91, 92, 235, 0.1);
    color: var(--primary);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    color: var(--text-dark);
}

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

.hero-desc {
    font-size: 17px;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 32px;
}

.download-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 168px;
}

.btn-ios {
    background: #000;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-ios:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.btn-android {
    background: #3DDC84;
    color: #0d3320;
    box-shadow: 0 6px 20px rgba(61, 220, 132, 0.35);
}

.btn-android:hover {
    background: #2FB86E;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(61, 220, 132, 0.45);
}

/* ============ 手机模型 ============ */
.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    width: 320px;
    height: 620px;
}

.phone-frame {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #2d2d44, #1a1a2e);
    border-radius: 44px;
    padding: 12px;
    box-shadow: var(--shadow-lg), 0 0 0 8px rgba(255, 255, 255, 0.5);
}

.phone-notch {
    width: 120px;
    height: 28px;
    background: #1a1a2e;
    border-radius: 0 0 18px 18px;
    margin: 0 auto;
    position: relative;
}

.phone-notch::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
}

.phone-screen {
    margin-top: 8px;
    height: calc(100% - 50px);
    background: var(--bg-light);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    position: relative;
}

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.screenshot-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: linear-gradient(180deg, #eef0ff 0%, #f8f0ff 100%);
}

.placeholder-icon {
    font-size: 72px;
    opacity: 0.6;
}

.placeholder-text {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.phone-home-indicator {
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    margin: 6px auto 0;
}

/* 浮动卡片 */
.floating-card {
    position: absolute;
    background: #fff;
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-md);
    animation: float 3s ease-in-out infinite;
}

.floating-card .card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--bg-light);
    border-radius: 10px;
}

.floating-card .card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.floating-card .card-sub {
    font-size: 11px;
    color: var(--text-light);
}

.card-1 {
    top: 33%;
    left: -80px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 13%;
    right: -40%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 28%;
    left: -120px;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ============ 滑动提示 ============ */
.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 13px;
    animation: bounceDown 2s ease-in-out infinite;
    z-index: 10;
    cursor: pointer;
}

.scroll-arrow {
    color: var(--primary);
}

@keyframes bounceDown {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) translateY(8px);
        opacity: 0.5;
    }
}

/* ============ 第二页 功能区 ============ */
.page-2 {
    background: var(--bg-light);
    padding: 100px 32px 40px;
    display: flex;
    flex-direction: column;
}

.features-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.features-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.features-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.features-subtitle {
    font-size: 16px;
    color: var(--text-body);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
}

.feature-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s ease;
    position: relative;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(91, 92, 235, 0.15);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #fff;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.icon-1 {
    background: linear-gradient(135deg, #5B5CEB, #8B8DF5);
}

.icon-2 {
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
}

.icon-3 {
    background: linear-gradient(135deg, #10B981, #34D399);
}

.icon-4 {
    background: linear-gradient(135deg, #3B82F6, #60A5FA);
}

.icon-5 {
    background: linear-gradient(135deg, #EF4444, #F87171);
}

.icon-6 {
    background: linear-gradient(135deg, #EC4899, #F472B6);
}

.icon-7 {
    background: linear-gradient(135deg, #06B6D4, #22D3EE);
}

.icon-8 {
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
}

.feature-number {
    position: absolute;
    top: 24px;
    right: 28px;
    font-size: 48px;
    font-weight: 800;
    color: rgba(91, 92, 235, 0.06);
    line-height: 1;
}

.feature-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-desc {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.7;
}

/* 滚动动画 */
.feature-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ Footer ============ */
.footer {
    margin-top: auto;
    padding: 32px 0 24px;
    text-align: center;
    border-top: 1px solid rgba(91, 92, 235, 0.1);
    background: transparent;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.copyright {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

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

.beian a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

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

.beian-divider {
    margin: 0 10px;
    color: #ddd;
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
    .hero {
        padding: 100px 32px 60px;
        gap: 40px;
    }

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

    .phone-mockup {
        width: 280px;
        height: 540px;
    }

    .card-1 {
        left: -40px;
    }

    .card-2 {
        right: -30px;
    }

    .card-3 {
        left: -60px;
    }

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

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #fff;
        padding: 24px 32px;
        gap: 20px;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        /* 收起时彻底不渲染，避免残留的底边和阴影在顶部露出一条白缝 */
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.3s ease, visibility 0.3s;
    }

    .nav-links.open {
        transform: translateY(0);
        visibility: visible;
        pointer-events: auto;
    }

    .hero {
        flex-direction: column;
        padding: 90px 24px 40px;
        text-align: center;
    }

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

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

    .download-btns {
        justify-content: center;
    }

    .btn-download {
        padding: 12px 20px;
        font-size: 14px;
    }

    .phone-mockup {
        width: 240px;
        height: 460px;
        margin-top: 20px;
    }

    .floating-card {
        display: none;
    }

    .scroll-hint {
        bottom: 20px;
        font-size: 12px;
    }

    .page-2 {
        padding: 80px 24px 24px;
    }

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

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

    .feature-card {
        padding: 24px 20px;
    }

    .feature-number {
        font-size: 36px;
        top: 16px;
        right: 20px;
    }

    .feature-title {
        font-size: 17px;
    }
}

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

    .download-btns {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .btn-download {
        justify-content: center;
        padding: 14px 20px;
        font-size: 14px;
    }

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

    .phone-mockup {
        width: 200px;
        height: 380px;
    }

    .page {
        min-height: auto;
    }

    #page-2 {
        min-height: 100vh;
    }
}