/* 基础重置与盒模型 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 主页面容器 */
.page {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: opacity 0.6s ease;
}

/* Logo 区域 */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.logo-text {
    flex: 1;
    min-width: 0;
}

.title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #fff;
    line-height: 1.3;
}

.subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
}

.badge {
    padding: 0.25rem 0.6rem;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 9999px;
    font-size: 0.75rem;
    color: #fff;
    white-space: nowrap;
}

/* 右侧标签 */
.right-tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.35rem 0.75rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 0.5rem;
    font-size: 0.8rem;
    color: #fff;
}

/* 二维码区域 */
.qrcode-box {
    text-align: center;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    margin: 1rem 0;
    max-width: 100%;
}

.qrcode-box img {
    max-width: 100%;
    width: 160px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.download-tip {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.75rem;
    color: #333;
    
}

.download-subtip {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.25rem;
}

.download {
    margin-top: 0.75rem;
    background-color: #21a53a;
    border-radius: 5px;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    padding: 5px 0;
}

.download a {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    min-height: 44px;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 主文案 */
.main-text {
    text-align: center;
    margin-top: 1.5rem;
    padding: 0 0.5rem;
}

.main-title {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.main-highlight {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 底部提示 */
.bottom-notice {
    margin-top: auto;
    padding: 1rem 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    line-height: 1.4;
    max-width: 100%;
}

/* ========== 移动端小屏适配 ========== */
@media (max-width: 480px) {
    .page {
        padding: 1rem;
    }

    .logo {
        margin-bottom: 1rem;
        gap: 0.5rem;
    }

    .avatar {
        width: 2.5rem;
        height: 2.5rem;
    }

    .title {
        font-size: 1.1rem;
    }

    .subtitle {
        font-size: 0.8rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }

    .right-tag {
        top: 1rem;
        right: 1rem;
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .qrcode-box {
        padding: 1rem;
        margin: 0.75rem 0;
    }

    .qrcode-box img {
        width: 140px;
    }

    .download-tip {
        font-size: 0.95rem;
    }

    .download-subtip {
        font-size: 0.8rem;
    }

    .main-title {
        font-size: 1.1rem;
    }

    .main-highlight {
        font-size: 1.25rem;
    }

    .bottom-notice {
        font-size: 0.75rem;
        padding: 0.75rem 0.25rem;
    }
}

/* ========== 超小屏（如 iPhone SE） ========== */
@media (max-width: 360px) {
    html {
        font-size: 14px;
    }

    .qrcode-box img {
        width: 120px;
    }

    .main-highlight {
        font-size: 1.1rem;
    }
}

/* ========== 平板 / 横屏 可选优化 ========== */
@media (min-width: 768px) {
    .page {
        padding: 2rem;
    }

    .logo {
        margin-bottom: 2rem;
    }

    .avatar {
        width: 3.5rem;
        height: 3.5rem;
    }

    .title {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .qrcode-box img {
        width: 200px;
    }

    .main-title {
        font-size: 1.5rem;
    }

    .main-highlight {
        font-size: 2rem;
    }
}
