/* ============================================================
   拾藏 · 设计原型 v0.14
   设计语言：松绿与纸白，克制的消费级中文应用。
   ============================================================ */

:root {
  /* 颜色 */
  --paper: #f6f6f2;
  --paper-2: #efefe9;
  --surface: #ffffff;
  --ink: #232b27;
  --ink-2: #55605a;
  --ink-3: #7c867f;
  --pine: #2f5c4d;
  --pine-deep: #22463a;
  --pine-soft: #e4ece7;
  --clay: #b2542e;
  --clay-soft: #f7e9e0;
  --line: #e3e6e0;
  --line-strong: #d3d7cf;
  --danger: #ae3d33;
  --danger-soft: #f8e9e7;
  --amber: #9a6b1f;
  --amber-soft: #f6efdd;

  /* 圆角 */
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;

  /* 阴影（克制： blur ≤ 8px） */
  --shadow-sheet: 0 -2px 8px rgba(35, 43, 39, .08);
  --shadow-pop: 0 2px 8px rgba(35, 43, 39, .10);

  /* 字体 */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--paper-2);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* 桌面居中移动壳 */
#device {
  position: relative;
  max-width: 430px;
  min-width: 320px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line);
}
@media (min-width: 700px) {
  body { padding: 24px 0; }
  #device {
    min-height: calc(100dvh - 48px);
    border-radius: 28px;
    overflow: clip;
    box-shadow: 0 0 0 1px var(--line), 0 8px 32px rgba(35,43,39,.10);
  }
}

#view { min-height: 100dvh; }
.page {
  min-height: 100dvh;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
  animation: page-in .22s ease-out;
}
.page.no-tab { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .page { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: calc(8px + env(safe-area-inset-top)) 16px 10px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid transparent;
}
.topbar.bordered { border-bottom-color: var(--line); }
.topbar .tb-title {
  font-size: 17px; font-weight: 600; flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar .tb-sub { display: block; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.tb-btn {
  appearance: none; border: 0; background: transparent; color: var(--pine);
  font-family: inherit; font-size: 15px; min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  border-radius: var(--r-s); cursor: pointer; padding: 0 6px;
}
.tb-btn:active { background: var(--pine-soft); }
.tb-btn.plain { color: var(--ink-2); }

/* ---------- 底部标签栏 ---------- */
#tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 30;
  display: flex;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
}
.tab {
  flex: 1; appearance: none; border: 0; background: none; cursor: pointer;
  font-family: inherit; color: var(--ink-3);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 11px; min-height: 50px; justify-content: center;
  border-radius: var(--r-s);
}
.tab.active { color: var(--pine); font-weight: 600; }
.tab:active { background: var(--paper); }

/* ---------- 通用排版 ---------- */
.content { padding: 16px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 22px 2px 10px;
}
.section-head h2 { font-size: 15px; font-weight: 600; margin: 0; }
.section-head .more {
  font-size: 13px; color: var(--ink-3); background: none; border: 0;
  font-family: inherit; cursor: pointer; min-height: 32px; padding: 0 4px;
}
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); font-size: 13px; }
.small { font-size: 13px; }

/* ---------- 统一图标尺寸规则 ----------
   根因修复：无尺寸 SVG 默认 300×150 会撑爆按钮/菜单行。
   规则：按钮内 18–20px、顶部/标签栏 20–24px、菜单行 20px、弹层动作 22px；全部 flex:none。
   图片区 / 陈列台 / 插画里的 SVG 不受此规则影响。 */
.btn svg { width: 19px; height: 19px; flex: none; }
.btn.sm svg { width: 17px; height: 17px; }
.tb-btn svg { width: 22px; height: 22px; flex: none; }
.tab svg { width: 24px; height: 24px; flex: none; }
.menu-row svg { width: 20px; height: 20px; flex: none; color: var(--pine); }
.sheet-action svg { width: 22px; height: 22px; flex: none; }
.fab svg { width: 26px; height: 26px; flex: none; }
.search svg { width: 18px; height: 18px; flex: none; }
.check-item .box svg { width: 14px; height: 14px; flex: none; }
.pick-check svg { width: 14px; height: 14px; flex: none; }
.proc-ico svg { width: 12px; height: 12px; flex: none; }
.empty svg { width: 44px; height: 44px; flex: none; opacity: .5; }
.item-stage .no-photo svg { width: 30px; height: 30px; flex: none; opacity: .5; }

/* ---------- 按钮 ---------- */
.btn {
  appearance: none; font-family: inherit; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 0 20px; border-radius: var(--r-m);
  font-size: 15px; font-weight: 500; border: 1px solid transparent;
  transition: transform .12s ease-out, background .12s ease-out;
}
.btn:active { transform: scale(.985); }
.btn.primary { background: var(--pine); color: #fff; }
.btn.primary:active { background: var(--pine-deep); }
.btn.ghost { background: var(--surface); color: var(--pine); border-color: var(--line-strong); }
.btn.soft { background: var(--pine-soft); color: var(--pine); }
.btn.clay { background: var(--clay-soft); color: var(--clay); }
.btn.danger { background: var(--danger-soft); color: var(--danger); }
.btn.text { background: none; color: var(--pine); min-height: 44px; padding: 0 10px; }
.btn.block { width: 100%; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: var(--r-s); }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* v0.14：FAB 固定在单品列表右下，位于主导航上方、有足够底部留白，不随列表滚走 */
.fab {
  position: fixed; right: max(16px, calc(50% - 215px + 16px)); bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 25;
  width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--pine); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 8px rgba(34, 70, 58, .28);
}
.fab:active { background: var(--pine-deep); }

/* ---------- 徽章与标签 ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; line-height: 1; padding: 5px 10px; border-radius: 999px;
  background: var(--paper-2); color: var(--ink-2); white-space: nowrap;
}
.pill.pine { background: var(--pine-soft); color: var(--pine); }
.pill.clay { background: var(--clay-soft); color: var(--clay); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.outline { background: none; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-2); }

/* ---------- 表单 ---------- */
.field { margin: 14px 0; }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.input, .textarea, select.input {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-m); padding: 12px 14px; min-height: 48px;
  outline: none; transition: border-color .15s;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.65; }
.input:focus, .textarea:focus { border-color: var(--pine); }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.hint { font-size: 12px; color: var(--ink-3); margin-top: 5px; }

