/* ============================================================
   剪单 · 闲鱼风移动端设计系统
   明亮 / 瀑布流 / 430px 手机壳
   ============================================================ */
:root {
  --brand: #FFD233;
  --brand-deep: #FFB800;
  --brand-soft: #FFF7DD;
  --brand-grad: linear-gradient(135deg, #FFE259 0%, #FFC400 100%);
  --price: #FF4D2E;
  --price-soft: #FFF0EC;

  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #1a1a1a;
  --text-2: #6b6b6b;
  --text-3: #a8a8a8;
  --line: #ececec;
  --line-soft: #f5f5f5;
  --border-card: 1px solid rgba(0,0,0,.04);

  --green: #19c37d;
  --blue: #2f88ff;
  --orange: #ff8a00;
  --red: #ff3b30;

  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 9px;
  --radius-full: 999px;

  --app-w: 430px;
  --header-h: 54px;
  --tabbar-h: 58px;

  --shadow-card: 0 1px 4px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.03);
  --shadow-card-hover: 0 4px 14px rgba(0,0,0,.07);
  --shadow-pop: 0 10px 36px rgba(0,0,0,.18);
  --shadow-brand: 0 4px 14px rgba(255,184,0,.35);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: #dfe1e5;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 14px; }
h1,h2,h3,h4 { margin: 0; font-weight: 700; }
p { margin: 0; }
code { font-family: Menlo, Consolas, monospace; }

/* ==================== 手机壳 ==================== */
.app {
  width: 100%;
  max-width: var(--app-w);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 60px rgba(0,0,0,.1);
  padding-bottom: calc(var(--tabbar-h) + 14px);
}
.app-main { padding: 0 12px; }

/* ==================== 顶部栏 ==================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.app-header.has-brand { background: var(--brand-grad); border-bottom: none; box-shadow: 0 2px 10px rgba(255,184,0,.2); }
.app-header .back-btn {
  width: 34px; height: 34px; border-radius: 50%; border: none; background: rgba(0,0,0,.06);
  font-size: 18px; color: var(--text); flex: none; transition: background .15s;
}
.app-header .back-btn:active { background: rgba(0,0,0,.12); }
.app-header .title { font-size: 17px; font-weight: 700; flex: 1; }
.app-header .title .sub { font-size: 12px; color: var(--text-3); font-weight: 400; margin-left: 6px; }

/* 搜索药丸 */
.search-pill {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f2f3f5;
  border-radius: var(--radius-full);
  padding: 9px 14px;
  border: 1px solid transparent;
  transition: all .15s;
}
.search-pill:focus-within { background: #fff; border-color: var(--brand-deep); box-shadow: 0 0 0 3px rgba(255,184,0,.12); }
.has-brand .search-pill { background: rgba(255,255,255,.9); }
.search-pill .ico { font-size: 15px; color: var(--text-3); flex: none; }
.search-pill input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 14px; color: var(--text); min-width: 0;
}
.search-pill .scan { font-size: 18px; flex: none; color: var(--text-2); }
.header-action { font-size: 13px; color: var(--text); flex: none; font-weight: 600; }

/* ==================== 金刚区 ==================== */
.king-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px 0;
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 8px 12px;
  margin: 12px 0;
  box-shadow: var(--shadow-card);
  border: var(--border-card);
}
.king-item {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 6px 2px;
}
.king-item .kico {
  width: 46px; height: 46px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  font-size: 23px;
  background: var(--brand-soft);
  transition: transform .12s;
}
.king-item:active .kico { transform: scale(.92); }
.king-item .kname { font-size: 11.5px; color: var(--text-2); font-weight: 500; }

/* ==================== 横向滚动 chips ==================== */
.chips-scroll {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 4px;
  scrollbar-width: none;
}
.chips-scroll::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  padding: 7px 15px;
  border-radius: var(--radius-full);
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
  transition: all .12s;
}
.chip.active { background: var(--text); color: #fff; border-color: var(--text); }

/* 分段控件 */
.seg-bar {
  display: flex; background: #eceef1; border-radius: var(--radius-full); padding: 4px;
  margin: 14px 0 6px;
}
.seg-item {
  flex: 1; text-align: center; padding: 8px 0; border-radius: var(--radius-full);
  font-size: 13.5px; color: var(--text-3); border: none; background: transparent; font-weight: 600;
  transition: all .15s;
}
.seg-item.active { background: var(--card); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.08); }

