/* ===================== 伴成长 · 组件样式 v2 ===================== */
/* 基于 Impeccable：打破卡片套卡片、引入节奏间距、有机圆角、微交互 */

/* ---- 卡片 / 网格 ---- */
.card {
  background: var(--bg-card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: var(--space-lg); margin-bottom: var(--space-lg);
  border: 1px solid var(--border-light);
  transition: box-shadow 0.3s var(--ease-out-quart), transform 0.3s var(--ease-out-quart);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-title { font-size: var(--text-subheading); font-weight: 700; margin-bottom: var(--space-md); display: flex; align-items: center; gap: var(--space-sm); }
.card-title .ct-icon { font-size: 20px; transition: transform 0.2s var(--ease-out-quart); }
.card-title:hover .ct-icon { transform: scale(1.15) rotate(-5deg); }
.grid { display: grid; gap: var(--space-md); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-md); margin-top: var(--space-lg); }
.section-head:first-child { margin-top: 0; }
.section-head h2 { font-family: var(--font-display); font-size: var(--text-heading); font-weight: 700; letter-spacing: 0.3px; }
.muted { color: var(--text-muted); font-size: var(--text-secondary); }
.small { font-size: var(--text-secondary); }

/* ---- 按钮 ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  background: var(--primary); color: #fff; border: none; border-radius: var(--radius-sm);
  padding: 10px 18px; font-size: 14px; font-weight: 600;
  transition: transform 0.15s var(--ease-out-quart), background 0.2s var(--ease-out-quart), box-shadow 0.2s var(--ease-out-quart);
  box-shadow: 0 2px 8px oklch(0.65 0.15 40 / 0.2);
}
.btn:hover { background: var(--primary-deep); transform: translateY(-2px); box-shadow: 0 6px 16px oklch(0.65 0.15 40 / 0.3); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.ghost { background: var(--primary-soft); color: var(--primary-deep); box-shadow: none; }
.btn.ghost:hover { background: #ffdfd1; box-shadow: var(--shadow); }
.btn.teal { background: var(--teal); box-shadow: 0 2px 8px oklch(0.6 0.08 180 / 0.2); }
.btn.teal:hover { background: #1d8a7f; box-shadow: 0 6px 16px oklch(0.6 0.08 180 / 0.3); }
.btn.block { width: 100%; }
.btn.sm { padding: var(--space-xs) 14px; font-size: var(--text-secondary); border-radius: var(--radius-sm); }
.icon-btn {
  width: 34px; height: 34px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text-muted); display: inline-flex;
  align-items: center; justify-content: center; font-size: 15px;
  transition: all 0.2s var(--ease-out-quart);
}
.icon-btn:hover { background: var(--primary-soft); color: var(--primary-deep); transform: scale(1.08); border-color: var(--primary); }

/* ---- 芯片 / 标签 ---- */
.chip {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  background: var(--primary-soft); color: var(--primary-deep);
  border: none; border-radius: 999px; padding: 7px 14px; font-size: var(--text-secondary); font-weight: 600;
  transition: all 0.2s var(--ease-out-quart);
}
.chip:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.chip.ghost { background: var(--border-light); color: var(--text-muted); font-weight: 500; }
.chip.ghost:hover { background: var(--primary-soft); color: var(--primary-deep); }
.tag {
  display: inline-block; background: var(--violet-soft); color: var(--violet);
  border-radius: var(--radius-sm); padding: 3px 9px; font-size: var(--text-caption); margin: 2px 3px 2px 0;
  transition: transform 0.15s var(--ease-out-quart);
}
.tag:hover { transform: scale(1.05); }
.tag.teal { background: var(--teal-soft); color: var(--teal); }
.tag.amber { background: var(--amber-soft); color: #b77c00; }
.tag.pink { background: var(--pink-soft); color: var(--pink); }
.tag.green { background: var(--green-soft); color: #43a047; }

/* ---- 表单 ---- */
.field { margin-bottom: var(--space-md); }
.field label { display: block; font-size: var(--text-secondary); color: var(--text-muted); margin-bottom: var(--space-xs); font-weight: 600; }
.input, .textarea, .select {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 14px; font-size: var(--text-body); font-family: inherit; color: var(--text);
  background: var(--bg-card); transition: border 0.2s var(--ease-out-quart), box-shadow 0.2s var(--ease-out-quart);
}
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px oklch(0.65 0.15 40 / 0.12);
}
.textarea { min-height: 90px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--text-light); }

/* ---- 统计卡 ---- */
.stat-card { text-align: center; padding: 18px var(--space-md); }
.stat-num { font-family: var(--font-display); font-size: var(--text-display); font-weight: 700; color: var(--primary-deep); line-height: 1.2; }
.stat-label { font-size: var(--text-secondary); color: var(--text-muted); margin-top: var(--space-xs); }
.stat-card.teal .stat-num { color: var(--teal); }
.stat-card.amber .stat-num { color: #b77c00; }
.stat-card.violet .stat-num { color: var(--violet); }

/* ---- 列表 ---- */
.list-item {
  display: flex; align-items: center; gap: var(--space-md); padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s var(--ease-out-quart);
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: var(--bg-elevated); }
.list-item .li-icon { width: 42px; height: 42px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 22px; background: var(--primary-soft); flex-shrink: 0; transition: transform 0.2s var(--ease-out-quart); }
.list-item:hover .li-icon { transform: scale(1.1); }
.list-item .li-body { flex: 1; min-width: 0; }
.list-item .li-title { font-weight: 600; }
.list-item .li-sub { font-size: var(--text-secondary); color: var(--text-muted); }

/* ---- 进度环 / 进度条 ---- */
.progress-track { height: 8px; background: var(--border-light); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: var(--teal); transition: width 0.6s var(--ease-out-quart); }
.progress-fill.warm { background: var(--primary); }
.progress-fill.amber { background: var(--amber); }

/* ---- 习惯打卡 ---- */
.habit-row { display: flex; align-items: center; gap: var(--space-md); padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.habit-row:last-child { border-bottom: none; }
.habit-check {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--border);
  background: var(--bg-card); display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0;
  transition: all 0.25s var(--ease-out-quart);
}
.habit-check:hover { border-color: var(--primary); transform: scale(1.1); }
.habit-check.done { background: var(--green); border-color: var(--green); color: #fff; animation: checkPop 0.3s var(--ease-out-quart); }
@keyframes checkPop { 0% { transform: scale(0.8); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }

/* ---- 行程卡片 / 灵感卡片 ---- */
.trip-card { display: flex; flex-direction: column; gap: var(--space-md); }
.trip-place { font-family: var(--font-display); font-size: var(--text-subheading); font-weight: 700; display: flex; align-items: center; gap: var(--space-sm); }
.trip-meta { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.meta-pill { background: var(--border-light); color: var(--text-muted); border-radius: var(--radius-sm); padding: 3px 10px; font-size: var(--text-caption); }
.trip-tasks { background: var(--amber-soft); border-radius: var(--radius); padding: 12px 14px; font-size: var(--text-secondary); border-left: 3px solid var(--amber); }

/* ---- 相册 ---- */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.photo-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-card); box-shadow: var(--shadow); cursor: pointer; transition: transform 0.3s var(--ease-out-quart), box-shadow 0.3s var(--ease-out-quart); }
.photo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.photo-card img { width: 100%; height: 150px; object-fit: cover; transition: transform 0.4s var(--ease-out-quart); }
.photo-card:hover img { transform: scale(1.06); }
.photo-card .pc-caption { padding: var(--space-sm) 12px; font-size: var(--text-secondary); }
.photo-card .pc-tag { position: relative; }

/* ---- 雷达图 ---- */
.radar-wrap { display: flex; align-items: center; justify-content: center; }
.radar-wrap svg { width: 100%; max-width: 360px; height: auto; }

/* ---- 时间轴 ---- */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding: var(--space-sm) 0 18px; }
.tl-item::before { content: ''; position: absolute; left: -22px; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 3px solid var(--bg-card); box-shadow: 0 0 0 2px var(--primary-soft); transition: transform 0.2s var(--ease-out-quart); }
.tl-item:hover::before { transform: scale(1.3); }
.tl-title { font-weight: 600; }
.tl-sub { font-size: var(--text-secondary); color: var(--text-muted); }

/* ---- 徽章 ---- */
.badge-item { display: flex; align-items: center; gap: var(--space-md); padding: 14px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border-light); transition: all 0.3s var(--ease-out-quart); }
.badge-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.badge-item .bi-icon { font-size: 32px; transition: transform 0.3s var(--ease-out-quart); }
.badge-item:hover .bi-icon { transform: scale(1.15) rotate(-5deg); }
.badge-item.locked { opacity: .45; filter: grayscale(1); }
.badge-item.locked:hover { transform: none; }
.badge-item .bi-name { font-weight: 600; }
.badge-item .bi-desc { font-size: var(--text-caption); color: var(--text-muted); }

/* ---- 聊天（育儿顾问） ---- */
.chat-box { display: flex; flex-direction: column; gap: var(--space-md); max-height: 460px; overflow-y: auto; padding: var(--space-xs) 2px; }
.chat-msg { max-width: 82%; padding: 11px 14px; border-radius: var(--radius); font-size: 14px; white-space: pre-wrap; animation: fadeInUp 0.3s var(--ease-out-quart) backwards; }
.chat-msg.user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.bot { align-self: flex-start; background: var(--bg-elevated); color: var(--text); border-bottom-left-radius: 4px; border: 1px solid var(--border-light); }
.chat-input { display: flex; gap: var(--space-sm); margin-top: var(--space-md); }
.chat-input .input { flex: 1; }

/* ---- 空状态 ---- */
.empty { text-align: center; padding: var(--space-2xl) var(--space-lg); color: var(--text-muted); }
.empty .empty-icon { font-size: 48px; margin-bottom: var(--space-md); animation: gentleFloat 3s ease-in-out infinite; }
@keyframes gentleFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.empty .empty-hint { font-size: var(--text-secondary); margin-top: var(--space-xs); color: var(--text-light); }

/* ---- 六维得分条 ---- */
.dim-row { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-md); }
.dim-row .dim-label { width: 76px; font-size: var(--text-secondary); color: var(--text-muted); flex-shrink: 0; }
.dim-row .dim-bar { flex: 1; }
.dim-row .dim-val { width: 34px; text-align: right; font-weight: 700; font-size: var(--text-secondary); font-variant-numeric: tabular-nums; }

