/* ============================================================
   心测局 v2 · 全局样式（明亮娱乐高级风）
   设计语言：暖米白底 + 深墨文字 + 活力渐变（紫/青/珊瑚）+ 大圆角卡片
   ============================================================ */
:root {
  --bg: #F7F3EC;
  --bg-soft: #FDFAF4;
  --card: #FFFFFF;
  --ink: #232A3B;
  --ink-2: #3D4659;
  --ink-3: #6B7387;
  --line: #E8E1D4;
  --line-2: #F0EAE0;
  --violet: #7C5CFC;
  --violet-2: #A78BFF;
  --teal: #19B99B;
  --teal-2: #5BD6BE;
  --coral: #FF7A6B;
  --coral-2: #FFA08F;
  --gold: #F5B94E;
  --gold-2: #FFD98A;
  --blue: #4E8DF8;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 14px;
  --shadow: 0 10px 32px rgba(58, 47, 31, .10);
  --shadow-sm: 0 6px 20px rgba(58, 47, 31, .08);
  --grad-main: linear-gradient(135deg, #7C5CFC 0%, #5A8DFF 50%, #19B99B 100%);
  --grad-warm: linear-gradient(135deg, #FF9D5C 0%, #FF7A6B 55%, #FF5FA2 100%);
  --grad-sun: linear-gradient(135deg, #FFD98A 0%, #F5B94E 60%, #FF8A5C 100%);
  --grad-cool: linear-gradient(135deg, #A78BFF 0%, #7C5CFC 55%, #4E8DF8 100%);
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 15px;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input { font-family: inherit; }

/* 顶部氛围装饰 */
.sky {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 400px at 85% -5%, rgba(124, 92, 252, .12), transparent 55%),
    radial-gradient(800px 380px at 5% 108%, rgba(25, 185, 155, .10), transparent 55%),
    radial-gradient(600px 300px at 50% 0%, rgba(245, 185, 78, .08), transparent 60%),
    linear-gradient(180deg, #FAF6EE 0%, #F7F3EC 45%, #F3EEE4 100%);
}
.blobs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5;
}
.blob.b1 { width: 300px; height: 300px; background: #C9B8FF; top: -90px; right: -60px; }
.blob.b2 { width: 260px; height: 260px; background: #B8EFE3; bottom: 10%; left: -90px; }
.blob.b3 { width: 220px; height: 220px; background: #FFE3B8; top: 32%; right: -70px; opacity: .4; }

/* 主容器 */
.app-shell { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; min-height: 100vh; }
.page {
  display: none; min-height: 100vh; padding: 18px 20px 100px;
  animation: pageIn .45s cubic-bezier(.22,.8,.3,1) both;
}
.page.active { display: block; }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px);} to { opacity: 1; transform: none;} }

/* 通用按钮 */
.btn {
  display: block; width: 100%; text-align: center;
  font-weight: 700; letter-spacing: 2px;
  padding: 16px 0; border-radius: 16px;
  color: #fff;
  background: var(--grad-main);
  box-shadow: 0 10px 26px rgba(124, 92, 252, .30);
  transition: transform .18s ease, box-shadow .18s ease, opacity .2s;
  font-size: 16px;
  border: none; cursor: pointer;
}
.btn:active { transform: scale(.97); }
.btn.ghost {
  background: var(--card); color: var(--ink-2); letter-spacing: 2px;
  border: 1.5px solid var(--line); box-shadow: none; font-weight: 600;
}
.btn.warm { background: var(--grad-warm); box-shadow: 0 10px 26px rgba(255, 122, 107, .28); }
.btn.sun { background: var(--grad-sun); box-shadow: 0 10px 26px rgba(245, 185, 78, .30); color: #5A4300; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn.small { padding: 11px 0; font-size: 13px; letter-spacing: 1px; border-radius: 13px; }

/* 标签 chip */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 1px;
  color: var(--violet);
  padding: 5px 14px; border-radius: 999px;
  background: rgba(124, 92, 252, .08);
  border: 1px solid rgba(124, 92, 252, .18);
}
.chip.teal { color: #0E8F77; background: rgba(25, 185, 155, .08); border-color: rgba(25,185,155,.18); }
.chip.coral { color: #E75C4C; background: rgba(255, 122, 107, .08); border-color: rgba(255,122,107,.18); }
.chip.sun { color: #C98E17; background: rgba(245, 185, 78, .10); border-color: rgba(245,185,78,.22); }

/* 返回 */
.back-bar {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  color: var(--ink-2); font-size: 13px; font-weight: 600;
  margin-bottom: 14px; width: fit-content;
  padding: 7px 12px 7px 8px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.back-bar svg { width: 15px; height: 15px; }

/* 页面标题区 */
.page-head { text-align: center; margin: 8px 0 20px; }
.page-head .pre { font-size: 12px; font-weight: 700; letter-spacing: 3px; color: var(--violet); }
.page-head h2 {
  margin-top: 4px; font-family: var(--serif); font-weight: 900; font-size: 26px;
  letter-spacing: 1px; color: var(--ink);
}
.page-head .sub { margin-top: 4px; font-size: 13px; color: var(--ink-3); letter-spacing: 1px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(20px);
  z-index: 90; padding: 11px 22px; border-radius: 999px;
  background: var(--ink); border: none;
  color: #fff; font-size: 13px; letter-spacing: 1px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: all .3s ease; white-space: nowrap; max-width: 86vw;
  box-shadow: 0 8px 24px rgba(35, 42, 59, .25);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 骨架屏 */
.skeleton {
  position: relative; overflow: hidden; background: #EFE9DD; border-radius: 14px;
}
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%);} to { transform: translateX(100%);} }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; z-index: 70; display: none;
  align-items: flex-end; justify-content: center;
  background: rgba(35, 42, 59, .45); backdrop-filter: blur(4px);
}
.modal-mask.show { display: flex; animation: fadeIn .25s ease both; }
@keyframes fadeIn { from { opacity: 0;} to { opacity: 1;} }
.modal-panel {
  width: 100%; max-width: 640px; margin: 0 auto;
  background: var(--bg-soft);
  border-radius: 26px 26px 0 0; padding: 26px 22px calc(30px + env(safe-area-inset-bottom));
  animation: slideUp .4s cubic-bezier(.22,.8,.3,1) both;
  max-height: 86vh; overflow-y: auto;
  box-shadow: 0 -12px 40px rgba(58, 47, 31, .12);
}
@keyframes slideUp { from { transform: translateY(60px); opacity: 0;} to { transform: none; opacity: 1;} }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px;
  border-radius: 50%; display: grid; place-items: center;
  background: rgba(35, 42, 59, .06); border: 1px solid var(--line); color: var(--ink-3);
}
.modal-close svg { width: 16px; height: 16px; }

/* 底部导航 */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 640px; z-index: 50;
  display: flex; padding: 8px 8px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(58, 47, 31, .06);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 0; color: var(--ink-3); font-size: 11px; font-weight: 600; letter-spacing: .5px;
  transition: color .2s ease; position: relative;
}
.nav-item svg { width: 22px; height: 22px; }
.nav-item.on { color: var(--violet); }
.nav-item.on svg { filter: drop-shadow(0 2px 6px rgba(124, 92, 252, .3)); }
.nav-item.on::before {
  content: ""; position: absolute; top: -8px; width: 30px; height: 3px;
  background: var(--grad-main); border-radius: 3px;
}

/* 紧凑品牌头部（横排：小图标 + 名称 + 用户入口） */
.brand-bar {
  display: flex; align-items: center; gap: 11px;
  padding: 2px 2px 12px;
}
.brand-seal {
  width: 44px; height: 44px; border-radius: 15px; flex-shrink: 0;
  background: var(--card); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
  display: grid; place-items: center; padding: 7px;
}
.brand-seal svg { width: 100%; height: 100%; }
.brand-txt { flex: 1; min-width: 0; }
.brand-txt h1 {
  font-family: var(--serif); font-weight: 900; font-size: 19px; letter-spacing: 1px;
  color: var(--ink); line-height: 1.25;
}
.brand-txt .sub { font-size: 11.5px; color: var(--ink-3); letter-spacing: 1.5px; font-weight: 600; margin-top: 1px; }
.brand-user {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--ink-2);
  background: var(--card); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, color .2s ease;
}
.brand-user:active { transform: scale(.94); color: var(--violet); }
.brand-user svg { width: 20px; height: 20px; }

/* 轮播 */
.carousel { position: relative; border-radius: var(--r-lg); overflow: hidden; margin-top: 4px; box-shadow: var(--shadow); }
.carousel .track { display: flex; transition: transform .5s cubic-bezier(.22,.8,.3,1); }
.carousel .slide { flex: 0 0 100%; position: relative; height: 190px; overflow: hidden; cursor: pointer; }
.carousel .slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel .slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35,42,59,0) 45%, rgba(35,42,59,.55));
}
.carousel .slide .c-body { position: absolute; left: 18px; right: 18px; bottom: 15px; z-index: 2; color: #fff; }
.carousel .slide .c-body .c-cat { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--gold-2); }
.carousel .slide .c-body h3 { margin-top: 3px; font-family: var(--serif); font-weight: 900; font-size: 19px; line-height: 1.45; letter-spacing: .5px; }
.carousel .slide .c-body .c-sub { margin-top: 2px; font-size: 12px; color: rgba(255,255,255,.85); letter-spacing: .5px; }
.carousel .dots { position: absolute; bottom: 12px; right: 14px; z-index: 3; display: flex; gap: 6px; }
.carousel .dots i { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.4); transition: all .3s ease; }
.carousel .dots i.on { width: 18px; background: var(--gold-2); }

