/* ============================================================
   恋语 LAB · 深夜心动实验室
   移动优先 → 平板(≥768px) → PC(≥1024px)
   ============================================================ */

:root {
    --bg: #0F0B1E;
    --card: #1A1430;
    --card-2: #211A3D;
    --border: #2D2450;
    --text: #EDE9FE;
    --text-2: #9B93C4;
    --grad: linear-gradient(135deg, #7C5CFF, #FF5C8A);
    --grad-soft: linear-gradient(135deg, rgba(124, 92, 255, .18), rgba(255, 92, 138, .18));
    --success: #34D399;
    --warn: #F59E0B;
    --danger: #F87171;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 4px 20px rgba(5, 2, 18, .45);
    --bottom-nav-h: 60px;
    --side-nav-w: 220px;
    --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; }

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ---------- 布局骨架 ---------- */
.app { min-height: 100vh; }
.app__main { min-height: 100vh; display: flex; flex-direction: column; }
.page {
    flex: 1;
    padding: 14px 16px calc(var(--bottom-nav-h) + 24px + env(safe-area-inset-bottom));
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---------- 顶部状态区 ---------- */
.top-bar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(15, 11, 30, .85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.top-bar__inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 16px; height: 52px;
}
.top-bar__brand { display: flex; align-items: center; gap: 6px; }
.top-bar__logo { font-size: 20px; }
.top-bar__name {
    font-size: 17px; font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.top-bar__right { display: flex; align-items: center; gap: 10px; }
.top-bar__vip-badge {
    font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
    background: var(--grad); color: #fff;
}
.top-bar__avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--card-2); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; overflow: hidden;
}
.top-bar__avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 底部导航（移动端） ---------- */
.bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(26, 20, 48, .92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    display: flex;
}
.bottom-nav__item {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 2px;
    color: var(--text-2); min-height: 44px;
    transition: color .2s;
}
.bottom-nav__icon { font-size: 21px; line-height: 1.2; filter: grayscale(.5); transition: transform .2s, filter .2s; }
.bottom-nav__label { font-size: 11px; }
.bottom-nav__item--active { color: var(--text); }
.bottom-nav__item--active .bottom-nav__icon { filter: none; transform: translateY(-1px) scale(1.12); }
.bottom-nav__item--active .bottom-nav__label {
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* ---------- PC 侧边导航 ---------- */
.side-nav { display: none; }

/* ---------- 通用卡片 ---------- */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
}
.card + .card { margin-top: 12px; }
.card__title { font-size: 16px; margin-bottom: 8px; }
.card__desc { color: var(--text-2); font-size: 13px; }

/* ---------- 区块标题 ---------- */
.section { margin-top: 22px; }
.section__head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}
.section__title { font-size: 17px; display: flex; align-items: center; gap: 6px; }
.section__title::before {
    content: ""; width: 4px; height: 16px; border-radius: 2px;
    background: var(--grad);
}
.section__more { font-size: 12px; color: var(--text-2); min-height: 24px; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 44px; padding: 0 20px;
    border-radius: 999px; font-size: 14px; font-weight: 600;
    transition: transform .15s, opacity .15s, box-shadow .2s;
    user-select: none;
}
.btn:active { transform: scale(.96); }
.btn--primary {
    background: var(--grad); color: #fff;
    box-shadow: 0 4px 16px rgba(255, 92, 138, .3);
}
.btn--ghost {
    background: var(--card-2); color: var(--text);
    border: 1px solid var(--border);
}
.btn--outline {
    background: transparent; color: var(--text-2);
    border: 1px solid var(--border);
}
.btn--sm { min-height: 32px; padding: 0 14px; font-size: 12px; }
.btn--block { display: flex; width: 100%; }
.btn--disabled, .btn:disabled { opacity: .45; pointer-events: none; }

