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

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #fff;
    background: #1a1035;
}

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

ul {
    list-style: none;
}

/* 星空背景 */
.stars, .stars2, .stars3 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.stars {
    background:
        radial-gradient(1px 1px at 20px 30px, #fff, transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 50px 160px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 160px 120px, #fff, transparent),
        radial-gradient(1.5px 1.5px at 200px 50px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 250px 180px, #fff, transparent),
        radial-gradient(1px 1px at 300px 100px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1.5px 1.5px at 350px 200px, #fff, transparent),
        radial-gradient(1px 1px at 400px 150px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 450px 50px, #fff, transparent),
        radial-gradient(1px 1px at 500px 220px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1.5px 1.5px at 550px 100px, #fff, transparent),
        radial-gradient(1px 1px at 600px 180px, rgba(255,255,255,0.6), transparent);
    background-size: 650px 250px;
    animation: twinkle 8s ease-in-out infinite;
}

.stars2 {
    background:
        radial-gradient(1px 1px at 25px 50px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1.5px 1.5px at 80px 120px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 150px 200px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 220px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1.5px 1.5px at 300px 150px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 380px 50px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 450px 180px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1.5px 1.5px at 520px 100px, rgba(255,255,255,0.6), transparent);
    background-size: 550px 220px;
    animation: twinkle 12s ease-in-out infinite reverse;
}

.stars3 {
    background:
        radial-gradient(2px 2px at 100px 100px, rgba(255,180,100,0.6), transparent),
        radial-gradient(2px 2px at 400px 200px, rgba(100,180,255,0.6), transparent),
        radial-gradient(2px 2px at 250px 50px, rgba(255,100,180,0.5), transparent);
    background-size: 500px 250px;
    animation: twinkle 15s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 50px;
    height: 80px;
    display: flex;
    align-items: center;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(26, 16, 53, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: bold;
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

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

.nav-links a {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #a78bfa;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #a78bfa;
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-right .btn-download {
    padding: 10px 24px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-right .btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
}

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

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: 0.3s;
}

/* 页面指示器 */
.page-indicator {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-indicator .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.page-indicator .dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.page-indicator .dot.active {
    background: #8b5cf6;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* 全屏页面容器 */
.fullpage-container {
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.page {
    height: 100vh;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: translateY(50px);
    background: transparent;
    overflow: hidden;
}

.page.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.page.prev {
    transform: translateY(-50px);
}

.page-content {
    width: 100%;
    max-width: 1200px;
    padding: 0 50px;
    z-index: 10;
}

/* 动画类 */
.animate-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.page.active .animate-up,
.page.active .animate-right {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* 第一屏：首页 */
.page-home {
    background: transparent;
}

/* 全局视频背景 */
.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

/* 右上角企业微信 */
.contact-qrcode {
    position: absolute;
    top: 100px;
    right: 40px;
    z-index: 10;
    text-align: center;
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
}

.contact-qrcode span {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}

.contact-qrcode img {
    width: 100px;
    height: 100px;
    display: block;
    border-radius: 5px;
    object-fit: cover;
    transform: scale(1.05);
}

/* 中间主内容 */
.hero-center {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-center::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 750px;
    height: 750px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.05);
    z-index: -1;
    pointer-events: none;
}

.hero-title-en {
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 8px;
    margin: 0;
    line-height: 1.2;
}

.hero-title-cn {
    font-size: 32px;
    color: #a78bfa;
    margin: 30px 0 50px;
    letter-spacing: 4px;
}

.download-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.download-arrow {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
    animation: arrowBounce 1.5s infinite;
}

.download-arrow svg {
    width: 100%;
    height: 100%;
    stroke: rgba(255, 255, 255, 0.6);
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

.download-qrcode {
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
}

.download-qrcode img {
    width: 150px;
    height: 150px;
    display: block;
}

/* 左下角公司信息 */
.company-info {
    position: absolute;
    bottom: 30px;
    left: 40px;
    z-index: 10;
}

.company-info p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin: 5px 0;
    line-height: 1.6;
}

/* 毛玻璃卡片 */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
}

/* 第二屏：功能特点 */
.page-features {
    /* 不要设置 position: relative，保持 .page 的 absolute 定位 */
}

.features-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: 1400px;
    padding: 100px 40px 80px;
    position: relative;
    z-index: 10;
}

/* SVG 连线容器 */
.leader-lines-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.leader-lines-svg line {
    stroke: rgba(255, 255, 255, 0.6);
    stroke-width: 2;
}

.leader-lines-svg circle {
    fill: #fff;
}

.features-left,
.features-right {
    flex: 1;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.features-left {
    align-items: flex-end;
    z-index: 10;
}

.features-right {
    align-items: flex-start;
    z-index: 10;
}

.features-phone {
    flex: 0 0 auto;
    position: relative;
}

.features-phone::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 750px;
    height: 750px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.05);
    z-index: -1;
    pointer-events: none;
}

.features-phone img {
    height: 70vh;
    max-height: 580px;
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

/* 手机锚点 - 指示线终点（隐藏，仅用于定位） */
.phone-anchor {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* 近期行程锚点 - 手机左侧 */
#anchor-schedule {
    left: 0;
    top: 75%;
}

/* 数字人 Kikooo 锚点 - 手机右上部 */
#anchor-kikooo {
    right: 0;
    top: 30%;
}

/* 记忆相册锚点 - 手机右下部 */
#anchor-album {
    right: 0;
    top: 70%;
}

/* === 第二组锚点 (page3) === */
/* 预设场景卡片锚点 - 指向手机中上部场景卡片区域 */
#anchor-scene {
    left: 0;
    top: 38%;
}

/* 双模式交互锚点 - 指向手机底部左侧语音按钮 */
#anchor-mode {
    left: 15%;
    top: 88%;
}

/* 全维度需求覆盖锚点 - 指向手机中间偏下区域 */
#anchor-coverage {
    right: 0;
    top: 55%;
}

/* === 第三组锚点 (page4) === */
/* 城市快速选型 - 指向手机左侧中部 */
#anchor-city {
    left: 0;
    top: 55%;
}

/* 亲子景点精选 - 指向手机右上部城市卡片区域 */
#anchor-spot {
    right: 0;
    top: 32%;
}

/* 一键行程落地 - 指向手机底部"生成行程"按钮 */
#anchor-generate {
    right: 20%;
    top: 82%;
}