/* ===================== 首次使用引导 ===================== */
.onboard {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: linear-gradient(160deg, #fff3e8 0%, var(--bg) 45%, var(--green-soft) 100%);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-lg); overflow-y: auto;
}
/* 关闭引导浮层的兜底：与 JS 里的 .is-hidden 配对，防止 display:flex 盖住 hidden */
.onboard.is-hidden { display: none; }
.ob-card {
  width: 100%; max-width: 520px; background: var(--bg-card);
  border-radius: var(--radius-xl); box-shadow: 0 18px 50px oklch(0.5 0.08 50 / 0.18);
  padding: 26px var(--space-lg) var(--space-lg); margin: auto;
  animation: fadeInUp 0.5s var(--ease-out-quart);
}
.ob-body { min-height: 260px; }
.ob-actions { display: flex; justify-content: space-between; gap: var(--space-md); margin-top: 18px; }
.ob-hero { text-align: center; margin-bottom: var(--space-lg); }
.ob-logo { font-size: 54px; line-height: 1; margin-bottom: var(--space-md); animation: gentleFloat 3s ease-in-out infinite; }
.ob-hero h2 { font-family: var(--font-display); font-size: var(--text-display); margin-bottom: var(--space-sm); }
.ob-hero p { color: var(--text-muted); font-size: 14px; line-height: 1.8; }
.ob-block { margin-bottom: var(--space-lg); }
.ob-label { font-size: 14px; font-weight: 700; margin-bottom: var(--space-md); }
.ob-optional { font-weight: 400; font-size: var(--text-caption); color: var(--text-light); }
.ob-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--space-md); }
.ob-person {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 14px var(--space-sm); border: 2px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card); transition: all 0.2s var(--ease-out-quart);
}
.ob-person:hover { border-color: var(--primary); background: var(--primary-soft); transform: translateY(-3px); }
.ob-avatar { font-size: 34px; }
.ob-pname { font-weight: 700; font-size: 14px; }
.ob-pident { font-size: var(--text-caption); color: var(--text-muted); }
.ob-id-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-sm); }
.ob-id {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: var(--space-md) 4px; border: 2px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card); font-size: var(--text-secondary); transition: all 0.2s var(--ease-out-quart);
}
.ob-id:hover { border-color: var(--primary); }
.ob-id.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-deep); font-weight: 700; }
.ob-id-avatar { font-size: 28px; }
.ob-note { background: var(--teal-soft); border-radius: var(--radius); padding: var(--space-md) 12px; }
.ob-kid { border: 1px solid var(--border-light); border-radius: var(--radius); padding: var(--space-md); margin-bottom: var(--space-md); background: var(--bg-elevated); }
.ob-kid-head { display: flex; gap: var(--space-sm); align-items: center; margin-bottom: var(--space-sm); }
.ob-kid-head .input { flex: 1; }
.ob-kid-avatar { width: 68px; flex-shrink: 0; font-size: 18px; }
.ob-kid-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }

