/* ==========================================================================
   小青柠 · 设计系统
   方向：得物式潮流市集（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;
  /* 金/柠底上的「墨色」文字（与 m.css 逐字一致，audit_mobile_tokens 把关） */
  --gold-ink: #8a6414;
  --lime-ink: #5e7412;

  /* 状态色 */
  --line: #efede9;
  --line-2: #e4e1db;
  --danger: #e5402f;
  --danger-soft: #ffeae6;
  --danger-ink: #a13a3a;
  --warn: #d98211;
  --warn-soft: #fff3dd;
  --warn-ink: #8a5a00;
  --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);
  /* --sh-sheet：从屏幕底部升起来的面板（抽屉 / 筛选 / 支付 / 设置 / 头像）专属。
     影子朝**上**打在它盖住的内容上 —— 用 --sh-2 那种朝下的影子会让面板像是
     「陷进」屏幕里。原来这 6 个面板各写各的：2 个抄了这条向上阴影、
     2 个用 --sh-2（朝下）、2 个干脆没影子，同一个手势推出来的东西层次不齐。
     皮肤不改它：板块的暖/素体现在卡纸上，面板永远是浮在内容之上的实体。 */
  --sh-sheet: 0 -10px 40px rgba(20, 22, 26, .18);

  /* 圆角：大会显得贵、显得轻松 */
  --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  */
  /* ---------- T61：补齐四张令牌表（间距 / 字号 / 层级 / 时长）----------
     为什么加：动手前把两个样式表里实际写下的值数了一遍 ——
       字号  app.css 32 种 / m.css 34 种（含 9px、9.5px 这种手机上读不清的）
       时长  两边合起来 15 种（0.08s ~ 0.55s）
       层级  app.css 16 种 / m.css 27 种（最高 1201）
     同一个「小按钮」在 A 页 42px 高、B 页 44px 高，用户说不清哪里怪，但一眼就觉得不齐。
     根因不是谁写错了，是这套令牌**只有颜色/圆角/阴影**，没有间距、字号、层级、时长 ——
     没规矩时每个人（包括 AI）只能自己发明一个。这一波只立表，后面几波把组件搬上表。 */

  /* 间距：以后只准从这张表里取值，不许再写 13px / 15px / 18px 这种自己凑的数 */
  --sp-2xs: 4px;
  --sp-xs: 6px;
  --sp-sm: 8px;
  --sp-md: 10px;
  --sp-lg: 12px;
  --sp-xl: 16px;
  --sp-2xl: 20px;
  --sp-3xl: 24px;
  --sp-4xl: 32px;
  --sp-5xl: 40px;

  /* 字号阶梯：12 档。地板 10px（T50 定过：比这更小在手机上读不清），
     --fs-6 是正文基准，各页只许在它上面加减档，不许偷改它 */
  --fs-1: 10px;    /* 徽标计数、角标 */
  --fs-2: 11px;    /* 贴纸标签 */
  --fs-3: 12px;    /* 时间戳、辅助说明 */
  --fs-4: 13px;    /* 次要文字、紧凑按钮 */
  --fs-5: 14px;    /* 表单、列表行 */
  --fs-6: 15px;    /* 正文 */
  --fs-7: 16px;    /* 主按钮、小标题 */
  --fs-8: 18px;    /* 区块标题 */
  --fs-9: 21px;    /* 页面标题 */
  --fs-10: 24px;   /* 首屏大标题 */
  --fs-11: 30px;   /* 强调数字（金额、评分） */
  --fs-12: 42px;   /* 只给 hero / 空态大数字 */

  /* 层级：谁盖在谁上面，一次说清。数值不是猜的 —— 由 Wave 1c 现量 m.css 84 处 +
     app.css 34 处 z-index 后定的档；每档都对应现在真在用的一个值，所以套上令牌
     等于零行为变化，只是以后再加浮层有个地方可以选，而不是继续 +1 往上碰运气。
     网页版顶栏 60 / tab 70 / 详情条 120 是历史高度（比手机端的 40/50 高），
     本次不动它们：动一处的层序要全站重排，风险远大于「数字不好看」。 */
  --z-raise: 5;        /* 卡片抬起、角标、局部内层 */
  --z-sticky: 20;      /* 吸顶筛选条、页内小浮层（表情面板网页版） */
  --z-drop: 45;        /* 下拉菜单、筛选面板 */
  --z-nav: 50;         /* 手机端顶栏（40）与底部 tab（50） */
  --z-sheet: 60;       /* 底部抽屉/遮罩：遮罩用本档，面板一律 +1 */
  --z-pop: 90;         /* 支付密码面板、动态设置层、全局提示条 */
  --z-lightbox: 300;   /* 图片 / 视频全屏看 */
  --z-loading: 999;    /* 全局加载遮罩 —— 必须压住灯箱，否则转圈看不见 */
  --z-top: 1000;       /* 表情面板、多选工具条 */
  --z-max: 1200;       /* 系统级抽屉（设置）：遮罩本档、面板 +1 */

  /* 动效时长：同一类动作全站用同一个数，快慢感才一致。
     手机端 T27 验过「下滑卡顿」，收短时长的同时只留 transform/opacity 做动效 */
  --dur-0: 80ms;     /* 极微反馈（颜色一闪） */
  --dur-1: 120ms;    /* 按压反馈 :active */
  --dur-2: 180ms;    /* 边框/底色变化 */
  --dur-3: 260ms;    /* 浮层进出、卡片展开 */
  --dur-4: 360ms;    /* 抽屉、面板滑入 */
  --dur-5: 520ms;    /* 进场、页面转场 */
  --ease-in-out: cubic-bezier(.4, 0, .2, 1);

  /* 组件常量：按钮/输入框「一行多高」以前两端各写各的（网页 42~43、手机 44~58 共十余种） */
  --ctl-h: 44px;     /* 触控最小热区（安卓/iOS 无障碍下限，手机端主控件一律不低于它） */
  --ctl-h-sm: 36px;  /* 紧凑档：筛选 chip、工具条按钮 */
  --ctl-h-lg: 50px;  /* 主行动：注册 / 发布 / 提交 */
  --ring: 0 0 0 4px var(--brand-soft);
  /* 焦点环以前两端不同色：网页用 --brand-soft、手机用 --brand-tint ——
     同一种「我正在填这一格」出现两种颜色，就是「不统一」的来源之一 */
  --scrim: rgba(20, 22, 26, .45);
  /* 遮罩黑统一用这一档（中性墨色、不掺品牌绿：换肤 sk-cir/sk-qn 下品牌绿遮罩会糊成一块）。
     统一前实测 5 种写法：rgba(16,60,55,.38) / rgba(0,0,0,.4) / rgba(0,0,0,.38)
     / rgba(26,26,29,.42) / rgba(15,20,24,.5) / rgba(16,40,36,.55) —— .45 取它们的中位。 */
  --scrim-media: rgba(8, 10, 12, .94);
  /* 看图 / 看视频的深遮罩要压住整屏照片，单独一档，不和普通浮层混用 */
  --r-sheet: 20px;
  /* 底部抽屉的圆角。统一前实测 4 种：16px（头像选择）/ 18px（支付、动态设置、网页版支付）
     / 20px（发布动作）/ var(--r)=18px（设置抽屉）—— 取最大值 20，比原来更柔和，
     且不越出「底部抽屉」这一档（再大就到了 --r-lg 26 卡片档）。 */
  --grad-brand: linear-gradient(135deg, var(--brand), var(--brand-deep));
  /* 主按钮底色。网页版一直是这条渐变、手机端是纯 --brand —— 同一个「提交/圆梦」按钮，
     两端两种质感。统一成渐变：同色系一深一浅，比纯色柔和，也是网页版已有的观感。 */
}