/* 区段标题 */
.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 14px; }
.sec-head .t { font-family: var(--serif); font-weight: 800; font-size: 18px; letter-spacing: 1px; color: var(--ink); }
.sec-head .t .dot { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 8px; background: var(--grad-main); transform: rotate(45deg); vertical-align: 1px; }
.sec-head .more { font-size: 12px; color: var(--ink-3); font-weight: 600; }

/* 测试卡片 */
.quiz-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.quiz-card {
  border-radius: var(--r-md); overflow: hidden; position: relative; cursor: pointer;
  background: var(--card); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease;
  border: 1px solid var(--line-2);
}
.quiz-card:active { transform: scale(.97); }
.quiz-card .q-img { height: 112px; overflow: hidden; position: relative; }
.quiz-card .q-img img { width: 100%; height: 100%; object-fit: cover; }
.quiz-card .q-img::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 42%, rgba(35,42,59,.42)); }
.quiz-card .q-cat {
  position: absolute; top: 9px; left: 9px; z-index: 2; font-size: 10px; font-weight: 700; letter-spacing: 1px;
  padding: 3px 9px; border-radius: 999px; color: #fff;
  background: rgba(35, 42, 59, .45); backdrop-filter: blur(4px);
}
.quiz-card .q-body { padding: 12px 13px 14px; }
.quiz-card .q-body h3 { font-family: var(--serif); font-weight: 800; font-size: 14px; line-height: 1.5; color: var(--ink); letter-spacing: .5px; }
.quiz-card .q-body .q-sub { margin-top: 3px; font-size: 11.5px; color: var(--ink-3); }
.quiz-card .q-body .q-meta { margin-top: 8px; display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--ink-3); font-weight: 600; }
.quiz-card .q-body .q-meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
.quiz-card .hot-flag {
  position: absolute; top: 9px; right: 9px; z-index: 2; font-size: 10px; font-weight: 700; letter-spacing: 1px;
  color: #5A4300; background: var(--grad-sun);
  padding: 3px 8px; border-radius: 999px; box-shadow: 0 3px 10px rgba(245,185,78,.4);
}

