/* =========================================================
   灵感画室 · Airbnb 风格（规范见 ../DESIGN.md）
   纯白画布 + 墨色文字 + 唯一品牌色 Rausch #ff385c
   字重克制、圆角柔和、图片优先、全站只有一档阴影
   ========================================================= */
:root {
  /* 颜色：变量名沿用旧版，后台 admin.css 也依赖它们 */
  --bg: #ffffff;              /* canvas */
  --panel: #ffffff;           /* surface-card */
  --paper-2: #f2f2f2;         /* surface-strong */
  --soft: #f7f7f7;            /* surface-soft */
  --text: #222222;            /* ink */
  --ink-2: #3f3f3f;           /* body */
  --muted: #6a6a6a;
  --muted-soft: #929292;
  --line: #dddddd;            /* hairline */
  --line-soft: #ebebeb;
  --line-strong: #c1c1c1;
  --accent: #ff385c;          /* Rausch */
  --accent-deep: #e00b41;     /* Rausch active */
  --accent-soft: #ffd1da;     /* Rausch disabled / 浅底 */
  --danger: #c13515;
  /* 圆角 */
  --r-xs: 4px;
  --r-sm: 8px;
  --radius: 14px;             /* rounded.md：卡片 */
  --radius-lg: 20px;
  --r-xl: 32px;
  /* 唯一的阴影档位 */
  --shadow: rgba(0, 0, 0, 0.02) 0 0 0 1px, rgba(0, 0, 0, 0.04) 0 2px 6px 0, rgba(0, 0, 0, 0.1) 0 4px 8px 0;
  --shadow-lift: var(--shadow);
  --sans: "Airbnb Cereal VF", Circular, -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
    "MiSans", "Hiragino Sans GB", "Microsoft YaHei", system-ui, Roboto, "Helvetica Neue", sans-serif;
  --serif: var(--sans);
  --mono: var(--sans);
  --ease: cubic-bezier(0.2, 0, 0, 1);
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; line-height: 1.5; font-size: 16px; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--accent-soft); color: var(--text); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* ---------- 品牌标：Rausch 圆点 ---------- */
.logo {
  display: inline-block; width: 24px; height: 24px; border-radius: 50%; flex: none; position: relative;
  background: var(--accent);
}
.logo::after {
  content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff;
}

/* ---------- 布局 ---------- */
.app { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  background: var(--bg); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 24px 24px 20px; }
.brand-text { font-size: 20px; font-weight: 700; color: var(--accent); letter-spacing: -0.2px; line-height: 1.2; }
.brand-text small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: 2px; }
.new-btn {
  margin: 0 20px 20px; height: 48px; border-radius: var(--r-sm); background: var(--accent); color: #fff;
  font-size: 16px; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.15s;
}
.new-btn span { font-weight: 600; }
.new-btn:hover { background: var(--accent-deep); }
.history { flex: 1; overflow-y: auto; padding: 0 12px 16px; }
.history-title {
  display: flex; justify-content: space-between; align-items: baseline; padding: 16px 12px 8px;
  font-size: 16px; font-weight: 600; color: var(--text); border-top: 1px solid var(--line-soft);
}
.history-title span { font-size: 12px; font-weight: 400; color: var(--muted); }
.history-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border-radius: var(--r-sm);
  text-align: left; transition: background 0.15s;
}
.history-item:hover { background: var(--soft); }
.history-item.active { background: var(--paper-2); }
.history-item img, .history-item .ph {
  width: 44px; height: 44px; border-radius: var(--r-sm); object-fit: cover; flex: none; background: var(--paper-2);
}
.history-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--text); }
.history-empty { color: var(--muted); font-size: 14px; padding: 8px 12px; line-height: 1.43; }
.quota { border-top: 1px solid var(--line); padding: 16px 24px; font-size: 13px; color: var(--muted); }

.main { padding: 48px 48px 160px; max-width: 1120px; width: 100%; margin: 0 auto; position: relative; overflow-x: clip; }
.topbar { display: none; }

