:root {
    --brand: #F04E23;
    --brand-dark: #C93B18;
    --brand-rgb: 240, 78, 35;
    --page-bg: #FFF7F3;
    --text: #3D211A;
    --muted: #80675E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 0%, rgba(var(--brand-rgb), 0.13), transparent 34%),
        radial-gradient(circle at 95% 28%, rgba(var(--brand-rgb), 0.08), transparent 30%),
        var(--page-bg);
}

a {
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    padding: 46px 20px 28px;
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 13px;
}

.back-link:hover {
    color: var(--brand);
}

.app-icon {
    display: block;
    width: 108px;
    height: 108px;
    margin: 0 auto 20px;
    border-radius: 25px;
    box-shadow: 0 14px 34px rgba(var(--brand-rgb), 0.25);
}

.app-name {
    margin-bottom: 8px;
    color: var(--brand-dark);
    font-size: 30px;
    line-height: 1.3;
}

.app-desc {
    color: var(--muted);
    font-size: 14px;
}

.download-card,
.tips-card {
    margin-bottom: 18px;
    padding: 28px 25px;
    border: 1px solid rgba(var(--brand-rgb), 0.10);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 34px rgba(var(--brand-rgb), 0.09);
}

.version-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid #F2ECE9;
}

.version-item {
    text-align: center;
}

.version-item + .version-item {
    border-left: 1px solid #F2ECE9;
}

.version-label {
    margin-bottom: 5px;
    color: #9B8C86;
    font-size: 12px;
}

.version-value {
    font-size: 16px;
    font-weight: 600;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    margin-top: 12px;
    padding: 15px 18px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.download-btn:hover {
    transform: translateY(-1px);
}

.download-btn.primary {
    color: #FFF;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 8px 20px rgba(var(--brand-rgb), 0.25);
}

.download-btn.secondary {
    color: var(--brand-dark);
    border: 2px solid var(--brand);
    background: #FFF;
}

.download-notice {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--brand-dark);
    background: rgba(var(--brand-rgb), 0.07);
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}

.tips-title {
    margin-bottom: 12px;
    font-size: 18px;
}

.tips-list {
    list-style: none;
}

.tips-list li {
    position: relative;
    padding: 8px 0 8px 25px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.tips-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand);
    font-weight: 700;
}

.footer {
    padding: 18px 20px 28px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
    text-align: center;
}

.wechat-mask {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    background: rgba(0, 0, 0, 0.86);
}

.wechat-mask.show {
    display: block;
}

.wechat-content {
    position: absolute;
    top: 16px;
    right: 18px;
    width: min(78vw, 360px);
    color: #FFF;
    text-align: right;
}

.wechat-content img {
    display: block;
    width: 100%;
    margin-bottom: 12px;
}

.wechat-content p {
    padding-right: 8px;
    font-size: 15px;
    line-height: 1.8;
}

.wechat-close {
    margin-top: 16px;
    padding: 9px 24px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    color: #FFF;
    background: transparent;
    cursor: pointer;
}

@media (max-width: 375px) {
    .container {
        padding: 0 16px;
    }

    .header {
        padding-top: 34px;
    }

    .app-icon {
        width: 92px;
        height: 92px;
    }

    .app-name {
        font-size: 26px;
    }

    .download-card,
    .tips-card {
        padding: 23px 19px;
    }
}