/* ===================== 登录页（独立登录模块） ===================== */
.login {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: linear-gradient(160deg, #fff3e8 0%, var(--bg) 45%, var(--green-soft) 100%);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-lg); overflow-y: auto;
}
.login.is-hidden { display: none; }
.login-card {
  width: 100%; max-width: 440px; background: var(--bg-card);
  border-radius: var(--radius-xl); box-shadow: 0 18px 50px oklch(0.5 0.08 50 / 0.18);
  padding: 28px var(--space-lg) var(--space-lg); margin: auto;
  animation: fadeInUp 0.5s var(--ease-out-quart);
}
.login-hero { text-align: center; margin-bottom: var(--space-lg); }
.login-logo { font-size: 48px; line-height: 1; margin-bottom: var(--space-sm); animation: gentleFloat 3s ease-in-out infinite; }
.login-hero h1 { font-family: var(--font-display); font-size: var(--text-heading); margin-bottom: var(--space-sm); }
.login-hero p { color: var(--text-muted); font-size: 13px; line-height: 1.7; }
.login-block { margin-bottom: var(--space-md); }
.login-label { font-size: 13px; font-weight: 700; margin-bottom: var(--space-sm); color: var(--text-muted); }
.login-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: var(--space-sm); margin-bottom: var(--space-md); }
.login-or { display: flex; align-items: center; gap: var(--space-md); color: var(--text-light); font-size: var(--text-caption); margin: var(--space-md) 0; }
.login-or::before, .login-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.login-row { display: flex; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.login-row .input { flex: 1; }
.login-row .btn { flex-shrink: 0; }
.login-err { color: var(--danger, #d84315); font-size: var(--text-caption); min-height: 18px; margin-bottom: var(--space-sm); }
.login-note { background: var(--teal-soft); border-radius: var(--radius); padding: var(--space-md) 12px; font-size: var(--text-caption); color: var(--text-muted); line-height: 1.7; }
.login-alt { text-align: center; margin-top: var(--space-md); }
.login-alt button { color: var(--primary-deep); font-weight: 700; }
.login-err-ok { color: var(--teal); }

/* ===================== 分享模块（复制链接 / 朋友圈海报） ===================== */
.share-mask {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: oklch(0.1 0.02 50 / 0.5); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-md); overflow-y: auto; animation: fadeIn 0.2s var(--ease-out-quart);
}
.share-box {
  width: 100%; max-width: 440px; background: var(--bg-card);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-hover);
  padding: var(--space-md); animation: fadeInUp 0.28s var(--ease-out-quart);
}
.share-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: var(--space-md); }
.share-head span { font-size: var(--text-subheading); }
.share-preview { border-radius: var(--radius); overflow: hidden; margin-bottom: var(--space-md); background: var(--border-light); }
.share-preview img { width: 100%; max-height: 240px; object-fit: cover; display: block; }
.share-caption { color: var(--text-muted); font-size: var(--text-secondary); line-height: 1.6; margin-bottom: var(--space-md); }
.share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.share-act {
  display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center;
  border: 1px solid var(--border); background: var(--bg-elevated); border-radius: var(--radius);
  padding: var(--space-md) var(--space-sm); cursor: pointer; transition: all 0.2s var(--ease-out-quart);
}
.share-act:hover { border-color: var(--primary); background: var(--primary-soft); transform: translateY(-2px); }
.share-act .sa-ico { font-size: 26px; }
.share-act span { font-weight: 700; font-size: 14px; }
.share-act small { font-size: var(--text-caption); color: var(--text-light); }
.share-note { background: var(--teal-soft); color: var(--text-muted); font-size: var(--text-caption); border-radius: var(--radius-sm); padding: var(--space-sm) 10px; text-align: center; }
.share-box.poster-preview { max-width: 460px; }
.poster-img { width: 100%; border-radius: var(--radius); display: block; margin-bottom: var(--space-sm); box-shadow: var(--shadow-md); }
.poster-tip { font-size: var(--text-caption); color: var(--text-muted); text-align: center; margin-bottom: var(--space-sm); }
.poster-save { justify-content: center; }

