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

html {
    font-size: 16px;
    height: 100%;
}

body {
    font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    background: #00060f url("images/bg.png") no-repeat center top / cover fixed;
    color: #fff;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Header — 375 × 76 */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 76px;
    padding: 0 20px;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

/* Logo 组 — 159.59 × 36 */
.header-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    text-decoration: none;
    flex-shrink: 0;
}

.header-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.header-name {
    font-size: 20px;
    font-weight: 700;
    color: #00e8f0;
    letter-spacing: 0.3px;
    line-height: 1;
    white-space: nowrap;
}

/* 免费下载按钮 — 96 × 36 */
.header-download {
    flex-shrink: 0;
}

.header-download img {
    width: 96px;
    height: 36px;
    object-fit: contain;
    display: block;
}

/* 发布徽章 — 202.13 × 33.13 */
.badge {
    display: flex;
    justify-content: center;
    margin-top: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.badge img {
    width: 202.13px;
    height: 33.13px;
    object-fit: contain;
}

/* Main */
.main {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 5;
    padding: 0 20px;
}

/* Hero */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 100%;
}

.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero-glow-wrap {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-glow {
    position: absolute;
    width: 315px;
    height: 315px;
    object-fit: contain;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-brand {
    position: relative;
    z-index: 2;
    width: min(315px, calc(100vw - 40px));
    height: auto;
    object-fit: contain;
}

/* Slogan */
.slogan {
    width: 100%;
    margin-top: 16px;
    padding: 0 2px;
    flex-shrink: 0;
}

.slogan img {
    width: 100%;
    height: auto;
    display: block;
}

/* 下载按钮 — 260 × 57.33 */
.download {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: auto;
    padding: 20px 0 max(28px, env(safe-area-inset-bottom));
    flex-shrink: 0;
}

.download-btn {
    display: block;
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.download-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.download-btn img {
    width: min(260px, calc(100vw - 40px));
    height: auto;
    aspect-ratio: 260 / 57.33;
    object-fit: contain;
    display: block;
}

/* 微信内打开提示 */
.wechat-mask {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.85);
    align-items: flex-start;
    justify-content: center;
    padding: 60px 24px 0;
}

.wechat-mask.is-show {
    display: flex;
}

.wechat-mask p {
    color: #fff;
    font-size: 16px;
    line-height: 1.8;
    text-align: center;
}

@media (min-width: 768px) {
    .page {
        max-width: 430px;
        box-shadow: 0 0 100px rgba(0, 200, 220, 0.08);
    }
}