/* ----------  chip 选择 ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  appearance: none; font-family: inherit; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink-2); border-radius: 999px; padding: 8px 14px;
  font-size: 14px; min-height: 38px; transition: all .12s;
}
.chip.on { background: var(--pine); border-color: var(--pine); color: #fff; }
.chip.on.clay { background: var(--clay); border-color: var(--clay); }

/* ---------- 列表行 ---------- */
.row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; background: var(--surface);
  border-radius: var(--r-m); margin-bottom: 10px;
  cursor: pointer; border: 1px solid var(--line);
  text-align: left; width: 100%; font-family: inherit; color: inherit; font-size: inherit;
}
.row:active { background: var(--paper); }
.row .grow { flex: 1; min-width: 0; }
.row .r-title { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .r-sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { color: var(--ink-3); flex-shrink: 0; }

/* ---------- 纪念册 ---------- */
.draft-banner {
  display: flex; align-items: center; gap: 12px;
  background: var(--amber-soft); border-radius: var(--r-m);
  padding: 12px 14px; margin-bottom: 14px; width: 100%;
  border: 0; font-family: inherit; font-size: 14px; color: var(--amber);
  cursor: pointer; text-align: left;
}
.memory-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-m); margin-bottom: 12px; overflow: hidden;
  cursor: pointer; width: 100%; padding: 0; font-family: inherit; color: inherit; text-align: left;
  display: block;
}
.memory-card:active { background: var(--paper); }
.memory-photos { display: grid; gap: 2px; background: var(--paper-2); }
.memory-photos.n1 { grid-template-columns: 1fr; }
.memory-photos.n2 { grid-template-columns: 1fr 1fr; }
.memory-photos.n3, .memory-photos.n4 { grid-template-columns: 1fr 1fr 1fr; }
.memory-photos img { width: 100%; height: 132px; object-fit: cover; display: block; }
.memory-photos.n1 img { height: 200px; }
.memory-photos.n4 img:first-child { grid-column: span 2; height: 132px; }
.memory-body { padding: 12px 14px; }
.memory-text { font-size: 15px; line-height: 1.65; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.memory-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.memory-meta time { font-size: 12px; color: var(--ink-3); }

/* 详情 */
.detail-hero { background: var(--surface); }
.detail-photos { display: grid; gap: 3px; }
.detail-photos img { width: 100%; object-fit: cover; display: block; }
.detail-body { padding: 16px; background: var(--surface); }
.detail-title { font-size: 20px; font-weight: 600; line-height: 1.4; margin: 0 0 8px; text-wrap: balance; }
.detail-text { font-size: 16px; line-height: 1.75; white-space: pre-wrap; }
.meta-block {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px;
  background: var(--surface); border-top: 1px solid var(--line);
}

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 48px 24px; color: var(--ink-3); }
.empty .e-title { font-size: 15px; color: var(--ink-2); font-weight: 500; margin: 10px 0 4px; }


/* ---------- 经历 ---------- */
/* 经历卡片：右侧照片 → 向左白色渐变遮罩，左侧文字可读。
   封面取用户选定 cover 或关联纪念第一张照片；纯文字经历保留纸感留白。 */
.exp-card {
  width: 100%; text-align: left; font-family: inherit; color: inherit; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  margin-bottom: 10px; display: block; position: relative; overflow: hidden;
  min-height: 108px;
}
.exp-card:active { background: var(--paper); }
.exp-card .e-flex { display: flex; align-items: stretch; min-height: 108px; }
.exp-card .e-main { flex: 1; min-width: 0; padding: 14px 12px 14px 14px; position: relative; z-index: 2; }
.exp-card .e-photo {
  width: 38%; max-width: 168px; flex-shrink: 0; position: relative; z-index: 1;
  background-size: cover; background-position: center;
}
/* 白色渐变遮罩：从照片右缘向左过渡到纯白，保证左侧文字可读 */
.exp-card .e-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, var(--surface) 0%, color-mix(in srgb, var(--surface) 88%, transparent) 32%, color-mix(in srgb, var(--surface) 30%, transparent) 62%, transparent 100%);
}
.exp-card .e-top { display: flex; align-items: center; gap: 8px; }
.exp-card .e-title { font-size: 16px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exp-card .e-sentence { font-size: 14px; color: var(--ink-2); margin-top: 4px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.exp-card .e-meta { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; }
/* 纯文字经历：纸感淡色纹理，不强迫上传照片 */
.exp-card .e-main.e-textonly::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(47, 92, 77, .05), transparent 55%),
    repeating-linear-gradient(0deg, rgba(35, 43, 39, .022) 0 1px, transparent 1px 5px);
}
.exp-cover { height: 120px; margin: -14px -14px 12px; background-size: cover; background-position: center; }
/* 详情页顶部轻量封面 */
.exp-hero {
  margin: 0 16px; border-radius: var(--r-m); overflow: hidden; position: relative;
  height: 148px; background-size: cover; background-position: center;
}
.exp-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(35, 43, 39, .38), transparent 55%);
}
.exp-hero .eh-label {
  position: absolute; left: 12px; bottom: 10px; z-index: 2;
  font-size: 12px; color: #fff; background: rgba(35, 43, 39, .45);
  padding: 3px 10px; border-radius: 999px;
}

.timeline-day {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 14px; margin-bottom: 10px;
}
.timeline-day .d-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.timeline-day .d-date { font-weight: 600; font-size: 14px; }
.timeline-day .d-body { font-size: 14px; color: var(--ink-2); line-height: 1.6; white-space: pre-wrap; }
.day-photos { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.day-photos img { height: 72px; width: 96px; object-fit: cover; border-radius: var(--r-s); flex-shrink: 0; }

/* 小石气泡 */
.xiaoshi-note {
  background: var(--pine-soft); border-radius: var(--r-m);
  padding: 12px 14px; font-size: 14px; color: var(--pine-deep); line-height: 1.65;
  position: relative;
}
.xiaoshi-note .xs-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; color: var(--pine);
  background: var(--surface); border-radius: 999px; padding: 3px 8px; margin-bottom: 6px;
}
.xiaoshi-note ul { margin: 6px 0 0; padding-left: 18px; }
.xiaoshi-note li { margin: 3px 0; }

