:root {
  /* ===== 典藏风 · 2026-09-12 中国风改版（token 对齐小程序端 redwood-miniapp/app.wxss） =====
   * 设计原则：宣纸白打底，红只做点缀（标题竖条 / 材质方牌 / 价格 / 主按钮），金褐走线，
   * 蓝药丸是整页唯一冷色。几乎不用投影，靠 1px 细线分层。
   * 变量名沿用改版前（下游数百条规则依赖），仅替换取值，新增 3 个典藏风 token。 */
  --paper: #faf7f2;      /* 宣纸白（页面底） */
  --paper-2: #ffffff;    /* 卡片白 */
  --card: #ffffff;       /* 卡片白（显式别名，与小程序 --card 同名） */
  --rose: #8b2f1f;       /* 典藏红（标题竖条/材质标签/价格/主按钮） */
  --rose-2: #a2402c;     /* 典藏红辅助 */
  --gold: #b8924a;       /* 金褐（细描边/装饰线/箭头/小注） */
  --gold-2: #cda75e;     /* 亮金 */
  --ink: #2f2a24;        /* 墨色主文字 */
  --ink-soft: #8c8177;   /* 次要/占位文字 */
  --line: #e8dfd2;       /* 极浅描边（1px 发丝线，替代原金色粗描边） */
  --chip: #f2ebe1;       /* 图标底盘 / 标签底 */
  --pill-bg: #e4eef6;    /* 蓝药丸底（唯一冷色点缀） */
  --pill-text: #2a6a9a;  /* 蓝药丸文字 */
  --shadow: 0 1px 0 rgba(47, 42, 36, 0.04);  /* 典藏风：近乎不可见的贴边线 */
  --green: #2f7d4f;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  background: var(--paper); color: var(--ink); line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* 顶部栏 */
/* 典藏风标志性变化：大红渐变 → 宣纸白底 + 深红字 + 底部 1px 细线 */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper-2);
  color: var(--rose); display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 8px; }
.brand .b-name { font-size: 19px; font-weight: 700; letter-spacing: 2px; color: var(--rose); }
.brand .b-sub { font-size: 11px; color: var(--ink-soft); letter-spacing: 1px; }
.menu-btn { font-size: 22px; line-height: 1; padding: 4px 8px; cursor: pointer;
  color: var(--rose); background: transparent; border: 1px solid var(--line); border-radius: 8px; }

/* 抽屉 */
.drawer-mask { position: fixed; inset: 0; background: rgba(47,42,36,0.4); opacity: 0;
  pointer-events: none; transition: opacity .25s; z-index: 60; }
.drawer-mask.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: 76%; max-width: 320px;
  background: var(--paper); z-index: 61; transform: translateX(100%); transition: transform .28s ease;
  box-shadow: none; border-left: 1px solid var(--line); padding: 20px 18px; overflow-y: auto; }
.drawer.open { transform: translateX(0); }
.drawer h3 { margin: 6px 0 14px; color: var(--rose); letter-spacing: 2px; }
.drawer .nav-item { display: block; padding: 13px 12px; margin-bottom: 6px; border-radius: 8px;
  font-size: 16px; color: var(--ink); border: 1px solid var(--line); background: var(--card); }
.drawer .nav-item:active { background: var(--chip); }
.drawer .close-x { text-align: right; font-size: 22px; color: var(--ink-soft); cursor: pointer; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 14px 60px; }

/* 头图 */
.hero { position: relative; height: 300px; overflow: hidden; color: var(--card); display: flex; align-items: flex-end; background: var(--chip); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(47,42,36,.10) 0%, rgba(47,42,36,.62) 100%); }
.hero .hero-text { position: relative; z-index: 2; padding: 22px 18px 24px; }
.hero .hero-slogan { font-size: 12px; letter-spacing: 3px; opacity: .9; }
.hero .hero-title { font-size: 24px; font-weight: 700; letter-spacing: 2px; margin-top: 6px; text-shadow: 0 1px 6px rgba(47,42,36,.45); }

/* 四大入口（典藏风：白底方牌 + 左侧红竖条，不再是整块红底） */
.entry-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; align-items: stretch; }
.entry-card { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 16/10;
  cursor: pointer; border: 1px solid var(--line); background: var(--card); }
.entry-card .ec-mask { position: absolute; inset: 0; background: var(--card); border-left: 3px solid var(--rose);
  display: flex; flex-direction: column; justify-content: center; align-items: center; color: var(--ink); }