/* 分类入口（首页快捷） */
.cat-entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.cat-entry {
  border-radius: var(--r-md); padding: 13px 8px; text-align: center; cursor: pointer;
  background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
  transition: transform .18s ease;
}
.cat-entry:active { transform: scale(.96); }
.cat-entry .ce-ico {
  width: 40px; height: 40px; margin: 0 auto 7px; border-radius: 14px;
  display: grid; place-items: center; color: #fff;
}
.cat-entry .ce-ico svg { width: 20px; height: 20px; }
.cat-entry .ce-name { font-size: 12px; font-weight: 700; color: var(--ink-2); }

/* 分类页 */
.cat-page .cat-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; }
.cat-block {
  border-radius: var(--r-md); padding: 18px 16px; cursor: pointer; position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
  transition: transform .18s ease;
}
.cat-block:active { transform: scale(.97); }
.cat-block .cb-ico {
  width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 16px rgba(124, 92, 252, .25);
}
.cat-block .cb-ico svg { width: 22px; height: 22px; }
.cat-block h3 { margin-top: 10px; font-family: var(--serif); font-weight: 800; font-size: 16px; color: var(--ink); }
.cat-block .cb-desc { margin-top: 3px; font-size: 12px; color: var(--ink-3); }
.cat-block .cb-count { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 700; color: var(--ink-3); }