/* ---------- 清单 ---------- */
.check-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 2px;
  border-bottom: 1px solid var(--line); cursor: pointer; font-size: 15px; min-height: 44px;
}
.check-item:last-child { border-bottom: 0; }
.check-item .box {
  width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0;
  border: 1.5px solid var(--line-strong); display: flex; align-items: center; justify-content: center;
}
.check-item.done .box { background: var(--pine); border-color: var(--pine); color: #fff; }
.check-item.done .txt { color: var(--ink-3); text-decoration: line-through; }


/* ---------- 衣帽间 ---------- */
/* v0.14：分类/颜色/季节全部可换行展示，不横向滚动、不隐藏选项 */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; padding: 2px 16px 6px; }
.filter-bar .chip { flex-shrink: 0; }
.search-wrap { padding: 4px 16px 6px; }
.search {
  display: flex; align-items: center; gap: 8px; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--r-m); padding: 0 12px; min-height: 44px;
}
.search input { border: 0; outline: none; flex: 1; font-family: inherit; font-size: 16px; background: none; color: var(--ink); }
.search svg { color: var(--ink-3); }

.subtabs { display: flex; gap: 20px; padding: 2px 16px 0; border-bottom: 1px solid var(--line); }
.subtab {
  appearance: none; border: 0; background: none; font-family: inherit; cursor: pointer;
  font-size: 15px; color: var(--ink-2); padding: 10px 2px; min-height: 44px;
  border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500;
}
.subtab.on { color: var(--pine); border-bottom-color: var(--pine); font-weight: 600; }

.item-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 16px; }
.item-tile {
  appearance: none; font-family: inherit; color: inherit; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  overflow: hidden; padding: 0; display: block; position: relative;
}
.item-tile:active { transform: scale(.985); }
.item-stage {
  height: 150px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.item-stage img { max-height: 84%; max-width: 78%; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(35,43,39,.16)); }
