/* ============================================================
   松间 · 疗愈空间 —— 原型样式（移动端优先，桌面居中模拟手机）
   ============================================================ */

/* ---- 2026-10-09 暖色改造（v2）：奶油暖白 + 低饱和暖橙 / 豆沙粉 / 浅茶棕 ----
   原则：暖 ≠ 大面积高饱和橙红；疗愈类用低饱和、高明度、柔和渐变，
   局部浅茶棕稳定情绪，文字用深灰棕（不要纯黑），营造"被接住"的松弛感。 */
:root {
  /* 奶油暖白基底 */
  --bg: #FDFAF5;
  --card: #FFFDFA;

  /* 主色：低饱和暖陶土橙（替代原 #7C9A8B 鼠尾草绿） */
  --primary: #C1835F;
  --primary-deep: #9A6242;
  --primary-2: #E2BC9E;
  --primary-soft: #F7ECE1;

  /* 辅助色：暖橙 + 豆沙粉 */
  --accent: #D89A62;
  --accent-soft: #F8EEDE;
  --purple: #C18B8F;          /* 豆沙粉，替代原冷紫 #B8A9C9 */
  --purple-soft: #F6E9E8;

  /* 浅茶棕：稳定情绪 */
  --sand: #B2937A;
  --sand-soft: #F1E7DC;

  --line: #F0E5D8;
  --border: #F0E5D8;
  --text: #463C33;            /* 深灰棕，不用纯黑 */
  --text-light: #807266;
  --muted: #B7A899;
  --price: #C08A66;
  --danger: #CE8172;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;          /* 大卡片用：更软更友好 */
  --shadow: 0 10px 30px rgba(150, 110, 78, 0.09);
  --shadow-sm: 0 3px 12px rgba(150, 110, 78, 0.06);
  --glow: 0 4px 14px rgba(193, 131, 95, 0.13);   /* 图标区柔和暖色阴影（几乎看不见硬边） */
}

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

body {
  background: #ECE0D2;   /* 暖砂色外底（原冷灰 #E9E4DC） */
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- 手机外壳 ---------- */
.phone {
  position: relative;
  width: 100%;
  max-width: 420px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 480px) {
  body { padding: 24px 0; }
  .phone {
    min-height: calc(100vh - 48px);
    height: 860px;
    max-height: calc(100vh - 48px);
    border-radius: 32px;
    box-shadow: 0 24px 60px rgba(80, 65, 45, 0.25);
  }
}

.page {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden; /* 2026-10-06：防止子元素撑出整页横向滚动条 */
  padding-bottom: 20px;
}
.page::-webkit-scrollbar { width: 0; }

/* ---------- 状态栏 / 头部 ---------- */
.statusbar {
  height: 30px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text);
  background: var(--bg);
  font-weight: 600;
}
.statusbar .icons { display: flex; gap: 5px; align-items: center; }

.topbar {
  display: flex;
  align-items: center;
  padding: 18px 20px 10px;
  gap: 12px;
}
.topbar .location { display: flex; align-items: center; gap: 4px; font-size: 16px; font-weight: 700; }
.topbar .location svg { width: 16px; height: 16px; }
.topbar .search {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  color: var(--muted);
  display: flex; align-items: center; gap: 6px;
}
.topbar .search::before { content: "⌕"; font-size: 16px; }
.topbar .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; font-size: 18px; }

/* ---------- 返回头部 ---------- */
.backbar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px;
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
}
.backbar .back { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.backbar .title { font-size: 17px; font-weight: 700; flex: 1; text-align: center; margin-right: 34px; }

/* ---------- Banner ---------- */
.banner-wrap { padding: 4px 20px 0; }
.banner {
  border-radius: var(--radius-lg);   /* 大圆角，更软更友好 */
  padding: 24px 22px;
  color: #57402F;      /* 浅暖色卡面 → 深暖棕字，替代原白字 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 124px;
  position: relative;
  overflow: hidden;
  /* 柔和暖色投影，去掉"网页按钮感" */
  box-shadow: 0 12px 30px rgba(150, 110, 78, 0.08);
}
.banner h2 { font-size: 20px; font-family: Georgia, "Songti SC", serif; letter-spacing: 1px; margin-bottom: 6px; font-weight: 600; }
.banner p { font-size: 12.5px; opacity: 0.8; }
.banner .tag {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255, 255, 255, 0.55);
  color: #93705A;
  padding: 3px 11px; border-radius: 999px; font-size: 11px;
  box-shadow: none;
}
.banner-wrap .dots { display: flex; justify-content: center; gap: 5px; margin-top: 10px; }
.banner-wrap .dots span { width: 6px; height: 6px; border-radius: 999px; background: #E3CFB8; }
.banner-wrap .dots span.on { width: 16px; background: var(--primary); }

/* ---------- 金刚区 ---------- */
.grid-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 22px 20px 4px;
}
.cat { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.cat .ic {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 23px;
  box-shadow: var(--glow);   /* 柔和暖色阴影，几乎看不见硬边 */
}
.cat .nm { font-size: 12px; color: var(--text-light); }

/* ---------- 区块标题 ---------- */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 20px 12px;
}
.section-head h3 { font-size: 17px; font-weight: 800; font-family: Georgia, "Songti SC", serif; letter-spacing: 0.5px; }
.section-head .more { font-size: 12px; color: var(--muted); }

