:root {
    color-scheme: light;
    --text: #17191c;
    --muted: #909297;
    --border: #dedfe1;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: #fff;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid #02b2b5; outline-offset: 4px; }

.download-page {
    width: min(100%, 640px);
    margin: 0 auto;
    padding: 72px 40px 28px;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-bottom: 46px;
}

.app-home { flex-shrink: 0; }

.app-icon {
    display: block;
    width: 96px;
    height: 96px;
    border-radius: 24px;
    box-shadow: 0 7px 24px rgba(20, 40, 22, .13);
}

.app-header h1 {
    margin: 0 0 12px;
    font-size: 30px;
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: -.5px;
}

.app-header p { margin: 0; color: var(--muted); font-size: 20px; line-height: 1.5; }
.download-section + .download-section { margin-top: 30px; }

.download-section h2 {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
}

.store-list { display: grid; gap: 12px; }

.store-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    min-height: 66px;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
    color: var(--text);
    font: inherit;
    transition: border-color .15s ease, background .15s ease;
    -webkit-tap-highlight-color: transparent;
}

.store-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.vivo-icon { object-fit: cover; object-position: left center; }
.oppo-wordmark { width: 42px; color: #087b46; font-size: 20px; font-weight: 600; letter-spacing: -1.5px; }
.honor-wordmark { width: 42px; font-size: 10px; font-weight: 750; letter-spacing: .3px; }
.store-text { font-size: 18px; line-height: 1.5; }
.store-text span { color: var(--muted); }
.store-text strong { font-weight: 600; }

.coming-soon, .app-version { color: var(--muted); font-size: 12px; white-space: nowrap; }
.coming-soon { padding: 4px 8px; border-radius: 6px; background: #f3f3f4; }
.store-link:disabled, .store-link[aria-disabled="true"] { cursor: default; }
.store-link:disabled { opacity: 1; }

.download-hint {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
    text-align: center;
}

.download-footer {
    margin-top: 40px;
    padding: 22px 0 0;
    border-top: 1px solid #f0f0f1;
    color: #a3a4a8;
    font-size: 12px;
    line-height: 1.8;
    text-align: center;
}

@media (hover: hover) {
    .store-link[href]:hover { border-color: #a6bfaa; background: #fbfdfb; }
}

@media (max-width: 600px) {
    .download-page { padding: 40px 24px calc(24px + env(safe-area-inset-bottom, 0px)); }
    .app-header { gap: 18px; margin-bottom: 36px; }
    .app-icon { width: 76px; height: 76px; border-radius: 20px; }
    .app-header h1 { margin-bottom: 8px; font-size: 23px; }
    .app-header p { font-size: 16px; }
    .store-link { gap: 12px; padding: 15px 12px; border-radius: 18px; }
    .store-text { font-size: 16px; }
    .ios-link { flex-wrap: wrap; gap: 10px; }
    .apk-link { gap: 10px; }
}