/* 透明贴纸：白色描边沿轮廓 */
img.cutout { filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff) drop-shadow(0 4px 8px rgba(35,43,39,.18)) !important; }
.item-stage .no-photo { color: var(--ink-3); font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.item-stage .no-photo svg { opacity: .5; }
/* 品类色系底图：细腻色块 + 柔和织物感 */
.bg-上装   { background: #edf0ea; }
.bg-下装   { background: #eceae6; }
.bg-连衣裙 { background: #f2ebe4; }
.bg-外套   { background: #e7ebe6; }
.bg-鞋履   { background: #eeebe3; }
.bg-包袋   { background: #efe9e4; }
.bg-配饰   { background: #efeef0; }
.item-stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(255,255,255,.55), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.14) 0 1px, transparent 1px 4px);
}
.item-info { padding: 10px 12px 12px; }
.item-name { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-sub { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; color: var(--ink-3); }
.color-dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); flex-shrink: 0; }

/* 单品详情陈列 */
.display-stage {
  margin: 14px 16px 0; border-radius: var(--r-l); height: 300px;
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.display-stage img { max-height: 84%; max-width: 82%; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(35,43,39,.20)); }
.display-stage.photo-mode img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; filter: none; }
.display-stage .src-tag {
  position: absolute; left: 12px; bottom: 10px; z-index: 2;
  font-size: 11px; color: var(--ink-2); background: rgba(255,255,255,.85);
  padding: 3px 8px; border-radius: 999px;
}
.story-block {
  margin: 14px 16px 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-m); padding: 14px;
}
.story-block h3 { margin: 0 0 6px; font-size: 14px; }
.story-block p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.7; white-space: pre-wrap; }

/* ---------- 穿搭 ---------- */
.outfit-tile {
  appearance: none; font-family: inherit; color: inherit; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  overflow: hidden; padding: 0; display: block; width: 100%; margin-bottom: 12px;
}
.look-stage {
  height: 220px; position: relative; overflow: hidden;
  background:
    radial-gradient(140% 100% at 50% -20%, rgba(255,255,255,.7), transparent 55%),
    linear-gradient(180deg, #eff0ea, #e7e8e1);
}
.look-stage img { position: absolute; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(35,43,39,.18)); }
.look-stage .missing {
  position: absolute; right: 10px; top: 10px;
}
.outfit-info { padding: 12px 14px; }
.outfit-name { font-size: 15px; font-weight: 600; }
.outfit-sub { font-size: 13px; color: var(--ink-3); margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.pick-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.pick-cell {
  appearance: none; font-family: inherit; cursor: pointer; padding: 0;
  border: 1.5px solid var(--line); border-radius: var(--r-m); background: var(--surface);
  height: 118px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--ink); overflow: hidden; position: relative;
}
.pick-cell.on { border-color: var(--pine); background: var(--pine-soft); }
.pick-cell .pc-stage { height: 78px; width: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.pick-cell .pc-stage img { max-height: 66px; max-width: 80%; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(35,43,39,.15)); }
.pick-cell .pc-name { font-size: 12px; padding: 0 6px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.slot-label { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 16px 2px 8px; display: flex; align-items: center; gap: 6px; }
.slot-label .req { color: var(--clay); font-weight: 400; font-size: 12px; }
.slot-label .ok { color: var(--pine); }

/* ---------- 上传流程 ---------- */
.stepper { display: flex; align-items: center; gap: 6px; padding: 10px 16px 2px; }
.step-dot { flex: 1; height: 3px; border-radius: 2px; background: var(--line-strong); }
.step-dot.on { background: var(--pine); }
.crop-wrap { position: relative; margin: 12px 16px; border-radius: var(--r-m); overflow: hidden; touch-action: none; }
.crop-wrap img { width: 100%; display: block; pointer-events: none; }
.crop-box {
  position: absolute; border: 2px solid #fff; border-radius: 4px;
  box-shadow: 0 0 0 9999px rgba(20,26,23,.55); cursor: grab;
}
.crop-box .handle {
  position: absolute; right: -8px; bottom: -8px; width: 24px; height: 24px;
  background: #fff; border-radius: 50%; box-shadow: var(--shadow-pop); cursor: nwse-resize;
}
.process-card { margin: 20px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 28px 20px; text-align: center; }
.proc-steps { text-align: left; margin: 18px auto 0; max-width: 240px; }
.proc-step { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; color: var(--ink-3); }
.proc-step.active { color: var(--ink); font-weight: 500; }
.proc-step.done { color: var(--pine); }
.spinner {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--line-strong); border-top-color: var(--pine);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.proc-step.done .spinner { display: none; }
.proc-ico { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; display: none; align-items: center; justify-content: center; background: var(--pine); color: #fff; }
.proc-step.done .proc-ico { display: flex; }


/* ---------- 分享与阅读视图 ---------- */
.toggle-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); margin-bottom: 10px;
}
.toggle-row .t-info { flex: 1; }
.toggle-row .t-title { font-size: 15px; font-weight: 500; }
.toggle-row .t-desc { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.switch {
  appearance: none; width: 46px; height: 28px; border-radius: 999px; flex-shrink: 0;
  background: var(--line-strong); position: relative; cursor: pointer; transition: background .15s; border: 0; margin: 0;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .15s;
}
.switch.on { background: var(--pine); }
.switch.on::after { left: 20px; }

.reader {
  max-width: 430px; margin: 0 auto; min-height: 100dvh; background: var(--paper);
  padding-bottom: 40px;
}
.reader-banner {
  background: var(--amber-soft); color: var(--amber); font-size: 12px;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px; text-align: center;
}
.reader-hero { background: var(--surface); }
.reader-hero img { width: 100%; display: block; object-fit: cover; max-height: 320px; }
.reader-body { padding: 20px 20px 8px; }
.reader-title { font-size: 21px; font-weight: 600; line-height: 1.45; margin: 0 0 10px; text-wrap: balance; }
.reader-text { font-size: 16px; line-height: 1.8; white-space: pre-wrap; color: var(--ink); }
.reader-date { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.reader-grid { display: grid; gap: 3px; margin-top: 14px; }
.reader-grid img { width: 100%; height: 130px; object-fit: cover; }
.reader-cta {
  margin: 26px 20px 8px; padding: 18px; border-radius: var(--r-l);
  background: var(--pine); color: #fff; text-align: center;
}
.reader-cta .cta-title { font-size: 16px; font-weight: 600; }
.reader-cta .cta-sub { font-size: 13px; opacity: .85; margin-top: 4px; }
.reader-cta .cta-btn {
  margin-top: 14px; background: #fff; color: var(--pine); border: 0;
  font-family: inherit; font-size: 15px; font-weight: 600; min-height: 46px;
  border-radius: 999px; padding: 0 28px; cursor: pointer;
}
.link-box {
  margin: 12px 16px; background: var(--surface); border: 1px dashed var(--line-strong);
  border-radius: var(--r-m); padding: 14px; display: flex; align-items: center; gap: 10px;
}
.link-box code { flex: 1; font-size: 13px; color: var(--ink-2); word-break: break-all; font-family: ui-monospace, monospace; }

/* ---------- 回收站 ---------- */
.bin-item { opacity: .85; }
.bin-item .r-title { color: var(--ink-2); }

/* ---------- 底部弹层 ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 60; background: rgba(23, 30, 27, .4);
  animation: fade-in .18s ease-out;
}
@keyframes fade-in { from { opacity: 0; } }
.sheet {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 61;
  width: 100%; max-width: 430px; max-height: 78dvh; overflow-y: auto;
  background: var(--surface); border-radius: var(--r-l) var(--r-l) 0 0;
  padding: 10px 16px calc(20px + env(safe-area-inset-bottom));
  animation: sheet-up .24s cubic-bezier(.22,.9,.3,1);
  box-shadow: var(--shadow-sheet);
}
@keyframes sheet-up { from { transform: translate(-50%, 24px); opacity: .6; } to { transform: translate(-50%, 0); opacity: 1; } }
.sheet-grip { width: 36px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 4px auto 12px; }
.sheet h3 { font-size: 16px; margin: 2px 0 12px; }
.sheet-action {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 13px 6px; border: 0; background: none; font-family: inherit; font-size: 16px;
  color: var(--ink); cursor: pointer; min-height: 48px; border-radius: var(--r-s);
}
.sheet-action:active { background: var(--paper); }
.sheet-action.danger { color: var(--danger); }
.sheet-action svg { color: var(--ink-3); }
.sheet-action.danger svg { color: var(--danger); }
.sheet-cancel {
  margin-top: 10px; width: 100%; min-height: 48px; border: 0; border-radius: var(--r-m);
  background: var(--paper-2); font-family: inherit; font-size: 16px; color: var(--ink-2); cursor: pointer;
}

/* ---------- 弹窗 ---------- */
.dialog-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(23,30,27,.4); display: flex; align-items: center; justify-content: center; padding: 32px; animation: fade-in .15s; }
.dialog {
  background: var(--surface); border-radius: var(--r-l); padding: 22px 20px 16px;
  width: 100%; max-width: 320px; animation: pop-in .18s ease-out;
}
@keyframes pop-in { from { transform: scale(.96); opacity: 0; } }
.dialog h3 { margin: 0 0 6px; font-size: 17px; }
.dialog p { margin: 0 0 16px; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.dialog .d-actions { display: flex; gap: 10px; }
.dialog .d-actions .btn { flex: 1; }

/* ---------- Toast ---------- */
#toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: 110px; z-index: 90; width: 100%; max-width: 430px; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 24px; }
.toast {
  background: rgba(35, 43, 39, .92); color: #fff; font-size: 14px;
  padding: 11px 18px; border-radius: 999px; max-width: 100%;
  animation: toast-in .2s ease-out; box-shadow: var(--shadow-pop);
}
.toast .t-action { color: #ffd9a8; margin-left: 10px; font-weight: 600; pointer-events: auto; cursor: pointer; background: none; border: 0; font-family: inherit; font-size: 14px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- 我的 ---------- */
.me-card {
  margin: 14px 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-l); padding: 20px 16px;
}
.me-name-row { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: var(--pine); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 600;
}
.me-stats { display: flex; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.me-stat { flex: 1; text-align: center; }
.me-stat b { font-size: 19px; font-weight: 600; display: block; }
.me-stat span { font-size: 12px; color: var(--ink-3); }

.menu-group { margin: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.menu-row {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 0 14px;
  min-height: 52px; border: 0; background: none; font-family: inherit; font-size: 15px;
  color: var(--ink); cursor: pointer; text-align: left; border-bottom: 1px solid var(--line);
}
.menu-row:last-child { border-bottom: 0; }
.menu-row:active { background: var(--paper); }
.menu-row .grow { flex: 1; }
.menu-row .val { font-size: 13px; color: var(--ink-3); }

/* 预览排版（数字册） */
.booklet-page {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 26px 22px; margin-bottom: 14px; position: relative;
}
.booklet-page .bp-num { font-size: 11px; color: var(--ink-3); margin-bottom: 12px; }
.booklet-page h4 { margin: 0 0 10px; font-size: 18px; }
.booklet-page p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--ink-2); white-space: pre-wrap; }
.booklet-page img { width: 100%; border-radius: var(--r-s); margin-top: 10px; display: block; object-fit: cover; max-height: 220px; }
.booklet-cover {
  background: var(--pine); color: #fff; text-align: center; padding: 56px 22px;
  border-radius: var(--r-m); margin-bottom: 14px;
}
.booklet-cover .bc-title { font-size: 26px; font-weight: 600; letter-spacing: .1em; }
.booklet-cover .bc-sub { margin-top: 10px; font-size: 13px; opacity: .8; }

/* 数字册选择列表 */
.pick-row { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); margin-bottom: 10px; cursor: pointer; }
.pick-check {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid var(--line-strong); display: flex; align-items: center; justify-content: center; color: transparent;
}
.pick-row.on .pick-check { background: var(--pine); border-color: var(--pine); color: #fff; }

.pick-row img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--r-s); flex-shrink: 0; }

/* 底部固定操作区 */
.sticky-cta {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 22;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: flex; gap: 10px;
}
.sticky-cta .btn { flex: 1; }

.hr { height: 1px; background: var(--line); margin: 18px 0; border: 0; }
.note-card { background: var(--paper-2); border-radius: var(--r-m); padding: 12px 14px; font-size: 13px; color: var(--ink-2); line-height: 1.65; margin: 12px 16px; }

/* 窄屏分类标签保持水平文字，独立横向滑动。 */
.chip { flex-shrink: 0; white-space: nowrap; }
/* 详情和只读分享页遵守 hidden，不暴露 App 主导航。 */
[hidden] { display: none !important; }
img.cutout { filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(0 5px 8px rgba(35,43,39,.18)) !important; }

/* 所有UI图标有明确基础尺寸，具体导航与插画沿用自身尺度。 */
svg { width:20px; height:20px; flex-shrink:0; }
.photo-tool { position:absolute; top:-10px; width:44px; height:44px; padding:0; border:0; background:transparent; display:flex; align-items:center; justify-content:center; cursor:pointer; color:#fff; z-index:2; }
.photo-tool::before { content:""; position:absolute; width:25px; height:25px; border-radius:50%; background:var(--ink); }
.photo-tool > * { position:relative; z-index:1; }
.photo-tool span { font-size:11px; }
.photo-tool svg { width:15px; height:15px; }
.cover-tool { left:-10px; }
.cover-tool::before { background:var(--pine); }
.remove-tool { right:-10px; }


/* ============================================================
   v0.14 新增组件
   ============================================================ */

/* 纪念册首页：册子封面卡 */
.album-card {
  appearance: none; font-family: inherit; color: inherit; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  overflow: hidden; padding: 0; display: block; width: 100%; margin-bottom: 12px;
}
.album-card:active { background: var(--paper); }
.album-cover {
  height: 132px; position: relative; overflow: hidden;
  background:
    radial-gradient(130% 100% at 20% 0%, rgba(255,255,255,.5), transparent 55%),
    linear-gradient(160deg, #e9efe9, #dfe7e0);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.album-cover .ac-photos { display: flex; gap: 4px; padding: 0 18px; width: 100%; }
.album-cover .ac-photos img { width: 33.3%; height: 84px; object-fit: cover; border-radius: 6px; flex: 1; min-width: 0; }
.album-cover .ac-empty { color: var(--ink-3); opacity: .6; }
.album-info { padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.album-info .ai-main { flex: 1; min-width: 0; }
.album-info .ai-title { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.album-info .ai-sub { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.album-kind { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--pine-soft); color: var(--pine); flex-shrink: 0; }
.album-kind.exp { background: var(--amber-soft); color: var(--amber); }

/* 次级入口行（一份份纪念 / 回收站等轻入口） */
.sub-entry {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 12px 14px; margin-bottom: 12px; border: 1px dashed var(--line-strong);
  border-radius: var(--r-m); background: none; font-family: inherit; font-size: 14px;
  color: var(--ink-2); cursor: pointer; text-align: left; min-height: 48px;
}
.sub-entry svg { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
.sub-entry .grow { flex: 1; min-width: 0; }
.sub-entry:active { background: var(--paper); }

/* 写作页：自由写作纸页（照片/文字为主，补充信息可展开） */
.composer-hero { padding: 4px 16px 0; }
.composer-photos { display: flex; gap: 8px; flex-wrap: wrap; }
.composer-photos .ph { position: relative; width: 96px; height: 96px; }
.composer-photos .ph img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; display: block; }
.composer-add {
  width: 96px; height: 96px; border: 1.5px dashed var(--line-strong); border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  color: var(--ink-3); font-size: 12px; cursor: pointer; background: var(--surface);
}
.composer-add svg { width: 20px; height: 20px; }
.composer-text {
  width: 100%; border: 0; outline: none; resize: vertical; font-family: inherit;
  font-size: 17px; line-height: 1.75; color: var(--ink); background: transparent;
  min-height: 140px; padding: 12px 2px;
}
.composer-text::placeholder { color: var(--ink-3); }
.supplement {
  margin: 6px 16px 0; border: 1px solid var(--line); border-radius: var(--r-m);
  background: var(--surface); overflow: hidden;
}
.supplement > button.sup-head {
  width: 100%; display: flex; align-items: center; gap: 8px; padding: 13px 14px;
  border: 0; background: none; font-family: inherit; font-size: 14px; font-weight: 500;
  color: var(--ink-2); cursor: pointer; min-height: 48px; text-align: left;
}
.supplement > button.sup-head svg { width: 17px; height: 17px; color: var(--ink-3); transition: transform .16s ease-out; }
.supplement.open > button.sup-head svg.chev { transform: rotate(90deg); }
.supplement .sup-body { padding: 0 14px 14px; display: none; }
.supplement.open .sup-body { display: block; }

/* 计划详情：邀请卡 */
.plan-invite {
  margin: 14px 16px 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-l); padding: 20px 18px; position: relative; overflow: hidden;
}
.plan-invite::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 90% 0%, rgba(154,107,31,.06), transparent 55%);
}
.plan-invite .pi-eyebrow { font-size: 12px; color: var(--amber); font-weight: 600; margin-bottom: 6px; }
.plan-invite h1 { font-size: 21px; font-weight: 600; margin: 0 0 8px; line-height: 1.4; text-wrap: balance; }
.plan-invite .pi-sentence { font-size: 15px; color: var(--ink-2); line-height: 1.7; white-space: pre-wrap; }
.plan-invite .pi-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; color: var(--ink-3); }

/* 经历详情：生活册照片区 */
.life-photos { display: grid; gap: 3px; }
.life-photos img { width: 100%; object-fit: cover; display: block; }
.life-photos.n1 { grid-template-columns: 1fr; }
.life-photos.n1 img { max-height: 320px; }
.life-photos.n2 { grid-template-columns: 1fr 1fr; }
.life-photos.n2 img { height: 160px; }
.life-photos.n3 { grid-template-columns: 1fr 1fr 1fr; }
.life-photos.n3 img { height: 108px; }

/* 轻折叠块（旅行行程等渐进披露） */
.fold-block { margin: 0 16px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); overflow: hidden; }
.fold-block + .fold-block { margin-top: 10px; }
.fold-block > button.fold-head {
  width: 100%; display: flex; align-items: center; gap: 8px; padding: 13px 14px;
  border: 0; background: none; font-family: inherit; font-size: 15px; font-weight: 600;
  color: var(--ink); cursor: pointer; min-height: 48px; text-align: left;
}
.fold-block > button.fold-head .fold-extra { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--ink-3); display: inline-flex; align-items: center; gap: 3px; }
.fold-block > button.fold-head svg.chev { width: 17px; height: 17px; color: var(--ink-3); transition: transform .16s ease-out; }
.fold-block.open > button.fold-head svg.chev { transform: rotate(90deg); }
.fold-block .fold-body { display: none; padding: 0 14px 14px; }
.fold-block.open .fold-body { display: block; }