/* ---------- 徽章 / 标签 ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 11px; line-height: 1; padding: 4px 9px;
    border-radius: 999px; white-space: nowrap;
}
.badge--psych { background: rgba(124, 92, 255, .16); color: #B7A6FF; border: 1px solid rgba(124, 92, 255, .35); }
.badge--tone { background: rgba(255, 92, 138, .14); color: #FF9BBB; border: 1px solid rgba(255, 92, 138, .3); }
.badge--vip { background: linear-gradient(135deg, #F5C76B, #E09A2B); color: #3A2703; font-weight: 700; }
.badge--stage { background: var(--card-2); color: var(--text-2); border: 1px solid var(--border); }
.badge--success { background: rgba(52, 211, 153, .15); color: var(--success); border: 1px solid rgba(52, 211, 153, .35); }

/* ---------- 表单 ---------- */
.input, .select, .textarea {
    width: 100%; min-height: 46px;
    background: var(--card-2); color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 10px 14px; font-size: 14px; outline: none;
    transition: border-color .2s;
}
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: #7C5CFF; }
.input::placeholder, .textarea::placeholder { color: #6E669B; }
.select { appearance: none; -webkit-appearance: none; }
.form-item { margin-bottom: 14px; }
.form-item__label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }

/* ---------- 搜索框 ---------- */
.search-box {
    display: flex; align-items: center; gap: 8px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 999px; padding: 0 16px;
    min-height: 42px; flex: 1;
}
.search-box__icon { font-size: 15px; opacity: .7; }
.search-box__input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 14px; min-height: 42px; }
.search-box__input::placeholder { color: #6E669B; }
.search-box--fake { color: #6E669B; font-size: 14px; cursor: pointer; }

/* ---------- Banner 轮播 ---------- */
.banner {
    position: relative; border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
}
.banner__track { display: flex; transition: transform .45s ease; }
.banner__slide {
    flex: 0 0 100%; min-height: 140px; position: relative;
    display: flex; align-items: flex-end;
}
.banner__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner__slide--css {
    align-items: center; padding: 20px;
    background: var(--grad);
}
.banner__slide--css:nth-child(2n) { background: linear-gradient(135deg, #5C3FD4, #FF7AA8); }
.banner__slide--css:nth-child(3n) { background: linear-gradient(135deg, #7C5CFF, #4ECDC4); }
.banner__title { font-size: 20px; font-weight: 800; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.35); position: relative; }
.banner__caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 24px 16px 12px; font-weight: 700; color: #fff;
    background: linear-gradient(transparent, rgba(10, 6, 25, .75));
}
.banner__dots {
    position: absolute; right: 12px; bottom: 10px;
    display: flex; gap: 5px;
}
.banner__dot { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.4); transition: all .3s; }
.banner__dot--active { width: 16px; background: #fff; }

/* ---------- 金刚区分类 ---------- */
.cat-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.cat-grid__item {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 12px 4px; min-height: 44px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: transform .15s, border-color .2s;
}
.cat-grid__item:active { transform: scale(.94); }
.cat-grid__icon {
    width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; background: var(--grad-soft);
}
.cat-grid__name { font-size: 12px; color: var(--text); }

/* ---------- 每日一句 ---------- */
.daily-card {
    background: var(--grad);
    border-radius: var(--radius);
    padding: 18px; color: #fff;
    box-shadow: 0 6px 24px rgba(124, 92, 255, .35);
    position: relative; overflow: hidden;
    cursor: pointer;
}
.daily-card::after {
    content: "❝"; position: absolute; right: 12px; top: -8px;
    font-size: 80px; opacity: .14; font-family: serif;
}
.daily-card__tag { font-size: 11px; opacity: .85; letter-spacing: 2px; margin-bottom: 6px; }
.daily-card__text { font-size: 16px; font-weight: 600; line-height: 1.7; }
.daily-card__hint { margin-top: 10px; font-size: 11px; opacity: .8; }

/* ---------- 热门场景横滑 ---------- */
.scene-scroll {
    display: flex; gap: 10px; overflow-x: auto;
    padding-bottom: 6px; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.scene-scroll::-webkit-scrollbar { display: none; }
.scene-card {
    flex: 0 0 132px; scroll-snap-align: start;
    border-radius: var(--radius-sm); padding: 14px 12px;
    background: var(--card); border: 1px solid var(--border);
    min-height: 96px;
    display: flex; flex-direction: column; justify-content: space-between;
    transition: transform .15s;
}
.scene-card:active { transform: scale(.95); }
.scene-card__icon { font-size: 24px; }
.scene-card__name { font-size: 13px; font-weight: 600; }
.scene-card__desc { font-size: 11px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 话术卡片 ---------- */
.script-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 15px;
    box-shadow: var(--shadow);
    position: relative;
}
.script-card + .script-card { margin-top: 12px; }
.script-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.script-card__title { font-size: 15px; font-weight: 700; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.script-card__content {
    font-size: 14px; line-height: 1.75; color: var(--text);
    margin-bottom: 10px; word-break: break-all;
}
.script-card__content--clamp {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.script-card__content--locked {
    filter: blur(6px); user-select: none; pointer-events: none;
    min-height: 60px;
}
.script-card__lock {
    position: absolute; inset: 0; z-index: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    background: rgba(15, 11, 30, .35); border-radius: var(--radius);
}
.script-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.script-card__foot { display: flex; align-items: center; justify-content: space-between; }
.script-card__meta { font-size: 11px; color: var(--text-2); display: flex; gap: 10px; }
.script-card__actions { display: flex; gap: 8px; }

.icon-btn {
    min-width: 44px; min-height: 36px; padding: 0 10px;
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    background: var(--card-2); border: 1px solid var(--border);
    border-radius: 999px; font-size: 15px; color: var(--text-2);
    transition: transform .15s;
}
.icon-btn:active { transform: scale(.9); }
.icon-btn--active { color: #FF5C8A; border-color: rgba(255, 92, 138, .5); background: rgba(255, 92, 138, .12); }
.icon-btn__text { font-size: 12px; }

/* ---------- 胶囊横滑（阶段/分类筛选） ---------- */
.pill-scroll {
    display: flex; gap: 8px; overflow-x: auto;
    padding: 2px 0 8px; -webkit-overflow-scrolling: touch;
}
.pill-scroll::-webkit-scrollbar { display: none; }
.pill {
    flex: 0 0 auto; min-height: 34px; padding: 0 16px;
    display: inline-flex; align-items: center;
    border-radius: 999px; font-size: 13px;
    background: var(--card); border: 1px solid var(--border);
    color: var(--text-2); white-space: nowrap;
    transition: all .2s;
}
.pill--active {
    background: var(--grad); border-color: transparent;
    color: #fff; font-weight: 600;
}

/* ---------- 骨架屏 ---------- */
.skeleton {
    border-radius: var(--radius); overflow: hidden; position: relative;
    background: var(--card); min-height: 100px; margin-bottom: 12px;
}
.skeleton::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent);
    animation: skeleton-shine 1.4s infinite;
    transform: translateX(-100%);
}
@keyframes skeleton-shine { to { transform: translateX(100%); } }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 48px 20px; color: var(--text-2); }
.empty__icon { font-size: 44px; margin-bottom: 10px; }
.empty__text { font-size: 14px; }

/* ---------- 加载更多 ---------- */
.load-more { text-align: center; padding: 16px 0 4px; color: var(--text-2); font-size: 13px; }

/* ---------- Toast ---------- */
.toast-wrap {
    position: fixed; left: 50%; top: 18%; transform: translateX(-50%);
    z-index: 999; display: flex; flex-direction: column; align-items: center; gap: 8px;
    pointer-events: none; width: max-content; max-width: 84vw;
}
.toast {
    background: rgba(30, 23, 56, .95); color: var(--text);
    border: 1px solid var(--border); border-radius: 12px;
    padding: 10px 18px; font-size: 14px; box-shadow: var(--shadow);
    animation: toast-in .25s ease; max-width: 84vw;
}
.toast--success { border-color: rgba(52, 211, 153, .5); }
.toast--error { border-color: rgba(248, 113, 113, .5); }
.toast--warn { border-color: rgba(245, 158, 11, .5); }
.toast--out { animation: toast-out .25s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); } }

/* ---------- 模态框 ---------- */
.modal-mask {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(8, 5, 20, .7); backdrop-filter: blur(4px);
    display: flex; align-items: flex-end; justify-content: center;
}
.modal {
    width: 100%; max-width: 560px; max-height: 86vh; overflow-y: auto;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 20px 20px 0 0; padding: 20px;
    animation: modal-up .28s ease;
}
@keyframes modal-up { from { transform: translateY(40px); opacity: 0; } }
.modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal__title { font-size: 17px; font-weight: 700; }
.modal__close { font-size: 18px; color: var(--text-2); width: 36px; height: 36px; }

/* ---------- 详情页固定底栏 ---------- */
.action-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    background: rgba(26, 20, 48, .95); backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    display: flex; gap: 10px;
}
.action-bar .btn { flex: 1; }

/* ---------- 返回栏 ---------- */
.nav-back {
    display: inline-flex; align-items: center; gap: 4px;
    min-height: 44px; color: var(--text-2); font-size: 14px;
    margin-bottom: 4px;
}

/* ---------- VIP ---------- */
.vip-hero {
    background: linear-gradient(135deg, #2A1B52, #4A1F42);
    border: 1px solid rgba(245, 199, 107, .35);
    border-radius: var(--radius); padding: 22px 18px; text-align: center;
    box-shadow: var(--shadow);
}
.vip-hero__crown { font-size: 38px; }
.vip-hero__title { font-size: 20px; font-weight: 800; margin: 6px 0 2px; }
.vip-hero__sub { color: var(--text-2); font-size: 13px; }
.plan-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.plan-card {
    position: relative; background: var(--card);
    border: 1.5px solid var(--border); border-radius: var(--radius);
    padding: 16px; display: flex; align-items: center; gap: 14px;
    transition: border-color .2s, transform .2s;
}
.plan-card--hot {
    border-color: transparent;
    background:
        linear-gradient(var(--card), var(--card)) padding-box,
        var(--grad) border-box;
    transform: scale(1.02);
    box-shadow: 0 6px 24px rgba(255, 92, 138, .25);
}
.plan-card--selected { border-color: #7C5CFF; box-shadow: 0 0 0 2px rgba(124, 92, 255, .3); }
.plan-card__tag {
    position: absolute; top: -10px; right: 14px;
    background: var(--grad); color: #fff;
    font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.plan-card__name { font-size: 16px; font-weight: 700; }
.plan-card__days { font-size: 12px; color: var(--text-2); }
.plan-card__price { margin-left: auto; text-align: right; }
.plan-card__price-now { font-size: 20px; font-weight: 800; color: #FF7AA8; }
.plan-card__price-now small { font-size: 12px; }
.plan-card__price-orig { font-size: 12px; color: var(--text-2); text-decoration: line-through; }
.benefit-list { margin-top: 16px; }
.benefit-list__item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0; border-bottom: 1px dashed var(--border);
    font-size: 14px;
}
.benefit-list__item:last-child { border-bottom: none; }
.benefit-list__icon { color: var(--success); }
.agreement { margin-top: 16px; font-size: 11px; color: var(--text-2); text-align: center; }
.agreement a { color: #B7A6FF; }

/* ---------- 我的页 ---------- */
.user-card {
    display: flex; align-items: center; gap: 14px;
    background: var(--grad-soft);
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px 16px; box-shadow: var(--shadow);
}
.user-card__avatar {
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--card-2); border: 2px solid rgba(255, 92, 138, .4);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; overflow: hidden; flex: 0 0 auto;
}
.user-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-card__name { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.user-card__sub { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.menu-list { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.menu-list__item {
    display: flex; align-items: center; gap: 12px;
    padding: 0 16px; min-height: 52px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.menu-list__item:last-child { border-bottom: none; }
.menu-list__item:active { background: var(--card-2); }
.menu-list__icon { font-size: 18px; width: 24px; text-align: center; }
.menu-list__arrow { margin-left: auto; color: var(--text-2); font-size: 13px; }

/* ---------- 测评 ---------- */
.quiz-card {
    display: flex; gap: 14px; align-items: center;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
}
.quiz-card + .quiz-card { margin-top: 12px; }
.quiz-card__icon {
    width: 54px; height: 54px; border-radius: 14px; flex: 0 0 auto;
    background: var(--grad-soft); display: flex; align-items: center; justify-content: center;
    font-size: 26px;
}
.quiz-card__body { flex: 1; min-width: 0; }
.quiz-card__title { font-size: 16px; font-weight: 700; }
.quiz-card__desc {
    font-size: 12px; color: var(--text-2); margin: 3px 0 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.progress {
    height: 6px; border-radius: 3px; background: var(--card-2);
    overflow: hidden; margin: 10px 0 20px;
}
.progress__bar { height: 100%; border-radius: 3px; background: var(--grad); transition: width .35s ease; }
.quiz-q__title { font-size: 19px; font-weight: 700; line-height: 1.5; margin-bottom: 20px; }
.quiz-opt {
    display: block; width: 100%; text-align: left;
    background: var(--card); border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); padding: 16px;
    font-size: 15px; margin-bottom: 12px; min-height: 44px;
    transition: all .2s;
}
.quiz-opt:active { transform: scale(.98); }
.quiz-opt--picked { border-color: #7C5CFF; background: rgba(124, 92, 255, .12); }
.quiz-step { font-size: 13px; color: var(--text-2); }

/* ---------- 测评结果 ---------- */
.result-hero { text-align: center; padding: 30px 16px 20px; }
.result-hero__type {
    font-size: 52px; font-weight: 900; letter-spacing: 4px;
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.result-hero__name { font-size: 16px; color: var(--text-2); margin-top: 4px; }
.persona-card {
    border-radius: var(--radius); padding: 18px;
    background: var(--card); border: 1px solid var(--border);
    box-shadow: var(--shadow); text-align: center;
}
.persona-card__icon { font-size: 40px; }
.persona-card__name { font-size: 18px; font-weight: 800; margin: 6px 0; }
.persona-card__desc { font-size: 13px; color: var(--text-2); }

/* ---------- 人格详情 ---------- */
.persona-hero {
    border-radius: var(--radius); padding: 26px 18px;
    text-align: center; color: #fff; box-shadow: var(--shadow);
}
.persona-hero__code { font-size: 34px; font-weight: 900; letter-spacing: 3px; }
.persona-hero__name { font-size: 17px; font-weight: 700; margin-top: 4px; }
.persona-hero__nick { font-size: 13px; opacity: .85; }
.persona-block { margin-top: 14px; }
.persona-block__title { font-size: 15px; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.persona-block__text { font-size: 14px; color: var(--text); line-height: 1.8; white-space: pre-line; }

/* ---------- 心动档案 ---------- */
.crush-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
}
.crush-card + .crush-card { margin-top: 12px; }
.crush-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.crush-card__avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--grad-soft); display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex: 0 0 auto;
}
.crush-card__name { font-size: 16px; font-weight: 700; }
.crush-card__stage { margin-left: auto; }
.crush-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.crush-card__notes { font-size: 13px; color: var(--text-2); }
.crush-card__foot { display: flex; gap: 8px; margin-top: 12px; }
.stage-slider { display: flex; flex-direction: column; gap: 6px; }
.stage-slider input[type="range"] { width: 100%; accent-color: #FF5C8A; height: 32px; }
.stage-slider__labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-2); }

/* ---------- 攻略文章 ---------- */
.article-card {
    display: flex; gap: 12px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow);
}
.article-card + .article-card { margin-top: 12px; }
.article-card__cover {
    width: 108px; height: 80px; border-radius: var(--radius-sm);
    object-fit: cover; flex: 0 0 auto; background: var(--grad);
}
.article-card__cover--css {
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #fff;
}
.article-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.article-card__title {
    font-size: 15px; font-weight: 700; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card__summary {
    font-size: 12px; color: var(--text-2); margin-top: 4px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.article-card__meta { margin-top: auto; padding-top: 6px; font-size: 11px; color: var(--text-2); display: flex; gap: 10px; }
.article-body { font-size: 15px; line-height: 1.9; word-break: break-word; }
.article-body img { border-radius: var(--radius-sm); margin: 10px 0; }
.article-body h2, .article-body h3 { margin: 18px 0 8px; }
.article-body p { margin-bottom: 12px; }
.article-lock {
    text-align: center; padding: 28px 16px;
    background: var(--grad-soft); border: 1px dashed rgba(255, 92, 138, .4);
    border-radius: var(--radius); margin-top: 14px;
}

/* ---------- 登录页 ---------- */
.login-hero { text-align: center; padding: 44px 0 26px; }
.login-hero__logo { font-size: 52px; }
.login-hero__name {
    font-size: 26px; font-weight: 900; margin-top: 8px;
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.login-hero__slogan { color: var(--text-2); font-size: 13px; margin-top: 4px; letter-spacing: 2px; }
.login-tabs { display: flex; background: var(--card-2); border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.login-tabs__item {
    flex: 1; min-height: 40px; border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: var(--text-2); font-weight: 600;
}
.login-tabs__item--active { background: var(--grad); color: #fff; }
.input-row { display: flex; gap: 8px; }
.input-row .input { flex: 1; }

/* ---------- 404 ---------- */
.page-404 { text-align: center; padding: 90px 24px; }
.page-404__icon { font-size: 64px; }
.page-404__title { font-size: 22px; font-weight: 800; margin: 14px 0 6px; }
.page-404__desc { color: var(--text-2); font-size: 14px; margin-bottom: 24px; }

/* ---------- 杂项 ---------- */
.text-grad {
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.muted { color: var(--text-2); }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-12 { margin-bottom: 12px; }
.flex { display: flex; align-items: center; }
.gap-8 { gap: 8px; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 12px; }

/* ============================================================
   平板 ≥768px：双栏
   ============================================================ */
@media (min-width: 768px) {
    body { font-size: 15.5px; }
    .page { padding: 20px 28px calc(var(--bottom-nav-h) + 30px); }
    .grid-2, .scripts-grid, .articles-grid, .quiz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    .script-card + .script-card, .article-card + .article-card, .quiz-card + .quiz-card, .crush-card + .crush-card { margin-top: 0; }
    .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
    .banner__slide { min-height: 200px; }
    .plan-list { flex-direction: row; }
    .plan-card { flex: 1; flex-direction: column; text-align: center; }
    .plan-card__price { margin-left: 0; }
    .modal { border-radius: 20px; margin-bottom: 8vh; }
    .modal-mask { align-items: center; }
}

/* ============================================================
   PC ≥1024px：左侧导航 + 居中
   ============================================================ */
@media (min-width: 1024px) {
    .bottom-nav { display: none; }
    .page { padding: 24px 32px 48px; }
    .side-nav {
        display: flex; flex-direction: column;
        position: fixed; left: 0; top: 0; bottom: 0; z-index: 70;
        width: var(--side-nav-w);
        background: var(--card); border-right: 1px solid var(--border);
        padding: 24px 14px;
    }
    .side-nav__logo { display: flex; align-items: center; gap: 8px; padding: 0 10px; }
    .side-nav__logo-icon { font-size: 24px; }
    .side-nav__logo-text {
        font-size: 19px; font-weight: 900;
        background: var(--grad);
        -webkit-background-clip: text; background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .side-nav__slogan { font-size: 11px; color: var(--text-2); padding: 2px 10px 22px; letter-spacing: 2px; }
    .side-nav__menu { display: flex; flex-direction: column; gap: 4px; }
    .side-nav__item {
        display: flex; align-items: center; gap: 12px;
        padding: 12px 14px; border-radius: var(--radius-sm);
        color: var(--text-2); font-size: 15px; min-height: 44px;
        transition: background .2s, color .2s;
    }
    .side-nav__item:hover { background: var(--card-2); color: var(--text); }
    .side-nav__item--active { background: var(--grad); color: #fff; font-weight: 700; }
    .side-nav__icon { font-size: 19px; }
    .side-nav__footer { margin-top: auto; font-size: 11px; color: var(--text-2); text-align: center; }
    .app__main { margin-left: var(--side-nav-w); }
    .top-bar__inner, .page { max-width: 1200px; }
    .top-bar__brand { visibility: hidden; }
    .scripts-grid, .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .quiz-grid { grid-template-columns: repeat(3, 1fr); }
    .cat-grid { grid-template-columns: repeat(8, 1fr); }
    .banner__slide { min-height: 240px; }
    .action-bar {
        left: var(--side-nav-w);
        display: flex; justify-content: center;
    }
    .action-bar > * { max-width: 560px; }
}