/* ---------- 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; }
.m-kv { display: grid; gap: 1px; background: var(--line-2); border-radius: var(--r-sm); overflow: hidden; }
.m-kv > div { display: flex; gap: 10px; background: var(--surface); padding: 9px 11px; font-size: 13px; }
.m-kv .k { color: var(--ink-3); flex-shrink: 0; width: 76px; }
.m-kv .v { color: var(--ink); font-weight: 700; word-break: break-all; flex: 1; }

.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; }

/* T29②（派总 2026-10-29「首页：原位置加上定位功能」）：品牌右边那颗城市牌。
   形状由两端共用的 loc.css `.lc-trigger` 给（不许在这儿重画一遍，否则又分家），
   这里只补顶栏这一处**布局**上的三件事：不被挤扁、城市名长了要省略号、不换行。 */
.topbar-loc { flex-shrink: 0; white-space: nowrap; max-width: 140px; }
.topbar-loc span { overflow: hidden; text-overflow: ellipsis; }

/* 需求池页里的大搜索框。跟顶栏搜索长一样，但独立成类，
   免得继承 .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: var(--sp-xs);
  min-height: var(--ctl-h);            /* 44px 触控热区下限；原来靠 padding 撑到 44.3px，写死下限才守得住 */
  padding: 11px var(--sp-2xl);
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--fs-6);              /* 原 14.5px：阶梯里没有半像素，和手机端 15px 归到同一档 */
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--dur-1) var(--ease), background var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease),
              color var(--dur-2) 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(.98); }

.btn-primary {
  background: var(--grad-brand);
  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 { min-height: var(--ctl-h-sm); padding: 7px var(--sp-lg); font-size: var(--fs-4); }
.btn-lg { min-height: var(--ctl-h-lg); padding: 15px var(--sp-4xl); font-size: var(--fs-7); }
.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: var(--sp-3xl);
  box-shadow: var(--sh-1);
}
.card-flat { background: var(--surface); border: 0; border-radius: var(--r); padding: var(--sp-3xl); 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-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;
  /* X③（派总 2026-10-11）：列表/首页缩略图统一竖版 3:4 */
  aspect-ratio: 3 / 4;
  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: var(--gold-ink); }
.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: var(--gold-ink); }
.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: var(--fs-4); font-weight: 700;
  margin-bottom: var(--sp-xs); color: var(--ink);
}
.field-label .req { color: var(--coral); margin-left: 3px; }
.field-hint { font-size: var(--fs-3); color: var(--ink-3); margin: var(--sp-xs) 0 0; }

.field-input {
  width: 100%;
  padding: var(--sp-lg) var(--sp-xl);
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-family: var(--f-sans);
  font-size: var(--fs-6);
  color: var(--ink);
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
  line-height: 1.6;
}
.field-input::placeholder { color: var(--ink-3); }
.field-input:focus {
  outline: 0; border-color: var(--brand);
  box-shadow: var(--ring);
}
.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: var(--fs-3); margin: var(--sp-xs) 0 0; }
.field.has-error .field-input { border-color: var(--danger); }

/* 图形验证码行（2026-11-01）：注册发验证码、找回密码发邮件之前都得先过人机闸。
   三个页面（注册 / 找回登录密码 / 找回模拟支付密码）共用这一套类名，
   样式放这里而不是各页写一份 <style>，避免以后调宽度要改四处改漏三处。 */
.code-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.code-row .field-input { flex: 1 1 150px; min-width: 120px; }
.cap-img {
  height: var(--ctl-h); width: 132px; object-fit: cover;
  border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface); cursor: pointer;
}
.cap-input { max-width: 140px; flex: 0 0 130px; }

/* 单选卡片组（求物品 / 求服务） */
.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: var(--sp-xl) var(--sp-2xl); background: var(--surface);
  transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease),
              box-shadow var(--dur-3) 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: var(--ring);
}
.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: var(--sp-sm); 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: var(--sp-xl); 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; }
/* 频道条在需求池 / 小圈子列表页是**单独出现**的（外面没有 .wall-bar-inner 那个滚动壳），
   窄屏 7 个 chip 排不下就会把整篇文档撑宽（实测 390 视口下文档宽 587）。
   给它自己一条横滑轨道，行为和手机端 .catbar 一致；.wb-more 的 auto 边距在没空间时自然归零。 */
