:root {
    --bg: #fbf7ff;
    --bg-soft: #f4f1ff;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-solid: #ffffff;
    --text: #27243a;
    --muted: #736f86;
    --line: rgba(118, 111, 150, 0.18);
    --pink: #f5a7d4;
    --lavender: #9ea7ff;
    --blue: #8ec7ff;
    --accent: #7a6ff0;
    --accent-strong: #5f55d9;
    --shadow: 0 24px 70px rgba(112, 104, 160, 0.18);
    --radius: 24px;
    --primary-color: var(--accent);
    --secondary-color: var(--pink);
    --text-primary: var(--text);
    --text-secondary: var(--muted);
    --bg-primary: rgba(255, 255, 255, 0.72);
    --bg-secondary: rgba(255, 255, 255, 0.86);
    --bg-tertiary: rgba(122, 111, 240, 0.1);
    --border-color: var(--line);
    --shadow-md: 0 12px 28px rgba(112, 104, 160, 0.12);
    --shadow-lg: 0 18px 48px rgba(112, 104, 160, 0.14);
    --shadow-xl: var(--shadow);
    --radius-lg: 16px;
    --radius-2xl: var(--radius);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--bg);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    padding-bottom: 96px;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 8%, rgba(245, 167, 212, 0.42), transparent 28%),
        radial-gradient(circle at 88% 12%, rgba(142, 199, 255, 0.38), transparent 30%),
        linear-gradient(135deg, #fff8fb 0%, #f7f5ff 48%, #eef7ff 100%);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.site-header {
    position: fixed;
    left: 50%;
    bottom: max(16px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(1120px, calc(100% - 32px));
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.36)),
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.95), transparent 34%),
        radial-gradient(circle at 82% 100%, rgba(158, 167, 255, 0.3), transparent 42%);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.92),
        inset 0 -18px 38px rgba(122, 111, 240, 0.09),
        0 18px 54px rgba(95, 85, 217, 0.18),
        0 4px 18px rgba(39, 36, 58, 0.08);
    backdrop-filter: blur(28px) saturate(180%) contrast(108%);
    -webkit-backdrop-filter: blur(28px) saturate(180%) contrast(108%);
    overflow: hidden;
}

.site-header::before,
.site-header::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.site-header::before {
    inset: 1px;
    border-radius: inherit;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.76), transparent 28%),
        linear-gradient(280deg, rgba(255, 255, 255, 0.32), transparent 34%);
    opacity: 0.72;
}

.site-header::after {
    left: 14%;
    right: 14%;
    top: 5px;
    height: 1px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 28px rgba(255, 255, 255, 0.48);
}

.brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding-left: 4px;
    font-weight: 800;
}

.brand img {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 22px rgba(122, 111, 240, 0.22);
}

.site-nav {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav a {
    border-radius: 999px;
    padding: 10px 14px;
    color: rgba(39, 36, 58, 0.7);
    font-size: 14px;
    font-weight: 700;
}

.site-nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.48);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.44);
}

.compact-section {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
    align-items: center;
    gap: 42px;
    padding: 88px 0 44px;
}

.eyebrow,
.entry-label {
    margin: 0;
    color: var(--accent-strong);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 900;
}

.hero h1 {
    margin: 12px 0 0;
    font-size: clamp(44px, 8vw, 82px);
    line-height: 0.98;
    letter-spacing: 0;
}

.hero-text {
    max-width: 620px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn,
.down-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    padding: 0 22px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.primary,
.down-btn {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #8b7cff);
    box-shadow: 0 14px 30px rgba(122, 111, 240, 0.28);
}

.secondary {
    color: var(--accent-strong);
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid var(--line);
}

.hero-icon-card {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 360px;
    border: 1px solid var(--line);
    border-radius: 36px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.54)),
        radial-gradient(circle at 24% 20%, rgba(245, 167, 212, 0.55), transparent 32%),
        radial-gradient(circle at 78% 72%, rgba(142, 199, 255, 0.45), transparent 34%);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-icon-card img {
    width: min(72%, 260px);
    aspect-ratio: 1;
    border-radius: 34px;
    object-fit: cover;
    box-shadow: 0 24px 58px rgba(92, 84, 160, 0.22);
}

