/* ============ 任务工单系统 · 品牌主题 ============
   主色：靛蓝 #2952CC（区别于 iOS 系统蓝，强化品牌记忆点）
   对比度：中性文字全部 ≥ WCAG AA 4.5:1
   触达：可点元素 ≥ 44px；focus-visible 全局可见
   动效：0.2s 显式属性 + prefers-reduced-motion 兜底
*/
:root {
  /* Vant 主题变量（品牌化） */
  --van-primary-color: #2952CC;
  --van-success-color: #15803D;
  --van-danger-color: #DC2626;
  --van-warning-color: #B45309;
  --van-text-color: #111827;
  --van-text-color-2: #4B5563;
  --van-text-color-3: #6B7280;
  --van-active-color: #EFF2F9;
  --van-background: #F3F4F6;
  --van-background-2: #FFFFFF;
  --van-border-color: #E5E7EB;
  --van-radius-md: 12px;
  --van-radius-lg: 16px;
  --van-button-primary-background: #2952CC;
  --van-button-primary-border-color: #2952CC;
  --van-tabbar-background: rgba(255, 255, 255, .92);
  --van-tabbar-item-active-color: #2952CC;
  --van-cell-background: #FFFFFF;
  --van-cell-group-background: #FFFFFF;
  --van-picker-background: #FFFFFF;
  --van-popup-background: #FFFFFF;
  --van-search-background: #F3F4F6;
  --van-tag-primary-color: #2952CC;

  /* 品牌色阶 */
  --primary: #2952CC;
  --primary-dark: #1E3FA8;
  --primary-light: rgba(41, 82, 204, .10);
  --primary-grad: linear-gradient(135deg, #2952CC, #4C6FE8);
  --success: #15803D;
  --warning: #B45309;
  --danger: #DC2626;

  /* 中性色（对比度 AA） */
  --bg: #F3F4F6;
  --card-radius: 16px;
  --text-1: #111827;
  --text-2: #4B5563;
  --text-3: #6B7280;
  --separator: #E5E7EB;
  --card-border: rgba(17, 24, 39, .06);
  --shadow-card: 0 1px 3px rgba(17, 24, 39, .06);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text-1);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  font-variant-numeric: tabular-nums;
}
.page { padding-bottom: 70px; min-height: 100vh; }

/* ============ 焦点可见（键盘/读屏用户）============ */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.van-button:focus-visible, .bb-btn:focus-visible, .fab:focus-visible, .tel-btn:focus-visible { outline-offset: 3px; }

/* ============ 页面头部 ============ */
.page-header {
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  color: var(--text-1);
  padding: 16px 16px 12px;
  padding-top: max(16px, env(safe-area-inset-top));
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 0.5px solid rgba(17, 24, 39, .08);
}
.page-header h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; }
.page-header .sub { font-size: 12px; opacity: .75; margin-top: 3px; color: var(--text-2); }
.header-add {
  flex-shrink: 0;
  border: none !important;
  background: var(--primary) !important;
  color: #fff !important;
  height: 44px;
  padding: 0 18px !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 12px rgba(41, 82, 204, .35);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
}
.header-add .van-icon { font-size: 18px; }
.header-add:active { transform: scale(.93); background: var(--primary-dark) !important; }

