/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background-color: #131313;
    color: #e5e2e1;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Container */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    background: url(./background.png);
    background-size: cover;
    background-position: center;
}

.background-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

/* Main Content */
.main-content {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 130px 0 64px;
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 896px;
    padding: 0 40px;
    margin-bottom: 40px;
}

/* Badge */
.badge-container {
    display: flex;
    justify-content: center;
    padding-bottom: 17px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 16px;
}

.badge-icon {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #ffb0d0 0%, #dcb8ff 100%);
    border-radius: 4px;
}

.badge-text {
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Heading */
.heading-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.heading {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 500;
    text-align: center;
    line-height: 1.14;
    color: #e5e2e1;
    letter-spacing: -1.1px;
}

.gradient-text {
    background: linear-gradient(90deg, #ffb0d0 0%, #dcb8ff 50%, #ffb0d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Description */
.description-container {
    opacity: 0.8;
}

.description {
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 400;
    text-align: center;
    line-height: 1.625;
    color: #dcbfc9;
    max-width: 784px;
}

/* CTA Button */
.cta-container {
    display: flex;
    justify-content: center;
}

.cta-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 40px;
    background: linear-gradient(90deg, #ff84c3 0%, #e9b5ee 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 132, 195, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 132, 195, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-icon {
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23131313'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.cta-text {
    font-size: 16px;
    font-weight: 500;
    color: #131313;
}

/* Download Section */
.download-section {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 20px;
    margin-bottom: 40px;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 25px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(64, 64, 64, 0.5);
    border-radius: 24px;
    backdrop-filter: blur(6.45px);
    width: 510px;
    flex: 1;
    position: relative;
    z-index: 9;
}

.icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.ios-icon {
    width: 26px;
    height: 26px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.74 1.18 0 2.21-.93 3.69-.74 1.6.21 2.92.81 3.65 1.91-3.38 1.91-2.81 6.66.58 8.09zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.android-icon {
    width: 25px;
    height: 25px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M17.523 15.3414c-.5511 0-.9995-.4485-.9995-.9995s.4485-.9995.9995-.9995c.5511 0 .9995.4485.9995.9995s-.4485.9995-.9995.9995m-11.046 0c-.5511 0-.9995-.4485-.9995-.9995s.4485-.9995.9995-.9995c.5511 0 .9995.4485.9995.9995s-.4484.9995-.9995.9995m11.4045-6.02s.8515-.9785 1.0175-1.444c-1.1385-.562-2.215-1.2035-3.245-1.911.7295.984.384 1.6495.384 1.6495l-1.0975.414c.425-.7795.9585-1.4875 1.5975-2.107C15.251 5.144 13.904 4.85 12.5 4.85s-2.751.294-4.5375 1.0725c.639.6195 1.1725 1.3275 1.5975 2.107l-1.0975-.414s-.3455-.6655.384-1.6495c-1.03.7075-2.1065 1.349-3.245 1.911.166.4655 1.0175 1.444 1.0175 1.444S5.0535 10.9395 5.0535 13c0 4.1015 3.3435 7.445 7.445 7.445h.001c4.1015 0 7.445-3.3435 7.445-7.445 0-2.0605-2.6585-3.6786-2.6585-3.6786m-4.6285-5.0545l.9635-.625c.2455-.1625.5695-.091.7355.1545l.3535.527c.166.2455.091.5695-.1545.7355l-.9635.625c-.2455.1625-.5695.091-.7355-.1545l-.3535-.527c-.166-.2455-.091-.5695.1545-.7355m-6.292 0l-.3535.527c-.166.2455-.49.317-.7355.1545l-.9635-.625c-.2455-.166-.3205-.49-.1545-.7355l.3535-.527c.166-.2455.49-.317.7355-.1545l.9635.625c.2455.1625.3205.49.1545.7355'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    gap: 6px;
    flex: 1;
    position: relative;
    z-index: 99;
}

.card-title {
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
}

.download-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
}

.download-button.active {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.download-button.active:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

.download-button.coming-soon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
}

.download-icon {
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23131313'%3E%3Cpath d='M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.download-button.coming-soon .download-icon {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23dcbfc9'%3E%3Cpath d='M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.download-text {
    font-size: 12px;
    font-weight: 500;
    color: #131313;
}

.download-button.coming-soon .download-text {
    color: #dcbfc9;
}

/* Stats Section */
.stats-section {
    width: 100%;
    max-width: 1200px;
    padding: 65px 0 64px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin: 0 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 64px;
    justify-items: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-number {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 500;
    text-align: center;
    letter-spacing: -0.8px;
}

.stat-number.pink {
    color: #ffb0d0;
}

.stat-number.purple {
    color: #dcb8ff;
}

.stat-number.yellow {
    color: #ffdc21;
}

.stat-number.white {
    color: #ffffff;
}

.stat-label {
    font-size: clamp(12px, 1.5vw, 14px);
    font-weight: 400;
    color: #dcbfc9;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-section {
        padding: 0 30px;
    }

    .download-card {
        min-width: 240px;
    }

    .stats-grid {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 80px 0 40px;
    }

    .hero-section {
        gap: 16px;
        margin-bottom: 30px;
    }

    .badge {
        padding: 3px 12px;
    }

    .badge-text {
        font-size: 14px;
    }

    .heading {
        font-size: 28px;
    }

    .description {
        font-size: 14px;
    }

    .cta-button {
        padding: 10px 32px;
    }

    .cta-text {
        font-size: 14px;
    }

    .download-section {
        flex-direction: column;
        gap: 12px;
    }

    .download-card {
        min-width: 100%;
        max-width: 100%;
    }

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

    .stats-section {
        padding: 40px 0;
    }

    .qr-wrapper {
        width: 120px;
        height: 120px;
        padding: 16px;
    }

    .qr-code {
        width: 88px;
        height: 88px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 0 20px;
    }

    .heading {
        font-size: 24px;
    }

    .description {
        font-size: 13px;
    }

    .cta-button {
        padding: 8px 24px;
    }

    .stats-grid {
        gap: 16px;
    }

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

    .stat-label {
        font-size: 12px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.hero-section>* {
    animation: fadeInUp 0.6s ease-out forwards;
}

.hero-section>*:nth-child(1) {
    animation-delay: 0.1s;
    opacity: 0;
}

.hero-section>*:nth-child(2) {
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-section>*:nth-child(3) {
    animation-delay: 0.3s;
    opacity: 0;
}

.hero-section>*:nth-child(4) {
    animation-delay: 0.4s;
    opacity: 0;
}

.download-card {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

.download-card:nth-child(1) {
    animation-delay: 0.5s;
}

.download-card:nth-child(2) {
    animation-delay: 0.6s;
}

.stats-section {
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: 0.7s;
    opacity: 0;
}

/* ---------- 二维码容器 (新增) ---------- */
.qr-wrapper {
    position: absolute;
    top: 30px;
    left: 120px;
    width: 100%;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 0;
    /* 初始高度为0，由内容撑开 */
    transition: all 0.25s ease;
    z-index: 9999999;
}

.qr-inner {
    background: white;
    padding: 0.8rem;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    display: none;
    /* 默认隐藏 */
    line-height: 0;
    transition: 0.2s;
}

.qr-inner.show {
    display: block;
    /* 显示时由 JS 控制 */
    animation: fadeUp 0.3s ease;
}

#qrcode-android {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 140px;
    height: 140px;
}

#qrcode-android img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(6px) scale(0.96);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}