/* 经历首页分组标题 */
.group-head { display: flex; align-items: baseline; gap: 8px; margin: 20px 2px 10px; }
.group-head h2 { font-size: 15px; font-weight: 600; margin: 0; }
.group-head .gh-sub { font-size: 12px; color: var(--ink-3); }

/* Photo-first writing: the first selected photograph anchors the page. */
.composer-photos:has(.ph) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
.composer-photos:has(.ph) .ph:first-child { grid-column:1/-1; width:100%; height:220px; }
.composer-photos:has(.ph) .ph:first-child img { width:100%; height:100%; object-fit:cover; }
.composer-photos .ph .tb-btn { width:40px!important; height:40px!important; min-width:40px!important; min-height:40px!important; top:0!important; right:0!important; border-radius:0 8px 0 12px!important; }
.composer-photos:has(.ph) .composer-add { min-height:44px; height:44px; width:100%; flex-direction:row; }
.composer-text { min-height:110px; resize:none; }

/* Fit even when a desktop mobile preview reserves a scrollbar gutter. */
#device { min-width:0; width:100%; }
.page { animation:none; }

/* v0.15: leave the collection in view; controls are secondary. */
.closet-search-line{display:flex;align-items:center;gap:8px;padding:8px 16px 6px}
.closet-search-line .search{flex:1;min-width:0}
.category-switch{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:0 16px 12px;gap:0 4px}
.category-switch button{background:none;border:0;border-bottom:2px solid transparent;min-height:44px;font:inherit;color:var(--ink-2);padding:8px 2px;cursor:pointer}
.category-switch button.selected{border-color:var(--pine);color:var(--pine);font-weight:600}
.filter-active{color:var(--pine);background:var(--pine-soft);border-radius:8px}
.filter-summary{display:block;margin:0 16px 12px;padding:4px 0;min-height:32px;background:none;border:0;color:var(--pine);font:inherit;font-size:13px;text-align:left;cursor:pointer}
.older-banner{display:flex;align-items:center;justify-content:space-between;margin:4px 16px;color:var(--ink-2)}
.season-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0 20px}
.filter-actions,.preparation-options{display:flex;gap:8px}
.filter-actions .btn,.preparation-options .btn{flex:1;min-width:0}
.load-more{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;width:100%;border:0;background:none;font:inherit;color:var(--pine);cursor:pointer;margin:8px 0 20px}
.load-more svg,.album-kind svg{width:17px;height:17px}
.prepared-section{padding:12px 0;border-bottom:1px solid var(--line)}
.prepared-section:last-child{border-bottom:0}
.prepared-section .section-head{margin:0 0 10px}
.plan-prose{white-space:pre-wrap;line-height:1.85;color:var(--ink);padding:0 2px 8px}
.prepared-section button.check-item{width:100%;border:0;background:none;font:inherit;text-align:left;color:var(--ink);cursor:pointer}
.prepared-look{display:block;width:100%;border:0;background:none;padding:0;text-align:left;font:inherit;color:var(--ink);cursor:pointer}
.prepared-look>span{display:block;margin:8px 0;font-size:14px}
@media(max-width:350px){.preparation-options{flex-direction:column}}