/* ============ 搜索与我的概览 ============ */
.search-bar { background: var(--bg); padding: 4px 12px 0; }
.my-summary {
  display: flex;
  background: #ffffff;
  margin: 8px 12px;
  padding: 14px 4px;
  border-radius: var(--card-radius);
  border: 0.5px solid var(--card-border);
  box-shadow: var(--shadow-card);
}
.my-summary .ms-item {
  flex: 1;
  text-align: center;
  cursor: pointer;
  padding: 6px 0;
  min-height: 56px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.my-summary .ms-item + .ms-item { border-left: 0.5px solid var(--separator); }
.my-summary .ms-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.my-summary .ms-num.warn  { color: var(--warning); }
.my-summary .ms-num.blue  { color: var(--primary); }
.my-summary .ms-num.green { color: var(--success); }
.my-summary .ms-label {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 3px;
}

/* ============ 登录页 ============ */
.login-wrap {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh; padding: 32px;
  background: var(--bg);
}
.login-logo {
  width: 88px; height: 88px; border-radius: 24px;
  background: var(--primary-grad);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 12px 32px rgba(41, 82, 204, .32);
}
.login-logo svg { width: 48px; height: 48px; }
.login-title { color: var(--text-1); font-size: 26px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.5px; }
.login-sub { color: var(--text-3); font-size: 14px; margin-bottom: 36px; }
.login-card {
  width: 100%; max-width: 360px; background: #fff; border-radius: 18px;
  padding: 24px 20px; box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
}

/* ============ 工单卡片 ============ */
.ticket-card {
  background: #fff; border-radius: var(--card-radius); margin: 8px 12px; padding: 14px;
  border: 0.5px solid var(--card-border);
  box-shadow: var(--shadow-card);
  transition: transform .2s cubic-bezier(.25,.46,.45,.94), box-shadow .2s ease;
}
.ticket-card:active { transform: scale(.975); box-shadow: 0 1px 2px rgba(17,24,39,.05); }
.ticket-card .tc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ticket-card .tc-code { font-size: 12px; color: var(--text-3); font-weight: 500; }
.ticket-card .tc-title { font-size: 16px; font-weight: 600; line-height: 1.4; margin-bottom: 6px; letter-spacing: -0.3px; color: var(--text-1); }
.ticket-card .tc-desc { font-size: 13px; color: var(--text-2); line-height: 1.5; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ticket-card .tc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ticket-card .tc-meta .meta-item { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--text-3); }
.ticket-card .tc-meta .van-icon { font-size: 14px; }
.ticket-card .tc-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-3); }

/* 列表入场动效（级联） */
@keyframes cardIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ticket-card { animation: cardIn .3s ease both; }
.ticket-card:nth-child(2) { animation-delay: .04s; }
.ticket-card:nth-child(3) { animation-delay: .08s; }
.ticket-card:nth-child(4) { animation-delay: .12s; }
.ticket-card:nth-child(5) { animation-delay: .16s; }
.ticket-card:nth-child(n+6) { animation-delay: .2s; }

