/* ==========================================================================
   小青柠 · 设计系统
   方向：得物式潮流市集（Poizon-ish Bazaar）× 温暖有机
   一句话：像逛一个周末手作市集 —— 白、亮、圆、暖，而不是批发市场的货架。
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 底色：暖白（带一丝温度的白，不是办公室冷白） */
  --paper: #faf9f7;
  --paper-2: #f2f0ec;
  --surface: #ffffff;
  --surface-2: #f7f6f3;

  /* 墨色 */
  --ink: #1a1a1d;
  --ink-2: #5f6268;
  --ink-3: #9b9ea5;
  --ink-4: #c3c5ca;

  /* 品牌：得物青绿（行动 / 圆梦 / 选中 / 信任） */
  --brand: #00bda6;
  --brand-deep: #009c8a;
  --brand-soft: #ddf7f2;
  --brand-tint: #f0fbf9;

  /* 温度：蜜橘（价格 / 急单 / 加价 / 人气）——「温暖」的主要来源 */
  --coral: #ff6a45;
  --coral-deep: #e2522f;
  --coral-soft: #ffece5;

  /* 潮流高亮：嫩芽绿（限时 / 新 / 推荐 这类小面积贴纸） */
  --lime: #d4f14a;
  --lime-soft: #f0fbc8;

  /* 信任：深墨青（担保 / 资金监管的深色块） */
  --jade: #103c37;
  --jade-deep: #062521;
  --jade-soft: #e3f3f0;

  /* 荣誉：金（信用分 / 积分） */
  --gold: #c8952c;
  --gold-soft: #fcf2d8;

  /* 状态色 */
  --line: #efede9;
  --line-2: #e4e1db;
  --danger: #e5402f;
  --danger-soft: #ffeae6;
  --warn: #d98211;
  --warn-soft: #fff3dd;
  --ok: #12a37a;
  --ok-soft: #e0f6ee;

  /* 层次：柔和多层阴影，取代边框做分隔 */
  --sh-1: 0 1px 2px rgba(26, 26, 29, .04), 0 6px 16px -10px rgba(26, 26, 29, .16);
  --sh-2: 0 2px 6px rgba(26, 26, 29, .05), 0 22px 44px -24px rgba(26, 26, 29, .26);
  --sh-brand: 0 10px 24px -12px rgba(0, 189, 166, .55);
  --sh-coral: 0 10px 24px -12px rgba(255, 106, 69, .55);

  /* 圆角：大会显得贵、显得轻松 */
  --r-xs: 8px;
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* 字体：全无衬线。标题粗黑收紧，是「潮流」而不是「启事」 */
  --f-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --f-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", "JetBrains Mono", Consolas, "Courier New", monospace;

  /* 节奏 */
  --gut: clamp(16px, 3.2vw, 40px);
  --maxw: 1240px;
  --ease: cubic-bezier(.22, 1, .36, 1);      /* ease-out-quart */
  --ease-out: cubic-bezier(.16, 1, .3, 1);   /* ease-out-expo  */
}

/* ---------- 2. 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* 别让任何组件自己的 display 盖掉 HTML 的 hidden 属性。
   （踩过：.quick-words 设了 display:flex，JS 给它加 hidden 也藏不住，
   于是「最近搜索」在没历史时露出一条空行。） */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 顶部一层极淡的品牌光晕：让整页白得有温度，而不是死白 */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 420px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(720px 300px at 12% -8%, rgba(0, 189, 166, .10), transparent 62%),
    radial-gradient(620px 260px at 88% -12%, rgba(255, 106, 69, .08), transparent 62%);
}

h1, h2, h3, h4, .serif {
  font-family: var(--f-display);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -.025em;
  margin: 0 0 .42em;
}

h1 { font-size: clamp(31px, 4.5vw, 54px); }
h2 { font-size: clamp(22px, 2.7vw, 33px); }
h3 { font-size: clamp(17px, 1.75vw, 21px); letter-spacing: -.018em; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-deep); }

p { margin: 0 0 1em; }

img { max-width: 100%; display: block; }

hr.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}

.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.mono { font-family: var(--f-mono); font-size: .86em; letter-spacing: 0; }

.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.tiny { font-size: 12.5px; }
.small { font-size: 13.5px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ---------- 3. 布局骨架 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gut);
  position: relative;
  z-index: 1;
}

main { flex: 1 0 auto; padding-bottom: 84px; position: relative; z-index: 1; }

.section { margin-top: clamp(40px, 5.4vw, 76px); }

/* 段头：不再用一条 2px 黑线压顶（那是货架分隔线的味道），改用留白 + 粗标题 */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.section-head h2 { margin: 0; }
.section-head .kicker {
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--brand);
  display: block;
  margin-bottom: 3px;
}
.section-head .more {
  font-size: 13.5px; color: var(--ink-2); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 4px;
  transition: color .18s var(--ease), gap .18s var(--ease);
}
.section-head .more:hover { color: var(--brand-deep); gap: 7px; }

/* ----------------------------------------------------------------------
   消息页：可折叠的通知分区（活动 / 交易 / 上新）—— 2026-09-23 新增
   ----------------------------------------------------------------------
   用 <details> 的理由与手机端一致：无 JS 也能开合，键盘和读屏都认（详见 m.css）。
   网页版上收起还有一个额外好处：这页本来要滚很长，收起之后
   「用户即时信息」直接落在首屏，不用往下找。
   ⚠️ 收起不等于假装没有 —— 未读时标题行上有点亮的 .msg-dot。
   ---------------------------------------------------------------------- */
.msg-fold {
  background: var(--surface); border-radius: var(--r);
  box-shadow: var(--sh-1); margin-top: 14px; overflow: hidden;
}
.msg-fold-head {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 20px; cursor: pointer; list-style: none;
  font-size: 16px; font-weight: 800; color: var(--ink);
}
.msg-fold-head::-webkit-details-marker { display: none; }
.msg-fold-head:hover { background: var(--surface-2); }
.msg-fold-caret { color: var(--ink-4); transition: transform .18s var(--ease); }
.msg-fold[open] .msg-fold-caret { transform: rotate(180deg); }
.msg-fold-body { padding: 0 20px 18px; }
.msg-fold-more {
  display: inline-block; margin-top: 14px; font-size: 13.5px; font-weight: 700;
  color: var(--brand-deep); text-decoration: none;
}
.msg-fold-more:hover { text-decoration: underline; }

/* 未读红点：只表示「那边有东西」，**不带数字**。
   数字只留给真人对话（反馈是「不扰民」：3 条公告和 1 句「在吗」不是一个紧急度）。 */
.msg-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: var(--r-pill);
  background: var(--coral); flex-shrink: 0;
}

.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-cards { grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); }

.split-8-4 { display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.split-7-5 { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); gap: 40px; align-items: start; }

.sticky { position: sticky; top: 88px; }

/* ---------- 4. 顶部导航 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
/* 品牌标志（2026-09-23 换成「小青柠」矢量化标志，替掉原来的「青」字印章）。
   —— 不给它加底色、不加投影：标志自身那四个方块就是形状，
   再套一层渐变圆角块会跟它打架（两个圆角矩形叠在一起）。
   ⚠️ 引的是 `xqn-mark-ui.svg`（抽稀版 1.8KB），**不是** 32KB 的原版：
   它出现在每一页的顶栏和页脚，用原版等于每页白传 30KB。
   原版留给下载、印刷和大尺寸，见后台「品牌资产」。 */
.brand-mark {
  width: 36px; height: 36px;
  display: block;
  flex-shrink: 0;
  transition: transform .22s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-name { font-family: var(--f-display); font-size: 20px; font-weight: 900; letter-spacing: -.01em; }
/* 品牌文字那一块（名字 + 英文副标）。手机上会被藏掉、只留印章 —— 见下方 560 断点的说明 */
.brand-text { display: block; }
.brand-sub {
  font-family: var(--f-sans);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--ink-3);
  text-transform: uppercase;
  display: block;
  margin-top: -3px;
}
.brand:hover .brand-name { color: var(--brand-deep); }

/* ⚠️ 2026-09-24 顶栏重排（派总第 1 条）：搜索框挪到了「定位」右边，
   所以它不能再靠 margin-left:auto 抢位置 —— 那个 auto 改挂到 .topbar-actions 上，
   效果是「小圈子 / 小青柠 / 定位 / 搜索框 / 主导航」贴左、右侧动作区贴右」。
   手机上 .nav 和 .topbar-search 都是 display:none，auto 落回动作区，照样靠右。 */
.nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.nav a {
  padding: 8px 13px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.on { color: var(--brand-deep); font-weight: 700; background: var(--brand-soft); }

.topbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  padding: 4px 4px 4px 16px;
  min-width: 240px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.topbar-search:focus-within {
  background: var(--surface);
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.topbar-search input {
  border: 0; background: transparent; outline: 0;
  font-family: var(--f-sans); font-size: 14px; color: var(--ink);
  width: 100%; padding: 6px 0;
}
.topbar-search input::placeholder { color: var(--ink-3); }
.topbar-search .go {
  border: 0; background: var(--ink); color: #fff;
  width: 32px; height: 32px; border-radius: var(--r-pill); cursor: pointer;
  display: grid; place-items: center; flex-shrink: 0;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.topbar-search .go:hover { background: var(--brand); }
.topbar-search .go:active { transform: scale(.92); }

.topbar-actions {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  margin-left: auto;   /* 见 .nav 上方那条注释：靠右的就是它 */
}

/* 顶栏最左边的「小圈子」入口（2026-09-24 第 1 条）。
   跟右边的定位胶囊（.loc-pill）同一副手感：同一行高、同一圆角、同一字号，
   一个是「去逛圈子」、一个是「换个城市看活儿」，并排时不打架。 */
.topbar-circle {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  height: 34px; padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--ink-2);
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.topbar-circle:hover { background: var(--brand-soft); color: var(--brand-deep); }
.topbar-circle .ic { color: var(--brand-deep); flex-shrink: 0; }

/* 需求池页里的大搜索框。跟顶栏搜索长一样，但独立成类，
   免得继承 .topbar-search 的 margin-left:auto（会被推到右边悬空），
   也不受顶栏「手机上隐藏」那条规则牵连。 */
.page-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-pill);
  padding: 5px 5px 5px 18px;
  flex: 1; min-width: 220px; max-width: 520px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.page-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.page-search input {
  border: 0; background: transparent; outline: 0;
  font-family: var(--f-sans); font-size: 14.5px; color: var(--ink);
  width: 100%; padding: 8px 0;
}
.page-search input::placeholder { color: var(--ink-3); }
.page-search .go {
  border: 0; background: var(--ink); color: #fff;
  width: 36px; height: 36px; border-radius: var(--r-pill); cursor: pointer;
  display: grid; place-items: center; flex-shrink: 0;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.page-search .go:hover { background: var(--brand); }
.page-search .go:active { transform: scale(.92); }

.user-menu summary { list-style: none; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary::marker { content: ''; }
.user-menu[open] > summary { opacity: .82; }

/* 顶栏「我的」下拉：关着的时候亲手把它藏掉。
   为什么不靠浏览器默认行为：<details> 关着时浏览器只「跳过渲染」里面那层内容，
   但下拉是 position:absolute，它的定位包含块是 <details> 本身（在跳过范围之外），
   于是照样被真实排版 —— 实测关着的时候它仍有 206px 的盒子，
   会白白参与顶栏的尺寸计算。显式藏掉最省事也最确定。 */
.user-menu:not([open]) > .card { display: none; }

/* ---------- 顶栏「当前城市」下拉（品牌名右侧那颗定位胶囊） ---------- */
.loc-menu { position: relative; flex-shrink: 0; }
.loc-menu summary { list-style: none; }
.loc-menu summary::-webkit-details-marker { display: none; }
.loc-menu summary::marker { content: ''; }
/* 同 .user-menu：<details> 关着时浏览器只是「跳过渲染」内容，但 .loc-pop 是 absolute、
   定位包含块是 <details> 本身，照样参与排版 —— 必须显式藏掉，否则关着的下拉仍占一坨高度。 */
.loc-menu:not([open]) > .loc-pop { display: none; }
.loc-pill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 34px; padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--ink-2);
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.loc-pill:hover { background: var(--brand-soft); color: var(--brand-deep); }
.loc-pill .ic { color: var(--brand-deep); flex-shrink: 0; }
.loc-menu[open] .loc-pill { background: var(--brand-soft); color: var(--brand-deep); }
.loc-name { max-width: 6.5em; overflow: hidden; text-overflow: ellipsis; }
.loc-caret { transition: transform .2s var(--ease); }
.loc-menu[open] .loc-caret { transform: rotate(180deg); }

.loc-pop {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 70;
  width: 340px; max-width: min(340px, 86vw);
  padding: 15px 16px 13px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
}
.loc-pop-t { font-size: 12px; font-weight: 700; color: var(--ink-3); margin-bottom: 10px; }
.loc-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.loc-opt {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--ink);
  font-size: 13px; font-weight: 600;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.loc-opt:hover { background: var(--brand-soft); color: var(--brand-deep); }
.loc-opt.on { background: var(--brand); color: #fff; }
.loc-n { font-size: 11px; font-weight: 700; color: var(--ink-3); }
.loc-opt.on .loc-n { color: rgba(255, 255, 255, .82); }
.icon-btn {
  position: relative;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn .badge {
  position: absolute; top: 1px; right: 1px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: var(--r-pill); background: var(--coral); color: #fff;
  font-size: 10px; line-height: 17px; text-align: center;
  font-weight: 700;
  box-shadow: 0 0 0 2px var(--surface);
}
/* 「只有通知未读」那一态：同样一枚角标，缩成一个红点、不写数字。
   详见 static/js/live.js 里 paintOne 的注释（为什么数字只留给真人对话）。 */
.icon-btn .badge.is-dot { min-width: 0; width: 9px; height: 9px; padding: 0; font-size: 0; top: 5px; right: 5px; }

/* ----------------------------------------------------------------------
   顶部「新消息」提示条（2026-09-23 新增）
   ----------------------------------------------------------------------
   为什么要有它：派总反馈「退出聊天框就收不到消息了，只能刷新」。
   根因是轮询回来的只有一个数字 —— 用户没法从一个角标变化里看出
   「是张三在问我货什么时候发」。所以真的收到新消息时，页面上要弹一条
   写得清楚、点一下就进对话的条子。
   ⚠️ 定位：网页版顶栏是 sticky，所以贴在它下沿（78px 与 flash-stack 同高）。
      手机上另有一套（m.css）：必须含 `--top-h`，否则会压在固定顶栏底下，
      表现是「提示条看得见、点不动」而且零报错（2026-09-23 血案）。
   ---------------------------------------------------------------------- */
.live-banner {
  position: fixed; top: 78px; left: 50%; transform: translateX(-50%) translateY(-8px);
  z-index: 210; width: calc(100% - 32px); max-width: 420px;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: var(--r);
  background: var(--jade); color: #fff; text-decoration: none;
  box-shadow: var(--sh-2);
  opacity: 0; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.live-banner.is-in { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.live-banner-av {
  width: 30px; height: 30px; border-radius: var(--r-pill); flex-shrink: 0;
  display: grid; place-items: center; font-weight: 900; font-size: 13px;
  background: rgba(255, 255, 255, .16);
}
.live-banner-tx { display: grid; gap: 1px; min-width: 0; }
.live-banner-tx b { font-size: 13.5px; font-weight: 800; }
.live-banner-tx span {
  font-size: 12.5px; color: rgba(255, 255, 255, .8);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.live-banner-go { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--lime); white-space: nowrap; }

@media (max-width: 640px) {
  .live-banner { top: 72px; }
}

.publish-cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  padding: 10px 18px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 700;
  box-shadow: var(--sh-brand);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.publish-cta:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0, 189, 166, .7); }
.publish-cta:active { transform: translateY(0) scale(.98); }

.avatar {
  width: 34px; height: 34px; border-radius: var(--r-pill);
  object-fit: cover; border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line-2);
  background: var(--brand-soft);
}
.avatar-fallback {
  width: 34px; height: 34px; border-radius: var(--r-pill);
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-soft), var(--lime-soft));
  color: var(--brand-deep);
  font-family: var(--f-display); font-weight: 900; font-size: 14px;
  box-shadow: 0 0 0 1px var(--line-2);
}

/* 二级品类条 */
.catbar {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  overflow-x: auto;
  scrollbar-width: none;
}
.catbar::-webkit-scrollbar { display: none; }
.catbar-inner { display: flex; align-items: center; gap: 6px; height: 52px; white-space: nowrap; }
/* 第二栏菜单胶囊（2026-09-24 派总第 2 条）：**严格照抄小圈子页下辖菜单
   （core/circle_list.html 里的 .pc-cat）的盒模型** —— 同样的内边距、同样的字号、
   同样的字重、同样的圆角线框。两份样式一旦分叉，用户就会觉得「同一个站两个风格」。
   ⚠️ 改这里之前先去 app.css 搜 .pc-cat，那边动了这边也要跟着动。 */
.catbar a {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 13px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line-2);
  color: var(--ink-2); font-size: 13px; font-weight: 700;
  transition: all .18s var(--ease);
}
.catbar a:hover { background: var(--brand-soft); color: var(--brand-deep); }
.catbar a.on { background: var(--jade); border-color: var(--jade); color: #fff; }
.catbar .sep { width: 1px; height: 18px; background: var(--line-2); margin: 0 8px; flex-shrink: 0; }

/* 移动端底部 tab */
.tabbar {
  display: none;
  position: sticky; bottom: 0; z-index: 70;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.tabbar-inner { display: grid; grid-template-columns: repeat(5, 1fr); }
.tabbar a {
  position: relative;                 /* 角标要挂在这一格上，不能靠 transform 猜位置 */
  display: grid; place-items: center; gap: 3px;
  padding: 9px 0 8px; font-size: 10.5px; font-weight: 500; color: var(--ink-3);
}
.tabbar a.on { color: var(--brand-deep); font-weight: 700; }
/* 底栏「消息」角标（2026-09-23 由小圆点升级成「数字 / 红点」两态）。
   ⚠️ 定位一律靠 top/left + margin，**不要用 transform 猜偏移**：
      这一格是 grid 容器，角标作为第 3 个 grid item 的静态位置随字体/行高变化，
      用 transform 微调的话换个字号就会歪到图标外面去。 */
.tabbar .badge {
  position: absolute; top: 4px; left: 50%; margin-left: 6px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: var(--r-pill); background: var(--coral); color: #fff;
  font-size: 10px; font-weight: 900; line-height: 16px; text-align: center;
  font-style: normal;
}
/* 「只有通知未读」那一态：只点一个红点，**不写数字**（详见 live.js 的注释） */
.tabbar .badge.is-dot { min-width: 0; width: 8px; height: 8px; padding: 0; font-size: 0; top: 8px; }

/* ---------- 5. 按钮 ---------- */
/* 按钮一律胶囊形：圆 = 轻松，直角 = 公文 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .16s var(--ease), background .18s var(--ease),
              border-color .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
  text-align: center;
  line-height: 1.4;
  white-space: nowrap;
}
.btn:hover { border-color: var(--ink-4); transform: translateY(-2px); box-shadow: var(--sh-1); color: var(--ink); }
.btn:active { transform: translateY(0) scale(.985); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  border-color: transparent; color: #fff;
  box-shadow: var(--sh-brand);
}
.btn-primary:hover { color: #fff; box-shadow: 0 16px 32px -14px rgba(0, 189, 166, .72); }

.btn-jade { background: var(--jade); border-color: var(--jade); color: #fff; }
.btn-jade:hover { background: var(--jade-deep); border-color: var(--jade-deep); color: #fff; }

.btn-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ink:hover { background: #2c2c31; border-color: #2c2c31; color: #fff; }

.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); box-shadow: none; transform: none; }

.btn-danger { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.btn-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }

.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled {
  opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important;
}

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 6. 卡片 ---------- */
/* 卡片：白底 + 无边框 + 大圆角 + 柔阴影。边框越少越像「陈列」而不是「货架」 */
.card {
  background: var(--surface);
  border: 0;
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--sh-1);
}
.card-flat { background: var(--surface); border: 0; border-radius: var(--r); padding: 22px; box-shadow: var(--sh-1); }
.card-raise { transition: transform .26s var(--ease), box-shadow .26s var(--ease); }
.card-raise:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }

.card-title { font-family: var(--f-display); font-size: 17px; font-weight: 900; margin: 0 0 12px; letter-spacing: -.018em; }

/* 需求卡：市集摊位 —— 大图、大圆角、无边框，悬停整张浮起来 */
.demand-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: transform .26s var(--ease), box-shadow .26s var(--ease);
  height: 100%;
}
.demand-card:hover { transform: translateY(-6px); box-shadow: var(--sh-2); }

