/* h5/css/common.css - H5 预览版通用样式 */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-primary: #8B3A2E;
  --color-secondary: #C9A961;
  --color-bg: #F5EFE0;
  --color-text: #3E2A1F;
  --color-text-light: #8B7355;
  --color-border: #E5D9C0;
  --color-success: #4A7C59;
  --color-warning: #C9A961;
  --color-danger: #B5453B;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "STSong", "KaiTi", serif;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== 顶部预览条（已停用，横幅 DOM 与预留高度均已移除） ===== */

/* ===== 移动容器（手机宽度） ===== */
.phone-frame {
  max-width: 420px;
  margin: 0 auto;
  background: var(--color-bg);
  min-height: 100vh;
  padding-top: 0;          /* 预览横幅已移除，不再预留高度 */
  padding-bottom: 80px;    /* 留出 tabBar 高度 */
  position: relative;
  box-shadow: 0 0 24px rgba(0,0,0,0.08);
}

@media (min-width: 768px) {
  .phone-frame { margin: 32px auto 32px; border-radius: 24px; overflow: hidden; }
}

/* ===== 顶部导航栏（模拟小程序 navBar） ===== */
.nav-bar {
  background: var(--color-primary);
  color: #FFFFFF;
  height: 44px;
  line-height: 44px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-back {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
}
.nav-back:active { background: rgba(255,255,255,0.12); }

/* 2026-10-02：顶栏转发按钮（A 转发时所在页面，好友打开直达同页）。
   图标为 iOS 风格「方框+上箭头」SVG（用户拍板，替代旧 ↗ 文本箭头）。
   标准页面 nav-bar 居中标题 → 绝对定位右侧；
   商城页等布局特殊的 nav-bar → data.js 注入时自动改用 inline 模式排在最右 */
.nav-share {
  position: absolute;
  right: 12px;
  top: 0;
  height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.nav-share-inline {
  position: static;
  height: 44px;
  display: flex;
  align-items: center;
}
/* 复制链接后的提示气泡 */
.share-toast {
  position: fixed;
  left: 50%;
  bottom: 30%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(0,0,0,.78);
  color: #FFFFFF;
  font-size: 13px;
  line-height: 1.6;
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 99999;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  max-width: 78%;
  text-align: center;
  pointer-events: none;
}
.share-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- 分享面板（仿主流电商「分享到」底部弹层，用户拍板 2026-10-02） ---- */
.ss-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 100000;
  animation: ssFade .2s ease;
}
.ss-sheet {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 100%; max-width: 420px; background: #F7F5F0;
  border-radius: 16px 16px 0 0; z-index: 100001;
  animation: ssUp .26s cubic-bezier(.22,.9,.3,1);
  overflow: hidden;
}
.ss-head {
  position: relative; text-align: center;
  font-size: 14px; color: #8A8A8A; padding: 16px 0 10px;
}
.ss-close {
  position: absolute; right: 16px; top: 12px;
  font-size: 22px; line-height: 1; color: #B0AAA0; cursor: pointer;
}
.ss-row { display: flex; padding: 6px 10px 22px; }
.ss-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer; font-size: 11.5px; color: #444;
}
.ss-item svg { width: 44px; height: 44px; border-radius: 50%; }
.ss-item:active { opacity: .75; }
.ss-cancel {
  border-top: 1px solid #E8E3D8; background: #FFFFFF;
  text-align: center; padding: 14px 0 calc(14px + env(safe-area-inset-bottom));
  font-size: 15px; color: #333; cursor: pointer;
}
@keyframes ssFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ssUp { from { transform: translateX(-50%) translateY(100%); } to { transform: translateX(-50%) translateY(0); } }

/* ---- 微信内转发引导蒙层（方案A，2026-10-02 拍板）----
   微信不给网页调起好友选择器的接口，微信内点「微信好友/朋友圈」改教用户
   走右上角「···」原生菜单；蒙层盖住分享面板(z-index 100001)，点击任意处关闭 */
