/* =========================================================
   LoveUp App Mock · 手机壳内 UI（新设计「时刻表 · 票根」）
   ========================================================= */

.phone {
  width: min(390px, calc(100vw - 24px));
  margin: 0 auto;
  border-radius: 46px;
  padding: 10px;
  background: var(--ink);
  box-shadow: 0 24px 48px -24px rgba(34, 48, 63, 0.45), 0 2px 0 rgba(255,255,255,0.6) inset;
  position: relative;
}
.phone .core {
  border-radius: 37px;
  overflow: hidden;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  height: 812px;
  position: relative;
}

/* ---------- 状态栏 ---------- */
.p-status {
  flex: none;
  height: 44px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px;
  font-size: 12.5px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: var(--paper);
  z-index: 5;
}
.p-status .r { display: flex; gap: 5px; align-items: center; }
.p-status svg { display: block; }

/* ---------- 屏容器 ---------- */
.p-body { flex: 1; position: relative; overflow: hidden; }
.p-screen {
  position: absolute; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  padding: 6px 18px 96px;
  scrollbar-width: none;
  opacity: 0; transform: translateX(14px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.p-screen.active { opacity: 1; transform: none; pointer-events: auto; }
.p-screen::-webkit-scrollbar { display: none; }
.p-screen.nopad { padding-top: 0; }

/* ---------- 底部 Tab ---------- */
.p-tabs {
  position: absolute; left: 0; right: 0; bottom: 0;
  flex: none;
  height: 72px;
  background: var(--card-trans, rgba(255,255,255,0.92));
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  display: flex;
  z-index: 6;
}
.p-tabs button {
  flex: 1; border: none; background: none;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding-top: 10px;
  color: var(--ink-2);
  font-size: 10.5px;
  font-family: var(--sans);
  cursor: pointer;
}
.p-tabs button svg { width: 21px; height: 21px; }
.p-tabs button.on { color: var(--signal-deep, var(--ink)); font-weight: 700; }
.p-tabs button.on svg { stroke-width: 2.1; }
.p-tabs button { position: relative; }

/* ---------- 顶部屏头 ---------- */
.p-head { display: flex; align-items: center; gap: 10px; margin: 14px 0 14px; min-height: 40px; }
.p-head .back {
  border: none; background: none; cursor: pointer;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  flex: none;
}
.p-head .back:hover { background: var(--paper-2); }
.p-head h2 {
  font-family: var(--serif); font-size: 21px; font-weight: 700;
  letter-spacing: 0.02em;
}
.p-head .act { margin-left: auto; font-size: 12.5px; color: var(--stamp); font-weight: 600; }
.p-title-only {
  font-family: var(--serif); font-size: 27px; font-weight: 700;
  margin: 18px 0 6px; letter-spacing: 0.02em;
}
.p-cap { color: var(--ink-2); font-size: 12.5px; margin-bottom: 16px; }

/* ---------- 票根卡：app 内的核心记录形态 ---------- */
.p-ticket {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
}
.p-ticket .tid {   /* 档案编号行 */
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 14px 7px;
  font-size: 10.5px; color: var(--ink-2);
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.p-ticket .tid .st {
  letter-spacing: 0; font-weight: 600;
  color: var(--mint);
}
.p-ticket .tid .st.warn { color: var(--alarm); }
.p-ticket .tid .st.stamp { color: var(--stamp); }
.p-ticket .tbody { padding: 13px 14px; }
.p-ticket .rtitle {
  font-family: var(--serif); font-size: 16.5px; font-weight: 700;
  margin: 2px 0 4px;
  display: flex; align-items: baseline; gap: 8px;
}
.p-ticket .rtag {
  flex: none; font-family: var(--sans); font-size: 10px; font-weight: 600;
  color: var(--stamp); border: 1px solid currentColor;
  padding: 1px 7px; border-radius: 999px; letter-spacing: 0.1em;
}
.p-ticket .rtag.gold { color: var(--signal-deep); border-style: dashed; }
.p-ticket .desc { font-size: 13px; color: var(--ink-2); }
.p-ticket .meta-row {
  display: flex; gap: 18px; margin-top: 10px;
  font-size: 11.5px; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.p-ticket .meta-row b { color: var(--ink); font-weight: 600; font-size: 12.5px; display: block; }

/* 撕边打孔（票根底部可撕离） */
.p-ticket .stub {
  border-top: 1.5px dashed var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 14px;
  background: var(--paper-2);
  font-size: 10.5px; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.p-ticket .stub .seal {
  color: var(--stamp); font-weight: 600; letter-spacing: 0.2em;
}

/* ---------- 按钮 / 输入 ---------- */
.p-btn {
  width: 100%; border: none; cursor: pointer;
  background: var(--signal); color: var(--ink);
  font-family: var(--sans); font-size: 15px; font-weight: 700;
  padding: 14px; border-radius: 10px;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 0 rgba(34,48,63,0.22);
}
.p-btn:active { transform: translateY(1px); box-shadow: none; }
.p-btn.quiet { background: var(--card); border: 1.5px solid var(--ink); box-shadow: none; font-weight: 600; }
.p-btn.space { margin-top: 18px; }

.p-input { margin-bottom: 14px; }
.p-input label { display: block; font-size: 12px; color: var(--ink-2); margin: 0 2px 6px; }
.p-input input, .p-input textarea {
  width: 100%; border: 1.5px solid var(--line);
  background: var(--card); border-radius: 10px;
  padding: 12px 13px; font-size: 14.5px; font-family: var(--sans);
  color: var(--ink);
}
.p-input textarea { min-height: 120px; resize: vertical; line-height: 1.8; }
.p-input input:focus, .p-input textarea:focus { outline: none; border-color: var(--ink); }

/* 分段控件 */
.p-seg {
  display: flex; background: var(--paper-2); border-radius: 999px;
  padding: 3px; margin-bottom: 16px;
}
.p-seg button {
  flex: 1; border: none; background: none; cursor: pointer;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  padding: 8px 0; border-radius: 999px;
  font-family: var(--sans);
}
.p-seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(34,48,63,0.12); }

/* ---------- 主页 ---------- */
.home-hero { 
  /* 主题协同：hero 底色可在深色主题下复用面板 */
  margin: 12px 0 16px;
  padding: 18px 16px 15px;
  border-radius: 14px;
  background: var(--hero-bg, var(--ink)); color: var(--hero-fg, #EDEFE9);
  position: relative;
  overflow: hidden;
}
.home-hero .hc { color: var(--hero-sub, #C7CDD4); font-size: 12px; letter-spacing: 0.06em; }
.home-hero .days {
  font-family: var(--serif); font-size: 40px; font-weight: 700;
  font-variant-numeric: tabular-nums; line-height: 1.2;
  margin-top: 2px;
}
.home-hero .days small { font-size: 15px; font-weight: 400; color: var(--hero-sub, #C7CDD4); margin-left: 6px; }
.home-hero .pair {
  margin-top: 10px; display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--hero-sub, #C7CDD4);
}
.home-hero .pair .nm { color: var(--hero-fg, #EDEFE9); font-weight: 600; }
.home-hero .lmp {
  position: absolute; right: -18px; top: -18px;
  width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(245,179,30,0.5), rgba(245,179,30,0) 70%);
}
.home-hero .lmp::after {
  content: ""; position: absolute; inset: 38px;
  border-radius: 50%; background: var(--signal);
  opacity: 0.85;
}

.entry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }

/* 主页功能入口 · 横滑版本（对齐 prototype 的圆角方形图标 + 下方文案） */
.entry-row {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  padding: 2px 0 4px; margin: 0 -2px;
}
.entry-row::-webkit-scrollbar { display: none; }
.entry-row .entry {
  flex: none; width: 74px; border: none; background: none;
  padding: 6px 0 2px; cursor: pointer; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.entry-row .entry .tile {
  width: 52px; height: 52px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease;
}
.entry-row .entry:active .tile { transform: scale(0.92); }
.entry-row .entry .tile svg { width: 23px; height: 23px; }
.entry-row .entry .nm { font-size: 11px; font-weight: 600; color: var(--ink); letter-spacing: 0.02em; }
.entry-row .entry.more .tile {
  background: none; border: 1.5px dashed var(--line); color: var(--ink-2);
}

/* 开关（小） */
.sw-mini {
  width: 36px; height: 21px; border-radius: 999px; background: #CBD1CC;
  position: relative; transition: background 0.18s ease; flex: none; display: inline-block;
}
.sw-mini::after {
  content: ""; position: absolute; top: 2.5px; left: 2.5px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(34, 48, 63, 0.25);
  transition: left 0.18s ease;
}
.sw-mini.on { background: var(--mint); }
.sw-mini.on::after { left: 17.5px; }

.e-row {
  width: 100%; display: flex; align-items: center; gap: 12px;
  border: none; background: none; cursor: pointer;
  padding: 11px 2px; border-bottom: 1px dashed var(--line);
  font-family: var(--sans); font-size: 13.5px; color: var(--ink);
  text-align: left;
}
.e-row .et {
  width: 30px; height: 30px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.e-row .et svg { width: 15px; height: 15px; }

/* 主题选择卡 */
.th-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.th-card {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 10px 10px 9px; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; gap: 2px;
  font-family: var(--sans); color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.th-card:active { transform: scale(0.98); }
.th-card.on { border-color: var(--signal); box-shadow: 0 0 0 2.5px rgba(245, 179, 30, 0.22); }
.th-card .sw { height: 46px; border-radius: 8px; display: block; margin-bottom: 7px; border: 1px solid var(--line); }
.th-card .nm { font-size: 12.5px; font-weight: 700; }
.th-card .sb { font-size: 10px; color: var(--ink-2); }
.entry {
  border: 1px solid var(--line); background: var(--card);
  border-radius: 10px; padding: 11px 4px 9px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--ink);
  cursor: pointer; border-bottom-width: 2.5px;
}
.entry svg { width: 22px; height: 22px; }
.entry:hover { background: var(--paper-2); }
.entry .sub { font-size: 9.5px; color: var(--ink-2); letter-spacing: 0.04em; }

.sect { display: flex; align-items: baseline; justify-content: space-between; margin: 20px 0 10px; }
.sect h3 { font-family: var(--serif); font-size: 16.5px; font-weight: 700; }
.sect a { font-size: 12px; color: var(--stamp); }

/* 日常时间线：一节车厢 = 一条日常 */
.daily { border-left: 2px solid var(--line); margin-left: 17px; padding-left: 18px; padding-bottom: 4px; }
.d-item { position: relative; padding-bottom: 20px; }
.d-item::before {
  content: ""; position: absolute; left: -24px; top: 4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--paper); border: 2.5px solid var(--stamp);
}
.d-item .who { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.d-item .who b { color: var(--ink); font-size: 13px; }
.d-item .txt { font-size: 14px; line-height: 1.7; margin: 5px 0 8px; color: var(--ink); }
.p-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-radius: 10px; overflow: hidden; }
.p-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; border-radius: 10px; overflow: hidden; }
.p-grid2 .ph, .p-grid3 .ph { aspect-ratio: 1; width: 100%; object-fit: cover; display: block; border-radius: 4px; }
.d-item .foot { display: flex; gap: 16px; margin-top: 8px; font-size: 11.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.d-item .foot .lk { border: none; background: none; cursor: pointer; color: var(--ink-2); font-size: 11.5px; padding: 0; display: flex; gap: 4px; align-items: center; }
.d-item .foot .lk.liked { color: var(--alarm); }

.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  flex: none; font-family: var(--sans);
}
.av-a { background: #2E5C8A; }
.av-b { background: #C9953C; color: #fff; }

/* ---------- 信箱 ---------- */
.env {   /* 信封票据 */
  display: flex; align-items: center; gap: 12px;
  padding: 14px; margin-bottom: 12px;
}
.env .badge {
  width: 44px; height: 44px; flex: none;
  border-radius: 8px;
  background: var(--paper-2);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.env .badge.unread::after {
  content: ""; position: absolute; right: -4px; top: -4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--signal); border: 2px solid var(--paper);
}
.env .tt { font-family: var(--serif); font-size: 15.5px; font-weight: 700; }
.env .sb { font-size: 12px; color: var(--ink-2); margin-top: 1px; }
.env .dt { margin-left: auto; text-align: right; flex: none; font-size: 10.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.env .dt b { display: block; font-size: 11.5px; color: var(--ink); }

/* 信纸（写信） */
.paper-write {
  background:
    linear-gradient(transparent 0, transparent calc(1.9em - 1px), var(--line) calc(1.9em - 1px), var(--line) 1.9em);
  background-size: 100% 1.9em;
  background-position: 0 6px;
  border: 1px solid var(--line);
  border-radius: 12px 12px 0 0;
  border-bottom: none;
  padding: 12px 14px;
  min-height: 205px;
}
.paper-write textarea {
  width: 100%; border: none; outline: none;
  font-family: var(--serif);
  font-size: 14.5px; line-height: 1.9em;
  background: transparent; color: var(--ink);
  min-height: 170px; resize: none;
}
.write-foot {
  border: 1px solid var(--line); border-radius: 0 0 12px 12px;
  background: var(--card);
  padding: 10px 12px; display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--ink-2);
}
.write-foot .wax {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--alarm);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-family: var(--serif);
  box-shadow: inset 0 2px 3px rgba(255,255,255,0.35);
}

/* 信封尺寸的查看卡（未到开信日） */
.sealed {
  text-align: center;
  border: 1.5px dashed var(--stamp);
  border-radius: 14px;
  padding: 26px 18px 22px;
  background: var(--card);
  margin-top: 14px;
}
.sealed .frame { font-family: var(--serif); font-size: 18px; font-weight: 700; letter-spacing: 0.08em; }
.sealed .cd {
  font-size: 34px; font-weight: 700; margin: 14px 0 4px;
  font-variant-numeric: tabular-nums;
  display: flex; justify-content: center; gap: 10px;
}
.sealed .cd span { display: block; font-size: 10.5px; font-weight: 400; color: var(--ink-2); margin-top: 3px; letter-spacing: 0.1em; }
.sealed .why { font-size: 12px; color: var(--ink-2); max-width: 260px; margin: 8px auto 0; }

/* ---------- 日历 ---------- */
.cal-month { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 12px 10px; }
.cal-top { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 10px; }
.cal-top .mo { font-family: var(--serif); font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cal-top button { border: none; background: none; cursor: pointer; color: var(--ink-2); width: 30px; height: 30px; border-radius: 50%; }
.cal-top button:hover { background: var(--paper-2); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-grid .dow { text-align: center; font-size: 10px; color: var(--ink-2); padding: 5px 0; }
.cal-cell {
  position: relative; aspect-ratio: 1.15;
  border-radius: 7px; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  padding-top: 5px; font-size: 12.5px; font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.cal-cell.out { color: #AEB4B0; }
.cal-cell.today { background: var(--ink); color: var(--on-ink, #fff); font-weight: 700; }
.cal-cell .ev { position: absolute; bottom: 5px; width: 6px; height: 6px; border-radius: 50%; }
.cal-cell .ev.pink { background: var(--alarm); }
.cal-cell .ev.gold { background: var(--signal); }
.cal-cell .ev.blue { background: var(--stamp); }
.cal-cell.anniv { border: 1.5px solid var(--alarm); color: var(--alarm); }
.cal-cell.anniv.today { color: #fff; background: var(--alarm); border-color: var(--alarm); }
.cal-leg { display: flex; gap: 16px; padding: 10px 6px 2px; font-size: 10.5px; color: var(--ink-2); }
.cal-leg i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 4px; }

.sched { margin-top: 18px; }
.sched .row {
  display: flex; align-items: baseline; gap: 12px;
  padding: 11px 4px; border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.sched .row .tm { color: var(--ink-2); font-variant-numeric: tabular-nums; width: 44px; flex: none; }
.sched .row .dt { margin-left: auto; color: var(--ink-2); font-size: 11px; flex: none; }
.sched .row.ann { color: var(--alarm); }
.sched .row.ann .tm { color: var(--alarm); }

/* ---------- 奔赴（行程线路） ---------- */
.route {
  position: relative; margin-left: 15px; padding-left: 20px;
  border-left: 2px solid var(--stamp);
}
.stop2 { position: relative; padding-bottom: 22px; }
.stop2:last-child { padding-bottom: 4px; }
.stop2::before {
  content: ""; position: absolute; left: -26px; top: 2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--stamp);
}
.stop2 .badge2 {
  font-size: 10px; color: var(--paper); background: var(--stamp);
  border-radius: 999px; padding: 1px 8px; letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}
.stop2 .place { font-family: var(--serif); font-size: 17px; font-weight: 700; margin: 5px 0 2px; }
.stop2 .dur { font-size: 11.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.stop2 .pill3 { display: flex; gap: 6px; margin-top: 8px; }
.stop2 .pill3 img { width: 74px; height: 54px; object-fit: cover; border-radius: 6px; }
.stop2.next::before {
  background: var(--paper); border: 2.5px dashed var(--signal-deep);
}
.stop2.next .badge2 { background: var(--paper-2); color: var(--signal-deep); }

/* ---------- 相册 ---------- */
.alb-g { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.alb-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); cursor: pointer; }
.alb-card img { width: 100%; aspect-ratio: 1.18; object-fit: cover; display: block; }
.alb-card .nm { font-size: 13px; font-weight: 600; padding: 9px 10px 2px; }
.alb-card .ct { font-size: 10.5px; color: var(--ink-2); padding: 0 10px 9px; font-variant-numeric: tabular-nums; }

/* 相册多选 */
.ab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.ab-grid .cell { position: relative; }
.ab-grid .cell img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 5px; display: block; }
.ab-grid .cell.sel img { outline: 2.5px solid var(--signal); outline-offset: -2.5px; }
.ab-grid .cell .cbtn {
  position: absolute; right: 5px; top: 5px;
  width: 19px; height: 19px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #fff;
}
.ab-grid .cell.sel .cbtn { background: var(--signal); color: var(--ink); border-color: var(--signal); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- 待办 ---------- */
.todo-sec { margin-bottom: 18px; }
.todo-sec h4 { font-size: 12px; color: var(--ink-2); margin: 6px 2px 8px; letter-spacing: 0.05em; }
.t-row {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 13px; margin-bottom: 8px;
  cursor: pointer;
}
.t-row .cb {
  width: 21px; height: 21px; border-radius: 6px;
  border: 2px solid var(--ink-2); flex: none; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: transparent;
}
.t-row.done .cb { background: var(--mint); border-color: var(--mint); color: #fff; }
.t-row.done .tx { color: var(--ink-2); text-decoration: line-through; }
.t-row .tx { font-size: 14px; }
.t-row .tx small { display: block; color: var(--ink-2); font-size: 11px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.t-row .asg { margin-left: auto; flex: none; }

/* ---------- 厨房 ---------- */
.dish {
  display: flex; gap: 12px; align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px; margin-bottom: 10px;
  cursor: pointer;
}
.dish img { width: 68px; height: 68px; border-radius: 9px; object-fit: cover; flex: none; }
.dish .nm { font-family: var(--serif); font-size: 15.5px; font-weight: 700; }
.dish .tk { font-size: 11px; color: var(--ink-2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.dish .pt { margin-left: auto; text-align: right; flex: none; }
.dish .pt b { color: var(--signal-deep); font-size: 14px; font-variant-numeric: tabular-nums; }
.dish .pt small { display: block; font-size: 9.5px; color: var(--ink-2); }

.wish { }
.wish-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 4px; border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
}
.wish-row .tag { font-size: 9.5px; color: var(--stamp); border: 1px solid currentColor; border-radius: 3px; padding: 0 5px; }
.wish-row .mine-tag { color: var(--signal-deep); }
.wish-row .go { margin-left: auto; color: var(--ink-2); }

/* ---------- 订单/积分通用行 ---------- */
.pt-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 12px 4px; border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.pt-row .m { color: var(--ink-2); font-size: 11px; font-variant-numeric: tabular-nums; }
.pt-row b { font-variant-numeric: tabular-nums; font-size: 14.5px; }
.pt-row b.plus { color: var(--mint); }

/* ---------- 通知 ---------- */
.ntf {
  display: flex; gap: 10px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 11px; padding: 12px; margin-bottom: 9px;
}
.ntf .ic { flex: none; width: 34px; height: 34px; border-radius: 8px; background: var(--paper-2); display: flex; align-items: center; justify-content: center; }
.ntf .ic.gold { background: var(--signal); }
.ntf .tx { font-size: 13px; line-height: 1.6; }
.ntf .tm { display: block; font-size: 10.5px; color: var(--ink-2); margin-top: 3px; font-variant-numeric: tabular-nums; }

/* ---------- 我的 ---------- */
.me-card {
  display: flex; align-items: center; gap: 13px;
  background: var(--hero-bg, var(--ink)); color: var(--hero-fg, #EDEFE9);
  border-radius: 14px; padding: 17px 16px;
  margin-bottom: 16px;
}
.me-card .nm { font-family: var(--serif); font-size: 18px; font-weight: 700; }
.me-card .sb { font-size: 11.5px; color: var(--hero-sub, #C7CDD4); margin-top: 2px; }
.me-card .avatar.lg { width: 46px; height: 46px; font-size: 17px; }
.me-list { border-top: 2px solid var(--ink); }
.me-list .row {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 4px; border-bottom: 1px solid var(--line);
  font-size: 14px; cursor: pointer;
}
.me-list .row svg { width: 20px; height: 20px; flex: none; display: block; }
.me-list .row:hover { background: var(--card); }
.me-list .row .tail { margin-left: auto; color: var(--ink-2); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.me-list .row .tail.warn { color: var(--alarm); }

/* ---------- 欢迎屏 / 未绑定 ---------- */
.welcome { height: 100%; display: flex; flex-direction: column; padding: 30px 22px 24px; }
.welcome .mark { margin-top: 8px; }
.welcome .mark .l1 {
  font-family: var(--serif); font-size: 33px; font-weight: 700; line-height: 1.45;
}
.welcome .mark .l2 { color: var(--ink-2); font-size: 13.5px; margin-top: 10px; line-height: 1.85; }
.welcome .ticket-demo {
  margin: auto 0 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; position: relative;
}
.welcome .ticket-demo::after {
  content: ""; position: absolute; right: 14px; top: 14px;
  width: 44px; height: 44px;
  background: var(--signal); border-radius: 50%;
  mask: none;
  opacity: 0.16;
}
.welcome .rows { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

/* 空态 */
.p-empty {
  text-align: center; padding: 44px 20px;
  color: var(--ink-2);
}
.p-empty .ico { font-family: var(--serif); font-size: 30px; color: var(--line); margin-bottom: 10px; }
.p-empty p { font-size: 13px; max-width: 230px; margin: 0 auto 16px; }

/* 浮层卡（页面动作 sheet） */
.sheet {
  position: absolute; left: 0; right: 0; bottom: 72px;
  background: var(--card);
  border: 1px solid var(--line); border-bottom: none;
  border-radius: 16px 16px 0 0;
  padding: 14px 16px 10px;
  box-shadow: 0 -10px 30px rgba(34,48,63,0.14);
  z-index: 8;
}
.sheet .hd { font-weight: 600; font-size: 13.5px; margin-bottom: 10px; }
.sheet .acts { display: flex; flex-direction: column; }
.sheet .acts button {
  text-align: left; border: none; background: none; cursor: pointer;
  padding: 10px 2px; font-size: 14px; color: var(--ink);
  border-bottom: 1px dashed var(--line);
  font-family: var(--sans);
}
.sheet .acts button .no { float: right; color: var(--ink-2); font-size: 11px; font-variant-numeric: tabular-nums; }

/* 悬浮发布按钮 */
.fab {
  position: absolute; right: 16px; bottom: 86px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--signal); border: none; cursor: pointer;
  box-shadow: 0 4px 12px rgba(34,48,63,0.25);
  display: flex; align-items: center; justify-content: center;
  z-index: 7;
}
.fab:active { transform: scale(0.95); }

/* 日期滚轮（简示） */
.picker-row {
  display: flex; justify-content: center; gap: 26px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 0; margin-bottom: 14px;
  font-size: 18px; font-variant-numeric: tabular-nums;
}
.picker-row .col { color: #B6BCC2; position: relative; padding: 4px 2px; }
.picker-row .col.on { color: var(--ink); font-weight: 700; }
.picker-row .col.on::before, .picker-row .col.on::after {
  content: ""; position: absolute; left: -6px; right: -6px; height: 1.5px;
  background: var(--signal);
}
.picker-row .col.on::before { top: 0; }
.picker-row .col.on::after { bottom: 0; }

/* =========================================================
   增补 · 朋友圈九宫格语义 / 发布拖拽 / 大图查看器
   · 小红书式瀑布流 / chips 筛选 / 详情轮播
--------------------------------------------------------- */

/* ---- 展示端九宫格（按张数变式） ---- */
.mg { display: grid; gap: 3px; margin: 6px 0 2px; }
.mg img {
  width: 100%; max-width: 100%; min-width: 0; display: block;
  aspect-ratio: 1; object-fit: cover; border-radius: 4px; cursor: pointer;
}
.mg[data-n="1"] { grid-template-columns: 88%; }
.mg[data-n="1"] img { max-height: 280px; border-radius: 6px; }
.mg[data-n="2"] { grid-template-columns: 1fr 1fr; }
.mg[data-n="4"] { grid-template-columns: 1fr 1fr; }
.mg:not([data-n="1"]):not([data-n="2"]):not([data-n="4"]) { grid-template-columns: repeat(3, 1fr); }
.mg .mg-i { aspect-ratio: 1; width: 100%; object-fit: cover; display: block; border-radius: 4px; cursor: pointer; max-width: 100%; }
.mg[data-n="1"] .mg-i { width: 100%; max-height: 280px; object-fit: cover; border-radius: 6px; }
.mg[data-n="1"] .mg-i.vid-cell { aspect-ratio: 1; }

/* ---- 发布端九宫格：长按拖拽排序 ---- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; position: relative; margin-bottom: 16px; }
.pg-item {
  position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden;
  cursor: grab; touch-action: none; user-select: none;
  transition: transform 0.18s ease;
  background: var(--paper-2);
}
.pg-item img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.pg-item .del {
  position: absolute; right: 5px; top: 5px; width: 19px; height: 19px;
  border-radius: 50%; background: rgba(34, 48, 63, 0.82); color: #fff;
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  z-index: 3; border: none; cursor: pointer; padding: 0; line-height: 1;
}
.pg-item.add {
  border: 1.5px dashed var(--line); color: var(--ink-2); background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.pg-item.add svg { width: 20px; height: 20px; }
.pg-item.add small { font-size: 9.5px; }
.pg-item.lift {
  z-index: 9; transform: scale(1.07);
  box-shadow: 0 10px 24px rgba(34, 48, 63, 0.35);
  transition: none; cursor: grabbing;
}
.post-grid.holding { cursor: grabbing; }

/* ---- 大图查看器（手机屏内全屏） ---- */
.imgview { position: absolute; inset: 0; background: rgba(14, 17, 21, 0.97); z-index: 30; touch-action: none; user-select: none; }
.imgview.closing { opacity: 0; transition: opacity 0.2s ease; }
.iv-stage { position: absolute; inset: 0; overflow: hidden; }
.iv-slide { position: absolute; top: 0; height: 100%; width: 100%; display: flex; align-items: center; justify-content: center; }
.iv-slide img { max-width: 100%; max-height: 98%; display: block; transition: transform 0.2s ease; will-change: transform; }
.iv-slide img.free { transition: none; }
.iv-count { position: absolute; top: 14px; right: 14px; color: #EDE9E4; background: rgba(34, 48, 63, 0.5); font-size: 12px; padding: 4px 10px; border-radius: 999px; z-index: 3; font-variant-numeric: tabular-nums; }
.iv-back { position: absolute; top: 12px; left: 10px; color: #EDE9E4; border: none; background: none; width: 36px; height: 36px; z-index: 3; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.iv-brief { position: absolute; bottom: 16px; left: 18px; right: 18px; color: rgba(237, 233, 228, 0.8); font-size: 11.5px; z-index: 3; text-align: center; }

/* ---- 小红书式 chips 筛选 ---- */
.chipbar {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 12px 2px 10px; margin: 0 -2px 4px;
  position: sticky; top: -6px; background: var(--paper); z-index: 5;
}
.chipbar::-webkit-scrollbar { display: none; }
.chip {
  flex: none; font-size: 12.5px; padding: 7px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink);
  cursor: pointer; font-family: var(--sans); transition: all 0.15s ease;
}
.chip.on { background: var(--ink); color: var(--on-ink, #F4F2EA); border-color: var(--ink); font-weight: 600; }
.chip.gold.on { background: var(--signal); color: var(--ink); border-color: var(--signal); }

/* ---- 小红书式双列瀑布流（JS 分列，保证两卡横向） ---- */
.waterfall { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; align-items: start; }
.wf-col { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.wf-card {
  margin: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 11px;
  overflow: hidden; cursor: pointer; display: block; width: 100%;
}
.wf-card:active { transform: scale(0.985); }
.wf-card img { width: 100%; display: block; }
.wf-card .fb { padding: 8px 10px 10px; }
.wf-card .tt {
  font-size: 13px; font-weight: 600; line-height: 1.45; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wf-card .fl { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 10px; color: var(--ink-2); }
.wf-card .fl .lk { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.wf-card .fl .lk svg { width: 13px; height: 13px; }
.wf-card .fl .lk.liked { color: var(--alarm); }

/* ---- 小红书式详情页（轮播 + 双击点赞） ---- */
.dt-swiper { position: relative; margin: 6px -18px 14px; aspect-ratio: 0.92; background: var(--paper-2); overflow: hidden; touch-action: pan-y; }
.dt-track { display: flex; height: 100%; transition: transform 0.24s ease; }
.dt-slide { flex: none; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.dt-slide img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.dt-dots { position: absolute; bottom: 11px; left: 0; right: 0; display: flex; gap: 6px; justify-content: center; z-index: 3; }
.dt-dots i { width: 5px; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.55); transition: all 0.2s ease; }
.dt-dots i.on { background: #fff; width: 14px; }
.dt-burst { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 4; }
.dt-burst svg { width: 88px; height: 88px; transform: scale(0); }
.dt-burst go { }
.dt-burst .pop { animation: heartPop 0.5s ease forwards; }
@keyframes heartPop {
  0% { transform: scale(0); }
  55% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}
.dt-bar {
  position: sticky; bottom: 0; margin: 16px -18px -4px;
  background: var(--card); border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); z-index: 6;
  display: flex; align-items: center; gap: 16px;
}
.dt-bar .aab { flex: 1; border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 14px; font-size: 12.5px; color: var(--ink-2); background: var(--paper); text-align: left; }
.dt-bar .act { display: flex; flex-direction: column; align-items: center; gap: 2px; border: none; background: none; cursor: pointer; color: var(--ink-2); font-size: 10px; font-family: var(--sans); }
.dt-bar .act svg { width: 21px; height: 21px; }
.dt-bar .act.liked { color: var(--alarm); }
.dt-bar .act.gold { color: var(--signal-deep); }

/* 双击心形浮层复用于瀑布流卡片 */
.wf-burst { position: fixed; z-index: 40; pointer-events: none; transform: translate(-50%, -50%); }
.wf-burst svg { width: 74px; height: 74px; transform: scale(0); animation: heartPop 0.5s ease forwards; }

/* ---- 超九张 → 幻灯片视频卡 ---- */
.vid-wide {
  position: relative; margin: 6px 0 2px; width: 92%;
  aspect-ratio: 16 / 9; background: #10151B; border-radius: 10px; overflow: hidden;
  cursor: pointer;
}
.vid-wide img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.62; }
.vid-wide .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; pointer-events: none;
}
.vid-wide .play svg { width: 34px; height: 34px; filter: drop-shadow(0 2px 6px rgba(14,17,21,0.6)); }
.vid-wide .dur {
  position: absolute; right: 8px; bottom: 8px; color: #fff; font-size: 10px;
  background: rgba(14, 17, 21, 0.62); padding: 2px 7px; border-radius: 4px;
  font-variant-numeric: tabular-nums;
}
.vid-wide .tc {
  position: absolute; left: 8px; top: 8px; color: #fff; font-size: 10px;
  background: rgba(14, 17, 21, 0.55); padding: 3px 8px; border-radius: 999px;
}
.vid-cell { position: relative; background: #10151B; }
.vid-cell img { opacity: 0.62; }
.vid-cell .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; pointer-events: none; }
.vid-cell .play svg { width: 24px; height: 24px; }
.vid-cell .dur {
  position: absolute; right: 6px; bottom: 6px; color: #fff; font-size: 9.5px;
  background: rgba(14, 17, 21, 0.6); padding: 1px 6px; border-radius: 4px;
  font-variant-numeric: tabular-nums;
}

/* 评论 */
.cmt-row { display: flex; gap: 9px; padding: 10px 2px; border-bottom: 1px dashed var(--line); font-size: 13px; line-height: 1.62; }
.cmt-row .avatar { width: 24px; height: 24px; font-size: 10px; }
.cmt-row b { font-weight: 600; margin-right: 6px; }
.cmt-row .tm { display: block; font-size: 10.5px; color: var(--ink-2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.foot .lk.liked { color: var(--alarm); }
.foot .lk.liked svg path { fill: currentColor; }
.foot .lk svg { width: 15px; height: 15px; vertical-align: -2px; }