/* 整卡可点：一条铺满卡片的透明链接铺在内容之上（z-index 1），
   收藏按钮压在更上层（z-index 3），两者互不抢点击。 */
.dc-link { position: absolute; inset: 0; z-index: 1; }
.dc-link:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; border-radius: var(--r-lg); }

.dc-fav { position: absolute; top: 10px; right: 10px; z-index: 3; margin: 0; }
.fav-btn {
  width: 34px; height: 34px; border-radius: var(--r-pill);
  display: grid; place-items: center; cursor: pointer;
  border: 0;
  background: rgba(255, 255, 255, .9);
  color: var(--ink-2);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(26, 26, 29, .14);
  transition: transform .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}
.fav-btn:hover { transform: scale(1.1); background: #fff; }
.fav-btn.on { color: var(--coral); }
.fav-btn.on .ic { fill: currentColor; }
/* 卡片外的独立收藏按钮（详情页、列表行） */
.fav-btn-lg {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: var(--surface);
  font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; color: var(--ink-2);
  transition: all .18s var(--ease);
}
.fav-btn-lg:hover { border-color: var(--coral); color: var(--coral); background: var(--coral-soft); }
.fav-btn-lg.on { border-color: transparent; background: var(--coral-soft); color: var(--coral-deep); font-weight: 700; }
.fav-btn-lg.on .ic { fill: currentColor; }

.dc-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(140deg, var(--brand-tint), var(--surface-2) 62%);
  overflow: hidden;
  flex-shrink: 0;
}
/* 演示数据里没有封面图，卡片全是占位块。
   三种柔和底色轮着来，整片网格才不会糊成一色。 */
.demand-card:nth-child(3n+2) .dc-cover { background: linear-gradient(140deg, var(--coral-soft), var(--surface-2) 62%); }
.demand-card:nth-child(3n+3) .dc-cover { background: linear-gradient(140deg, var(--lime-soft), var(--surface-2) 62%); }
.dc-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.demand-card:hover .dc-cover img { transform: scale(1.055); }
/* 没上传封面图时的占位：不是「图裂了」，而是一块分类插画牌 */
.dc-cover .ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
}
.dc-cover .ph .ph-ic { width: 50px; height: 50px; stroke-width: 1.35; color: rgba(0, 189, 166, .42); }
.dc-cover .ph .ph-t { font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: rgba(0, 156, 138, .68); }
.dc-flags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 58px); }
/* 类型角标挪到封面左下角，右上角让位给收藏按钮 */
.dc-kind {
  position: absolute; bottom: 10px; left: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .92); color: var(--ink);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(26, 26, 29, .1);
}