.quick-grid,
.download-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 30px 0 52px;
}

.entry-card,
.download-card,
.notice,
.legal-document {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 18px 48px rgba(112, 104, 160, 0.12);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.entry-card,
.download-card {
    min-width: 0;
    padding: 24px;
}

.entry-card:hover,
.download-card:hover {
    border-color: rgba(122, 111, 240, 0.28);
    box-shadow: var(--shadow);
}

.entry-card h2,
.notice h2,
.platform-title {
    margin: 10px 0 0;
    font-size: 24px;
    line-height: 1.2;
}

.entry-card p,
.notice p,
.intro-section p,
.feature-card p,
.platform-features {
    color: var(--muted);
    line-height: 1.75;
}

.intro-section {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 28px;
    align-items: start;
    margin-bottom: 18px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 18px 48px rgba(112, 104, 160, 0.12);
}

.intro-section h2 {
    margin: 10px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
}

.intro-section p {
    margin: 0;
    font-size: 17px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.feature-card {
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 38px rgba(112, 104, 160, 0.1);
}

.feature-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 30px;
    border-radius: 999px;
    color: var(--accent-strong);
    background: rgba(122, 111, 240, 0.1);
    font-size: 12px;
    font-weight: 900;
}

.feature-card h2 {
    margin: 16px 0 0;
    font-size: 21px;
    line-height: 1.2;
}

.feature-card p {
    margin: 12px 0 0;
    font-size: 15px;
}

.notice {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    margin-bottom: 64px;
    padding: 28px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 42px;
    color: var(--muted);
    font-size: 14px;
}

.site-footer div {
    display: flex;
    gap: 16px;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.76);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(1120px, calc(100% - 32px));
    min-height: 64px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 14px;
    color: var(--accent-strong);
    background: rgba(255, 255, 255, 0.72);
    font-weight: 800;
}

.nav-title {
    font-weight: 900;
}

.nav-actions {
    display: flex;
    justify-content: flex-end;
}

.theme-toggle {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 14px;
    color: var(--muted);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.72);
}

.main-content {
    min-height: 100vh;
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    color: #fff;
    background: var(--accent);
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 14px 28px rgba(122, 111, 240, 0.24);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

.download-main {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0 40px;
}

.page-title {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 24px;
    margin-bottom: 24px;
}

.page-title h1 {
    margin: 8px 0 0;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1;
}

.page-title p {
    max-width: 620px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}

.page-title img {
    width: 92px;
    height: 92px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 16px 36px rgba(122, 111, 240, 0.22);
}

.download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 16px;
}

.platform-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    color: var(--accent-strong);
    background: rgba(122, 111, 240, 0.1);
}

.platform-features {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 22px 0;
    list-style: none;
}

.platform-features li {
    display: flex;
    gap: 10px;
}

.platform-features li::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    margin-top: 0.72em;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--lavender));
}

.down-btn {
    width: 100%;
    font-size: 16px;
}

.fallback-hint {
    display: inline-flex;
    margin-top: 12px;
    padding: 0;
    color: var(--muted);
    cursor: pointer;
    background: transparent;
    border: 0;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.support-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 8px 0 56px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 860px) {
    body {
        padding-bottom: 132px;
    }

    .site-header {
        align-items: center;
        border-radius: 30px;
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }

    .site-nav {
        width: 100%;
        justify-content: space-between;
    }

    .hero,
    .intro-section,
    .notice,
    .page-title {
        grid-template-columns: 1fr;
    }

    .hero {
        gap: 24px;
        padding-top: 56px;
    }

    .hero-icon-card {
        min-height: 260px;
    }

    .quick-grid,
    .feature-grid,
    .download-grid {
        grid-template-columns: 1fr;
    }

    .support-card,
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 460px) {
    .compact-section,
    .download-main,
    .site-header,
    .site-footer {
        width: min(100% - 24px, 1120px);
    }

    .site-nav a {
        padding: 9px 10px;
    }

    .entry-card,
    .download-card,
    .notice {
        padding: 20px;
    }
}
