/* 复刻 d.omx100.com (qqdemo) 风格:大渐变背景 + 多层光晕 + 巨大白色标题 + 圆形 pill 按钮 */

:root {
    --site-header-height: 92px;
    --font-ui: -apple-system, "system-ui", "Segoe UI", Roboto, "PingFang SC",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --font-cn: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --line: rgba(0, 0, 0, 0.08);
    --hero-top: #0f5cb8;
    --hero-mid: #6d61e8;
    --hero-bottom: #f0d0d8;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-ui);
    color: #111827;
    background: #fff;
    min-width: 320px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { appearance: none; border: 0; background: transparent; font: inherit; cursor: pointer; }
img { display: block; }

/* ── 顶部导航 ─────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    height: var(--site-header-height);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(36px);
    -webkit-backdrop-filter: blur(36px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    width: min(1560px, calc(100% - 56px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
}
.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}
.brand-logo {
    width: 50px;
    height: auto;
}
.brand-name {
    font-family: var(--font-cn);
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    letter-spacing: 0.02em;
}

/* ── Hero 主舞台 ──────────────────────────────── */
.hero-stage {
    position: relative;
    min-height: calc(100dvh - var(--site-header-height));
    overflow: hidden;
    background: linear-gradient(
        180deg,
        var(--hero-top) 0%,
        var(--hero-mid) 46%,
        var(--hero-bottom) 100%
    );
}

.hero-raster, .hero-wash {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-raster {
    background:
        linear-gradient(
            90deg,
            rgba(12, 70, 159, 0.84) 0%,
            rgba(44, 180, 222, 0.62) 31%,
            rgba(122, 84, 230, 0.66) 66%,
            rgba(68, 174, 228, 0.56) 100%
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.14) 0 2.9%,
            rgba(35, 48, 112, 0.26) 2.9% 5.2%
        );
    mix-blend-mode: screen;
    opacity: 0.92;
}

.hero-wash {
    background:
        radial-gradient(circle at 18% 92%, rgba(255, 202, 144, 0.8), transparent 24%),
        radial-gradient(circle at 20% 42%, rgba(108, 221, 255, 0.58), transparent 12%),
        radial-gradient(circle at 45% 58%, rgba(164, 252, 239, 0.28), transparent 16%),
        radial-gradient(circle at 74% 22%, rgba(135, 92, 255, 0.56), transparent 15%),
        radial-gradient(circle at 86% 38%, rgba(91, 221, 246, 0.44), transparent 14%),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.04),
            rgba(255, 255, 255, 0.18) 82%,
            rgba(255, 255, 255, 0.22)
        );
}

.stage-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(44px);
    opacity: 0.62;
    pointer-events: none;
}
.glow-left   { left: 12%; top: 32%; width: 320px; height: 320px; background: rgba(112, 216, 255, 0.5); }
.glow-center { left: 44%; top: 48%; width: 280px; height: 280px; background: rgba(202, 255, 248, 0.24); }
.glow-right  { right: 18%; top: 22%; width: 300px; height: 300px; background: rgba(193, 132, 255, 0.46); }

/* ── 内容容器 ─────────────────────────────────── */
.hero-content {
    position: relative;
    z-index: 1;
    width: min(1440px, calc(100% - 32px));
    min-height: calc(100dvh - var(--site-header-height));
    margin: 0 auto;
    padding: clamp(24px, 3vh, 34px) 0 24px;
    display: grid;
    grid-template-areas: "stack";
    align-items: stretch;
    justify-items: center;
    text-align: center;
}

.hero-main {
    grid-area: stack;
    width: 100%;
    max-width: 1080px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: center;
}

/* ── 巨型标题 ─────────────────────────────────── */
.hero-content h1 {
    font-family: var(--font-cn);
    position: relative;
    z-index: 0;
    color: #fff;
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 24px);
    font-size: clamp(68px, 7.4vw, 114px);
    line-height: 1;
    letter-spacing: 0.01em;
    font-weight: 400;
    text-shadow:
        0 0 18px rgba(255, 255, 255, 0.74),
        0 0 42px rgba(255, 255, 255, 0.4),
        0 0 86px rgba(132, 240, 255, 0.34),
        0 0 128px rgba(186, 146, 255, 0.22),
        0 10px 30px rgba(66, 89, 170, 0.2);
}

.hero-content h1::before {
    content: "";
    position: absolute;
    inset: 12% -10%;
    z-index: -1;
    border-radius: 999px;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.46) 0%,
            rgba(193, 245, 255, 0.3) 28%,
            rgba(173, 139, 255, 0.24) 52%,
            rgba(173, 139, 255, 0.12) 68%,
            transparent 82%);
    filter: blur(40px);
    opacity: 1;
    pointer-events: none;
}