/* ===================== 会员与额度面板 ===================== */
.bill-box { max-width: 480px; max-height: 86vh; overflow-y: auto; }
.bill-loading { text-align: center; color: var(--text-muted); padding: var(--space-xl) 0; }
.bill-plan-tag { display: flex; gap: var(--space-xs); margin-bottom: var(--space-md); }
.bill-section-label { font-size: var(--text-secondary); font-weight: 700; color: var(--text-muted); margin: var(--space-md) 0 var(--space-sm); }
.bill-feat { border: 1px solid var(--border-light); border-radius: var(--radius); padding: var(--space-sm) 12px; margin-bottom: var(--space-sm); background: var(--bg-elevated); }
.bill-feat.hot { border-color: var(--primary); background: var(--primary-soft); }
.bill-feat-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 6px; }
.bill-feat-head b { color: var(--primary-deep); }
.bill-bar { height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.bill-bar div { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--amber)); }
.bill-feat-sub { font-size: var(--text-caption); color: var(--text-light); margin-top: 5px; }
.bill-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--space-sm); }
.bill-plan { border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-md) 12px 12px; text-align: center; transition: all 0.2s var(--ease-out-quart); }
.bill-plan:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.bill-plan-name { font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 5px; flex-wrap: wrap; }
.bill-badge { background: var(--primary); color: #fff; border-radius: 999px; font-size: 10px; padding: 1px 7px; font-weight: 600; }
.bill-plan-price { color: var(--primary-deep); font-weight: 700; margin: 6px 0 10px; font-size: var(--text-subheading); }
.bill-note { background: var(--teal-soft); border-radius: var(--radius); padding: var(--space-sm) 12px; font-size: var(--text-caption); color: var(--text-muted); margin-top: var(--space-md); line-height: 1.7; }

/* ===================== 弹出菜单（孩子/家长切换） ===================== */
.pop-menu {
  position: fixed; z-index: var(--z-dropdown); min-width: 190px; max-width: 260px;
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius);
  box-shadow: var(--shadow-hover); padding: var(--space-xs);
  animation: fadeInUp 0.2s var(--ease-out-quart);
}
.pop-head { padding: var(--space-sm) 12px var(--space-xs); font-size: var(--text-caption); color: var(--text-muted); }
.pop-item {
  display: block; width: 100%; text-align: left; border: none; background: none;
  padding: 9px 12px; border-radius: var(--radius-sm); font-size: 14px; color: var(--text);
  transition: background 0.15s var(--ease-out-quart);
}
.pop-item:hover { background: var(--primary-soft); }
.pop-item.on { background: var(--primary-soft); color: var(--primary-deep); font-weight: 700; }
.pop-item.muted { color: var(--text-muted); font-size: var(--text-secondary); border-top: 1px solid var(--border-light); border-radius: 0 0 var(--radius-sm) var(--radius-sm); margin-top: 4px; }