.section > .wb-filters, .wrap > .wb-filters {
  max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.section > .wb-filters::-webkit-scrollbar, .wrap > .wb-filters::-webkit-scrollbar { display: none; }
.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; }
/* T27①（派总 2026-10-27）：与手机端同一条规矩 —— overflow-y 不是 visible 时，
   没写的那一个轴会被算成 auto，聊天容器就变成横向可推。显式关掉横向、并止住滚动链。 */
.chat-body { flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  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);
  /* T27①：长 URL / 长编号这类「不换行 token」要能硬折断，不许把气泡撑破（手机端同口径） */
  font-size: 14px; line-height: 1.65; white-space: pre-wrap; word-break: break-word;
  overflow-wrap: anywhere;
}
.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; }
/* T29②-2：提示文字与右侧那两颗钮（发送定位 / 发送）分居两端，钮自己成一组 */
.chat-hint-acts { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ---------- 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; }
/* T18 优化③c 网页版（派总 2026-10-26 第 3 条）：需求详情头图 —— 与手机端 .m-detail-media 同口径：
   窗口按自己的基准（16:9）抬高 1.3 倍 = 16/12.3，图 cover + 居中，点图进全屏查看器（img-grid.js）。
   原来这套尺寸写在模板的 style= 里（改一处要翻模板），收进样式表统一管。 */
.pc-cover { display: block; width: 100%; aspect-ratio: 16 / 12.3; overflow: hidden;
  border-radius: var(--r-lg); box-shadow: var(--sh-1); margin-bottom: 26px; }
.pc-cover img { display: block; width: 100%; height: 100%; object-fit: cover;
  object-position: center; cursor: zoom-in; }
.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. 纠纷法庭 ---------- */
/* P 波（派总 2026-10-10）：两张票数卡必须严格等宽等高。
   grid 的 `1fr` 实际是 `minmax(auto, 1fr)` —— 最小尺寸按内容走，
   昵称长的一边就会把卡片撑宽、看起来「两个卡片不一样大」。
   改成 `minmax(0, 1fr)` 才是「两边平分别 50%」（等价于 flex 的 min-width:0）。 */
.vs-bar { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: stretch; gap: 16px; }
.vs-side { padding: 17px; min-width: 0; overflow-wrap: anywhere; 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 { align-self: center; 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; }
.foot-docs { margin-top: 12px; font-size: 12px; color: var(--ink-3); line-height: 2; }
.foot-docs a { color: var(--ink-3); }
.foot-docs a:hover { color: var(--brand-deep); }

/* ---------- 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; }
/* Z8③（派总 2026-10-16）：全站「聊一聊」按钮统一 —— 绿色边框 + 浅绿色填充。
   Web 端需求详情底栏那颗（core/demand_detail.html，模板已加 db-side-chat 类），
   同 App 端 m.css 的 .m-chat-act / .m-chat-pill / .pcp-dock-chat 一张脸。 */
.detail-bar .db-side-chat {
  border: 1px solid rgba(0, 189, 166, .45); border-radius: 999px;
  background: rgba(0, 189, 166, .07); color: var(--brand-deep);
  padding: 2px 10px;
}
/* 底部固定栏会盖住页面末尾内容，用一块占位把它顶起来（仅移动端显示） */
.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: var(--sp-xl); 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: var(--sp-md) var(--sp-2xl); 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); }

/* --- 加载更多 --- */

/* ---------- 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: var(--sp-2xl); 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); }
/* P 波①：正在进行的格不亮条，文字改粗体+深色（与 App 端 .m-step.is-cur 同口径） */
.stage-bar .sg.is-cur span { color: var(--ink); font-weight: 900; }
/* 跳过的步骤（派总 2026-10-11，与 App 端 m.css 同口径）：
   文字灰 + 删除线，进度段保持绿色 —— 「这步没走，但单子确实推进到了这里」。
   Q3 波②：**亮绿的前提是这一格已经走过**；没走到的跳过格挂 is-wait-skip（见下一条）。 */
.stage-bar .sg.is-skip i { background: var(--brand) !important; }
.stage-bar .sg.is-skip span { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1px; }
/* Q3 波②：还没走到的跳过格 —— 条子保持默认灰，只给文字删除线预告。 */
.stage-bar .sg.is-wait-skip span { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1px; }
/* Y⑤（派总 2026-10-11，与 App 端 m.css 同口径）：违约单不清零 ——
   最后一格改「XX违约」，红条红字；前面步骤照常亮绿灯。 */
.stage-bar .sg.is-breach i { background: var(--coral) !important; }
.stage-bar .sg.is-breach span { color: var(--coral); font-weight: 800; }

/* 用户正在往上翻历史时才出现，不抢他的滚动位置 */
.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: var(--sp-lg) var(--sp-xl); 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: var(--sp-3xl); }
.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; }

/* --- 胶囊 / 标签选择 --- */
.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: var(--sp-xl) var(--sp-2xl); 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: var(--sp-2xl) var(--sp-xl); }
  .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 */
/* T18 优化③c 网页版（派总 2026-10-26 第 3 条）：详情页图区显示高度 = 原来 ×1.3、
   图上下左右居中。基准 4:3 → 4/3.9（不是 1:1.3 —— ×1.3 乘的是**各自**的基准画幅）。
   `.pc-gal-slide`（图文帖那份）在自己的规则里另给比例，排在后面，不受这行影响。 */
.carousel-slide {
  flex: 0 0 100%; margin: 0; scroll-snap-align: center;
  aspect-ratio: 4 / 3.9; background: var(--surface-2);
}
/* ⚠️ 这里的 `object-fit: contain` 不许改成 cover：X③（派总 2026-10-11「详情页横图完整居中显示」）
   要的是**整张横图都看得见**，裁掉两边就是倒退。盒子变高后横向图上下留白是故意的，
   居中由 object-position 管；想放大看细节走全屏查看器（点图即进，双击缩放）。
   头图 `.pc-cover` 那张才是 cover（与手机端 .m-detail-media 同口径）。 */