/* === 第四组锚点 (page5) === */
/* 智能预警 - 指向手机左上部 */
#anchor-warning {
    left: 0;
    top: 32%;
}

/* 链路节点管理 - 指向手机左下部 */
#anchor-node {
    left: 0;
    top: 65%;
}

/* 儿童专属任务 - 指向手机右上部 */
#anchor-task {
    right: 0;
    top: 32%;
}

/* 日历同步 - 指向手机右下部 */
#anchor-sync {
    right: 0;
    top: 75%;
}

.feature-card {
    padding: 20px 25px;
    transition: all 0.3s;
    position: relative;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.15);
}

.feature-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 600;
}

.feature-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
}


/* 底部页面指示点 */
.page-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 10;
}

.dot-line {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s;
}

.dot-line:hover {
    background: rgba(255, 255, 255, 0.5);
}

.dot-line.active {
    background: #fff;
}

.section-title {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 60px;
}

/* 第三屏：应用截图 */
.page-screenshots .page-content {
    text-align: center;
}

.screenshots-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
}

.screenshot-phone {
    transition: all 0.3s;
}

.screenshot-phone .phone-frame {
    width: 220px;
    height: 440px;
    background: linear-gradient(135deg, #3d2a6d, #2d1b69);
    border-radius: 35px;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.screenshot-phone .screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #2d1b69, #1a1035);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
}

.screenshot-phone.center {
    transform: scale(1.15);
    z-index: 10;
}

.screenshot-phone.center .phone-frame {
    box-shadow: 0 30px 60px rgba(139, 92, 246, 0.2);
}

/* 第四屏：下载 */
.page-download .page-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding-top: 80px;
    position: relative;
}

.page-download .page-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 750px;
    height: 750px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.05);
    z-index: -1;
    pointer-events: none;
}

.download-content {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 60px;
}

.qrcode-box {
    text-align: center;
}

.qrcode {
    width: 180px;
    height: 180px;
    background: #fff;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 14px;
    margin-bottom: 15px;
}

.qrcode-box p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 35px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    transition: all 0.3s;
    min-width: 220px;
}

.download-btn:hover {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-color: transparent;
    transform: translateX(5px);
}

.download-btn .icon {
    font-size: 24px;
    font-weight: bold;
}

.download-btn .text {
    text-align: left;
}

.download-btn .text small {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.download-btn:hover .text small {
    color: rgba(255, 255, 255, 0.9);
}

.download-btn .text strong {
    font-size: 16px;
}

/* 页脚 */
.footer {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #a78bfa;
}

.copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
}

/* 响应式 */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }

    .nav-links, .nav-right {
        display: none;
    }

    .nav-links.active {
        display: flex;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(26, 16, 53, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .menu-toggle {
        display: flex;
    }

    .page-indicator {
        right: 15px;
    }

    .page-content {
        padding: 0 20px;
    }

    /* 第一屏移动端 */
    .hero-title-en {
        font-size: 32px;
        letter-spacing: 4px;
    }

    .hero-title-cn {
        font-size: 20px;
        margin: 20px 0 30px;
    }

    .contact-qrcode {
        top: 90px;
        right: 15px;
    }

    .contact-qrcode img {
        width: 70px;
        height: 70px;
    }

    .download-qrcode img {
        width: 120px;
        height: 120px;
    }

    .company-info {
        left: 15px;
        bottom: 20px;
    }

    .company-info p {
        font-size: 10px;
    }

    /* 第二屏移动端 */
    .features-layout {
        flex-direction: column;
        padding: 100px 20px 80px;
        gap: 30px;
    }

    .features-phone img {
        height: 40vh;
        max-height: 350px;
    }

    .features-desc {
        max-width: 100%;
    }

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

    .feature-card p {
        font-size: 12px;
    }

    /* 移动端隐藏锚点 */
    .phone-anchor {
        display: none;
    }

    .features-left,
    .features-right {
        max-width: 100%;
        align-items: stretch;
    }

    .page-dots {
        bottom: 20px;
    }

    .dot-line {
        width: 40px;
    }

    .screenshots-wrapper {
        flex-direction: column;
    }

    .screenshot-phone.center {
        transform: scale(1);
    }

    .download-content {
        flex-direction: column;
        gap: 40px;
    }

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