/* ===================== 教学工具 ===================== */
.card.soft { background: var(--bg-elevated); border: 1px solid var(--border-light); box-shadow: none; }
.upload-row { display: flex; flex-wrap: wrap; gap: var(--space-md); align-items: center; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: var(--space-md); margin: var(--space-md) 0; }
.pv-item { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-card); transition: transform 0.2s var(--ease-out-quart); }
.pv-item:hover { transform: translateY(-2px); }
.pv-item img { width: 100%; height: 110px; object-fit: cover; }
.pv-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 4px; background: linear-gradient(transparent, oklch(0.1 0.02 50 / 0.45)); }
.pv-btn { border: none; background: oklch(0.98 0.01 50 / 0.9); border-radius: var(--radius-sm); padding: 2px var(--space-sm); font-size: var(--text-secondary); transition: transform 0.15s var(--ease-out-quart); }
.pv-btn:hover { transform: scale(1.05); }
.pv-quality { position: absolute; top: 4px; left: 4px; right: 4px; font-size: 11px; padding: 2px 8px; border-radius: var(--radius-sm); backdrop-filter: blur(4px); font-weight: 600; text-align: center; pointer-events: none; }
.pv-quality.ok { background: oklch(0.95 0.05 145 / 0.9); color: var(--green); }
.pv-quality.warn { background: oklch(0.95 0.08 50 / 0.92); color: var(--orange, #f57c00); }
.pv-quality.loading { background: oklch(0.95 0.01 250 / 0.85); color: var(--text-muted); }

/* ---- 育儿问题库 ---- */
.pb-item { transition: transform 0.2s var(--ease-out-quart); }
.pb-item:active { transform: scale(0.98); }
.pb-solution { margin-bottom: var(--space-md); }
.pb-feedback { display: flex; gap: var(--space-sm); margin-top: var(--space-sm); }
.pb-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: oklch(0.1 0.02 50 / 0.5); z-index: 1000; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: var(--space-lg); }
.pb-detail { background: var(--bg-card); border-radius: var(--radius); max-width: 500px; width: 100%; box-shadow: var(--shadow-lg); margin: var(--space-lg) 0; }
.pb-detail-header { display: flex; justify-content: flex-end; padding: var(--space-sm) var(--space-md); }
.pb-close { border: none; background: none; font-size: 18px; cursor: pointer; color: var(--text-muted); }
.pb-detail-body { padding: 0 var(--space-lg) var(--space-lg); }
.pb-detail-loading { padding: var(--space-xl); text-align: center; color: var(--text-muted); }

.scan-card { display: flex; gap: var(--space-md); background: var(--bg-card); border-radius: var(--radius); padding: var(--space-md); box-shadow: var(--shadow); margin-bottom: var(--space-md); transition: box-shadow 0.3s var(--ease-out-quart); }
.scan-card:hover { box-shadow: var(--shadow-md); }
.sc-thumb { width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; background: var(--border-light); }
.sc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-xs); }
.sc-top { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.sc-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: 2px; }

.item-row { display: flex; align-items: flex-start; gap: var(--space-md); background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 12px 14px; margin-bottom: var(--space-md); transition: all 0.2s var(--ease-out-quart); }
.item-row:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.item-row.done { opacity: .58; }
.item-row .mk-cb { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; }
.ir-main { flex: 1; min-width: 0; }
.ir-q { font-size: var(--text-body); line-height: 1.5; word-break: break-word; }
.ir-seq { display: inline-block; min-width: 22px; color: var(--text-light); font-weight: 700; margin-right: var(--space-xs); }
.ir-meta { display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: center; margin: var(--space-xs) 0 2px; }
.ir-edit { width: 100%; }
.filter-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; }
.filter-row .select { width: auto; min-width: 120px; }