/* v16: photo takes 55% of the card, with a long fade toward the text. */
.exp-card .e-flex{position:relative;min-height:138px;}
.exp-card .e-main{flex:none;width:68%;}
.exp-card .e-main.e-textonly{width:100%;}
.exp-card .e-photo{position:absolute;inset:0 0 0 auto;width:55%;max-width:none;background-position:65% center;}
.exp-card .e-photo::after{background:linear-gradient(to right,var(--surface) 0%,color-mix(in srgb,var(--surface) 95%,transparent) 20%,color-mix(in srgb,var(--surface) 76%,transparent) 43%,color-mix(in srgb,var(--surface) 24%,transparent) 67%,transparent 85%);}
.privacy-copy{max-width:65ch;line-height:1.85;color:var(--ink-2);}
.privacy-copy h2{font-size:16px;color:var(--ink);margin-top:28px;}
.batch-progress{display:flex;align-items:center;justify-content:space-between;padding:8px 20px;font-size:13px;color:var(--ink-2);}

.plan-inspiration{width:100%;display:flex;align-items:center;gap:12px;padding:16px;border:1px solid var(--line);border-radius:var(--r-m);background:var(--sage-pale,var(--paper));color:var(--pine);text-align:left;margin:4px 0 18px;font:inherit;cursor:pointer;}
.plan-inspiration span{flex:1;}.plan-inspiration b{display:block;font-size:15px;}.plan-inspiration small{display:block;color:var(--ink-2);font-size:12px;line-height:1.6;margin-top:4px;}
.plan-design{padding:20px 0;margin-top:10px;border-top:1px solid var(--line);}.plan-design-top span{font-size:12px;color:var(--pine);}.plan-design h2{font-size:20px;margin:10px 0 4px;}.plan-design p{font-size:14px;color:var(--ink-2);line-height:1.8;}.plan-design h3{font-size:15px;margin:24px 0 8px;}.plan-day{display:grid;grid-template-columns:86px 1fr;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px;line-height:1.7;}.plan-day b{font-size:12px;color:var(--pine);}.plan-reminder{padding-left:12px;border-left:2px solid var(--line);}.plan-design-actions{margin-bottom:24px;}

