/* ============================================================
   安愈 · 页面样式
   ============================================================ */

/* ============ 首页 ============ */
.home-head {
  display: flex; align-items: flex-start; gap: 10px;
  padding: calc(var(--safe-t) + 14px) 16px 10px;
}
.hh-hi { font-family: var(--font-serif); font-size: var(--fs-h1); font-weight: 600; letter-spacing: .04em; }
.hh-sub { font-size: var(--fs-sm); color: var(--ink-3); margin-top: 1px; }
.hh-right { display: flex; gap: 4px; margin-left: auto; flex: 0 0 auto; }
.hh-right .icon-btn { background: var(--surface); box-shadow: var(--sh-1); color: var(--brand-600); }

.hero {
  position: relative; margin: 4px 16px 0;
  border-radius: var(--r-xl); overflow: hidden;
  aspect-ratio: 4 / 3.1; box-shadow: var(--sh-2);
  isolation: isolate;
}
.hero-art { position: absolute; inset: 0; }
.hero-quote {
  position: absolute; left: 16px; right: 66px; bottom: 16px; z-index: 2;
  display: flex; gap: 8px; align-items: flex-start;
}
.hero-quote p {
  font-family: var(--font-serif); font-size: var(--fs-h3); line-height: 1.62;
  color: #22302C; text-shadow: 0 1px 10px rgba(255,255,255,.75);
}
.hq-mark { color: var(--brand-600); opacity: .5; flex: 0 0 auto; margin-top: 2px; }
:root[data-theme="dark"] .hero-quote p { color: #EAF3EF; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-quote p { color: #EAF3EF; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
}
.hero-sound {
  position: absolute; right: 14px; bottom: 14px; z-index: 3;
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,.88); color: var(--brand-700);
  display: grid; place-items: center; box-shadow: var(--sh-2);
  transition: transform var(--dur-1) var(--ease), background var(--dur-1);
}
.hero-sound .ico { width: 24px; height: 24px; }
.hero-sound:active { transform: scale(.92); }
.hero-sound.on { background: var(--brand-500); color: #fff; animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(111,158,148,.45); } 50% { box-shadow: 0 0 0 12px rgba(111,158,148,0); } }

.quick {
  display: grid; grid-template-columns: repeat(5, 1fr);
  margin: 14px 16px 0; padding: 16px 4px;
}
.quick-item { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; }
.qi-icon { width: 30px; height: 30px; }
.qi-icon .ico { width: 100%; height: 100%; }
.qi-label { font-size: var(--fs-xs); color: var(--ink-2); white-space: nowrap; }

.banners { margin-top: 16px; }
.banner-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  gap: 0; scrollbar-width: none; scroll-behavior: smooth;
}
.banner-track::-webkit-scrollbar { display: none; }
.banner {
  position: relative; flex: 0 0 100%; scroll-snap-align: center;
  height: 158px;
}
.banner::after {
  content: ''; position: absolute; inset: 0 16px; border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
  pointer-events: none;
}
.bn-art { position: absolute; inset: 0 16px; border-radius: var(--r-lg); overflow: hidden; }
.bn-scrim {
  position: absolute; inset: 0 16px; border-radius: var(--r-lg);
  background: linear-gradient(90deg, rgba(12,24,22,.56) 0%, rgba(12,24,22,.18) 62%, rgba(12,24,22,.02) 100%);
}
.bn-tag {
  position: absolute; top: 12px; left: 28px; z-index: 2;
  height: 24px; padding: 0 11px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.9); color: var(--brand-700);
  font-size: var(--fs-xs); font-weight: 600;
  display: inline-flex; align-items: center;
}
.bn-text { position: absolute; left: 28px; right: 46px; bottom: 16px; z-index: 2; }
.bn-text h3 {
  font-family: var(--font-serif); font-size: var(--fs-h1); color: #fff; font-weight: 600;
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bn-text p { font-size: var(--fs-sm); color: rgba(255,255,255,.86); text-shadow: 0 1px 6px rgba(0,0,0,.42); }
.banner-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.bd {
  width: 6px; height: 6px; border-radius: 3px; background: var(--line);
  transition: width var(--dur-2) var(--ease), background var(--dur-2);
}
.bd.on { width: 18px; background: var(--brand-500); }

.music-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px 16px 0; }
.mc {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 1 / 1.06; box-shadow: var(--sh-1);
}
.mc-art { position: absolute; inset: 0; }
.mc-text {
  position: absolute; inset: auto 0 0 0; padding: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.86) 46%);
}
:root[data-theme="dark"] .mc-text { background: linear-gradient(180deg, rgba(22,33,30,0), rgba(22,33,30,.9) 46%); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mc-text { background: linear-gradient(180deg, rgba(22,33,30,0), rgba(22,33,30,.9) 46%); }
}
.mc-text h3 { font-size: var(--fs-h3); font-weight: 600; }
.mc-text p { font-size: 10px; color: var(--ink-3); letter-spacing: .04em; }

.home-foot {
  text-align: center; color: var(--ink-4); font-size: var(--fs-xs);
  padding: 28px 16px 10px; letter-spacing: .1em;
}

/* ============ 播放页 ============ */
.player { position: relative; min-height: 100dvh; display: flex; flex-direction: column; }
.pl-bg { position: fixed; inset: 0; max-width: var(--app-max); margin: 0 auto; z-index: 0; }
.pl-veil {
  position: fixed; inset: 0; max-width: var(--app-max); margin: 0 auto; z-index: 1;
  background: linear-gradient(180deg, rgba(10,20,18,.34) 0%, rgba(10,20,18,.06) 26%, rgba(10,20,18,.42) 62%, rgba(8,16,15,.82) 100%);
}
.pl-head {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: calc(var(--safe-t) + 10px) 12px 0;
}
.pl-brand { font-family: var(--font-serif); color: #fff; font-size: var(--fs-h3); letter-spacing: .3em; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.icon-btn.glass {
  background: rgba(255,255,255,.16); color: #fff;
  backdrop-filter: blur(8px);
}
.icon-btn.glass:active { background: rgba(255,255,255,.3); }
.icon-btn.fav-on { color: #F5D08A; }

.pl-center { position: relative; z-index: 3; flex: 1 1 auto; display: grid; place-items: center; padding: 20px; }
.pl-play {
  position: relative; width: 96px; height: 96px; border-radius: 50%;
  background: rgba(255,255,255,.24); color: #fff;
  display: grid; place-items: center;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,.24), inset 0 0 0 1.5px rgba(255,255,255,.5);
  transition: transform var(--dur-1) var(--ease), background var(--dur-1);
}
.pl-play .ico { width: 42px; height: 42px; }
.pl-play:active { transform: scale(.94); }
.pl-halo {
  position: absolute; inset: -14px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.34);
  opacity: 0;
}
.pl-play.playing .pl-halo { animation: halo 3.4s var(--ease) infinite; }
@keyframes halo {
  0% { transform: scale(.86); opacity: .7; }
  100% { transform: scale(1.35); opacity: 0; }
}