.carousel-slide img { display: block; width: 100%; height: 100%; object-fit: contain;
  object-position: center; cursor: zoom-in; }

.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: var(--sp-lg) 0 var(--sp-2xs); }

/* 两个动作：一个是 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: var(--sp-xl) var(--sp-2xl); 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; }
/* 展示区附图不再包 <a>（点图开页面内查看器，派总 2026-10-08）—— 尺寸直接给 img。
   编辑区的 .plan-img-del（92×92 label）样式不变。 */
.plan-imgs > img { width: 92px; height: 92px; object-fit: cover; border-radius: var(--r-sm); cursor: zoom-in; }
/* 编辑方案：已传图「删除勾选」（2026-10-08 任务 C）—— 勾中 = 提交后删掉这张 */
.plan-img-del { position: relative; display: block; width: 92px; height: 92px; border-radius: var(--r-sm); overflow: hidden; }
.plan-img-del img { width: 100%; height: 100%; object-fit: cover; }
.plan-img-del input {
  position: absolute; left: 5px; top: 5px; z-index: 2;
  width: 17px; height: 17px; margin: 0; accent-color: var(--coral);
}
.plan-img-del input:checked + img { opacity: .35; outline: 2px solid var(--coral); outline-offset: -2px; }
/* 「修改方案」折叠条只在收起态有意义（派总 2026-10-08：编辑都进去了还杵着就是画蛇添足）
   —— 展开后立即让位，收起路径由表单底部的「退出编辑」负责。与 m.css 同口径。 */
details[data-edit-for][open] > summary { display: none; }
/* 方案附图查看器（派总 2026-10-08 第 1 条）：页面内全屏看图、多图横滑、可关闭。
   与 m.css 同一份类名（app.js 单一实现，两端样式各自维护）。 */
.m-lightbox { position: fixed; inset: 0; z-index: var(--z-lightbox); background: var(--scrim-media);
  display: flex; flex-direction: column; align-items: center; justify-content: center; }
.m-lightbox[hidden] { display: none; }
.m-lightbox-track { display: flex; width: 100%; height: 100%; flex: none; overflow-x: auto; scroll-snap-type: x mandatory; }
/* min-width:0 与 m.css 同一条口径：flex 项默认 min-width:auto，宽照片会把 slide 顶出屏。 */
.m-lightbox-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; padding: var(--sp-xl); }
.m-lightbox-slide img { max-width: 100%; max-height: 82vh; border-radius: 10px; }
.m-lightbox-x {
  position: absolute; top: 12px; right: 14px;
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; font-size: 22px; line-height: 1;
}
.m-lightbox-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #fff; font-size: 13px; font-variant-numeric: tabular-nums; }
.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); }

/* 查快递轨迹（点「查看物流」在表格下方就地展开）。
   与手机端同一套观感：最新一条高亮、往下越来越淡 —— 一页两处读法一致。 */
.track-box { margin-bottom: 12px; background: var(--surface-2); border-radius: var(--r-sm); padding: var(--sp-lg) var(--sp-xl); }
.track-head { margin-bottom: 9px; font-size: 12.5px; color: var(--brand-deep); }
.track-head b { font-weight: 700; }
.track-list { list-style: none; margin: 0; padding: 0; }
.track-list li { position: relative; padding: 0 0 11px 17px; font-size: 13px; line-height: 1.65; color: var(--ink-3); }
.track-list li:last-child { padding-bottom: 0; }
.track-list li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.track-list li:not(:last-child)::after { content: ""; position: absolute; left: 5.5px; top: 15px; bottom: 1px; width: 1px; background: var(--line-2); }
.track-list li.is-now { color: var(--ink); font-weight: 700; }
.track-list li.is-now::before { background: var(--brand); }
.track-list li .t { display: block; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.track-list li.is-now .t { color: var(--brand-deep); }
.track-list li .x { display: block; }
.track-msg { margin: 0; font-size: 13px; line-height: 1.65; color: var(--ink-2); }
.track-alt { margin: 9px 0 0; padding-top: 9px; border-top: 1px dashed var(--line-2); font-size: 12.5px; }
.track-alt a { color: var(--brand-deep); }
@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: var(--sp-lg) var(--sp-xl); 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; }
/* T18 优化①e（派总 2026-10-26）：正文里的 #话题 点进来，顶部写明筛的是哪个话题。
   ⚠️ 与 m.css 的 .pc-topicbar 同源，一边改了另一边要跟。 */
.pc-topicbar { display: flex; align-items: center; gap: 10px; margin: 0 2px 12px;
  padding: 7px 12px; border-radius: var(--r-pill);
  background: var(--brand-soft); color: var(--brand-deep); }
.pc-topicbar b { font-size: 14px; font-weight: 800; }
.pc-topicbar a { margin-left: auto; font-size: 13px; font-weight: 700;
  color: var(--brand-deep); text-decoration: underline; }
.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); }
/* X③：图文帖缩略图统一竖版 3:4（视频帖本就是 3:4）。
   派总 2026-10-12 第 ⑨ 条：所有上传图片显示形式统一 —— 上下居中 contain（不裁切），
   与详情页画廊 / App 端一致；多图走画廊横向滑动（见 .pc-gallery / carousel.js）。 */
.pc-card-media img { width: 100%; display: block; aspect-ratio: 3 / 4; object-fit: contain; }
/* 视频帖封面：同 m.css —— 压成 3:4 封面裁切，别让原始分辨率把瀑布流撑爆 */
.pc-card-media video {
  width: 100%; display: block;
  aspect-ratio: 3 / 4; object-fit: cover; background: #101418;
}
/* T54（派总 2026-11-02）：右下角时长角标。卡片是 `partials/_post_card.html` 那一份
   **两端共用**的 markup，网页版不加载 m.css ⇒ 这儿必须再写一遍，漏了就是「电脑上没角标」
   这种不报错、只是样式没了的错（audit_css.py 常驻拦它）。 */