.capture-paper{padding:12px 0 18px;}.capture-prompt{font-size:20px;font-weight:600;margin:4px 0 20px;letter-spacing:-.02em;}.capture-paper .composer-text{padding:0;border:0;background:transparent;min-height:116px;margin:0;line-height:1.9;font-size:16px;}.capture-photos{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px;}.capture-photos .ph{width:88px;height:88px;position:relative;}.capture-photos .ph img{width:100%;height:100%;object-fit:cover;border-radius:10px;}.capture-details{margin:12px 0 22px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:0 2px;}.capture-details summary{cursor:pointer;padding:16px 0;font-size:14px;color:var(--ink);}.capture-details summary span{float:right;font-size:12px;color:var(--ink-2);}.capture-details[open]{padding-bottom:14px;}.capture-assist{display:flex;align-items:center;gap:8px;border:0;background:transparent;color:var(--pine);font:inherit;font-size:14px;padding:14px 0;cursor:pointer;margin:0 16px 12px;}.content>.capture-assist{margin-left:0;}.assist-title{font-size:22px;line-height:1.6;margin:22px 0 28px;}

/* 使用反馈：轻量确认、可搜索挑选、以照片为底的纪念。 */
.exp-card .e-flex{border-radius:inherit;overflow:hidden;}
.exp-card .e-photo{inset:-1px -1px -1px auto;border-radius:0;}
.memory-card.image-memory{position:relative;border:0;background:var(--paper-2);}
.memory-cover{position:relative;min-height:180px;}
.memory-cover img{display:block;width:100%;height:auto;max-height:390px;object-fit:contain;object-position:center top;}
.image-memory .memory-body{position:relative;margin-top:-72px;padding:76px 16px 16px;background:linear-gradient(to bottom,transparent 0%,rgba(255,255,255,.92) 68px,var(--surface) 100%);}
.memory-title{font-size:16px;font-weight:600;margin-bottom:5px;}
.photo-count{position:absolute;top:12px;right:12px;background:rgba(35,43,39,.78);color:white;border-radius:100px;padding:5px 9px;font-size:12px;}
.memory-date{display:flex;gap:10px;align-items:center;margin:18px 20px;color:var(--ink-2);font-size:14px;}
.memory-date svg{width:18px;height:18px;}
.memory-date input{font:inherit;color:var(--ink);border:0;background:transparent;min-height:44px;max-width:190px;}
.association-invite,.outfit-slot{display:flex;align-items:center;gap:12px;min-height:64px;width:100%;padding:12px 0;border:0;border-bottom:1px solid var(--line);background:none;color:var(--ink);font:inherit;text-align:left;cursor:pointer;}
.association-invite svg,.outfit-slot svg{width:18px;height:18px;flex-shrink:0;}
.association-invite span{flex:1;}
.association-list{max-height:55dvh;overflow:auto;}
.association-list .exp-card{padding:16px;text-align:left;width:100%;}
.association-title{display:block;font-weight:600;}
.slot-picked{flex:1;text-align:right;font-size:13px;color:var(--pine);min-width:0;overflow-wrap:anywhere;}
.slot-picked small{display:block;color:var(--ink-2);font-size:12px;margin-top:4px;}
.picker-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-height:50dvh;overflow-y:auto;padding:14px 0 20px;}
.picker-grid .pc-stage{height:96px;}
.garment-name{display:block;width:100%;border:0;border-bottom:1px solid var(--line);background:transparent;font-family:inherit;font-size:21px;font-weight:600;line-height:1.5;color:var(--ink);padding:12px 0;min-height:52px;}
.garment-facts{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:14px;color:var(--ink-2);margin:12px 0 20px;}
.capture-details{margin-bottom:20px;}
.capture-details summary{min-height:44px;cursor:pointer;}
button:focus-visible,input:focus-visible{outline:2px solid var(--pine);outline-offset:3px;}
@media(prefers-reduced-motion:reduce){.memory-card,.pick-cell{transition:none;}}