.pl-info { position: relative; z-index: 3; padding: 0 22px calc(20px + var(--safe-b)); }
.pl-badges { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pl-tutor { font-size: var(--fs-xs); color: rgba(255,255,255,.78); }
.pl-title {
  font-family: var(--font-serif); font-size: var(--fs-display); font-weight: 600;
  color: #fff; letter-spacing: .04em; text-shadow: 0 2px 14px rgba(0,0,0,.5);
}
.pl-desc {
  margin-top: 8px; font-size: var(--fs-sm); line-height: 1.75;
  color: rgba(255,255,255,.9); text-shadow: 0 1px 8px rgba(0,0,0,.55);
  display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.pl-tools { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.pl-tool {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.14); backdrop-filter: blur(6px);
}
.pl-tool .ico { width: 20px; height: 20px; }
.pl-tool-tag {
  position: absolute; bottom: -3px; right: -5px;
  min-width: 20px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--brand-500); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
}
.pl-voices {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  color: rgba(255,255,255,.92); font-size: var(--fs-xs);
}
.pl-voices .ico { width: 24px; height: 24px; }

.pl-progress { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.pp-t { font-size: var(--fs-xs); color: rgba(255,255,255,.8); font-variant-numeric: tabular-nums; min-width: 40px; }
.pp-t:last-child { text-align: right; }
.pp-bar { flex: 1 1 auto; }
.pp-bar::-webkit-slider-runnable-track {
  background: linear-gradient(to right, #fff var(--pct, 0%), rgba(255,255,255,.32) var(--pct, 0%));
}
.pp-bar::-webkit-slider-thumb { background: #fff; border-color: #fff; }
.pp-bar::-moz-range-track { background: rgba(255,255,255,.32); }
.pp-bar::-moz-range-progress { background: #fff; }
.pp-bar::-moz-range-thumb { background: #fff; border-color: #fff; }

.pl-lockbar {
  position: relative; z-index: 3;
  margin: 0 16px calc(16px + var(--safe-b));
  padding: 12px 14px; border-radius: var(--r-lg);
  background: rgba(255,255,255,.92);
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--sh-2);
}
:root[data-theme="dark"] .pl-lockbar { background: rgba(22,33,30,.94); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pl-lockbar { background: rgba(22,33,30,.94); } }
.pl-lockbar b { display: block; font-size: var(--fs-h3); }
.pl-lockbar span { font-size: var(--fs-xs); color: var(--ink-3); }
.pl-lockbar .btn { flex: 0 0 auto; margin-left: auto; }

/* 播放页弹层内容 */
.opt-list { display: flex; flex-direction: column; }
.opt-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 14px 4px; border-bottom: 1px solid var(--line-soft);
  font-size: var(--fs-h3); color: var(--ink-2); text-align: left;
}
.opt-row .ico { width: 20px; height: 20px; color: var(--line); flex: 0 0 auto; }
.opt-row.on { color: var(--brand-600); font-weight: 600; }
.opt-row.on .ico { color: var(--brand-500); }
.opt-row.static { cursor: default; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button {
  width: 30px; height: 30px; border-radius: 50%; background: var(--bg-2);
  color: var(--ink-2); font-size: 18px; line-height: 1;
}
.stepper b { min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; }
.stepper .unit { font-size: var(--fs-sm); color: var(--ink-3); margin-left: 2px; }

.mix { display: flex; flex-direction: column; gap: 16px; }
.mix-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.mix-label { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--ink-2); white-space: nowrap; }
.mix-label .ico { width: 18px; height: 18px; color: var(--brand-600); }
.mix-val { font-size: var(--fs-xs); color: var(--ink-3); min-width: 26px; text-align: right; font-variant-numeric: tabular-nums; }
.mix-switch { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--ink-2); }
.mix-switch span { flex: 1 1 auto; }
.mix-tip { font-size: var(--fs-xs); color: var(--ink-4); line-height: 1.6; }

.sheet-voices .voice-list { display: flex; flex-direction: column; gap: 14px; max-height: 46vh; overflow-y: auto; }
.voice { display: flex; gap: 10px; }
.vc-text { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.65; }
.vc-meta { font-size: var(--fs-xs); color: var(--ink-4); margin-top: 2px; }
.voice-input { display: flex; gap: 8px; margin-top: 14px; }
.voice-input input {
  flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 14px;
  border-radius: var(--r-pill); border: 1px solid var(--line);
  background: var(--surface-2); outline: none; font-size: var(--fs-sm);
}
.voice-input input:focus { border-color: var(--brand-300); }

/* ============ 分类 / 列表 ============ */
.cat-hero, .custom-hero, .starter-hero {
  position: relative; margin: 4px 16px 8px; height: 128px;
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1);
}
.ch-art, .sh-art { position: absolute; inset: 0; }
.cat-hero::after, .custom-hero::after, .starter-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12,24,22,.6), rgba(12,24,22,.06));
}
.ch-text, .sh-text { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; }
.ch-text h2, .sh-text h2 { font-family: var(--font-serif); font-size: var(--fs-h1); color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.ch-text p, .sh-text p { font-size: var(--fs-sm); color: rgba(255,255,255,.86); }
.sh-bar { margin-top: 8px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.sh-bar i { display: block; height: 100%; background: #fff; border-radius: 3px; }

.rows { padding: 4px 0 20px; }

/* 搜索 */
.search-bar {
  display: flex; align-items: center; gap: 8px;
  margin: 6px 16px 14px; padding: 0 6px 0 14px;
  height: 46px; border-radius: var(--r-pill);
  background: var(--surface); box-shadow: var(--sh-1);
}
.sb-ico { color: var(--ink-4); display: flex; }
.sb-ico .ico { width: 19px; height: 19px; }
.search-bar input { flex: 1 1 auto; min-width: 0; border: 0; background: none; outline: none; font-size: var(--fs-body); }
.sb-go { padding: 0 14px; height: 34px; border-radius: var(--r-pill); background: var(--brand-500); color: #fff; font-size: var(--fs-sm); font-weight: 600; }
.sr-sec { padding: 8px 16px 4px; }
.sr-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 10px; }
.sr-head h3 { font-size: var(--fs-h3); font-weight: 600; }
.sr-clear { font-size: var(--fs-sm); color: var(--ink-4); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px;
  border-radius: var(--r-pill); background: var(--bg-2); color: var(--ink-2);
  font-size: var(--fs-sm); white-space: nowrap;
}
.chip.on { background: var(--brand-100); color: var(--brand-700); font-weight: 600; }
.hot-list { display: flex; flex-direction: column; }
.hot-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft);
  font-size: var(--fs-body); text-align: left;
}
.hot-item .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-item .ico { width: 16px; height: 16px; color: var(--ink-4); }
.hot-n {
  width: 21px; height: 21px; border-radius: 50%; flex: 0 0 auto;
  background: var(--bg-2); color: var(--ink-3);
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.hot-n.n1 { background: #D9705F; color: #fff; }
.hot-n.n2 { background: #E0A45C; color: #fff; }
.hot-n.n3 { background: #C9A87C; color: #fff; }
.sr-count { padding: 4px 16px; font-size: var(--fs-sm); color: var(--ink-3); }

/* 七日课 */
.plan { padding: 4px 16px 8px; display: flex; flex-direction: column; gap: 8px; }
.plan-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-1);
}
.plan-item.done { background: var(--brand-50); }
.plan-item.locked { opacity: .55; }
.pi-day {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  background: var(--bg-2); color: var(--ink-3);
  font-size: var(--fs-sm); font-weight: 700; display: grid; place-items: center;
}
.plan-item.done .pi-day { background: var(--brand-500); color: #fff; }
.plan-item h3 { font-size: var(--fs-h3); font-weight: 600; }
.plan-item p { font-size: var(--fs-xs); color: var(--ink-3); }
.pi-lock .ico { width: 18px; height: 18px; color: var(--ink-4); }

/* ============ 树苗 ============ */
.head-link { font-size: var(--fs-sm); color: var(--brand-600); display: inline-flex; align-items: center; gap: 3px; padding: 0 6px; }
.head-link .ico { width: 16px; height: 16px; }

.tree-stage {
  position: relative; margin: 0 0 0; height: 462px; overflow: hidden;
}
.ts-bg { position: absolute; inset: 0; }
.ts-energy {
  position: absolute; top: 14px; left: 16px; z-index: 3;
  display: flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 14px 0 10px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.86); color: var(--brand-800);
  font-size: var(--fs-sm); box-shadow: var(--sh-1);
}
.ts-energy b { font-size: var(--fs-h3); }
.tse-ico { display: flex; color: var(--brand-500); }
.tse-ico .ico { width: 18px; height: 18px; }

.ts-water {
  position: absolute; top: 78px; right: 16px; z-index: 3;
  width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(150deg, #9FD3E6, #6FA8C6); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  font-size: var(--fs-xs); font-weight: 600;
  box-shadow: 0 6px 18px rgba(80,140,170,.4);
  transition: transform var(--dur-1) var(--ease);
}
.ts-water .ico { width: 22px; height: 22px; }
.ts-water:active { transform: scale(.92); }
.ts-water[disabled] { filter: grayscale(.55); opacity: .6; }

.ts-growth {
  position: absolute; left: 16px; top: 78px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 8px 8px 10px; border-radius: var(--r-md);
  background: rgba(255,255,255,.7); backdrop-filter: blur(4px);
}
.tsg-label { font-size: 10px; color: var(--ink-3); }
.ts-growth b { font-size: var(--fs-h3); color: var(--brand-700); line-height: 1.1; }
.tsg-max { font-size: 10px; color: var(--ink-4); }
.tsg-bar {
  width: 6px; height: 118px; border-radius: 3px; margin-top: 5px;
  background: rgba(255,255,255,.6); display: flex; align-items: flex-end; overflow: hidden;
}
.tsg-bar i { display: block; width: 100%; background: linear-gradient(180deg, #9BC8A6, #6F9E94); border-radius: 3px; }

.ts-tree {
  position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 2;
  width: 236px; height: 236px;
}
.ts-tree.withered { filter: saturate(.42) brightness(.94); }
.tree-svg { width: 100%; height: 100%; }

.ts-caption {
  position: absolute; left: 12px; right: 12px; bottom: 34px; z-index: 3;
  text-align: center; display: flex; flex-direction: column; gap: 1px;
  padding: 8px 12px; border-radius: var(--r-md);
  background: rgba(255,255,255,.62); backdrop-filter: blur(3px);
}
.ts-caption b { font-size: var(--fs-h3); color: var(--brand-800); }
.ts-caption span { font-size: var(--fs-xs); color: var(--ink-2); }
.tsc-next { color: var(--brand-600) !important; }

.task-panel {
  position: relative; z-index: 4; margin-top: -18px;
  background: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 16px 16px 24px; box-shadow: 0 -8px 26px rgba(35,51,48,.08);
}
.tp-head { display: flex; align-items: baseline; gap: 8px; }
.tp-head .ico { width: 20px; height: 20px; color: var(--brand-600); align-self: center; }
.tp-head h2 { font-family: var(--font-serif); font-size: var(--fs-h1); font-weight: 600; }
.tp-en { margin-left: auto; font-size: var(--fs-xs); color: var(--ink-4); letter-spacing: .08em; }
.tp-sub { font-size: var(--fs-sm); color: var(--ink-3); margin-top: 2px; }
.tasks { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.task {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px; border-radius: var(--r-md);
  background: linear-gradient(100deg, var(--brand-50), var(--surface-2));
  border: 1px solid var(--line-soft);
}
.task.done { opacity: .62; }
.tk-ico { color: var(--brand-500); display: flex; }
.tk-ico .ico { width: 19px; height: 19px; }
.task h3 { font-size: var(--fs-h3); font-weight: 600; }
.task p { font-size: var(--fs-xs); color: var(--brand-700); }
.task .btn { flex: 0 0 auto; }

/* ============ 呼吸 ============ */
.breath-page { position: relative; min-height: 100dvh; text-align: center; }
.bp-bg { position: fixed; inset: 0; max-width: var(--app-max); margin: 0 auto; z-index: 0; opacity: .55; }
.breath-page > *:not(.bp-bg) { position: relative; z-index: 2; }
.bp-picker { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 4px 16px 10px; }
.bp-stage { display: grid; place-items: center; padding: 22px 0 10px; }
.bp-circle { position: relative; width: 230px; height: 230px; display: grid; place-items: center; }
.bp-ring {
  position: absolute; border-radius: 50%; border: 1.5px solid var(--brand-300);
  transition: transform var(--phase-dur, 4s) linear, opacity var(--phase-dur, 4s) linear;
}
.bp-ring.r1 { inset: 46px; }
.bp-ring.r2 { inset: 24px; opacity: .7; }
.bp-ring.r3 { inset: 2px; opacity: .45; }
.bp-circle.inhale .bp-ring { transform: scale(1.22); opacity: 1; }
.bp-circle.exhale .bp-ring { transform: scale(.78); opacity: .5; }
.bp-circle.hold .bp-ring { transform: scale(1.1); }
.bp-core {
  width: 122px; height: 122px; border-radius: 50%;
  background: var(--glass); backdrop-filter: blur(10px);
  display: grid; place-items: center; align-content: center; gap: 2px;
  box-shadow: var(--sh-2);
}
.bp-core b { font-family: var(--font-serif); font-size: var(--fs-h1); color: var(--brand-800); }
.bp-core span { font-size: var(--fs-h2); color: var(--brand-600); font-variant-numeric: tabular-nums; }
.bp-desc { font-size: var(--fs-sm); color: var(--ink-2); padding: 6px 30px; }
.bp-round { font-size: var(--fs-sm); color: var(--ink-3); margin-top: 4px; }

/* ============ 情绪日记 ============ */
.diary-new { margin: 6px 16px 18px; padding: 16px; }
.dn-q { font-size: var(--fs-h3); font-weight: 600; margin-bottom: 12px; }
.moods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mood {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 2px; border-radius: var(--r-md); background: var(--bg-2);
  font-size: var(--fs-xs); color: var(--ink-2);
  transition: background var(--dur-1), transform var(--dur-1);
}
.mood.on { background: var(--brand-100); color: var(--brand-700); font-weight: 600; transform: translateY(-2px); }
.mo-emo { font-size: 22px; line-height: 1.2; }
.diary-h { font-family: var(--font-serif); font-size: var(--fs-h2); padding: 0 16px 8px; }
.diary-list { padding: 0 16px 24px; display: flex; flex-direction: column; gap: 10px; }
.diary-item {
  display: flex; gap: 11px; padding: 13px 14px;
  background: var(--surface); border-radius: var(--r-md); box-shadow: var(--sh-1);
}
.di-emo { font-size: 22px; }
.diary-item p { font-size: var(--fs-sm); color: var(--ink-2); margin-top: 2px; line-height: 1.6; }

/* ============ 课程 ============ */
.course-search {
  display: flex; align-items: center; gap: 8px;
  margin: calc(var(--safe-t) + 12px) 16px 12px; padding: 0 14px;
  height: 44px; border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--sh-1);
}
.course-search input { flex: 1 1 auto; min-width: 0; border: 0; background: none; outline: none; }
.course-banner { position: relative; display: block; margin: 0 16px; height: 150px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); }
.cb-art { position: absolute; inset: 0; }
.cb-scrim { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(12,24,22,.58), rgba(12,24,22,.06)); }
.cb-text { position: absolute; left: 18px; bottom: 16px; z-index: 2; }
.cb-en { font-size: 10px; letter-spacing: .16em; color: rgba(255,255,255,.75); }
.cb-text h2 { font-family: var(--font-serif); font-size: var(--fs-display); color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.cb-sub { font-size: var(--fs-sm); color: rgba(255,255,255,.86); }
.course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 10px 16px 24px; }
.course-card { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); display: flex; flex-direction: column; }
.cc-art { position: relative; aspect-ratio: 3 / 4; }
.cc-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,24,22,0) 40%, rgba(12,24,22,.72)); }
.cc-ov { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; }
.cc-ov h3 { font-family: var(--font-serif); font-size: var(--fs-h3); color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.5); line-height: 1.4; }
.cc-ov p { font-size: 10px; color: rgba(255,255,255,.82); margin-top: 2px; }
.cc-info { padding: 9px 11px 11px; display: flex; flex-direction: column; gap: 7px; flex: 1 1 auto; }
.cc-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.cc-tags span { font-size: 10px; padding: 2px 7px; border-radius: var(--r-pill); background: var(--brand-50); color: var(--brand-700); }
.cc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-xs); }
.cc-tutor { color: var(--ink-3); }
.cc-price { color: var(--sand-700); font-weight: 700; }