/* ==================== 区块标题 ==================== */
.sec-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 16px 2px 10px;
}
.sec-head h1, .sec-head h2 { font-size: 17px; display: flex; align-items: center; gap: 6px; }
.sec-head .more { font-size: 12.5px; color: var(--text-3); border: none; background: none; }
.section-title { font-size: 18px; margin: 16px 2px 4px; }
.section-sub { font-size: 13px; color: var(--text-3); margin: 0 2px 10px; }

/* ==================== 瀑布流 ==================== */
.waterfall {
  columns: 2;
  column-gap: 9px;
}
.wf-card {
  break-inside: avoid;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
  border: var(--border-card);
  text-align: left; width: 100%; padding: 0;
  transition: transform .12s, box-shadow .15s;
}
.wf-card:active { transform: scale(.98); box-shadow: var(--shadow-card-hover); }
.wf-media {
  width: 100%;
  background: linear-gradient(135deg, #fff3cf, #ffe1c9);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.wf-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.wf-media .fallback-ico { font-size: 34px; opacity: .7; }
.wf-media .ratio-tag {
  position: absolute; right: 6px; bottom: 6px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 10px;
  padding: 2px 7px; border-radius: 6px; backdrop-filter: blur(4px);
}
.wf-media .play-ico {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: rgba(255,255,255,.9); text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.wf-body { padding: 10px 12px 12px; }
.wf-title {
  font-size: 14px; line-height: 1.45; color: var(--text); font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wf-price { margin-top: 7px; font-size: 18px; font-weight: 800; color: var(--price); }
.wf-price .yuan { font-size: 12px; }
.wf-price .unit { font-size: 11px; color: var(--text-3); font-weight: 400; margin-left: 4px; }
.wf-foot {
  margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 5px;
}
.wf-foot .wf-name {
  font-size: 11.5px; color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1;
  display: inline-flex; align-items: center; gap: 4px;
}
.wf-foot .want-btn {
  border: none; background: var(--price-soft); color: var(--price);
  font-size: 11.5px; padding: 5px 12px; border-radius: var(--radius-full); flex: none; font-weight: 700;
}

/* 需求瀑布卡（剪辑师视角） */
.wf-demand-media {
  background: linear-gradient(135deg, #ffe9e2, #fff3cf);
  aspect-ratio: 4/3;
  min-height: 0;
  padding: 10px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
}
.wf-demand-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; padding: 0; }
.wf-demand-media .dm-cat {
  align-self: flex-start; font-size: 10.5px; background: rgba(255,255,255,.92);
  padding: 3px 9px; border-radius: var(--radius-full); color: var(--text-2);
  position: relative; z-index: 1; backdrop-filter: blur(4px);
}
.wf-demand-media .dm-budget { font-size: 22px; font-weight: 800; color: var(--price); position: relative; z-index: 1; text-shadow: 0 1px 4px rgba(255,255,255,.6); }
.wf-demand-media .dm-budget .yuan { font-size: 14px; }
.wf-demand-media .dm-mianyi { font-size: 16px; font-weight: 700; color: var(--text); position: relative; z-index: 1; }

/* ==================== 通用卡片 ==================== */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: var(--border-card);
  padding: 15px;
  margin-bottom: 12px;
}
.card-title { font-size: 15.5px; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; font-weight: 700; }
.text-muted { color: var(--text-3); }
.text-secondary { color: var(--text-2); }
.text-center { text-align: center; }
.mt-sm { margin-top: 8px; } .mt-md { margin-top: 12px; } .mt-lg { margin-top: 16px; }
.mb-sm { margin-bottom: 8px; } .mb-md { margin-bottom: 12px; } .mb-lg { margin-bottom: 16px; }
.flex { display: flex; }
.flex-1 { flex: 1; min-width: 0; }
.items-center { align-items: center; }
.gap-xs { gap: 6px; } .gap-sm { gap: 8px; } .gap-md { gap: 12px; } .gap-lg { gap: 18px; }
.flex-wrap { flex-wrap: wrap; }
.flex-between { justify-content: space-between; }

/* ==================== 徽章 ==================== */
.badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; padding: 2px 8px;
  border-radius: var(--radius-full);
  background: #f2f3f5; color: var(--text-2);
  border: none;
}
.badge-gold { background: linear-gradient(135deg, #FFE259, #FFA751); color: #6b3900; font-weight: 700; }
.badge-blue { background: #e8f2ff; color: var(--blue); }
.badge-green { background: #e6faf2; color: #0a9d62; }
.badge-orange { background: #fff4e5; color: #e67700; }
.badge-red { background: #ffeceb; color: var(--red); }
.badge-dark { background: #333; color: #fff; }
.cert-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; padding: 2px 8px; border-radius: var(--radius-full);
  background: #e6faf2; color: #0a9d62; font-weight: 600;
}
.cert-deposit { background: #fff4d6; color: #b27b00; }

/* ==================== 按钮 ==================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 14px; font-weight: 600;
  padding: 11px 18px;
  transition: transform .08s, opacity .2s, box-shadow .15s;
}
.btn:active { transform: scale(.97); }
.btn-sm { padding: 7px 13px; font-size: 12.5px; border-radius: var(--radius-xs); }
.btn-lg { padding: 14px 22px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand-grad); border-color: transparent; color: #3d2c00; font-weight: 700; box-shadow: var(--shadow-brand); }
.btn-buy { background: var(--price); border-color: var(--price); color: #fff; font-weight: 700; box-shadow: 0 3px 10px rgba(255,77,46,.3); }
.btn-secondary { background: #f5f6f8; border-color: #f5f6f8; color: var(--text-2); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text-2); }
.btn-blue { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 3px 10px rgba(47,136,255,.25); }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* ==================== 表单 ==================== */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: #f7f8fa;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  outline: none;
  font-size: 14px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--brand-deep); background: #fff; box-shadow: 0 0 0 3px rgba(255,184,0,.1); }
.form-textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.form-hint { font-size: 12px; color: var(--text-3); margin-top: 7px; line-height: 1.5; }
.form-row { display: flex; gap: 10px; }
.form-row > * { flex: 1; }
.required { color: var(--price); }

/* 滑块 */
.price-slider { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-3); }
.price-slider input[type=range] { flex: 1; accent-color: var(--brand-deep); }
.price-display { min-width: 96px; text-align: right; font-weight: 700; color: var(--text); font-size: 14px; }

/* v25 预算输入框 */
.price-input-wrap {
  display: flex; align-items: center; gap: 4px;
  background: #f8f9fb; border: 1px solid #e2e2e2; border-radius: var(--radius-sm);
  padding: 0 14px; height: 46px; transition: border-color .15s, box-shadow .15s;
}
.price-input-wrap:focus-within { border-color: var(--brand-deep); box-shadow: 0 0 0 3px rgba(255,184,0,.15); background: #fff; }
.piw-yuan { font-size: 18px; font-weight: 800; color: var(--price); flex: none; }
.piw-input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 18px; font-weight: 700; color: var(--text); padding: 0; height: 100%; }
.piw-input::-webkit-outer-spin-button, .piw-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.piw-unit { font-size: 13px; color: var(--text-3); flex: none; }

/* v25 图片上传器 */
.img-uploader { margin-top: 4px; }
.iu-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.iu-item { position: relative; width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-card); }
.iu-item img { width: 100%; height: 100%; object-fit: cover; }
.iu-del {
  position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; border: none; font-size: 14px; line-height: 1;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.iu-del:active { background: rgba(0,0,0,.75); }
.iu-add {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  width: 100%; height: 44px; border: 1px dashed #c8c8c8; border-radius: var(--radius-sm);
  background: #fafafa; color: var(--text-2); font-size: 13.5px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.iu-add:active { background: #f0f0f0; border-color: var(--brand-deep); }

/* ==================== 提示条 ==================== */
.tip-bar {
  display: flex; align-items: center; gap: 8px;
  background: var(--brand-soft); color: #7a5b00;
  border-radius: var(--radius-sm); padding: 11px 13px; font-size: 12.5px;
  margin-bottom: 10px;
}
.tip-bar.info { background: #ecf4ff; color: #155cb0; }
.tip-bar.warn { background: #fff4e5; color: #b35900; }

/* ==================== 底部弹层（闲鱼式） ==================== */
.sheet-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 500; display: none;
}
.sheet-mask.active { display: block; animation: fadeIn .18s; }
.sheet {
  position: fixed;
  left: 50%; transform: translate(-50%, 100%);
  bottom: 0; width: 100%; max-width: var(--app-w);
  max-height: 88vh; overflow-y: auto;
  background: var(--card);
  border-radius: 18px 18px 0 0;
  z-index: 501;
  transition: transform .26s cubic-bezier(.22,.8,.3,1);
  padding-bottom: 20px;
}
.sheet-mask.active + .sheet, .sheet.active { transform: translate(-50%, 0); }
.sheet-handle {
  width: 36px; height: 4px; border-radius: 2px; background: #ddd;
  margin: 8px auto 4px;
}
.sheet-close {
  position: absolute; right: 14px; top: 12px;
  width: 30px; height: 30px; border-radius: 50%; border: none;
  background: #f2f3f5; font-size: 14px; color: var(--text-2);
  z-index: 2;
}
.sheet-pad { padding: 8px 16px 0; }

/* ==================== 列表行（移动端卡式） ==================== */
.list-card {
  background: var(--card); border-radius: var(--radius-sm);
  padding: 13px 14px; margin-bottom: 10px; box-shadow: var(--shadow-card);
  border: var(--border-card);
  display: flex; gap: 12px; align-items: flex-start;
  transition: box-shadow .15s;
}
.list-card:active { box-shadow: var(--shadow-card-hover); }
.list-card .lc-main { flex: 1; min-width: 0; }
.list-card .lc-title { font-size: 14.5px; font-weight: 600; margin-bottom: 5px; }
.list-card .lc-desc { font-size: 12.5px; color: var(--text-2); margin-bottom: 7px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-card .lc-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 11.5px; color: var(--text-3); align-items: center; }
.list-card .lc-right { text-align: right; flex: none; }
.list-card .lc-price { font-size: 17px; font-weight: 800; color: var(--price); white-space: nowrap; }

/* 分页按钮 */
.pager { display: flex; gap: 10px; justify-content: center; align-items: center; margin: 14px 0 4px; }
.pager .pinfo { font-size: 12.5px; color: var(--text-3); }

/* ==================== 步骤条 ==================== */
.steps { display: flex; margin-bottom: 14px; }
.step-node { flex: 1; text-align: center; position: relative; font-size: 11px; color: var(--text-3); }
.step-node::before {
  content: ''; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--line);
}
.step-node:first-child::before { display: none; }
.step-node .snum {
  width: 22px; height: 22px; border-radius: 50%; background: var(--card);
  border: 2px solid var(--line); margin: 0 auto 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; position: relative; z-index: 1; color: var(--text-3);
}
.step-node.done { color: var(--text); }
.step-node.done::before { background: var(--brand-deep); }
.step-node.done .snum { background: var(--brand); border-color: var(--brand); color: #3d2c00; }
.step-node.cur { color: var(--text); font-weight: 700; }
.step-node.cur .snum { border-color: var(--brand-deep); color: var(--price); }

/* 分期/里程碑节点 */
.stage-track { display: flex; justify-content: space-between; margin: 6px 0 2px; }
.stage-node { flex: 1; text-align: center; font-size: 11.5px; color: var(--text-3); position: relative; }
.stage-node::before { content: ''; position: absolute; top: 10px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.stage-node:first-child::before { display: none; }
.stage-node .sdot {
  width: 22px; height: 22px; border-radius: 50%; background: var(--card);
  border: 2px solid var(--line); margin: 0 auto 5px; display: flex; align-items: center;
  justify-content: center; font-size: 12px; position: relative; z-index: 1;
}
.stage-node.paid { color: var(--text); font-weight: 600; }
.stage-node.paid::before { background: var(--green); }
.stage-node.paid .sdot { background: var(--green); border-color: var(--green); color: #fff; }

/* ==================== 聊天 ==================== */
.chat-box { display: flex; flex-direction: column; gap: 12px; min-height: 140px; }
.chat-msg { max-width: 78%; font-size: 13.5px; }
.chat-msg .cm-meta { font-size: 10.5px; color: var(--text-3); margin-bottom: 3px; }
.chat-msg.received { align-self: flex-start; }
.chat-msg.received .cm-bubble { background: #fff; border: 1px solid var(--line); border-radius: 4px 12px 12px 12px; padding: 9px 12px; }
.chat-msg.sent { align-self: flex-end; }
.chat-msg.sent .cm-meta { text-align: right; }
.chat-msg.sent .cm-bubble { background: var(--brand-soft); border-radius: 12px 4px 12px 12px; padding: 9px 12px; }
.chat-inputbar { display: flex; gap: 8px; margin-top: 12px; }
.chat-inputbar input { flex: 1; }

/* ==================== 我的页 ==================== */
.profile-hero {
  background: var(--brand-grad);
  border-radius: var(--radius);
  padding: 20px 18px;
  margin: 12px 0;
  box-shadow: 0 6px 20px rgba(255,184,0,.25);
  position: relative;
  overflow: hidden;
}
.profile-hero::after {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.profile-hero .ph-top { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.profile-hero .ph-name { font-size: 20px; font-weight: 800; color: #3d2c00; }
.profile-hero .ph-badges { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; position: relative; z-index: 1; }
.profile-hero .ph-stats { display: flex; margin-top: 16px; position: relative; z-index: 1; }
.profile-hero .ph-stat { flex: 1; text-align: center; color: #5c4400; }
.profile-hero .ph-stat .n { font-size: 18px; font-weight: 800; }
.profile-hero .ph-stat .l { font-size: 11px; opacity: .85; }

/* 九宫格菜单 */
.menu-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--card); border-radius: var(--radius);
  padding: 18px 8px; box-shadow: var(--shadow-card);
  border: var(--border-card);
}
.menu-item {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 10px 2px; position: relative; border: none; background: none;
  transition: transform .12s;
}
.menu-item:active { transform: scale(.94); }
.menu-item .mico {
  width: 46px; height: 46px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  background: var(--brand-soft);
}
.menu-item:nth-child(4n+2) .mico { background: #e8f4ff; }
.menu-item:nth-child(4n+3) .mico { background: #e6faf2; }
.menu-item:nth-child(4n+4) .mico { background: #fff0ec; }
.menu-item .mname { font-size: 11.5px; color: var(--text); font-weight: 500; }
.menu-item .mdot {
  position: absolute; top: 5px; right: 14px;
  min-width: 16px; height: 16px; border-radius: 8px; background: var(--red);
  color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* 数据小卡 */
.stat-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 12px; }
.stat-mini {
  background: var(--card); border-radius: var(--radius-sm); padding: 14px 8px; text-align: center;
  box-shadow: var(--shadow-card); border: var(--border-card);
}
.stat-mini .n { font-size: 20px; font-weight: 800; }
.stat-mini .l { font-size: 11px; color: var(--text-3); margin-top: 3px; }

/* 子tab（面板内） */
.sub-tabs { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.sub-tab {
  padding: 6px 14px; border-radius: var(--radius-full); border: 1px solid var(--line);
  background: var(--card); font-size: 12.5px; color: var(--text-2); font-weight: 500;
  transition: all .12s;
}
.sub-tab.active { background: var(--text); color: #fff; border-color: var(--text); }

/* 上传槽 */
.upload-slot {
  border: 1.5px dashed #d8d8d8; border-radius: var(--radius-sm);
  padding: 6px; text-align: center; background: #fafafa;
}
.upload-slot.uploaded { border-style: solid; border-color: var(--green); background: #f3fcf8; }
.upload-slot .up-btn {
  width: 100%; border: none; background: transparent; padding: 12px 6px;
  font-size: 12.5px; color: var(--text-2); line-height: 1.5;
}

/* ==================== 空状态 ==================== */
.empty {
  text-align: center; padding: 50px 20px; color: var(--text-3);
}
.empty .eico { font-size: 50px; margin-bottom: 12px; opacity: .7; display: flex; justify-content: center; }

/* v68 线性图标：容器里统一居中、不被 flex 压缩；颜色一律继承文字色 */
.ic { display: block; flex: none; }
.mico .ic, .kico .ic, .ni-ico .ic, .eico .ic { margin: 0 auto; }
.mico .ic { color: var(--brand-deep); }
.empty h3 { font-size: 15px; color: var(--text-2); font-weight: 600; }
.empty .link { color: var(--brand-deep); font-weight: 600; }

/* ==================== 底部 TabBar ==================== */
.tabbar {
  position: fixed;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--app-w);
  height: var(--tabbar-h);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  display: flex;
  z-index: 200;
  padding-bottom: env(safe-area-inset-bottom);
}
.tab-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 10.5px; color: var(--text-3);
  transition: color .15s;
  position: relative;
}
.tab-item.active { color: var(--text); font-weight: 600; }
.tab-item svg { width: 24px; height: 24px; }
/* v68: 底栏未读角标（此前 HTML 里根本没有这个节点，轮询一直在找一个永远不存在的元素） */
.tab-badge {
  position: absolute; top: 3px; left: 50%; margin-left: 4px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
  box-shadow: 0 0 0 2px rgba(255,255,255,.95);
  font-style: normal;
}
.tab-badge[hidden] { display: none; }
.tab-item.tab-center { position: relative; }
.tab-plus {
  width: 46px; height: 34px; border-radius: 11px;
  background: var(--brand-grad);
  color: #3d2c00; font-size: 26px; font-weight: 300;
  display: flex; align-items: center; justify-content: center;
  line-height: 1; box-shadow: var(--shadow-brand); margin-top: -2px;
}

/* ==================== 浮层/弹窗 ==================== */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; padding: 20px;
}
.modal {
  background: #fff; border-radius: var(--radius); padding: 22px;
  width: 100%; max-width: 420px; max-height: 85vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.modal h3 { font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.modal .form-group { margin-bottom: 12px; }
.modal .form-input { width: 100%; }

/* ==================== Toast 提示 ==================== */
#jdToast {
  position: fixed; top: 70px; left: 50%; transform: translateX(-50%);
  z-index: 10000; display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none; max-width: calc(var(--app-w) - 40px);
}
#jdToast > div {
  background: rgba(0,0,0,.82); color: #fff; padding: 9px 18px;
  border-radius: 20px; font-size: 13px; white-space: nowrap;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  animation: toastIn .2s ease, toastOut .3s ease 2.7s forwards;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px); } }
.modal .form-group label { display: block; font-size: 13px; color: var(--text-3); margin-bottom: 5px; }

/* ==================== 动画 ==================== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ==================== 头像 ==================== */
.avatar { border-radius: 50%; object-fit: cover; flex: none; }

/* 桌面宽屏下仅居中显示，背景弱化 */
@media (min-width: 600px) {
  body { background: #cfd2d8; }
}

/* v68 行内图标：跟在文字里（标题/段落/按钮）时不要撑行高 */
.ic.inl { display: inline-block; vertical-align: -3px; margin-right: 3px; }
/* v68 静态 HTML 里的图标占位 <i data-bi="x"> */
.bi { display: inline-flex; align-items: center; justify-content: center; font-style: normal; }
/* v68 档期状态点（替代 🟢🟡⚪） */
.stdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.stdot.on { background: #3ecf8e; }
.stdot.warn { background: #f5a623; }
.stdot.off { background: #c9cfd6; }
