:root {
    --bg: #f4f6fa;
    --card: #ffffff;
    --text: #14171f;
    --text-2: #5b6474;
    --text-3: #8b94a5;
    --line: #e8ecf3;
    --primary: #2b7fff;
    --primary-d: #1a5fe0;
    --dark: #14171f;
    --green: #08a06a;
    --orange: #f08c00;
    --radius: 16px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; }

.wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 18px 40px;
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    text-align: center;
    padding: 46px 0 26px;
    overflow: hidden;
}

.hero-sm { padding-top: 24px; text-align: left; }

.hero-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(43,127,255,.20) 0%, rgba(43,127,255,0) 68%);
    pointer-events: none;
    z-index: 0;
}

.hero > :not(.hero-glow) { position: relative; z-index: 1; }

.logo {
    width: 82px;
    height: 82px;
    margin: 0 auto 16px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20,23,31,.10), 0 1px 3px rgba(20,23,31,.06);
}

.app-name {
    font-size: 24px;
    letter-spacing: -.3px;
}

.app-sub {
    margin: 6px 0 0;
    color: var(--text-2);
    font-size: 14px;
}

.badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.badge {
    font-size: 12px;
    color: var(--primary-d);
    background: rgba(43,127,255,.09);
    border-radius: 999px;
    padding: 4px 11px;
}

.back {
    display: inline-block;
    font-size: 14px;
    color: var(--text-2);
    margin-bottom: 14px;
}

/* ---------- Tabs ---------- */
.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    background: #e9edf4;
    border-radius: 13px;
    padding: 4px;
    margin-bottom: 16px;
}

.tab {
    border: 0;
    background: transparent;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    transition: background .18s, color .18s, box-shadow .18s;
}

.tab.is-active {
    background: #fff;
    color: var(--text);
    box-shadow: 0 1px 4px rgba(20,23,31,.10);
}

.tab-ico { margin-right: 4px; }

/* ---------- Panels ---------- */
.panel { display: none; }
.panel.is-active { display: block; animation: rise .26s ease both; }

@keyframes rise {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

/* ---------- Card ---------- */
.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 14px;
    box-shadow: 0 1px 2px rgba(20,23,31,.04), 0 4px 16px rgba(20,23,31,.05);
}

.card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.card-head h2 { font-size: 16px; }

.ver {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--text-3);
}

.dot { margin: 0 5px; color: #c8cedb; }

.pill {
    flex: none;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 6px;
    white-space: nowrap;
}

.pill-green  { color: var(--green);  background: rgba(8,160,106,.10); }
.pill-blue   { color: var(--primary); background: rgba(43,127,255,.10); }
.pill-orange { color: var(--orange); background: rgba(240,140,0,.11); }

.card-empty { text-align: center; padding: 40px 24px; }
.card-empty h2 { font-size: 16px; margin: 12px 0 6px; }
.empty-ico { font-size: 38px; }

/* ---------- Buttons ---------- */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    transition: transform .12s, opacity .18s, filter .18s;
    width: 100%;
}

.btn:active { transform: scale(.985); opacity: .9; }

.btn-lg { height: 50px; font-size: 16px; border-radius: 13px; }

.btn-primary {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-d) 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(43,127,255,.28);
}

.btn-dark {
    background: var(--dark);
    color: #fff;
    box-shadow: 0 6px 16px rgba(20,23,31,.20);
}

.btn-ghost {
    background: #f2f5fa;
    color: var(--text-2);
    font-weight: 500;
    font-size: 14px;
    height: 42px;
}

.btn-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.btn-sticky {
    margin-bottom: 18px;
    position: sticky;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 20;
}

.hint {
    margin: 12px 0 0;
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--text-3);
}

/* ---------- Tips / notice ---------- */
.tips {
    background: #fff;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--text-2);
    border-left: 3px solid var(--primary);
}

.tips strong { display: block; color: var(--text); font-size: 14px; margin-bottom: 5px; }
.tips p { margin: 0; line-height: 1.7; }
.tips-warn { border-left-color: var(--orange); }

.notice {
    background: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    margin: 6px 0 14px;
}

.notice h3 { font-size: 14px; margin-bottom: 10px; }
.notice ol { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 13px; }
.notice li { margin-bottom: 6px; line-height: 1.65; }
.notice li:last-child { margin-bottom: 0; }

/* ---------- Steps ---------- */
.steps { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }

.step {
    display: flex;
    gap: 14px;
    background: #fff;
    border-radius: 14px;
    padding: 18px;
}

.step-no {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(43,127,255,.10);
    color: var(--primary-d);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step h3 { font-size: 14.5px; margin-bottom: 5px; }
.step p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.7; }
.step b { color: var(--text); font-weight: 600; }

/* ---------- Footer ---------- */
.footer {
    text-align: center;
    padding: 28px 0 8px;
    color: var(--text-3);
    font-size: 12px;
}

.footer p { margin: 3px 0; }

@media (prefers-color-scheme: dark) {
    /* 保持浅色，避免用户系统深色导致阅读困难 */
}

@media (min-width: 520px) {
    .wrap { padding-top: 10px; }
    .hero { padding-top: 62px; }
}