.cd-hero { position: relative; height: 210px; margin: 0 16px; border-radius: var(--r-lg); overflow: hidden; }
.cd-art { position: absolute; inset: 0; }
.cd-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,24,22,.1), rgba(12,24,22,.72)); }
.cd-title { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; }
.cd-title h1 { font-family: var(--font-serif); font-size: var(--fs-h1); color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.44); }
.cd-tag { display: inline-block; margin: 6px 5px 0 0; font-size: 10px; padding: 3px 9px; border-radius: var(--r-pill); background: rgba(255,255,255,.86); color: var(--brand-700); }
.cd-meta { margin: 14px 16px; padding: 6px 16px; }
.cdm-row { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: var(--fs-sm); }
.cdm-row:last-child { border-bottom: 0; }
.cdm-k { color: var(--ink-3); width: 40px; flex: 0 0 auto; }
.cdm-v { color: var(--ink); display: inline-flex; align-items: center; gap: 4px; }
.cdm-v .ico { width: 15px; height: 15px; color: var(--brand-500); }
.cdm-v.price { color: var(--sand-700); font-weight: 700; }
.cd-sec { padding: 8px 18px 18px; }
.cd-sec h2 { font-family: var(--font-serif); font-size: var(--fs-h2); margin-bottom: 8px; }
.cd-sec p { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.85; }
.cd-outline { counter-reset: o; }
.cd-outline li { counter-increment: o; position: relative; padding: 8px 0 8px 30px; font-size: var(--fs-sm); color: var(--ink-2); border-bottom: 1px dashed var(--line-soft); }
.cd-outline li::before {
  content: counter(o); position: absolute; left: 0; top: 9px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-100); color: var(--brand-700); font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
}
.cd-bar, .tp-bar, .mb-bar {
  position: sticky; bottom: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px calc(10px + var(--safe-b));
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(35, 51, 48, .10);
}
.qr-box {
  width: 148px; height: 148px; margin: 14px auto 8px; border-radius: var(--r-md);
  overflow: hidden; position: relative; box-shadow: var(--sh-1);
  display: grid; place-items: center;
}
.qr-box svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.qr-box span { position: relative; z-index: 2; font-size: var(--fs-xs); color: #fff; background: rgba(0,0,0,.42); padding: 3px 10px; border-radius: var(--r-pill); }

/* ============ 疗愈室 ============ */
.room-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--safe-t) + 14px) 16px 8px;
}
.room-head h1 { font-size: var(--fs-h1); font-weight: 600; letter-spacing: .06em; }
.room-hero { position: relative; margin: 4px 16px 0; height: 150px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); }
.rh-art { position: absolute; inset: 0; }
.rh-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,24,22,.06), rgba(12,24,22,.6)); }
.rh-text { position: absolute; left: 18px; bottom: 16px; z-index: 2; }
.rh-text h2 { font-family: var(--font-serif); font-size: var(--fs-h1); color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.rh-text p { font-size: var(--fs-sm); color: rgba(255,255,255,.88); }
.room-note { display: flex; gap: 9px; margin: 12px 16px; padding: 12px 14px; }
.room-note .ico { width: 19px; height: 19px; color: var(--brand-500); flex: 0 0 auto; }
.room-note p { font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.65; }

.therapists { padding: 0 16px 24px; display: flex; flex-direction: column; gap: 10px; }
.th-card {
  display: flex; gap: 12px; align-items: center;
  padding: 13px 14px; border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--brand-50), var(--surface));
  box-shadow: var(--sh-1);
}
.th-main { flex: 1 1 auto; min-width: 0; }
.th-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.th-top h3 { font-size: var(--fs-h2); font-weight: 600; }
.th-price { font-size: var(--fs-xs); color: var(--sand-700); white-space: nowrap; }
.th-price b { font-size: var(--fs-h2); font-weight: 700; }
.th-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.th-tags span { font-size: var(--fs-xs); padding: 2px 9px; border-radius: var(--r-pill); background: var(--surface); color: var(--brand-700); }
.th-foot { display: flex; justify-content: space-between; margin-top: 7px; font-size: var(--fs-xs); color: var(--ink-3); }