/* ============ 骨架屏 ============ */
.skeleton-card {
  background: #fff; border-radius: var(--card-radius); margin: 8px 12px; padding: 14px;
  border: 0.5px solid var(--card-border);
}
.skeleton-line {
  height: 14px; border-radius: 6px; margin-bottom: 10px;
  background: linear-gradient(90deg, #F0F1F4 25%, #E5E7EB 37%, #F0F1F4 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
.skeleton-line.w60 { width: 60%; } .skeleton-line.w80 { width: 80%; } .skeleton-line.w40 { width: 40%; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ============ 空态 ============ */
.empty-state { text-align: center; padding: 56px 24px; color: var(--text-3); }
.empty-state .es-icon { font-size: 56px; color: #C7CBD1; margin-bottom: 14px; }
.empty-state .es-title { font-size: 15px; font-weight: 600; color: var(--text-2); margin-bottom: 4px; }
.empty-state .es-desc { font-size: 13px; }

/* ============ 统计 ============ */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 12px; }
.stat-card { background: #fff; border-radius: var(--card-radius); padding: 18px 16px; text-align: center; border: 0.5px solid var(--card-border); box-shadow: var(--shadow-card); }
.stat-card .num { font-size: 30px; font-weight: 700; letter-spacing: -0.5px; }
.stat-card .label { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.stat-card.primary .num { color: var(--primary); }
.stat-card.success .num { color: var(--success); }
.stat-card.warning .num { color: var(--warning); }
.stat-card.danger .num { color: var(--danger); }

.stat-section { background: #fff; margin: 10px 12px; border-radius: var(--card-radius); padding: 16px; border: 0.5px solid var(--card-border); box-shadow: var(--shadow-card); }
.stat-section h3 { font-size: 14px; margin-bottom: 12px; color: var(--text-2); font-weight: 600; letter-spacing: .2px; }
.bar-row { display: flex; align-items: center; margin-bottom: 10px; font-size: 13px; }
.bar-row .bar-label { width: 70px; flex-shrink: 0; color: var(--text-2); }
.bar-row .bar-track { flex: 1; height: 18px; background: var(--bg); border-radius: 9px; overflow: hidden; margin: 0 8px; }
.bar-row .bar-fill { height: 100%; background: var(--primary-grad); border-radius: 9px; transition: width .3s ease; }
.bar-row .bar-val { width: 48px; text-align: right; font-size: 12px; color: var(--text-3); }

/* 大区扇形图 */
.donut-wrap { display: flex; align-items: center; gap: 18px; padding: 4px 0; }
.donut { width: 130px; height: 130px; border-radius: 50%; position: relative; flex-shrink: 0; }
.donut-center { position: absolute; inset: 32px; background: #fff; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.donut-num { font-size: 22px; font-weight: 700; color: var(--text-1); line-height: 1.1; }
.donut-label { font-size: 10px; color: var(--text-3); margin-top: 1px; }
.donut-legend { flex: 1; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.donut-row { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.donut-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.donut-row-name { flex: 1; color: var(--text-1); min-width: 0; }
.donut-row-val { color: var(--text-3); font-size: 12px; white-space: nowrap; }

.trend-chart { display: flex; align-items: flex-end; height: 120px; gap: 8px; padding-top: 10px; }
.trend-day { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.trend-bars { display: flex; gap: 2px; align-items: flex-end; height: 90px; }
.trend-bar { width: 10px; border-radius: 3px 3px 0 0; min-height: 2px; transition: height .4s ease; }
.trend-bar.created { background: var(--primary); }
.trend-bar.completed { background: var(--success); }
.trend-date { font-size: 11px; color: var(--text-3); }

/* ============ 详情页 ============ */
.detail-section { background: #fff; margin: 10px 12px; border-radius: var(--card-radius); padding: 16px; border: 0.5px solid var(--card-border); box-shadow: var(--shadow-card); }
.detail-section h3 { font-size: 14px; color: var(--text-2); margin-bottom: 10px; font-weight: 600; letter-spacing: .2px; }
.detail-row { display: flex; padding: 7px 0; font-size: 14px; }
.detail-row .dr-label { width: 72px; color: var(--text-3); flex-shrink: 0; }
.detail-row .dr-val { flex: 1; color: var(--text-1); }
.timeline-item { padding: 8px 0; border-left: 2px solid var(--separator); padding-left: 14px; position: relative; font-size: 13px; color: var(--text-2); }
.timeline-item::before { content: ''; position: absolute; left: -5px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.timeline-item .ti-time { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.feedback-item { background: var(--bg); border-radius: 12px; padding: 12px; margin-bottom: 8px; }
.feedback-item .fi-user { font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--text-1); }
.feedback-item .fi-content { font-size: 14px; line-height: 1.5; color: var(--text-1); }
.feedback-item .fi-time { font-size: 11px; color: var(--text-3); margin-top: 6px; }
.feedback-imgs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.feedback-imgs img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; }

/* 底部操作栏（safe-area 已适配） */
.bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  display: flex; border-top: 0.5px solid rgba(17, 24, 39, .12); z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-bar .bb-btn { flex: 1; padding: 15px 0; min-height: 50px; text-align: center; font-size: 14px; border: none; background: transparent; color: var(--primary); font-weight: 500; transition: background .15s ease, opacity .15s ease; }
.bottom-bar .bb-btn:active { background: rgba(41, 82, 204, .08); }
.bottom-bar .bb-btn.primary { background: var(--primary); color: #fff; }
.bottom-bar .bb-btn.primary:active { background: var(--primary-dark); }
.bottom-bar .bb-btn.success { background: var(--success); color: #fff; }
.bottom-bar .bb-btn.danger { color: var(--danger); }
.bottom-bar .bb-btn.warn { color: var(--warning); }
.bottom-bar .bb-btn + .bb-btn { border-left: 0.5px solid rgba(17, 24, 39, .08); }

/* 悬浮按钮 */
.fab {
  position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none; font-size: 28px; box-shadow: 0 4px 16px rgba(41, 82, 204, .4);
  z-index: 99; display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease;
}
.fab:active { transform: scale(.9); background: var(--primary-dark); }

.filter-bar { display: flex; gap: 8px; padding: 10px 12px; overflow-x: auto; background: var(--bg); }
.filter-bar::-webkit-scrollbar { display: none; }
.manage-bar { display: flex; align-items: center; padding: 8px 12px; background: var(--bg); }

/* ============ Vant 品牌化覆盖 ============ */
.van-button { border-radius: 12px !important; font-weight: 500; transition: transform .15s ease, opacity .15s ease, background .15s ease !important; }
.van-button:active { transform: scale(.97); }
.van-button--round { border-radius: 999px !important; }
.van-button--primary { background: var(--primary) !important; border-color: var(--primary) !important; color: #fff !important; }
.van-button--primary:active { background: var(--primary-dark) !important; }
.van-button--plain.van-button--primary {
  background: #fff !important;
  border-color: rgba(41, 82, 204, .5) !important;
  color: var(--primary) !important;
}
.van-button--plain.van-button--default { background: #fff !important; }
.van-button--danger { background: var(--danger) !important; border-color: var(--danger) !important; }
.van-button--success { background: var(--success) !important; border-color: var(--success) !important; }
.van-button--warning { background: var(--warning) !important; border-color: var(--warning) !important; }

/* 分组列表 */
.van-cell-group { background: transparent !important; border-radius: var(--card-radius); overflow: hidden; }
.van-cell-group--inset { margin: 0; }
.van-cell { background: #fff; color: var(--text-1); }
.van-cell::after { border-color: var(--separator); left: 16px; right: 16px; }
.van-cell__title { font-size: 15px; }
.van-cell__value { color: var(--text-3); font-size: 14px; }
.van-cell-group .van-cell:last-child::after { display: none; }

/* 标签 */
.van-tag--round { border-radius: 999px !important; }
.van-tag--primary { background: var(--primary-light); color: var(--primary); }
.van-tag--plain.van-tag--primary { color: var(--primary); border-color: rgba(41, 82, 204, .4); }

/* 搜索框 */
.van-search { padding: 6px 12px; }
.van-search__content { border-radius: 10px !important; background: var(--bg) !important; }
.van-field__control { color: var(--text-1); }

/* 弹层 */
.van-popup--round { border-radius: 20px 20px 0 0; }
.van-popup--bottom { border-radius: 20px 20px 0 0; }

/* 底部导航 */
.van-tabbar {
  background: rgba(255, 255, 255, .92) !important;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 0.5px solid rgba(17, 24, 39, .12);
  padding-bottom: env(safe-area-inset-bottom);
  height: calc(50px + env(safe-area-inset-bottom)) !important;
}
.van-tabbar-item { color: var(--text-3); font-size: 12px; }
.van-tabbar-item--active { color: var(--primary); }
.van-tabbar-item__icon { font-size: 24px; }

.van-toast { border-radius: 12px; }
.van-dialog { border-radius: 16px; }
.van-picker__title { color: var(--text-1); }
.van-dialog__confirm, .van-dialog__confirm:active { color: var(--primary); }
.van-dialog__cancel { color: var(--text-3); }

/* 用户选择列表 */
.user-cell { display:flex; align-items:center; padding:15px 14px; min-height: 52px; border-bottom:1px solid var(--bg); cursor:pointer; transition: background .15s ease; }
.user-cell:active { background: var(--bg); }
.user-cell.active { background: var(--primary-light); }
.user-name { font-size:15px; color:var(--text-1); font-weight:500; }
.user-dept { margin-left:10px; font-size:13px; color:var(--text-3); flex:1; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.user-check { color:var(--primary); font-size:16px; font-weight:600; }

/* 联系电话 */
.tel-link { color:var(--primary); text-decoration:none; font-weight:500; }
.tel-btn {
  display:inline-flex; align-items:center; gap:4px;
  margin-left:8px; padding:11px 16px; min-height:44px; border-radius:999px;
  background:var(--primary-light); color:var(--primary); font-size:13px; font-weight:600;
  text-decoration:none; transition: background .15s ease, transform .15s ease;
}
.tel-btn:active { background:rgba(41,82,204,.18); transform: scale(.96); }
.tel-btn .van-icon { font-size: 15px; }

/* 反馈状态选项 */
.fb-status-wrap { margin-bottom:12px; padding:12px; background:var(--bg); border-radius:12px; }
.fb-status-label { font-size:13px; font-weight:600; color:var(--text-2); margin-bottom:8px; }
.fb-status-opts { display:flex; gap:8px; }
.fb-status-opt {
  flex:1; text-align:center; padding:12px 0; min-height:44px; border-radius:10px;
  border:1.5px solid var(--separator); background:#fff; color:var(--text-2); font-size:14px; cursor:pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.fb-status-opt.active { border-color:var(--primary); color:var(--primary); background:var(--primary-light); font-weight:600; }
.fb-amount-wrap { display:flex; align-items:center; gap:8px; margin-top:10px; }
.fb-amount-wrap label { font-size:13px; color:var(--text-2); white-space:nowrap; }
.fb-amount-input {
  flex:1; padding:12px; min-height:44px; border:1.5px solid var(--separator); border-radius:10px;
  font-size:14px; color:var(--text-1); outline:none; background:#fff; transition: border-color .15s ease;
}
.fb-amount-input:focus { border-color:var(--primary); }

/* 反馈状态标签 */
.fi-tags { display:flex; gap:6px; margin:4px 0 6px; flex-wrap:wrap; }
.fi-tag { display:inline-block; padding:3px 12px; min-height:26px; border-radius:999px; font-size:12px; font-weight:600; }
.fi-tag.st-跟进中 { background:var(--primary-light); color:var(--primary); }
.fi-tag.st-未谈妥 { background:rgba(180,83,9,.12); color:var(--warning); }
.fi-tag.st-已成交 { background:rgba(21,128,61,.12); color:var(--success); }
.fi-tag.st-deal { background:rgba(21,128,61,.12); color:var(--success); }

/* 成交金额 */
.deal-total { display:flex; align-items:baseline; gap:10px; margin-bottom:14px; }
.deal-total-num { font-size:30px; font-weight:700; color:var(--success); letter-spacing:-0.5px; }
.deal-total-label { font-size:13px; color:var(--text-3); }
.deal-person-row { display:flex; align-items:center; margin-bottom:10px; font-size:13px; }
.deal-person-row .bar-label { width:auto; min-width:70px; flex-shrink:0; color:var(--text-2); }
.deal-person-row .bar-track { flex:1; height:18px; background:var(--bg); border-radius:9px; overflow:hidden; margin:0 8px; }
.deal-person-row .bar-fill.deal-fill { background:linear-gradient(90deg, #15803D, #22C55E); height:100%; border-radius:9px; }
.deal-person-row .bar-val { width:auto; text-align:right; font-size:12px; color:var(--text-3); white-space:nowrap; }

/* 智能识别标题（create） */
.sp-title { display:inline-flex; align-items:center; gap:6px; font-size:15px; font-weight:600; color:var(--text-1); }
.sp-title .van-icon { font-size:18px; color:var(--primary); }

/* 关闭按钮 */
.picker-close { font-size:20px; color:var(--text-3); padding:8px; min-width:44px; min-height:44px; display:inline-flex; align-items:center; justify-content:center; }

/* ============ 减少动效偏好 ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .ticket-card { animation: none; }
}

/* ===== 二期板块首页 ===== */
/* 横向整行卡片：图标 | 名称描述 | 数据 | 箭头，三卡视觉统一 */
.board-list {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.board-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.board-card:active {
  transform: scale(.98);
  box-shadow: 0 1px 5px rgba(0,0,0,.08);
}
.board-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 26px;
}
.board-mid { flex: 1; min-width: 0; }
.board-name {
  font-size: 16px; font-weight: 700; color: #1c1c1e;
  display: flex; align-items: center; gap: 6px;
}
.board-desc {
  font-size: 12px; color: #8e8e93;
  margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.board-right { text-align: right; flex-shrink: 0; }
.bs-unhandled { font-size: 20px; font-weight: 700; color: #ff3b30; line-height: 1.1; }
.bs-unit { font-size: 11px; color: #ff3b30; margin-left: 2px; }
.bs-total { font-size: 11px; color: #8e8e93; margin-top: 3px; }
.bs-ok { font-size: 14px; font-weight: 600; color: #34c759; }
.board-alert { color: #ff3b30; font-size: 15px; animation: pulse 1.5s infinite; }
.board-arrow { color: #c7c7cc; font-size: 16px; flex-shrink: 0; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }


/* 列表页头部：返回按钮 + 标题纵向排列（防止标题被 flex 压缩成单字） */
.header-left {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
}
.header-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.header-text h1 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.header-text .sub {
  font-size: 12px;
  opacity: .75;
  margin-top: 3px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ============================================================
   iOS 风格视觉体系 v2（HIG 设计规范覆盖层）
   - 背景系统灰 #F2F2F7 / 分组卡片白色
   - 大标题导航 + 毛玻璃
   - iOS 系统动效曲线
   ============================================================ */
:root {
  --van-background: #F2F2F7;              /* iOS 系统分组背景灰 */
  --van-background-2: #FFFFFF;
  --ios-bg: #F2F2F7;
  --ios-card: #FFFFFF;
  --ios-sep: rgba(60, 60, 67, 0.12);       /* iOS hairline 分隔线 */
  --ios-blue: #007AFF;
  --ios-green: #34C759;
  --ios-red: #FF3B30;
  --ios-orange: #FF9500;
  --ios-gray: #8E8E93;
  --ios-label: #1C1C1E;
  --ios-secondary: #3C3C43;
  --ios-radius-lg: 16px;                   /* iOS 卡片大圆角 */
  --ios-radius-md: 12px;
  --ios-ease: cubic-bezier(0.22, 1, 0.36, 1);   /* iOS spring-ish easeOutQuint */
}

body { background: var(--ios-bg); }

/* ---- iOS 大标题导航（滚动收起到标准栏，毛玻璃） ---- */
.page-header {
  background: rgba(249, 249, 249, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--ios-sep);
  padding: 14px 16px 10px;
}
.page-header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--ios-label);
}
.page-header .sub { font-size: 12px; color: var(--ios-secondary); opacity: .85; }

/* ---- iOS 分组卡片（white card + hairline + 大圆角） ---- */
.ticket-card,
.my-summary,
.stat-card,
.stat-section,
.detail-section,
.skeleton-card,
.board-card {
  background: var(--ios-card);
  border: none;
  border-radius: var(--ios-radius-lg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.03);
}
.ticket-card { margin: 8px 16px; padding: 14px 16px; }

/* ---- iOS 单元格感：标题加粗 + 描述次级 + 分隔 ---- */
.ticket-card .tc-code { color: var(--ios-gray); font-size: 12px; font-weight: 500; }
.ticket-card .tc-title { font-size: 17px; font-weight: 600; letter-spacing: -0.4px; color: var(--ios-label); }
.ticket-card .tc-desc { color: var(--ios-secondary); opacity: .85; }
.tc-meta .van-tag, .tc-meta a { font-size: 12px; }

/* ---- iOS 系统色状态标签（红/橙/绿） ---- */
.van-tag { font-weight: 500; }

/* ---- iOS 风格按钮：胶囊 + 主色系统蓝 ---- */
.van-button--primary { background: var(--ios-blue) !important; border-color: var(--ios-blue) !important; }
.van-button--primary:active { background: #0066D6 !important; }
.van-button--plain.van-button--primary { border-color: var(--ios-blue) !important; color: var(--ios-blue) !important; background: #fff !important; }
.header-add { background: var(--ios-blue) !important; box-shadow: 0 4px 12px rgba(0, 122, 255, .3); }
.header-add:active { background: #0066D6 !important; }
.tel-btn { background: rgba(0, 122, 255, .1); color: var(--ios-blue); }
.tel-btn:active { background: rgba(0, 122, 255, .2); }

/* ---- iOS 系统动效：弹簧式入场 ---- */
@keyframes cardIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.ticket-card { animation: cardIn .32s var(--ios-ease) both; }

/* ---- iOS Tabbar：毛玻璃 + 分隔线 ---- */
.van-tabbar {
  background: rgba(249, 249, 249, 0.94) !important;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 0.5px solid var(--ios-sep);
}
.van-tabbar-item--active { color: var(--ios-blue) !important; }
.van-tabbar-item__icon { font-size: 24px; }

/* ---- iOS 分段筛选（segmented pills） ---- */
.filter-bar { background: transparent; padding: 8px 16px; }
.filter-bar .van-tag, .filter-bar van-tag {
  border-radius: 999px;
  padding: 6px 14px;
}
.filter-bar .van-tag--primary { background: var(--ios-blue); color: #fff; }
.filter-bar .van-tag--default { background: var(--ios-card); color: var(--ios-secondary); border: 0.5px solid rgba(60,60,67,.18); }

/* ---- iOS 空态 ---- */
.empty-state { padding: 80px 24px; }
.empty-state .es-icon { color: #C7C7CC; }

/* ---- iOS 弹层（底部动作面板） ---- */
.van-popup--bottom { border-radius: 18px 18px 0 0; background: var(--ios-bg) !important; }

/* ---- iOS 我的/详情 cell ---- */
.van-cell { font-size: 16px; }
.van-cell__title { font-size: 16px; color: var(--ios-label); }
.van-cell__value { color: var(--ios-gray); font-size: 15px; }
.detail-row .dr-label { color: var(--ios-gray); }
.detail-row .dr-val { color: var(--ios-label); }
.feedback-item { background: var(--ios-bg); border-radius: 12px; }

/* ---- 板块卡片：iOS 设置列表风格，图标圆角 ---- */
.board-list { padding: 10px 16px; gap: 12px; }
.board-icon { border-radius: 14px; box-shadow: inset 0 -1px 0 rgba(0,0,0,.1); }
.board-name { font-size: 17px; color: var(--ios-label); }
.board-desc { color: var(--ios-gray); font-size: 12px; }
.board-arrow { color: #C7C7CC; }
.bs-unhandled { color: var(--ios-red); }
.bs-ok { color: var(--ios-green); }

/* ============ 售后工单：客户订单信息卡片 ============ */
.oi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.oi-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.oi-label { font-size: 11px; color: var(--ios-gray, #8e8e93); }
.oi-val { font-size: 14px; color: var(--ios-label, #1c1c1e); font-weight: 500; line-height: 1.4; word-break: break-all; }
.oi-val.oi-strong { font-size: 16px; font-weight: 700; color: var(--ios-blue, #007aff); }
@media (max-width: 359px) { .oi-grid { grid-template-columns: 1fr; } }

/* 导航按钮（售后工单详情） */
.nav-btn {
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: 8px; padding: 8px 14px; min-height: 36px; border-radius: 999px;
  background: #F0F7FF; color: #007AFF; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: background .15s, transform .15s;
  vertical-align: middle;
}
.nav-btn:active { background: rgba(0,122,255,.18); transform: scale(.96); }


/* ---- 板块首页两级结构（2026-09-13）----
   一级块「工单提报」置顶（.board-hero 稍大），其下为「工单执行」分组（.board-group-hd） */
.board-hero { padding: 18px 14px; }
.board-hero .board-icon { width: 58px; height: 58px; font-size: 30px; border-radius: 16px; }
.board-hero .board-name { font-size: 18px; }
.board-group-hd {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 13px; font-weight: 600;
  color: var(--ios-gray, #8e8e93);
  margin: 10px 2px -4px;
}
.board-group-hd .board-group-sub { font-size: 11px; font-weight: 400; opacity: .7; }

/* ---- 二级页返回（工单执行下钻，2026-09-13）---- */
.page-header .header-left.ph-backwrap { gap: 8px; }
.ph-back {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; margin-left: -6px; border-radius: 9px;
  font-size: 20px; flex-shrink: 0; cursor: pointer;
  color: var(--ios-label, #1c1c1e);
}
.ph-back:active { background: rgba(0, 0, 0, .06); }
