/* ============================================================
   湖南华知 · 移动端 App 设计系统
   移动优先 / 自适应 / 安全区适配 / 桌面居中
   ============================================================ */
:root {
  --brand: #1B57E8;
  --brand-dark: #1444BC;
  --brand-soft: #EAF0FF;
  --accent: #FF6A2B;
  --bg: #F4F6FA;
  --card: #FFFFFF;
  --text: #16213A;
  --text-2: #4A5568;
  --muted: #8A93A6;
  --line: #EDF0F5;
  --ok: #12B76A;
  --ok-soft: #E7F8F0;
  --warn: #F79009;
  --warn-soft: #FFF6E6;
  --danger: #F04438;
  --danger-soft: #FEECEB;
  --radius: 14px;
  --nav-h: 48px;
  --tab-h: 56px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --shadow: 0 2px 10px rgba(22, 33, 58, .06);
  --shadow-lg: 0 8px 28px rgba(22, 33, 58, .14);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
svg { width: 1.1em; height: 1.1em; flex: 0 0 auto; }
.btn svg, .nav-btn svg, .chip svg { width: 17px; height: 17px; }
.nav-back svg { width: 22px; height: 22px; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--text);
  background: #E8ECF4;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
input, textarea, select, button { font-family: inherit; font-size: 16px; color: inherit; }
input, textarea { -webkit-appearance: none; appearance: none; }
button { border: 0; background: none; cursor: pointer; padding: 0; color: inherit; }
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- 应用容器：手机全屏，桌面居中 ---------- */
#app {
  position: relative;
  width: 100%; max-width: 520px; margin: 0 auto;
  height: 100dvh; min-height: 100dvh;
  background: var(--bg); overflow: hidden;
}
@media (min-width: 760px) {
  body { padding: 0; background: radial-gradient(1200px 600px at 50% 0%, #2E4E9E 0%, #16213A 70%); }
  #app { box-shadow: 0 24px 70px rgba(0, 0, 0, .35); }
}

/* ---------- 页面栈 ---------- */
.page {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column;
  background: var(--bg);
  overflow: hidden;
  animation: slideIn .26s cubic-bezier(.32, .72, 0, 1) both;
}
.page.leaving { animation: slideOut .22s cubic-bezier(.32, .72, 0, 1) both; z-index: 0; }
@keyframes slideIn { from { transform: translateX(22%); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes slideOut { from { transform: none; } to { transform: translateX(16%); opacity: .5; } }
@media (prefers-reduced-motion: reduce) {
  .page, .page.leaving { animation: none; }
}

/* ---------- 顶部导航 ---------- */
.navbar {
  flex: 0 0 auto; height: calc(var(--nav-h) + var(--sat));
  padding-top: var(--sat);
  display: flex; align-items: center; gap: 4px;
  background: #fff; border-bottom: 1px solid var(--line);
  position: relative; z-index: 5;
}
.navbar.glass { background: transparent; border-bottom: 0; }
.nav-back {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  color: var(--text); flex: 0 0 auto;
}
.nav-back:active { opacity: .5; }
.nav-title {
  flex: 1; min-width: 0; font-size: 16px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding-right: 4px;
}
.nav-sub { display: block; font-size: 11px; font-weight: 400; color: var(--muted); line-height: 1.2; }
.nav-actions { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; padding-right: 6px; }
.nav-btn {
  height: 36px; min-width: 36px; padding: 0 10px; border-radius: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--text-2); background: var(--bg);
}
.nav-btn:active { background: #E3E8F2; }

/* ---------- 内容区 ---------- */
.body {
  flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 12px; padding-bottom: calc(16px + var(--sab));
  overscroll-behavior: contain;
}
.body.tabbed { padding-bottom: calc(var(--tab-h) + 14px + var(--sab)); }
.body.flush { padding: 0; }
.body.with-bar { padding-bottom: calc(96px + var(--sab)); }

/* ---------- 底部 Tab ---------- */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 20;
  height: calc(var(--tab-h) + var(--sab)); padding-bottom: var(--sab);
  display: flex; background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--muted); font-size: 10px; position: relative;
}
.tab svg { width: 23px; height: 23px; }
.tab.on { color: var(--brand); font-weight: 600; }
.tab.on::before {
  content: ""; position: absolute; top: 0; width: 22px; height: 3px;
  background: var(--brand); border-radius: 0 0 3px 3px;
}
.tab .dot {
  position: absolute; top: 6px; right: calc(50% - 16px);
  width: 7px; height: 7px; border-radius: 50%; background: var(--danger);
  border: 1.5px solid #fff;
}

/* ---------- 底部固定操作栏 ---------- */
.actionbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 18;
  padding: 10px 12px calc(10px + var(--sab));
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.actionbar .sum { flex: 1; min-width: 0; }
.actionbar .sum em { font-style: normal; color: var(--danger); font-weight: 700; font-size: 19px; }
.actionbar .sum span { display: block; font-size: 11px; color: var(--muted); }

/* ---------- 卡片 / 列表 ---------- */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 10px; overflow: hidden;
}
.card-hd {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 14px 0; font-weight: 600; font-size: 15px;
}
.card-hd .more { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 400; }
.card-bd { padding: 12px 14px; }
.card-bd.tight { padding: 8px 14px; }
.hr { height: 1px; background: var(--line); margin: 0 14px; }

.cell {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; min-height: 50px; position: relative;
}
.cell + .cell::before {
  content: ""; position: absolute; left: 14px; right: 0; top: 0; height: 1px; background: var(--line);
}
.cell:active { background: #F7F9FD; }
.cell-ico {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand);
}
.cell-ico svg { width: 19px; height: 19px; }
.cell-main { flex: 1; min-width: 0; }
.cell-title { font-size: 14.5px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.cell-desc { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.cell-val { font-size: 13px; color: var(--muted); flex: 0 0 auto; max-width: 45%; text-align: right;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-arrow { color: #C6CCDA; flex: 0 0 auto; display: flex; }
.cell-arrow svg { width: 16px; height: 16px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 20px; border-radius: 22px;
  font-size: 15px; font-weight: 600; white-space: nowrap;
  background: var(--bg); color: var(--text-2);
  transition: transform .1s, opacity .1s;
}
.btn:active { transform: scale(.975); opacity: .9; }
.btn-primary { background: linear-gradient(135deg, #2C6BFF, var(--brand)); color: #fff;
  box-shadow: 0 6px 16px rgba(27, 87, 232, .3); }
.btn-accent { background: linear-gradient(135deg, #FF8A4C, var(--accent)); color: #fff;
  box-shadow: 0 6px 16px rgba(255, 106, 43, .3); }
.btn-ghost { background: #fff; color: var(--brand); border: 1px solid #C9D8FF; }
.btn-line { background: #fff; color: var(--text-2); border: 1px solid var(--line); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; border-radius: 16px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

/* ---------- 徽章 ---------- */
.badge {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px;
  border-radius: 10px; font-size: 11px; font-weight: 600; white-space: nowrap;
}
.badge.b-brand { background: var(--brand-soft); color: var(--brand); }
.badge.b-ok { background: var(--ok-soft); color: var(--ok); }
.badge.b-warn { background: var(--warn-soft); color: #B45309; }
.badge.b-muted { background: #F0F2F7; color: var(--muted); }
.badge.b-danger { background: var(--danger-soft); color: var(--danger); }
.badge.b-accent { background: #FFF0E9; color: var(--accent); }

/* ---------- 表单 ---------- */
.field { margin-bottom: 14px; }
.label { font-size: 13px; color: var(--text-2); font-weight: 500; margin-bottom: 7px; display: block; }
.label .req { color: var(--danger); margin-left: 2px; }
.input, .textarea {
  width: 100%; min-height: 46px; padding: 12px 14px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); font-size: 16px; color: var(--text);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: #B3BACB; font-size: 14px; }
.input:focus, .textarea:focus { border-color: #9FB9FF; box-shadow: 0 0 0 3px rgba(27, 87, 232, .1); }
.textarea { min-height: 86px; resize: none; line-height: 1.55; }
.input-wrap { position: relative; }
.input-wrap .input { padding-left: 40px; }
.input-wrap .iw-ico {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: #A8B1C4; display: flex;
}
.input-wrap .iw-ico svg { width: 18px; height: 18px; }
.hint { font-size: 11.5px; color: var(--muted); margin-top: 6px; line-height: 1.45; }

/* ---------- 搜索 ---------- */
.searchbar {
  display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px;
  background: #fff; border-radius: 21px; box-shadow: var(--shadow);
  color: var(--muted); font-size: 14px;
}
.searchbar svg { width: 18px; height: 18px; flex: 0 0 auto; }
.searchbar input { flex: 1; border: 0; outline: none; background: transparent; font-size: 15px; min-width: 0; }

/* ---------- 宫格 ---------- */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 0; }
.entry {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 10px 2px; border-radius: 12px;
}
.entry:active { background: #F5F8FF; }
.entry-ico {
  width: 46px; height: 46px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 5px 12px rgba(27, 87, 232, .2);
}
.entry-ico svg { width: 23px; height: 23px; }
.entry span { font-size: 12px; color: var(--text-2); }
.g1 { background: linear-gradient(135deg, #4F8BFF, #1B57E8); }
.g2 { background: linear-gradient(135deg, #7C6BFF, #5B3FE0); }
.g3 { background: linear-gradient(135deg, #3ECBA5, #12A97C); }
.g4 { background: linear-gradient(135deg, #FFB03A, #F79009); }
.g5 { background: linear-gradient(135deg, #FF8A66, #FF5A29); }
.g6 { background: linear-gradient(135deg, #53C0F0, #1E96D6); }
.g7 { background: linear-gradient(135deg, #A78BFA, #7C5CE0); }
.g8 { background: linear-gradient(135deg, #94A3B8, #64748B); }

/* ---------- 服务项 ---------- */
.svc {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px;
}
.svc:active { background: #F7F9FD; }
.svc-main { flex: 1; min-width: 0; }
.svc-name { font-size: 14.5px; font-weight: 600; }
.svc-desc { font-size: 12px; color: var(--muted); margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc-price { flex: 0 0 auto; text-align: right; }
.svc-price b { color: var(--accent); font-size: 16px; font-weight: 700; }
.svc-price b i { font-style: normal; font-size: 11px; font-weight: 500; }
.svc-price span { display: block; font-size: 11px; color: var(--muted); }

/* ---------- 状态筛选 chips ---------- */
.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px;
  background: #fff; border-bottom: 1px solid var(--line);
  scrollbar-width: none; position: sticky; top: 0; z-index: 4;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; height: 30px; padding: 0 13px; border-radius: 15px;
  background: #F3F5FA; color: var(--text-2); font-size: 13px;
  display: inline-flex; align-items: center;
}
.chip.on { background: var(--brand); color: #fff; font-weight: 600; }

/* ---------- 订单卡片 ---------- */
.ord { padding: 13px 14px; }
.ord-top { display: flex; align-items: center; gap: 8px; }
.ord-no { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ord-top .badge { margin-left: auto; }
.ord-title { font-size: 15.5px; font-weight: 600; margin: 8px 0 4px; }
.ord-meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.ord-bot {
  display: flex; align-items: center; gap: 8px; margin-top: 11px;
  padding-top: 11px; border-top: 1px dashed var(--line);
}
.ord-amt { flex: 1; font-size: 13px; color: var(--muted); }
.ord-amt b { color: var(--text); font-size: 17px; font-weight: 700; }

/* ---------- 步骤 / 进度 ---------- */
.steps { display: flex; align-items: flex-start; padding: 4px 0; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; }
.step::before {
  content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 2px; background: #E3E8F2;
}
.step:first-child::before { display: none; }
.step.done::before, .step.cur::before { background: var(--brand); }
.step i {
  width: 20px; height: 20px; border-radius: 50%; background: #E3E8F2; color: #fff;
  display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px;
  position: relative; z-index: 1;
}
.step.done i { background: var(--brand); }
.step.cur i { background: #fff; border: 2px solid var(--brand); color: var(--brand); font-weight: 700; }
.step span { font-size: 10.5px; color: var(--muted); text-align: center; }
.step.cur span, .step.done span { color: var(--brand); font-weight: 600; }

/* ---------- 时间线 ---------- */
.tl { position: relative; padding-left: 22px; }
.tl::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: #E9EDF5; }
.tl-item { position: relative; padding-bottom: 16px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -22px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; border: 2.5px solid #D7DEEB;
}
.tl-item.done::before { border-color: var(--brand); background: var(--brand); }
.tl-item.cur::before { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px var(--brand-soft); }
.tl-t { font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 7px; }
.tl-s { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.tl-op { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ---------- 明细行 ---------- */
.kv { display: flex; align-items: baseline; gap: 12px; padding: 7px 0; font-size: 13.5px; }
.kv .k { color: var(--muted); flex: 0 0 auto; }
.kv .v { margin-left: auto; text-align: right; color: var(--text); }
.kv.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 11px; font-size: 15px; font-weight: 600; }
.kv.total .v { color: var(--danger); font-size: 20px; font-weight: 700; }

/* ---------- 金额条 ---------- */
.money-hero {
  background: linear-gradient(135deg, #2C6BFF 0%, #1B57E8 55%, #1444BC 100%);
  color: #fff; border-radius: var(--radius); padding: 16px;
  box-shadow: 0 8px 22px rgba(27, 87, 232, .28); margin-bottom: 10px;
}
.money-hero .mh-label { font-size: 12px; opacity: .8; }
.money-hero .mh-val { font-size: 30px; font-weight: 800; letter-spacing: -.5px; margin: 2px 0 8px; }
.money-hero .mh-val small { font-size: 15px; font-weight: 600; margin-right: 2px; }
.money-hero .mh-foot { display: flex; gap: 14px; font-size: 11.5px; opacity: .85; flex-wrap: wrap; }

/* ---------- 空状态 ---------- */
.empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.empty .e-ico {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 22px;
  background: #F0F3F9; display: flex; align-items: center; justify-content: center; color: #C2CAD9;
}
.empty .e-ico svg { width: 30px; height: 30px; }
.empty p { margin: 0 0 4px; font-size: 14px; color: var(--text-2); font-weight: 500; }
.empty span { font-size: 12.5px; }

/* ---------- 弹层 ---------- */
.mask {
  position: fixed; inset: 0; background: rgba(12, 18, 32, .45); z-index: 60;
  animation: fade .18s both;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 61;
  width: 100%; max-width: 520px; background: #fff;
  border-radius: 20px 20px 0 0; padding: 6px 16px calc(16px + var(--sab));
  animation: up .26s cubic-bezier(.32, .72, 0, 1) both;
  max-height: 82dvh; overflow-y: auto;
}
@keyframes up { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
.sheet-handle { width: 38px; height: 4px; border-radius: 2px; background: #E1E5EE; margin: 6px auto 10px; }
.sheet-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.sheet-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 90;
  max-width: 76vw; padding: 12px 18px; border-radius: 12px;
  background: rgba(20, 28, 46, .92); color: #fff; font-size: 13.5px;
  text-align: center; line-height: 1.5; animation: fade .16s both;
  pointer-events: none;
}

/* ---------- 骨架 ---------- */
.sk { background: linear-gradient(90deg, #EEF1F7 25%, #F7F9FC 37%, #EEF1F7 63%);
  background-size: 400% 100%; animation: shimmer 1.3s infinite; border-radius: 8px; }
@keyframes shimmer { from { background-position: 100% 50%; } to { background-position: 0 50%; } }

/* ---------- 工具类 ---------- */
.row { display: flex; align-items: center; gap: 8px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mt6 { margin-top: 6px; } .mt10 { margin-top: 10px; } .mt16 { margin-top: 16px; }
.mb6 { margin-bottom: 6px; } .mb10 { margin-bottom: 10px; }
.t-sm { font-size: 12px; } .t-muted { color: var(--muted); }
.t-ok { color: var(--ok); } .t-danger { color: var(--danger); } .t-brand { color: var(--brand); }
.bold { font-weight: 600; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; min-width: 0; }
.ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.section-title { font-size: 13px; color: var(--muted); font-weight: 500; margin: 16px 4px 8px; }
.section-title:first-child { margin-top: 4px; }

/* ---------- 首页专属 ---------- */
.hero {
  background: linear-gradient(150deg, #2C6BFF 0%, #1B57E8 46%, #123EA8 100%);
  padding: calc(12px + var(--sat)) 16px 46px; color: #fff; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -50px; top: -40px; width: 190px; height: 190px;
  border-radius: 50%; background: rgba(255, 255, 255, .1);
}
.hero::before {
  content: ""; position: absolute; right: 30px; bottom: -60px; width: 150px; height: 150px;
  border-radius: 50%; background: rgba(255, 255, 255, .07);
}
/* 品牌头（登录页 / 关于页）：湖南华知 */
.brand-hero { text-align: center; margin: 4px 0 18px; display: flex; flex-direction: column; align-items: center; }
.brand-hero .brand-mark-wrap { display: flex; justify-content: center; }
.brand-hero-name { font-size: 22px; font-weight: 800; letter-spacing: 2.5px; color: var(--text); margin-top: 10px; }
.brand-hero-sub { font-size: 12px; letter-spacing: 6px; color: var(--brand); font-weight: 600; margin-top: 4px; }
.brand-hero-slogan { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.hero-top { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.brand-logo {
  width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .18);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px;
  border: 1px solid rgba(255, 255, 255, .3);
}
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: .3px; }
.brand-slogan { font-size: 11px; opacity: .82; color: #DCE7FF; letter-spacing: .5px; }
.hero-top .nav-btn { margin-left: auto; background: rgba(255, 255, 255, .16); color: #fff; }
.hero-search { position: relative; z-index: 1; margin-top: 14px; }
.hero-search .searchbar { box-shadow: 0 6px 18px rgba(10, 30, 80, .2); }
.hero-quick { margin-top: 14px; position: relative; z-index: 1; }
.hero-quick .grid4 { gap: 2px 0; }
.hero-quick .entry span { color: rgba(255, 255, 255, .92); }
.hero-quick .entry:active { background: rgba(255, 255, 255, .12); }
.hero-quick .entry-ico { background: rgba(255, 255, 255, .16); box-shadow: none;
  border: 1px solid rgba(255, 255, 255, .18); }
.pull-up { margin-top: -34px; position: relative; z-index: 2; padding: 0 12px; }

/* 主推卡 */
.promo {
  border-radius: var(--radius); overflow: hidden; background: #fff;
  box-shadow: var(--shadow); display: flex; align-items: stretch;
}
.promo-l {
  flex: 1; padding: 15px 14px; min-width: 0;
  background: linear-gradient(115deg, #FFF7F2 0%, #FFFFFF 60%);
}
.promo-tag { font-size: 10.5px; color: var(--accent); font-weight: 700; letter-spacing: .5px; }
.promo-h { font-size: 19px; font-weight: 800; margin: 3px 0 4px; }
.promo-d { font-size: 12px; color: var(--muted); line-height: 1.45; }
.promo-r {
  width: 96px; flex: 0 0 auto; background: linear-gradient(160deg, #FF8A4C, #FF5A29);
  color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
}
.promo-r b { font-size: 24px; font-weight: 800; line-height: 1; }
.promo-r b i { font-size: 12px; font-style: normal; font-weight: 600; }
.promo-r span { font-size: 10.5px; opacity: .9; }

/* 流程 */
.flow4 { display: flex; align-items: flex-start; }
.flow4 .f { flex: 1; text-align: center; position: relative; }
.flow4 .f i {
  display: flex; width: 30px; height: 30px; border-radius: 50%; margin: 0 auto 6px;
  align-items: center; justify-content: center; font-style: normal; font-size: 13px; font-weight: 700;
  background: var(--brand-soft); color: var(--brand);
}
.flow4 .f span { font-size: 11.5px; color: var(--text-2); }
.flow4 .f::after {
  content: ""; position: absolute; top: 15px; left: 50%; width: 100%; height: 1px;
  background: repeating-linear-gradient(90deg, #D9E2F5 0 4px, transparent 4px 8px);
}
.flow4 .f:last-child::after { display: none; }

/* ---------- 选类 ---------- */
.class-card em { font-style: normal; font-size: 10px; color: var(--muted); }
.pkg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 4px; }
.pkg-card {
  background: #fff; border: 1px solid var(--line); border-radius: 13px;
  padding: 11px 10px; text-align: left; display: flex; flex-direction: column; gap: 3px;
}
.pkg-card:active { background: var(--brand-soft); border-color: var(--brand); }
.pkg-card b { font-size: 14px; font-weight: 700; color: var(--text); }
.pkg-card span { font-size: 11.5px; color: var(--brand); font-weight: 600; }
.pkg-card em { font-style: normal; font-size: 10.5px; color: var(--muted); line-height: 1.4; }
.class-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.class-card {
  background: #fff; border-radius: 12px; padding: 10px 6px; text-align: center;
  border: 1px solid var(--line); min-height: 78px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}
.class-card:active { background: #F5F8FF; }
.class-card.on { border-color: var(--brand); background: var(--brand-soft); }
.class-card b { font-size: 17px; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; line-height: 1.1; }
.class-card span {
  font-size: 11px; color: var(--text-2); line-height: 1.35; text-align: center;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: keep-all; min-height: 29px;
}
.class-card em { font-style: normal; font-size: 10px; color: var(--muted); }

/* ---------- 小项 ---------- */
.pick-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px;
  position: relative; background: #fff;
}
.pick-item + .pick-item::before {
  content: ""; position: absolute; left: 14px; right: 0; top: 0; height: 1px; background: var(--line);
}
.pick-item span { flex: 1; font-size: 14px; line-height: 1.45; }
.pick-item .box {
  width: 21px; height: 21px; border-radius: 50%; border: 1.5px solid #CFD6E4;
  flex: 0 0 auto; margin-top: 1px; display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.pick-item.on .box { background: var(--brand); border-color: var(--brand); }
.pick-item .box svg { width: 13px; height: 13px; opacity: 0; }
.pick-item.on .box svg { opacity: 1; }
.pick-item.disabled { opacity: .45; }

/* ---------- 支付 ---------- */
.pay-amt { text-align: center; padding: 24px 0 18px; }
.pay-amt .pa-label { font-size: 12.5px; color: var(--muted); }
.pay-amt .pa-val { font-size: 38px; font-weight: 800; letter-spacing: -1px; margin-top: 2px; }
.pay-amt .pa-val small { font-size: 19px; font-weight: 700; margin-right: 2px; }
.pay-method { display: flex; align-items: center; gap: 12px; padding: 14px; background: #fff; }
.pay-method + .pay-method { border-top: 1px solid var(--line); }
.pay-logo { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center;
  justify-content: center; color: #fff; font-weight: 700; font-size: 16px; }
.wx { background: #07C160; } .ali { background: #1677FF; }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #CFD6E4; margin-left: auto;
  display: flex; align-items: center; justify-content: center; }
.radio.on { border-color: var(--brand); }
.radio.on::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--brand); }
.pay-note { font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.6; padding: 14px 20px; }

/* ---------- 成功页 ---------- */
.succ { text-align: center; padding: 32px 20px 20px; }
.succ-ico {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--ok-soft); color: var(--ok);
  display: flex; align-items: center; justify-content: center;
  animation: pop .4s cubic-bezier(.2, 1.4, .4, 1) both;
}
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.succ-ico svg { width: 34px; height: 34px; }
.succ h2 { font-size: 21px; margin: 0 0 6px; font-weight: 800; }
.succ p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- 我的 ---------- */
.me-hero {
  background: linear-gradient(150deg, #2C6BFF, #1444BC); color: #fff;
  padding: calc(20px + var(--sat)) 16px 22px;
}
.me-row { display: flex; align-items: center; gap: 13px; }
.avatar {
  width: 54px; height: 54px; border-radius: 18px; flex: 0 0 auto;
  background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .35);
  display: flex; align-items: center; justify-content: center; font-size: 21px; font-weight: 700;
}
.me-name { font-size: 19px; font-weight: 700; }
.me-sub { font-size: 12px; opacity: .8; margin-top: 2px; }
.me-stats { display: flex; margin-top: 18px; }
.me-stats div { flex: 1; text-align: center; }
.me-stats b { display: block; font-size: 20px; font-weight: 800; }
.me-stats span { font-size: 11px; opacity: .78; }

/* ---------- 登录 ---------- */
.auth { padding: 26px 22px; }
.auth h1 { font-size: 24px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.3px; }
.auth p.sub { font-size: 13px; color: var(--muted); margin: 0 0 24px; }
.auth-switch { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }
.auth-switch b { color: var(--brand); font-weight: 600; margin-left: 4px; }

/* ---------- 工作台 KPI ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.kpi {
  background: #fff; border-radius: var(--radius); padding: 13px 14px; box-shadow: var(--shadow);
}
.kpi .k-label { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.kpi .k-val { font-size: 23px; font-weight: 800; margin-top: 3px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.kpi .k-val small { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.kpi.k-brand { background: linear-gradient(135deg, #2C6BFF, #1444BC); color: #fff; }
.kpi.k-brand .k-label, .kpi.k-brand .k-val small { color: rgba(255, 255, 255, .75); }

.alert-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.alert-row + .alert-row { border-top: 1px solid var(--line); }
.alert-ico { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; flex: 0 0 auto; }
.alert-ico svg { width: 17px; height: 17px; }

/* 滚动条（桌面可见时弱化） */
.body::-webkit-scrollbar { width: 0; }

/* ============================================================
   v2.1 精修：申报向导 / 查询 / 搜索 / 细节质感
   ============================================================ */

/* 页面底色更柔和 */
.page { background: linear-gradient(180deg, #F7F9FD 0%, #F4F6FA 120px, #F4F6FA 100%); }

/* ---------- 顶部步骤条 ---------- */
.stepper {
  display: flex; align-items: center; gap: 0;
  background: #fff; padding: 10px 12px; border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.stepper .st {
  flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0;
}
.stepper .st i {
  width: 20px; height: 20px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 11px; font-weight: 700;
  background: #EDF0F6; color: #A6AFC2;
}
.stepper .st span { font-size: 11.5px; color: #A6AFC2; white-space: nowrap; }
.stepper .st.on i { background: var(--brand); color: #fff; box-shadow: 0 2px 6px rgba(27,87,232,.3); }
.stepper .st.on span { color: var(--brand); font-weight: 600; }
.stepper .st.done i { background: var(--brand-soft); color: var(--brand); }
.stepper .st.done span { color: var(--text-2); }
.stepper .st::after {
  content: ""; flex: 1; height: 1px; background: #E5E9F2; margin: 0 6px; min-width: 8px;
}
.stepper .st:last-child::after { display: none; }

/* ---------- 表单增强 ---------- */
.form-card { background: #fff; border-radius: 16px; padding: 4px 16px; margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(22,33,58,.04), 0 4px 16px rgba(22,33,58,.05); }
.form-row { display: flex; align-items: center; gap: 10px; min-height: 52px;
  border-bottom: 1px solid var(--line); }
.form-row:last-child { border-bottom: 0; }
.form-row .fl { width: 78px; flex: 0 0 auto; font-size: 13.5px; color: var(--text-2); }
.form-row .fl .req { color: var(--danger); }
.form-row input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font-size: 15px; padding: 14px 0; color: var(--text);
}
.form-row input::placeholder { color: #C0C7D6; font-size: 14px; }
.form-row .unit { font-size: 13px; color: var(--muted); flex: 0 0 auto; }
.form-row textarea {
  flex: 1; border: 0; outline: none; resize: none; background: transparent;
  font-size: 15px; padding: 12px 0; min-height: 72px; line-height: 1.6;
}
.form-group-title {
  font-size: 12.5px; color: var(--muted); margin: 14px 4px 8px; display: flex; align-items: center; gap: 6px;
}
.form-group-title::before { content: ""; width: 3px; height: 11px; border-radius: 2px; background: var(--brand); }

/* 分段选择 */
.segmented { display: flex; gap: 6px; padding: 10px 0; }
.segmented button {
  flex: 1; height: 38px; border-radius: 10px; background: #F4F6FA;
  font-size: 14px; color: var(--text-2); border: 1px solid transparent;
}
.segmented button.on { background: var(--brand-soft); color: var(--brand);
  border-color: #BFD2FF; font-weight: 600; }

/* 上传图样 */
.uploader {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
}
.uploader .up-box {
  width: 76px; height: 76px; border-radius: 12px; border: 1.5px dashed #CBD5E8;
  background: #FAFBFE; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; color: #A9B3C7; font-size: 10.5px; flex: 0 0 auto;
}
.uploader .up-box img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.uploader .up-tip { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ---------- 提示条 ---------- */
.notice {
  display: flex; gap: 9px; padding: 11px 13px; border-radius: 12px;
  background: #EFF4FF; color: #2C4A87; font-size: 12.5px; line-height: 1.6;
  margin-bottom: 10px;
}
.notice.warn { background: #FFF8EC; color: #8A5A12; }
.notice.ok { background: #ECFAF3; color: #116B48; }
.notice svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 2px; }

/* ---------- 查询结果 ---------- */
.risk {
  border-radius: 16px; padding: 18px 16px; color: #fff; position: relative; overflow: hidden;
  margin-bottom: 10px;
}
.risk.high { background: linear-gradient(135deg, #FF7A6B, #E23D2E); }
.risk.mid { background: linear-gradient(135deg, #FFB03A, #E8890B); }
.risk.low { background: linear-gradient(135deg, #34C48E, #0E9F6E); }
.risk::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 130px; height: 130px;
  border-radius: 50%; background: rgba(255,255,255,.13);
}
.risk .r-top { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.risk .r-name { font-size: 19px; font-weight: 800; }
.risk .r-badge {
  font-size: 11px; padding: 3px 9px; border-radius: 9px;
  background: rgba(255,255,255,.22); font-weight: 600;
}
.risk .r-score { margin-left: auto; text-align: right; }
.risk .r-score b { font-size: 27px; font-weight: 800; line-height: 1; }
.risk .r-score span { display: block; font-size: 10px; opacity: .85; }
.risk .r-advice { position: relative; z-index: 1; margin-top: 12px; font-size: 12.5px;
  line-height: 1.65; opacity: .95; }

.hit {
  display: flex; align-items: center; gap: 10px; padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.hit:last-child { border-bottom: 0; }
.hit .h-name { font-size: 14.5px; font-weight: 600; }
.hit .h-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.hit .h-sim { margin-left: auto; text-align: right; flex: 0 0 auto; }
.hit .h-sim b { font-size: 15px; color: var(--danger); font-weight: 700; }
.hit .h-sim span { display: block; font-size: 10px; color: var(--muted); }

/* ---------- 搜索输入 ---------- */
.search-inline {
  display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px;
  padding: 0 12px; height: 44px; box-shadow: var(--shadow); margin-bottom: 10px;
}
.search-inline svg { width: 17px; height: 17px; color: var(--muted); }
.search-inline input { flex: 1; border: 0; outline: none; font-size: 15px; min-width: 0; background: transparent; }
.search-inline button { color: var(--brand); font-size: 13px; font-weight: 600; }

/* ---------- 草稿卡 ---------- */
.draft {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px;
  background: linear-gradient(100deg, #FFF9F0, #FFFFFF 70%);
  border: 1px solid #FFE4C4; border-radius: 14px; margin-bottom: 10px;
}
.draft .d-ico { width: 36px; height: 36px; border-radius: 11px; background: #FFEEDD;
  color: #E8890B; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.draft .d-ico svg { width: 18px; height: 18px; }
.draft .d-main { flex: 1; min-width: 0; }
.draft .d-t { font-size: 13.5px; font-weight: 600; }
.draft .d-s { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ---------- 进度预期 ---------- */
.eta { display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: linear-gradient(100deg, #F0F5FF, #FFFFFF); border-radius: 14px; margin-bottom: 10px; }
.eta .e-num { font-size: 22px; font-weight: 800; color: var(--brand); line-height: 1; }
.eta .e-t { font-size: 13px; font-weight: 600; }
.eta .e-s { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ---------- 材料条目 ---------- */
.mat-item {
  display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line);
}
.mat-item:last-child { border-bottom: 0; }
.mat-ico { width: 34px; height: 34px; border-radius: 10px; background: #F3F6FC;
  color: #7D8AA3; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.mat-ico svg { width: 17px; height: 17px; }
.mat-main { flex: 1; min-width: 0; }
.mat-t { font-size: 13.5px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.mat-note { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }

/* ---------- 底部操作栏更精致 ---------- */
.actionbar { box-shadow: 0 -4px 20px rgba(22,33,58,.06); }
.actionbar .sum em { letter-spacing: -.3px; }

/* ---------- 按钮点击态 ---------- */
.btn-primary:active { box-shadow: 0 2px 8px rgba(27,87,232,.25); }

/* ---------- 卡片微交互 ---------- */
.card { transition: transform .12s ease; }
.card[onclick]:active { transform: scale(.995); }

/* ---------- 加载态 ---------- */
.loading-line { height: 3px; background: linear-gradient(90deg, transparent, var(--brand), transparent);
  background-size: 200% 100%; animation: slide 1.1s infinite; border-radius: 2px; }
@keyframes slide { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ============================================================
   v3.0 办理链路：服务方案 / 阶段轴 / 商标资产
   ============================================================ */

/* ---------- 服务方案 ---------- */
.plan-opt {
  display: flex; gap: 10px; align-items: flex-start; padding: 13px 12px;
  border: 1.5px solid #E8ECF4; border-radius: 14px; margin-bottom: 8px;
  transition: border-color .15s, background .15s, box-shadow .15s; background: #fff;
}
.plan-opt:last-child { margin-bottom: 0; }
.plan-opt.on {
  border-color: var(--brand);
  background: linear-gradient(100deg, #F5F8FF, #FFFFFF 72%);
  box-shadow: 0 4px 14px rgba(27, 87, 232, .09);
}
.po-main { flex: 1; min-width: 0; }
.po-name { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.po-badge { font-size: 10px; padding: 2px 6px; border-radius: 6px; background: var(--brand); color: #fff; font-weight: 600; }
.po-desc { font-size: 11.5px; color: var(--muted); margin-top: 4px; line-height: 1.55; }
.po-guar { display: flex; align-items: center; gap: 4px; font-size: 11px; color: #0E9F6E; margin-top: 6px; }
.po-guar svg { width: 12px; height: 12px; }
.po-price { text-align: right; flex: 0 0 auto; padding-top: 1px; }
.po-price b { font-size: 17px; color: var(--danger); font-weight: 800; }
.po-price span { display: block; font-size: 10px; color: var(--muted); margin-top: 1px; }
.po-radio {
  width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #D5DCEA;
  display: flex; align-items: center; justify-content: center; color: #fff;
  flex: 0 0 auto; margin-top: 2px;
}
.plan-opt.on .po-radio { background: var(--brand); border-color: var(--brand); }
.po-radio svg { width: 12px; height: 12px; }

/* ---------- 官方阶段轴 ---------- */
.stagecard { padding: 0; overflow: hidden; }
.stage-rail { display: flex; justify-content: space-between; gap: 2px; padding: 12px 2px 4px; }
.sr {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px;
  position: relative; min-width: 0;
}
.sr i {
  width: 20px; height: 20px; border-radius: 50%; background: #EEF1F7; color: #A9B3C7;
  font-style: normal; font-size: 10px; font-weight: 700; display: flex;
  align-items: center; justify-content: center; z-index: 1;
}
.sr span { font-size: 9px; color: #A9B3C7; white-space: nowrap; }
.sr.done i { background: #DBE9FF; color: var(--brand); }
.sr.done span { color: var(--text-2); }
.sr.cur i { background: var(--brand); color: #fff; box-shadow: 0 0 0 3px rgba(27, 87, 232, .14); }
.sr.cur span { color: var(--brand); font-weight: 700; }
.sr::after {
  content: ""; position: absolute; top: 10px; left: 50%; width: 100%;
  height: 2px; background: #EEF1F7; z-index: 0;
}
.sr:last-child::after { display: none; }
.sr.done::after { background: #C7DCFF; }
.stage-now {
  margin-top: 8px; padding: 11px 12px; border-radius: 12px;
  background: linear-gradient(100deg, #F3F7FF, #FAFCFF);
}
.sn-l { font-size: 10.5px; color: var(--brand); font-weight: 600; letter-spacing: .2px; }
.sn-n { font-size: 15px; font-weight: 800; margin-top: 2px; }
.sn-d { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.55; }

/* ---------- 商标资产 ---------- */
.ass-kpi { display: flex; gap: 8px; margin-bottom: 10px; }
.ass-kpi .ak {
  flex: 1; background: #fff; border-radius: 14px; padding: 12px 8px;
  text-align: center; box-shadow: var(--shadow);
}
.ass-kpi .ak b { display: block; font-size: 20px; font-weight: 800; color: var(--text); line-height: 1.2; }
.ass-kpi .ak span { font-size: 11px; color: var(--muted); }
.segtabs {
  display: flex; gap: 6px; background: #fff; border-radius: 12px;
  padding: 4px; margin-bottom: 10px; box-shadow: var(--shadow);
}
.segtabs button { flex: 1; height: 32px; border-radius: 9px; font-size: 13px; color: var(--text-2); }
.segtabs button.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.asset {
  background: #fff; border-radius: 16px; padding: 14px; margin-bottom: 10px;
  box-shadow: var(--shadow); transition: transform .12s ease;
}
.asset:active { transform: scale(.995); }
.as-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.as-name { font-size: 15.5px; font-weight: 700; }
.as-meta { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.as-bar { height: 4px; border-radius: 3px; background: #EEF1F7; margin-top: 10px; overflow: hidden; }
.as-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #4B82FF, #1B57E8); }
.as-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 9px; }
.as-days { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.as-days.warn { color: #E8890B; }
.as-days.urgent { color: var(--danger); }
.as-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ---------- v3.1 常用申请人 ---------- */
.app-card {
  flex: 0 0 auto; width: 148px; background: #fff; border: 1.5px solid var(--line);
  border-radius: 12px; padding: 10px 12px; cursor: pointer; transition: all .15s;
}
.app-card.on { border-color: var(--brand); background: #F5F8FF; }
.app-card .ac-top { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.app-card .ac-top b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-card .tag { font-size: 10px; background: #F0EBFF; color: #6941C6; padding: 1px 6px; border-radius: 5px; flex: 0 0 auto; }
.app-card .t-sm { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-card.add {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--muted); font-size: 12px; border-style: dashed; width: 72px;
}
.app-card.add b { font-size: 20px; line-height: 1; color: var(--brand); }
.form-row .pick {
  flex: 1; text-align: right; color: var(--text); display: flex; align-items: center;
  justify-content: flex-end; gap: 2px; font-size: 14.5px; min-width: 0;
}
.form-row .pick svg { width: 14px; height: 14px; color: #C6CCDA; flex: 0 0 auto; }

/* ================= v4.0 AI / 合同 / 票据 / 咨询 ================= */
.nav-text { color: var(--brand); font-size: 13.5px; font-weight: 600; background: none; border: 0; padding: 6px; }
.mb8 { margin-bottom: 8px; } .mt6 { margin-top: 6px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* AI 入口卡 */
.ai-entry {
  display: flex; align-items: center; gap: 11px; background: linear-gradient(135deg, #EEF3FF, #F7F1FF);
  border: 1px solid #E0E8FF; border-radius: 13px; padding: 12px 13px; margin: 10px 0; cursor: pointer;
}
.ai-entry.scan-entry { margin: 4px 0 14px; background: linear-gradient(135deg, #F3F0FF, #EFF7FF); }
.ae-ico {
  width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.ae-ico svg { width: 19px; height: 19px; }
.ae-ico.purple { background: #6941C6; }
.ae-main { flex: 1; min-width: 0; }
.ae-main b { display: block; font-size: 13.5px; color: var(--text); }
.ae-main span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.ae-arrow svg { width: 16px; height: 16px; color: #A9B2C6; }

/* AI 双入口 */
.ai-duo { display: flex; gap: 8px; margin: 10px 0 8px; }
.ai-duo-btn {
  flex: 1; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 11px; text-align: left; cursor: pointer;
}
.ai-duo-btn i { width: 30px; height: 30px; border-radius: 9px; background: #F3F0FF; color: #6941C6;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ai-duo-btn i.blue { background: var(--brand-soft); color: var(--brand); }
.ai-duo-btn i svg { width: 16px; height: 16px; }
.ai-duo-btn b { display: block; font-size: 13px; }
.ai-duo-btn span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 1px; }

/* AI 推荐页 */
.ai-hero { padding: 18px 4px 4px; }
.ah-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: #6941C6;
  background: #F3F0FF; padding: 3px 9px; border-radius: 20px; }
.ah-badge svg { width: 12px; height: 12px; }
.ah-title { font-size: 22px; font-weight: 700; margin: 10px 0 5px; letter-spacing: -.4px; }
.ah-sub { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.ai-loading { display: flex; align-items: center; gap: 9px; padding: 18px 4px; color: var(--muted); font-size: 12.5px; }
.ai-loading i { width: 15px; height: 15px; border: 2px solid #D8E0F5; border-top-color: var(--brand);
  border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.sec-hd { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 2px 8px; }
.sec-hd b { font-size: 14.5px; }
.sec-hd span { font-size: 11.5px; color: var(--muted); }

.ai-cls { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 13px; margin-bottom: 9px; }
.ai-cls.core { border-color: #C7D7FF; box-shadow: 0 2px 10px rgba(27, 87, 232, .07); }
.ac-hd { display: flex; align-items: center; gap: 10px; }
.ac-no { width: 36px; height: 36px; border-radius: 11px; background: var(--brand-soft); color: var(--brand);
  font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ai-cls.core .ac-no { background: var(--brand); color: #fff; }
.ac-main { flex: 1; min-width: 0; }
.ac-main b { font-size: 14px; display: block; }
.ac-advice { font-size: 10.5px; color: #6941C6; background: #F7F2FF; padding: 1px 6px;
  border-radius: 5px; display: inline-block; margin-top: 3px; }
.ac-why { font-size: 11.5px; color: var(--muted); margin: 8px 0 6px; line-height: 1.5; }
.ac-conf { position: relative; height: 4px; background: #EEF1F7; border-radius: 3px; margin-bottom: 8px; }
.ac-conf i { position: absolute; left: 0; top: 0; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #7FA3FF, var(--brand)); }
.ac-conf span { position: absolute; right: 0; top: -16px; font-size: 10px; color: var(--muted); }
.ac-items { display: flex; flex-wrap: wrap; gap: 5px; }
.ac-items span { font-size: 11px; color: var(--text-2); background: #F6F8FC; padding: 3px 7px; border-radius: 6px; }
.ai-note { font-size: 11px; color: var(--muted); line-height: 1.6; padding: 6px 2px 0; }

/* 复选框 */
.cbx { position: relative; width: 21px; height: 21px; flex: 0 0 auto; }
.cbx input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; }
.cbx i { display: block; width: 21px; height: 21px; border: 1.5px solid #CFD6E4; border-radius: 6px; }
.cbx input:checked + i { background: var(--brand); border-color: var(--brand); }
.cbx input:checked + i::after { content: ''; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px;
  border: 2px solid #fff; border-top: 0; border-left: 0; transform: rotate(45deg); }

/* 风险报告 */
.risk-hero { display: flex; align-items: center; gap: 14px; border-radius: 16px; padding: 16px;
  background: linear-gradient(135deg, #F0F7F3, #EAF4FF); }
.risk-hero.r-mid { background: linear-gradient(135deg, #FFF8EC, #FFF3E4); }
.risk-hero.r-high { background: linear-gradient(135deg, #FFF1F0, #FFECEB); }
.rh-ring { position: relative; width: 92px; height: 92px; flex: 0 0 auto; }
.rh-ring svg { width: 92px; height: 92px; transform: rotate(-90deg); }
.rh-bg { fill: none; stroke: rgba(255,255,255,.9); stroke-width: 9; }
.rh-fg { fill: none; stroke: var(--ok); stroke-width: 9; stroke-linecap: round; }
.r-mid .rh-fg { stroke: var(--warn); }
.r-high .rh-fg { stroke: var(--danger); }
.rh-num { position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; }
.rh-num b { font-size: 25px; line-height: 1; }
.rh-num span { font-size: 10px; color: var(--muted); margin-top: 2px; }
.rh-info { flex: 1; min-width: 0; }
.rh-level { font-size: 12px; font-weight: 700; color: var(--ok); }
.r-mid .rh-level { color: var(--warn); } .r-high .rh-level { color: var(--danger); }
.rh-name { font-size: 19px; font-weight: 700; margin: 3px 0 4px; }
.rh-meta { font-size: 11.5px; color: var(--text-2); line-height: 1.5; }

.dim { margin-bottom: 13px; }
.dim:last-child { margin-bottom: 2px; }
.dim-hd { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 5px; }
.dim-hd b { color: var(--brand); }
.dim-bar { height: 6px; background: #EEF1F7; border-radius: 4px; overflow: hidden; }
.dim-bar i { display: block; height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, #93B4FF, var(--brand)); }
.dim-desc { font-size: 11px; color: var(--muted); margin-top: 4px; }

.hit { background: #fff; border-radius: 12px; padding: 11px 13px; margin-bottom: 8px;
  border-left: 3px solid #F5C2BE; }
.hit-hd { display: flex; align-items: center; gap: 8px; }
.hit-hd b { font-size: 14.5px; flex: 1; }
.hit-cls { font-size: 10.5px; color: var(--muted); background: #F4F6FA; padding: 1px 6px; border-radius: 4px; }
.hit-sim { font-size: 12px; font-weight: 700; color: var(--danger); }
.hit-owner { font-size: 11px; color: var(--muted); margin-top: 4px; }
.hit-why { font-size: 11.5px; color: var(--text-2); margin-top: 3px; }
.sugg { display: flex; gap: 9px; align-items: flex-start; margin-bottom: 9px; font-size: 12.5px; line-height: 1.6; }
.sugg i { width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  font-size: 10.5px; font-style: normal; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; margin-top: 1px; }
.disclaimer { font-size: 10.5px; color: #98A2B3; line-height: 1.7; background: #F8F9FC;
  border-radius: 10px; padding: 10px 12px; margin-top: 12px; }

/* 证件识别 */
.scan-box { background: #fff; border: 1.5px dashed #C9D6F2; border-radius: 16px;
  padding: 26px 18px; text-align: center; }
.sb-ico { width: 56px; height: 56px; border-radius: 16px; background: #F3F0FF; color: #6941C6;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.sb-ico svg { width: 26px; height: 26px; }
.sb-t { font-size: 15px; font-weight: 600; }
.sb-s { font-size: 12px; color: var(--muted); margin: 5px 0 16px; }
.scan-tips { margin: 16px 2px; font-size: 11.5px; color: var(--muted); line-height: 2; }
.scan-tips div { display: flex; align-items: center; gap: 6px; }
.scan-tips svg { width: 13px; height: 13px; color: var(--ok); }
.raw-ocr { margin-top: 14px; font-size: 11.5px; color: var(--muted); }
.raw-ocr pre { white-space: pre-wrap; background: #F7F9FC; padding: 10px; border-radius: 8px; font-size: 11px; }

/* 合同 */
.doc-frame { width: 100%; height: calc(100vh - 200px); border: 1px solid var(--line);
  border-radius: 12px; background: #fff; }
.signed-bar { display: flex; align-items: center; gap: 10px; background: var(--ok-soft);
  border-radius: 12px; padding: 12px 14px; margin-top: 10px; color: #067647; }
.signed-bar svg { width: 20px; height: 20px; flex: 0 0 auto; }
.signed-bar b { display: block; font-size: 13px; }
.signed-bar span { font-size: 11px; opacity: .8; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--text-2);
  line-height: 1.5; margin: 12px 0; }
.agree input { margin-top: 2px; width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--brand); }

/* 费用与票据 */
.fin-hero { background: linear-gradient(135deg, #1B3A8F, #1B57E8); border-radius: 16px;
  padding: 18px; color: #fff; }
.fh-main span { font-size: 12px; opacity: .8; }
.fh-main b { display: block; font-size: 28px; letter-spacing: -.6px; margin-top: 3px; }
.fh-side { display: flex; gap: 22px; margin-top: 14px; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.18); }
.fh-side b { font-size: 14px; } .fh-side span { font-size: 11px; opacity: .75; margin-left: 4px; }
.fin-row { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px;
  padding: 11px 13px; margin-bottom: 8px; }
.fr-main { flex: 1; min-width: 0; }
.fr-main b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-main span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.fr-amt { font-size: 14px; font-weight: 700; }
.fav-row { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px;
  padding: 11px 13px; margin-bottom: 8px; }
.btn-text { background: none; border: 0; color: var(--muted); padding: 6px; font-size: 12px; }

/* 咨询聊天 */
.tk-hd { padding: 4px 2px 12px; border-bottom: 1px solid var(--line); }
.tk-hd b { font-size: 16px; }
.tk-meta { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.chat { padding: 14px 2px 8px; }
.msg { display: flex; gap: 8px; margin-bottom: 14px; }
.msg.me { flex-direction: row-reverse; }
.msg-av { width: 30px; height: 30px; border-radius: 9px; background: #EEF1F7; color: var(--text-2);
  font-size: 12px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.msg.me .msg-av { background: var(--brand); color: #fff; }
.msg-bd { max-width: 76%; }
.msg-txt { background: #fff; border-radius: 12px; padding: 9px 12px; font-size: 13px; line-height: 1.6;
  box-shadow: var(--shadow); word-break: break-word; }
.msg.me .msg-txt { background: var(--brand); color: #fff; }
.msg-time { font-size: 10px; color: var(--muted); margin-top: 4px; }
.msg.me .msg-time { text-align: right; }
.chat-input { display: flex; gap: 8px; align-items: center; background: #fff; border-radius: 12px;
  padding: 6px 6px 6px 12px; margin-top: 6px; box-shadow: var(--shadow); }
.chat-input input { flex: 1; border: 0; outline: 0; font-size: 14px; background: transparent; }

/* ===================== v6.0 全业务线组件 ===================== */
.v6-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.v6-mod { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.v6-mod-hd { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.v6-mod-hd i { width: 28px; height: 28px; border-radius: 9px; background: var(--brand-soft);
  color: var(--brand); display: flex; align-items: center; justify-content: center; }
.v6-mod-hd i svg { width: 16px; height: 16px; }
.v6-mod-d { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.v6-mod-links { display: flex; flex-wrap: wrap; gap: 6px; }
.v6-lk { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: #F4F6FA; color: #4A5568; }
.v6-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.v6-stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 6px;
  text-align: center; }
.v6-stat b { display: block; font-size: 19px; font-weight: 800; color: var(--text); }
.v6-stat b.warn { color: var(--warn); } .v6-stat b.danger { color: var(--danger); }
.v6-stat b.ok { color: var(--ok); }
.v6-stat span { font-size: 11px; color: var(--muted); }
.v6-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; }
.v6-tabs::-webkit-scrollbar { display: none; }
.v6-tab { flex: 0 0 auto; padding: 6px 13px; border-radius: 999px; background: #F1F4F9;
  font-size: 12.5px; color: #5A6B87; border: 0; }
.v6-tab.on { background: var(--brand); color: #fff; font-weight: 600; }
.v6-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.v6-card-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.v6-card-t { font-weight: 700; font-size: 14.5px; }
.v6-card-s { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.v6-kv { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0;
  border-bottom: 1px dashed #EEF1F6; font-size: 12.5px; }
.v6-kv:last-child { border-bottom: 0; }
.v6-kv span { color: var(--muted); }
.v6-kv b { font-weight: 600; text-align: right; }
.v6-tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 6px;
  background: #F1F4F9; color: #5A6B87; }
.v6-tag.high { background: var(--danger-soft); color: var(--danger); }
.v6-tag.mid { background: var(--warn-soft); color: #B54708; }
.v6-tag.low { background: var(--ok-soft); color: #027A48; }
.v6-tag.brand { background: var(--brand-soft); color: var(--brand); }
.v6-bar { height: 7px; border-radius: 4px; background: #EEF1F6; overflow: hidden; margin-top: 6px; }
.v6-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg,#9DB6FF,var(--brand)); }
.v6-count { border-radius: 14px; padding: 16px; color: #fff; margin-bottom: 12px;
  background: linear-gradient(135deg,#1B57E8,#3C7BFF); }
.v6-count.urgent { background: linear-gradient(135deg,#D92D20,#F97066); }
.v6-count b { font-size: 26px; font-weight: 800; }
.v6-count span { display: block; font-size: 12px; opacity: .85; margin-top: 4px; }
.v6-check { display: flex; align-items: flex-start; gap: 8px; padding: 9px 0; border-bottom: 1px dashed #EEF1F6; font-size: 13px; }
.v6-check:last-child { border-bottom: 0; }
.v6-check i { width: 18px; height: 18px; border-radius: 50%; flex: 0 0 auto; margin-top: 1px;
  border: 1.5px solid #C4CCDB; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; }
.v6-check i.on { background: var(--ok); border-color: var(--ok); }
.v6-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.v6-pick button { padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; font-size: 12.5px; color: var(--text-2); }
.v6-pick button.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.v6-mini { font-size: 11.5px; color: var(--muted); }
.v6-day { font-weight: 800; font-size: 15px; }
.v6-day.warn { color: var(--warn); } .v6-day.danger { color: var(--danger); }
.v6-empty { text-align: center; padding: 26px 12px; color: var(--muted); font-size: 12.5px; }
.v6-split { height: 8px; }

/* ============================================================
   v7.5 长辈模式（适老化）· html.elder
   更大字号 / 更高对比 / 更大点击区 / 术语可解释
   ============================================================ */
html.elder body { font-size: 17px; line-height: 1.7; color: #0E1729; }
html.elder .t-sm { font-size: 15px !important; }
html.elder .t-muted { color: #5A6478 !important; }
html.elder .hint { font-size: 14.5px !important; color: #5A6478 !important; }
html.elder .nav-title { font-size: 19px; font-weight: 700; }
html.elder .nav-sub { font-size: 14.5px; }
html.elder .nav-back, html.elder .nav-btn { min-width: 44px; min-height: 44px; }
html.elder .navbar { height: calc(var(--nav-h) + 8px); }
html.elder .body { padding-top: calc(var(--nav-h) + 8px); }
html.elder .tabbar { height: calc(var(--tab-h) + 12px); }
html.elder .tab span { font-size: 15px; font-weight: 600; }
html.elder .tab svg { width: 26px; height: 26px; }
html.elder .btn { min-height: 52px; font-size: 17px; font-weight: 700; padding: 13px 20px; }
html.elder .btn-sm { min-height: 44px; font-size: 15px; }
html.elder .chip { font-size: 15.5px; padding: 9px 16px; min-height: 40px; }
html.elder .cell { padding: 16px 14px; }
html.elder .cell-title { font-size: 17px; font-weight: 700; }
html.elder .cell-desc { font-size: 14.5px; }
html.elder .svc-name, html.elder .promo-h, html.elder .d-t { font-size: 17.5px; font-weight: 700; }
html.elder .svc-desc, html.elder .promo-d, html.elder .d-s { font-size: 14.5px; }
html.elder .svc-price, html.elder .promo-r b { font-size: 18px; }
html.elder .entry span { font-size: 14.5px; font-weight: 600; }
html.elder .section-title { font-size: 18px; font-weight: 800; }
html.elder .search-inline input, html.elder .searchbar { font-size: 16px; min-height: 48px; }
html.elder .search-inline { min-height: 52px; }
html.elder input, html.elder select, html.elder textarea { font-size: 17px !important; min-height: 50px !important; }
html.elder .card-title, html.elder .card-hd { font-size: 16.5px; font-weight: 700; }
html.elder .toast { font-size: 16.5px !important; padding: 14px 22px !important; max-width: 86%; }
html.elder .notice { font-size: 15px; }
html.elder .empty p { font-size: 17px; }
html.elder .empty span { font-size: 15px; }
html.elder .badge, html.elder [class*="b-"] { font-size: 14px !important; }
html.elder .ord-title, html.elder .ord-no { font-size: 16.5px; }
html.elder .ord-meta, html.elder .t-sm.t-muted { font-size: 14.5px; }
/* 术语可解释 */
.term-x { text-decoration: underline dotted #1B57E8 2px; text-underline-offset: 4px; cursor: pointer;
  color: inherit; font-weight: 600; padding: 0 1px; }
html.elder .term-x { color: #1444BC; }
/* 长辈模式首页大卡 */
.elder-hero-tip { margin: 10px 12px 0; background: linear-gradient(135deg,#FFF6E6,#FFF1F0);
  border: 1.5px solid #F7C59F; border-radius: 14px; padding: 12px 16px; font-size: 16px;
  font-weight: 600; color: #9A4B12; display: flex; gap: 10px; align-items: center; }
.elder-cards { padding: 12px; display: grid; gap: 14px; }
.elder-card { border-radius: 18px; padding: 26px 20px; color: #fff; display: flex; flex-direction: column; gap: 8px;
  min-height: 108px; justify-content: center; box-shadow: var(--shadow-lg); border: 0; text-align: left; width: 100%; }
.elder-card b { font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.elder-card span { font-size: 15.5px; opacity: .92; }
.elder-card svg { width: 30px; height: 30px; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); opacity: .35; }
.ec-blue { background: linear-gradient(135deg,#2E6BEF,#1444BC); }
.ec-green { background: linear-gradient(135deg,#12B76A,#0E8A50); }
.ec-orange { background: linear-gradient(135deg,#FF8A3D,#F04438); }
/* 悬浮人工客服 */
#elder-fab { position: fixed; right: 14px; bottom: calc(var(--tab-h) + 26px); z-index: 900;
  border-radius: 999px; border: 0; padding: 13px 18px; font-size: 15.5px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg,#FF8A3D,#F04438); box-shadow: 0 6px 20px rgba(240,68,56,.4);
  display: flex; align-items: center; gap: 7px; }
#elder-fab svg { width: 20px; height: 20px; }
html:not(.elder) #elder-fab { display: none; }
/* 术语解释弹层 */
.explain-mask { position: fixed; inset: 0; background: rgba(14,23,41,.45); z-index: 1000; display: flex;
  align-items: center; justify-content: center; padding: 24px; }
.explain-card { background: #fff; border-radius: 20px; max-width: 420px; width: 100%; padding: 24px 22px 18px;
  box-shadow: var(--shadow-lg); }
.explain-card h3 { margin: 0 0 10px; font-size: 21px; display: flex; align-items: center; gap: 10px; }
.explain-card .ex-body { font-size: 17.5px; line-height: 1.75; color: #1F2A44; }
.explain-card .ex-actions { display: flex; gap: 10px; margin-top: 18px; }
/* 字号档位 */
html.elder.elder-x body { font-size: 19px; }
html.elder.elder-x .cell-title, html.elder.elder-x .ord-title { font-size: 19px; }
html.elder.elder-x .t-sm { font-size: 16.5px !important; }
.elder-card .term-x { color: #fff; text-decoration-color: rgba(255,255,255,.85); font-weight: 800; }
/* v7.7 小项编号 */
.item-no { font-style: normal; font-size: 12px; color: var(--brand); background: var(--brand-soft);
  border-radius: 6px; padding: 2px 7px; margin-right: 8px; font-weight: 700; }
/* v7.7 hub 卡片整卡可点 + 链接按钮化 */
.v6-mod { cursor: pointer; }
.v6-lk { display: inline-flex; align-items: center; gap: 4px; background: var(--brand-soft);
  color: var(--brand); border-radius: 999px; padding: 7px 13px; margin: 3px 6px 3px 0;
  font-size: 13.5px; font-weight: 600; min-height: 34px; }
.v6-lk:active { opacity: .75; }
.lk-arr { display: inline-flex; width: 14px; height: 14px; }
.lk-arr svg { width: 100%; height: 100%; }

/* ================= v7.8 数据引擎 ================= */
.eng-hero-card { margin-bottom: 10px; }
.eng-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.eng-kpi { text-align: center; padding: 6px 2px; background: #F8FAFF; border-radius: 10px; }
.eng-kpi b { display: block; font-size: 16px; font-weight: 800; color: var(--brand);
  font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.eng-kpi span { font-size: 10.5px; color: var(--muted); }
.eng-seg { display: flex; height: 8px; border-radius: 5px; overflow: hidden; background: #EEF1F6; }
.eng-seg i { display: block; height: 100%; }
.eng-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; }
.eng-legend span { display: inline-flex; align-items: center; font-size: 10.5px; color: var(--muted); }
.eng-legend i { width: 7px; height: 7px; border-radius: 2px; margin-right: 4px; }
.eng-legend b { color: var(--text); margin-left: 3px; font-variant-numeric: tabular-nums; }
.eng-trend { display: flex; align-items: flex-end; gap: 3px; height: 52px; margin-top: 12px;
  padding-top: 6px; border-top: 1px dashed #EEF1F6; }
.eng-yr { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.eng-yr i { width: 100%; max-width: 14px; background: linear-gradient(180deg, #6E9BFF, #1B57E8);
  border-radius: 3px 3px 0 0; min-height: 3px; }
.eng-yr span { font-size: 8.5px; color: var(--muted); margin-top: 3px; transform: scale(.92); }
.eng-trend-x { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 4px; }
.eng-trend-x b { color: var(--brand); }
.eng-quick { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.eng-dist-r { display: flex; align-items: center; gap: 8px; font-size: 11.5px; margin-bottom: 5px; }
.eng-dist-r span { width: 54px; color: var(--muted); }
.eng-dist-r b { width: 26px; text-align: right; color: var(--brand); font-variant-numeric: tabular-nums; }
.eng-dist-b { flex: 1; height: 6px; background: #EEF1F6; border-radius: 3px; overflow: hidden; }
.eng-dist-b i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.eng-sort { display: flex; gap: 6px; margin-top: 12px; }
.eng-sort button { border: 1px solid var(--line); background: #fff; color: var(--text-2);
  font-size: 11.5px; padding: 5px 10px; border-radius: 999px; }
.eng-sort button.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 600; }
.eng-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 13px; margin-bottom: 9px; box-shadow: var(--shadow); }
.eng-item:active { background: #F8FAFF; }
.eng-item-hd { display: flex; gap: 10px; align-items: flex-start; }
.eng-name { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.eng-badge { font-size: 10px; font-weight: 500; padding: 1px 6px; border-radius: 5px;
  background: #F2F4F7; color: #475467; }
.eng-badge.hi { background: #FEF3F2; color: #B42318; }
.eng-badge.mid { background: #FFFAEB; color: #B54708; }
.eng-badge.lo { background: #ECFDF3; color: #027A48; }
.eng-cls { font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 20px;
  background: #EAF2FF; color: #1B57E8; white-space: nowrap; }
.eng-src { font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px;
  background: #ECFDF3; color: #027A48; white-space: nowrap; margin-left: 2px; }
.eng-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.eng-sim { text-align: right; min-width: 52px; }
.eng-sim b { font-size: 19px; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.eng-sim span { display: block; font-size: 9.5px; color: var(--muted); max-width: 62px; line-height: 1.2; }
.eng-3v { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px;
  padding-top: 9px; border-top: 1px dashed #EEF1F6; }
.eng-3v > div { display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--muted); }
.eng-3v b { color: var(--text-2); font-variant-numeric: tabular-nums; font-size: 10.5px; width: 20px; text-align: right; }
.eng-3b { flex: 1; height: 4px; background: #EEF1F6; border-radius: 2px; overflow: hidden; }
.eng-3b i { display: block; height: 100%; background: #6E9BFF; border-radius: 2px; }
.eng-item-ft { display: flex; justify-content: space-between; gap: 8px; font-size: 10.5px;
  color: var(--muted); margin-top: 8px; }
.eng-tl { padding: 4px 2px 8px; }
.eng-tl-i { display: flex; gap: 10px; position: relative; padding: 0 0 14px 4px; }
.eng-tl-i::before { content: ''; position: absolute; left: 8px; top: 14px; bottom: 0; width: 1px; background: #E4E8F0; }
.eng-tl-i:last-child::before { display: none; }
.eng-tl-i > i { width: 9px; height: 9px; border-radius: 50%; background: #D0D5DD; margin-top: 4px;
  flex: 0 0 auto; z-index: 1; box-shadow: 0 0 0 3px #fff; }
.eng-tl-i.on > i { background: var(--brand); }
.eng-tl-i b { font-size: 12.5px; font-weight: 600; display: block; }
.eng-tl-i span { font-size: 10.5px; color: var(--muted); }

/* ================= v7.9 宫格矩阵 / 标源胶囊 / 交流圈 ================= */
.hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.hub-cell {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 12px 14px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
}
.hub-cell:active { background: #F8FAFF; }
.hub-cell b { font-size: 14px; font-weight: 700; margin-top: 2px; }
.hub-cell span { font-size: 11px; color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hub-ico { width: 34px; height: 34px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; }
.hub-ico svg { width: 18px; height: 18px; }
.hub-ico.g1 { background: #EAF0FF; color: #1B57E8; }
.hub-ico.g2 { background: #E7F8F0; color: #12B76A; }
.hub-ico.g3 { background: #FEF3F2; color: #F04438; }
.hub-ico.g4 { background: #FFF6E6; color: #F79009; }
.hub-ico.g5 { background: #F0EBFF; color: #7C3AED; }
.hub-ico.g6 { background: #E8F6FF; color: #0EA5E9; }
.hub-ico.g7 { background: #FDF2F8; color: #DB2777; }
.hub-ico.g8 { background: #ECFDF3; color: #65A30D; }
.hub-sheet-links { margin-top: 12px; }
.src-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px;
  -webkit-overflow-scrolling: touch; }
.src-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 12px; font-size: 12px; font-weight: 600; color: var(--text); }
.src-chip i { width: 8px; height: 8px; border-radius: 50%; }
.src-chip.add { border-style: dashed; color: var(--brand); background: var(--brand-soft); }
.eng-notice { display: flex; gap: 8px; background: #FFF9EC; border: 1px solid #F5DBA8;
  color: #8B5E11; border-radius: 12px; padding: 10px 12px; font-size: 11.5px;
  line-height: 1.65; margin-bottom: 10px; }
.eng-notice svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 2px; }
.eng-notice b { color: #6E3B00; }

/* ================= v8.1 文书模板库 / 多源识别 ================= */
.dg-src-row { display: flex; gap: 8px; margin-bottom: 10px; }
.dg-src-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  border: 1.5px dashed var(--brand); background: var(--brand-soft); color: var(--brand);
  border-radius: 12px; padding: 11px 4px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.dg-src-btn svg { width: 16px; height: 16px; }
.dg-src-btn:active { opacity: .75; }
.dg-tpl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.dg-tpl { border: 1px solid var(--line); background: #fff; border-radius: 10px;
  padding: 9px 8px; font-size: 12px; text-align: left; line-height: 1.4; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dg-tpl.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.dg-els { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dg-el { display: inline-flex; align-items: center; gap: 5px; background: #F2F7FF;
  border: 1px solid #D6E4FF; color: #1B3E8F; border-radius: 999px; padding: 4px 10px;
  font-size: 11px; max-width: 100%; overflow: hidden; }
.dg-el b { color: var(--brand); flex: 0 0 auto; }

/* ================= v8.7 图样直传 / 批量下单 ================= */
.up-mini { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px;
  border: 1.5px dashed #B9C6E2; background: #F6F9FF; color: var(--brand);
  border-radius: 11px; padding: 10px 4px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; -webkit-tap-highlight-color: transparent; }
.up-mini svg { width: 15px; height: 15px; }
.up-mini:active { opacity: .7; }
.up-mini input[type=file] { display: none; }
.tm-thumb { width: 38px; height: 38px; border-radius: 9px; object-fit: cover;
  border: 1px solid #EEF1F6; flex: 0 0 auto; }
.bo-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
.bo-stat { background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 6px; text-align: center; }
.bo-stat b { font-size: 18px; display: block; }
.bo-stat span { font-size: 11px; color: var(--text-2); }
.bo-item { display: flex; align-items: center; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid #F1F3F8; }
.bo-item:last-child { border-bottom: none; }
.bo-item .st-ok { color: #12B76A; }
.bo-item .st-fail { color: #F04438; }

/* 输入联想下拉 */
.search-inline { position: relative; }
.eng-sg { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff;
  border: 1px solid #E5E9F2; border-radius: 12px; box-shadow: 0 12px 32px rgba(22,35,58,.14);
  z-index: 80; overflow: hidden; max-height: 262px; overflow-y: auto; }
.eng-sg .sg-i { display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 11px 14px; font-size: 14.5px; color: var(--text-1, #1f2937); cursor: pointer;
  border-bottom: 1px solid #F1F3F8; }
.eng-sg .sg-i:last-child { border-bottom: 0; }
.eng-sg .sg-i:active { background: #F3F6FB; }
.eng-sg .sg-i b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eng-sg .sg-i span { flex: none; font-size: 11.5px; color: var(--text-3, #8a9199); }