/* 画像页 */
.report-page .rp-hero {
  border-radius: var(--r-lg); padding: 22px; position: relative; overflow: hidden; color: #fff;
  background: var(--grad-main);
  box-shadow: 0 14px 34px rgba(124, 92, 252, .28);
}
.report-page .rp-hero::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px;
  border-radius: 50%; background: rgba(255,255,255,.14);
}
.report-page .rp-hero .rp-title { font-family: var(--serif); font-weight: 900; font-size: 21px; letter-spacing: 1px; }
.report-page .rp-hero .rp-sub { margin-top: 4px; font-size: 12.5px; color: rgba(255,255,255,.85); }
.report-page .rp-hero .rp-num { margin-top: 14px; display: flex; gap: 22px; }
.report-page .rp-hero .rp-num .n-item .n-v { font-family: var(--serif); font-weight: 900; font-size: 22px; }
.report-page .rp-hero .rp-num .n-item .n-l { font-size: 11px; color: rgba(255,255,255,.8); }
.report-page .rp-card {
  margin-top: 16px; border-radius: var(--r-lg); padding: 20px 18px;
  background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
}
.report-page .rp-card h3 { font-family: var(--serif); font-weight: 800; font-size: 16px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.report-page .rp-card h3::before { content: ""; width: 6px; height: 18px; border-radius: 4px; background: var(--grad-main); }
.report-page .rp-card .rp-desc { margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
.radar-wrap { margin-top: 12px; display: flex; justify-content: center; }
.radar-tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.radar-tags span { font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: rgba(124, 92, 252, .07); color: var(--violet); border: 1px solid rgba(124,92,252,.15); }
.rp-empty { text-align: center; padding: 30px 16px; }
.rp-empty .rp-e-ico { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 22px; display: grid; place-items: center; background: rgba(124,92,252,.08); color: var(--violet); }
.rp-empty .rp-e-ico svg { width: 30px; height: 30px; }
.rp-empty p { font-size: 13.5px; color: var(--ink-3); }
.rp-empty .btn { margin-top: 16px; }

/* 我的页 */
.profile-page .pf-head {
  border-radius: var(--r-lg); padding: 24px 20px; text-align: center; position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
}
.profile-page .pf-avatar {
  width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: var(--grad-warm);
  box-shadow: 0 10px 24px rgba(255, 122, 107, .35);
  font-family: var(--serif); font-weight: 900; font-size: 30px;
}
.profile-page .pf-name { font-family: var(--serif); font-weight: 900; font-size: 19px; color: var(--ink); }
.profile-page .pf-slogan { margin-top: 4px; font-size: 12.5px; color: var(--ink-3); }
.profile-page .pf-stats { margin-top: 16px; display: flex; justify-content: center; gap: 34px; }
.profile-page .pf-stats .s-item { text-align: center; }
.profile-page .pf-stats .s-item .s-v { font-family: var(--serif); font-weight: 900; font-size: 20px; color: var(--ink); }
.profile-page .pf-stats .s-item .s-l { font-size: 11px; color: var(--ink-3); }
.pf-list { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.pf-row {
  display: flex; align-items: center; gap: 14px; padding: 15px 16px;
  border-radius: var(--r-md); background: var(--card);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .15s ease;
}
.pf-row:active { transform: scale(.98); }
.pf-row .pf-ico { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.pf-row .pf-ico svg { width: 19px; height: 19px; }
.pf-row .pf-t { flex: 1; }
.pf-row .pf-t .pf-t-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.pf-row .pf-t .pf-t-sub { font-size: 11.5px; color: var(--ink-3); }
.pf-row .pf-arrow { color: var(--ink-3); }
.pf-row .pf-arrow svg { width: 16px; height: 16px; }

/* 历史记录 */
.history-list { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.history-item {
  display: flex; align-items: center; gap: 14px; padding: 13px 14px;
  border-radius: var(--r-md); background: var(--card);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); cursor: pointer;
}
.history-item .hi-img { width: 58px; height: 58px; border-radius: 13px; overflow: hidden; flex-shrink: 0; }
.history-item .hi-img img { width: 100%; height: 100%; object-fit: cover; }
.history-item .hi-body { flex: 1; min-width: 0; }
.history-item .hi-body .hi-q { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-item .hi-body .hi-r { margin-top: 2px; font-size: 11.5px; color: var(--violet); font-weight: 600; }
.history-item .hi-body .hi-t { margin-top: 2px; font-size: 10.5px; color: var(--ink-3); }
.history-empty { text-align: center; padding: 40px 16px; color: var(--ink-3); font-size: 13px; }
.history-empty .btn { margin-top: 16px; }

/* 答题页 */
.quiz-page { padding-top: 10px; }
.quiz-page .q-tag { display: flex; justify-content: center; margin-top: 4px; }
.quiz-page .question {
  margin-top: 14px; text-align: center; font-family: var(--serif); font-weight: 900;
  font-size: 21px; line-height: 1.6; letter-spacing: 1px; color: var(--ink);
}
.quiz-page .hint { margin-top: 6px; text-align: center; font-size: 12.5px; color: var(--ink-3); letter-spacing: 1px; font-weight: 600; }
.options { margin-top: 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.opt {
  position: relative; border-radius: var(--r-md); overflow: hidden; cursor: pointer;
  border: 2px solid var(--line-2);
  transition: transform .18s ease, border-color .2s ease, box-shadow .2s ease;
  background: var(--card); box-shadow: var(--shadow-sm);
}
.opt:active { transform: scale(.97); }
.opt .o-img { height: 132px; overflow: hidden; position: relative; }
.opt .o-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.opt .o-label {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  width: 30px; height: 30px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 900; font-size: 14px; color: #fff;
  background: rgba(35, 42, 59, .5); backdrop-filter: blur(4px);
}
.opt .o-name { padding: 10px 11px 0; font-family: var(--serif); font-weight: 800; font-size: 14px; color: var(--ink); letter-spacing: .5px; }
.opt .o-desc { padding: 2px 11px 12px; font-size: 11px; color: var(--ink-3); line-height: 1.55; }
.opt.picked {
  border-color: var(--violet);
  box-shadow: 0 0 0 2px rgba(124, 92, 252, .18), 0 12px 30px rgba(124, 92, 252, .14);
}
.opt.picked .o-label { background: var(--grad-cool); }
.opt.picked .o-img img { transform: scale(1.05); }
.opt.faded { opacity: .45; }
.quiz-page .submit-area { margin-top: 24px; }
.quiz-page .foot-hint { margin-top: 12px; text-align: center; font-size: 11.5px; color: var(--ink-3); font-weight: 600; }

/* 揭示层 */
.reveal-layer {
  position: fixed; inset: 0; z-index: 80; background: var(--bg-soft);
  display: none; place-items: center; text-align: center;
}
.reveal-layer.show { display: grid; }
.reveal-layer .ring { position: relative; width: 150px; height: 150px; }
.reveal-layer .ring .rim {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px dashed var(--violet); animation: spin 8s linear infinite; opacity: .5;
}
.reveal-layer .ring .rim.r2 { inset: 14px; border-style: solid; border-color: var(--teal); opacity: .35; animation-direction: reverse; animation-duration: 5s; }
.reveal-layer .ring .core {
  position: absolute; inset: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-main);
  box-shadow: 0 0 46px rgba(124, 92, 252, .4);
}
.reveal-layer .ring .core svg { width: 46px; height: 46px; color: #fff; animation: spin 3s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.reveal-layer .r-text { margin-top: 30px; font-family: var(--serif); font-weight: 900; font-size: 17px; letter-spacing: 3px; color: var(--ink); animation: pageIn 1s both .3s; }
.reveal-layer .r-sub { margin-top: 8px; font-size: 12.5px; color: var(--ink-3); letter-spacing: 1px; animation: pageIn 1s both .7s; }
.reveal-layer .r-dots { margin-top: 22px; display: flex; gap: 8px; justify-content: center; }
.reveal-layer .r-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); opacity: .3; animation: pulse 1.4s infinite; }
.reveal-layer .r-dots i:nth-child(2) { animation-delay: .2s; }
.reveal-layer .r-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes pulse { 0%,100% { opacity: 1;} 50% { opacity: .3;} }

/* 结果页 */
.result-page { padding-top: 10px; }
.result-card {
  position: relative; margin-top: 16px; border-radius: var(--r-lg); overflow: hidden;
  background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.result-card .r-img { height: 210px; position: relative; overflow: hidden; }
.result-card .r-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.result-card .r-img img.on { opacity: 1; }
.result-card .r-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(35,42,59,0) 50%, rgba(35,42,59,.45)); }
.result-card .r-img .r-orn {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 2;
  font-family: var(--serif); font-weight: 900; font-size: 40px; letter-spacing: 4px;
  color: rgba(255,255,255,.95); text-shadow: 0 4px 24px rgba(0,0,0,.35);
}
.result-card .r-body { padding: 20px 22px 24px; position: relative; }
.result-card .r-kicker {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 3px; color: var(--violet);
}
.result-card .r-kicker::before, .result-card .r-kicker::after { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad-cool); }
.result-card .r-name { margin-top: 10px; text-align: center; font-family: var(--serif); font-weight: 900; font-size: 25px; letter-spacing: 2px; color: var(--ink); }
.result-card .r-tags { margin-top: 12px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.result-card .r-tags span {
  font-size: 11.5px; font-weight: 600; letter-spacing: .5px; padding: 4px 12px; border-radius: 999px;
  color: var(--violet); border: 1px solid rgba(124, 92, 252, .2); background: rgba(124, 92, 252, .06);
}
.result-card .r-read { margin-top: 14px; font-size: 13.5px; line-height: 2; color: var(--ink-2); letter-spacing: .3px; }
.result-card .r-read .hl { color: var(--violet); font-weight: 700; }
.result-card .r-tip {
  margin-top: 16px; padding: 13px 15px; border-radius: var(--r-sm);
  background: rgba(25, 185, 155, .07); border: 1px solid rgba(25, 185, 155, .2);
  font-size: 12.5px; line-height: 1.9; color: #0E7A66;
}
.result-card .r-tip b { color: #0E8F77; font-weight: 700; }
.result-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.result-share-tip { margin-top: 16px; text-align: center; font-size: 11.5px; color: var(--ink-3); font-weight: 600; }

/* 关于页 */
.about .about-card {
  margin-top: 16px; border-radius: var(--r-lg); padding: 24px 20px;
  background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
}
.about .about-card h3 { font-family: var(--serif); font-weight: 800; font-size: 17px; letter-spacing: 1px; color: var(--ink); margin-bottom: 10px; }
.about .about-card p { font-size: 13.5px; line-height: 2; color: var(--ink-2); }
.about .about-card .hl { color: var(--violet); font-weight: 700; }
.about .about-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.about .about-list .li { display: flex; gap: 10px; font-size: 13px; color: var(--ink-3); line-height: 1.8; }
.about .about-list .li::before { content: "✦"; color: var(--violet); font-size: 11px; margin-top: 3px; }

/* 分享弹窗 */
.share-card { text-align: center; }
.share-card .s-qr-wrap {
  margin: 18px auto 6px; width: 170px; height: 170px; border-radius: 16px;
  background: #fff; padding: 8px; display: grid; place-items: center;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.share-card .s-qr-wrap img { width: 100%; height: 100%; }
.share-card .s-title { font-family: var(--serif); font-weight: 800; font-size: 16px; letter-spacing: 1px; color: var(--ink); }
.share-card .s-sub { margin-top: 4px; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.share-card .s-note { margin-top: 12px; font-size: 11.5px; color: var(--ink-3); }
.share-card .s-btn { margin-top: 18px; }

/* 规则弹窗 */
.rules-card h3 { font-family: var(--serif); font-weight: 800; font-size: 17px; letter-spacing: 1px; color: var(--ink); }
.rules-card p { margin-top: 10px; font-size: 13px; line-height: 2; color: var(--ink-3); }
.rules-card .rules-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); line-height: 1.8; }

/* 页脚 */
.foot-note { text-align: center; padding: 26px 0 4px; font-size: 11.5px; color: var(--ink-3); letter-spacing: 1px; font-weight: 600; }

/* 桌面适配 */
@media (min-width: 768px) {
  .app-shell::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(90deg, rgba(58,47,31,.05) 0%, transparent 15%, transparent 85%, rgba(58,47,31,.05) 100%);
  }
  .page { padding-top: 26px; }
  .carousel .slide { height: 240px; }
  .quiz-grid { grid-template-columns: repeat(2, 1fr); }
}