/* ---------- 首屏：字小、留白、靠图片说话 ---------- */
.hero { padding: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
h1 { font-weight: 700; font-size: 28px; line-height: 1.43; letter-spacing: 0; margin-top: 8px; }
h1 em { font-style: normal; color: var(--accent); }
.sub { color: var(--muted); margin-top: 4px; font-size: 16px; max-width: 36em; }
.orbit { display: none; }

/* ---------- 分区 ---------- */
.section { margin-top: 48px; }
.section-title {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px;
  font-size: 22px; font-weight: 500; letter-spacing: -0.44px; line-height: 1.18; margin-bottom: 16px;
}
.section-title .step {
  font-size: 12px; font-weight: 700; letter-spacing: 0; color: var(--text); background: var(--paper-2);
  border-radius: 9999px; padding: 3px 9px; transform: translateY(-2px);
}
.section-title em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 14px; letter-spacing: 0; }

/* ---------- 场景：房源式图片卡（图在上，文字在下） ---------- */
.scenes { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 24px 16px; }
.scene { position: relative; display: flex; flex-direction: column; text-align: left; color: var(--text); background: none; }
.scene .cover {
  position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--paper-2);
  display: grid; place-items: center;
}
.scene .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.scene:hover .cover img { transform: scale(1.03); }
/* 左上角白色小药丸（对应 Guest favorite 徽章） */
.scene .no {
  position: absolute; top: 12px; left: 12px; background: #fff; color: var(--text); box-shadow: var(--shadow);
  font-size: 11px; font-weight: 600; line-height: 1.18; padding: 5px 10px; border-radius: 9999px;
}
/* 右上角选中标记（对应收藏爱心：选中变 Rausch） */
.scene .check {
  position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px; font-weight: 700; color: transparent;
  background: rgba(0, 0, 0, 0.35); border: 2px solid #fff; transition: background 0.15s, color 0.15s;
}
.scene.selected .check { background: var(--accent); border-color: var(--accent); color: #fff; }
.scene .meta { padding: 10px 2px 0; }
.scene .name { font-size: 16px; font-weight: 600; line-height: 1.25; }
.scene .desc {
  font-size: 14px; color: var(--muted); line-height: 1.43; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.scene.selected .cover { box-shadow: 0 0 0 2px var(--text); }
.scene.custom .cover { background: var(--soft); font-size: 40px; color: var(--accent); border: 1px dashed var(--line-strong); }
.scene.custom.selected .cover { border-color: transparent; }

/* ---------- 输入 ---------- */
textarea.input {
  width: 100%; min-height: 120px; resize: vertical; padding: 14px 12px; line-height: 1.5; font-size: 16px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--bg); outline: none;
}
textarea.input::placeholder { color: var(--muted-soft); }
textarea.input:focus { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.counter { text-align: right; font-size: 13px; color: var(--muted); margin-top: 6px; }

.refs { display: flex; flex-wrap: wrap; gap: 12px; }
.ref, .ref-add { width: 104px; height: 104px; border-radius: var(--radius); position: relative; overflow: hidden; flex: none; }
.ref { background: var(--paper-2); }
.ref img { width: 100%; height: 100%; object-fit: cover; }
.ref .badge {
  position: absolute; left: 6px; top: 6px; background: #fff; color: var(--text); box-shadow: var(--shadow);
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 9999px;
}
.ref .remove {
  position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; color: var(--text); font-size: 15px; line-height: 24px; box-shadow: var(--shadow);
}
.ref .make-main {
  position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.55); color: #fff;
  font-size: 12px; font-weight: 500; padding: 6px 0; opacity: 0; transition: opacity 0.15s;
}
.ref:hover .make-main { opacity: 1; }
.ref.uploading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.ref-progress { font-size: 12px; color: var(--muted); }
.ref-add {
  border: 1px dashed var(--line-strong); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; color: var(--text); font-size: 14px; font-weight: 500; background: var(--bg); transition: background 0.15s, border-color 0.15s;
}
.ref-add .plus { font-size: 24px; line-height: 1; font-weight: 400; }
.ref-add:hover { background: var(--soft); border-color: var(--text); }
.hint { font-size: 14px; color: var(--muted); margin-top: 12px; line-height: 1.43; }

.options { display: flex; flex-wrap: wrap; gap: 24px 48px; }
.options .section-title { flex-basis: 100%; margin-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 16px; border-radius: 9999px; background: var(--bg); border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.chip:hover { border-color: var(--text); }
.chip.selected { background: var(--text); color: #fff; border-color: var(--text); }
.option-label { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 10px; }

/* ---------- 按钮：Rausch 主按钮，8px 圆角，48px 高 ---------- */
.primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; font-size: 16px; font-weight: 500; line-height: 1.25;
  height: 48px; padding: 0 24px; border-radius: var(--r-sm); transition: background 0.15s;
}
.primary:hover { background: var(--accent-deep); }
.primary:active { background: var(--accent-deep); }
.primary:disabled { background: var(--accent-soft); color: #fff; cursor: not-allowed; }
.spark { display: none; }
.actions { margin-top: 48px; display: flex; align-items: center; gap: 16px; }
.actions .hint { margin: 0; }

/* ---------- 作品对话 ---------- */
.conv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.conv-head h1 { font-size: 22px; font-weight: 500; letter-spacing: -0.44px; line-height: 1.18; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ghost {
  color: var(--text); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: var(--r-sm);
  text-decoration: underline; text-underline-offset: 2px; transition: background 0.15s, color 0.15s;
}
.ghost:hover { background: var(--soft); }
.ghost.danger:hover { color: var(--danger); }

.turn { margin-top: 32px; }
.bubble {
  display: inline-block; background: var(--paper-2); color: var(--text); padding: 10px 16px;
  border-radius: 20px 20px 20px 4px; max-width: 80%; line-height: 1.5;
  white-space: pre-wrap; word-break: break-word;
}
.turn-meta { font-size: 13px; color: var(--muted); margin: 12px 0; display: flex; gap: 10px; align-items: center; }
.turn-refs { display: flex; gap: 6px; }
.turn-refs img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: var(--shadow); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.shot { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); transition: box-shadow 0.2s; }
.shot:hover { box-shadow: var(--shadow); }
.shot img { width: 100%; height: auto; cursor: zoom-in; }
.shot.base { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.shot .tools {
  position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 8px; justify-content: flex-end;
  opacity: 0; transition: opacity 0.2s;
}
.shot:hover .tools { opacity: 1; }
.tool {
  background: #fff; box-shadow: var(--shadow); padding: 7px 14px; border-radius: 9999px;
  font-size: 14px; font-weight: 500; text-decoration: none; color: var(--text); transition: background 0.15s, color 0.15s;
}
.tool:hover { background: var(--accent); color: #fff; }

/* 图片下方反馈栏（单行）：👍 / 👎 / 💬 反馈，选中时细描边 + 浅 Rausch 底 */
.shot-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.feedback { display: flex; align-items: center; gap: 6px; min-width: 0; }
.fb-btn {
  display: inline-flex; align-items: center; gap: 4px; height: 32px; min-width: 40px; padding: 0 10px; flex: none;
  border: 1px solid var(--line); border-radius: 9999px; background: #fff; font-size: 13px; color: var(--text);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.fb-btn:hover { border-color: var(--text); }
.fb-btn:active { transform: scale(0.94); }
.fb-btn .fb-emoji { font-size: 16px; line-height: 1; flex: none; filter: grayscale(1); opacity: 0.7; transition: filter 0.15s, opacity 0.15s; }
.fb-btn:hover .fb-emoji, .fb-btn.on .fb-emoji { filter: none; opacity: 1; }
.fb-btn.on { border-color: var(--accent); background: #fff0f3; }
.fb-btn.on .fb-emoji { animation: fb-pop 0.3s var(--ease); }
@keyframes fb-pop { 40% { transform: scale(1.35); } }
/* 文字反馈占满剩余宽度，内容过长省略 */
.fb-comment { flex: 1 1 auto; min-width: 0; justify-content: flex-start; }
.fb-comment-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.fb-comment:not(.on) .fb-comment-text { color: var(--muted); }
.fb-edit {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 4px; height: 32px; padding: 0 4px 0 12px;
  border: 1px solid var(--text); border-radius: 9999px; background: #fff;
}
.fb-input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 13px; }
.fb-input::placeholder { color: var(--muted-soft); }
.fb-send {
  flex: none; height: 24px; padding: 0 10px; border-radius: 9999px; font-size: 12px; font-weight: 600;
  background: var(--accent); color: #fff;
}
.fb-send:hover { background: var(--accent-deep); }
.fb-x { flex: none; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; color: var(--muted); }
.fb-x:hover { background: var(--soft); color: var(--text); }

/* 底部修改框：Airbnb 搜索栏式药丸 + 圆形 Rausch 按钮 */
.composer {
  position: fixed; bottom: 0; left: 280px; right: 0; padding: 16px 48px 24px; z-index: 20;
  background: linear-gradient(to top, #fff 70%, rgba(255, 255, 255, 0));
}
.composer-inner { max-width: 880px; margin: 0 auto; }
.base-chip {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 9999px; padding: 4px 6px 4px 4px; font-size: 14px; margin-bottom: 10px;
}
.base-chip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.base-chip .ghost { text-decoration: none; padding: 2px 8px; }
.composer-box {
  display: flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: 9999px; padding: 8px 8px 8px 24px; box-shadow: var(--shadow); min-height: 64px;
}
.composer-box:focus-within { border-color: var(--text); }
.composer-box textarea {
  flex: 1; border: none; outline: none; resize: none; min-height: 24px; max-height: 140px;
  font-size: 16px; line-height: 1.5; background: transparent; padding: 4px 0;
}
.composer-box .primary { height: 48px; padding: 0 22px; border-radius: 9999px; font-size: 14px; }

/* ---------- 进度、加载、提示 ---------- */
.progress {
  margin: 16px 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; max-width: 560px;
}
.progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 16px; }
.progress-label { font-weight: 500; }
.progress-percent { font-size: 21px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.progress-track { height: 4px; background: var(--paper-2); border-radius: 9999px; margin: 14px 0 10px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width 0.25s linear; }
.progress-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }

.loading { margin-top: 28px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.spinner {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--text);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton {
  aspect-ratio: 1; border-radius: var(--radius);
  background: linear-gradient(100deg, var(--paper-2) 30%, var(--soft) 50%, var(--paper-2) 70%);
  background-size: 300% 100%; animation: shimmer 1.6s ease-in-out infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.toast {
  position: fixed; left: 50%; top: 24px; transform: translateX(-50%); background: var(--text); color: #fff;
  padding: 12px 20px; border-radius: var(--r-sm); font-size: 14px; z-index: 100; box-shadow: var(--shadow);
  max-width: 90vw; animation: drop 0.25s var(--ease);
}
.toast.error { background: var(--danger); }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -8px); } }

.lightbox {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85); display: grid; place-items: center; z-index: 90;
  cursor: zoom-out; animation: fade 0.2s;
}
.lightbox img { max-width: 94vw; max-height: 90vh; border-radius: var(--radius); }
.lightbox-tip { position: absolute; bottom: calc(16px + env(safe-area-inset-bottom)); color: rgba(255, 255, 255, 0.7); font-size: 13px; }
@keyframes fade { from { opacity: 0; } }

.notice {
  margin-top: 24px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--soft);
  color: var(--text); font-size: 14px; border: 1px solid var(--line);
}

.drawer-close { display: none; }
button, a, .scene, .chip { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 平板：卡片列数减少 ---------- */
@media (max-width: 1128px) {
  .main { padding: 40px 32px 160px; }
  .composer { padding: 16px 32px 24px; }
}

/* ---------- 手机（< 744px） ---------- */
@media (max-width: 743px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: 84vw; max-width: 320px; height: 100dvh; z-index: 50;
    transform: translateX(-100%); transition: transform 0.3s var(--ease); box-shadow: var(--shadow);
    padding-top: env(safe-area-inset-top);
  }
  .sidebar.open { transform: none; }
  .brand { position: relative; padding-right: 56px; }
  .drawer-close {
    display: block; position: absolute; right: 12px; top: 20px; width: 32px; height: 32px;
    border-radius: 50%; font-size: 14px; color: var(--text); background: var(--paper-2);
  }
  .history-item { padding: 10px 8px; }
  .history-item img, .history-item .ph { width: 48px; height: 48px; }
  .quota { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 40; animation: fade 0.2s; }

  .topbar {
    display: flex; align-items: center; gap: 4px; padding: 8px 12px; padding-top: calc(8px + env(safe-area-inset-top));
    background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30;
  }
  .topbar button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); font-size: 18px; }
  .topbar button:active { background: var(--soft); }
  .topbar-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--accent); flex: 1; padding-left: 8px; }
  .topbar-title .logo { width: 20px; height: 20px; }
  .topbar-title .logo::after { inset: 6px; }
  .topbar-quota { font-size: 12px; color: var(--muted); margin-right: 6px; }
  .topbar-new { font-size: 22px !important; color: #fff; background: var(--accent); border-color: var(--accent) !important; }

  .main { padding: 24px 24px 150px; }
  h1 { font-size: 24px; margin-top: 6px; }
  .sub { font-size: 14px; }
  .br-wide { display: none; }

  .section { margin-top: 36px; }
  .section-title { font-size: 20px; letter-spacing: -0.18px; }
  .section-title em { flex-basis: 100%; }

  /* 场景：横向滑动 */
  .scenes {
    display: flex; overflow-x: auto; gap: 12px; margin: 0 -24px; padding: 2px 24px 8px;
    scroll-snap-type: x mandatory; scroll-padding: 0 24px; scrollbar-width: none;
  }
  .scenes::-webkit-scrollbar { display: none; }
  .scene { flex: none; width: 148px; scroll-snap-align: start; }
  .scene:hover .cover img { transform: none; }
  .scene .name { font-size: 15px; }
  .scene .desc { font-size: 13px; }

  .refs { gap: 8px; }
  .ref, .ref-add { width: calc((100% - 32px) / 5); min-width: 58px; height: auto; aspect-ratio: 1; border-radius: var(--r-sm); }
  .ref-add { font-size: 0; }
  .ref-add .plus { font-size: 22px; }
  .ref .remove { width: 22px; height: 22px; line-height: 22px; right: 3px; top: 3px; font-size: 13px; }
  .ref .badge { font-size: 10px; padding: 1px 5px; left: 3px; top: 3px; }
  .ref .make-main { opacity: 1; font-size: 10px; padding: 3px 0; }

  .options { gap: 20px; flex-direction: column; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -24px; padding: 0 24px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; padding: 10px 16px; }

  /* 主按钮：吸底条（对应 Airbnb 手机端的底部预订栏） */
  .actions {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; margin: 0; flex-direction: column; gap: 6px;
    padding: 12px 24px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line);
  }
  .actions .primary { width: 100%; }
  .actions .hint { font-size: 12px; }

  .conv-head h1 { font-size: 20px; }
  .bubble { max-width: 100%; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .grid:has(> :only-child) { grid-template-columns: 1fr; }
  .shot .tools { opacity: 1; left: 6px; right: 6px; bottom: 6px; flex-wrap: wrap; gap: 6px; }
  .tool { padding: 6px 10px; font-size: 12px; }
  .feedback { gap: 4px; }
  .fb-btn { height: 34px; min-width: 34px; padding: 0 8px; }
  .fb-edit { height: 34px; padding-left: 10px; }
  /* 两列图片太窄：输入时先隐藏 👍👎，让输入框占满一行 */
  .feedback.editing .fb-btn { display: none; }
  .fb-input { font-size: 16px; }

  .composer { left: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .composer-box { padding: 6px 6px 6px 18px; min-height: 56px; }
  .composer-box .primary { height: 44px; padding: 0 18px; }
  .toast { top: calc(12px + env(safe-area-inset-top)); }
}

/* ---------- 首页底部：footer-light（热门场景链接 + 关于） ---------- */
.home-foot {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px 48px;
  margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line);
}
.home-foot h2 { font-size: 16px; font-weight: 500; line-height: 1.25; margin-bottom: 12px; }
.home-foot p { font-size: 14px; line-height: 1.43; color: var(--muted); }
.home-foot-links { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.home-foot-links a { font-size: 14px; line-height: 1.43; color: var(--text); text-decoration: none; }
.home-foot-links a:hover { text-decoration: underline; }
@media (max-width: 743px) {
  .home-foot { grid-template-columns: minmax(0, 1fr); margin-top: 48px; }
}
