:root {
    color-scheme: dark;
    --background: #1a212c;
    --surface: #222c3b;
    --surface-raised: #2b3a50;
    --border: #3d4b61;
    --text: #f4f7fc;
    --body-text: #d8e1ee;
    --muted: #b5c3d7;
    --blue: #3485f6;
    --blue-light: #87b9ff;
    --button-hover: #276ed3;
    --button-active: #205bb6;
    --page-width: 1100px;
}

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

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font: 16px/1.65 Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

h1, h2, h3, p {
    margin: 0;
}

button, summary {
    font: inherit;
}

button {
    cursor: pointer;
}

a:focus-visible, button:focus-visible, summary:focus-visible, .screenshots:focus-visible {
    outline: 2px solid var(--blue-light);
    outline-offset: 4px;
}

.site-header {
    background: #171e29;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    min-height: 68px;
    align-items: center;
    gap: 28px;
    width: min(var(--page-width), calc(100% - 64px));
    margin: 0 auto;
}

.brand, .site-nav a, .desktop-download {
    color: inherit;
    text-decoration: none;
}

.brand {
    display: flex;
    flex: none;
    align-items: center;
    gap: 10px;
    font-weight: 650;
}

.brand img {
    border-radius: 7px;
}

.site-nav {
    display: flex;
    gap: 26px;
    margin-left: auto;
    color: var(--body-text);
    font-size: 14px;
}

.site-nav a:hover {
    color: var(--blue-light);
}

.header-inner .header-install {
    min-width: 0;
    min-height: 40px;
    padding: 8px 17px;
    font-size: 14px;
}

.page {
    width: min(var(--page-width), calc(100% - 64px));
    margin: 0 auto;
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
}

.hero {
    background: #232f41;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.hero-copy {
    padding: clamp(34px, 4vw, 56px) 20px 0;
}

.hero-icon {
    display: block;
    margin: 0 auto 19px;
    border-radius: 15px;
}

h1 {
    font-size: clamp(36px, 5.4vw, 72px);
    font-weight: 750;
    letter-spacing: -.04em;
    line-height: 1.15;
}

.subtitle {
    margin-top: 14px;
    color: var(--body-text);
    font-size: clamp(16px, 2vw, 23px);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.desktop-download {
    display: inline-flex;
    min-width: 152px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border: 1px solid var(--blue);
    border-radius: 6px;
    color: var(--text);
    font-weight: 650;
    line-height: 1.3;
}

.desktop-download:hover {
    background: #3485f61a;
}

.availability {
    margin-top: 16px;
    color: var(--muted);
    font-size: 13px;
}

.hero-showcase {
    display: grid;
    grid-template-columns: minmax(0, 198px) minmax(0, 220px) minmax(0, 198px);
    align-items: end;
    justify-content: center;
    gap: clamp(10px, 2.5vw, 30px);
    width: min(740px, calc(100% - 32px));
    margin: clamp(28px, 3vw, 44px) auto 0;
    padding: 0 14px clamp(24px, 3vw, 38px);
}

.hero-showcase figure {
    min-width: 0;
    margin: 0;
}

.hero-showcase img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #52617a;
    border-radius: clamp(8px, 1.2vw, 16px);
    box-shadow: 0 12px 22px #10172670;
}

.hero-showcase figure:nth-child(2) img {
    border-color: #6289ba;
}

.hero-showcase figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: clamp(11px, 1.2vw, 14px);
}

.install-button {
    display: inline-flex;
    min-width: 152px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 22px;
    border: 1px solid var(--blue);
    border-radius: 6px;
    background: var(--blue);
    color: #fff;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.3;
}

.install-button:hover {
    background: var(--button-hover);
}

.install-button:active {
    background: var(--button-active);
}

.metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.metric {
    display: flex;
    min-width: 0;
    flex-direction: column-reverse;
    justify-content: center;
    gap: 3px;
    padding: 0 10px;
    text-align: center;
}

.metric + .metric {
    border-left: 1px solid var(--border);
}

.metric dt {
    color: var(--muted);
    font-size: 13px;
}

.metric dd {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin: 0;
    font-size: clamp(18px, 3vw, 25px);
    font-weight: 720;
    line-height: 1.25;
}

.metric-unit {
    font-size: .65em;
}