.entry-card .ec-name { font-size: 18px; font-weight: 700; letter-spacing: 2px; color: var(--rose); }
.entry-card .ec-desc { font-size: 11px; color: var(--ink-soft); margin-top: 2px; }
/* 2026-09-16：发布选择页上的「剩余名额」标签（按 kind 显示剩余/上限） */
.quota-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px; background: #f4efe9; color: var(--ink-soft); font-size: 11px; font-weight: 400; letter-spacing: 0; vertical-align: middle; }
.quota-tag.quota-warn { background: #fdf0d5; color: #b26a1b; }
.quota-tag.quota-zero { background: #fdece8; color: #c0392b; }

/* 标题（典藏风：左侧红色竖条点缀 + 右侧 1px 发丝线） */
.section-title { display: flex; align-items: center; gap: 10px; margin: 24px 4px 12px;
  font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: 2px; }
.section-title::before { content: ""; width: 4px; height: 19px; background: var(--rose); border-radius: 2px; display: inline-block; }
/* 标题右侧一条发丝线；order 使细线固定在文字之后、more-link 之前 */
.section-title::after { content: ""; order: 1; flex: 1 1 auto; height: 1px; background: var(--line); }
.section-title .more-link { order: 2; margin-left: 0; }
.more-link { margin-left: auto; font-size: 12px; color: var(--ink-soft); }

/* 筛选条 */
.filter-bar { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; -ms-overflow-style: none; }
.filter-bar::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; font-size: 13px;
  background: var(--chip); border: 1px solid var(--line); color: var(--ink-soft); cursor: pointer; }
.chip.active { background: var(--rose); color: var(--card); border-color: var(--rose); font-weight: 700; }

.search-row { display: flex; gap: 8px; margin: 4px 2px 12px; }
.search-row input { flex: 1; }

/* 卡片网格 */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-items: stretch; }
.my-item { display: flex; flex-direction: column; }
/* 我的发布：外层包裹件撑满栅格高度，保证同行卡片底边对齐 */
.my-item > .card { flex: 1 1 auto; }
.my-item-exp { font-size: 11px; color: var(--ink-soft); padding: 4px 2px 0; }
.my-item-exp.exp-soon { color: #c0392b; font-weight: 700; }
.card { background: var(--card); border-radius: 8px; overflow: hidden; cursor: pointer; border: 1px solid var(--line); display: flex; flex-direction: column; }
/* 商品图统一 1:1 固定比例：同一行的图片上沿、下沿、尺寸完全一致 */
.card .c-img { aspect-ratio: 1/1; overflow: hidden; flex: 0 0 auto; background: var(--chip); }
.card .c-img img { width: 100%; height: 100%; object-fit: cover; }
/* 文字区给固定最小高度；标题/材质固定行位，两列网格严格等高 */
.card .c-body { padding: 9px 11px 11px; flex: 1 1 auto; min-height: 92px; display: flex; flex-direction: column; }
.card .c-title { font-size: 14px; font-weight: 700; line-height: 1.45; min-height: 2.9em; color: var(--ink); }
.card .c-meta { font-size: 11px; color: var(--ink-soft); margin-top: 3px; min-height: 1.7em;
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.card .c-price { font-size: 13px; color: var(--rose); font-weight: 700; margin-top: auto; padding-top: 5px; }
/* 材质方牌：红底白字小方牌（对齐小程序 .seal-tag / .itc-tag） */
.badge { display: inline-block; font-size: 10px; line-height: 1.7; padding: 0 6px; border-radius: 4px;
  background: var(--rose); color: var(--card); margin-right: 5px; }

/* 社区流 */
.feed { display: flex; flex-direction: column; gap: 14px; }
.post { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 13px; }
.post .p-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
/* 方印头像（对齐小程序 .mcc-avatar：4px 圆角 + 金褐描边） */
.post .avatar { width: 34px; height: 34px; border-radius: 4px; background: var(--chip); border: 1px solid var(--gold); color: var(--rose);
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.post .p-name { font-size: 14px; font-weight: 700; }
.post .p-time { font-size: 11px; color: var(--ink-soft); }
.post .p-content { font-size: 14px; color: var(--ink); }
.post .p-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 9px; }
.post .p-imgs img { width: 100%; height: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 4px; cursor: pointer; }

/* 详情 */
.detail-img { width: 100%; border-radius: 8px; border: 1px solid var(--line); }
.back-bar { margin: 14px 0 4px; color: var(--rose); font-size: 14px; cursor: pointer; }
.detail-name { font-size: 21px; font-weight: 700; color: var(--rose); margin: 10px 0 4px; letter-spacing: 1px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
/* 蓝药丸：整页唯一冷色，用于标签 / 权益点 */
.tag { background: var(--pill-bg); border: 1px solid transparent; color: var(--pill-text);
  font-size: 12px; padding: 5px 11px; border-radius: 999px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: 14px; }
.spec-table td { padding: 10px 8px; border-bottom: 1px dashed var(--line); vertical-align: top; }
.spec-table td:first-child { color: var(--ink-soft); width: 72px; white-space: nowrap; }
.detail-desc { font-size: 15px; color: var(--ink); background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 14px; white-space: pre-wrap; }
.call-box { display: flex; gap: 10px; margin-top: 14px; }
.call-box a { flex: 1; text-align: center; padding: 12px; border-radius: 999px; font-size: 15px; font-weight: 700; }
.call-box .call { background: var(--rose); color: var(--card); }
.call-box .wx { background: var(--card); color: var(--rose); border: 1px solid var(--gold); }

/* 表单 */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-top: 8px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--rose); font-weight: 700; margin-bottom: 6px; }
.field .req { color: #c0392b; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 16px; font-family: inherit; color: var(--ink); background: var(--card); }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--rose); }
/* 登录页「记住账号 / 长期在线」勾选 */
.remember-row { display: flex; gap: 18px; margin: 2px 2px 14px; font-size: 13px; color: var(--ink-soft); }
.remember-row .remember-item { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.remember-row input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--rose); cursor: pointer; }

.img-picker { border: 1px dashed var(--gold); border-radius: 8px; padding: 16px; text-align: center;
  color: var(--ink-soft); cursor: pointer; font-size: 14px; background: var(--chip); }
.img-picker:active { border-color: var(--rose); }
/* 认证方式切换（商家入驻：营业执照 / 身份证） */
.cert-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.cert-tab { flex: 1; padding: 10px 0; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink-soft); font-size: 14px; font-weight: 700; cursor: pointer; }
.cert-tab.on { background: var(--rose); color: var(--card); border-color: var(--rose); }
.preview-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.preview-thumbs .pt { position: relative; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.preview-thumbs .pt img { width: 100%; height: 100%; object-fit: cover; }
.preview-thumbs .pt .del { position: absolute; top: 2px; right: 2px; background: rgba(47,42,36,.55); color: #fff;
  border-radius: 50%; width: 18px; height: 18px; line-height: 18px; text-align: center; font-size: 12px; cursor: pointer; }

.btn-primary { display: block; width: 100%; padding: 14px; border: none; border-radius: 999px;
  background: var(--rose); color: var(--card);
  font-size: 16px; font-weight: 700; letter-spacing: 2px; cursor: pointer; margin-top: 6px; }
.btn-primary:disabled { opacity: .6; }
.tip { font-size: 12px; color: var(--ink-soft); margin: 6px 2px 0; }

/* 浮动发布按钮 */
.fab { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 45;
  background: var(--rose); color: var(--card);
  border-radius: 999px; padding: 12px 18px; font-size: 15px; font-weight: 700; border: none;
  cursor: pointer; }

.foot { text-align: center; color: var(--ink-soft); font-size: 12px; margin-top: 24px; line-height: 1.9; }
.empty { text-align: center; color: var(--ink-soft); padding: 40px 0; font-size: 14px; }

/* 图片大图预览 */
.lightbox { position: fixed; inset: 0; background: rgba(47,42,36,.88); z-index: 80; display: none;
  align-items: center; justify-content: center; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90%; border-radius: 8px; }

/* 登录欢迎条（典藏风：白底 + 左侧红竖条，不再是大红底） */
.welcome { background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-left: 3px solid var(--rose);
  border-radius: 8px; padding: 10px 14px; font-size: 13px; margin: 14px 0 4px; }
.welcome a { color: var(--rose); text-decoration: underline; }

/* 推荐商家 / 商家卡片 */
.mlist { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
/* 首页推荐商家：单行横向滚动。条数与顺序完全由接口（featuredMerchantIds / featuredMerchantLimit）决定，
   前端不硬编码条数或顺序；卡片定宽不换行、滚动吸附、隐藏滚动条 */
.mlist-row { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 12px; overflow-x: auto;
  padding: 2px 2px 8px; margin-bottom: 8px; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; }
.mlist-row::-webkit-scrollbar { display: none; }
.mlist-row .merchant-card { flex: 0 0 168px; width: 168px; scroll-snap-align: start; }
/* 商家方牌（对齐小程序 merchant-card：白方牌 + 1px 细边 + 方印头像 + 金箭头，固定高度保证横滑严格等高） */
.merchant-card { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 6px;
  height: 150px; background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 12px 10px; cursor: pointer; position: relative; overflow: hidden; }
/* 方印头像：4px 圆角 + 金褐描边，替代原来的红色实心圆 */
.mc-ava { width: 46px; height: 46px; border-radius: 4px; background: var(--card); border: 1px solid var(--gold); color: var(--gold-2);
  display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; flex: 0 0 auto; }
.mc-ava.lg { width: 60px; height: 60px; font-size: 24px; }
.mc-info { flex: 1 1 auto; min-width: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.mc-name { font-size: 14px; font-weight: 700; color: var(--ink); max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-sub { font-size: 11px; color: var(--ink-soft); max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-go { position: absolute; right: 10px; bottom: 8px; color: var(--gold); font-size: 18px; line-height: 1; }
.hot { font-size: 10px; background: var(--pill-bg); color: var(--pill-text); padding: 1px 7px; border-radius: 999px; margin-right: 5px; vertical-align: middle; }
.c-title .hot { color: var(--pill-text); }

/* v4 身份徽标（会员 / 分享员）：蓝药丸，整页唯一冷色点缀 */
.mk-badge { display: inline-block; font-size: 10px; line-height: 1.5; padding: 1px 7px; border-radius: 999px;
  margin-right: 6px; vertical-align: middle; font-weight: 700; }
.mk-paid { background: var(--pill-bg); color: var(--pill-text); }
.mk-agent { background: var(--pill-bg); color: var(--pill-text); }

/* 商家卡片上的联系方式行（后端带 contact 才渲染，会员/分享员商家） */
.mc-contact { font-size: 11px; line-height: 1.4; margin-top: 2px; width: 100%; text-align: center;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; word-break: break-all; }
.mc-contact.ok { color: var(--green); }
.mc-contact.msg { color: var(--rose-2); }

/* 商家 owner 联系卡（店铺 / 商品详情共用） */
.owner-card { background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; margin: 12px 0; }
.oc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 14px; font-weight: 700; margin-bottom: 4px; flex-wrap: wrap; }
.oc-t { color: var(--rose); }
.oc-note { font-size: 11px; color: var(--ink-soft); font-weight: 400; }
.oc-actions { margin-top: 6px; }
.owner-card .btn-msg { margin: 10px 0 2px; }

/* 个人中心 */
.me-head { display: flex; align-items: center; gap: 14px; margin: 14px 0 10px; }
.me-head .mc-name { font-size: 18px; }
.stat-row { display: flex; gap: 10px; margin: 6px 0 14px; }
.stat { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px; text-align: center; }
.s-num { font-size: 20px; font-weight: 700; color: var(--rose); }
.s-lab { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.me-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.btn-ghost { flex: 1 0 auto; min-width: 46%; text-align: center; padding: 11px; border-radius: 999px; font-size: 14px; font-weight: 700;
  background: var(--card); border: 1px solid var(--rose); color: var(--rose); cursor: pointer; text-decoration: none; }
.btn-ghost:active { background: var(--chip); }
.btn-share { display: block; width: 100%; margin: 12px 0; padding: 12px; border-radius: 999px; border: none;
  background: var(--rose); color: var(--card); font-size: 15px; font-weight: 700; cursor: pointer; }
.shop-head { display: flex; align-items: center; gap: 14px; margin: 14px 0 6px; }

/* 我的店铺（商家统一入口） */
.ms-head { display: flex; align-items: center; gap: 14px; margin: 14px 0 10px; }
.ms-head .mc-name { font-size: 18px; }
.s-sm { font-size: 11px; color: var(--ink-soft); font-weight: 400; }
.ms-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.ms-actions .btn-primary { flex: 1 0 100%; }
.ms-actions .btn-ghost { flex: 1 0 46%; }
.ms-box { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.ms-line { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.ms-line b { color: var(--rose); font-size: 16px; }
.ms-box .more-link { display: block; text-align: right; margin-top: 6px; }
.ms-list { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 2px 14px; }
.ms-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ms-row:last-child { border-bottom: none; }
.ms-t { font-size: 14px; font-weight: 700; color: var(--ink); }
.ms-s { font-size: 12px; color: var(--ink-soft); margin-top: 3px; }
.ms-r { font-size: 14px; font-weight: 700; color: var(--rose); text-align: right; }
.ms-r .ok { color: var(--green); }
.ms-r .warn { color: #d98324; }
.ok { color: var(--green); }
.warn { color: #d98324; }
.mut { color: var(--ink-soft); }

/* 登录/注册 */
.auth-wrap { max-width: 460px; padding-top: 40px; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.auth-title { font-size: 20px; font-weight: 700; color: var(--rose); text-align: center; letter-spacing: 2px; margin-bottom: 10px; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 16px; }
.seg a { flex: 1; text-align: center; padding: 10px; font-size: 15px; color: var(--ink-soft); text-decoration: none; }
.seg a.on { background: var(--rose); color: var(--card); font-weight: 700; }
.lic-prev { font-size: 13px; color: var(--ink-soft); margin: 8px 0; }
.lic-prev a { color: var(--rose-2); }

/* 微信服务号 OAuth 登录按钮（2026-09-14 加） */
.auth-divider { display: flex; align-items: center; margin: 18px 0 12px; color: var(--ink-soft); font-size: 12px; }

/* 小程序 me 页：公众号关注引导容器（2026-09-14 加） */
.me-oa-row { padding: 12px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; margin: 12px 16px 0; }

/* H5 顶部公众号引导条（2026-09-14 加） */
.oa-launch-bar { background: linear-gradient(90deg, #07C160 0%, #06AD56 100%); color: #fff; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.oa-launch-bar wx-open-launch-weapp { flex: 1; min-width: 0; display: block; }
.oa-launch-bar wx-open-launch-weapp > template { display: block; width: 100%; }
.oa-launch-btn { display: flex; align-items: center; gap: 8px; padding: 4px 0; color: #fff; font-size: 14px; line-height: 1.4; }
.oa-launch-icon { font-size: 18px; }
.oa-launch-text { flex: 1; min-width: 0; }
.oa-launch-arrow { font-size: 18px; opacity: .85; }
.oa-launch-fallback { color: #fff; font-size: 12px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.5); border-radius: 4px; text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.oa-launch-fallback:hover { background: rgba(255,255,255,.1); }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-divider span { padding: 0 12px; }
.wechat-login-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 11px 14px;
  border: 1px solid #07C160; border-radius: 8px;
  background: #07C160; color: #fff;
  font-size: 15px; font-weight: 600;
  cursor: pointer; transition: filter .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.wechat-login-btn:hover { filter: brightness(1.05); }
.wechat-login-btn:active { filter: brightness(0.95); }
.wechat-login-btn:disabled { opacity: .5; cursor: not-allowed; }
.wechat-login-btn .wx-icon { width: 20px; height: 20px; flex-shrink: 0; }
.wechat-login-tip { font-size: 12px; color: var(--ink-soft); text-align: center; margin-top: 10px; line-height: 1.5; }

/* 分享弹窗 */
.share-modal { position: fixed; inset: 0; z-index: 90; display: none; }
.share-modal.open { display: block; }
.sm-mask { position: absolute; inset: 0; background: rgba(47,42,36,.5); }
.sm-panel { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 520px;
  max-height: 88vh; max-height: 88dvh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--paper); border-radius: 12px 12px 0 0; border-top: 1px solid var(--line);
  padding: 20px 18px calc(26px + env(safe-area-inset-bottom)); box-shadow: 0 -1px 0 var(--line); }
.sm-close { text-align: right; font-size: 22px; color: var(--ink-soft); cursor: pointer; }
.sm-title { font-size: 18px; font-weight: 700; color: var(--rose); text-align: center; }
.sm-desc { font-size: 13px; color: var(--ink); margin: 10px 0 14px; line-height: 1.7; }
.sm-desc b { color: var(--rose-2); }
.sm-link { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px;
  background: var(--card); color: var(--ink); margin-bottom: 12px; }

/* 手机版 / 小程序 弹窗（两端互链） */
/* 一键唤起是主操作，用实心主色与「复制网址」形成主次对比 */
.mp-jump { flex: 1 0 100%; width: 100%; margin-bottom: 10px; border: none; border-radius: 999px;
  background: var(--rose); color: var(--card); }
.mp-jump:disabled { opacity: .6; }
.mp-qr-box { display: flex; justify-content: center; margin: 12px 0 10px; }
.mp-qr-box .wechat-qr { width: 180px; height: 180px; object-fit: contain; margin: 0; }
.mp-qr-canvas { width: 180px; height: 180px; background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 0; image-rendering: pixelated; }

/* 管理后台 */
.adm-card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 13px; margin-bottom: 12px; }
.adm-top { font-size: 15px; }
.adm-sub { font-size: 12px; color: var(--ink-soft); margin: 4px 0; }
.adm-sub.bad { color: #c0392b; font-weight: 700; }
.adm-sub.warn { color: #d98324; font-weight: 700; }
.adm-sub.ok { color: var(--green); font-weight: 700; }
.adm-act { display: flex; gap: 10px; margin-top: 8px; }
.adm-note { font-size: 12px; color: var(--ink-soft); line-height: 1.6; margin: -4px 0 12px; }
.btn-mini { flex: 1; padding: 9px; border-radius: 999px; border: none; font-size: 14px; font-weight: 700; cursor: pointer; text-align: center; text-decoration: none; line-height: 1.4; }
.btn-mini.ok { background: var(--green); color: #fff; }
.btn-mini.bad { background: #c0392b; color: #fff; }
.btn-mini.ghost { background: var(--card); color: var(--rose); border: 1px solid var(--rose); }
/* 账号处置状态横幅（我的页顶部） */
.warn-banner { font-size: 13px; line-height: 1.5; padding: 10px 12px; border-radius: 8px; margin: 4px 0 10px; background: var(--card); border: 1px solid #ffd591; color: #874d00; }
.warn-banner.warn { background: var(--card); border-color: #ffd591; color: #874d00; }
.warn-banner.bad { background: #fff1f0; border-color: #ffa39e; color: #a8071a; }

/* 管理后台：Tab 条 / 筛选 / 搜索 / 待办角标 */
.adm-tabs { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; margin: 4px 0 12px; }
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tab { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink-soft); font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.adm-tab.on { background: var(--rose); color: var(--card); border-color: var(--rose); }
.adm-dot { display: inline-block; min-width: 16px; padding: 0 4px; margin-left: 4px; border-radius: 9px;
  background: #c0392b; color: #fff; font-size: 11px; font-style: normal; line-height: 16px; text-align: center; }
.adm-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 10px; }
.adm-chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink-soft); font-size: 12px; cursor: pointer; }
.adm-chip.on { background: var(--rose); color: var(--card); border-color: var(--rose); font-weight: 700; }
.adm-search { margin: 0 0 12px; }
/* 输入框 16px：小于 16px 时 iOS Safari 聚焦会自动放大整页 */
.adm-search input { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 16px; background: var(--card); color: var(--ink); }
.adm-search input:focus { outline: none; border-color: var(--rose); }

/* 我的页面 · 管理员后台入口（白底 + 左侧红竖条） */
.admin-entry { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-decoration: none;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-left: 3px solid var(--rose);
  border-radius: 8px; padding: 14px 16px; margin: 4px 0 14px; }
.ae-title { font-size: 16px; font-weight: 700; color: var(--rose); }
.ae-sub { font-size: 12px; color: var(--ink-soft); margin-top: 3px; }
.ae-go { font-size: 20px; color: var(--gold); }

/* 修改密码弹窗 */
.sm-actions { display: flex; gap: 10px; margin-top: 16px; }
.sm-actions .btn-primary { flex: 1; }
.sm-actions .btn-ghost { flex: 0 0 auto; min-width: 90px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px);
  background: rgba(47,42,36,.92); color: var(--card); padding: 10px 18px; border-radius: 999px; font-size: 14px;
  z-index: 95; opacity: 0; pointer-events: none; transition: all .25s; max-width: 80%; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.nav-logout { margin-top: 16px; padding: 12px; text-align: center; border-radius: 999px; background: var(--card); border: 1px solid var(--rose); color: var(--rose); cursor: pointer; }
.empty.ok { color: var(--green); }
.empty.bad { color: #c0392b; }

/* 抽屉未读红点 */
.nav-badge { display: none; background: #c0392b; color: #fff; font-size: 11px; min-width: 16px; height: 16px; line-height: 16px; text-align: center; border-radius: 9px; padding: 0 4px; margin-left: 6px; vertical-align: middle; }

/* 私信按钮 */
.btn-msg { display: block; width: 100%; margin: 10px 0; padding: 12px; border-radius: 999px; border: 1px solid var(--rose);
  background: var(--card); color: var(--rose); font-size: 15px; font-weight: 700; cursor: pointer; }

/* 评论 */
.cmt-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.cmt { display: flex; gap: 9px; }
.cmt .c-ava { width: 30px; height: 30px; border-radius: 4px; background: var(--chip); border: 1px solid var(--gold); color: var(--rose); flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.cmt .c-body { flex: 1; min-width: 0; }
.cmt .c-top { font-size: 13px; display: flex; gap: 8px; align-items: baseline; }
.cmt .c-top b { color: var(--ink); }
.cmt .c-top span { font-size: 11px; color: var(--ink-soft); }
.cmt .c-text { font-size: 14px; color: var(--ink); margin-top: 2px; white-space: pre-wrap; }
.cmt-form { display: flex; gap: 8px; }
.cmt-form input { flex: 1; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 16px; font-family: inherit; background: var(--card); }
.cmt-form button { padding: 0 18px; border: none; border-radius: 999px; background: var(--rose); color: var(--card); font-weight: 700; cursor: pointer; }

/* 私信会话 */
.conv { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px; cursor: pointer; position: relative; }
.conv-mid { flex: 1; min-width: 0; }
.conv-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.conv-last { font-size: 12px; color: var(--ink-soft); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-unread { background: #c0392b; color: #fff; font-size: 11px; min-width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 9px; padding: 0 5px; }

/* 对话气泡 */
.chat { display: flex; flex-direction: column; gap: 10px; padding: 6px 0; max-height: 60vh; overflow-y: auto; }
.bubble { max-width: 76%; padding: 9px 13px; border-radius: 8px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.bubble.theirs { align-self: flex-start; background: var(--chip); border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; }
.bubble.mine { align-self: flex-end; background: var(--rose); color: var(--card); border-bottom-right-radius: 4px; }
.chat-input { display: flex; gap: 8px; margin-top: 10px; }
.chat-input input { flex: 1; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 16px; font-family: inherit; background: var(--card); }
.chat-input button { padding: 0 18px; border: none; border-radius: 999px; background: var(--rose); color: var(--card); font-weight: 700; cursor: pointer; }

/* 网站备案底部 */
.site-footer { margin-top: 18px; padding: 16px 16px calc(18px + env(safe-area-inset-bottom)); text-align: center;
  background: var(--paper-2); border-top: 1px solid var(--line); color: var(--ink-soft); }
.beian-row { font-size: 12px; line-height: 1.9; }
.beian-row a { color: var(--ink-soft); text-decoration: none; }
.beian-row a:active { color: var(--rose); }
.beian-sep { margin: 0 8px; opacity: .6; }
.copyright { font-size: 11px; opacity: .7; margin-top: 6px; }
.foot-links { font-size: 12px; margin-top: 8px; line-height: 1.9; }
.foot-links a { color: var(--ink-soft); text-decoration: none; }
.foot-links a:active { color: var(--rose); }

/* 关于 / 协议 / 隐私 静态页 */
.doc { font-size: 14px; line-height: 1.85; color: var(--ink); }
.doc p { margin: 0 0 14px; }
.doc b { color: var(--rose); }
.doc .tip { font-size: 12px; color: var(--ink-soft); background: var(--card); border: 1px dashed var(--line); border-radius: 8px; padding: 10px 12px; }
.doc .wechat-qr { display: block; max-width: 220px; width: 56vw; border: 1px solid var(--line); border-radius: 8px; margin: 8px 0 12px; }
/* 客服浮层：微信号 / 电话两行，紧凑、可点击拨号 */
.cs-row { display: flex; gap: 8px; align-items: center; padding: 8px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; margin: 6px 0; font-size: 14px; }
.cs-row .cs-lab { color: var(--ink-soft); flex-shrink: 0; }
.cs-row .cs-val { color: var(--ink); font-weight: 500; word-break: break-all; }
.cs-row .cs-val.link { color: var(--rose); text-decoration: none; }
/* 客服浮层里的二维码：脱离 .doc 容器后居中、限制最大尺寸 */
.sm-panel .wechat-qr { display: block; max-width: 240px; width: 56vw; margin: 8px auto 12px; border: 1px solid var(--line); border-radius: 8px; }

/* 分享海报（长按保存 → 发朋友圈） */
.poster-panel { max-height: 92vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.poster-wrap { display: flex; align-items: center; justify-content: center; min-height: 240px; margin: 4px 0 10px; }
.poster-img { width: 100%; max-width: 320px; border-radius: 8px; box-shadow: 0 1px 0 rgba(47,42,36,.06); display: block; }
.poster-loading { padding: 60px 0; color: var(--ink-soft); font-size: 14px; }

/* 注册图形验证码 */
.captcha-field { margin-top: 12px; }
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-img { width: 120px; height: 50px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); cursor: pointer; flex: 0 0 auto; }
.captcha-refresh { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--rose-2); text-decoration: none; }
.captcha-refresh:hover { text-decoration: underline; }

/* 我的专属邀请链接 */
.invite-box { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin: 4px 0 14px; }
.invite-title { font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 10px; }
.invite-row { display: flex; gap: 8px; align-items: stretch; }
.invite-row .sm-link { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; color: var(--ink-soft); background: var(--card); }

/* 我的 · 会员状态（免费模式：仅展示账户状态，无付费入口） */
.member-box { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin: 4px 0 14px; }
.member-row { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.member-row b { color: var(--rose); font-size: 16px; }
.member-tip { font-size: 13px; color: var(--ink-soft); margin-top: 8px; line-height: 1.6; }
.member-tip.ok { color: var(--green); }

/* 首页 · 家具分类（对齐小程序 .ring-ico：细金线圈 + 白底 + 红字） */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 8px 0 4px; align-items: stretch; }
.cat-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px 6px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); transition: transform .12s, border-color .12s; }
.cat-tile:active { transform: scale(.96); }
.cat-tile:hover { border-color: var(--gold); }
.cat-badge { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold); background: var(--card); color: var(--rose); display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; letter-spacing: 1px; overflow: hidden; flex: 0 0 auto; }
/* 类目配图盖在首字底之上；图片缺失时 img 被 JS 移除，自动露出首字，不会裂图 */
.cat-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.cat-fallback { font-style: normal; }
.cat-full { font-size: 12px; color: var(--ink); font-weight: 500; text-align: center; letter-spacing: .5px; }

/* ============================================================
   移动端优先适配（手机用户占绝大多数）
   ============================================================ */

/* 底部 Tab 栏：单手拇指可达，替代桌面端的抽屉+悬浮按钮 */
.tabbar {
  display: none;                 /* 默认隐藏，桌面端仍然用 FAB */
  position: fixed; left: 0; right: 0; bottom: 0;
  height: calc(56px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  z-index: 48;
  justify-content: space-around;
  align-items: flex-start;
}
.tabbar .tb-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding-top: 7px; height: 56px; color: var(--ink-soft); text-decoration: none;
}
.tabbar .tb-item.active { color: var(--rose); }
.tabbar .tb-icon { font-size: 20px; line-height: 1; margin-bottom: 2px; }
.tabbar .tb-label { font-size: 11px; line-height: 1.25; font-weight: 500; }
.tabbar .tb-center {
  position: relative; top: -14px;
  width: 58px; height: 58px; flex: 0 0 58px;
  background: var(--rose);
  border-radius: 50%; color: var(--card);
  border: 3px solid var(--paper);
  padding-top: 0; justify-content: center;
}
.tabbar .tb-center .tb-icon { font-size: 26px; }
.tabbar .tb-center .tb-label { position: absolute; bottom: -16px; color: var(--ink-soft); }

/* 手机端：显示 Tab 栏，隐藏悬浮发布按钮 */
@media (max-width: 768px) {
  .tabbar { display: flex; }
  .fab { display: none; }
  .wrap { padding: 0 14px calc(18px + env(safe-area-inset-bottom) + 62px); }
  .site-footer { padding: 16px 16px calc(14px + env(safe-area-inset-bottom) + 56px); }
  .hero { height: 220px; }
}

/* 小平屏进一步收紧 */
@media (max-width: 359px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cat-tile { padding: 12px 4px; }
  .cat-badge { width: 40px; height: 40px; font-size: 15px; }
  .cat-full { font-size: 11px; }
  .grid { grid-template-columns: 1fr; }
}

/* 超小屏（iPhone SE 320px） */
@media (max-width: 330px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .brand .b-sub { display: none; }
}

/* 桌面端 / 平板横屏：Tab 栏隐藏，恢复悬浮按钮，放宽布局 */
@media (min-width: 769px) {
  .tabbar { display: none; }
  .fab { display: block; }
  .wrap { padding: 0 14px 60px; }
  .site-footer { padding: 16px 16px calc(18px + env(safe-area-inset-bottom)); }
  .hero { height: 340px; }
  .hero .hero-title { font-size: 30px; }
}

/* ============================================================
   增强版剪切板管理器（2026-09-16 · clipboard-history.js + clipboard-panel.js）
   ============================================================ */

/* 浮窗按钮 */
.cb-fab {
  position: fixed;
  right: 18px;
  bottom: 78px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--rose, #8b2f1f);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  cursor: pointer;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cb-fab:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.24); }
.cb-fab:active { transform: scale(0.94); }
.cb-fab-ico { font-size: 22px; line-height: 1; }

/* 徽标 */
.cb-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #ff3b30;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--bg, #faf7f2);
  pointer-events: none;
}

/* 面板 */
.cb-panel {
  position: fixed;
  right: 18px;
  bottom: 136px;
  width: min(360px, calc(100vw - 36px));
  max-height: 70vh;
  background: var(--card, #ffffff);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  border: 1px solid var(--border, #e6e0d8);
  z-index: 91;
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-size: 14px;
}
.cb-panel.cb-open { display: flex; }

.cb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border, #e6e0d8);
  background: var(--card, #ffffff);
  flex-shrink: 0;
}
.cb-title { font-weight: 600; color: var(--text, #3a2e27); }
.cb-head-actions { display: flex; gap: 6px; }
.cb-btn-text {
  border: none;
  background: transparent;
  color: var(--rose, #8b2f1f);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 13px;
  border-radius: 6px;
  font-family: inherit;
}
.cb-btn-text:hover { background: var(--chip, #f3ece5); }
.cb-btn-text.cb-close { font-size: 20px; line-height: 1; padding: 0 8px; }

.cb-body {
  flex: 1;
  overflow-y: auto;
  padding: 6px 8px;
  -webkit-overflow-scrolling: touch;
}

.cb-foot {
  padding: 8px 14px;
  border-top: 1px solid var(--border, #e6e0d8);
  font-size: 11px;
  color: var(--muted, #8c8177);
  text-align: center;
  background: var(--card, #ffffff);
  flex-shrink: 0;
}

/* 空态 */
.cb-empty {
  padding: 30px 16px;
  text-align: center;
  color: var(--muted, #8c8177);
}
.cb-empty-ico { font-size: 36px; opacity: 0.5; margin-bottom: 8px; }
.cb-empty-text { font-size: 14px; margin-bottom: 4px; }
.cb-empty-tip { font-size: 12px; opacity: 0.85; line-height: 1.6; }

/* 单条 */
.cb-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 4px;
  transition: background 0.15s ease;
}
.cb-item:hover { background: var(--chip, #f3ece5); }
.cb-item-ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--chip, #f3ece5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.cb-item.cb-type-phone .cb-item-ico { background: #e8f5e9; }
.cb-item.cb-type-url   .cb-item-ico { background: #e3f2fd; }
.cb-item.cb-type-text  .cb-item-ico { background: var(--chip, #f3ece5); }

.cb-item-body { flex: 1; min-width: 0; }
.cb-item-text {
  font-size: 13px;
  color: var(--text, #3a2e27);
  word-break: break-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  margin-bottom: 4px;
}
.cb-item-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.cb-tag {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--chip, #f3ece5);
  color: var(--muted, #8c8177);
}
.cb-tag-src { background: #f3ece5; }
.cb-tag-time { background: transparent; color: var(--muted, #8c8177); padding-left: 0; }

.cb-item-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.cb-btn {
  border: 1px solid var(--border, #e6e0d8);
  background: var(--card, #ffffff);
  color: var(--text, #3a2e27);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.cb-btn:hover { background: var(--chip, #f3ece5); }
.cb-btn-copy { color: var(--rose, #8b2f1f); }
.cb-btn-del {
  width: 26px;
  height: 26px;
  padding: 0;
  font-size: 16px;
  line-height: 1;
  color: var(--muted, #8c8177);
}
.cb-btn-del:hover { color: #ff3b30; background: #fff5f5; border-color: #ffd6d0; }

/* 移动端适配 */
@media (max-width: 480px) {
  .cb-fab { width: 44px; height: 44px; right: 14px; bottom: 70px; }
  .cb-panel {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 122px;
    max-height: 60vh;
  }
}