/* ===================== 图片编辑器 ===================== */
.img-editor { position: fixed; inset: 0; z-index: var(--z-modal); display: flex; align-items: center; justify-content: center; padding: var(--space-md); animation: fadeIn 0.2s var(--ease-out-quart); }
.ie-mask { position: absolute; inset: 0; background: oklch(0.1 0.02 50 / 0.55); }
.ie-box { position: relative; width: 100%; max-width: 520px; background: var(--bg-card); border-radius: var(--radius-lg); padding: var(--space-md); max-height: 92vh; overflow-y: auto; animation: fadeInUp 0.3s var(--ease-out-quart); }
.ie-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: var(--space-md); }
.ie-stage { position: relative; background: #2b2b2b; border-radius: var(--radius); overflow: hidden; display: flex; justify-content: center; }
.ie-canvas { position: relative; line-height: 0; touch-action: none; }
.ie-img { max-width: 100%; height: auto; display: block; }
.ie-sel { position: absolute; border: 2px dashed #ffeb3b; background: oklch(0.9 0.15 90 / 0.15); pointer-events: none; }
.ie-hint { margin: var(--space-md) 0; }
.ie-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: flex-end; }

/* ===================== 家庭档案 / 用户画像 ===================== */
.pf-person { display: flex; gap: var(--space-md); background: var(--bg-card); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); margin-bottom: var(--space-md); transition: box-shadow 0.3s var(--ease-out-quart); }
.pf-person:hover { box-shadow: var(--shadow-md); }
.pf-avatar { width: 52px; height: 52px; border-radius: var(--radius); background: var(--primary-soft); display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; transition: transform 0.2s var(--ease-out-quart); }
.pf-person:hover .pf-avatar { transform: scale(1.08); }
.pf-body { flex: 1; min-width: 0; }
.pf-name { font-weight: 700; display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; }
.pf-traits { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-sm); }
.trait-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--border-light); border: 1px solid transparent; border-radius: 999px; padding: 4px 10px; font-size: 12.5px; transition: transform 0.15s var(--ease-out-quart); }
.trait-chip:hover { transform: translateY(-1px); }
.trait-chip.primary { background: var(--primary-soft); border-color: #ffd9c4; color: var(--primary-deep); font-weight: 600; }
.trait-chip.sensitive { background: var(--violet-soft); color: #5c6bc0; }
.trait-chip.denied { background: #f1f1f1; color: var(--text-light); text-decoration: line-through; }
.trait-chip .tc-conf { font-size: 11px; color: var(--text-light); }
.trait-chip .tc-act { border: none; background: none; color: var(--text-light); padding: 0 2px; font-size: 12px; transition: color 0.15s; }
.trait-chip .tc-act:hover { color: var(--primary); }
.cat-block { margin-bottom: var(--space-md); }
.cat-title { font-size: var(--text-secondary); font-weight: 700; color: var(--text-muted); margin-bottom: var(--space-sm); display: flex; align-items: center; gap: var(--space-xs); }
.ev-item { display: flex; gap: var(--space-md); padding: var(--space-md) 0; border-bottom: 1px solid var(--border-light); }
.ev-item:last-child { border-bottom: none; }
.ev-src { font-size: var(--text-caption); color: var(--text-muted); margin-top: 2px; }
.ev-acc { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ev-rej { font-size: var(--text-caption); color: var(--text-light); margin-top: 4px; }
.consent-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.consent-row:last-child { border-bottom: none; }
.switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: #ddd; border-radius: 999px; transition: 0.2s var(--ease-out-quart); cursor: pointer; }
.switch .slider::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: 0.2s var(--ease-out-quart); box-shadow: 0 1px 3px oklch(0 0 0 / 0.2); }
.switch input:checked + .slider { background: var(--teal); }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* ---- 响应式网格 ---- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ob-id-grid { grid-template-columns: repeat(4, 1fr); }
  .ob-card { padding: 20px 18px var(--space-md); border-radius: var(--radius-lg); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-card img { height: 130px; }
  .card { padding: var(--space-md); }
  .sheet-list { grid-template-columns: repeat(3, 1fr); }
}

/* ---- 录音脉冲动画 ---- */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ---- 多宝看板自适应 ---- */
.kid-tabs-wrap { display: flex; gap: var(--space-sm); flex-wrap: wrap; align-items: center; }
.kid-card-grid { display: grid; gap: var(--space-md); }
.kid-card-grid.cols-1 { grid-template-columns: 1fr; }
.kid-card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.kid-card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) {
  .kid-card-grid.cols-2, .kid-card-grid.cols-3 { grid-template-columns: 1fr; }
}
.kid-summary-card { background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--space-md); border: 1px solid var(--border-light); transition: box-shadow 0.3s var(--ease-out-quart); }
.kid-summary-card:hover { box-shadow: var(--shadow-md); }
.kid-summary-card .ksc-head { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.kid-summary-card .ksc-avatar { font-size: 28px; transition: transform 0.2s var(--ease-out-quart); }
.kid-summary-card:hover .ksc-avatar { transform: scale(1.1); }
.kid-summary-card .ksc-name { font-weight: 700; font-size: var(--text-body); }
.kid-summary-card .ksc-age { font-size: var(--text-caption); color: var(--text-muted); }
.kid-summary-card .ksc-stats { display: flex; gap: var(--space-md); margin-top: var(--space-sm); font-size: var(--text-caption); color: var(--text-muted); }
.kid-summary-card .ksc-stat { display: flex; flex-direction: column; align-items: center; }
.kid-summary-card .ksc-stat-num { font-family: var(--font-display); font-size: var(--text-subheading); font-weight: 700; color: var(--primary); }

/* =====================================================================
   常用功能快捷入口
   ---------------------------------------------------------------------
   横排图标按钮，放在问候语下方。图标 + 短标签，一眼扫完不用思考。
   ===================================================================== */
.shortcut-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.shortcut-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--space-sm) 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s var(--ease-out-quart), box-shadow 0.2s var(--ease-out-quart);
  -webkit-tap-highlight-color: transparent;
}
.shortcut-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.shortcut-item:active { transform: translateY(0) scale(0.97); }