.pc-card-dur {
  position: absolute; z-index: 2; right: 8px; bottom: 8px;
  padding: 2px 7px; border-radius: var(--r-pill);
  background: rgba(0, 0, 0, .58); color: #fff;
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.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 {
  /* X③：无图兜底格同卡片缩略图统一竖版 3:4 */
  aspect-ratio: 3 / 4; 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: var(--sp-md) var(--sp-lg) var(--sp-lg); }
.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;
}
/* 分类标签胶囊（派总 2026-10-05 第 3 条：移到封面左上角，同「流水账」角标同位置）。
   ⚠️ `partials/_post_card.html` 是**两端共用**的一份卡片，所以这条必须在 app.css
   也定义一遍 —— 只写 m.css 的话网页版会没样式（audit_css 门禁会报
   「模板在用、app.css 没定义」，这类错不报 500、只是样式静默失效）。
   L 波②（派总 2026-10-09）：标签高低一致 —— kind 角标 + 分类胶囊收进同一个
   定位容器 .pc-card-tags（flex 并排），删掉「有形态角标时胶囊掉到 top:30px」的联动。 */
.pc-card-tags {
  position: absolute; z-index: 3;
  top: 6px; left: 6px;
  display: flex; align-items: center; gap: 4px;
  max-width: 86%;
}
.pc-card-tags .pc-card-kind { position: static; flex-shrink: 0; }
.pc-card-cat {
  display: inline-flex; align-items: center; gap: 3px; min-width: 0;
  padding: 2px 7px; border-radius: var(--r-pill);
  background: rgba(255, 250, 245, .92); color: var(--ink-2);
  font-size: 10px; font-weight: 800; line-height: 1.5;
  text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 1px 4px rgba(26, 26, 29, .16);
}
.pc-card-cat .ic { width: 11px; height: 11px; flex-shrink: 0; }
.pc-card-cat:active { transform: scale(.97); }
.pc-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 6px; }
.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; }

/* R5①（派总 2026-10-21）：动态卡收藏星弃用旧右上角 .pc-fav（模板已零引用），
   两卡统一走作者行右端的 .m-dc-fav（定义见上方 R5① 段）。旧块删除（死代码清理）。 */
/* 共用卡上的作者块现在是链接（进 TA 主页），要浮在整卡可点层上 */
.pc-card-by { position: relative; z-index: 2; text-decoration: none; }

.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: #d9b98c; color: #3c2e1c; text-align: center; box-shadow: inset 0 0 0 1px #c2a06c; }
.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: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 520px) {
  /* 三颗并排，窄窗口就折成两行 —— 挤成 90px 一格时「最长 60 秒 / 40MB」会竖着断字 */
  .pcn-kinds { grid-template-columns: 1fr 1fr; }
}
.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; }
/* T54b 网页版「发视频」（派总 2026-11-02「手机端和网页版都要有发视频，入口放在一起」）。
   结构与命名跟手机端那一块对齐（`static/js/video-publish.js` 认的是元素 id，两端一份代码），
   皮肤用网页版自己的令牌。牌面收起/预览台亮起都由 JS 切 `hidden`，
   所以每条 display 规则都得配一条 `[hidden]` —— 否则 `hidden` 属性被 display 压掉，
   「选了视频，那颗添加按钮还赖在页面上」。 */
.pcn-vpick { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.pcn-vpick[hidden] { display: none; }
.pcn-vpick .field-hint { flex: 1 1 240px; margin: 4px 0 0; }
.pcn-vstage { position: relative; max-width: 420px; border-radius: var(--r-md, 12px);
  overflow: hidden; border: 1px solid var(--line-2); background: #000; }
.pcn-vstage[hidden] { display: none; }
.pcn-vstage video { display: block; width: 100%; max-height: 56vh; background: #000; }
.pcn-vbar { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 10px; background: var(--surface-2); }
.pcn-vstat { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pcn-vbtn { font: inherit; font-size: 12.5px; padding: 6px 12px; border-radius: 999px;
  border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink);
  cursor: pointer; }
.pcn-vbtn:hover { border-color: var(--brand); color: var(--brand-deep); }
.pcn-vnote { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; font-size: 12.5px;
  background: var(--brand-tint); color: var(--ink-2); }
.pcn-vnote[hidden] { display: none; }
.pcn-vnote.is-bad { background: var(--danger-soft); color: var(--danger-ink); }
/* 真输入框藏起来（点那颗 label 才开系统选择器），口径同手机端 .pcn-file */
.pcn-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.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; }
/* V 波①：同 m.css —— span 规则只圈说明行，别把 .cc-no 一起命中（数字偏位的根因） */
.ccv-pages div > span { display: block; font-size: 11.5px; color: var(--ink-3); }
.ccv-pages .cc-no { width: 30px; height: 30px; font-size: 14px; }
.ccv-pages li.is-empty b { color: var(--ink-3); }

.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; }

.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; }