.tp-hero { position: relative; height: 300px; }
.tph-art { position: absolute; inset: 0; }
.tph-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,24,22,.16), rgba(12,24,22,.7)); }
.tph-body { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tph-body h1 { font-family: var(--font-serif); font-size: var(--fs-display); color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.44); }
.tph-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 0 20px; }
.tph-tags span { font-size: var(--fs-xs); padding: 3px 10px; border-radius: var(--r-pill); background: rgba(255,255,255,.86); color: var(--brand-700); }
.tph-stats { display: flex; gap: 18px; margin-top: 6px; color: rgba(255,255,255,.9); font-size: var(--fs-xs); }
.tph-stats b { font-size: var(--fs-h3); }
.tp-sec { padding: 16px 18px 4px; }
.tp-sec h2 { font-family: var(--font-serif); font-size: var(--fs-h2); margin-bottom: 8px; }
.tp-sec p { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.85; }
.slots { display: flex; flex-wrap: wrap; gap: 9px; }
.slot {
  padding: 9px 15px; border-radius: var(--r-md);
  background: var(--bg-2); color: var(--ink-2); font-size: var(--fs-sm);
  border: 1.4px solid transparent; transition: all var(--dur-1);
}
.slot.on { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-400); font-weight: 600; }
.notes li { position: relative; padding-left: 16px; font-size: var(--fs-sm); color: var(--ink-2); margin: 7px 0; line-height: 1.7; }
.notes li::before { content: ''; position: absolute; left: 2px; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-400); }
.tpb-price { font-size: var(--fs-sm); color: var(--sand-700); white-space: nowrap; }
.tpb-price b { font-size: var(--fs-h1); font-weight: 700; }
.tpb-price span { color: var(--ink-3); }

.bookings { padding: 6px 16px 24px; display: flex; flex-direction: column; gap: 10px; }
.bk { display: flex; align-items: center; gap: 11px; padding: 13px 14px; }
.bk-status { font-size: var(--fs-xs); color: var(--brand-600); }
.bk-status.off { color: var(--ink-4); }

/* ============ 我的 ============ */
.mine-top { position: relative; height: 220px; }
.mt-art { position: absolute; inset: 0; }
.mt-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,24,22,.2), rgba(12,24,22,.05) 44%, var(--bg) 100%); }
.mt-actions { position: absolute; top: calc(var(--safe-t) + 10px); right: 10px; z-index: 3; display: flex; gap: 4px; }
.mt-actions .icon-btn { position: relative; }
.mt-actions .dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: #D9705F; }
.mt-user { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; display: flex; align-items: center; gap: 12px; }
.mt-user h1 { font-family: var(--font-serif); font-size: var(--fs-h1); }
.mt-sub { font-size: var(--fs-sm); color: var(--ink-3); }

.vip-bar {
  display: flex; align-items: center; gap: 11px;
  margin: 4px 16px 0; padding: 13px 15px; border-radius: var(--r-lg);
  background: linear-gradient(115deg, #F6EBD8, #E6D2AE);
  box-shadow: var(--sh-1);
}
:root[data-theme="dark"] .vip-bar { background: linear-gradient(115deg, #33291A, #47391F); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .vip-bar { background: linear-gradient(115deg, #33291A, #47391F); } }
.vb-ico { color: var(--sand-700); display: flex; }
.vb-ico .ico { width: 24px; height: 24px; }
.vip-bar b { display: block; font-size: var(--fs-h3); color: #6B5227; }
.vip-bar span { font-size: var(--fs-xs); color: #8A7043; }
:root[data-theme="dark"] .vip-bar b { color: var(--sand-700); }
:root[data-theme="dark"] .vip-bar span { color: var(--sand-500); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .vip-bar b { color: var(--sand-700); }
  :root:not([data-theme="light"]) .vip-bar span { color: var(--sand-500); }
}
.vb-cta {
  flex: 0 0 auto; height: 30px; padding: 0 14px; border-radius: var(--r-pill);
  background: #6B5227; color: #F8F1E2; font-size: var(--fs-xs); font-weight: 600;
  display: inline-flex; align-items: center;
}

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 12px 16px; padding: 16px 6px; }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--font-serif); font-size: var(--fs-h1); color: var(--brand-700); }
.stat span { font-size: var(--fs-xs); color: var(--ink-3); }

.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 0 16px; padding: 16px 6px; }
.tool { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 2px; }
.tool-ico {
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: var(--brand-50); color: var(--brand-600);
  display: grid; place-items: center;
}
.tool-ico .ico { width: 21px; height: 21px; }
.tool-label { font-size: var(--fs-xs); color: var(--ink-2); text-align: center; }

.tree-entry { display: flex; align-items: center; gap: 10px; margin: 12px 16px; padding: 12px 14px; }
.te-art { width: 62px; height: 62px; flex: 0 0 auto; }
.tree-entry b { font-size: var(--fs-h3); }
.te-bar { margin-top: 6px; height: 5px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.te-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-300), var(--brand-500)); }
.tree-entry > .ico { color: var(--ink-4); flex: 0 0 auto; }

.menu { margin: 12px 16px; overflow: hidden; }
.menu li + li { border-top: 1px solid var(--line-soft); }
.menu li > a, .menu li.set-row, .menu li.set-col {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-size: var(--fs-body);
}
.menu li.set-col { flex-direction: column; align-items: stretch; gap: 6px; }
.menu li.set-col span { font-size: var(--fs-sm); color: var(--ink-2); }
.menu li > a > .ico:first-child { color: var(--brand-600); }
.menu li > a > .ico:last-child { color: var(--ink-4); width: 18px; height: 18px; }
.set-h { font-size: var(--fs-sm); color: var(--ink-3); padding: 18px 20px 2px; }
.lbl { display: block; font-size: var(--fs-sm); color: var(--ink-3); margin-top: 10px; }

.switch { position: relative; display: inline-block; width: 46px; height: 27px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.switch i {
  position: absolute; inset: 0; border-radius: var(--r-pill); background: var(--line);
  transition: background var(--dur-2);
}
.switch i::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.22);
  transition: transform var(--dur-2) var(--ease);
}
.switch input:checked + i { background: var(--brand-500); }
.switch input:checked + i::after { transform: translateX(19px); }