#wxg-mask {
  position: fixed; inset: 0; z-index: 100100;
  background: rgba(0,0,0,.78);
  animation: ssFade .2s ease;
  cursor: pointer;
}
.wxg-arrow {
  position: absolute; top: 0; right: 8px;
  width: 140px; height: 300px;
  animation: wxgFloat 1.1s ease-in-out infinite;
}
.wxg-ring {
  fill: none; stroke: #FFD76A; stroke-width: 3.5; stroke-dasharray: 8 6;
  animation: wxgBlink 1.2s ease-in-out infinite;
}
.wxg-line { fill: none; stroke: #FFD76A; stroke-width: 3.5; stroke-dasharray: 9 7; }
.wxg-head { fill: #FFD76A; }
.wxg-tip {
  position: absolute; top: 34%; left: 24px; right: 24px;
  text-align: center; color: #fff;
  font-size: 22px; font-weight: 600; letter-spacing: 1px;
}
.wxg-sub {
  position: absolute; top: calc(34% + 42px); left: 24px; right: 24px;
  text-align: center; color: rgba(255,255,255,.92); font-size: 16px;
}
.wxg-close {
  position: absolute; bottom: 56px; left: 50%; transform: translateX(-50%);
  white-space: nowrap; color: rgba(255,255,255,.65); font-size: 13px;
  border: 1px solid rgba(255,255,255,.4); border-radius: 20px; padding: 8px 20px;
}
@keyframes wxgFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes wxgBlink { 0%,100% { stroke-opacity: 1; } 50% { stroke-opacity: .35; } }

/* ===== 底部 tabBar ===== */
.tab-bar {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 420px;
  background: #FFFFFF;
  display: flex;
  border-top: 1px solid #E5D9C0;
  z-index: 99;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
  /* iPhone 底部安全区：把 tab 图标文字抬到 home indicator 上方（2026-10-02） */
  padding-bottom: env(safe-area-inset-bottom);
}

.tab-item {
  flex: 1;
  text-align: center;
  padding: 6px 0;
  font-size: 12px;
  color: var(--color-text-light);
  text-decoration: none;
}

.tab-item.active {
  color: var(--color-secondary);
}

/* svg 图标 tab 与 emoji 图标视觉统一：图标区固定高、内容垂直居中，
   消除 emoji 行高(~35px)与 svg(22px) 的高度差，五个 tab 图标/文字横向对齐 */
.tab-icon {
  position: relative;      /* 作为 svg 绝对定位的基准 */
  height: 35px;
}
.tab-icon svg {
  /* 钉到图标区底部：emoji 字形本来就贴着文字（间隙约 2px），svg 用同样位置，不再悬空 */
  position: absolute;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  height: 26px;
}

.tab-icon {
  font-size: 22px;
  display: block;
  margin-bottom: 2px;
}

/* 只有图标、没有文字的 tab（串串升值记，2026-10-17 用户要求去掉文字）：
   和其它 tab 一样高，图标垂直居中，避免顶部对齐看起来像浮在上面 */
.tab-item.icon-only {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
}
.tab-item.icon-only .tab-icon { margin-bottom: 0; line-height: 0; }
.tab-item.icon-only svg { display: block; }

.tab-badge {
  position: absolute;
  top: -7px;
  right: -11px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  box-sizing: border-box;
  background: #D9382C;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 600;
  line-height: 14px;
  text-align: center;
  border-radius: 9px;
  border: 1.5px solid #FFF8EC;
  box-shadow: 0 1px 3px rgba(61, 26, 18, 0.35);
  z-index: 2;
  pointer-events: none;
}

/* 顶部导航栏迷你角标（购物车数字）——显式锁定行高，防止继承导航栏 line-height 被撑高 */
.badge-mini {
  position: absolute;
  top: -7px;
  right: -11px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  box-sizing: border-box;
  background: #D9382C;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 600;
  line-height: 14px;
  text-align: center;
  border-radius: 9px;
  border: 1.5px solid #FFF8EC;
  box-shadow: 0 1px 3px rgba(61, 26, 18, 0.35);
  z-index: 2;
  pointer-events: none;
  display: none;
}

/* ===== 通用组件 ===== */
.container { padding: 16px; }
/* 内容底部保底留白：tabBar 实高 69px，凡 .phone-frame 内的容器统一留够，
   防止「我的」子页等列表最后一条被 tabBar 盖住（2026-10-02）；已有内联更大留白的页面不受影响 */
/* iPhone 底部安全区（home indicator 约 34px）也属于视口，90px 会不够 → 加 env() 拼上（2026-10-02 二次修复）；
   老浏览器不认 env() 会忽略第二条声明，自动回退到 90px */
.phone-frame .container { padding-bottom: 90px; padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
.section-title {
  font-size: 16px;
  font-weight: 700;
  padding: 12px 0;
  display: flex;
  align-items: center;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--color-primary);
  margin-right: 8px;
  border-radius: 2px;
}

.card {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(139, 58, 46, 0.05);
}

.card-zh {
  background: #FFFFFF;
  border: 1px solid var(--color-secondary);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
}

.card-zh::before {
  content: '';
  position: absolute;
  top: 3px; left: 3px; right: 3px; bottom: 3px;
  border: 1px solid var(--color-secondary);
  border-radius: 4px;
  pointer-events: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 14px;
  border: none;
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
}

.btn-primary { background: var(--color-primary); color: #FFFFFF; }
.btn-secondary { background: var(--color-secondary); color: #FFFFFF; }
.btn-outline { background: transparent; border: 1px solid var(--color-primary); color: var(--color-primary); }
.btn-zh { background: var(--color-primary); color: #FFFFFF; border: 1px solid var(--color-secondary); border-radius: 4px; padding: 13px 22px; }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

.tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 3px;
  background: var(--color-bg);
  color: var(--color-text-light);
  margin-right: 4px;
  margin-bottom: 4px;
}

.tag-primary { background: var(--color-primary); color: #FFFFFF; }
.tag-secondary { background: var(--color-secondary); color: #FFFFFF; }
.tag-outline { background: transparent; border: 1px solid var(--color-primary); color: var(--color-primary); }
.tag-success { background: var(--color-success); color: #FFFFFF; }
.tag-danger { background: var(--color-danger); color: #FFFFFF; }

.price-strong { color: var(--color-primary); font-weight: 700; font-size: 18px; }
.price-range {
  display: inline-flex;
  align-items: baseline;
  background: linear-gradient(135deg, #8B3A2E 0%, #C9A961 100%);
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 14px;
}
.price-range .min { font-size: 16px; font-weight: 700; }
.price-range .max { font-size: 13px; }
.price-range .unit { font-size: 11px; margin-left: 4px; opacity: 0.8; }

.divider { height: 1px; background: var(--color-border); margin: 12px 0; }
.text-muted { color: var(--color-text-light); }
.text-primary { color: var(--color-primary); }
.text-center { text-align: center; }

.empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--color-text-light);
}
.empty-icon { font-size: 48px; opacity: 0.4; margin-bottom: 8px; }

/* 产品卡 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.product-card {
  background: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(139, 58, 46, 0.06);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.product-card-img {
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--color-bg);
  display: block;
}

.product-card-body {
  padding: 8px 12px;
}

.product-card-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 36px;
}

.product-card-meta {
  font-size: 11px;
  color: var(--color-text-light);
  margin-top: 4px;
}

.product-card-price {
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 700;
  margin-top: 6px;
}

/* 知识卡 */
.kc {
  background: #FFFFFF;
  border-left: 3px solid var(--color-secondary);
  padding: 14px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 8px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.kc-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.kc-summary {
  font-size: 12px;
  color: var(--color-text-light);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 表单 */
.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.option {
  padding: 10px 18px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--color-text);
  background: #FFFFFF;
  cursor: pointer;
}

.option.active {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
}

/* banner */
.banner {
  background: linear-gradient(135deg, #8B3A2E 0%, #5A1F18 100%);
  padding: 24px 20px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
}

.banner-title { font-size: 22px; font-weight: 700; letter-spacing: 1px; }
.banner-subtitle { font-size: 13px; color: var(--color-secondary); margin-top: 4px; }
.banner::after {
  content: '木';
  position: absolute;
  right: -20px;
  bottom: -30px;
  font-size: 120px;
  font-weight: 700;
  color: var(--color-secondary);
  opacity: 0.15;
  font-family: STSong, KaiTi, serif;
}

.camera-btn {
  margin: 16px 0;
  background: linear-gradient(135deg, #C9A961 0%, #8B3A2E 100%);
  color: #FFFFFF;
  border-radius: 8px;
  padding: 16px 0;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: block;
  box-shadow: 0 2px 6px rgba(139, 58, 46, 0.2);
}
.camera-btn-hint { display: block; font-size: 11px; opacity: 0.8; margin-top: 3px; font-weight: 400; }

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.quick-item {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 12px 0;
  text-align: center;
  font-size: 12px;
  color: var(--color-text);
  text-decoration: none;
  cursor: pointer;
}
.quick-item-icon { font-size: 28px; display: block; margin-bottom: 4px; }

/* 详情页样式 */
.detail-hero {
  background: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  text-align: center;
}
.detail-hero-img {
  width: 100%;
  height: 240px;
  background: var(--color-bg);
  display: block;
}
.detail-hero-body { padding: 14px; }
.detail-name { font-size: 20px; font-weight: 700; color: var(--color-primary); }

.section-block {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
}
.section-block-h {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}
.section-block-h::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--color-secondary);
  margin-right: 8px;
  border-radius: 2px;
}
.list-row {
  font-size: 13px;
  line-height: 1.7;
  padding: 4px 0;
  display: flex;
}
.list-row .dot {
  width: 6px;
  height: 6px;
  background: var(--color-secondary);
  border-radius: 50%;
  margin: 9px 8px 0 0;
  flex-shrink: 0;
}

/* 底部固定栏（bottom 69px = tabBar 实高，2026-10-02 修复被 tabBar 盖住 19px） */
.bottom-bar {
  position: fixed;
  bottom: 69px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 420px;
  background: #FFFFFF;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
  z-index: 50;
}

.bottom-bar .btn { flex: 1; }

.icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  color: var(--color-text-light);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.icon-btn-icon { font-size: 18px; }

/* 提示（2026-10-12 统一：全站警示块用同一底色 + 左边线，醒目符号统一用「!」） */
.warn-card {
  background: transparent;
  border: none;
  border-left: 3px solid #E6A23C;
  border-radius: 6px;
  padding: 10px;
  font-size: 12px;
  color: #8a6d1f;
  line-height: 1.65;
  margin-top: 12px;
}

/* 购物车 */
.cart-item {
  display: flex;
  background: #FFFFFF;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
  align-items: center;
}
.cart-item-cover {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  background: var(--color-bg);
  margin: 0 12px;
  flex-shrink: 0;
}
.cart-item-name { font-size: 14px; font-weight: 600; }
.cart-item-meta { font-size: 11px; color: var(--color-text-light); margin-top: 2px; }
.cart-item-price { font-size: 14px; color: var(--color-primary); font-weight: 700; margin-top: 4px; }
.cart-item-qty { display: flex; align-items: center; margin-top: 4px; }
.qty-btn {
  width: 28px;
  height: 28px;
  background: var(--color-bg);
  text-align: center;
  line-height: 28px;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
}
.qty-val { width: 40px; text-align: center; }

/* ===== 购物车：滑动删除 ===== */
.cart-item-wrap {
  position: relative;
  margin-bottom: 8px;
  border-radius: 8px;
  overflow: hidden;
}
.cart-item-wrap .cart-item { margin-bottom: 0; }
.cart-item-inner {
  position: relative;
  z-index: 1;
  transition: transform 0.2s ease;
  touch-action: pan-y;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}
.cart-item-inner input { user-select: text; -webkit-user-select: text; }
.cart-item-inner.shifted { transform: translateX(-78px); }
.cart-del-btn {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 78px;
  background: #D9382C;
  color: #FFFFFF;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

/* ===== 购物车：可直接输入的数量框 ===== */
.qty-input {
  width: 46px;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--color-text);
  font-family: inherit;
  padding: 2px 0;
  -webkit-appearance: none;
  appearance: textfield;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input:focus {
  outline: 1.5px solid var(--color-secondary);
  border-radius: 4px;
  background: #FBF8F0;
}

.checkbox {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--color-secondary);
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  background: #FFFFFF;
}
.checkbox.checked {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #FFFFFF;
}
/* ============ 客服对话框 ============ */
#cs-panel .cs-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 10000;
  animation: csFade .2s ease;
}
#cs-panel .cs-box {
  position: fixed; left: 50%; bottom: 70px; transform: translateX(-50%);
  width: 100%; max-width: 480px; max-height: calc(82vh - 70px);
  /* 2026-10-01：改为「贴底」形态——底部两角直角，紧贴 tabBar 顶边，
     上方两角保留圆角，视觉上像从底栏上方长出来的弹窗 */
  background: #fff; border-radius: 16px 16px 0 0; z-index: 10001;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 -6px 32px rgba(0,0,0,.18);
  animation: csUp .26s cubic-bezier(.22,.9,.3,1);
}
/* 2026-10-01：面板从贴底改为悬在底部 tabBar 上方（bottom:70px ≥ tab 实际高度），
   打开客服时 5 个标签始终可见，不再被面板盖住 */
@keyframes csFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes csUp { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }

#cs-panel .cs-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid #F0E9DA; flex: none;
}
#cs-panel .cs-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, #9A7B4F, #C9A063);
  color: #fff; font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
#cs-panel .cs-close {
  font-size: 24px; color: #A3957D; cursor: pointer; line-height: 1;
  padding: 0 4px; user-select: none;
}
#cs-panel .cs-body {
  flex: 1; overflow-y: auto; padding: 16px; background: #FBF9F5;
  min-height: 200px; -webkit-overflow-scrolling: touch;
}
/* 2026-10-01：快捷问题从横向滑动改为竖排列表（用户反馈好点选） */
#cs-panel .cs-quick-wrap {
  display: flex; flex-direction: column; gap: 7px; padding: 10px 14px;
  border-top: 1px solid #F0E9DA; flex: none;
  max-height: 190px; overflow-y: auto;
}
#cs-panel .cs-quick-wrap::-webkit-scrollbar { display: none; }
#cs-panel .cs-quick {
  width: 100%; text-align: left; font-size: 12.5px; padding: 9px 14px; border-radius: 10px;
  border: 1px solid #E0D3B5; background: #FDFBF6; color: #7A5C2E;
  cursor: pointer; font-family: inherit; box-sizing: border-box;
}
#cs-panel .cs-quick:active { background: #F3EDDF; }
#cs-panel .cs-input-row {
  display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid #F0E9DA; flex: none;
}
#cs-panel .cs-input-row input {
  flex: 1; border: 1px solid #E5DCC9; border-radius: 20px;
  padding: 9px 15px; font-size: 13px; outline: none; font-family: inherit;
  background: #FDFCF9;
}
#cs-panel .cs-input-row input:focus { border-color: #B99A5E; background: #fff; }
#cs-panel .cs-send {
  border: none; background: #8B3A2E; color: #fff; border-radius: 20px;
  padding: 9px 20px; font-size: 13px; cursor: pointer; font-family: inherit; flex: none;
}
#cs-panel .cs-send:active { background: #742F25; }
#cs-panel .cs-actions {
  display: flex; gap: 8px; padding: 0 14px 10px; flex: none;
}
#cs-panel .cs-act {
  flex: 1; font-size: 12.5px; padding: 9px 0; border-radius: 8px;
  border: 1px solid #DFD2B4; background: #F7F2E6; color: #7A5C2E;
  cursor: pointer; font-family: inherit;
}
#cs-panel .cs-act:active { background: #EFE7D5; }
#cs-panel .cs-foot {
  font-size: 11.5px; color: #8A7D68; text-align: center;
  padding: 0 14px 14px; line-height: 1.6; flex: none;
}
#cs-panel .cs-foot b { color: #8B3A2E; }

/* ---------- 变化预期时间线（2026-10-20） ---------- */
.kb-stages { padding: 2px 0 0; }
.kb-stage { display: flex; gap: 10px; }
.kb-stage-left { display: flex; flex-direction: column; align-items: center; width: 22px; flex: 0 0 22px; }
.kb-stage-idx {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--color-secondary); color: #FFFFFF;
  font-size: 12px; font-weight: 700; line-height: 22px; text-align: center;
  flex: 0 0 auto;
}
.kb-stage-line { flex: 1 1 auto; width: 2px; background: #EADFCF; margin: 3px 0; min-height: 14px; }
.kb-stage-body { flex: 1 1 auto; padding-bottom: 14px; }
.kb-stage:last-child .kb-stage-body { padding-bottom: 0; }
.kb-stage-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.kb-stage-name { font-size: 13.5px; font-weight: 700; color: var(--color-primary); }
.kb-stage-days {
  font-size: 11px; color: #8B3A2E; background: #FBF2EE;
  border-radius: 9px; padding: 1px 7px; font-weight: 600; white-space: nowrap;
}
.kb-stage-desc { font-size: 12.5px; line-height: 1.65; color: #5C534B; }
