/* 贴贴 - 旅行清单（东京 & 北海道）
 * 只做三件事：看景点（真实封面 + 攻略）、标想去程度、筛出行程。
 */
:root {
  --bg: #fff6ee;
  --surface: #fffdfa;
  --ink: #4a3a33;
  --ink-2: #8b7568;
  --ink-3: #b6a196;
  --line: #f0e0d2;
  --accent: #ff7a59;
  --accent-soft: #ffe9de;
  --must: #e2544a;
  --must-soft: #ffe6e1;
  --want: #e6a12b;
  --want-soft: #fff3d6;
  --shadow: 0 3px 12px rgba(122, 78, 48, .08);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; }

.app { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; }

/* ---------------- 顶栏 ---------------- */
.topbar {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(10px + var(--safe-t)) 16px 10px;
  background: rgba(255, 253, 250, .92);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo {
  width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 3px 10px rgba(255, 122, 89, .28);
}
.brand-logo img { width: 100%; height: 100%; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong { font-size: 17px; letter-spacing: .5px; }
.brand-text small { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.stat-pill {
  flex: 0 0 auto; padding: 5px 11px; border-radius: 999px;
  background: var(--accent-soft); color: #c85a3c;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}

/* ---------------- 内容区 ---------------- */
.content {
  flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch;
  width: 100%; max-width: 560px; margin: 0 auto;
  padding: 14px 14px calc(20px + var(--safe-b));
}
.view { display: block; }

/* 来源说明 */
.source-note {
  margin: 0 0 10px; padding: 0 2px;
  font-size: 11px; color: var(--ink-3); line-height: 1.5;
}

/* 筛选 */
.filters { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.filter-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 6px 13px; font-size: 12.5px;
  font-weight: 600; color: var(--ink-2); cursor: pointer;
}
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.filter-row.level .chip[data-level="2"].is-active { background: var(--must); border-color: var(--must); }
.filter-row.level .chip[data-level="1"].is-active { background: var(--want); border-color: var(--want); }
/* 板块筛选：横向滚动，不换行，避免挤占列表 */
.filter-row.zones {
  flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.filter-row.zones::-webkit-scrollbar { display: none; }
.filter-row.zones .chip { flex: 0 0 auto; padding: 5px 11px; font-size: 12px; }
.filter-row.zones .chip.is-active {
  background: var(--accent-soft); border-color: #f3c8b4; color: #c85a3c;
}

/* 景点卡片 */
.list { display: flex; flex-direction: column; gap: 12px; }

/* 城市分隔 + 板块分组头 */
.city-head {
  display: flex; align-items: center; gap: 8px;
  margin: 4px 2px -2px;
  font-size: 12px; font-weight: 800; letter-spacing: 1px; color: #b9744d;
}
.city-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.city-head-count { font-size: 10.5px; font-weight: 600; letter-spacing: 0; color: var(--ink-3); }
.zone-group { display: flex; flex-direction: column; gap: 9px; }
.zone-head {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 12px;
  background: linear-gradient(135deg, #fff0e3, #fff9f1);
  border: 1px solid #f3ddc9;
}
.zone-icon {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px;
  background: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 19px; box-shadow: 0 2px 7px rgba(180, 120, 70, .13);
}
.zone-head-text { flex: 1; min-width: 0; }
.zone-name { font-size: 14px; font-weight: 800; letter-spacing: .3px; color: var(--ink); }
.zone-note { margin-top: 2px; font-size: 11px; line-height: 1.45; color: var(--ink-2); }
.zone-count {
  flex: 0 0 auto; padding: 3px 9px; border-radius: 999px;
  background: #fff; color: #c85a3c; font-size: 10.5px; font-weight: 700;
}
.zone-cards { display: flex; flex-direction: column; gap: 10px; }
.spot-card {
  background: var(--surface); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid rgba(240, 224, 210, .7);
}
.spot-photo {
  position: relative; width: 100%; height: 168px;
  background: linear-gradient(135deg, #ffe9de, #fff3d6);
  overflow: hidden; cursor: zoom-in;
}
.spot-photo:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.spot-photo img {
  width: 100%; height: 100%; display: block; object-fit: cover;
  object-position: center 42%;
}
.spot-photo.is-broken::after {
  content: "🐕"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 42px; opacity: .55;
}
.photo-city {
  position: absolute; left: 10px; bottom: 10px;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(40, 28, 20, .58); color: #fff;
  font-size: 10.5px; font-weight: 600; letter-spacing: .3px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.photo-zoom {
  position: absolute; right: 10px; bottom: 10px;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(40, 28, 20, .58); color: #fff;
  font-size: 10.5px; font-weight: 600;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}
/* 卡片下方多图缩略图条 */
.spot-thumbs {
  display: flex; gap: 6px; padding: 8px 12px 2px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.spot-thumbs::-webkit-scrollbar { display: none; }
.spot-thumb {
  flex: 0 0 auto; width: 54px; height: 54px; padding: 0;
  border: 2px solid transparent; border-radius: 9px; overflow: hidden;
  background: linear-gradient(135deg, #ffe9de, #fff3d6);
  cursor: zoom-in; opacity: .82; transition: opacity .15s, border-color .15s;
}
.spot-thumb:first-child { border-color: var(--accent); opacity: 1; }
.spot-thumb:hover, .spot-thumb:active { opacity: 1; }
.spot-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.spot-body { padding: 12px 14px 14px; }
.spot-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.spot-title { display: flex; flex-direction: column; min-width: 0; }
.spot-title strong { font-size: 16px; letter-spacing: .2px; }
.spot-area { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.badge {
  flex: 0 0 auto; font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px;
}
.badge.lv2 { background: var(--must-soft); color: var(--must); }
.badge.lv1 { background: var(--want-soft); color: #b87d10; }
.badge.lv0 { background: #f4efe9; color: var(--ink-3); }
.spot-desc { margin: 8px 0 9px; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.spot-meta { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.tag {
  font-size: 10.5px; padding: 2px 8px; border-radius: 6px;
  background: #fff3e9; color: #b9744d;
}
.season { font-size: 10.5px; color: var(--ink-3); margin-left: auto; }

/* 攻略折叠 */
.guide-toggle {
  width: 100%; margin-top: 11px; padding: 8px 10px;
  border: 1px dashed #e8cfbb; border-radius: 9px;
  background: #fffaf4; color: #b9744d;
  font-size: 12px; font-weight: 600; cursor: pointer; text-align: left;
}
.guide-toggle.is-open { background: var(--accent-soft); border-style: solid; border-color: #f3c8b4; }
.guide {
  margin-top: 8px; padding: 11px 12px; border-radius: 9px;
  background: #fff8f1; border: 1px solid #f3e5d7;
}
.guide-about {
  margin: 0 0 8px; padding-bottom: 9px;
  border-bottom: 1px dashed #f0e0d2;
  font-size: 12.5px; line-height: 1.75; color: var(--ink-2);
}
.guide-section-title {
  font-size: 11px; font-weight: 700; letter-spacing: .6px;
  color: #b9744d; margin: 10px 0 2px;
  padding-left: 7px; border-left: 3px solid #f3c8b4;
}
.guide-section-title:first-of-type { margin-top: 2px; }
.guide-row { display: flex; gap: 8px; padding: 4px 0; font-size: 12px; line-height: 1.6; }
.guide-row + .guide-row { border-top: 1px dashed #f0e0d2; }
.guide-k {
  flex: 0 0 62px; color: #b9744d; font-weight: 700;
}
.guide-v { flex: 1; min-width: 0; color: var(--ink-2); }
/* 网友实测（小红书笔记提炼） */
.notes-title {
  display: flex; align-items: baseline; gap: 6px;
  color: #c25e3a; border-left-color: #f3a98c;
}
.notes-from { font-size: 10px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.notes-box {
  margin-top: 4px; padding: 4px 2px 2px;
  background: #fff3e9; border-radius: 8px;
}
.note-item {
  display: flex; gap: 7px; padding: 6px 9px;
  font-size: 12px; line-height: 1.65; color: var(--ink-2);
}
.note-item + .note-item { border-top: 1px dashed #f0dcc9; }
.note-dot { flex: 0 0 auto; color: #d97b52; font-weight: 700; }
.note-text { flex: 1; min-width: 0; }

.mark-row { display: flex; gap: 6px; margin-top: 12px; }
.mark-btn {
  flex: 1; padding: 8px 0; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line); background: #fbf7f2;
  font-size: 12px; font-weight: 600; color: var(--ink-2);
}
.mark-btn:active { transform: scale(.96); }
.mark-btn[data-mark="2"].is-active { background: var(--must-soft); border-color: #f3b6ae; color: var(--must); }
.mark-btn[data-mark="1"].is-active { background: var(--want-soft); border-color: #f0d38c; color: #b87d10; }
.mark-btn[data-mark="0"].is-active { background: #eee7df; border-color: #ddd2c6; color: var(--ink); }

/* 行程页 */
.plan-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 14px; padding: 12px 14px;
  background: var(--surface); border-radius: 14px; box-shadow: var(--shadow);
}
.plan-head strong { display: block; font-size: 15px; }
.plan-head small { color: var(--ink-3); font-size: 11.5px; }
.copy-btn {
  flex: 0 0 auto; border: 0; border-radius: 9px; padding: 9px 13px;
  background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.plan-group-title {
  font-size: 12px; font-weight: 700; color: var(--ink-2);
  margin: 6px 2px 2px; letter-spacing: .5px;
}
.plan-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border-radius: 12px; padding: 11px 13px;
  box-shadow: var(--shadow);
}
.plan-num {
  flex: 0 0 24px; height: 24px; border-radius: 50%;
  background: var(--accent-soft); color: #c85a3c;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.plan-body { flex: 1; min-width: 0; }
.plan-body strong { display: block; font-size: 14px; }
.plan-body small { color: var(--ink-3); font-size: 11px; }
.plan-remove {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  border: 0; background: #f4efe9; color: var(--ink-2); cursor: pointer; font-size: 14px;
}

/* 空状态 */
.list-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 60px 20px; color: var(--ink-3); text-align: center;
}
.list-empty span { font-size: 46px; }
.list-empty strong { font-size: 15px; color: var(--ink-2); }
.list-empty small { font-size: 12px; }

/* 底部 tab */
.tabbar {
  flex: 0 0 auto; display: flex;
  height: calc(60px + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(255, 253, 250, .96); border-top: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; border: 0; background: transparent; cursor: pointer;
  font-size: 11px; font-weight: 600; color: var(--ink-3);
}
.tab span { font-size: 21px; line-height: 1.15; }
.tab.is-active { color: var(--accent); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(76px + var(--safe-b));
  transform: translateX(-50%); z-index: 50;
  background: #4a3a33; color: #fff; padding: 9px 16px;
  border-radius: 999px; font-size: 13px; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(60, 40, 30, .3);
}

/* ---------------- 全屏大图预览 ---------------- */
body.lb-open .content { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column;
  background: rgba(28, 20, 16, .96);
  padding: calc(10px + var(--safe-t)) 12px calc(10px + var(--safe-b));
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lb-bar {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px;
  color: #fff; padding: 2px 2px 10px;
}
.lb-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.lb-meta strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-meta small { font-size: 11px; color: rgba(255, 255, 255, .65); }
.lb-count {
  flex: 0 0 auto; font-size: 12px; color: rgba(255, 255, 255, .82);
  font-variant-numeric: tabular-nums;
}
.lb-close {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .16); color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer;
}
.lb-stage {
  flex: 1 1 auto; min-height: 0; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.lb-stage img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
  opacity: 0; transition: opacity .18s ease, transform .22s ease;
  touch-action: pan-y;
}
.lb-stage img.is-ready { opacity: 1; }
.lb-stage img.is-dragging { transition: none; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(30, 22, 18, .6); color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
  font-size: 26px; line-height: 1; cursor: pointer;
}
.lb-nav:active { background: rgba(255, 122, 89, .85); }
.lb-nav:disabled { opacity: .28; cursor: default; }
.lb-nav:disabled:active { background: rgba(30, 22, 18, .6); }
.lb-prev { left: 0; }
.lb-next { right: 0; }
/* 大图内同一景点的照片缩略图条 */
.lb-photo-bar {
  flex: 0 0 auto; display: flex; gap: 8px; align-items: center;
  justify-content: center; flex-wrap: wrap; margin: 4px 0 0;
  max-height: 76px; overflow-y: auto;
}
.lb-photo-bar[hidden] { display: none; }
.lb-thumb {
  flex: 0 0 auto; width: 50px; height: 50px; padding: 0;
  border: 2px solid rgba(255, 255, 255, .22); border-radius: 8px;
  overflow: hidden; background: rgba(255, 255, 255, .08);
  cursor: pointer; opacity: .6; transition: opacity .15s, border-color .15s;
}
.lb-thumb.is-active { border-color: var(--accent); opacity: 1; }
.lb-thumb:hover { opacity: 1; }
.lb-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.lb-photo-count {
  flex: 0 0 auto; margin: 8px 0 0; text-align: center;
  font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .85);
  font-variant-numeric: tabular-nums;
}
.lb-hint {
  flex: 0 0 auto; margin: 6px 0 0; text-align: center;
  font-size: 11px; color: rgba(255, 255, 255, .55);
}

/* ---------------- 顶栏：当前角色 ---------------- */
.topbar-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.brand-text small { overflow: hidden; text-overflow: ellipsis; }
.who {
  width: 34px; height: 34px; padding: 0; flex: 0 0 34px;
  border: 2px solid #fff; border-radius: 50%; overflow: hidden;
  background: #ffe7ca; cursor: pointer;
  box-shadow: 0 2px 8px rgba(120, 80, 50, .18);
}
.who-avatar { display: block; width: 100%; height: 100%; }
.who-avatar svg, .who-avatar-lg svg, .gate-role-avatar svg,
.talk-avatar svg, .talk-as-avatar svg, .gate-duo-one svg {
  display: block; width: 100%; height: 100%;
}
.who-menu {
  position: fixed; z-index: 120; right: 14px; top: calc(58px + var(--safe-t));
  width: 208px; padding: 10px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(80, 50, 30, .2);
}
.who-menu-head {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 4px 10px; border-bottom: 1px dashed var(--line);
}
.who-avatar-lg { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; overflow: hidden; }
.who-menu-txt { display: flex; flex-direction: column; min-width: 0; }
.who-menu-txt strong { font-size: 14px; }
.who-menu-txt small { font-size: 11px; color: var(--ink-3); }
.who-menu-item {
  width: 100%; margin-top: 6px; padding: 9px 10px; border: 0; border-radius: 9px;
  background: #fff7f0; text-align: left; font-size: 12.5px; font-weight: 600;
  color: var(--ink-2); cursor: pointer;
}
.who-menu-item.is-quit { background: #f6f1ec; }
.hard-refresh {
  margin-top: 8px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff7f0; color: var(--ink-2); font: inherit; font-weight: 600; cursor: pointer;
}

/* ---------------- 登录遮罩（只盖 DOM，不影响 PWA 图标） ---------------- */
.gate {
  position: fixed; inset: 0; z-index: 150;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; overflow-y: auto;
  background: linear-gradient(160deg, #fff1df, #ffe6d2 60%, #ffdcc9);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
body.gate-open .content, body.gate-open .tabbar { filter: blur(2px); }
.gate-card {
  width: 100%; max-width: 340px; padding: 26px 22px 22px;
  border-radius: 22px; background: var(--surface);
  border: 1px solid #f3ddc9; box-shadow: 0 18px 50px rgba(150, 95, 55, .2);
  text-align: center;
}
.gate-logo { display: flex; justify-content: center; margin-bottom: 6px; }
.gate-duo { display: flex; }
.gate-duo-one {
  width: 66px; height: 66px; border-radius: 20px; overflow: hidden;
  box-shadow: 0 4px 12px rgba(120, 80, 50, .18); border: 3px solid #fff;
}
.gate-duo-one + .gate-duo-one { margin-left: -12px; }
.gate-title { margin: 8px 0 2px; font-size: 24px; letter-spacing: 2px; }
.gate-sub { margin: 0 0 20px; font-size: 12.5px; color: var(--ink-3); }
.gate-label { margin: 14px 0 8px; font-size: 12px; font-weight: 700; color: var(--ink-2); text-align: left; }
.gate-roles { display: flex; gap: 10px; }
.gate-role {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 6px 10px; border-radius: 14px; cursor: pointer;
  border: 2px solid var(--line); background: #fffaf4;
  transition: border-color .15s, transform .15s, background .15s;
}
.gate-role.is-active { border-color: var(--accent); background: #fff2e9; transform: translateY(-2px); }
.gate-role-avatar { width: 56px; height: 56px; border-radius: 16px; overflow: hidden; margin-bottom: 4px; }
.gate-role strong { font-size: 14px; }
.gate-role small { font-size: 10.5px; color: var(--ink-3); }
.gate-input {
  width: 100%; padding: 12px 14px; border-radius: 11px;
  border: 1px solid var(--line); background: #fffaf4;
  font-size: 15px; letter-spacing: 1px; color: var(--ink); outline: none;
}
.gate-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.gate-login {
  width: 100%; margin-top: 12px; padding: 13px 0; border: 0; border-radius: 11px;
  background: var(--accent); color: #fff; font-size: 15px; font-weight: 800; cursor: pointer;
  box-shadow: 0 6px 16px rgba(255, 122, 89, .32);
}
.gate-login:disabled { opacity: .6; }
.gate-err { margin: 10px 0 0; font-size: 12px; color: var(--must); font-weight: 600; }
.gate-tip { margin: 14px 0 0; font-size: 11px; color: var(--ink-3); line-height: 1.5; }

/* ---------------- 景点：两个人的想法 ---------------- */
.talk { margin-top: 13px; padding-top: 11px; border-top: 1px dashed var(--line); }
.talk-head { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.talk-head-title { font-size: 12.5px; font-weight: 800; color: #b9744d; }
.talk-count { font-size: 10.5px; color: var(--ink-3); }
.talk-refresh {
  margin-left: auto; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line); background: #fffaf4; color: var(--ink-2);
  font-size: 13px; line-height: 1; cursor: pointer;
}
.talk-list { display: flex; flex-direction: column; gap: 7px; }
.talk-empty { padding: 6px 2px; font-size: 11.5px; color: var(--ink-3); }
.talk-item { display: flex; gap: 8px; align-items: flex-start; }
.talk-avatar { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 10px; overflow: hidden; }
.talk-bubble {
  flex: 1; min-width: 0; padding: 7px 10px 8px; border-radius: 11px;
  background: #fff7ee; border: 1px solid #f3e3d3;
}
.talk-bubble.role-peng { background: #fff5e2; border-color: #f2d9a8; }
.talk-bubble.role-xie { background: #f3efec; border-color: #ddd3cb; }
.talk-meta { display: flex; align-items: baseline; gap: 7px; }
.talk-meta strong { font-size: 11.5px; color: var(--ink); }
.talk-meta time { font-size: 10px; color: var(--ink-3); }
.talk-del {
  margin-left: auto; width: 20px; height: 20px; border-radius: 50%;
  border: 0; background: transparent; color: var(--ink-3);
  font-size: 14px; line-height: 1; cursor: pointer;
}
.talk-text {
  margin: 3px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-2);
  white-space: pre-wrap; word-break: break-word;
}
.talk-more {
  align-self: flex-start; padding: 4px 0; border: 0; background: transparent;
  color: #b9744d; font-size: 11px; font-weight: 600; cursor: pointer;
}
.talk-add {
  width: 100%; margin-top: 8px; padding: 8px 10px; border-radius: 9px;
  border: 1px dashed #e8cfbb; background: #fffaf4; color: #b9744d;
  font-size: 12px; font-weight: 600; cursor: pointer; text-align: left;
}
.talk-form { margin-top: 8px; padding: 9px; border-radius: 10px; background: #fff8f1; border: 1px solid #f3e5d7; }
.talk-input {
  width: 100%; padding: 9px 10px; border-radius: 8px; resize: vertical;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: inherit; font-size: 13px; line-height: 1.55; outline: none;
}
.talk-input:focus { border-color: var(--accent); }
.talk-quick { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.talk-chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 4px 9px; font-size: 11px; color: var(--ink-2); cursor: pointer;
}
.talk-form-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.talk-as { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--ink-3); }
.talk-as-avatar { flex: 0 0 20px; width: 20px; height: 20px; border-radius: 6px; overflow: hidden; }
.talk-send {
  flex: 0 0 auto; padding: 8px 18px; border: 0; border-radius: 9px;
  background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.talk-send:disabled { opacity: .55; }

@media (min-width: 700px) {
  .content { padding-top: 18px; }
  .spot-card { border-radius: 16px; }
  .spot-photo { height: 200px; }
  .lightbox { padding-left: 24px; padding-right: 24px; }
  .lb-nav { width: 46px; height: 46px; }
}