.sc-icon {
  font-size: 22px;
  line-height: 1;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft);
  border-radius: 50%;
}
.sc-label {
  font-size: var(--text-caption);
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}

/* =====================================================================
   学习情况卡片（原则三：给结论，不给选项）
   ---------------------------------------------------------------------
   主按钮是「打印复习卷」，「调整」刻意做成小字浅色——不想操心的家长
   根本不会注意到它，想调整的人也能一眼找到。
   ===================================================================== */
.lc-card { border-left: 3px solid var(--teal); }

.lc-headline {
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--text);
  margin: var(--space-xs) 0 2px;
}

.lc-sub {
  font-size: var(--text-secondary);
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}
.lc-sub b { color: var(--primary); font-weight: 700; }

.lc-card .lc-print { width: 100%; }

/* 次要入口：字小、色浅，不抢主按钮的视觉重心 */
.lc-toggle {
  display: block;
  margin: var(--space-sm) auto 0;
  padding: 4px 8px;
  background: none;
  border: none;
  font-size: var(--text-caption);
  color: var(--text-light);
  cursor: pointer;
}
.lc-toggle:hover { color: var(--text-muted); }

.lc-adjust {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px dashed var(--border);
}

.lc-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.lc-row-label {
  font-size: var(--text-caption);
  color: var(--text-muted);
  flex: 0 0 32px;
}
.lc-opts { display: flex; gap: 6px; flex: 1; }

/* 离散选项而非滑块：滑块需要思考，违反原则三 */
.lc-opt {
  flex: 1;
  padding: 6px 4px;
  font-size: var(--text-caption);
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s var(--ease-out-quart);
}
.lc-opt.on {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-deep);
  font-weight: 600;
}

.lc-foot {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-light);
  font-size: var(--text-caption);
  color: var(--text-muted);
  text-align: center;
}

/* =====================================================================
   知识热力图 + 个人学习路径（教育雷达 · 学习路径页）
   ---------------------------------------------------------------------
   热力图用「色块 + 知识点名」的网格，比图表更快读懂：家长扫一眼就知道
   哪块密、哪块红。图表版本信息密度太低，不值得。
   ===================================================================== */