.detail-photos img{object-fit:contain;background:var(--paper-2);}
.exp-card{padding:0;}
/* 固定封面：横图取景，竖图保全人物，背景补齐固定区域。 */
.memory-cover{height:224px;min-height:0;overflow:hidden;isolation:isolate;background:var(--paper-2);}
.memory-cover::before{content:"";position:absolute;inset:-18px;background-image:var(--cover);background-position:center;background-size:cover;filter:blur(15px);opacity:.28;z-index:-1;}
.memory-cover img{width:100%;height:100%;max-height:none;object-fit:cover;object-position:center;}
.memory-cover.portrait img{object-fit:contain;}
.image-memory .memory-body{margin-top:-38px;padding:46px 16px 14px;background:linear-gradient(to bottom,transparent,var(--surface) 42px);}
.image-memory .memory-text{-webkit-line-clamp:2;}
.creation-sheet{max-height:55dvh;}
/* 行内左右图标各留 12px 以上内边距，不贴屏幕边（与 plans.css 一致） */
.creation-sheet .row{padding:16px 12px;}
.start-action{align-self:center;min-height:40px;padding:8px 18px;flex:none;font-size:14px;}
.assistant-spinner{display:inline-block;width:19px;height:19px;border:2px solid var(--pine-soft);border-top-color:var(--pine);border-radius:50%;animation:assistant-spin .8s linear infinite;flex-shrink:0;}
@keyframes assistant-spin{to{transform:rotate(360deg);}}
.plan-dismiss{display:block;margin:12px auto 0;background:none;border:0;padding:9px;color:var(--ink-2);font:inherit;font-size:13px;cursor:pointer;text-decoration:underline;text-underline-offset:3px;}
.plan-design-actions{display:flex;gap:10px;flex-wrap:wrap;}
.plan-design-actions>.btn{flex:1;}
.plan-design-actions>.plan-dismiss{flex-basis:100%;}
.plan-inspiration[hidden],#ep-save-area[hidden]{display:none;}
.draft-prose{min-height:45dvh;resize:vertical;line-height:1.8;margin-bottom:16px;}
@media(prefers-reduced-motion:reduce){.assistant-spinner{animation:none;border-color:var(--pine);}}
.plan-inspiration>.assistant-spinner{flex:0 0 20px;width:20px;height:20px;}

/* 纪念册：照片铺满整张封面，浅色渐变承接文字。 */
.album-card{border:0;background:var(--paper-2);margin-bottom:18px;border-radius:16px}
.album-art{position:relative;height:280px;overflow:hidden;border-radius:16px;background:#e4ece7;margin-bottom:18px;isolation:isolate}.album-card .album-art{margin:0}
.album-art-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.album-art-wash{position:absolute;inset:0;background:linear-gradient(to bottom,rgba(246,246,242,0) 30%,rgba(246,246,242,.12) 50%,rgba(246,246,242,.72) 73%,rgba(246,246,242,.98) 100%)}
.album-art-caption{position:absolute;left:22px;right:22px;bottom:20px;color:#232b27}.album-art-caption h2{font-size:22px;line-height:1.4;font-weight:600;margin:0 0 8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.album-art-caption>span{font-size:12px;color:#46554b}
.album-cover-edit{position:absolute;right:14px;top:14px;display:flex;align-items:center;gap:6px;background:rgba(255,255,255,.95);color:#2f5c4d;border:0;padding:9px 12px;border-radius:100px;font:inherit;font-size:12px;cursor:pointer;min-height:40px}.album-cover-edit svg{width:16px;height:16px}
.album-art-empty{position:absolute;top:60px;left:22px;color:#6a8274}.album-art-empty svg{width:42px;height:42px}.no-cover .album-art-wash{background:linear-gradient(to bottom,transparent 30%,#f6f6f2 100%)}
.album-cover-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}.album-cover-choice{position:relative;padding:0;border:2px solid transparent;border-radius:8px;background:var(--paper-2);overflow:hidden;aspect-ratio:1;cursor:pointer}.album-cover-choice.on{border-color:var(--pine)}.album-cover-choice img{display:block;width:100%;height:100%;object-fit:contain}.album-cover-choice>span{position:absolute;bottom:4px;right:4px;background:var(--pine);color:white;border-radius:50%;width:23px;height:23px;display:grid;place-items:center}.album-cover-choice svg{width:16px;height:16px}
.album-cover-choice:focus-visible,.album-cover-edit:focus-visible{outline:2px solid var(--pine);outline-offset:3px}
@media(max-width:350px){.album-art{height:250px}.album-art-caption{left:18px;right:18px}.album-art-caption h2{font-size:20px}}

/* 个人页：以头像和自己的话呈现身份，统计与设置保持安静。 */
.me-card:has(.me-avatar){border:0;padding:26px 20px 20px;background:#e9efe9;margin-top:10px;margin-bottom:22px}
.me-name-row:has(.me-avatar){gap:20px;align-items:center;padding-bottom:4px}
.me-avatar{position:relative;display:grid;place-items:center;width:80px;height:80px;flex:0 0 80px;border:0;border-radius:50%;background:#cdded1;color:#2f5c4d;cursor:pointer;font-family:inherit;font-size:30px;font-weight:500;line-height:1;padding:0}
.me-avatar>span{font-size:30px;font-weight:500}.me-avatar>img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}.me-avatar>i{position:absolute;right:-2px;bottom:0;width:25px;height:25px;background:white;border-radius:50%;display:grid;place-items:center;color:#2f5c4d}.me-avatar>i svg{width:13px;height:13px}
.me-identity{min-width:0;flex:1}.me-identity h1{font-size:24px;line-height:1.3;margin:0 0 8px;font-weight:600;overflow-wrap:anywhere}.me-identity p{margin:0;font-size:14px;line-height:1.7;color:#46554b;white-space:pre-wrap;overflow-wrap:anywhere}.me-profile-link{display:flex;align-items:center;gap:7px;padding:8px 0 0;border:0;background:none;color:#2f5c4d;font:inherit;font-size:12px;cursor:pointer;min-height:34px}.me-profile-link svg{width:13px;height:13px}
.me-card:has(.me-avatar) .me-stats{border-top:1px solid #d0dbd1;margin-top:24px;padding-top:20px}.me-card:has(.me-avatar) .me-stat b{font-size:22px;font-weight:500}.me-card:has(.me-avatar) .me-stat span{color:#46554b;font-size:12px;margin-top:5px;display:block}
.profile-photo-row{display:flex;align-items:center;gap:18px;margin:20px 0 24px}.profile-photo-pick{position:relative;display:grid;place-items:center;width:76px;height:76px;background:#e4ece7;color:#2f5c4d;flex:0 0 76px;border-radius:50%;cursor:pointer;font-size:28px}.profile-photo-pick img{width:100%;height:100%;border-radius:50%;object-fit:cover}.profile-photo-pick input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.profile-photo-caption{position:absolute;bottom:-12px;left:50%;transform:translateX(-50%);white-space:nowrap;background:white;border-radius:100px;padding:3px 9px;font-size:11px;color:#2f5c4d}.profile-field{display:block;color:#46554b;font-size:12px;margin-bottom:16px}.profile-field input{margin-top:7px}.me-avatar:focus-visible,.me-profile-link:focus-visible,.profile-photo-pick:focus-within{outline:2px solid #2f5c4d;outline-offset:4px}