.hero-brand { letter-spacing: 0.05em; }
.hero-slogan { letter-spacing: 0.03em; }

/* ── 圆形下载按钮 ─────────────────────────────── */
.download-pill {
    font-family: var(--font-ui);
    position: relative;
    overflow: hidden;
    margin-top: clamp(26px, 4vh, 34px);
    min-width: min(548px, calc(100vw - 48px));
    min-height: 82px;
    padding: 20px 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 600;
    box-shadow: 0 24px 40px rgba(63, 61, 107, 0.2);
    transform: translateZ(0);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease;
}

.download-pill::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .download-pill:not(:disabled):hover {
        background: rgba(255, 255, 255, 1);
        box-shadow:
            0 4px 25px rgba(255, 255, 255, 0.78),
            0 24px 44px rgba(63, 61, 107, 0.24);
        transform: scale(1.05);
    }
    .download-pill:not(:disabled):hover::before { opacity: 1; }
}

.download-pill:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: 0 18px 30px rgba(63, 61, 107, 0.14);
}

.download-icon {
    width: 44px; height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid currentColor;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
}

.download-version {
    font-family: var(--font-ui);
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 20px;
    font-weight: 600;
    min-height: 24px;
}

/* ── 底部平台行 ───────────────────────────────── */
.hero-bottom {
    grid-area: stack;
    width: min(900px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    align-self: end;
}

.platform-row {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 28px 34px;
}

.platform-item {
    min-width: 172px;
    padding: 14px 18px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    border-radius: 20px;
    color: rgba(0, 0, 0, 0.5);
    transition:
        transform 0.2s ease,
        color 0.2s ease,
        opacity 0.2s ease,
        background-color 0.2s ease;
}

.platform-item:not(.unavailable):hover,
.platform-item.active {
    color: rgba(0, 0, 0, 0.78);
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.platform-item.unavailable {
    color: rgba(0, 0, 0, 0.42);
    cursor: default;
}

.platform-icon {
    width: 30px; height: 30px;
    object-fit: contain;
    opacity: 0.78;
}

.platform-item:not(.unavailable):hover .platform-icon,
.platform-item.active .platform-icon {
    opacity: 0.92;
}

.platform-copy {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-align: left;
}

.platform-label {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.platform-status {
    color: rgba(0, 0, 0, 0.48);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

/* ── 页脚 ─────────────────────────────────────── */
.hero-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(0, 0, 0, 0.62);
}

.hero-copyright {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    line-height: 1.6;
    font-size: 13px;
}

/* ── 响应式:手机端精修 ─────────────────────── */
@media (max-width: 768px) {
    .header-inner { width: calc(100% - 32px); }
    .brand-logo { width: 36px; }
    .brand-name { font-size: 20px; }

    .hero-content {
        width: calc(100% - 24px);
        padding: 20px 0 20px;
    }

    .hero-content h1 {
        flex-direction: column;
        gap: 6px;
        font-size: clamp(46px, 14vw, 72px);
        line-height: 1.05;
    }

    .download-pill {
        min-width: calc(100vw - 32px);
        min-height: 64px;
        font-size: 19px;
        padding: 14px 22px;
        margin-top: 22px;
        gap: 10px;
    }
    .download-icon { width: 32px; height: 32px; font-size: 20px; border-width: 2px; }

    .download-version {
        font-size: 14px;
        padding: 0 16px;
        margin-top: 12px;
        word-break: keep-all;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero-bottom {
        gap: 12px;
        padding: 0 8px;
    }

    /* 平台行:小屏 2 列 grid 更整齐,不用 flex-wrap */
    .platform-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        width: 100%;
    }
    .platform-item {
        min-width: 0;
        padding: 10px 10px;
        gap: 10px;
        border-radius: 14px;
        justify-content: flex-start;
    }
    .platform-icon { width: 24px; height: 24px; flex-shrink: 0; }
    .platform-copy { gap: 1px; min-width: 0; flex: 1; }
    .platform-label { font-size: 14px; line-height: 1.2; }
    .platform-status {
        font-size: 11px;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero-copyright { font-size: 11px; padding: 0 16px; }
}

@media (max-width: 380px) {
    .hero-content h1 { font-size: 42px; }
    .download-pill { font-size: 17px; min-height: 58px; }
    .platform-label { font-size: 13px; }
    .platform-status { font-size: 10px; }
}
