@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #fff;
    color: #333;
    overflow-x: hidden;
}

/* 核心容器铺满 */
.app-container {
    width: 100%;
    max-width: 500px; /* 移动端限制最大宽度适配平板桌面 */
    margin: 0 auto;
    background: #000;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    position: relative;
}

/* ============================
   首屏英雄区域 (全屏黑+星空) 
============================ */
.hero-section {
    position: relative;
    width: 100%;
    /* min-height 会根据浏览器自适应铺满视口, 为了保险加一点 */
    height: 100vh;
    min-height: 600px;
    background: #000000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 简易星空噪点背景 */
.stars-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,0.8), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 50px 160px, rgba(255,255,255,0.7), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 90px 40px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 130px 80px, rgba(255,255,255,0.9), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 160px 120px, rgba(255,255,255,0.6), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 200px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 250px 90px, rgba(255,255,255,0.8), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 280px 160px, rgba(255,255,255,0.7), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 320px 40px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 350px 150px, rgba(255,255,255,0.9), rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 380px 80px, rgba(255,255,255,0.8), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 20vw 80vh, rgba(255,255,255,0.8), rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 80vw 60vh, rgba(255,255,255,0.9), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 60vw 90vh, #ffffff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 400px 400px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

/* --- 顶部导航栏 --- */
.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
}
.brand-logo {
    width: 32px;
    height: 32px;
}
.brand-name {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.coin-badge {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 4px 6px 4px 4px;
    gap: 6px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}
.coin-icon {
    width: 20px;
    height: 20px;
}
.plus-btn {
    background: #fff;
    color: #000;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    line-height: 1;
}

/* --- 轮播图片区 --- */
.gallery-wrapper {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    margin-top: -40px; /* 轻微上移平衡视觉中心 */
    overflow: hidden;
    width: 100%;
}
.gallery-track {
    position: relative;
    width: 260px;
    height: 360px;
    perspective: 1000px;
}
.gallery-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 260px;
    height: 360px;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease, box-shadow 0.6s ease, z-index 0.6s;
    opacity: 0;
    transform: translateX(0) scale(0.8);
    pointer-events: none;
    will-change: transform, opacity;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Coverflow Classes */
.gallery-item.prev {
    transform: translateX(-75%) scale(0.8);
    opacity: 0.5;
    z-index: 1;
}

.gallery-item.active {
    transform: translateX(0) scale(1.05);
    opacity: 1;
    z-index: 3;
    box-shadow: 0 0 0 3px #FF4081, 0 0 40px rgba(255, 64, 129, 0.6);
}

.gallery-item.next {
    transform: translateX(75%) scale(0.8);
    opacity: 0.5;
    z-index: 1;
}

.gallery-item.hidden-left {
    transform: translateX(-100%) scale(0.6);
    opacity: 0;
    z-index: 0;
}
.gallery-item.hidden-right {
    transform: translateX(100%) scale(0.6);
    opacity: 0;
    z-index: 0;
}

/* --- 动作和在线人数统计 --- */
.call-to-action {
    position: absolute;
    bottom: 90px; /* 在导航栏之上 */
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 10;
    padding: 0 30px;
}

.online-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #00E676;
    border-radius: 50%;
    position: relative;
}
.pulse-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid #00E676;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    opacity: 0;
}
@keyframes pulse {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

.primary-button {
    width: 100%;
    padding: 16px 0;
    border: none;
    border-radius: 30px;
    background: linear-gradient(90deg, #FF61A6 0%, #FF4081 100%);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 64, 129, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}
.primary-button svg {
    width: 24px;
    height: 24px;
}
.primary-button:active {
    transform: scale(0.97);
    box-shadow: 0 4px 12px rgba(255, 64, 129, 0.4);
}

/* --- 底部吸底导航 --- */
.screen-navbar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(to bottom, rgba(230,240,255,0.7), rgba(210,230,255,1));
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 10;
    border-top: 1px solid rgba(255,255,255,0.3);
}
.nav-btn {
    width: 24px;
    height: 24px;
    color: #8C99AA;
    cursor: pointer;
    transition: color 0.2s;
}
.nav-btn.active {
    color: #4A5568;
}

/* ============================
   页脚（白色信息部分）
============================ */
.company-footer {
    background: #fff;
    padding: 60px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-brand-logo {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
}

.copyright {
    color: #8C99AA;
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.dl-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 240px;
    margin-bottom: 30px;
}
.store-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #F4F6F8;
    color: #333;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s;
}
.store-btn svg {
    width: 24px;
    height: 24px;
}
.store-btn:active {
    background: #E2E8F0;
}

.contact-block {
    margin-bottom: 40px;
    color: #8C99AA;
    font-size: 0.95rem;
    line-height: 1.8;
}

.legal-links {
    color: #333;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
}
.legal-links a {
    color: #333;
    text-decoration: none;
}
.legal-links span.sep {
    color: #CBD5E0;
}

/* 针对部分极小屏幕适配 */
@media (max-width: 360px) {
    .gallery-track {
        width: 220px;
        height: 300px;
    }
    .gallery-item {
        width: 220px;
        height: 300px;
    }
    .primary-button {
        font-size: 1rem;
        padding: 14px 0;
    }
}
