:root {
    --primary: #6d5efc;
    --primary-dark: #5645e8;
    --bg: #f5f6fb;
    --text: #1f2330;
    --muted: #8a90a2;
    --card: #ffffff;
    --radius: 16px;
    --shadow: 0 12px 40px rgba(34, 41, 90, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* 顶栏 */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid #eceef4;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.brand__logo {
    width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), #9b8cff);
    color: #fff; display: grid; place-items: center; font-size: 18px;
}
.nav { display: flex; gap: 28px; color: var(--muted); font-size: 15px; }
.nav a:hover { color: var(--primary); }

/* Hero */
.hero {
    padding: 72px 0 56px;
    text-align: center;
    background:
        radial-gradient(1200px 400px at 50% -10%, rgba(109, 94, 252, 0.18), transparent 60%);
}
.hero__title { font-size: 44px; font-weight: 900; letter-spacing: -0.5px; }
.hero__subtitle { margin-top: 14px; color: var(--muted); font-size: 17px; }
.hero__badge {
    display: inline-block; margin-bottom: 12px; padding: 6px 14px;
    background: #eef0ff; color: var(--primary-dark); border-radius: 999px;
    font-size: 13px; font-weight: 700;
}
.hero--compact { padding: 48px 0 32px; }
.hero__cta { margin-top: 28px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.parse-box {
    margin: 36px auto 0;
    max-width: 760px;
    display: flex;
    background: var(--card);
    border-radius: 999px;
    box-shadow: var(--shadow);
    padding: 8px;
    border: 1px solid #ececf6;
}
.parse-box__input {
    flex: 1;
    border: none; outline: none; background: transparent;
    font-size: 16px; padding: 0 22px; color: var(--text);
}
.parse-box__btn {
    border: none; cursor: pointer;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; font-size: 16px; font-weight: 700;
    padding: 0 38px; height: 52px; border-radius: 999px;
    transition: transform .15s ease, opacity .15s ease;
}
.parse-box__btn:hover { transform: translateY(-1px); }
.parse-box__btn:disabled { opacity: .6; cursor: not-allowed; }

.platforms { margin-top: 24px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.chip {
    background: #fff; border: 1px solid #e6e7f2; color: #555b6e;
    padding: 7px 16px; border-radius: 999px; font-size: 14px;
}
.tip { margin-top: 22px; color: var(--muted); font-size: 14px; }

/* App 下载页 */
.download-page { padding-bottom: 48px; }
.download-section { padding: 40px 0 0; }
.section-desc { text-align: center; color: var(--muted); margin: -16px 0 24px; font-size: 15px; }
.download-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.download-grid--2 { grid-template-columns: repeat(2, 1fr); }
.dl-card {
    background: #fff; border: 1px solid #eceef6; border-radius: 16px;
    padding: 24px; position: relative;
}
.dl-card--highlight { border-color: #c8c0ff; box-shadow: 0 8px 32px rgba(109, 94, 252, 0.12); }
.dl-card__badge {
    position: absolute; top: 16px; right: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.dl-card h3 { font-size: 18px; margin-bottom: 10px; padding-right: 72px; }
.dl-card p, .dl-card li { color: var(--muted); font-size: 14px; line-height: 1.7; }
.dl-card ul { margin: 8px 0 12px 18px; }
.dl-steps { margin: 12px 0 16px 20px; color: var(--muted); font-size: 14px; }
.dl-steps li { margin-bottom: 6px; }
.dl-note { margin-top: 12px; font-size: 13px; color: #a0a6b8; }
.dl-note code { background: #f1f2fa; padding: 2px 6px; border-radius: 4px; font-size: 12px; }
.tag { display: inline-block; margin-top: 12px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.tag--soon { background: #fff3e0; color: #e65100; }
.chip--loading { opacity: .7; }
.platforms--page { justify-content: flex-start; margin-top: 8px; }

.app-teaser { padding: 48px 0 56px; }
.app-teaser__card {
    background: linear-gradient(135deg, #6d5efc 0%, #5645e8 100%);
    color: #fff; border-radius: 20px; padding: 36px 40px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.app-teaser__card h2 { font-size: 24px; margin-bottom: 10px; }
.app-teaser__card p { opacity: .9; font-size: 15px; }
.app-teaser__list { margin-top: 14px; font-size: 14px; opacity: .92; line-height: 1.8; list-style: none; }
.app-teaser__card .btn--primary { background: #fff; color: var(--primary-dark); }
.app-teaser__card .btn--ghost { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.3); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-item {
    background: #fff; border: 1px solid #eceef6; border-radius: 14px; padding: 20px;
    display: flex; flex-direction: column; gap: 6px;
}
.feature-item b { font-size: 15px; }
.feature-item span { color: var(--muted); font-size: 13px; }

.faq details { background: #fff; border: 1px solid #eceef6; border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 15px; }
.faq p { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.7; }

.footer a { color: var(--primary); text-decoration: underline; }

/* 状态 */
.result-section { min-height: 40px; padding-top: 8px; }
.status {
    margin: 12px auto; max-width: 760px; text-align: center;
    padding: 14px 18px; border-radius: 12px; font-size: 15px;
}
.status--loading { background: #eef0ff; color: var(--primary-dark); }
.status--error { background: #fdeaea; color: #d6453d; }

/* 结果卡片 */
.result { max-width: 860px; margin: 16px auto 0; }
.card {
    background: var(--card); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden;
    display: grid; grid-template-columns: 320px 1fr;
}
.card__media { background: #0d0f1a; display: grid; place-items: center; }
.card__media video, .card__media img { width: 100%; height: 100%; max-height: 420px; object-fit: contain; }
.card__body { padding: 26px 28px; display: flex; flex-direction: column; }
.card__platform {
    align-self: flex-start;
    font-size: 12px; font-weight: 700; letter-spacing: .5px;
    background: #eef0ff; color: var(--primary-dark);
    padding: 4px 12px; border-radius: 999px; text-transform: uppercase;
}
.card__title { margin-top: 14px; font-size: 20px; font-weight: 800; line-height: 1.4; }
.card__author { margin-top: 8px; color: var(--muted); font-size: 14px; }
.card__actions { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px; border-radius: 12px; font-size: 15px; font-weight: 700;
    cursor: pointer; border: none;
}
.btn--primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; }
.btn--ghost { background: #f1f2fa; color: #444b60; }
.btn:hover { opacity: .92; }

/* 图集 */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 18px; }
.gallery__item { position: relative; border-radius: 12px; overflow: hidden; background: #eee; }
.gallery__item img { width: 100%; display: block; aspect-ratio: 3/4; object-fit: cover; }
.gallery__dl {
    position: absolute; right: 8px; bottom: 8px;
    background: rgba(0,0,0,.6); color: #fff; font-size: 12px;
    padding: 5px 10px; border-radius: 8px;
}

/* 使用说明 */
.howto { padding: 56px 0; }
.section-title { text-align: center; font-size: 26px; font-weight: 800; margin-bottom: 30px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: #fff; border: 1px solid #eceef6; border-radius: 14px; padding: 22px; display: flex; gap: 14px; align-items: center; }
.step__no { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; }
.step__txt { display: flex; flex-direction: column; }
.step__txt b { font-size: 16px; }
.step__txt span { color: var(--muted); font-size: 14px; }

.footer { padding: 40px 0; text-align: center; color: var(--muted); font-size: 14px; }

@media (max-width: 720px) {
    .card { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .download-grid--2 { grid-template-columns: 1fr; }
    .nav { display: none; }
    .hero__title { font-size: 32px; }
    .app-teaser__card { flex-direction: column; align-items: flex-start; }
}
