/* ===== 评分手记 · 深色卡片手记风格 ===== */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --card: #ffffff;
  --card-2: #eef1f5;
  --border: #d8dde5;
  --border-soft: #e6eaf0;
  --text: #26303f;
  --muted: #5f6b7d;
  --muted-2: #8a93a3;
  --accent: #f0b429;
  --accent-soft: rgba(240, 180, 41, 0.14);
  --danger: #f0534d;
  --danger-soft: rgba(240, 83, 77, 0.14);
  --green: #4cd188;
  --shadow: 0 10px 30px rgba(31, 41, 55, 0.12);
  --radius: 16px;
  --radius-s: 11px;
  --ink: #2f3a4b;
  --ink-muted: #64728a;
}
* { box-sizing: border-box; }
/* 让 hidden 属性始终生效（防止被 .lightbox 的 display:flex 覆盖） */
[hidden] { display: none !important; }
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}
body {
  background: linear-gradient(135deg, #d9f3ee 0%, #a9ded7 50%, #c7ece5 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font-family: inherit; cursor: pointer; }
img { display: block; }
/* ===== 顶栏 ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px clamp(14px, 4vw, 28px);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 6px;
  border-radius: 8px;
}
.brand:hover { background: var(--card-2); }
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--text);
  font-size: 14px;
  padding: 6px 12px 6px 8px;
  border-radius: 12px;
  transition: transform 0.15s ease, background 0.15s ease;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.back-btn:hover { background: rgba(255, 255, 255, 0.9); transform: translateY(-1px); }
.back-btn svg { display: block; flex-shrink: 0; }
.page-title {
  flex: 1;
  font-size: 14px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* ===== 布局 ===== */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(18px, 4vw, 34px) clamp(14px, 4vw, 24px) 70px;
}
.foot {
  text-align: center;
  color: var(--ink-muted);
  font-size: 12px;
  padding: 10px 16px 26px;
}
/* ===== 按钮 ===== */
.btn {
  border: 1px solid var(--border);
  background: var(--card-2);
  color: var(--text);
  padding: 9px 16px;
  border-radius: 12px;
  font-size: 14px;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: #c3cbd8; }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #20160a;
  font-weight: 700;
}
.btn-primary:hover { background: #f8c63f; border-color: #f8c63f; }
.btn-ghost { background: transparent; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; font-weight: 600; }
.btn-danger:hover { background: #ff615c; border-color: #ff615c; }
.btn-danger-ghost { background: transparent; border-color: transparent; color: var(--danger); }
.btn-danger-ghost:hover { background: var(--danger-soft); }
.btn-small { padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.icon-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  padding: 6px;
  border-radius: 8px;
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-btn:hover { background: var(--card-2); color: var(--text); opacity: 1; }
/* ===== 首页：分类 ===== */
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.page-head h2 { margin: 0; font-size: 22px; letter-spacing: 0.3px; color: var(--ink); }
.page-sub { color: var(--ink-muted); font-size: 13px; }
.page-actions { display: flex; gap: 8px; }
.page-actions .btn-ghost { color: var(--ink); }
.section-title {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 6px 2px 12px;
  letter-spacing: 1px;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 16px;
}
.cat-card {
  position: relative;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.22, 0.9, 0.32, 1), border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 152px;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.cat-card:hover {
  transform: translateY(-3px) translateZ(0);
  border-color: #c3cbd8;
  box-shadow: var(--shadow);
}
.cat-card::before {
  content: "";
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--accent), rgba(240, 180, 41, 0.15));
}
.cat-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.cat-name { margin: 0; font-size: 18px; font-weight: 700; word-break: break-word; }
.cat-menu { display: flex; gap: 2px; opacity: 0; transition: opacity 0.12s; }
.cat-card:hover .cat-menu { opacity: 1; }
.cat-meta { color: var(--muted); font-size: 13.5px; }
.cat-hint { margin-top: auto; color: var(--muted-2); font-size: 12px; }
.cat-new {
  border-style: dashed;
  border-color: rgba(47, 58, 75, 0.4);
  background: transparent;
  color: var(--ink-muted);
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
}
.cat-new:hover { color: var(--ink); border-color: var(--accent); background: var(--accent-soft); }
.cat-new .plus { font-size: 26px; line-height: 1; display: block; margin-bottom: 6px; }
.empty {
  text-align: center;
  padding: 70px 20px;
  color: var(--ink-muted);
}
.empty p { margin: 0 0 20px; }
/* ===== 记录 ===== */
.records {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 18px;
  align-items: start;
}
.record-card {
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s cubic-bezier(0.22, 0.9, 0.32, 1), border-color 0.2s ease;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.record-card:hover { border-color: #c3cbd8; box-shadow: var(--shadow); }
.record-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.record-title { margin: 0; font-size: 17px; font-weight: 700; word-break: break-word; }
.record-menu { display: flex; gap: 2px; flex-shrink: 0; opacity: 0; transition: opacity 0.12s; }
.record-card:hover .record-menu { opacity: 1; }
.record-score { display: flex; align-items: center; gap: 10px; }
.stars {
  display: inline-flex;
  gap: 2px;
  font-size: 19px;
  line-height: 1;
  letter-spacing: 1px;
}
.star {
  background: linear-gradient(90deg, var(--accent) var(--fill), #c3cad6 var(--fill));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.score-num { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.record-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.rthumb {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  background: var(--bg);
}
.rthumb img { width: 76px; height: 76px; object-fit: cover; }
.rthumb:hover { border-color: var(--accent); }
.more-thumb { align-self: center; color: var(--muted); font-size: 12px; }
.record-comment {
  margin: 0;
  color: var(--text);
  font-size: 14.5px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 140px;
  overflow-y: auto;
}
.notes { border-top: 1px dashed var(--border); padding-top: 6px; display: flex; flex-direction: column; gap: 10px; max-height: 200px; overflow-y: auto; }
.note-label { font-size: 12px; color: var(--muted-2); letter-spacing: 1px; }
.note { background: var(--bg-soft); border: 1px solid var(--border-soft); border-radius: var(--radius-s); padding: 10px 12px; }
.note-meta { display: flex; justify-content: space-between; align-items: center; color: var(--muted-2); font-size: 12px; }
.note p { margin: 6px 0 0; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.note-x { background: none; border: none; color: var(--muted-2); font-size: 16px; line-height: 1; padding: 0 2px; }
.note-x:hover { color: var(--danger); }
.record-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}
.record-date { color: var(--muted-2); font-size: 12px; }
/* ===== 弹窗 ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  animation: fadeIn 0.16s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  padding: 22px;
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  animation: popIn 0.22s cubic-bezier(0.2, 0.8, 0.3, 1.1);
}
@keyframes popIn { from { transform: translateY(10px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-title { margin: 0 0 16px; font-size: 19px; font-weight: 700; }
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: 13px; color: var(--muted); }
input[type="text"], textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.12s;
}
input[type="text"]:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 72px; }
.score-picker { display: flex; flex-direction: column; gap: 8px; }
.stars-preview { font-size: 24px; display: inline-flex; gap: 3px; line-height: 1; }
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent), #d4dae3);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  cursor: pointer;
}
.upload-btn { align-self: flex-start; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; min-height: 0; }
.thumb { position: relative; }
.thumb img { width: 74px; height: 74px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.thumb-x {
  position: absolute; top: -6px; right: -6px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: none;
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.confirm-msg { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; }
/* ===== 灯箱 ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(3, 5, 8, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.15s ease;
}
.lb-img {
  max-width: 90vw;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.lb-close {
  position: absolute; top: 16px; right: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 18px;
  z-index: 2;
}
.lb-close:hover { background: rgba(255,255,255,0.18); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  z-index: 2;
}
.lb-nav:hover { background: rgba(255,255,255,0.18); }
.lb-nav:disabled { opacity: 0.3; cursor: default; }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-count {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: #cfd6e0; font-size: 13px;
  background: rgba(0,0,0,0.5);
  padding: 4px 12px;
  border-radius: 20px;
}
/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.65);
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: var(--shadow);
  animation: toastIn 0.2s ease;
  max-width: 90vw;
}
.toast.err { background: #fdecec; border-color: #f5c2c2; color: #c0392b; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
/* ===== 主题切换 ===== */
.theme-btn { display: inline-flex; align-items: center; gap: 6px; }
.theme-btn-text { font-size: 14px; }
.theme-head { display: flex; justify-content: space-between; align-items: flex-start; }
.theme-head .modal-title { margin-bottom: 14px; }
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
}
.theme-swatch {
  position: relative;
  height: 88px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  transition: transform 0.14s ease;
}
.theme-swatch:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); }
.theme-swatch.active { outline: 2px solid var(--accent); outline-offset: 2px; }
.swatch-name {
  margin: 0 0 8px 8px;
  font-size: 11px;
  line-height: 1.2;
  color: #333d4b;
  background: rgba(255, 255, 255, 0.68);
  padding: 2px 7px;
  border-radius: 6px;
}
/* ===== 页面过渡 ===== */
.cat-page {
  animation: pageScaleIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}
@keyframes pageScaleIn {
  0%   { opacity: 0; transform: scale(0.82) translateZ(0); }
  58%  { opacity: 1; transform: scale(1.045) translateZ(0); }
  100% { opacity: 1; transform: scale(1) translateZ(0); }
}
/* ===== 记录卡片地点输入 ===== */
.record-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}
.loc-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  border-bottom: 1px dashed var(--border);
  color: var(--text);
  font-size: 13px;
  padding: 3px 2px;
  font-family: inherit;
  outline: none;
}
.loc-input::placeholder { color: var(--muted-2); }
.loc-input:focus { border-bottom-color: var(--accent); }
.loc-text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  word-break: break-word;
  padding: 3px 2px;
}
.loc-text.empty { color: var(--muted-2); }
.loc-edit-btn { flex-shrink: 0; }
.record-card.highlight { animation: highlightFlash 1.2s ease; }
@keyframes highlightFlash {
  0% { box-shadow: 0 0 0 0 rgba(240, 180, 41, 0.65); }
  50% { box-shadow: 0 0 0 6px rgba(240, 180, 41, 0.35); }
  100% { box-shadow: 0 0 0 0 rgba(240, 180, 41, 0); }
}
/* ===== 统计面板 ===== */
.stats-head { display: flex; justify-content: space-between; align-items: flex-start; }
.stats-head .modal-title { margin-bottom: 12px; }
.stats-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.stats-tab {
  flex: 1;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  padding: 8px 0;
  border-radius: 10px;
  font-size: 14px;
  transition: background 0.15s ease, color 0.15s ease;
}
.stats-tab.active { background: var(--accent); border-color: var(--accent); color: #20160a; font-weight: 700; }
.stats-body { max-height: 60vh; overflow-y: auto; }
.tier-list { display: flex; flex-direction: column; gap: 8px; }
.tier {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  text-align: left;
}
.tier:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--accent); }
.tier:disabled { opacity: 0.45; cursor: default; }
.tier-icon { display: inline-flex; }
.tier-label { font-size: 14px; color: var(--text); font-weight: 600; }
.tier-count { margin-left: auto; font-size: 13px; color: var(--muted); }
.pix-stars { display: inline-flex; gap: 2px; }
.pix-star { display: block; image-rendering: pixelated; }
.cal-head { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 14px; }
.year-btn {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--border); background: transparent; color: var(--text); font-size: 16px; line-height: 1;
  cursor: pointer;
}
.year-btn:hover { background: var(--card-2); }
.year-label { font-size: 15px; font-weight: 700; color: var(--text); min-width: 70px; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.cal-month { border: 1px solid var(--border); border-radius: 12px; padding: 10px 8px; background: var(--bg-soft); }
.cal-month-title { font-size: 13px; font-weight: 700; color: var(--text); margin: 0 0 6px 2px; }
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
.cal-wd { font-size: 10px; color: var(--muted-2); text-align: center; line-height: 18px; }
.cal-day {
  position: relative;
  height: 26px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cal-day.blank { cursor: default; }
.cal-day:hover:not(:disabled) { background: var(--card-2); }
.cal-day:disabled { color: var(--muted-2); cursor: default; }
.cal-day .dot {
  position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: #e5484d;
}
.loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.loc-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 76px;
  border: 1px solid var(--border); background: var(--bg-soft); border-radius: 12px;
  cursor: pointer; padding: 8px; transition: transform 0.15s ease, border-color 0.15s ease;
}
.loc-tile:hover { transform: translateY(-2px); border-color: var(--accent); }
.loc-name { font-size: 13px; font-weight: 600; color: var(--text); word-break: break-all; text-align: center; }
.loc-count { font-size: 11px; color: var(--muted); }
.sub-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sub-back {
  border: 1px solid var(--border); background: transparent; color: var(--text);
  padding: 5px 12px; border-radius: 10px; font-size: 13px; cursor: pointer;
}
.sub-back:hover { background: var(--card-2); }
.sub-title { font-size: 14px; font-weight: 600; color: var(--text); }
.rec-list { display: flex; flex-direction: column; gap: 8px; }
.rec-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid var(--border); background: var(--bg-soft); border-radius: 12px;
  padding: 10px 14px; cursor: pointer; text-align: left;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.rec-item:hover { transform: translateY(-1px); border-color: var(--accent); }
.rec-item-title { font-size: 14px; color: var(--text); word-break: break-word; }
.rec-item-score { font-size: 13px; color: var(--muted); white-space: nowrap; }
.stats-empty { text-align: center; color: var(--muted-2); padding: 30px 10px; font-size: 14px; }
/* ===== 收藏 ===== */
.fav-star, .fav-heart {
  background: none;
  border: none;
  color: var(--muted);
  padding: 4px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.9;
  transition: color 0.12s ease, transform 0.12s ease;
}
.fav-star:hover { color: #f0b429; transform: scale(1.12); opacity: 1; }
.fav-heart:hover { color: #e5484d; transform: scale(1.12); opacity: 1; }
.fav-star.on { color: #f0b429; }
.fav-heart.on { color: #e5484d; }
.fav-star svg, .fav-heart svg { display: block; }
.cat-right, .record-right { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.fav-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 20px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
  text-align: left;
}
.fav-entry:hover { transform: translateY(-2px); border-color: #f0b429; }
.fav-entry-icon { color: #e5484d; display: inline-flex; }
.fav-entry-text { font-size: 16px; font-weight: 700; }
.fav-entry-count { margin-left: auto; font-size: 13px; color: var(--muted); }
.fav-entry-arrow { font-size: 18px; color: var(--muted-2); }
.fav-list { display: flex; flex-direction: column; gap: 8px; }
.fav-section-title { font-size: 12px; color: var(--muted-2); letter-spacing: 1px; margin: 6px 2px 2px; }
.fav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.fav-item:hover { transform: translateY(-1px); border-color: #f0b429; }
.fav-item-icon { display: inline-flex; flex-shrink: 0; }
.fav-cat .fav-item-icon { color: #f0b429; }
.fav-rec .fav-item-icon { color: #e5484d; }
.fav-item-name { font-size: 14px; font-weight: 600; color: var(--text); word-break: break-word; }
.fav-item-sub { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
/* ===== 响应式 ===== */
@media (max-width: 640px) {
  .brand-text { display: none; }
  .record-menu, .cat-menu { opacity: 1; }
  .records { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .modal { padding: 18px; }
  .rthumb img { width: 64px; height: 64px; }
}

/* ==========好友圈子社交模块新增样式========== */
#socialOverlay {
  font-family: -apple-system, BlinkMacSystemFont, system-ui;
}
#notifyBox {
  box-shadow: 0 2px 14px rgba(0,0,0,0.20);
}
img {
  max-width:100%;
  object-fit: contain;
}