/* ---------- Tab 切换（线上/线下/招募） ---------- */
.seg-tabs {
  display: flex;
  margin: 16px 20px;
  background: #fff;
  border-radius: 999px;
  padding: 4px;
  border: 1px solid var(--border);
}
.seg-tabs a {
  flex: 1; text-align: center; padding: 8px 0;
  font-size: 13px; color: var(--text-light); border-radius: 999px;
}
.seg-tabs a.on { background: var(--primary); color: #fff; font-weight: 600; }

/* ---------- 活动卡片 ---------- */
.activity-list { padding: 0 20px; display: flex; flex-direction: column; gap: 18px; }
.card {
  background: var(--card);
  border-radius: var(--radius-lg);      /* 圆角加大：更像内容推荐，不像商品卡 */
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(150, 110, 78, 0.06);   /* 弱化投影 */
}
.card .cover { position: relative; height: 150px; background: #F4EEE6; }
.card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .form-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255, 253, 250, 0.82); color: #8A6A50;
  font-size: 11px; padding: 3px 9px; border-radius: 999px; font-weight: 500;
  backdrop-filter: blur(2px);
}
.card .hot-badge {
  position: absolute; top: 12px; right: 12px;
  background: rgba(216, 154, 98, 0.88); color: #fff;
  font-size: 10px; padding: 3px 8px; border-radius: 999px;
}
.card .body { padding: 14px 16px 16px; background: #FFFEFB; }   /* 文字区背景更浅 */
.card .body h4 { font-size: 15px; font-weight: 600; line-height: 1.4; margin-bottom: 6px; }
.card .meta { font-size: 12px; color: var(--text-light); display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.card .meta svg { width: 13px; height: 13px; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.card .tag { font-size: 10.5px; color: var(--sand); background: var(--sand-soft); padding: 2px 9px; border-radius: 999px; }
.card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.price { color: var(--price); font-weight: 700; font-size: 15px; }
.price .free { color: var(--primary-deep); }
.price .sym { font-size: 12px; }
.price .origin { color: var(--muted); font-size: 11px; text-decoration: line-through; font-weight: 400; margin-left: 4px; }
.rating { font-size: 12px; color: var(--accent); display: flex; align-items: center; gap: 3px; }

/* ---------- 疗愈师 ---------- */
.healer-list { padding: 0 20px; display: flex; flex-direction: column; gap: 14px; }
.healer-card {
  background: #fff; border-radius: var(--radius); padding: 15px;
  display: flex; gap: 14px; box-shadow: var(--shadow-sm);
}
.healer-card .avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.healer-card .info { flex: 1; }
.healer-card .name { font-size: 15px; font-weight: 700; }
.healer-card .title { font-size: 12px; color: var(--muted); margin: 3px 0 6px; }
.specs { display: flex; flex-wrap: wrap; gap: 5px; }
.spec { font-size: 10.5px; color: var(--purple); background: var(--purple-soft); padding: 2px 8px; border-radius: 6px; }
.healer-card .r { text-align: right; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }

/* ---------- 招募卡片 ---------- */
.recruit-list { padding: 0 20px; display: flex; flex-direction: column; gap: 14px; }
.recruit-card { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.recruit-card .top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.recruit-card .rtype { font-size: 11px; font-weight: 700; color: #fff; padding: 3px 10px; border-radius: 999px; }
.recruit-card .deadline { font-size: 11px; color: var(--muted); margin-left: auto; }
.recruit-card h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 6px; }
.recruit-card .desc { font-size: 12.5px; color: var(--text-light); line-height: 1.6; margin-bottom: 10px; }
.recruit-card .benefits { display: flex; flex-wrap: wrap; gap: 6px; }
.recruit-card .benefit { font-size: 10.5px; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 6px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 999px; cursor: pointer;
  font-size: 14px; font-weight: 700; padding: 11px 20px;
  transition: transform .1s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary-deep); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-ghost { background: #fff; color: var(--primary-deep); border: 1px solid var(--primary); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 24px; font-size: 15px; }

/* 底部固定操作栏 */
.action-bar {
  position: sticky; bottom: 0;
  background: #fff;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.action-bar .price-box { flex: 1; }
.action-bar .price { font-size: 20px; }
.action-bar .price .small { font-size: 12px; color: var(--muted); display: block; font-weight: 400; }

/* ---------- 详情页 ---------- */
.detail-cover { height: 220px; background: #eee; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-body { padding: 18px 20px 40px; }
.detail-body h1 { font-size: 20px; font-family: Georgia, "Songti SC", serif; font-weight: 800; line-height: 1.4; margin-bottom: 10px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--text-light); margin: 12px 0; padding: 12px 0; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); }
.detail-meta .m { display: flex; align-items: center; gap: 5px; }
.block { background: #fff; border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.block h4 { font-size: 14px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.block p { font-size: 13px; color: var(--text-light); line-height: 1.8; }
.healer-inline { display: flex; align-items: center; gap: 12px; }
.healer-inline .avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }

/* ---------- 票券/核销码 ---------- */
.ticket-card {
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow); margin: 20px;
}
.ticket-top { background: linear-gradient(135deg, var(--primary), var(--primary-deep)); color: #fff; padding: 22px 20px; text-align: center; }
.ticket-top .label { font-size: 12px; opacity: 0.85; }
.ticket-top h3 { font-size: 18px; font-family: Georgia, serif; margin: 6px 0; }
.ticket-body { padding: 22px 20px; display: flex; flex-direction: column; align-items: center; }
.ticket-code {
  font-size: 26px; font-weight: 800; letter-spacing: 4px;
  color: var(--primary-deep); font-family: "Courier New", monospace;
  background: var(--primary-soft); padding: 10px 20px; border-radius: 10px; margin: 8px 0;
}
.qr {
  width: 180px; height: 180px; background: #fff;
  border: 1px solid var(--border); border-radius: 12px; margin: 10px 0;
  display: flex; align-items: center; justify-content: center;
  background-image:
    linear-gradient(0deg, #333 2px, transparent 2px),
    linear-gradient(90deg, #333 2px, transparent 2px);
  background-size: 18px 18px;
}
.ticket-info { width: 100%; font-size: 12.5px; color: var(--text-light); }
.ticket-info .row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--border); }
.ticket-info .row span:first-child { color: var(--muted); }

/* ---------- 底部 Tab 导航 ---------- */
.tabbar {
  display: flex;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10.5px; color: var(--muted); padding: 4px 0;
}
.tabbar a .ic { font-size: 20px; line-height: 1; }
.tabbar a.on { color: var(--primary-deep); font-weight: 600; }

/* ---------- 日记（社区） ---------- */
.diary-list { padding: 0 20px; display: flex; flex-direction: column; gap: 14px; }
.diary-card { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.diary-card .u { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.diary-card .u .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--purple-soft); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.diary-card .u .name { font-size: 13.5px; font-weight: 700; }
.diary-card .u .time { font-size: 11px; color: var(--muted); }
.diary-card .text { font-size: 14px; line-height: 1.7; }
.diary-card .foot { display: flex; align-items: center; gap: 16px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.diary-card .foot span { display: flex; align-items: center; gap: 4px; }

/* ---------- 我的 ---------- */
.profile-head {
  background: linear-gradient(160deg, var(--primary-soft), var(--purple-soft));
  padding: 26px 20px 20px;
  display: flex; align-items: center; gap: 16px;
}
.profile-head .avatar { width: 60px; height: 60px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: var(--shadow-sm); }
.profile-head .name { font-size: 18px; font-weight: 800; }
.profile-head .sub { font-size: 12px; color: var(--text-light); margin-top: 4px; }
.menu-list { margin: 16px 20px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.menu-item:last-child { border-bottom: none; }
.menu-item .ic { font-size: 18px; width: 22px; text-align: center; }
.menu-item .arr { margin-left: auto; color: var(--muted); }

/* ---------- 通用 ---------- */
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 0 20px; scrollbar-width: none; -ms-overflow-style: none; }
/* 2026-10-06：标签在窄屏超出时会冒出横向滚动条，隐藏之（仍可左右滑动） */
.chip-row::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: 12px; color: var(--text-light); }
.chip.on { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); font-size: 13px; }
.empty .big { font-size: 42px; margin-bottom: 10px; }

.stars { color: var(--accent); letter-spacing: 1px; font-size: 13px; }

/* ---------- 搜索框（顶栏内嵌表单） ---------- */
.topbar .search-form { flex: 1; min-width: 0; display: flex; }
.topbar .search-input {
  width: 100%;
  box-sizing: border-box;
  border: none;
  outline: none;
  background: #fff;
  border-radius: 999px;
  padding: 9px 16px 9px 34px;
  font-size: 13px;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  background-image: none;
}
.topbar .search-form { position: relative; }
.topbar .search-form::before {
  content: "⌕";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--muted);
  pointer-events: none;
}
.topbar .search-input::placeholder { color: var(--muted); }

/* ---------- 筛选提示 / 结果计数 ---------- */
.filter-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 20px 0;
  padding: 9px 13px;
  background: var(--primary-soft);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--primary-deep);
}
.filter-note a { color: var(--muted); flex-shrink: 0; }

.result-count {
  padding: 12px 20px 8px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- 导师卡片（关注按钮版） ---------- */
.hc {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 15px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hc-body { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: center; }
.hc-body .avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.hc .info { flex: 1; min-width: 0; }
.hc .name { font-size: 15px; font-weight: 700; }
.hc .title { font-size: 12px; color: var(--muted); margin: 3px 0 6px; }
.hc-intro { font-size: 11.5px; color: var(--text-light); margin-top: 6px; line-height: 1.5; }
.hc-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.hc-count { font-size: 11px; color: var(--muted); }

.fav-btn {
  border: 1px solid var(--primary);
  background: #fff;
  color: var(--primary-deep);
  font-size: 11.5px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.fav-btn.on { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }

/* ---------- 关注 / 收藏列表 ---------- */
.fav-list { padding: 0 20px; display: flex; flex-direction: column; gap: 14px; }

/* ---------- 表单（申请 / 反馈） ---------- */
.form-block { margin: 16px 20px; background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.form-field { margin-bottom: 14px; }
.form-field:last-of-type { margin-bottom: 6px; }
.form-label { display: block; font-size: 12.5px; color: var(--text-light); margin-bottom: 7px; }
.form-control,
.form-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
}
.form-textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.form-control:focus,
.form-textarea:focus { border-color: var(--primary); }

.notice {
  margin: 14px 20px 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.6;
}
.notice-ok { background: #EEF1E1; color: #5C6B3B; }   /* 暖橄榄，替代原冷绿 */
.notice-err { background: #FBEAE6; color: #B0523F; }

.form-hint { font-size: 11.5px; color: var(--muted); line-height: 1.7; margin-top: 10px; }

/* ---------- 申请页头图 ---------- */
.apply-hero {
  margin: 4px 20px 0;
  border-radius: var(--radius);
  padding: 24px 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-deep), var(--purple));
}
.apply-hero .ico { font-size: 34px; }
.apply-hero h2 { font-size: 19px; font-family: Georgia, "Songti SC", serif; margin: 10px 0 6px; letter-spacing: .5px; }
.apply-hero p { font-size: 12.5px; line-height: 1.7; opacity: .94; }
.benefit-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 20px 0; }
.benefit-pill {
  font-size: 11.5px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------- 成长轨迹 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 20px 0; }
.stat {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 14px 6px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat .num { font-size: 20px; font-weight: 800; color: var(--primary-deep); font-family: Georgia, serif; }
.stat .lb { font-size: 11px; color: var(--muted); margin-top: 5px; }

.tl { padding: 0 20px; }
.tl-item {
  position: relative;
  padding: 0 0 16px 22px;
  border-left: 2px solid var(--border);
}
.tl-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--primary);
}
.tl-card { background: #fff; border-radius: var(--radius-sm); padding: 13px 14px; box-shadow: var(--shadow-sm); }
.tl-card .t { font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.tl-card .m { font-size: 11.5px; color: var(--muted); }
.tl-card .r { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; }
.pill { font-size: 11px; padding: 2px 10px; border-radius: 999px; }
.pill-gray { background: var(--border); color: var(--text-light); }
.pill-green { background: #EEF1E1; color: #5C6B3B; }
.pill-blue { background: #E9EFF6; color: #4A6E93; }

/* ---------- 搜索聚合结果 ---------- */
.search-block { margin-top: 18px; }
.search-block .bh { padding: 0 20px; display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.search-block .bh h3 { font-size: 15px; font-weight: 800; font-family: Georgia, "Songti SC", serif; }
.search-block .bh .n { font-size: 11.5px; color: var(--muted); }
.mini-list { padding: 0 20px; display: flex; flex-direction: column; gap: 10px; }
.mini-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}
.mini-item .thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.mini-item .tx { flex: 1; min-width: 0; }
.mini-item .tx .t { font-size: 14px; font-weight: 700; }
.mini-item .tx .m { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.mini-item .go { color: var(--muted); font-size: 16px; }

/* ============ 疗愈工具箱（L1-L5 新增） ============ */
.tool-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 4px 18px 2px; }
.tool-grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tool-grid .ic { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: var(--glow); }
.tool-grid .nm { font-size: 11px; color: var(--text); }

/* 冥想音频 */
.track { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: var(--radius-sm); padding: 12px 14px; box-shadow: var(--shadow-sm); margin-bottom: 12px; }
.track .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.track .info { flex: 1; min-width: 0; }
.track .info .t { font-weight: 700; font-size: 14px; }
.track .info .m { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.track .play-btn { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--primary); color: #fff; font-size: 16px; cursor: pointer; flex-shrink: 0; }

/* 心理测评 */
.assess-card { background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); padding: 16px; margin-bottom: 12px; }
.assess-card .tag { display: inline-block; font-size: 11px; color: var(--primary-deep); background: var(--primary-soft); padding: 2px 8px; border-radius: 10px; }
.assess-card h4 { margin: 8px 0 4px; font-size: 15px; }
.assess-card p { font-size: 12.5px; color: var(--muted); margin: 0; }
.q-block { background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); padding: 16px; margin-bottom: 14px; }
.q-block .q-title { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.q-opts { display: flex; flex-direction: column; gap: 8px; }
.q-opt { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line, #eee); border-radius: 10px; padding: 10px 12px; cursor: pointer; font-size: 13px; }
.q-opt.sel { border-color: var(--primary); background: var(--primary-soft); }
.score-hero { text-align: center; padding: 24px 16px; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); margin-bottom: 14px; }
.score-hero .num { font-size: 44px; font-weight: 800; color: var(--primary-deep); }

/* 情绪打卡 */
.mood-pick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 14px 0; }
.mood-pick .m { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border: 1.5px solid transparent; border-radius: 12px; cursor: pointer; }
.mood-pick .m.sel { border-color: var(--primary); background: var(--primary-soft); }
.mood-pick .m .em { font-size: 26px; }
.mood-pick .m .lb { font-size: 11px; color: var(--muted); }
.cal { background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); padding: 12px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-week { font-size: 11px; color: var(--muted); padding: 4px 0; }
.cal-cell { min-height: 40px; border-radius: 8px; padding: 4px 2px; font-size: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cal-cell .em { font-size: 15px; }

/* 徽章墙 */
.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.badge-item { background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); padding: 14px 8px; text-align: center; opacity: 0.6; }
.badge-item.owned { opacity: 1; }
.badge-item .em { font-size: 28px; }
.badge-item .nm { font-size: 12px; font-weight: 700; margin-top: 6px; }
.badge-item .rule { font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.points-hero { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, #C1835F, #C18B8F); color: #fff; border-radius: var(--radius); padding: 20px; }

/* 预约 */
.slot-row { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-pill { padding: 8px 13px; border: 1.5px solid var(--line, #eee); border-radius: 20px; font-size: 12.5px; cursor: pointer; }
.slot-pill.sel { border-color: var(--primary); background: var(--primary-soft); }
.healer-pick { max-height: 170px; overflow-y: auto; }

/* ============ AI 咨询练习室：对话气泡 + 流式输入区（2026-10-09）============ */
.chat-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.bubble-row { display: flex; flex-direction: column; }
.bubble-row.me { align-items: flex-end; }
.bubble-row.ta { align-items: flex-start; }
.bubble-role { font-size: 11px; color: var(--muted); margin-bottom: 4px; padding: 0 4px; }
.bubble {
  max-width: 82%;
  border-radius: 18px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}
.bubble-row.me .bubble {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  border-bottom-right-radius: 7px;
}
.bubble-row.ta .bubble {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 7px;
}
/* 流式输出时的光标 */
.bubble.caret::after {
  content: "▍";
  color: var(--primary);
  margin-left: 2px;
  animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

.composer { display: flex; gap: 8px; margin-bottom: 10px; }
.composer input {
  flex: 1; min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--card);
  outline: none;
}
.composer input:focus { border-color: var(--primary); }
.composer button {
  border: none;
  border-radius: var(--radius-sm);
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}
.composer button:disabled { opacity: .5; }

.notice-warn { background: #FDF1E3; color: #A9682F; }
.notice-danger { background: #FCEDE9; color: #B4543F; }