/* ============ 会员 ============ */
.member-page { min-height: 100dvh; display: flex; flex-direction: column; }
.mb-hero { position: relative; height: 250px; }
.mb-art { position: absolute; inset: 0; }
.mb-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,24,22,.34), rgba(12,24,22,.08) 40%, var(--bg)); }
.member-page .page-head { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.member-page .page-head .icon-btn, .member-page .page-head h1 { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.mb-body { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mb-body h1 { font-size: var(--fs-h1); }
.mb-body p { font-size: var(--fs-sm); color: var(--ink-2); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 6px 16px 4px; }
.plan-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 16px 6px 13px; border-radius: var(--r-lg);
  background: var(--surface); border: 1.6px solid var(--line);
  transition: all var(--dur-1);
}
.plan-card.on { border-color: var(--sand-500); background: linear-gradient(170deg, #FBF4E7, var(--surface)); }
:root[data-theme="dark"] .plan-card.on { background: linear-gradient(170deg, #2C2519, var(--surface)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plan-card.on { background: linear-gradient(170deg, #2C2519, var(--surface)); } }
.pc-tag {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  font-size: 10px; padding: 2px 9px; border-radius: var(--r-pill);
  background: var(--sand-500); color: #fff; white-space: nowrap;
}
.pc-name { font-size: var(--fs-sm); color: var(--ink-2); }
.pc-price { font-size: var(--fs-sm); color: var(--sand-700); }
.pc-price b { font-family: var(--font-serif); font-size: 27px; font-weight: 700; }
.pc-origin { font-size: var(--fs-xs); color: var(--ink-4); text-decoration: line-through; }
.pc-per { font-size: 10px; color: var(--ink-3); }

.rights { padding: 18px 16px 0; }
.rights-h { font-family: var(--font-serif); font-size: var(--fs-h2); padding: 0 0 12px; }
.rights-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.right { padding: 14px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-1); }
.r-ico { display: inline-flex; color: var(--sand-700); margin-bottom: 5px; }
.r-ico .ico { width: 22px; height: 22px; }
.right b { display: block; font-size: var(--fs-h3); }
.right p { font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.55; margin-top: 2px; }
.mb-fine { font-size: var(--fs-xs); color: var(--ink-4); padding: 16px 20px 20px; line-height: 1.7; text-align: center; }
.mbb-price { font-size: var(--fs-sm); color: var(--ink-3); white-space: nowrap; }
.mbb-price b { font-family: var(--font-serif); font-size: var(--fs-h1); color: var(--sand-700); }

.pay-list { display: flex; flex-direction: column; }
.pay-opt { display: flex; align-items: center; gap: 11px; width: 100%; padding: 14px 4px; border-bottom: 1px solid var(--line-soft); }
.pay-opt .ico:last-child { width: 20px; height: 20px; color: var(--line); }
.pay-opt.on .ico:last-child { color: var(--brand-500); }
.po-ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: #fff; }
.po-ico.wx { background: #4CB26A; }
.po-ico.ali { background: #3E8BD6; }
.po-ico .ico { width: 19px; height: 19px; }

/* ============ 报告 ============ */
.report-seg { display: flex; margin: 4px auto 12px; }
.rp-card { position: relative; margin: 0 16px; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-2); }
.rp-art { position: absolute; inset: 0; opacity: .26; }
.rp-inner { position: relative; z-index: 2; padding: 20px 16px 18px; background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.94)); }
:root[data-theme="dark"] .rp-inner { background: linear-gradient(180deg, rgba(22,33,30,.78), rgba(22,33,30,.96)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rp-inner { background: linear-gradient(180deg, rgba(22,33,30,.78), rgba(22,33,30,.96)); } }
.rp-date { font-size: var(--fs-xs); color: var(--ink-3); text-align: center; }
.rp-inner h2 { text-align: center; font-size: var(--fs-h1); margin-top: 2px; }
.rp-score { position: relative; width: 96px; height: 96px; margin: 14px auto 4px; }
.rp-score-c { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; }
.rp-score-c b { font-family: var(--font-serif); font-size: 30px; color: var(--brand-700); line-height: 1.16; }
.rp-score-c span { font-size: 10px; color: var(--ink-3); }
.radar { width: 100%; max-width: 300px; margin: 0 auto; }
.rp-dims { display: flex; flex-direction: column; gap: 9px; margin-top: 8px; }
.rp-dims li { display: grid; grid-template-columns: 52px 1fr 30px; align-items: center; gap: 8px; }
.rd-name { font-size: var(--fs-sm); color: var(--ink-2); }
.rd-bar { height: 7px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.rd-bar i { display: block; height: 100%; border-radius: 4px; }
.rd-v { font-size: var(--fs-sm); text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rp-read { padding: 20px 18px 6px; }
.rp-read > h2 { font-family: var(--font-serif); font-size: var(--fs-h2); margin-bottom: 8px; }
.rp-item { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.rp-item h3 { font-size: var(--fs-h3); color: var(--brand-700); margin-bottom: 4px; }
.rp-item p { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.8; }
.rp-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 14px 16px; padding: 16px 6px; }

/* ============ 消息 / 邀请 ============ */
.notices { padding: 6px 16px 24px; display: flex; flex-direction: column; gap: 10px; }
.notice { padding: 14px 15px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-1); }
.notice p { font-size: var(--fs-sm); color: var(--ink-3); margin-top: 4px; line-height: 1.65; }
.notice.unread { border-left: 3px solid var(--brand-500); }

.invite-page { min-height: 100dvh; }
.iv-hero { position: relative; height: 330px; }
.iv-art { position: absolute; inset: 0; }
.iv-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,24,22,.24), rgba(12,24,22,.1) 40%, var(--bg)); }
.invite-page .page-head { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.invite-page .page-head .icon-btn, .invite-page .page-head h1 { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.iv-body { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; text-align: center; }
.iv-body h1 { font-size: var(--fs-display); }
.iv-body p { font-size: var(--fs-sm); color: var(--ink-2); margin-top: 4px; }
.iv-code {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 14px; padding: 12px 16px; border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--sh-1);
}
.iv-code span { font-size: var(--fs-xs); color: var(--ink-3); }
.iv-code b { font-family: var(--font-serif); font-size: var(--fs-h1); letter-spacing: .18em; color: var(--brand-700); }
.iv-steps { margin: 14px 16px; padding: 8px 16px; }
.ivs { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.ivs:last-child { border-bottom: 0; }
.ivs-n { width: 24px; height: 24px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); font-size: var(--fs-xs); font-weight: 700; display: grid; place-items: center; flex: 0 0 auto; }
.ivs b { font-size: var(--fs-h3); }
.ivs p { font-size: var(--fs-xs); color: var(--ink-3); }
.rank-list { padding: 0 16px; display: flex; flex-direction: column; gap: 8px; }
.rank { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-1); }
.rk-n { width: 22px; height: 22px; border-radius: 50%; background: var(--bg-2); color: var(--ink-3); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.rk-n.n1 { background: #E7C68F; color: #6B5227; }
.rk-n.n2 { background: #D6DBD8; color: #4A5754; }
.rk-n.n3 { background: #E3C7AE; color: #6B4F35; }
.rank b { color: var(--brand-700); font-size: var(--fs-sm); }

/* ============ 关于 ============ */
.about-hero { position: relative; height: 190px; margin: 0 0 8px; }
.ab-art { position: absolute; inset: 0; }
.ab-mark { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 2px; z-index: 2; }
.ab-mark span { font-size: 40px; color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.35); letter-spacing: .2em; }
.ab-mark i { font-style: normal; font-size: 11px; letter-spacing: .5em; color: rgba(255,255,255,.86); }

/* ============ 首启协议 ============ */
.gate-wrap { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.gate-mask { position: absolute; inset: 0; background: rgba(14,24,22,.62); opacity: 0; transition: opacity var(--dur-2); }
.gate-wrap.open .gate-mask { opacity: 1; }
.gate {
  position: relative; width: 100%; max-width: 350px; max-height: 78vh;
  background: var(--surface); border-radius: var(--r-xl);
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: var(--sh-3);
  transform: scale(.94); opacity: 0;
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-2);
}
.gate-wrap.open .gate { transform: none; opacity: 1; }
.gate-tabs { display: flex; padding: 14px 10px 0; gap: 6px; }
.gate-tabs button {
  flex: 1 1 0; padding: 8px 0 10px; position: relative;
  font-size: var(--fs-h3); color: var(--ink-3);
}
.gate-tabs button.on { color: var(--brand-700); font-weight: 600; }
.gate-tabs button.on::after {
  content: ''; position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%);
  width: 18px; height: 3px; border-radius: 2px; background: var(--brand-500);
}
.gate-body { flex: 1 1 auto; overflow-y: auto; padding: 6px 20px 10px; font-size: var(--fs-sm); line-height: 1.8; color: var(--ink-2); }
.gate-body h3, .prose.agreement h3 { font-family: var(--font-serif); font-size: var(--fs-h2); color: var(--ink); text-align: center; margin: 8px 0 4px; }
.gate-body h4, .prose.agreement h4 { font-size: var(--fs-h3); color: var(--ink); margin: 14px 0 4px; }
.gate-body p, .prose.agreement p { margin: 6px 0; }
.gate-body .eff, .prose.agreement .eff { color: var(--ink-4); font-size: var(--fs-xs); text-align: center; }
.gate-actions { display: flex; gap: 10px; padding: 12px 20px calc(18px + var(--safe-b)); border-top: 1px solid var(--line-soft); }
.gate-actions .btn { flex: 1 1 0; min-height: 44px; }

/* ============ 引导测评 ============ */
.onb { position: relative; min-height: 100dvh; display: grid; place-items: center; padding: 24px 18px calc(24px + var(--safe-b)); }
.onb-bg { position: fixed; inset: 0; max-width: var(--app-max); margin: 0 auto; z-index: 0; }
.onb-stage { position: relative; z-index: 2; width: 100%; }
.onb-stage.in { animation: onbIn var(--dur-3) var(--ease-out) both; }
@keyframes onbIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.onb-card {
  background: var(--glass); backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-xl); padding: 28px 22px 22px;
  box-shadow: var(--sh-2); text-align: center;
}
.onb-mark { font-size: 30px; letter-spacing: .2em; color: var(--brand-700); margin-bottom: 16px; }
.onb-h { font-size: var(--fs-h1); margin-bottom: 8px; }
.onb-lead { font-size: var(--fs-h3); line-height: 2.1; color: var(--ink-2); }
.onb-lead b { color: var(--brand-700); }
.onb-sub { font-size: var(--fs-sm); color: var(--ink-3); margin: 12px 0 20px; }
.onb-skip { display: block; margin: 12px auto 0; font-size: var(--fs-sm); color: var(--ink-4); padding: 6px 12px; }
.onb-back { font-size: var(--fs-sm); color: var(--ink-3); padding: 6px 12px; }
.onb-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.onb-prog { display: flex; gap: 5px; justify-content: center; margin-bottom: 14px; }
.onb-prog i { width: 22px; height: 4px; border-radius: 2px; background: var(--line); }
.onb-prog i.on { background: var(--brand-500); }
.onb-qn { font-size: var(--fs-xs); color: var(--ink-4); }
.onb-q { font-family: var(--font-serif); font-size: var(--fs-h1); margin: 8px 0 22px; line-height: 1.5; }
.onb-opts { display: flex; flex-direction: column; gap: 10px; }
.onb-opt {
  padding: 15px; border-radius: var(--r-lg);
  background: var(--surface); border: 1.6px solid var(--line);
  font-size: var(--fs-h3); color: var(--ink-2);
  transition: all var(--dur-1);
}
.onb-opt.on { background: var(--brand-50); border-color: var(--brand-400); color: var(--brand-700); font-weight: 600; }
.goal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 6px; }
.goal {
  padding: 13px 4px; border-radius: var(--r-md);
  background: var(--surface); border: 1.4px solid var(--line);
  font-size: var(--fs-sm); color: var(--ink-2); transition: all var(--dur-1);
}
.goal.on { background: var(--brand-50); border-color: var(--brand-400); color: var(--brand-700); font-weight: 600; }
.onb-badge { width: 54px; height: 54px; margin: 0 auto 10px; border-radius: 50%; background: var(--brand-100); color: var(--brand-600); display: grid; place-items: center; }
.onb-badge .ico { width: 28px; height: 28px; }
.onb-level { font-size: var(--fs-h2); color: var(--brand-700); font-weight: 600; }
.onb-sum { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.8; margin: 8px 0 16px; }
.onb-picks { display: flex; flex-direction: column; gap: 8px; }
.onb-pick {
  display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 8px 12px 8px 8px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-1);
}
.op-art { width: 42px; height: 42px; border-radius: var(--r-sm); overflow: hidden; flex: 0 0 auto; }
.onb-pick b { display: block; font-size: var(--fs-h3); }
.onb-pick i { font-style: normal; font-size: var(--fs-xs); color: var(--ink-3); }
.onb-pick .ico { color: var(--brand-500); flex: 0 0 auto; }

/* ============ 登录 / 注册 ============ */
.auth-page { position: relative; min-height: 100dvh; padding-bottom: calc(20px + var(--safe-b)); }
.auth-bg { position: fixed; inset: 0; max-width: var(--app-max); margin: 0 auto; z-index: 0; opacity: .55; }
.auth-page > *:not(.auth-bg) { position: relative; z-index: 2; }
.auth-back { position: absolute; top: calc(var(--safe-t) + 8px); left: 8px; z-index: 5; }
.auth-brand { text-align: center; padding: calc(var(--safe-t) + 58px) 0 22px; }
.auth-brand p { font-size: var(--fs-sm); color: var(--ink-3); letter-spacing: .2em; }
.auth-brand h1 { font-size: 42px; color: var(--brand-700); letter-spacing: .22em; margin-top: 2px; }
.auth-card {
  margin: 0 18px; padding: 18px 20px 22px;
  background: var(--glass); backdrop-filter: blur(16px);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-xl); box-shadow: var(--sh-2);
}
.auth-tabs { padding: 0 0 6px; gap: 24px; }
.auth-h { font-size: var(--fs-h2); font-weight: 600; margin-bottom: 8px; }
.cc { font-size: var(--fs-body); color: var(--ink-2); flex: 0 0 auto; }
.field-act.icon-only { display: flex; color: var(--ink-4); }
.field-act.icon-only .ico { width: 20px; height: 20px; }
.auth-foot { display: flex; justify-content: space-between; margin-top: 16px; font-size: var(--fs-sm); color: var(--brand-600); }
.auth-tip { text-align: center; font-size: var(--fs-xs); color: var(--ink-4); margin-top: 18px; padding: 0 24px; }
.auth-tip b { color: var(--brand-600); }

/* ============ 窄屏兜底 ============ */
@media (max-width: 359px) {
  .quick { grid-template-columns: repeat(5, 1fr); padding: 14px 2px; }
  .qi-label { font-size: 10px; }
  .music-cats { gap: 7px; }
  .goal-grid { grid-template-columns: repeat(2, 1fr); }
  .moods { grid-template-columns: repeat(4, 1fr); }
  .tools { grid-template-columns: repeat(4, 1fr); }
}

/* ============ 新增：场景音选择 / 解锁弹层 / 订单 / 第三方登录 ============ */
.hero-scape {
  position: absolute; right: 72px; bottom: 24px; z-index: 3;
  height: 30px; padding: 0 12px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.9); color: var(--brand-700);
  font-size: var(--fs-xs); font-weight: 600; box-shadow: var(--sh-1);
  max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.scape-list { display: flex; flex-direction: column; max-height: 56vh; overflow-y: auto; }
.scape-opt {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 13px 4px; border-bottom: 1px solid var(--line-soft);
  font-size: var(--fs-h3); color: var(--ink-2); text-align: left;
}
.scape-opt .ico:last-child { width: 20px; height: 20px; color: transparent; flex: 0 0 auto; }
.scape-opt.on { color: var(--brand-700); font-weight: 600; }
.scape-opt.on .ico:last-child { color: var(--brand-500); }
.so-ico {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto;
  background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center;
}
.so-ico .ico { width: 17px; height: 17px; }
.scape-opt.off .so-ico { background: var(--bg-2); color: var(--ink-3); }

.unlock-list { display: flex; flex-direction: column; gap: 10px; }
.unlock-opt {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 14px; border-radius: var(--r-lg);
  background: var(--surface); border: 1.6px solid var(--line);
  transition: all var(--dur-1);
}
.unlock-opt.on { border-color: var(--brand-400); background: var(--brand-50); }
.unlock-opt b { display: block; font-size: var(--fs-h3); }
.unlock-opt i { font-style: normal; font-size: var(--fs-xs); color: var(--ink-3); }
.uo-ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }
.uo-ico.single { background: var(--brand-100); color: var(--brand-700); }
.uo-ico.vip { background: var(--sand-100); color: var(--sand-700); }
.uo-ico .ico { width: 19px; height: 19px; }
.uo-price { flex: 0 0 auto; color: var(--sand-700); font-size: var(--fs-h3); }
.unlock-opt > .ico:last-child { width: 20px; height: 20px; color: transparent; flex: 0 0 auto; }
.unlock-opt.on > .ico:last-child { color: var(--brand-500); }