.rating-stars {
    color: var(--blue-light);
    font-size: 13px;
    letter-spacing: .08em;
    white-space: nowrap;
}

.section {
    margin-top: 58px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

h2 {
    font-size: clamp(21px, 3vw, 28px);
    font-weight: 730;
    line-height: 1.25;
}

.screenshots {
    display: flex;
    gap: 14px;
    margin: 0;
    padding: 0 0 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-color: #5777a4 var(--surface);
    scrollbar-width: thin;
    list-style: none;
}

.screenshots li {
    flex: 0 0 clamp(144px, 20vw, 190px);
    overflow: hidden;
    scroll-snap-align: start;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--surface);
}

.screenshots img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    object-fit: cover;
}

.surface {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--surface);
}

.intro {
    margin-top: 14px;
    color: var(--body-text);
    line-height: 1.85;
}

.app-meta {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
}

.intro details {
    margin-top: 12px;
}

.intro summary {
    display: flex;
    width: fit-content;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    color: var(--blue-light);
    cursor: pointer;
    list-style: none;
}

.intro summary::-webkit-details-marker {
    display: none;
}

.intro summary::after {
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    content: "";
    transform: rotate(45deg);
}

.intro details[open] summary::after {
    margin-top: 4px;
    transform: rotate(225deg);
}

.intro details[open] .expand-label, .intro details:not([open]) .collapse-label {
    display: none;
}

.features {
    margin-top: 20px;
}

.features h3, .features strong {
    color: var(--text);
}

.features p + div {
    margin-top: 8px;
}

.reviews {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 36px;
}

.review {
    padding: 20px 0;
    border-top: 1px solid var(--border);
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.review-avatar {
    display: grid;
    width: 40px;
    height: 40px;
    flex: none;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface-raised);
    color: var(--blue-light);
    font-weight: 700;
}

.review h3 {
    font-size: 15px;
    overflow-wrap: anywhere;
}

.review-device, .review-end {
    color: var(--muted);
    font-size: 13px;
}

.review-text {
    color: var(--body-text);
    font-size: 15px;
    overflow-wrap: anywhere;
}

.review-end {
    margin-top: 16px;
    text-align: center;
}

.install-dock {
    position: fixed;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 10px 32px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: #1a212cf5;
}

.dock-content {
    display: flex;
    max-width: var(--page-width);
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 auto;
}

.dock-app {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 650;
    line-height: 1.3;
}

.dock-app img {
    width: 36px;
    height: 36px;
    border-radius: 9px;
}

.weixin-tip {
    position: fixed;
    z-index: 3;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 24px;
    background: #141d2acc;
}

.tip-card {
    max-width: 300px;
    padding: 20px;
    text-align: right;
}

.tip-arrow {
    display: block;
    color: var(--blue-light);
    font-size: 34px;
    line-height: 1;
}

.tip-card p {
    margin: 10px 0 16px;
}

@media (max-width: 680px) {
    .header-inner {
        min-height: 60px;
        width: calc(100% - 32px);
        justify-content: space-between;
        gap: 8px;
    }

    .site-nav {
        display: none;
    }

    .page {
        width: calc(100% - 32px);
    }

    .hero-icon {
        width: 58px;
        height: 58px;
        margin-bottom: 17px;
    }

    .hero-actions {
        gap: 10px;
        margin-top: 24px;
    }

    .hero-actions .install-button, .desktop-download {
        min-width: 0;
        padding-right: 14px;
        padding-left: 14px;
    }

    .hero-showcase {
        grid-template-columns: 1fr 1.2fr 1fr;
        max-width: 470px;
        padding-right: 0;
        padding-left: 0;
    }

    .metrics {
        padding: 16px 0;
    }

    .metric {
        padding: 0 4px;
    }

    .metric dt {
        font-size: 11px;
    }

    .metric dd {
        gap: 3px;
    }

    .rating-stars {
        font-size: 9px;
        letter-spacing: 0;
    }

    .section {
        margin-top: 36px;
    }

    .screenshots {
        gap: 10px;
    }

    .surface {
        padding: 16px;
    }

    .reviews {
        grid-template-columns: minmax(0, 1fr);
    }

    .install-dock {
        padding-right: 16px;
        padding-left: 16px;
    }

    .install-dock .install-button {
        min-width: 0;
        flex: none;
        padding-right: 14px;
        padding-left: 14px;
    }
}