/* ── 圈子补丁（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; }

/* ── 圈子第二轮（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); }
/* T16 波（派总 2026-10-21 第 4 条）：小青柠风格六款扩充（与 settings.CIRCLE_POSTER_TEMPLATES 对齐） */
.pc-poster.pc-paper { background: linear-gradient(155deg,#dfc298,#c8a271); color:#3c2e1c; border:1px solid #b8945f; box-shadow: inset 0 0 26px rgba(120,86,44,.30); }
.pc-poster.pc-grass { background: linear-gradient(180deg,#eaf7e6 58%,#cdebbf); color:#2f6b34; }
.pc-poster.pc-grass::after { content:''; position:absolute; left:0; right:0; bottom:0; height:10px; background:linear-gradient(90deg,#7cc46b,#00bda6); }
.pc-poster.pc-heart { background: radial-gradient(circle at 18% 14%, #ffd3e0 0 16%, transparent 17%), radial-gradient(circle at 84% 82%, #ffd3e0 0 12%, transparent 13%), linear-gradient(160deg,#fff0f4,#ffe1ea); color:#a63d5e; }
.pc-poster.pc-yolk { background: linear-gradient(160deg,#fff6d8,#ffe9a8); color:#7a5a12; }
.pc-poster.pc-yolk b { color:#c98a00; }
.pc-poster.pc-court { background: linear-gradient(160deg,#eef4f0,#dfe9e2); color:#1f5c46; border:2px solid #00bda6; }
.pc-poster.pc-court::before { content:''; position:absolute; inset:10px; border:1.5px dashed rgba(0,189,166,.55); border-radius:10px; pointer-events:none; }
.pc-poster.pc-mech { background: linear-gradient(160deg,#22313a,#141f26); color:#e8eef2; }
.pc-poster.pc-mech b { color:#00d9b8; }
.pc-poster.pc-mech::after { content:''; position:absolute; right:12px; bottom:34px; width:34px; height:34px; border:3px dotted rgba(0,217,184,.5); border-radius:50%; }

/* 实时预览：跟着朝向变画幅，内容区居中 */
.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; }

/* 分享按钮（详情页底栏） */
.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); border-radius: var(--r-sm); padding: var(--sp-md) var(--sp-lg); 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; }

/* ======================================================================
   T64 举报 / 拉黑（Wave 3c 齐平第二刀，派总 2026-11-07「小圈子不输小红书/得物」）
   四落点（动态详情、评论行、他人主页、举报表单）共用。`pc-*` 是跨端层，
   m.css 里有逐字相同的一份 —— 两份不一致就是「改一边忘另一边」（闸门 C 项拦这个）。
   ====================================================================== */
/* 一行安静的小字：入口不该比正文更醒目，但要摸得到（热区靠 .pc-report-link 的 padding） */
.pc-post-foot { display: flex; align-items: center; gap: 14px; margin: 10px 0 2px; }
.pc-report-link {
  background: none; border: 0; padding: 6px 0; margin: 0; cursor: pointer;
  font: inherit; font-size: 12px; color: var(--ink-3); text-decoration: none;
}
.pc-report-link:hover { color: var(--danger); text-decoration: underline; }
.pc-report-src {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12.5px; font-weight: 600; color: var(--brand-deep); text-decoration: none;
}
/* 理由单选：长相跟筛选胶囊同一套路子 —— input 透明铺满 label 当点击区。
   ⚠️ 不许 display:none 藏 input，那样点不动也提交不出参数（m-fopt 那条老坑）。 */
.pc-rop-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 2px 0 14px; }
.pc-rop { position: relative; display: inline-flex; cursor: pointer; }
.pc-rop input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer;
}
.pc-rop span {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--ink-2);
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.pc-rop input:checked + span { background: var(--brand); color: #fff; box-shadow: var(--sh-brand); }
.pc-rop input:focus-visible + span { outline: 2px solid var(--brand-deep); outline-offset: 2px; }
.pc-rop-note { display: block; }
.pc-rop-cap { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 6px; }
.pc-rop-ta {
  box-sizing: border-box; width: 100%; min-height: 76px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface-2); color: var(--ink);
  font: inherit; font-size: 14px; line-height: 1.6; resize: vertical;
}
.pc-rop-ta:focus { outline: none; border-color: var(--brand); background: var(--surface); }

/* 正文里的 #话题# 绿链 */
.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; }
/* N 波①（派总 2026-10-18）：窗口恒定 16:9（与 m.css 同口径，见 app.js initGalleryFit）。
   ⚠️ stage 必须显式 height:100%：img 的 height:100% 参照 stage，stage 高度 auto 时
   形成循环 → 浏览器回退图片自然高度，slide 的 aspect-ratio 被内容撑失效。 */
/* T18 优化③c（派总 2026-10-26）：详情里的图片显示高度 ×1.3（网页版这格原来是 16:9）。
   手机端同一条改的是 1:1 → 1:1.3，两端各自按自己的基准抬高，口径一致。 */
.pc-gal-slide { aspect-ratio: 16 / 11.7; flex: 0 0 100%; }
.pc-gal-slide .pb-stage { height: 100%; cursor: zoom-in; }
.pc-gal-slide .pb-stage img { height: 100%; object-fit: cover; object-position: center; }
.pc-gal-slide img.is-tall { object-fit: contain; }
.pc-gal-empty { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-3,#9a9da3); }

/* ---- 得物式「图片海报框」：纯 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; }

/* ==================== W 波 2026-10-10 · 圈子用户名/流水账胶囊/备注折叠/用户卡 ==================== */
.pc-user { color: #0b5a54; font-weight: 700; text-decoration: none; }
.pc-card-kind.is-ledger { background: var(--coral); color: #fff; }
.pc-card-kind.is-story { background: var(--brand); color: #fff; }
.pc-user-card {
  position: absolute; z-index: 90; max-width: 230px;
  display: grid; gap: 2px; padding: var(--sp-md) var(--sp-lg);
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-sm); box-shadow: var(--sh-1);
  font-size: 13px; color: var(--ink);
}
.pc-user-card b { font-size: 14px; }
.pc-user-card-dim { color: var(--ink-3); font-size: 12px; }
.pc-user-card-credit { color: var(--gold, #c8952c); font-weight: 800; font-size: 12px; }

/* X① 后详情页实动作容器；派总 2026-10-12 第 ① 条：重排为等宽三栏（收藏 | 分享 | 删除） */
.pcp-stats { display: flex; align-items: stretch; margin-top: 14px;
  border-top: 1px solid var(--line, #ececec); }
.pcp-stat { flex: 1; display: inline-flex; align-items: center; justify-content: center;
  gap: 5px; border: 0; background: none; color: var(--ink-2, #5f6268);
  font-weight: 700; cursor: pointer; font-size: 13.5px; padding: 13px 4px; text-decoration: none; }
.pcp-stat + .pcp-stat { border-left: 1px solid var(--line, #ececec); }
.pcp-stat .ic { fill: none; }
.pcp-stat.on { color: var(--coral); }
.pcp-stat.on .ic { fill: currentColor; }

/* ============ 评论 / 回复（派总 2026-10-12 第 ① 条；与 m.css 同源，partials 共用） ============ */
.pcp-comments { margin-top: 18px; }
.pcp-cmt-title { font-size: 15px; font-weight: 800; margin: 0 0 10px;
  display: flex; align-items: center; gap: 6px; }
.pcp-cmt-count { color: var(--ink-3, #9a9da3); font-weight: 700; font-size: 13px; }
.pcp-cmt-list { display: flex; flex-direction: column; gap: 16px; }
.pcp-cmt-empty { color: var(--ink-3, #9a9da3); font-size: 13px; text-align: center;
  padding: 14px 0; margin: 0; }
.pcp-cmt { display: flex; gap: 10px; }
.pcp-cmt-ava { flex: 0 0 auto; }
.pcp-cmt-ava .av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  display: block; font-size: 13px; }
.pcp-cmt-body { flex: 1; min-width: 0; }
.pcp-cmt-meta { display: flex; align-items: baseline; gap: 8px; }
.pcp-cmt-meta b { font-size: 13.5px; color: var(--jade, #103c37); font-weight: 800; }
.pcp-cmt-meta b a { color: inherit; text-decoration: none; }
.pcp-cmt-meta span { font-size: 11px; color: var(--ink-3, #9a9da3); }
.pcp-cmt-text { margin: 3px 0 6px; font-size: 14px; line-height: 1.5;
/* Z6⑬ 多级评论：回复的回复前缀「回复 @谁：」—— 深青弱化成次要信息，
   跟后面的正文同字号，不抢视线。 */
.pcp-cmt-rto { color: #0b5a54; font-weight: 700; }
  color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.pcp-cmt-acts { display: flex; align-items: center; gap: 16px; }
.pcp-cmt-like { display: inline-flex; align-items: center; gap: 4px; border: 0;
  background: none; color: var(--ink-3, #9a9da3); cursor: pointer; font-size: 12.5px;
  font-weight: 700; padding: 0; }
.pcp-cmt-like .ic { fill: none; }
.pcp-cmt-like.on { color: var(--coral); }
.pcp-cmt-like.on .ic { fill: currentColor; }
.pcp-cmt-reply { border: 0; background: none; color: var(--ink-3, #9a9da3);
  cursor: pointer; font-size: 12.5px; font-weight: 700; padding: 0; }
.pcp-cmt-replies { margin-top: 14px; display: flex; flex-direction: column; gap: 14px;
  padding-left: 12px; border-left: 2px solid var(--line, #ececec); }
.pcp-cmt--reply .av { width: 30px; height: 30px; font-size: 11px; }

/* R5①（派总 2026-10-21 下午）：partials/_post_card.html 两端共用 ——
   网页版补一份与 m.css 同款的右下角那颗钮（白底 28px / 15px 图标 / .on 珊瑚色），
   放在作者行（.pc-card-foot）右端 = 卡片右下角。
   T18①（派总 2026-10-25）：小圈子的卡片那颗已从「收藏星」改成「点赞爱心 + 次数」，
   需求卡那颗仍是收藏星（只有图标）—— 所以定宽圆钮改成「至少 28px 的胶囊」，
   padding 6.5px 让「只有图标」时宽高仍然是 28×28，外观一点没变。与 m.css 逐字同款。 */
.m-dc-fav-form { position: relative; z-index: 2; margin: 0 0 0 auto; flex-shrink: 0; }
.m-dc-fav {
  min-width: 28px; height: 28px; padding: 0 6.5px; border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink-3, #9a9da3);
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  border: 0; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}
.m-dc-fav .ic { width: 15px; height: 15px; flex: none; }
.m-dc-n { font-size: 11.5px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.m-dc-fav.on { color: var(--coral, #ff6a45); }
.m-dc-fav.on .ic { fill: currentColor; }

/* R7：评论配图改小缩略图（72px 方格，点击进灯箱翻阅）—— 与 m.css 同口径 */
.pcp-cmt-imgs { display: flex; flex-wrap: wrap; gap: 6px;
  margin: 2px 0 8px; }
.pcp-cmt-imgs img { width: 72px; height: 72px; object-fit: cover;
  border-radius: 8px; display: block; background: var(--paper-2, #f3f2ee);
  cursor: zoom-in; }
.pcp-cmt-del { border: 0; background: none; color: var(--ink-3, #9a9da3);
  cursor: pointer; font-size: 12.5px; font-weight: 700; padding: 0; }
.pcp-cmt-form { position: relative; display: flex; align-items: flex-end; gap: 8px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line, #ececec); }
.pcp-emoji-btn { flex: 0 0 auto; border: 0; background: none; font-size: 20px;
  line-height: 1; cursor: pointer; padding: 6px 2px; }
.pcp-cmt-input { flex: 1; min-width: 0; resize: none; border: 1px solid var(--line, #d8dade);
  border-radius: 18px; padding: 9px 14px; font-size: 14px; line-height: 1.4;
  max-height: 120px; font-family: inherit; }
.pcp-cmt-input:focus { outline: none; border-color: var(--brand); }
.pcp-cmt-cancel { flex: 0 0 auto; border: 0; background: none; color: var(--ink-3);
  font-size: 13px; cursor: pointer; padding: 6px; }
.pcp-cmt-send { flex: 0 0 auto; border: 0; background: var(--brand); color: #fff;
  font-weight: 800; font-size: 13.5px; padding: 9px 16px; border-radius: 18px; cursor: pointer; }
.pcp-cmt-send:disabled { opacity: .5; }
.pcp-cmt-login { display: block; margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--line, #ececec); color: var(--brand); font-weight: 700;
  text-decoration: none; font-size: 13.5px; text-align: center; }
.pcp-emoji-panel { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  box-shadow: var(--sh-2); padding: var(--sp-sm); display: grid;
  grid-template-columns: repeat(8, 1fr); gap: 2px; max-height: 160px; overflow-y: auto; z-index: var(--z-sticky); }
.pcp-emoji-panel[hidden] { display: none; }
.pcp-emoji { border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer;
  padding: 4px; border-radius: 8px; }
.pcp-emoji:active { background: var(--line, #ececec); }

/* 第六波④：web 版收藏 on 态星形实心（App 侧同批已换 ☆/★） */
.fav-btn.on .ic { fill: currentColor; }

/* ==========================================================================
   对接管理 · 核验需求 × 提供商 矩阵（Task #28–#30）
   配色沿用设计系统：品牌青=已接通/可切换，coral=停用/警示
   ========================================================================== */
.matrix { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.matrix th, .matrix td { border: 1px solid var(--line, #e9e7e2); padding: 10px 12px;
  text-align: center; vertical-align: middle; }
.matrix thead th { background: var(--surface-2); color: var(--jade, #103c37);
  font-weight: 800; font-size: 12.5px; }
.matrix .m-need-col { width: 26%; text-align: left; }
.matrix .m-need { text-align: left; }
.matrix .m-need .need { font-weight: 700; color: var(--ink); font-size: 14px; }
.matrix .m-need .need-desc { color: var(--ink-2); font-size: 12px; margin-top: 3px; line-height: 1.5; }
.matrix .cell { min-width: 92px; }
.matrix .cell-na { background: repeating-linear-gradient(45deg,#fafafa,#fafafa 6px,#f3f3f3 6px,#f3f3f3 12px); }
.matrix .cell-na .na { color: var(--ink-4, #c3c5ca); font-size: 16px; }
.matrix .cell-connected { background: var(--brand-soft, #ddf7f2); }
.matrix .cell-selected_off { background: #f3f3f1; }
.matrix .cell-switchable { background: #fff; }

.badge-ok, .badge-off { display: inline-block; padding: 3px 9px; border-radius: 20px;
  font-size: 12px; font-weight: 700; line-height: 1.4; }
.badge-ok { background: var(--brand); color: #fff; }
.badge-off { background: #e7e5e1; color: var(--ink-2); }

.inline-form { display: inline-block; margin: 4px 0 0; }
.link-btn { border: 0; background: none; color: var(--brand-deep, #009c8a);
  font-size: 12px; cursor: pointer; padding: 2px 4px; text-decoration: underline; }

.legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 2px 4px;
  font-size: 12px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend .na { color: var(--ink-4, #c3c5ca); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-ok { background: var(--brand); }
.dot-off { background: #c3c3bf; }
.dot-sw { background: #fff; border: 1.5px solid var(--brand); }

.cat-h { margin: 20px 0 10px; font-size: 13px; color: var(--brand-deep, #009c8a);
  font-weight: 800; letter-spacing: .3px; }

/* V 波⑪：帖子卡「来自哪个城市」小字（网页版同款，与 m.css 同步） */
.pc-user-city { font-size: 10.5px; color: var(--ink-3); margin-left: 5px; }

/* ==================== Z 波② · 统一支付密码弹层（网页版） ==================== */
.pay-sheet { position: fixed; inset: 0; z-index: var(--z-pop); }
.pay-sheet .pay-mask { position: absolute; inset: 0; background: var(--scrim); }
.pay-sheet .pay-panel {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(420px, 100%);
  background: var(--surface); border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  padding: var(--sp-xl) var(--sp-xl) var(--sp-lg); text-align: center;
  box-shadow: var(--sh-sheet);
  animation: payUp var(--dur-3) var(--ease-out);
}
@keyframes payUp { from { transform: translate(-50%, 40%); opacity: .5; } to { transform: translate(-50%, 0); opacity: 1; } }
.pay-sheet .pay-x {
  position: absolute; top: 10px; right: 12px; width: 30px; height: 30px;
  border: 0; background: none; color: var(--muted, #7c8a87); font-size: 20px; line-height: 1; cursor: pointer;
}
.pay-sheet .pay-title { font-size: 16px; font-weight: 900; }
.pay-sheet .pay-sub { margin-top: 4px; font-size: 12px; color: var(--muted, #7c8a87); }
.pay-sheet .pay-dots { display: flex; justify-content: center; gap: 12px; margin: 16px 0 6px; }
.pay-sheet .pay-dots i {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1.5px solid var(--line, #dfe7e5); transition: background .12s, border-color .12s;
}
.pay-sheet .pay-dots i.on { background: var(--brand-deep, #0b5a54); border-color: var(--brand-deep, #0b5a54); }
.pay-sheet .pay-msg { min-height: 18px; margin: 2px 0 0; font-size: 12.5px; font-weight: 800; color: #1f8f5f; }
.pay-sheet .pay-msg.is-bad { color: var(--danger, #d2452c); }
.pay-sheet .pay-forgot { display: inline-block; margin-top: 2px; font-size: 12px; color: var(--muted, #7c8a87); }
.pay-sheet .pay-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.pay-sheet .pay-keys button {
  height: 46px; border: 0; border-radius: var(--r-sm); background: var(--surface-2, #f4f7f6);
  font-size: 20px; font-weight: 800; cursor: pointer;
}
.pay-sheet .pay-keys button:active { background: var(--brand-soft, #e2f5f1); }
.pay-sheet .pay-keys .pay-k-ghost { font-size: 15px; color: var(--muted, #7c8a87); }

/* T18③（派总 2026-10-25）：正文里的 @用户名 链接 */
.pc-mentioned { color: var(--brand-deep, #0b5a54); font-weight: 600; text-decoration: none; }
.pc-mentioned:hover { text-decoration: underline; }