.orders { padding: 6px 16px 10px; display: flex; flex-direction: column; gap: 10px; }
.order { display: flex; align-items: center; gap: 11px; padding: 13px 14px; }
.od-ico { width: 36px; height: 36px; border-radius: var(--r-md); display: grid; place-items: center; flex: 0 0 auto; }
.od-ico.vip { background: var(--sand-100); color: var(--sand-700); }
.od-ico.single { background: var(--brand-100); color: var(--brand-700); }
.od-ico.course { background: #E6EEF6; color: #5B7FA6; }
.od-ico.booking { background: #F2E7EA; color: #A9727F; }
:root[data-theme="dark"] .od-ico.course { background: #1E2A36; }
:root[data-theme="dark"] .od-ico.booking { background: #2C1F24; }
.od-ico .ico { width: 19px; height: 19px; }
.od-amt { color: var(--sand-700); font-size: var(--fs-h3); white-space: nowrap; }

.third-party { margin: 22px 18px 0; }
.tp-divider { position: relative; text-align: center; }
.tp-divider::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line);
}
.tp-divider span {
  position: relative; padding: 0 12px; background: var(--bg);
  font-size: var(--fs-xs); color: var(--ink-4);
}
.tp-btns { display: flex; gap: 14px; justify-content: center; margin-top: 16px; }
.tp-btn {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  font-size: var(--fs-xs); color: var(--ink-3);
}
.tp-btn .ico {
  width: 46px; height: 46px; border-radius: 50%; color: #fff;
  display: grid; place-items: center; box-shadow: var(--sh-1);
}
.tp-btn .ico svg { width: 22px; height: 22px; }
.tp-btn.wx .ico { background: #4CB26A; }
.tp-btn.ap .ico { background: #2E3A38; }

.course-banners { margin-top: 2px; }
.course-banner.banner { height: 150px; }

/* ============ 二轮补齐：咨询 / 通话 / 钱包 / 礼品 / 等级 / 空间 / 微练习 / 学习 ============ */

/* --- 会话列表 --- */
.talk-list { padding: 6px 16px 24px; display: flex; flex-direction: column; gap: 10px; }
.talk-row { display: flex; gap: 11px; padding: 13px 14px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); }
.tr-last { font-size: var(--fs-sm); color: var(--ink-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.tr-tags span { font-size: 10px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--bg-2); color: var(--ink-3); }
.tr-tags .on { background: var(--brand-100); color: var(--brand-700); }
.tr-tags .rated { background: var(--sand-100); color: var(--sand-700); }

/* --- 发起咨询弹层 --- */
.st-sec { margin-bottom: 16px; }
.st-label { font-size: var(--fs-sm); color: var(--ink-3); margin-bottom: 8px; }
.st-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.st-mode { padding: 12px 6px; border-radius: var(--r-md); background: var(--surface); border: 1.6px solid var(--line); text-align: center; transition: all var(--dur-1); }
.st-mode.on { border-color: var(--brand-400); background: var(--brand-50); }
.stm-ico { display: inline-flex; color: var(--brand-600); margin-bottom: 4px; }
.stm-ico .ico { width: 20px; height: 20px; }
.st-mode b { display: block; font-size: var(--fs-sm); }
.st-mode i { font-style: normal; font-size: 10px; color: var(--ink-4); }
.st-durs { display: flex; gap: 8px; }
.st-dur { flex: 1 1 0; padding: 11px 4px; border-radius: var(--r-md); background: var(--surface); border: 1.6px solid var(--line); font-size: var(--fs-sm); transition: all var(--dur-1); }
.st-dur.on { border-color: var(--brand-400); background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.st-fee { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line-soft); font-size: var(--fs-sm); color: var(--ink-3); }
.st-fee b { font-family: var(--font-serif); font-size: var(--fs-h1); color: var(--sand-700); }
.st-notice li { position: relative; padding-left: 14px; font-size: var(--fs-xs); color: var(--ink-4); line-height: 1.7; margin: 5px 0; }
.st-notice li::before { content: ''; position: absolute; left: 2px; top: .75em; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-4); }

/* --- 咨询会话页 --- */
.talk-page { padding-bottom: 84px; }
.talk-tip { display: flex; gap: 8px; margin: 6px 16px 12px; padding: 11px 13px; border-radius: var(--r-md); background: var(--brand-50); }
.talk-tip .ico { width: 17px; height: 17px; color: var(--brand-600); flex: 0 0 auto; margin-top: 2px; }
.talk-tip p { font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.7; }
.tk-demo { display: block; color: var(--ink-4); margin-top: 2px; }
.msgs { padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.msg { display: flex; gap: 8px; align-items: flex-end; }
.msg.me { flex-direction: row-reverse; }
.msg .bubble { max-width: 76%; padding: 10px 13px; border-radius: 16px; background: var(--surface); box-shadow: var(--sh-1); }
.msg.me .bubble { background: linear-gradient(135deg, var(--brand-400), var(--brand-600)); color: #fff; }
.msg .bubble p { font-size: var(--fs-body); line-height: 1.65; word-break: break-word; }
.msg .bubble time { display: block; margin-top: 3px; font-size: 10px; color: var(--ink-4); }
.msg.me .bubble time { color: rgba(255,255,255,.75); text-align: right; }
.msg.ta .bubble { border-top-left-radius: 6px; }
.msg.me .bubble { border-bottom-right-radius: 6px; }
.dots { display: inline-flex; gap: 4px; padding: 3px 0; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); animation: dot 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.talk-input {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 50;
  width: 100%; max-width: var(--app-max);
  display: flex; gap: 8px; padding: 10px 16px calc(10px + var(--safe-b));
  background: var(--surface); border-top: 1px solid var(--line);
}
.talk-input input { flex: 1 1 auto; min-width: 0; height: 42px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface-2); outline: none; font-size: var(--fs-body); }
.talk-input input:focus { border-color: var(--brand-300); }
.talk-ended { text-align: center; padding: 20px 16px 30px; color: var(--ink-3); font-size: var(--fs-sm); }
.talk-ended .btn { margin-top: 10px; }

/* --- 通话页 --- */
.call-wrap { position: fixed; inset: 0; z-index: 320; opacity: 0; transition: opacity var(--dur-2); }
.call-wrap.open { opacity: 1; }
.call-bg { position: absolute; inset: 0; max-width: var(--app-max); margin: 0 auto; }
.call-veil { position: absolute; inset: 0; max-width: var(--app-max); margin: 0 auto; background: linear-gradient(180deg, rgba(8,16,15,.62), rgba(8,16,15,.86)); }
.call-body { position: absolute; left: 0; right: 0; top: 18%; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.call-body h2 { font-family: var(--font-serif); font-size: var(--fs-display); color: #fff; }
.call-body p { color: rgba(255,255,255,.82); font-size: var(--fs-body); font-variant-numeric: tabular-nums; }
.call-mode { font-size: var(--fs-xs) !important; color: rgba(255,255,255,.6) !important; }
.call-actions { position: absolute; left: 0; right: 0; bottom: calc(50px + var(--safe-b)); z-index: 2; display: flex; justify-content: center; gap: 30px; }
.call-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; color: rgba(255,255,255,.9); font-size: var(--fs-xs); }
.call-btn .ico { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; backdrop-filter: blur(8px); }
.call-btn .ico svg { width: 24px; height: 24px; }
.call-btn.on .ico { background: rgba(255,255,255,.86); color: var(--brand-700); }
.call-btn.hang .ico { background: #C2705F; }

/* --- 咨询评价 --- */
.eval-head { text-align: center; padding: 18px 16px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.eval-head h2 { font-family: var(--font-serif); font-size: var(--fs-h1); }
.stars { display: flex; justify-content: center; gap: 10px; padding: 14px 0 4px; }
.star { color: var(--line); transition: color var(--dur-1), transform var(--dur-1); }
.star .ico { width: 36px; height: 36px; }
.star.on { color: #E7B65C; transform: scale(1.06); }
.star-tip { text-align: center; font-size: var(--fs-sm); color: var(--ink-3); margin-bottom: 14px; }

/* --- 钱包 --- */
.wallet-page { min-height: 100dvh; }
.wl-card { position: relative; height: 250px; }
.wl-art { position: absolute; inset: 0; }
.wl-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,24,22,.34), rgba(12,24,22,.1) 44%, var(--bg)); }
.wallet-page .page-head { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.wallet-page .page-head .icon-btn, .wallet-page .page-head h1 { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.wl-body { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; text-align: center; }
.wl-body p { font-size: var(--fs-sm); color: var(--ink-3); }
.wl-body b { display: block; font-family: var(--font-serif); font-size: 42px; color: var(--brand-700); line-height: 1.2; }
.wl-btns { display: flex; gap: 10px; justify-content: center; margin-top: 10px; }
.wl-stat { display: grid; grid-template-columns: repeat(3, 1fr); margin: 4px 16px 0; padding: 16px 6px; }
.wl-list { padding: 4px 16px 24px; display: flex; flex-direction: column; gap: 8px; }
.wl-row { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-1); }
.wr-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }
.wr-ico.in { background: var(--brand-100); color: var(--brand-700); }
.wr-ico.out { background: var(--sand-100); color: var(--sand-700); }
.wr-ico .ico { width: 17px; height: 17px; }
.wr-in { color: var(--ok); } .wr-out { color: var(--ink-2); }
.rc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.rc-pack { position: relative; padding: 16px 6px 12px; border-radius: var(--r-md); background: var(--surface); border: 1.6px solid var(--line); transition: all var(--dur-1); }
.rc-pack.on { border-color: var(--sand-500); background: var(--sand-100); }
.rc-pack b { display: block; font-family: var(--font-serif); font-size: var(--fs-h1); color: var(--sand-700); }
.rc-pack i { font-style: normal; font-size: var(--fs-xs); color: var(--ink-3); }
.rc-tag { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); font-size: 10px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--sand-500); color: #fff; white-space: nowrap; }
.wallet-entry { display: flex; align-items: center; gap: 11px; margin: 12px 16px; padding: 13px 15px; }
.we-ico { width: 38px; height: 38px; border-radius: var(--r-md); background: var(--sand-100); color: var(--sand-700); display: grid; place-items: center; flex: 0 0 auto; }
.we-ico .ico { width: 20px; height: 20px; }
.wallet-entry b { font-size: var(--fs-h3); }
.wallet-entry > .ico { color: var(--ink-4); flex: 0 0 auto; }

/* --- 礼品 --- */
.gift-cost { display: inline-flex; align-items: center; gap: 3px; color: var(--brand-700); font-weight: 600; }
.gift-cost .ico { width: 14px; height: 14px; }
.gift-card .gc-foot { align-items: center; }

/* --- 等级 --- */
.level-page { min-height: 100dvh; }
.lv-hero { position: relative; height: 300px; }
.lv-art { position: absolute; inset: 0; }
.lv-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,24,22,.3), rgba(12,24,22,.08) 42%, var(--bg)); }
.level-page .page-head { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.level-page .page-head .icon-btn, .level-page .page-head h1 { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.lv-body { position: absolute; left: 20px; right: 20px; bottom: 14px; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.lv-body h1 { font-family: var(--font-serif); font-size: var(--fs-display); }
.lv-body p { font-size: var(--fs-sm); color: var(--ink-2); }
.lv-bar { width: 100%; height: 7px; border-radius: 4px; background: var(--bg-2); overflow: hidden; margin-top: 6px; }
.lv-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-300), var(--brand-500)); }
.lv-exp { font-size: var(--fs-xs) !important; color: var(--ink-3) !important; }
.lv-how { margin: 12px 16px; padding: 14px 16px; }
.lv-how h3 { font-size: var(--fs-h3); margin-bottom: 6px; }
.lv-list { padding: 0 16px 24px; display: flex; flex-direction: column; gap: 8px; }
.lv-item { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-1); opacity: .6; }
.lv-item.got { opacity: 1; }
.lv-item.on { background: var(--brand-50); border: 1.4px solid var(--brand-300); }
.lv-n { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-2); color: var(--ink-3); font-size: var(--fs-sm); font-weight: 700; display: grid; place-items: center; flex: 0 0 auto; }
.lv-item.got .lv-n { background: var(--brand-500); color: #fff; }
.lv-item b { font-size: var(--fs-h3); }
.lv-item p { font-size: var(--fs-xs); color: var(--ink-3); }
.lv-need { font-size: var(--fs-xs); color: var(--ink-4); flex: 0 0 auto; }

/* --- 线下空间 --- */
.places { padding: 4px 16px 24px; display: flex; flex-direction: column; gap: 10px; }
.place-row { display: flex; gap: 11px; padding: 11px 12px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); }
.pl-art { width: 78px; height: 78px; border-radius: var(--r-md); overflow: hidden; flex: 0 0 auto; }
.place-row .ico { width: 13px; height: 13px; vertical-align: -.2em; }
.pl-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.pl-tags span { font-size: 10px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--brand-50); color: var(--brand-700); }
.pd-hero { position: relative; height: 220px; }
.pd-art { position: absolute; inset: 0; }
.pd-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,24,22,.24), rgba(12,24,22,.7)); }
.pd-title { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; }
.pd-title h1 { font-family: var(--font-serif); font-size: var(--fs-h1); color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.44); }
.pd-title p { font-size: var(--fs-sm); color: rgba(255,255,255,.86); }