.dc-body { padding: 15px 17px 17px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.dc-cat {
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  color: var(--brand-deep);
}
.dc-title {
  font-family: var(--f-display); font-size: 16.5px; font-weight: 900;
  line-height: 1.4; margin: 0; letter-spacing: -.015em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.dc-desc {
  font-size: 13px; color: var(--ink-2); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dc-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.dc-foot {
  margin-top: auto; padding-top: 12px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
}
/* 价格用蜜橘：暖、跳、一眼看到；不用品牌青绿（青绿在中国语境里偏「跌」） */
.dc-price {
  font-family: var(--f-display);
  font-size: 27px; font-weight: 900; line-height: 1;
  color: var(--coral); letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}
.dc-price .cur { font-size: 15px; margin-right: 1px; font-weight: 700; }
.dc-price .unit { font-family: var(--f-sans); font-size: 11.5px; color: var(--ink-3); font-weight: 500; margin-left: 3px; letter-spacing: 0; }
/* 「圆梦者到手」——把服务费摊开说清楚，避免接了单才发现少钱 */
.dc-net { font-size: 11.5px; color: var(--brand-deep); margin-top: 4px; white-space: nowrap; font-weight: 500; }
.dc-meta {
  font-size: 11.5px; color: var(--ink-3);
  text-align: right; line-height: 1.55;
  display: flex; flex-direction: column; gap: 1px; min-width: 0;
}
.dc-who { color: var(--ink-2); }
.dc-hot { font-variant-numeric: tabular-nums; }

/* ---------- 7. 标签 / 徽章 ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--ink-2); border: 0;
  line-height: 1.6; white-space: nowrap;
}
.tag-brand { background: var(--brand-soft); color: var(--brand-deep); }
.tag-jade { background: var(--jade-soft); color: var(--jade); }
.tag-gold { background: var(--gold-soft); color: #8a6314; }
.tag-danger { background: var(--danger-soft); color: var(--danger); }
.tag-warn { background: var(--warn-soft); color: #8f5a0f; }
.tag-ok { background: var(--ok-soft); color: #0b7357; }
.tag-ink { background: var(--ink); color: #fff; }

.status-dot { width: 7px; height: 7px; border-radius: var(--r-pill); display: inline-block; flex-shrink: 0; }
.dot-published { background: var(--brand); }
.dot-taken, .dot-delivering { background: var(--gold); }
.dot-reviewing, .dot-settling { background: var(--warn); }
.dot-completed { background: var(--ok); }
.dot-closed, .dot-failed { background: var(--ink-4); }

/* 信用分徽章 */
.credit {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700;
  padding: 3px 11px; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--ink-2);
}
.credit .v { font-weight: 900; font-variant-numeric: tabular-nums; }
.credit-a { background: var(--gold-soft); color: #8a6314; }
.credit-b { background: var(--brand-soft); color: var(--brand-deep); }
.credit-c { background: var(--surface-2); color: var(--ink-2); }
.credit-d { background: var(--warn-soft); color: #8f5a0f; }
.credit-e { background: var(--danger-soft); color: var(--danger); }

/* 星级 */
.stars { display: inline-flex; gap: 1px; color: var(--gold); vertical-align: -2px; }
.stars svg { width: 13px; height: 13px; }
.stars .off { color: var(--ink-4); }

/* ---------- 8. 表单 ---------- */
.field { margin-bottom: 18px; }
.field-label {
  display: block; font-size: 13.5px; font-weight: 700;
  margin-bottom: 7px; color: var(--ink);
}
.field-label .req { color: var(--coral); margin-left: 3px; }
.field-hint { font-size: 12px; color: var(--ink-3); margin: 6px 0 0; }

.field-input {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-family: var(--f-sans);
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
  line-height: 1.6;
}
.field-input::placeholder { color: var(--ink-3); }
.field-input:focus {
  outline: 0; border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.field-textarea { resize: vertical; min-height: 96px; line-height: 1.75; }
.field-select { appearance: none; background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235f6268' stroke-width='2.6'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

.field-error { color: var(--danger); font-size: 12.5px; margin: 6px 0 0; }
.field.has-error .field-input { border-color: var(--danger); }

/* 单选卡片组（求物品 / 求服务） */
.radio-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.radio-cards input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card {
  display: block; cursor: pointer;
  border: 1.5px solid var(--line-2); border-radius: var(--r);
  padding: 17px 19px; background: var(--surface);
  transition: all .2s var(--ease);
}
.radio-card:hover { border-color: var(--ink-4); }
.radio-card .t { font-family: var(--f-display); font-size: 16px; font-weight: 900; letter-spacing: -.015em; }
.radio-card .d { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; }
.radio-cards input:checked + .radio-card {
  border-color: var(--brand); background: var(--brand-tint);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.radio-cards input:focus-visible + .radio-card { outline: 2px solid var(--brand); outline-offset: 2px; }

/* 评分单选 */
.rating-radio { display: flex; flex-direction: column; gap: 7px; }
.rating-radio > div { display: flex; align-items: center; gap: 8px; }
.rating-radio input { accent-color: var(--brand); width: 17px; height: 17px; }
.rating-radio label { font-size: 14px; }

/* 表单分组 */
.form-section { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; }
.form-section:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.form-section-title {
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  color: var(--brand-deep); margin-bottom: 14px;
}

/* ---------- 9. 数据展示 ---------- */
/* KPI 不再用 1px 网格线拼「表格墙」，改成独立圆角块 + 间距 */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 12px; }
.kpi {
  background: var(--surface); padding: 20px 22px;
  border-radius: var(--r); box-shadow: var(--sh-1);
}
.kpi .k {
  font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
  color: var(--ink-3); display: block; margin-bottom: 7px;
}
.kpi .v {
  font-family: var(--f-display); font-size: clamp(25px, 3vw, 35px);
  font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums;
  letter-spacing: -.035em;
}
.kpi .v .cur { font-size: 15px; margin-right: 2px; }
.kpi .s { font-size: 12px; color: var(--ink-3); margin-top: 5px; }
.kpi.is-brand .v { color: var(--brand-deep); }
.kpi.is-jade .v { color: var(--jade); }
.kpi.is-gold .v { color: var(--gold); }

/* 表格：去掉 1.5px 黑线表头（货架感的主要来源），改浅灰底 + 圆角 */
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
table.tbl th {
  text-align: left; font-size: 11.5px; font-weight: 700;
  letter-spacing: .02em; color: var(--ink-3);
  background: var(--surface-2);
  padding: 11px 13px; border: 0;
  white-space: nowrap;
}
table.tbl th:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
table.tbl th:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
table.tbl td { padding: 12px 13px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tbl tbody tr { transition: background .16s var(--ease); }
table.tbl tbody tr:hover { background: var(--surface-2); }
table.tbl tbody tr:last-child td { border-bottom: 0; }
table.tbl .num, table.tbl .mono { font-variant-numeric: tabular-nums; }

.tbl-scroll { overflow-x: auto; }

/* 描述定义列表 */
.dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14px; margin: 0; }
.dl dt { color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.dl dd { margin: 0; }

/* ---------- 10. 订单状态时间线 ---------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px; background: var(--line); border-radius: var(--r-pill);
}
.tl-item { position: relative; padding-bottom: 22px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -26px; top: 4px;
  width: 16px; height: 16px; border-radius: var(--r-pill);
  background: var(--surface); border: 3px solid var(--line-2);
  transition: border-color .2s var(--ease);
}
.tl-item.done::before { background: var(--brand); border-color: var(--brand); }
.tl-item.now::before { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft); }
.tl-item .tt { font-size: 14px; font-weight: 700; }
/* 「这件事是谁做的」徽标（本人 / 对方 / 平台）—— 订单时间线每项前面那颗。
   两端同名同义，配色跟身份标签一套：本人=品牌青绿、对方=珊瑚、平台=中性灰。
   ⚠️ 别把 class 简写成 `who`：那个已经被聊天头像占了（`.m-msg .who`）。 */
.who-tag {
  display: inline-block; font-style: normal; font-weight: 800;
  font-size: 10.5px; line-height: 1.7; padding: 0 6px; margin-right: 6px;
  border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-3);
  vertical-align: 1px;
}
.who-tag.is-me { background: var(--brand-soft); color: var(--brand-deep); }
.who-tag.is-other { background: var(--coral-soft); color: var(--coral); }
.who-tag.is-both { background: var(--jade-soft); color: var(--jade); }

/* 「交易记录 · 确定信息」—— 每一步**真正定下来**的事，折叠着放（订单页用）。
   为什么要它：各阶段的操作卡会随状态撤掉（一进「行动」，商榷卡就没了），
   于是流程走完后「当时谈定的方案」就找不回来了。这里只留结果，过程留在聊天里。
   ⚠️ 关着的时候必须显式藏掉 .rec-body：<details> 只是「跳过渲染」内容，
      里面若有 absolute 定位的元素仍会参与排版（同 .att 那条铁律）。 */
.rec-list { background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-1); padding: 2px 16px; }
.rec + .rec { border-top: 1px solid var(--line); }
.rec > summary {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 13px 0; font-size: 13.5px; font-weight: 700; list-style: none;
}
.rec > summary::-webkit-details-marker { display: none; }
.rec > summary .ic { width: 16px; height: 16px; color: var(--brand-deep); flex: none; }
.rec-when { margin-left: auto; font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.rec-caret { color: var(--ink-4); flex: none; transition: transform .18s; }
.rec[open] .rec-caret { transform: rotate(90deg); }
.rec:not([open]) > .rec-body { display: none; }
.rec-body { padding: 0 0 14px; font-size: 13px; color: var(--ink-2); line-height: 1.75; }
.rec-body .rl { display: flex; gap: 10px; padding: 3px 0; }
.rec-body .rl .k { flex: none; width: 78px; color: var(--ink-3); font-size: 12.5px; }
.rec-body .rl .v { min-width: 0; word-break: break-word; }
.rec-body .rl .v b { color: var(--coral); }
.tl-item .td { font-size: 12.5px; color: var(--ink-2); }
.tl-item .time { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); }

/* ---------- 11. 提示条（flash） ---------- */
.flash-stack { position: fixed; top: 78px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: 384px; }
.flash {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--surface); border: 0;
  border-radius: var(--r); padding: 14px 16px;
  box-shadow: var(--sh-2); font-size: 13.5px; line-height: 1.6;
  border-left: 4px solid var(--ink-4);
  animation: flashIn .42s var(--ease-out) both;
}
.flash.success { border-left-color: var(--brand); }
.flash.error { border-left-color: var(--danger); }
.flash.warning { border-left-color: var(--warn); }
.flash .x { margin-left: auto; border: 0; background: none; cursor: pointer; color: var(--ink-3); padding: 0 2px; font-size: 16px; line-height: 1; }
@keyframes flashIn { from { opacity: 0; transform: translateX(24px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- 12. 空状态 ---------- */
/* 去掉虚线框（虚线 = 表单感），改浅底圆角块 */
.empty {
  text-align: left;
  padding: 54px 32px;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  max-width: 580px;
}
.empty .ic { color: var(--ink-4); margin-bottom: 16px; }
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--ink-2); font-size: 14px; margin-bottom: 20px; }

/* ---------- 13. 英雄区（非对称 · 破格） ---------- */
.hero { padding-top: clamp(30px, 4.8vw, 66px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); gap: 46px; align-items: start; }
.hero h1 { margin-bottom: 18px; }
/* 高亮：黑字 + 一道嫩芽绿记号笔，像市集招牌上贴的荧光贴纸。
   用 background 画而不是 ::after + z-index:-1，避免被父级层叠上下文吞掉。 */
.hero h1 .hl {
  color: var(--ink);
  background-image: linear-gradient(var(--lime), var(--lime));
  background-repeat: no-repeat;
  background-size: 100% .30em;
  background-position: 0 90%;
  border-radius: 4px;
  padding: 0 4px;
  margin: 0 -4px;
  white-space: nowrap;
}
.hero-lede { font-size: clamp(15px, 1.5vw, 17px); color: var(--ink-2); max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-stats {
  display: flex; gap: 36px; margin-top: 36px; padding-top: 24px;
  border-top: 1px solid var(--line); flex-wrap: wrap;
}
.hero-stats .s .n { font-family: var(--f-display); font-size: 29px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.hero-stats .s .l { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }

/* 右侧"今日愿望"清单：一张漂浮的白卡 */
.wishlist { border: 0; border-radius: var(--r-lg); background: var(--surface); overflow: hidden; box-shadow: var(--sh-2); }
.wishlist-head {
  padding: 15px 18px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.wishlist-head .t { font-size: 13px; font-weight: 900; font-family: var(--f-display); letter-spacing: -.015em; }
.wishlist-head .live { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ok); font-weight: 600; }
.wishlist-head .live i { width: 6px; height: 6px; border-radius: var(--r-pill); background: var(--ok); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.wish-item {
  display: block; padding: 13px 18px; border-bottom: 1px solid var(--line);
  transition: background .18s var(--ease), padding-left .2s var(--ease);
}
.wish-item:last-child { border-bottom: 0; }
.wish-item:hover { background: var(--brand-tint); padding-left: 22px; }
.wish-item .wt { font-size: 14px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.wish-item .wm { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.wish-item .wp { font-family: var(--f-display); font-weight: 900; color: var(--coral); font-variant-numeric: tabular-nums; margin-left: auto; letter-spacing: -.03em; }

/* ---------- 13.5 首屏三栏（京东热卖式：所有板块 | 平台推荐 | 活动/政策/特色） ----------
   为什么要给首屏一个固定高度：三栏里内容长短不一（左侧品类可能十几行），
   不钉高度的话「最高的那栏」会把另外两栏也撑到同样高，中间的轮播会变得又扁又空。
   钉住高度 + 左栏内部滚动，三栏永远一样高、画面是齐的。 */
.jd-hero {
  display: grid;
  grid-template-columns: 234px minmax(0, 1fr) 218px;
  gap: 14px;
  align-items: stretch;
  height: clamp(330px, 30vw, 410px);
  margin-top: 20px;
}

/* 左：所有板块 */
.cat-panel {
  display: flex; flex-direction: column; min-height: 0;
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--sh-1); overflow: hidden;
}
.cp-head {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px 11px; font-size: 13.5px; font-weight: 900;
  font-family: var(--f-display); letter-spacing: -.015em; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.cp-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 10px 12px; }
.cp-kind { padding: 11px 6px 5px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); letter-spacing: .06em; }
.cp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.cp-item {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 8px; border-radius: var(--r-sm);
  font-size: 13px; color: var(--ink-2);
  transition: background .16s var(--ease), color .16s var(--ease);
}
.cp-item .ic { color: var(--brand); flex-shrink: 0; }
.cp-item .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-item .n { margin-left: auto; font-size: 10.5px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.cp-item:hover { background: var(--brand-tint); color: var(--brand-deep); }

/* 中：平台推荐轮播。
   切换用 radio(:checked) + 兄弟选择器，是纯 CSS 的 —— JS 挂了圆点照样能点、
   第一张照样显示，不会整块白屏。app.js 只做「每 5 秒自动拨一格」的锦上添花。 */
.promo-stage { min-width: 0; }
.promo-frame {
  position: relative; height: 100%;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--sh-2);
}
.promo-frame > input { position: absolute; opacity: 0; pointer-events: none; }
.promo-track, .promo-slide { position: absolute; inset: 0; }
.promo-slide {
  display: flex; align-items: center; gap: 20px;
  padding: 30px 34px;
  opacity: 0; transform: scale(.985);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
#promo-1:checked ~ .promo-track .ps-tint-1,
#promo-2:checked ~ .promo-track .ps-tint-2,
#promo-3:checked ~ .promo-track .ps-tint-3,
#promo-4:checked ~ .promo-track .ps-tint-4 { opacity: 1; transform: none; }
.ps-tint-1 { background: linear-gradient(120deg, var(--brand-tint), #fff 64%); }
.ps-tint-2 { background: linear-gradient(120deg, var(--coral-soft), #fff 64%); }
.ps-tint-3 { background: linear-gradient(120deg, var(--jade-soft), #fff 64%); }
.ps-tint-4 { background: linear-gradient(120deg, var(--gold-soft), #fff 64%); }
.ps-art {
  flex-shrink: 0; width: clamp(88px, 9vw, 132px); height: clamp(88px, 9vw, 132px);
  border-radius: var(--r-xl); display: grid; place-items: center;
  background: var(--surface); box-shadow: var(--sh-1); color: var(--brand);
}
.ps-art .ic { width: 44%; height: 44%; }
.ps-copy { min-width: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ps-kick {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 700; color: var(--brand-deep);
  background: var(--brand-soft);
}
.ps-title {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(19px, 2vw, 27px); line-height: 1.25; letter-spacing: -.03em;
  color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ps-sub {
  font-size: 13.5px; color: var(--ink-2); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ps-meta { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.ps-price {
  font-family: var(--f-display); font-weight: 900; color: var(--coral);
  font-size: clamp(20px, 2vw, 26px); letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.ps-neg {
  font-style: normal; font-size: 11px; font-weight: 700;
  color: var(--coral-deep); background: var(--coral-soft);
  border-radius: var(--r-pill); padding: 2px 9px;
}
.ps-go {
  position: absolute; right: 26px; bottom: 22px;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 700; color: var(--ink-2);
}
.promo-slide:hover .ps-go, .promo-fallback:hover .ps-go { color: var(--brand-deep); }
.promo-dots { position: absolute; left: 34px; bottom: 24px; display: flex; gap: 7px; z-index: 2; }
.promo-dots label {
  width: 7px; height: 7px; border-radius: var(--r-pill); background: var(--ink-4);
  cursor: pointer; transition: width .25s var(--ease), background .25s var(--ease);
}
#promo-1:checked ~ .promo-dots label[for="promo-1"],
#promo-2:checked ~ .promo-dots label[for="promo-2"],
#promo-3:checked ~ .promo-dots label[for="promo-3"],
#promo-4:checked ~ .promo-dots label[for="promo-4"] { width: 20px; background: var(--brand); }
/* 一条需求都没有时的兜底：只讲清这站是干嘛的 */
.promo-fallback {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  align-items: flex-start; justify-content: center;
  height: 100%; padding: 30px 34px; border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--brand-tint), #fff 64%); box-shadow: var(--sh-1);
}

/* 右：活动 / 政策 / 特色 三张卡 */
.promo-stack { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ps-card {
  flex: 1; display: flex; align-items: center; gap: 12px;
  padding: 15px 16px; border-radius: var(--r-lg); box-shadow: var(--sh-1);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.ps-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.ps-card .ps-ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; }
.ps-card .ps-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ps-card .ps-txt b { font-size: 13.5px; font-weight: 800; letter-spacing: -.015em; color: var(--ink); }
.ps-card .ps-txt small { font-size: 11.5px; line-height: 1.45; color: var(--ink-3); }
.ps-guarantee { background: var(--jade); }
.ps-guarantee .ps-ic { background: rgba(255, 255, 255, .14); color: #fff; }
.ps-guarantee .ps-txt b { color: #fff; }
.ps-guarantee .ps-txt small { color: rgba(255, 255, 255, .8); }
.ps-court { background: var(--surface); }
.ps-court .ps-ic { background: var(--gold-soft); color: var(--gold); }
.ps-persona { background: var(--brand-soft); }
.ps-persona .ps-ic { background: var(--surface); color: var(--brand-deep); }

/* ---------- 13.6 需求墙：吸顶筛选条 ----------
   「下拉到需求板块时才出现」靠的就是 position:sticky —— 它本来就在墙的顶部，
   滚到这儿才进入视野，然后一路吸在顶栏下面。is-stuck 只负责补一层
   底色 + 阴影，让「吸住了」这件事看起来是刻意的，而不是悬浮的一排小字。 */
.wall { margin-top: 30px; }
.wall-bar {
  position: sticky; top: 64px; z-index: 50;
  margin: -6px 0 16px;
  border-radius: var(--r-pill);
  background: transparent;
  transition: background .2s var(--ease), box-shadow .2s var(--ease);
}
.wall-bar.is-stuck {
  background: rgba(250, 249, 247, .92);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: var(--sh-1);
}
.wall-bar-inner {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; overflow-x: auto; scrollbar-width: none;
}
.wall-bar-inner::-webkit-scrollbar { display: none; }
.wb-brand {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  padding: 0 8px; font-family: var(--f-display); font-weight: 900;
  font-size: 14px; letter-spacing: -.02em;
}
.wb-brand .ic { color: var(--brand); }
.wb-count { font-size: 12px; font-weight: 700; color: var(--ink-3); }
/* ⚠️ 这里必须 flex:0 0 auto（不许被压缩）。
   踩过的坑：写成 min-width:0 时，窄屏下这一小块被压到 141px，
   里面的 chip 从它身上溢出去接着画；而 .wb-more 的 margin-left:auto
   是按 flex 行的剩余空间算的 —— 行内看起来"还有空间"，
   就把「全部筛选」推到 x=276，正好压在「最新 / 急单」上面，视觉上像筛选项丢了。
   让筛选区按内容定宽、横滑交给外层 .wall-bar-inner，auto 边距在没空间时自然归零，就不会叠。 */
.wb-filters { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.wb-chip {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  padding: 7px 13px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: color .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}
.wb-chip:hover { color: var(--brand-deep); box-shadow: inset 0 0 0 1px var(--brand); }
.wb-chip.on { background: var(--brand); color: #fff; box-shadow: var(--sh-brand); }
.wb-sep { width: 1px; height: 16px; flex-shrink: 0; margin: 0 3px; background: var(--line-2); }
.wb-more {
  margin-left: auto; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 12px; font-size: 12.5px; font-weight: 700; color: var(--ink-2);
}
.wb-more:hover { color: var(--brand-deep); }

/* 窄屏：收掉左右两栏（板块导航走顶部品类条 + 底部 tab，右侧卡片的内容在规则页都有），
   只留中间的推荐轮播铺满 —— 手机上硬塞三栏只会每栏都挤成一条缝。 */
@media (max-width: 1080px) {
  .jd-hero { grid-template-columns: 200px minmax(0, 1fr) 190px; gap: 12px; }
}
@media (max-width: 820px) {
  .jd-hero { grid-template-columns: minmax(0, 1fr); height: auto; }
  .cat-panel, .promo-stack { display: none; }
  .promo-stage { min-height: 250px; }
  .wall-bar { top: 64px; margin-top: 0; }
}
@media (max-width: 560px) {
  .promo-stage { min-height: 230px; }
  .promo-slide { padding: 20px 22px; gap: 14px; }
  .ps-art { display: none; }            /* 小屏让文字独占，别挤 */
  .ps-go { right: 20px; bottom: 16px; }
  .promo-dots { left: 22px; bottom: 18px; }
  .wb-brand { padding: 0 4px; }
}

/* ---------- 14. 筛选栏 ---------- */
.filterbar {
  background: var(--surface); border: 0; border-radius: var(--r-lg);
  padding: 16px 20px; box-shadow: var(--sh-1);
  display: flex; flex-direction: column; gap: 14px;
}
.filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-row .lbl { font-size: 11.5px; font-weight: 700; color: var(--ink-3); width: 52px; flex-shrink: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: var(--r-pill); border: 0;
  background: var(--surface-2); font-size: 13px; font-weight: 500; color: var(--ink-2);
  transition: all .18s var(--ease); cursor: pointer;
}
.chip:hover { background: var(--brand-soft); color: var(--brand-deep); }
.chip.on { background: var(--jade); color: #fff; font-weight: 700; }
.chip.on:hover { color: #fff; }

.price-range { display: flex; align-items: center; gap: 6px; }
.price-range input { width: 88px; padding: 7px 11px; font-size: 13px; }

/* 视图切换 */
.viewtabs { display: inline-flex; border: 0; border-radius: var(--r-pill); padding: 3px; background: var(--surface-2); }
.viewtabs a { padding: 6px 16px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.viewtabs a.on { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: var(--sh-1); }

/* 横向卡片里的「侧边小列」（钱包、价格+按钮 等）。
   宽屏时它靠 min-width 保持一个舒适的小宽度；窄屏换行到独立一行时，
   原来的 min-width 会让它缩成一小块、右边留一大片空白，所以要撑满。 */
.side-stack { display: flex; flex-direction: column; gap: 8px; }
.side-stack-150 { min-width: 150px; }
.side-stack-132 { min-width: 132px; flex-shrink: 0; }

@media (max-width: 560px) {
  .side-stack { width: 100%; min-width: 0; }
  /* 标签多了（概览/钱包/收到的评价/信用分/积分/资料设置）会挤到逐字换行，
     改成一条可横向滑动的胶囊条，保外观不破相。 */
  .viewtabs { overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .viewtabs::-webkit-scrollbar { display: none; }
  .viewtabs a { white-space: nowrap; flex-shrink: 0; }
}

/* ---------- 15. 聊聊 ---------- */
.chat-shell { display: grid; grid-template-columns: 306px minmax(0, 1fr); gap: 0; border: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--sh-1); min-height: 560px; }
.chat-side { border-right: 1px solid var(--line); background: var(--surface-2); overflow-y: auto; max-height: 640px; }
.chat-side-head { padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--ink-3); }
.conv-item { display: flex; gap: 11px; padding: 14px 17px; border-bottom: 1px solid var(--line); transition: background .16s var(--ease); }
.conv-item:hover { background: var(--surface); }
.conv-item.on { background: var(--surface); box-shadow: inset 3px 0 0 var(--brand); }
.conv-item .cb { min-width: 0; flex: 1; }
.conv-item .cn { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.conv-item .ct { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-item .unread { min-width: 19px; height: 19px; border-radius: var(--r-pill); background: var(--coral); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }

.chat-main { display: flex; flex-direction: column; min-height: 460px; max-height: 640px; }
.chat-head { padding: 14px 19px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.chat-body { flex: 1; overflow-y: auto; padding: 22px 19px; display: flex; flex-direction: column; gap: 14px; background: var(--surface-2); }
.bubble-row { display: flex; gap: 9px; align-items: flex-end; }
.bubble-row.me { flex-direction: row-reverse; }
.bubble {
  max-width: 70%; padding: 11px 15px; border-radius: 18px;
  background: var(--surface); border: 0;
  box-shadow: var(--sh-1);
  font-size: 14px; line-height: 1.65; white-space: pre-wrap; word-break: break-word;
}
.bubble-row.me .bubble {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff; border-bottom-right-radius: 6px;
  box-shadow: var(--sh-brand);
}
.bubble-row:not(.me) .bubble { border-bottom-left-radius: 6px; }
.bubble-time { font-size: 10.5px; color: var(--ink-3); margin-top: 5px; }
.chat-foot { border-top: 1px solid var(--line); padding: 13px 17px; background: var(--surface); }
.chat-input {
  width: 100%; border: 1.5px solid var(--line-2); border-radius: var(--r); padding: 11px 15px;
  font-family: var(--f-sans); font-size: 14.5px; resize: none; outline: 0; line-height: 1.6;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.chat-input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.chat-hint { font-size: 11.5px; color: var(--ink-3); margin-top: 7px; display: flex; justify-content: space-between; }

/* ---------- 16. 操作台（详情页右侧粘性） ---------- */
.action-desk { border: 0; border-radius: var(--r-lg); background: var(--surface); overflow: hidden; box-shadow: var(--sh-2); }
.desk-head { padding: 20px; border-bottom: 1px solid var(--line); background: linear-gradient(140deg, var(--coral-soft), var(--surface) 70%); }
.desk-price { font-family: var(--f-display); font-size: 42px; font-weight: 900; line-height: 1; color: var(--coral); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.desk-price .cur { font-size: 21px; }
.desk-price .unit { font-family: var(--f-sans); font-size: 13px; color: var(--ink-3); font-weight: 500; margin-left: 5px; letter-spacing: 0; }
.desk-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.desk-note { background: var(--brand-tint); border: 0; border-radius: var(--r-sm); padding: 12px 14px; font-size: 12.5px; color: var(--brand-deep); line-height: 1.65; }

/* ---------- 17. 详情正文 ---------- */
.article { font-size: 15.5px; line-height: 1.95; color: #2b2b30; }
.article p { margin: 0 0 1.2em; }

.lede-rule { height: 5px; width: 56px; background: var(--brand); border-radius: var(--r-pill); margin: 0 0 20px; }

/* 图片墙 */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
.gallery a { border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 4/3; border: 0; box-shadow: var(--sh-1); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 18. 纠纷法庭 ---------- */
.vs-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.vs-side { padding: 17px; border: 0; border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); }
.vs-side.win { background: var(--ok-soft); box-shadow: 0 0 0 2px var(--ok) inset; }
.vs-side.lose { opacity: .7; }
.vs-mid { font-family: var(--f-display); font-size: 24px; font-weight: 900; color: var(--ink-4); }

.vote-bar { height: 12px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; display: flex; }
.vote-bar .a { background: var(--brand); }
.vote-bar .b { background: var(--coral); }

.evidence {
  border-left: 4px solid var(--line-2); padding: 4px 0 4px 15px; margin-bottom: 16px;
}
.evidence.for-a { border-left-color: var(--brand); }
.evidence.for-b { border-left-color: var(--coral); }
.evidence .head { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 5px; }
.evidence .body { font-size: 14px; color: var(--ink-2); white-space: pre-wrap; }

/* ---------- 19. 页脚 ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 44px 0 36px;
  margin-top: 68px;
}
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 30px; }
.foot-grid h4 { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--ink-3); margin-bottom: 13px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.foot-grid a { color: var(--ink-2); transition: color .16s var(--ease); }
.foot-grid a:hover { color: var(--brand-deep); }
.foot-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-icp { margin-top: 10px; font-size: 12px; color: var(--ink-3); }
.foot-icp a { color: inherit; text-decoration: underline; }

/* ---------- 20. 动效 ---------- */
.reveal { animation: reveal .62s var(--ease-out) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal-1 { animation-delay: .04s; } .reveal-2 { animation-delay: .1s; }
.reveal-3 { animation-delay: .16s; } .reveal-4 { animation-delay: .22s; }
.reveal-5 { animation-delay: .28s; } .reveal-6 { animation-delay: .34s; }

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

/* ---------- 20b. 便捷性组件（闲鱼式体验） ---------- */

/* --- 详情页移动端底部固定操作栏 --- */
.detail-bar {
  display: none;                    /* 桌面端隐藏，靠右侧粘性操作台 */
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -18px rgba(26, 26, 29, .45);
  gap: 10px; align-items: center;
}
.detail-bar .db-main { flex: 1; display: flex; gap: 9px; }
.detail-bar .db-main > * { flex: 1; }
.detail-bar .db-side {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-width: 48px; font-size: 10.5px; color: var(--ink-2);
  text-decoration: none; cursor: pointer; background: none; border: 0; padding: 2px 0;
}
.detail-bar .db-side:hover { color: var(--brand-deep); }
.detail-bar .db-side.on { color: var(--coral); }
.detail-bar .db-side.on .ic { fill: currentColor; }
/* 底部固定栏会盖住页面末尾内容，用一块占位把它顶起来（仅移动端显示） */
.detail-bar-spacer { display: none; }

/* --- 快捷筛选 / 热词 / 搜索历史 --- */
.quick-words { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.quick-words .lbl { font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
/* 「最近搜索」挤在「热门」同一行里，少占一行高度 */
.lane { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.lane .lbl { margin-left: 8px; }
.word-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; border-radius: var(--r-pill); border: 0;
  background: var(--surface-2);
  font-size: 12.5px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: all .18s var(--ease);
}
.word-chip:hover { background: var(--brand-soft); color: var(--brand-deep); }
.word-chip .x { opacity: .45; font-size: 13px; line-height: 1; }
.word-chip .x:hover { opacity: 1; color: var(--danger); }

/* --- 发布页：场景模板 --- */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(186px, 1fr)); gap: 12px; }
.tpl-card {
  display: flex; align-items: flex-start; gap: 11px; text-align: left;
  padding: 14px 15px; border-radius: var(--r);
  border: 1.5px solid var(--line); background: var(--surface);
  cursor: pointer; font: inherit; color: inherit;
  transition: all .2s var(--ease);
}
.tpl-card:hover { border-color: var(--brand); background: var(--brand-tint); transform: translateY(-3px); box-shadow: var(--sh-1); }
.tpl-card .ti {
  width: 34px; height: 34px; border-radius: var(--r-sm); flex-shrink: 0;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-deep);
}
.tpl-card .tt { display: block; font-weight: 700; font-size: 13.5px; }
.tpl-card .td { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }

/* --- 折叠的「高级选项」 --- */
.adv-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 13px 16px; cursor: pointer; font: inherit;
  background: var(--surface-2); border: 0;
  border-radius: var(--r); color: var(--ink-2); font-size: 13.5px;
  transition: all .18s var(--ease);
}
.adv-toggle:hover { background: var(--brand-soft); color: var(--brand-deep); }
.adv-toggle .ic { transition: transform .22s var(--ease); }
.adv-toggle[aria-expanded="true"] .ic { transform: rotate(180deg); }
.adv-body[hidden] { display: none; }
.adv-body { padding-top: 16px; animation: reveal .32s var(--ease-out) both; }

/* --- 「下一步该做什么」引导条 --- */
.next-step {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 16px 18px; border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--sh-1);
  border-left: 5px solid var(--ink-4);
}
.next-step.tone-primary { border-left-color: var(--brand); background: linear-gradient(100deg, var(--brand-soft), var(--surface) 58%); }
.next-step.tone-gold { border-left-color: var(--gold); background: linear-gradient(100deg, var(--gold-soft), var(--surface) 58%); }
.next-step.tone-danger { border-left-color: var(--danger); background: linear-gradient(100deg, var(--danger-soft), var(--surface) 58%); }
.next-step .ns-ic {
  width: 36px; height: 36px; border-radius: var(--r-sm); flex-shrink: 0;
  display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2);
}
.next-step.tone-primary .ns-ic { background: var(--brand); color: #fff; }
.next-step.tone-gold .ns-ic { background: var(--gold); color: #fff; }
.next-step.tone-danger .ns-ic { background: var(--danger); color: #fff; }
.next-step .ns-t { font-weight: 900; font-family: var(--f-display); letter-spacing: -.015em; margin-bottom: 3px; }
.next-step .ns-h { font-size: 13px; color: var(--ink-2); margin: 0; }
.next-step .ns-a { margin-left: auto; flex-shrink: 0; align-self: center; }

/* --- 聊聊快捷短语 --- */
.phrase-row { display: flex; gap: 7px; flex-wrap: wrap; padding: 11px 15px 0; }
.phrase {
  padding: 7px 14px; border-radius: var(--r-pill); cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 500;
  border: 0; background: var(--surface-2); color: var(--ink-2);
  transition: all .16s var(--ease); text-align: left;
}
.phrase:hover { background: var(--brand-soft); color: var(--brand-deep); }

/* --- 收藏页 / 用户主页 头部 --- */
.page-hero {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 24px 26px; border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--brand-tint), var(--surface) 45%, var(--coral-soft));
  border: 0;
  box-shadow: var(--sh-1);
}
.stat-row { display: flex; gap: 28px; flex-wrap: wrap; }
.stat-row .s .n { font-family: var(--f-display); font-size: 25px; font-weight: 900; line-height: 1.1; letter-spacing: -.03em; }
.stat-row .s .l { font-size: 11.5px; color: var(--ink-3); }

/* --- 收藏提示浮层 --- */
.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 400;
  transform: translate(-50%, 14px);
  padding: 11px 22px; border-radius: var(--r-pill);
  background: rgba(26, 26, 29, .94); color: #fff;
  font-size: 13.5px; font-weight: 500; opacity: 0; pointer-events: none;
  box-shadow: var(--sh-2);
  transition: opacity .24s var(--ease), transform .24s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* --- 加载更多 --- */
.load-more-wrap { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- 21. 响应式 ---------- */
@media (max-width: 1080px) {
  .split-8-4, .split-7-5, .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .sticky { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .chat-shell { grid-template-columns: minmax(0, 1fr); }
  .chat-side { max-height: none; border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 820px) {
  .nav, .topbar-search { display: none; }
  /* 顶栏重排（派总 2026-09-24 第 1 条）之后，手机上「小圈子 + 小青柠 + 定位」
     这三样是恒驻的，原来 18px 的间距会把可用宽度 358px 撑爆 —— 先按实测收紧。
     具体到 560px 以下会不会还要再收，靠 shot_round9.js 量完再定，别凭感觉改。 */
  .topbar-inner { gap: 10px; }
  .topbar-circle { height: 32px; padding: 0 10px; font-size: 13px; }
  /* 手机上顶栏塞不下「品牌 + 发布需求 + 两个图标 + 头像」——
     实测品牌 105 + 操作区 274 = 379，而可用宽度只有 358，会把整页撑出横向滚动条。
     底部 tab 栏本来就有「发布」入口，所以这里把顶栏那个收掉，不重复也不挤。
     游客侧的「免费注册」不动：那是没登录时的主要转化入口，而且手机上本来就放得下。 */
  .publish-cta-topbar { display: none; }
  /* 快捷短语在手机上不能折行：它一共 7 条，一折行就吃掉 250px，
     把消息区挤到只剩一百多像素高 —— 等于白做了实时聊天。
     改成一行横向滑动，要用哪条滑过去点。 */
  .phrase-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .phrase-row::-webkit-scrollbar { display: none; }
  .phrase { flex: 0 0 auto; white-space: nowrap; }
  .g-3, .g-4, .g-2, .g-cards { grid-template-columns: minmax(0, 1fr); }
  .hero-stats { gap: 22px; }
  .tabbar { display: block; }
  main { padding-bottom: 24px; }
  .flash-stack { left: 16px; right: 16px; top: 72px; max-width: none; }
  .radio-cards { grid-template-columns: minmax(0, 1fr); }
  .wishlist-head .live { display: none; }
  /* 详情页：底部固定操作栏登场 */
  .detail-bar { display: flex; }
  .detail-bar-spacer { display: block; height: 82px; }
  .next-step { flex-direction: column; }
  .next-step .ns-a { margin-left: 0; align-self: stretch; }
  .next-step .ns-a > * { width: 100%; justify-content: center; }
}

@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .dc-price { font-size: 23px; }
  .brand-sub { display: none; }
  /* 手机窄屏（≤560px）：小圈子入口只留图标，文字让位给「定位」和右侧动作区。
     title="小圈子" 还在，长按/悬停能看到；首页频道条上的「小圈子」chip 也一直在。 */
  .topbar-circle span { display: none; }
  .card, .card-flat { padding: 18px; border-radius: var(--r); }
  .page-hero { padding: 20px; border-radius: var(--r-lg); }
}

/* ---------- 22. 图标（Lucide 内联精灵） ---------- */
.ic {
  width: 16px; height: 16px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  display: inline-block; vertical-align: -2px;
}
.ic-xs { width: 12px; height: 12px; }
.ic-sm { width: 14px; height: 14px; }
.ic-md { width: 18px; height: 18px; }
.ic-lg { width: 22px; height: 22px; }
.ic-xl { width: 30px; height: 30px; }
.ic-2xl { width: 44px; height: 44px; stroke-width: 1.5; }
.ic-fill { fill: currentColor; stroke: none; }

/* ---------- 23. 相关性（为你推荐 / 圆梦画像） ---------- */
/* 这一节是「导购逻辑」的视觉落地，两件事缺一不可：
   ① 卡片上的一行小字「为什么推给你」—— 让推荐可解释，不是黑箱；
   ② 首屏的「圆梦画像」卡 —— 让用户随时能纠正系统对他的判断。
   只推不说是玄学；只说不让改是死板。 */

/* ① 卡片上的推荐理由（数据由 services.explain_match 生成） */
.dc-why { display: flex; flex-wrap: wrap; gap: 4px; }
.why-chip {
  display: inline-flex; align-items: center; gap: 5px;
  max-width: 100%; padding: 3px 9px 3px 7px;
  border-radius: var(--r-pill);
  background: var(--brand-tint); color: var(--brand-deep);
  font-size: 11.5px; font-weight: 700; letter-spacing: .01em;
}
.why-chip .ic { flex-shrink: 0; }
/* 窄卡片上宁可省略号，也不让文字顶破卡片 */
.why-chip > .wt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ② 首屏右侧「圆梦画像」卡：沿用今日愿望那张白卡的壳，保持同一套语言 */
.persona { border-radius: var(--r-lg); background: var(--surface); overflow: hidden; box-shadow: var(--sh-2); }
.persona-head {
  padding: 15px 18px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.persona-head .t {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 900; font-family: var(--f-display); letter-spacing: -.015em;
}
.persona-head .t .ic { color: var(--brand); }
.persona-head .edit { font-size: 12px; font-weight: 700; color: var(--brand-deep); white-space: nowrap; }
.persona-head .edit:hover { text-decoration: underline; }
.persona-lede {
  padding: 13px 18px 0; margin: 0;
  font-size: 12.5px; color: var(--ink-2); line-height: 1.6;
}
.persona-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 11px 18px 0; }
.ptag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 11px; border-radius: var(--r-pill);
  background: var(--brand-soft); color: var(--brand-deep);
  font-size: 12px; font-weight: 700;
}
.ptag.add { background: var(--surface-2); color: var(--ink-2); border: 1px dashed var(--line-2); font-weight: 600; }
.ptag.add:hover { background: var(--brand-tint); color: var(--brand-deep); border-color: var(--brand); }
.persona-meta {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 11px 18px 0; font-size: 12.5px;
}
.persona-meta .lbl { color: var(--ink-3); }
.persona-meta .val { color: var(--ink); font-weight: 600; }
.persona-foot { padding: 14px 18px 16px; }

/* 画像卡里的迷你推荐条目，复用今日愿望的 .wish-item，只多一行「为什么」 */
.wish-item .ww {
  display: flex; align-items: center; gap: 5px; margin-top: 3px;
  font-size: 11.5px; font-weight: 600; color: var(--brand-deep);
}
.wish-item .ww .ic { flex-shrink: 0; }
.wish-item .ww span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ③ 游客版的引导条：把「相关性」这个卖点讲给还没注册的人听 */
.persona-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.persona-cta h3 { margin: 0 0 4px; }
.persona-cta p { margin: 0; max-width: 56ch; }

/* ④ 需求池顶部的「推荐口径」说明：告诉用户这堆结果是怎么排出来的 */
.rec-note {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 15px; border-radius: var(--r-sm);
  background: var(--brand-tint); color: var(--brand-deep);
  font-size: 12.5px; line-height: 1.6;
  margin-bottom: 16px;
}
.rec-note .ic { flex-shrink: 0; color: var(--brand); }
.rec-note .grow { flex: 1; min-width: 180px; }
.rec-note a { font-weight: 700; color: var(--brand-deep); text-decoration: underline; }

/* 排序里的「为你推荐」——给它一点颜色，让默认项一眼认得出 */
.chip.on.is-rec { background: var(--brand); border-color: var(--brand); color: #fff; }

@media (max-width: 560px) {
  .persona-head, .persona-lede, .persona-tags, .persona-meta, .persona-foot { padding-left: 15px; padding-right: 15px; }
  .persona-cta { gap: 12px; }
  .persona-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- 23.5 回到 App 版（只在手机宽度出现） ---------- */
/* 桌面浏览器上完全不显示（display:none），只有 ≤560px 才浮出来。
   用途：给「已经落到网页版」的手机用户一个回家的口子 ——
   App 里现在只剩一个刻意保留的「离开 App · 用电脑版」出口，
   没有这条，点出去就真的回不来了。 */
.back-to-app { display: none; }

@media (max-width: 560px) {
  .back-to-app {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin: 0 12px 10px; padding: 9px 14px;
    font-size: 13px; font-weight: 700; color: var(--brand-deep);
    text-decoration: none;
    background: var(--brand-tint);
    border: 1px solid var(--brand-soft);
    border-radius: var(--r-sm);
  }
  .back-to-app:active { background: var(--brand-soft); }
}

/* ---------- 24. 实时聊天（不刷新发送 / 新消息提示 / 已读回执） ---------- */
/* 这三样是「能聊起来」和「聊不起来」的分界线：
   发一条就整页刷新，人会觉得发丢了；对方回了他看不到，这单就断了。 */

/* ⚠️ 聊天卡片必须自己限定高度，否则「消息区内部滚动」根本不成立：
   .chat-body 是 flex:1 + overflow-y:auto，但父级卡片高度是 auto，
   于是它只会跟着消息一起把整页撑长 —— 实测 scrollHeight === clientHeight === 1906px。
   后果很要命：消息一多，输入框被顶到页面最底部，用户得先滚整页去打字、
   再滚整页回来看回复，来回几次就不想聊了。
   flex 子项要能内部滚动，父级得有确定高度，且子项要 min-height:0。 */
.chat-card {
  position: relative;                       /* 「有新消息 ↓」要绝对定位在它上面 */
  display: flex; flex-direction: column;
  height: min(76vh, 780px);
  min-height: 430px;
}
.chat-card .chat-body { min-height: 0; }
.chat-card .chat-head,
.chat-card .phrase-row,
.chat-card .chat-foot { flex-shrink: 0; }

/* 乐观渲染的临时气泡：等服务端回执一到就换成正式那条 */
.bubble-row.is-pending { opacity: .55; }

/* 已送达 / 已读 —— 吊在消息流最底下，跟自己发的气泡一样靠右 */
.chat-delivery {
  align-self: flex-end;
  font-size: 10.5px; color: var(--ink-3);
  letter-spacing: .02em; margin-top: -6px;
}
.chat-delivery[data-state="read"] { color: var(--brand-deep); }

/* ------------------------------------------------------------------
   订单页里内嵌的「商榷 / 行动」聊天块（2026-09-21 · C 项）
   ------------------------------------------------------------------
   同一个 `.chat-card`，只是矮一截：订单页的主角是订单本身，
   聊天是其中的一段，不能把验收按钮顶到屏幕外面去。
   高度必须在这里限定死 —— 理由和上面 `.chat-card` 那段一样：
   父级不给出确定高度，`.chat-body` 的 overflow 就不生效。 */
.chat-card.is-inline {
  height: min(44vh, 420px);
  min-height: 300px;
}
.talk-tip { font-size: 12.5px; color: var(--ink-3); line-height: 1.75; margin: 0 0 10px; }
.talk-tools { display: flex; gap: 9px; align-items: center; margin-bottom: 8px; }
/* 附件按钮：包一层 <label> 才能把 file input 藏起来还保留「点一下就选文件」 */
.talk-filepick {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 7px 13px; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--ink-2);
  font-size: 12.5px; font-weight: 700;
}
.talk-filepick:hover { background: var(--brand-soft); color: var(--brand-deep); }
.talk-filename { font-size: 12px; color: var(--brand-deep); font-weight: 700; }

/* 附件类气泡：图片 / 视频 / 文件 / 链接。都不套 .bubble —— 
   绿色气泡底上放图片会显得脏，而且图片宽度会被 padding 挤小。 */
.bubble-media img, .bubble-media video {
  max-width: 240px; border-radius: var(--r-sm); display: block;
}
.bubble-file {
  display: flex; gap: 10px; align-items: center;
  padding: 10px 13px; border-radius: var(--r-sm);
  background: var(--surface-2); max-width: 260px;
}
.bubble-file .ic { width: 22px; height: 22px; flex-shrink: 0; color: var(--brand-deep); }
.bubble-file b { display: block; font-size: 12.5px; word-break: break-all; }
.bubble-file span { font-size: 11px; color: var(--ink-3); }
.bubble-link {
  display: inline-flex; gap: 6px; align-items: flex-start;
  font-size: 12.5px; word-break: break-all; text-decoration: underline;
}
.bubble-link .ic { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }
.bubble-cap { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; margin-top: 5px; }

/* 验收不通过的两块（依据 / 诉求）：红底，页面上要显眼 */
.reject-note {
  background: var(--danger-soft); border-radius: var(--r-sm);
  padding: 12px 14px; font-size: 13px; line-height: 1.8; margin-bottom: 10px;
}
.reject-note b { display: block; font-size: 12px; color: var(--danger); margin-bottom: 4px; }

/* 六段进度条（接单 / 商榷 / 行动 / 交付 / 验收 / 放款） */
.stage-bar { display: flex; gap: 6px; margin: 0 0 18px; }
.stage-bar .sg { flex: 1; text-align: center; }
.stage-bar .sg i { display: block; height: 4px; border-radius: var(--r-pill); background: var(--line-2); margin-bottom: 7px; }
.stage-bar .sg.on i { background: var(--brand); }
.stage-bar .sg span { font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.stage-bar .sg.on span { color: var(--brand-deep); }

/* 用户正在往上翻历史时才出现，不抢他的滚动位置 */
.chat-jump {
  position: absolute; left: 50%; bottom: 104px; z-index: 3;
  transform: translateX(-50%);
  padding: 6px 15px; border: 0; cursor: pointer;
  border-radius: var(--r-pill);
  background: var(--brand); color: #fff;
  font-family: var(--f-sans); font-size: 12px; font-weight: 700;
  box-shadow: var(--sh-brand);
  animation: jumpIn .22s var(--ease);
}
@keyframes jumpIn {
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* 手机上还要再矮一点：顶栏 + 底部 tab 栏把可用高度吃掉不少。
   dvh 能跟着地址栏收起/展开变，不支持的浏览器退回 vh。 */
@media (max-width: 820px) {
  .chat-card {
    height: calc(100vh - 290px);
    height: calc(100dvh - 290px);
    min-height: 360px;
  }
  .chat-jump { bottom: 88px; }
}

/* 需求详情页 · 需求方那一栏的「谁在跟我聊」。
   以前这里只有一句「N 人正在聊」的干巴巴文字，点不进去；
   现在把最近几个会话直接列出来，带最后一句和未读点。 */
.owner-chats {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden; margin-bottom: 12px;
}
.oc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 12px; background: var(--brand-tint);
  font-size: 12px; font-weight: 700; color: var(--brand-deep);
}
.oc-head span { display: inline-flex; align-items: center; gap: 5px; }
.oc-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border-top: 1px solid var(--line);
  color: inherit; text-decoration: none;
  transition: background .18s var(--ease);
}
.oc-item:hover { background: var(--surface-2); }
.oc-item.has-unread { background: var(--brand-tint); }
.oc-body { flex: 1; min-width: 0; }
.oc-name { display: block; font-size: 12.5px; font-weight: 600; }
.oc-last {
  display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 1px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.oc-dot {
  width: 8px; height: 8px; border-radius: var(--r-pill); flex-shrink: 0;
  background: var(--coral); box-shadow: 0 0 0 3px var(--coral-soft);
}
.oc-more {
  display: block; padding: 8px 12px; border-top: 1px solid var(--line);
  font-size: 11.5px; font-weight: 700; color: var(--brand-deep); text-align: center;
}
.oc-more:hover { background: var(--surface-2); }

/* ---------- 25. 发布向导（11 步） ----------
   大白话：11 步不是 11 个页面，是**一张表单分 11 段显示**。
   所以这里的 CSS 有两件事最关键：
     ① `.wiz-js .wiz-step:not(.is-on){display:none}` —— 只有 JS 在场时才收步骤。
        没有 JS 时 11 段会平铺出来（退化成原来那张长表单），用户照样能发需求。
        ⚠️ 千万别把 `.wiz-step` 默认写成 display:none：那样 JS 一挂，页面就空白了。
     ② 底部导航吸底，手机上「下一步」永远在手边，不用一路滚。
*/
.split-6-4 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }

/* --- 草稿提示条（「你上次没填完」）---
   只在真的存着草稿时才出现，而且默认**只提示不铺开** —— 点「继续填写」才动表单。
   为什么用青绿而不是警告色：它不是错误，是「我们替你留着了」这句好消息。 */
.draft-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--brand-tint); border-radius: var(--r);
  padding: 14px 18px; margin-bottom: 18px; box-shadow: var(--sh-1);
  color: var(--brand-deep);
}
.draft-bar.is-resuming { background: var(--brand-soft); }
.draft-bar > .ic { flex-shrink: 0; }
.db-text { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 3px; }
.db-text b { color: var(--ink); font-size: 14px; }
.db-text .dim { font-size: 13px; }
.db-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.db-acts form { display: flex; margin: 0; }

.wiz-head { margin-bottom: 18px; }
.wiz-head h1 { margin-bottom: 10px; }

/* --- 顶部进度 --- */
.wiz-progress { position: sticky; top: 64px; z-index: 40; margin-bottom: 18px; }
.wp-bar { display: flex; gap: 3px; }
.wp-seg {
  flex: 1; height: 4px; border-radius: var(--r-pill);
  background: var(--line-2); transition: background .25s var(--ease);
}
.wp-seg.is-done { background: var(--brand); }
.wp-seg.is-on { background: var(--coral); }
.wp-text {
  display: flex; align-items: baseline; gap: 10px; margin-top: 8px;
  font-size: 13px; color: var(--ink-2);
}
.wp-text b { font-family: var(--f-display); font-weight: 900; color: var(--ink); letter-spacing: -.015em; }

/* --- 步骤 --- */
.wiz-step {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 34px);
  box-shadow: var(--sh-1);
  margin-bottom: 16px;
}
.wiz-js .wiz-step:not(.is-on) { display: none; }

.ws-head { margin-bottom: 20px; }
.ws-no {
  display: inline-block; font-family: var(--f-display); font-weight: 900;
  font-size: 12px; letter-spacing: .14em; color: var(--brand-deep);
  background: var(--brand-soft); border-radius: var(--r-pill);
  padding: 3px 11px; margin-bottom: 10px;
}
.ws-title {
  font-family: var(--f-display); font-weight: 900; letter-spacing: -.025em;
  font-size: clamp(21px, 2.6vw, 29px); line-height: 1.2; margin: 0 0 8px;
}
.ws-sub { font-size: 13.5px; line-height: 1.75; color: var(--ink-2); margin: 0; max-width: 68ch; }
.ws-sub b { color: var(--ink); }
.ws-body { min-width: 0; }
.ws-subhead {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin-bottom: 10px; font-size: 13.5px;
}
.ws-subhead b { font-family: var(--f-display); font-weight: 900; letter-spacing: -.015em; }
.ws-tip {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 16px; padding: 11px 14px; border-radius: var(--r-sm);
  background: var(--brand-tint); color: var(--ink-2);
  font-size: 12.5px; line-height: 1.7;
}
.ws-tip .ic { flex-shrink: 0; margin-top: 2px; color: var(--brand-deep); }

/* --- 单选卡片：2 / 3 / 4 列 --- */
.radio-cards-lg .radio-card { padding: 26px 22px; }
.radio-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.radio-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.radio-cards-3 .radio-card .t,
.radio-cards-4 .radio-card .t { font-size: 14.5px; }

/* --- 图片点选网格 --- */
.pick-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
}
.pick { position: relative; display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick .ph {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--r-sm); background: var(--surface-2);
  aspect-ratio: 4 / 3;
  border: 2px solid transparent; transition: border-color .18s var(--ease);
}
.pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick .nm {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 8px 5px;
  font-size: 11px; font-weight: 700; color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, .62), transparent);
}
.pick .hit-hit {
  position: absolute; top: 6px; left: 6px; padding: 2px 7px; border-radius: var(--r-pill);
  background: var(--lime); color: #2b3200; font-size: 10px; font-weight: 700;
}
.pick:hover .ph { border-color: var(--ink-4); }
.pick input:checked + .ph { border-color: var(--brand); box-shadow: var(--sh-brand); }
.pick input:checked + .ph::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(0, 189, 166, .16);
}
.pick input:focus-visible + .ph { outline: 2px solid var(--brand); outline-offset: 2px; }

.upload-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.upload-preview img {
  width: 76px; height: 76px; object-fit: cover;
  border-radius: var(--r-xs); box-shadow: var(--sh-1);
}

/* --- 胶囊 / 标签选择 --- */
.chip-row { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.chip-row-wrap { flex-wrap: wrap; overflow: visible; }
.chip-btn { border: 0; font: inherit; cursor: pointer; }
.chip-check { position: relative; display: inline-flex; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check > span {
  display: inline-block; padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--ink-2);
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.chip-check:hover > span { background: var(--brand-soft); color: var(--brand-deep); }
.chip-check input:checked + span { background: var(--jade); color: #fff; }
.chip-check input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.chip-check input:disabled + span { opacity: .42; cursor: not-allowed; }

/* --- 第 8 步：交期快捷 --- */
.day-quick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.field-range { width: 100%; accent-color: var(--brand); }
.field-range::-webkit-slider-thumb { cursor: pointer; }

/* --- 第 9 步：地址 --- */
.addr-list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.addr-card { position: relative; display: block; cursor: pointer; }
.addr-card input { position: absolute; opacity: 0; pointer-events: none; }
.addr-card .ac-body {
  display: block; padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 2px solid transparent;
  transition: border-color .16s var(--ease), background .16s var(--ease);
}
.addr-card:hover .ac-body { background: var(--brand-tint); }
.addr-card input:checked + .ac-body { border-color: var(--brand); background: var(--brand-tint); }
.ac-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.ac-line {
  display: block; font-size: 12px; color: var(--ink-2); margin-top: 3px; line-height: 1.6;
}
.check-line { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin-top: 12px; cursor: pointer; }
.check-line-lg {
  margin: 16px 0 4px; padding: 13px 16px; border-radius: var(--r-sm);
  background: var(--warn-soft); font-weight: 600;
}

/* --- 第 10 步：已选来源地 --- */
.rg-picked { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; min-height: 30px; }
.rg-picked .chip.on { background: var(--jade); color: #fff; }

/* --- 第 11 步：加急 --- */
.urgent-box { position: relative; display: block; cursor: pointer; }
.urgent-box input { position: absolute; opacity: 0; pointer-events: none; }
.urgent-box .ub-body {
  display: block; padding: 18px 20px; border-radius: var(--r);
  background: var(--surface-2); border: 2px solid transparent;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.urgent-box:hover .ub-body { background: var(--brand-tint); }
.urgent-box input:checked + .ub-body { border-color: var(--coral); background: var(--coral-soft); }
.ub-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ub-top b { font-family: var(--f-display); font-weight: 900; font-size: 15.5px; letter-spacing: -.015em; }
.ub-price {
  padding: 2px 10px; border-radius: var(--r-pill);
  background: var(--coral); color: #fff; font-size: 11.5px; font-weight: 700;
}
.ub-line { display: block; font-size: 12.5px; line-height: 1.7; color: var(--ink-2); margin-top: 6px; }
.ub-calc { font-family: var(--f-mono); font-weight: 700; color: var(--coral-deep); }

/* --- 第 6 步：建议出价 --- */
.suggest-box {
  border-radius: var(--r); background: var(--brand-tint);
  padding: 16px 18px; border: 1px dashed var(--brand);
}
.sb-head { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; font-size: 13.5px; }
.sb-body { font-size: 13px; line-height: 1.7; }
.sb-src { margin: 10px 0 0; line-height: 1.6; }
.sb-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.sb-price .v {
  font-family: var(--f-display); font-weight: 900; font-size: 27px;
  color: var(--coral); letter-spacing: -.03em;
}
.sb-range { font-size: 12px; color: var(--ink-2); }
.sb-basis { margin: 9px 0 0; padding-left: 16px; font-size: 12px; color: var(--ink-2); line-height: 1.75; }
.sb-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 11px; }
.sb-actions .btn { padding: 5px 13px; font-size: 12.5px; }

/* --- 第 13 步：付钱摘要 --- */
.pay-summary { display: grid; gap: 10px; }
.ps-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 11px 15px; border-radius: var(--r-sm); background: var(--surface-2);
  font-size: 13.5px;
}
.ps-row .k { color: var(--ink-2); }
.ps-row .v { font-family: var(--f-mono); font-weight: 700; }
.ps-row.is-total {
  background: var(--jade-soft); font-size: 15px;
}
.ps-row.is-total .k { color: var(--jade); font-weight: 700; }
.ps-row.is-total .v {
  font-family: var(--f-display); font-weight: 900; font-size: 24px;
  color: var(--coral); letter-spacing: -.025em;
}
.ps-row.is-soft { background: transparent; padding: 4px 2px; }
.pay-note {
  display: flex; gap: 9px; margin-top: 16px; padding: 13px 16px;
  border-radius: var(--r-sm); background: var(--warn-soft);
  color: var(--ink-2); font-size: 12.5px; line-height: 1.75;
}
.pay-note .ic { flex-shrink: 0; margin-top: 2px; color: var(--warn); }
.pay-note b { color: var(--danger); }

/* --- 底部导航 --- */
.wiz-nav {
  position: sticky; bottom: 12px; z-index: 45;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: var(--sh-2);
}
.wn-mid { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.wn-dots { display: flex; gap: 4px; }
.wn-dot {
  width: 5px; height: 5px; border-radius: var(--r-pill); background: var(--line-2);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.wn-dot.is-done { background: var(--brand); }
.wn-dot.is-on { background: var(--coral); transform: scale(1.7); }
.wiz-nav [data-wiz-prev] .ic { transform: rotate(180deg); }
.wiz-submit { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 16px; }

/* 提交前 JS 会把焦点跳到第一个没填对的步骤，这里给它一个明显的落点 */
.wiz-step.is-bad { box-shadow: 0 0 0 3px var(--danger-soft), var(--sh-1); }

/* --- 响应式 --- */
@media (max-width: 1080px) {
  .radio-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .split-6-4 { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .radio-cards-3 { grid-template-columns: minmax(0, 1fr); }
  .wiz-progress { top: 56px; }
  .wiz-step { border-radius: var(--r); padding: 18px 16px; }
  .wiz-nav { bottom: 8px; padding: 10px 12px; border-radius: var(--r); }
  .pick-grid { grid-template-columns: repeat(auto-fill, minmax(106px, 1fr)); }
}
@media (max-width: 560px) {
  .radio-cards-lg .radio-card { padding: 18px 16px; }
  .radio-cards-4 { grid-template-columns: minmax(0, 1fr); }
  .wiz-nav .tiny { display: none; }
  .wiz-nav .btn { padding: 9px 16px; font-size: 13.5px; }
}

/* ---------- 顶栏在手机宽度下的收窄（2026-09-22 补） ----------
   为什么要单独写：2026-09-22 给顶栏加了「📍城市」胶囊之后，这一行在手机宽度下**塞不下了**。
   实测（390px 视口，Edge 真浏览器量 getBoundingClientRect）：
     可用宽度 = 390 − 两侧 padding 16×2 = 358
     登录态  = 品牌 105 + 间距 18 + 城市胶囊 87  + 间距 18 + 操作区 151 = 379  ⇒ 溢出 21px
     游客态  = 品牌 105 + 间距 18 + 城市胶囊 114 + 间距 18 + 操作区 158 = 413  ⇒ 溢出 55px
   （游客态更宽：胶囊显示「选择城市」、操作区是「登录 + 免费注册」。）
   后果不是「有点挤」，而是**每一个网页版页面都被撑出横向滚动条**（docScrollWidth 395 > 390）——
   上面 @media (max-width: 820px) 那段注释里说的「手机上本来就放得下」，在城市胶囊加进来之后不成立了。

   取舍：手机上**藏掉品牌文字、只留印章**。
   理由是「当前城市」是能操作的信息（点它换城市），而品牌名是装饰 —— 印章上的「圆」已经足够认人。
   改完必须重跑 `scripts/verify_layout.js`（36 项，含 390px 视口）复核，别再靠估算。 */
@media (max-width: 560px) {
  .topbar-inner { gap: 12px; }
  .brand-text { display: none; }
  .topbar-actions { gap: 8px; }
  /* 游客侧的「免费注册」是主要转化入口**不能藏**，那就把它自己收窄一点 */
  .topbar-actions .publish-cta { padding: 9px 13px; font-size: 13.5px; }
}

/* ======================================================================
   图片轮播（翻页看图）  ——  2026-09-22 新增
   ----------------------------------------------------------------------
   为什么自己写而不引轮播库：一个库 = 一个外网依赖 + 几十 KB，
   而这里要的只是「横着划能翻页」。浏览器自带的 scroll-snap 就能做到：
   手指一划滚一屏、松手自动吸住 —— **而且没有 JS 也能划**。

   箭头 / 页码 / 圆点都只是**装点**：只有 JS 初始化成功才显示（容器加 .is-ready），
   所以 JS 挂了也不会露出「点得动但没反应」的按钮。
   只有一张图时整套装点全部藏掉 —— 翻不动的东西露出来只会让人以为坏了。
   ====================================================================== */
.carousel {
  position: relative; overflow: hidden;
  border-radius: var(--r-sm); background: var(--surface-2);
}
.carousel-track {
  display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;                 /* Firefox：藏掉横滑条 */
}
.carousel-track::-webkit-scrollbar { display: none; }   /* Chrome / Edge */
.carousel-slide {
  flex: 0 0 100%; margin: 0; scroll-snap-align: center;
  aspect-ratio: 4 / 3; background: var(--surface-2);
}
.carousel-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }

.carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 34px; height: 34px; padding: 0; border: 0; border-radius: var(--r-pill);
  /* 深色半透明底 + 白图标：白底圆钮在浅色商品图上根本看不出来（实测踩到） */
  background: rgba(6, 37, 33, .45); color: #fff;
  display: none; align-items: center; justify-content: center;
  box-shadow: var(--sh-1); cursor: pointer;
}
.carousel-nav.prev { left: 10px; }
.carousel-nav.next { right: 10px; }
/* 只有一个 chev-right 图标可用，左箭头把它镜像一下就行 */
.carousel-nav.prev .ic { transform: scaleX(-1); }
.carousel-nav[disabled] { opacity: .3; cursor: default; }

.carousel-count {
  position: absolute; right: 10px; bottom: 10px; z-index: 2; display: none;
  padding: 3px 10px; border-radius: var(--r-pill);
  background: rgba(6, 37, 33, .6); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
}

.carousel-dots {
  position: absolute; left: 0; right: 0; bottom: 11px; z-index: 2;
  display: none; justify-content: center; gap: 6px;
}
.carousel-dot {
  flex: none; width: 6px; height: 6px; padding: 0; border: 0;
  border-radius: var(--r-pill); background: rgba(255, 255, 255, .78); cursor: pointer;
  box-shadow: 0 0 0 1px rgba(6, 37, 33, .2);   /* 浅色图上白点会隐身，描一圈细边 */
  transition: width .18s ease, background .18s ease;
}
.carousel-dot.is-on { width: 16px; background: var(--brand); }

.carousel.is-ready .carousel-nav { display: flex; }
.carousel.is-ready .carousel-count { display: block; }
.carousel.is-ready .carousel-dots { display: flex; }
.carousel.is-single .carousel-nav,
.carousel.is-single .carousel-count,
.carousel.is-single .carousel-dots { display: none !important; }

/* ======================================================================
   发布页「附图」抽屉  ——  2026-09-22 改版
   ----------------------------------------------------------------------
   改之前：第 3 步一进来就把 8 张备选素材全部平铺，手机上一屏全是图，
   还没填正文就先被图片淹了（派总原话：「备选图片不用一股脑全部展示」）。
   改之后：默认只露一个「附图」按钮；点开才是两个动作 —— 推荐图片 / 上传图片。

   为什么用 <details> 而不是 JS 弹窗：**没有 JS 也能开合**，
   不会出现「按钮在那儿，点了没反应」这种半死状态。
   ====================================================================== */
.att {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); overflow: hidden;
}
.att > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; font-size: 15px; font-weight: 700;
}
.att > summary::-webkit-details-marker { display: none; }
.att > summary .ic { width: 19px; height: 19px; color: var(--brand-deep); flex: none; }
.att-count { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.att-count.is-on { color: var(--brand-deep); }

/* ⚠️ 铁律：<details> 关着的时候，里面 position:absolute 的浮层**仍然参与排版**，
   会把页面撑高、还可能挡住别的东西 ⇒ 关着时必须整块 display:none。 */
.att:not([open]) > .att-body,
.att:not([open]) > .att-panel { display: none; }
.att-body { padding: 0 16px 16px; display: grid; gap: 10px; }
.att-panel { padding: 12px 0 2px; }

/* 两个动作：一个是 details 的 summary（推荐图片，会展开），一个是 label（上传图片，直接选文件）。
   两者长得必须一样 —— 用户看不出「这两个是不同东西」，只看到两个并排的入口。 */
.att-act {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface-2); cursor: pointer; text-align: left;
}
.att-act:hover { background: var(--brand-tint); }
.att-act > .ic { width: 19px; height: 19px; color: var(--brand-deep); flex: none; }
.att-act .tx { flex: 1; min-width: 0; }
.att-act .tx b { display: block; font-size: 14.5px; font-weight: 700; }
.att-act .tx span { display: block; font-size: 12.5px; font-weight: 400; color: var(--ink-2); }
.att-act .chev { width: 17px; height: 17px; color: var(--ink-4); flex: none; }
.att-sub[open] > .att-act .chev { transform: rotate(180deg); }


/* ======================================================================
   品牌资产（运营后台 /manage/brand/  ·  2026-09-23）
   ----------------------------------------------------------------------
   只服务这一页与它包含的品牌手册：色板方块、标志预览台、配比条。
   手册正文在 templates/partials/_brand_manual.html，会在两个地方渲染 ——
   「网页版页内」和「离线下载的独立 HTML」。离线那份自带一套等价样式
   （见 scripts/build_brand_manual.py），所以这里只放网页版需要的观感。
   ====================================================================== */
.bm-swatch { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.bm-swatch .box { border-radius: var(--r-sm); height: 66px; box-shadow: var(--sh-1); }
.bm-swatch .meta { margin-top: 9px; }
.bm-chip {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 16px; display: flex; align-items: center; justify-content: center; min-height: 136px;
}
/* 深底预览台：用担保色的深块，跟品牌深青绿同一档明度，才看得出对比够不够 */
.bm-chip.dark { background: var(--jade); border-color: transparent; }
.bm-chip img { max-width: 100%; max-height: 104px; width: auto; height: auto; }
.bm-ratio { display: flex; height: 36px; border-radius: var(--r-pill); overflow: hidden; box-shadow: var(--sh-1); }
.bm-ratio span { display: grid; place-items: center; font-size: 11.5px; font-weight: 700; color: #fff; }
.bm-spec { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; align-items: baseline; }
.bm-spec dt { font-weight: 700; font-size: 13.5px; }
.bm-spec dd { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.bm-list { margin: 0; padding-left: 20px; line-height: 1.95; }
.bm-list li { font-size: 14px; color: var(--ink-2); }

/* ==================================================================
   圆梦单六步：方案 / 交付 / 验收（2026-09-24）
   ------------------------------------------------------------------
   以前「行动」和「交付」挤在同一张卡里（一边聊天一边铺交付表单），
   需求方看不出圆梦者是否做完。现在六步各自成块，各有各的时间戳；
   沟通记录只留一个窗口，用阶段分隔条切段。
   ================================================================== */

/* 聊天窗里的阶段分隔条：- 以下为交付环节 - */
.talk-sep { display: flex; align-items: center; gap: 12px; margin: 10px 0 2px; }
.talk-sep::before, .talk-sep::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.talk-sep span {
  font-size: 11px; font-weight: 800; letter-spacing: .04em;
  color: var(--brand-deep); background: var(--brand-tint);
  padding: 3px 11px; border-radius: var(--r-pill); white-space: nowrap;
}

/* -- 方案卡（商榷阶段：圆梦者交、需求方认可）-- */
.plan-card { background: var(--brand-tint); border-radius: var(--r); padding: 16px 18px; margin-bottom: 18px; }
.plan-card h4 { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 900; color: var(--brand-deep); margin: 0 0 9px; }
.plan-card h4 .ic { width: 15px; height: 15px; }
.plan-card .plan-time { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.plan-body { font-size: 14px; line-height: 1.85; white-space: pre-wrap; color: var(--ink); word-break: break-word; }
.plan-imgs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.plan-imgs a { width: 92px; height: 92px; border-radius: var(--r-sm); overflow: hidden; }
.plan-imgs img { width: 100%; height: 100%; object-fit: cover; }
.plan-agreed { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12.5px; font-weight: 800; color: var(--ok); }
.plan-agreed .ic { width: 14px; height: 14px; }

/* -- 快递三选一：去发货 / 扫码 / 无需快递 -- */
.ship-modes { display: flex; gap: 8px; }
.ship-modes label { flex: 1; position: relative; }
.ship-modes input { position: absolute; opacity: 0; pointer-events: none; }
.ship-modes span {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 6px; border-radius: var(--r-sm); background: var(--surface-2);
  font-size: 13px; font-weight: 800; color: var(--ink-2); cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.ship-modes .ic { width: 15px; height: 15px; }
.ship-modes input:checked + span { background: var(--brand); color: #fff; box-shadow: var(--sh-brand); }
.ship-panel { margin-top: 12px; }
/* ⚠️ 只有 JS 接管之后才折叠面板；没 JS 时三块全铺开，功能一个不少。 */
.ship.is-js .ship-panel { display: none; }
.ship.is-js .ship-panel.on { display: block; }
.ship-tip { font-size: 12px; line-height: 1.7; color: var(--ink-3); margin: 8px 0 0; }
.ship-tip b { color: var(--ink-2); }
.gen-row { display: flex; gap: 10px; align-items: flex-end; }
.gen-row .field { flex: 1; margin-bottom: 0; }

/* -- 如实说明块（例：这个单号是平台生成的参考号）-- */
.warn-note {
  display: flex; gap: 9px; align-items: flex-start;
  background: var(--warn-soft); border-radius: var(--r-sm);
  padding: 11px 13px; font-size: 12.5px; line-height: 1.7; color: var(--ink-2);
}
.warn-note .ic { width: 15px; height: 15px; color: var(--warn); flex-shrink: 0; margin-top: 2px; }
.warn-note b { color: var(--ink); }

/* -- 收发件人 -- */
.party-box { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.party-box .p { background: var(--surface-2); border-radius: var(--r-sm); padding: 11px 13px; font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.party-box .p b { display: block; font-size: 11.5px; font-weight: 800; color: var(--ink-3); margin-bottom: 3px; }
.party-box .p span { display: block; font-size: 12px; color: var(--ink-3); }
@media (max-width: 560px) { .party-box { grid-template-columns: 1fr; } }

/* -- 附件清单（交付 / 验收佐证）-- */
.file-list { display: grid; gap: 9px; margin-top: 12px; }
.file-list a {
  display: flex; gap: 10px; align-items: center; padding: 10px 13px;
  background: var(--surface-2); border-radius: var(--r-sm);
  transition: background .15s var(--ease);
}
.file-list a:hover { background: var(--brand-tint); }
.file-list .ic { width: 20px; height: 20px; color: var(--brand-deep); flex-shrink: 0; }
.file-list b { display: block; font-size: 13px; font-weight: 700; word-break: break-all; }
.file-list small { font-size: 11.5px; color: var(--ink-3); }

/* -- 验收佐证展示 -- */
.ev-box { background: var(--surface-2); border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 12px; }
.ev-box .hd { font-size: 11.5px; font-weight: 800; color: var(--ink-3); margin-bottom: 6px; }
.ev-box .tx { font-size: 13.5px; line-height: 1.75; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }

/* 扫码取景框 */
.scan-box { margin-top: 12px; }
.scan-box video { width: 100%; max-width: 360px; border-radius: var(--r-sm); background: #000; display: block; }
.scan-box canvas { display: none; }

/* ======================================================================
   圈子（社区）· 网页版
   ----------------------------------------------------------------------
   ⚠️ 这一段与 m.css 的「圈子（社区）· 手机端」**成对存在** —— 改任何一条
   都要同步另一份（两端一致性的病只有成对维护能防）。类名两边一致（pc-* / cc-* / pb-*），
   差别只在容器宽度与栅格断点。
   ---------------------------------------------------------------------- */
.wrap-narrow { max-width: 860px; }
.wb-chip-circle {
  /* 圈子是一块内容场不是筛选项（跟 App 端 m-ftab 同一口径）：
     选中 = 品牌实底白字（.on 继承 wb-chip.on），未选中 = 普通胶囊 + 品牌色图标，
     保证「选中/没选中」一眼分得清（派总 2026-09-24 第 2 条）。 */
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--ink-2);
}
.wb-chip-circle .ic { color: var(--brand); }
.wb-chip-circle.on { background: var(--brand); color: #fff; box-shadow: var(--sh-brand); }
.wb-chip-circle.on .ic { color: #fff; }

.pc-head { display: flex; align-items: flex-end; gap: 10px; margin: 2px 0 12px; }
.pc-head h1 { margin: 0; font-size: 24px; }
.pc-head p { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }
.pc-head > div { flex: 1; min-width: 0; }
.pc-new {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--brand); color: #fff; font-size: 13px; font-weight: 800;
  flex-shrink: 0;
}
.pc-cats { display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.pc-cats::-webkit-scrollbar { display: none; }
.pc-cat {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 13px; border-radius: var(--r-pill); flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--line-2);
  color: var(--ink-2); font-size: 13px; font-weight: 700;
}
.pc-cat.on { background: var(--jade); border-color: var(--jade); color: #fff; }
.pc-tabs { display: flex; gap: 16px; margin: 0 2px 12px; align-items: center; }
.pc-tab { font-size: 14px; font-weight: 800; color: var(--ink-3); padding: 3px 0; }
.pc-tab.on { color: var(--ink); }
.pc-tab.on::after { content: ''; display: block; height: 3px; margin-top: 2px; border-radius: 2px; background: var(--brand); }

.pc-feed { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.pc-col { display: grid; gap: 14px; align-content: start; }
@media (min-width: 900px) {
  .pc-feed { grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
}

.pc-card {
  position: relative; background: var(--surface);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-1);
}
.pc-card-link { position: absolute; inset: 0; z-index: 1; }
.pc-card-media { position: relative; background: var(--surface-2); }
.pc-card-media img { width: 100%; display: block; }
/* 视频帖封面：同 m.css —— 压成 3:4 封面裁切，别让原始分辨率把瀑布流撑爆 */
.pc-card-media video {
  width: 100%; display: block;
  aspect-ratio: 3 / 4; object-fit: cover; background: #101418;
}
.pc-card-kind {
  position: absolute; left: 8px; top: 8px;
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 8px; border-radius: var(--r-pill);
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; font-weight: 800;
}
.pc-card-cover {
  aspect-ratio: 4 / 3; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--brand-tint), var(--brand-soft));
  color: var(--brand-deep);
}
.pc-card-cover .stack { display: grid; gap: 4px; justify-items: center; font-size: 13px; }
.pc-card-body { padding: 10px 12px 12px; }
.pc-card-title {
  margin: 0; font-size: 14px; line-height: 1.45; font-weight: 700; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-card-circle {
  display: inline-flex; align-items: center; gap: 3px; margin-top: 6px;
  font-size: 11px; color: var(--brand-deep); background: var(--brand-tint);
  padding: 2px 8px; border-radius: var(--r-pill); font-weight: 700;
}
.pc-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 6px; }
/* 评论数（2026-09-30 W3，两端共用 _post_card.html）：列表上就能看出「有没有人在聊」 */
.pc-card-cm { display: inline-flex; align-items: center; gap: 2px; font-size: 10.5px; color: var(--ink-3); flex-shrink: 0; }
.pc-card-cm .ic { width: 11px; height: 11px; }
.pc-card-by { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 11.5px; color: var(--ink-3); }
.pc-card-by b { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-card-by .av, .pcp-head .av {
  width: 20px; height: 20px; border-radius: var(--r-pill); object-fit: cover; flex-shrink: 0;
  background: var(--brand-soft); color: var(--brand-deep);
  display: grid; place-items: center; font-size: 10px; font-weight: 900; overflow: hidden;
}
.av-lg { width: 44px !important; height: 44px !important; font-size: 17px !important; }
.pc-like { position: relative; z-index: 2; margin: 0; }
.pc-like button {
  display: inline-flex; align-items: center; gap: 3px;
  border: 0; background: none; padding: 3px 4px; color: var(--ink-3);
  font-size: 12px; font-weight: 800; cursor: pointer;
}
.pc-like button i { font-style: normal; }
.pc-like.on button { color: var(--danger, #e2522f); }

.pc-poster { position: relative; display: grid; align-content: center; gap: 8px; aspect-ratio: 4 / 5; padding: 18px 16px; }
.pc-poster b { font-size: 19px; line-height: 1.35; }
.pc-poster span { font-size: 12.5px; line-height: 1.7; opacity: .82; }
.pc-poster i { position: absolute; left: 16px; right: 16px; bottom: 12px; font-style: normal; font-size: 10.5px; opacity: .65; }
.pc-poster-mini { aspect-ratio: 16 / 10; padding: 12px; }
.pc-poster-mini b { font-size: 14px; }
.pc-poster-mini span { font-size: 10.5px; }
.pc-poster-full { aspect-ratio: auto; min-height: 340px; margin: 14px 0; border-radius: var(--r-lg); }
.pc-poster-full b { font-size: 26px; }
.pc-poster-full span { font-size: 15px; }
.pc-lime { background: linear-gradient(160deg, #d4f14a, #a8e063); color: #123b0e; text-align: center; }
.pc-ink { background: linear-gradient(160deg, #23262b, #0f1114); color: #f4f2ec; }
.pc-paper { background: #f7f3ea; color: #2c2a26; text-align: center; box-shadow: inset 0 0 0 1px #e2dccb; }
.pc-sunset { background: linear-gradient(160deg, #ff8a5c, #ff5470); color: #fff; text-align: center; }
.pc-ocean { background: linear-gradient(160deg, #0e7490, #164e63); color: #eafcff; }
.pc-night { background: linear-gradient(160deg, #1e1b4b, #312e81); color: #e0e7ff; text-align: center; }

.pcn { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.pcn-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pcn-kind {
  display: grid; justify-items: center; gap: 2px; padding: 14px 8px;
  border: 1.5px solid var(--line-2); border-radius: var(--r-md, 12px);
  font-size: 13.5px; cursor: pointer; background: var(--surface); position: relative;
}
.pcn-kind input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pcn-kind span { font-size: 11px; color: var(--ink-3); }
.pcn-kind.on { border-color: var(--brand); background: var(--brand-tint); }
.pcn-kind.on b { color: var(--brand-deep); }
.pcn-block.is-hide { display: none; }
.pcn-tpls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pcn-tpl { display: grid; gap: 4px; cursor: pointer; position: relative; }
.pcn-tpl input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pcn-tpl > i { font-style: normal; font-size: 11px; color: var(--ink-3); text-align: center; }
.pcn-tpl.on .pc-poster { outline: 2.5px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.pcn-tpl.on > i { color: var(--brand-deep); font-weight: 800; }
.pcn-circles { display: flex; flex-wrap: wrap; gap: 8px; }
.pcn-circles label { position: relative; cursor: pointer; }
.pcn-circles input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pcn-circles span {
  display: inline-block; padding: 7px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: var(--surface);
  font-size: 13px; font-weight: 700; color: var(--ink-2);
}
.pcn-circles input:checked + span { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-deep); }

.cc-nav { display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; position: sticky; top: 0; z-index: 3; background: var(--paper, #faf9f7); }
.cc-nav::-webkit-scrollbar { display: none; }
.cc-nav a { flex-shrink: 0; padding: 5px 12px; border-radius: var(--r-pill); font-size: 12px; font-weight: 800; color: var(--ink-3); background: var(--surface-2, #f2f0ec); border: 1px solid transparent; }
.cc-nav a.on { color: var(--brand-deep); background: var(--brand-soft); }
.cc-pages { display: grid; gap: 14px; }
.cc-page { background: var(--surface); border-radius: var(--r-lg); padding: 16px 16px 18px; box-shadow: var(--sh-1); }
.cc-page-head { display: flex; gap: 10px; align-items: center; }
.cc-no {
  width: 28px; height: 28px; border-radius: var(--r-pill); flex-shrink: 0;
  display: grid; place-items: center; background: var(--brand); color: #fff;
  font-size: 13px; font-weight: 900;
}
.cc-no.is-empty { background: var(--line-2, #c3c5ca); }
.cc-page-head b { font-size: 15.5px; }
.cc-when { display: block; font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.cc-text { margin: 10px 0 2px; font-size: 13.5px; line-height: 1.8; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }

.ccv { background: var(--surface); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--sh-1); }
.ccv-order b { font-size: 15.5px; }
.ccv-order span { display: block; margin-top: 3px; font-size: 12px; color: var(--ink-3); }
.ccv-pages { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ccv-pages li { display: flex; gap: 10px; align-items: center; }
.ccv-pages b { font-size: 13px; }
.ccv-pages span { display: block; font-size: 11.5px; color: var(--ink-3); }
.ccv-pages li.is-empty b { color: var(--ink-3); }
.ccv-note { margin: 12px 0 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }

.pb-fig { margin: 12px 0 0; }
.pb-stage { position: relative; border-radius: var(--r-md, 12px); overflow: hidden; background: var(--surface-2, #f2f0ec); }
.pb-stage img { width: 100%; display: block; }
.pb-dot {
  position: absolute; transform: translate(-50%, -50%);
  width: 24px; height: 24px; border-radius: var(--r-pill);
  background: var(--brand); color: #fff; border: 2px solid #fff;
  display: grid; place-items: center; font-size: 11px; font-weight: 900;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3); z-index: 2; text-decoration: none;
}
.pb-ghost {
  position: absolute; transform: translate(-50%, -50%);
  width: 16px; height: 16px; border-radius: var(--r-pill);
  border: 2px dashed #fff; background: rgba(0, 0, 0, .35); z-index: 2; pointer-events: none;
}
.pb-list { display: grid; gap: 7px; margin-top: 9px; }
.pb-item { background: var(--surface-2, #f7f6f3); border-radius: var(--r-md, 12px); padding: 9px 11px; font-size: 13px; }
.pb-item b { font-size: 12px; color: var(--ink-2); }
.pb-item p { margin: 3px 0 0; line-height: 1.65; word-break: break-word; }
.pb-item.is-reply { margin-left: 20px; display: flex; gap: 6px; background: var(--paper-2, #f2f0ec); }
.pb-item.is-reply p { margin: 1px 0 0; }
.pb-reply-form summary { font-size: 12px; color: var(--brand-deep); cursor: pointer; margin-top: 5px; }
.pb-reply-form form { display: flex; gap: 6px; margin-top: 6px; }
.pb-reply-form input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font: inherit; font-size: 13px; }
.pb-add summary { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--brand-deep); cursor: pointer; padding: 7px 0; }
.pb-add form { display: grid; gap: 8px; margin-top: 6px; }
.pb-add input[name="text"] { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font: inherit; font-size: 13.5px; }

.pcp-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.pcp-head { display: flex; gap: 12px; align-items: center; }
.pcp-head-in b { font-size: 15px; }
.pcp-meta { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.pcp-meta a { color: var(--brand-deep); font-weight: 700; }
.pcp-title { margin: 12px 0 6px; font-size: 24px; line-height: 1.4; }
.pcp-content { font-size: 14.5px; line-height: 1.85; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.pcp-imgs { display: grid; gap: 6px; margin-top: 8px; }
.pcp-stats { display: flex; gap: 16px; align-items: center; margin: 16px 0 6px; padding: 12px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.pcp-stat { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-3); }
.pcp-stats .pc-like { position: static; }
.pcp-comments { margin-top: 14px; }
.pcp-comments h2 { margin: 0 0 12px; font-size: 17px; }
.pc-cm { padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.pc-cm > b { font-size: 12.5px; color: var(--ink-2); }
.pc-cm p { margin: 4px 0; line-height: 1.7; word-break: break-word; }
.pc-cm-when { font-size: 11px; color: var(--ink-3); }
.pc-cm.is-reply { margin-left: 20px; padding: 8px 0 0; border-bottom: 0; }
.pc-cm details { margin-top: 5px; }
.pc-cm details summary { font-size: 12px; color: var(--brand-deep); cursor: pointer; }
.pc-cm details form { display: flex; gap: 6px; margin-top: 6px; }
.pc-cm details input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font: inherit; font-size: 13px; }
.pc-cm-form { display: grid; gap: 9px; margin-top: 14px; }
.pc-cm-form textarea { width: 100%; min-height: 80px; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: var(--r-md, 12px); font: inherit; font-size: 14px; resize: vertical; }
.pc-cm-empty { font-size: 13px; color: var(--ink-3); }
.pc-cm-login { font-size: 13px; color: var(--ink-2); }
.pc-cm-login a { color: var(--brand-deep); font-weight: 800; }

/* ── 圈子补丁（2026-09-24 门禁补齐）────────────────────── */
.av-txt { display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; letter-spacing: .5px; }
.pcp { position: relative; }
.pb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: 0; border-radius: 999px; background: var(--brand, #00bda6); color: #fff; font-weight: 700; padding: 6px 14px; font-size: 13px; cursor: pointer; }
.pb-btn:active { transform: scale(.97); }
.pb-btn-slim { padding: 3px 10px; font-size: 12px; }

/* ── 圈子第二轮（2026-09-24）：小红书式海报 / 胶囊标注 / 评论赞 / 分享 ────── */
/* 海报朝向：竖版 3:4（主形态）/ 横版 4:3；选择器小样固定 16:10 不受朝向影响 */
.pc-poster.po-v { aspect-ratio: 3 / 4; }
.pc-poster.po-h { aspect-ratio: 4 / 3; }
.pc-poster.pc-poster-mini { aspect-ratio: 16 / 10 !important; }

/* 六款小红书式模板（纯 CSS：底色 + 角标装饰，不生成图片） */
.pc-poster.pc-cream { background: linear-gradient(160deg,#fdf9ef,#f6ecd6); color:#4a4034; border:1.5px dashed #d9c9a3; }
.pc-poster.pc-mint { background: linear-gradient(160deg,#e9f7f0,#d2eee0); color:#1f5c46; }
.pc-poster.pc-mint::before { content:''; position:absolute; top:0; left:0; right:0; height:6px; background:#00bda6; }
.pc-poster.pc-peach { background: radial-gradient(circle at 86% 12%, #ffd9c9 0 24%, transparent 25%), linear-gradient(160deg,#fff0e8,#ffe2d3); color:#7c3a2b; }
.pc-poster.pc-sky { background: linear-gradient(180deg,#e8f2fd 62%, #cfe6fa); color:#23527c; }
.pc-poster.pc-sky::after { content:''; position:absolute; left:0; right:0; bottom:0; height:9px; background:linear-gradient(90deg,#8fc1f2,#00bda6); }
.pc-poster.pc-inkred { background:#fffdfb; color:#26221e; border:3px solid #d3452e; }
.pc-poster.pc-inkred b { border-bottom: 3px solid #d3452e; padding-bottom: 6px; }
.pc-poster.pc-forest { background: linear-gradient(160deg,#14453a,#0c312a); color:#f2efe6; }
.pc-poster.pc-forest b { color:#ffd166; }
.pc-poster.pc-forest::after { content:''; position:absolute; right:12px; bottom:34px; width:32px; height:32px; border-radius:50%; border:2px solid rgba(255,209,102,.65); }

/* 实时预览：跟着朝向变画幅，内容区居中 */
.pcn-preview { margin: 4px 0 12px; }
.pc-poster.pc-poster-live { width: 100%; }
.pc-poster.pc-poster-live.po-v { max-width: 340px; aspect-ratio: 3 / 4; margin: 0 auto; }
.pc-poster.pc-poster-live.po-h { max-width: 460px; aspect-ratio: 4 / 3; margin: 0 auto; }

/* 横竖版切换胶囊 */
.pcn-orients { display: flex; gap: 8px; margin: 6px 0 4px; }
.pcn-orient { cursor: pointer; position: relative; }
.pcn-orient input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pcn-orient span { display: inline-block; padding: 6px 16px; border-radius: 999px; border: 1.5px solid var(--line,#e5e7eb); font-size: 13px; font-weight: 700; color: var(--ink-2,#5f6268); }
.pcn-orient.on span { background: var(--brand,#00bda6); border-color: var(--brand,#00bda6); color: #fff; }

/* 得物式「胶囊标注」：圆点 + 短文字标在图上（百分比定位） */
.pb-pill { position: absolute; transform: translate(-6px,-50%); display: inline-flex; align-items: center; gap: 5px; max-width: 62%; background: rgba(255,255,255,.96); color: #26221e; border-radius: 999px; box-shadow: 0 2px 10px rgba(0,0,0,.22); padding: 3px 10px 3px 4px; font-size: 12px; font-weight: 600; line-height: 1.5; }
.pb-pill i { font-style: normal; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--brand,#00bda6); color: #fff; font-size: 10.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.pb-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 评论：行布局 + 单条点赞 */
.pc-cm-row { display: flex; gap: 8px; align-items: flex-start; }
.pc-cm-main { flex: 1; min-width: 0; }
.pc-clike { flex: none; }
.pc-clike button { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; border: 0; background: none; color: var(--ink-3,#9a9da3); cursor: pointer; padding: 2px; }
.pc-clike i { font-style: normal; font-size: 11.5px; }
.pc-clike.on button { color: var(--brand,#00bda6); }
.pc-cm-pact { display: flex; align-items: center; gap: 6px; background: var(--paper-2,#f6f7f8); border-radius: 10px; padding: 8px 12px; font-size: 12px; color: var(--ink-3,#9a9da3); margin-bottom: 12px; }
.pc-cm-pact span { font-weight: 800; color: var(--ink-2,#5f6268); }
.pc-cm-pact i { font-style: normal; }

/* 分享按钮（详情页底栏） */
.pc-share { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--ink-2,#5f6268); font-weight: 700; cursor: pointer; font-size: 13.5px; padding: 4px; }

/* 流水账的需求单卡（得物式「商品卡」位） */
.pc-order-card { display: flex; align-items: center; gap: 9px; background: var(--paper-2,#f6f7f8); border-radius: 12px; padding: 10px 12px; margin: 12px 0; color: var(--ink,#26221e); text-decoration: none; }
.pc-order-badge { flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--jade,#103c37); color: #fff; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.pc-order-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 13.5px; }
.pc-order-p { flex: none; color: var(--coral,#ff6a45); font-weight: 800; }

/* 正文里的 #话题# 绿链 */
.pc-tag { color: var(--brand-deep,#009c8a); font-weight: 800; }

/* 圈子搜索框（#话题# 链接的落点） */
.pc-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line,#e5e7eb); border-radius: 999px; padding: 8px 14px; margin: 10px 0 4px; }
.pc-search input[type="search"] { flex: 1; min-width: 0; border: 0; outline: none; font-size: 14px; background: none; color: inherit; }
.pc-search .ic { color: var(--ink-3,#9a9da3); }
.pc-search-x { font-size: 12.5px; color: var(--ink-3,#9a9da3); flex: none; }

/* ======================================================================
 * 圈子改版（2026-09-24 派总 4 条）—— 两端共用块（m.css 有一份同样的拷贝，
 * 改这里必须同步那边）。
 * ---------------------------------------------------------------------- */

/* ---- 图集：得物式轮播（一次只亮一张图）+ 每张图的备注讨论串 ---- */
.pc-gallery { margin: 12px 0 0; }
.pc-gal-car { border-radius: 14px; }
.pc-gal-slide { aspect-ratio: auto; flex: 0 0 100%; }
.pc-gal-slide .pb-stage img { height: auto; object-fit: contain; }
.pc-gal-notes { margin-top: 10px; padding: 10px 12px; background: var(--surface); border-radius: 12px; }
.pc-gal-notes-t { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 4px; }
.pc-gal-empty { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-3,#9a9da3); }
/* 胶囊标注要浮在海报框叠层之上 */
.pb-pill { z-index: 2; }

/* ---- 得物式「图片海报框」：纯 CSS 叠在封面图上，pointer-events:none 不挡气泡 ---- */
.pc-frame { position: absolute; inset: 0; display: block; pointer-events: none; font-style: normal; z-index: 1; }
.pc-frame b { font-style: normal; }
.pc-frame-mag::before { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 7px #fff, inset 0 -40px 44px rgba(0,0,0,.3); }
.pc-frame-mag b { position: absolute; top: 14px; left: 16px; right: 16px; color: #fff; font-family: Georgia,'Times New Roman',serif; font-weight: 800; font-size: 24px; letter-spacing: .18em; text-transform: uppercase; line-height: 1.25; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.pc-frame-film::before { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 12px #fff, inset 0 -52px 0 #fff; }
.pc-frame-film b { position: absolute; left: 16px; right: 16px; bottom: 0; height: 52px; display: flex; align-items: center; background: #fff; color: #26221e; font-weight: 800; font-size: 14px; }
.pc-frame-band::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 72px; background: linear-gradient(transparent, rgba(10,12,14,.78)); }
.pc-frame-band b { position: absolute; left: 14px; right: 14px; bottom: 12px; color: #fff; font-weight: 900; font-size: 17px; line-height: 1.4; text-shadow: 0 1px 6px rgba(0,0,0,.5); }

/* 发布页里的框样式小样 */
.pc-frame-demo { position: relative; display: block; width: 100%; aspect-ratio: 3/4; border-radius: 10px; overflow: hidden; background: linear-gradient(160deg,#cdeee8,#9adcd2); }
.pc-frame-demo.pc-frame-mag::before { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px #fff, inset 0 -14px 16px rgba(0,0,0,.25); }
.pc-frame-demo.pc-frame-mag b { position: absolute; top: 6px; left: 8px; right: 6px; color: #fff; font-family: Georgia,'Times New Roman',serif; font-weight: 800; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.pc-frame-demo.pc-frame-film::before { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 4px #fff, inset 0 -18px 0 #fff; }
.pc-frame-demo.pc-frame-film b { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: #fff; color: #26221e; font-size: 9px; font-weight: 800; line-height: 18px; padding: 0 6px; }
.pc-frame-demo.pc-frame-band::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.pc-frame-demo.pc-frame-band b { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 6px; color: #fff; font-size: 10px; font-weight: 900; }

/* ---- 视频帖 ---- */
.pcp-video { margin: 12px 0 0; }
.pcp-video video { width: 100%; max-height: 70vh; display: block; border-radius: 14px; background: #000; }

/* ---- 小红书式引号装饰（文字海报详情） ---- */
.pc-poster-full { position: relative; }
.pc-poster-full::before { content: '\201C'; position: absolute; top: 10px; left: 14px; font-family: Georgia, serif; font-weight: 900; font-size: 56px; line-height: 1; opacity: .14; pointer-events: none; }
.pc-poster-full::after { content: '\201D'; position: absolute; bottom: 6px; right: 14px; font-family: Georgia, serif; font-weight: 900; font-size: 56px; line-height: 1; opacity: .14; pointer-events: none; }
