* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    color: #eaf0ff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* 背景图 */
.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: url("./bg.jpg") center center / cover no-repeat;
}
.bg-gradient::after{
    content:"";
    position:absolute;
    inset:0;
    background-color:rgba(9,14,24,0.65);
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 1.2rem;
    max-width: 720px;
}

.main-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
        rgba(17, 25, 45, 0.62);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    border-radius: 26px;
    padding: 2.4rem 2.2rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 18px 55px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -1px 0 rgba(95, 115, 145, 0.12);
    text-align: center;
    opacity: 0;
    transform: translateY(18px);
    animation: pageFadeIn 0.85s ease forwards;
}

@keyframes pageFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header .sub-title {
    font-size: 0.92rem;
    color: #aeb7d0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

h1 {
    font-size: clamp(1.8rem, 5.8vw, 3.2rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 1.8rem;
    background: linear-gradient(90deg, #dfefff, #ffffff, #c6d8ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 18px rgba(126, 177, 255, 0.35);
}

.success-notice {
    color: #a7ffc2;
    font-size: 1rem;
    margin-bottom: 1.2rem;
    text-shadow: 0 0 12px rgba(167, 255, 194, 0.45);
}

.desc {
    font-size: 1rem;
    line-height: 1.85;
    color: #cbd5ff;
    margin-bottom: 2.2rem;
}

.button-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.download-btn {
    position: relative;
    overflow: hidden;
    padding: 1rem 2.2rem;
    font-size: 1.15rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.08)),
        rgba(95, 115, 145, 0.28);
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.32),
        inset 0 1px 1px rgba(255, 255, 255, 0.35),
        inset 0 -5px 12px rgba(37, 45, 55, 0.45);
    cursor: pointer;
    transition:
        transform 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.download-btn .btn-glow {
    position: absolute;
    inset: -2px;
    border-radius: 999px;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.32), transparent 70%);
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
}

.download-btn:hover {
    transform: translateY(-5px) scale(1.04);
    border-color: rgba(255, 255, 255, 0.35);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.12)),
        rgba(115, 145, 180, 0.35);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.38),
        inset 0 1px 1px rgba(255, 255, 255, 0.45),
        inset 0 -5px 12px rgba(45, 55, 68, 0.55);
}

.download-btn:hover .btn-glow {
    opacity: 1;
}

.download-btn:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow:
        0 5px 14px rgba(0, 0, 0, 0.35),
        inset 0 1px 1px rgba(255, 255, 255, 0.25),
        inset 0 -3px 8px rgba(30, 38, 46, 0.45);
}

.download-area {
    animation: fadeBlock 0.65s ease;
}

@keyframes fadeBlock {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-footer {
    margin-top: 2.2rem;
    font-size: 0.82rem;
    color: #64748b;
}

/* ========== 左上角赞助按钮 ========== */
.sponsor-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 99;
    padding: 0.7rem 1.4rem;
    font-size: 1rem;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, rgba(255,255,255,0.28),rgba(255,255,255,0.06)),rgba(180,90,120,0.3);
    border:1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(16px);
    cursor: pointer;
    transition: all 0.22s ease;
}
.sponsor-btn:hover{
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(255,255,255,0.35),rgba(255,255,255,0.1)),rgba(210,100,140,0.38);
}

/* ========== 通用弹窗样式 ========== */
.sponsor-modal, .age-modal{
    position: fixed;
    inset:0;
    background:rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    z-index:100;
    display:none;
    align-items:center;
    justify-content:center;
    padding:1rem;
}
/* 年龄校验弹窗默认直接显示 */
.age-modal {
    display: flex;
    z-index:101;
}

.modal-box{
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)), rgba(17, 25, 45, 0.72);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding:2rem;
    text-align:center;
    max-width:400px;
    width:100%;
}
.age-box{
    padding:2.6rem 2rem;
}
.age-title{
    font-size:1.7rem;
    color:#ffffff;
    margin-bottom:2rem;
}
.avatar{
    width:120px;
    height:120px;
    border-radius:50%; /* 正方形图片自动裁成圆形 */
    object-fit:cover;
    border: 2px solid rgba(255,255,255,0.25);
    margin-bottom:1rem;
}
.name{
    font-size:1.4rem;
    color:#fff;
    margin-bottom:1.8rem;
}
.modal-btn-group{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    justify-content:center;
}

/* 手机适配 */
@media (max-width: 640px) {
    .main-card {
        padding: 1.8rem 1.4rem;
    }
    h1 {
        font-size: clamp(1.5rem, 5.2vw, 2.4rem);
    }
    .download-btn {
        width: 100%;
        max-width: 280px;
    }
    .button-group {
        flex-direction: column;
        align-items: center;
    }
    .modal-btn-group{
        flex-direction:column;
    }
}