/* --- 微练习 --- */
.micro-play { position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--brand-700); display: grid; place-items: center; }
.micro-play .ico { width: 17px; height: 17px; }
.micro-page { position: relative; min-height: 100dvh; display: flex; flex-direction: column; }
.mv-bg { position: fixed; inset: 0; max-width: var(--app-max); margin: 0 auto; z-index: 0; }
.mv-veil { position: fixed; inset: 0; max-width: var(--app-max); margin: 0 auto; z-index: 1; background: linear-gradient(180deg, rgba(10,20,18,.3), rgba(10,20,18,.5) 40%, rgba(8,16,15,.85)); }
.micro-page > *:not(.mv-bg):not(.mv-veil) { position: relative; z-index: 3; }
.mv-body { flex: 1 1 auto; padding: 10px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.mv-count { font-family: var(--font-serif); font-size: 64px; color: #fff; line-height: 1.1; text-shadow: 0 2px 18px rgba(0,0,0,.4); font-variant-numeric: tabular-nums; }
.mv-body h1 { font-family: var(--font-serif); font-size: var(--fs-h1); color: #fff; }
.mv-sub { font-size: var(--fs-sm); color: rgba(255,255,255,.8); margin-bottom: 12px; }
.mv-steps { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.mv-steps li { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--r-md); background: rgba(255,255,255,.14); color: rgba(255,255,255,.78); font-size: var(--fs-sm); text-align: left; backdrop-filter: blur(6px); transition: all var(--dur-2); }
.mv-steps li span { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; font-size: 11px; flex: 0 0 auto; }
.mv-steps li.on { background: rgba(255,255,255,.92); color: var(--ink); font-weight: 600; }
.mv-steps li.on span { background: var(--brand-500); color: #fff; }
.mv-bar { padding: 12px 20px calc(16px + var(--safe-b)); }

/* --- 学习页 --- */
.study-hero { position: relative; margin: 4px 16px 8px; height: 128px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); }
.study-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,24,22,.6), rgba(12,24,22,.06)); }
.lessons { padding: 4px 16px 24px; display: flex; flex-direction: column; gap: 8px; }
.lesson { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-1); }
.lesson.done { background: var(--brand-50); }
.lesson.locked { opacity: .55; }
.ls-n { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-2); color: var(--ink-3); font-size: var(--fs-sm); font-weight: 700; display: grid; place-items: center; flex: 0 0 auto; }
.lesson.done .ls-n { background: var(--brand-500); color: #fff; }
.lesson b { font-size: var(--fs-h3); }
.lesson p { font-size: var(--fs-xs); color: var(--ink-3); }

/* 预约日期与时段（对齐泉疗愈实机三步） */
.st-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.st-day { padding: 9px 2px; border-radius: var(--r-md); background: var(--surface); border: 1.6px solid var(--line); transition: all var(--dur-1); }
.st-day.on { border-color: var(--brand-400); background: var(--brand-50); }
.st-day b { display: block; font-size: var(--fs-sm); }
.st-day i { font-style: normal; font-size: var(--fs-xs); color: var(--ink-3); }
.st-slots { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.st-slot { padding: 8px 13px; border-radius: var(--r-md); background: var(--bg-2); font-size: var(--fs-sm); color: var(--ink-2); border: 1.4px solid transparent; }
.st-slot.on { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-400); font-weight: 600; }
.st-when { font-size: var(--fs-xs); color: var(--ink-3); margin: -4px 0 8px; }

/* 语音合成不可用时的降级提示与引导词字幕 */
.mix-warn { display: flex; gap: 9px; padding: 12px 13px; border-radius: var(--r-md); background: var(--sand-100); }
.mix-warn .ico { width: 18px; height: 18px; color: var(--sand-700); flex: 0 0 auto; margin-top: 2px; }
.mix-warn p { font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.7; }
.pl-nosound { display: flex; align-items: center; gap: 5px; margin-top: 12px; font-size: var(--fs-xs); color: rgba(255,255,255,.72); }
.pl-nosound .ico { width: 14px; height: 14px; }
.pl-caption {
  margin-top: 14px; padding: 11px 14px; border-radius: var(--r-md);
  background: rgba(255,255,255,.16); backdrop-filter: blur(8px);
  color: #fff; font-size: var(--fs-body); line-height: 1.7; text-align: center;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
  animation: pageIn var(--dur-2) var(--ease-out) both;
}