.hm-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: var(--text-caption);
  color: var(--text-muted);
}
.hm-legend span { display: inline-flex; align-items: center; gap: 4px; }
.hm-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.hm-group { margin-bottom: var(--space-md); }
.hm-domain {
  font-size: var(--text-caption);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.hm-grid { display: flex; flex-wrap: wrap; gap: 6px; }

.hm-cell {
  padding: 5px 10px;
  font-size: var(--text-caption);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: default;
  transition: transform 0.15s var(--ease-out-quart);
}
.hm-cell:hover { transform: translateY(-1px); }

/* 五级状态：绿→黄→橙→红，未接触的是浅灰底 */
.hm-cell.lv-mastered, .hm-dot.lv-mastered { background: var(--green-soft); color: #2e7d32; border-color: var(--green); }
.hm-cell.lv-learning, .hm-dot.lv-learning { background: var(--amber-soft); color: #ef6c00; border-color: var(--amber); }
.hm-cell.lv-weak,     .hm-dot.lv-weak     { background: var(--primary-soft); color: var(--primary-deep); border-color: var(--primary); }
.hm-cell.lv-severe,   .hm-dot.lv-severe   { background: var(--red-soft); color: var(--red-deep); border-color: var(--red); }
.hm-cell.lv-untouched { background: var(--bg-elevated); color: var(--text-light); border-color: var(--border); }

/* ---------------- 个人路径步骤 ---------------- */
.path-step {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.path-step:last-child { border-bottom: none; }

.ps-index {
  flex: 0 0 24px;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-soft);
  color: var(--teal);
  border-radius: 50%;
  font-size: var(--text-caption);
  font-weight: 700;
}
.ps-body { flex: 1; min-width: 0; }
.ps-name { font-size: var(--text-body); font-weight: 600; color: var(--text); }
.ps-meta { font-size: var(--text-caption); color: var(--text-light); margin-top: 2px; }

.ps-tag {
  flex: 0 0 auto;
  padding: 3px 8px;
  font-size: var(--text-caption);
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  white-space: nowrap;
}
/* 「先补一补」是回退补先修，用暖色区分于「新知识点」 */
.ps-tag.review { background: var(--primary-soft); color: var(--primary-deep); }

/* ===================== 社区板块 ===================== */

/* Tab 切换条 */
.cm-tabs { display: flex; gap: 0; margin-bottom: 12px; border-bottom: 2px solid var(--border-light); }
.cm-tab {
  flex: 1; padding: 10px 0; text-align: center; border: none; background: none;
  font-size: 14px; font-weight: 600; color: var(--text-muted);
  border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.cm-tab.on { color: var(--primary); border-bottom-color: var(--primary); }

/* 分类筛选条 */
.cm-cat-bar { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; -webkit-overflow-scrolling: touch; }
.cm-cat {
  padding: 4px 12px; border: 1px solid var(--border-light); border-radius: 16px;
  background: var(--bg-card); font-size: 12px; color: var(--text-muted); white-space: nowrap;
  cursor: pointer; transition: all 0.2s;
}
.cm-cat.on { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 文章卡片 */
.cm-card { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.cm-card:hover { transform: translateY(-2px); }
.cm-card-cover { font-size: 32px; flex-shrink: 0; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: var(--bg-soft); border-radius: var(--radius-sm); }
.cm-card-body { flex: 1; min-width: 0; }
.cm-card-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; color: var(--text); }
.cm-card-summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
.cm-card-meta { display: flex; align-items: center; gap: 8px; }

/* 帖子卡片 */
.cm-post-card { cursor: pointer; }
.cm-post-card:hover { transform: translateY(-2px); }
.cm-post-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.cm-post-avatar { font-size: 20px; }
.cm-post-author { font-weight: 600; font-size: 13px; color: var(--text); }
.cm-post-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.cm-post-content { color: var(--text-muted); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cm-post-meta { display: flex; gap: 16px; font-size: 13px; color: var(--text-muted); }

/* 详情页 */
.cm-back { margin-bottom: 12px; }
.cm-detail { padding: 20px; }
.cm-detail-cover { font-size: 48px; text-align: center; margin-bottom: 12px; }
.cm-detail-title { font-size: 20px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.cm-detail-meta { margin-bottom: 16px; }
.cm-detail-content { font-size: 15px; line-height: 1.8; color: var(--text); }
.cm-detail-content p { margin-bottom: 12px; }
.cm-detail-content h3 { font-size: 17px; font-weight: 700; margin: 20px 0 10px; padding-left: 10px; border-left: 3px solid var(--primary); }
.cm-detail-content h4 { font-size: 16px; font-weight: 700; margin: 16px 0 8px; }
.cm-detail-content ul, .cm-detail-content ol { padding-left: 20px; margin-bottom: 12px; }
.cm-detail-content li { margin-bottom: 6px; }
.cm-detail-content blockquote { padding: 10px 14px; background: var(--bg-soft); border-left: 3px solid var(--primary); border-radius: 4px; margin-bottom: 12px; font-size: 14px; }
.cm-detail-content table { width: 100%; border-collapse: collapse; margin-bottom: 12px; font-size: 14px; }
.cm-detail-content th, .cm-detail-content td { border: 1px solid var(--border-light); padding: 8px 10px; text-align: left; }
.cm-detail-content th { background: var(--bg-soft); font-weight: 600; }
.cm-detail-content hr { border: none; border-top: 1px solid var(--border-light); margin: 16px 0; }
.cm-detail-content strong { font-weight: 700; }

.cm-detail-actions { display: flex; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-light); }
.cm-like-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px;
  border: 1px solid var(--border-light); border-radius: 20px; background: var(--bg-card);
  font-size: 14px; cursor: pointer; transition: all 0.2s;
}
.cm-like-btn.on { color: #e53935; border-color: #e53935; }
.cm-share-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px;
  border: 1px solid var(--border-light); border-radius: 20px; background: var(--bg-card);
  font-size: 14px; cursor: pointer; transition: all 0.2s;
}
.cm-share-btn:hover { border-color: var(--primary); color: var(--primary); }

/* 评论 */
.cm-comments { margin-bottom: 16px; }
.cm-comment { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.cm-comment-avatar { font-size: 24px; flex-shrink: 0; }
.cm-comment-body { flex: 1; min-width: 0; }
.cm-comment-author { font-weight: 600; font-size: 13px; margin-bottom: 2px; }
.cm-comment-text { font-size: 14px; line-height: 1.6; color: var(--text); }
.cm-comment-del { font-size: 12px; color: var(--text-muted); background: none; border: none; cursor: pointer; }
.cm-comment-del:hover { color: #e53935; }

/* 评论输入框 */
.cm-comment-box { position: sticky; bottom: 0; background: var(--bg-card); padding: 12px; border-top: 1px solid var(--border-light); }

/* 悬浮发帖按钮 */
.cm-fab {
  position: fixed; right: 20px; bottom: 80px; z-index: 50;
  background: var(--primary); color: #fff; border: none; border-radius: 24px;
  padding: 12px 20px; font-size: 14px; font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); cursor: pointer;
  transition: transform 0.2s;
}
.cm-fab:hover { transform: translateY(-2px); }
.cm-fab:active { transform: scale(0.95); }
