/* ==========================================================================
   设计系统 v3
   目标：干净、克制、信息密度合适，桌面与手机都能用。
   规则：
   - 只用一套主色（深林绿）+ 中性灰，不堆彩色
   - 圆角 6/10px，1px 边框，阴影只用于浮层
   - 字号 13.5 起步，数字用 tabular-nums 对齐
   - 所有布局在 <=900px 折叠为单列
   ========================================================================== */
:root {
  --bg: #f4f6f3;
  --bg-2: #eef1ec;
  --surface: #ffffff;
  --surface-2: #f8faf7;
  --surface-3: #eef1ed;
  --line: #e2e7e0;
  --line-2: #d2d9ce;
  --line-3: #b3bdae;

  --text: #16201a;
  --text-2: #4a574d;
  --text-3: #77857b;
  --text-4: #9aa79e;

  --accent: #2b6a4e;
  --accent-2: #347e5d;
  --accent-3: #1f5239;
  --accent-bg: #eaf2ed;
  --accent-line: #bcd4c5;

  --ok: #2b6a4e;      --ok-bg: #e8f3ec;
  --warn: #8a5a10;    --warn-bg: #fbf2df;
  --err: #a3342f;     --err-bg: #fbeae8;
  --info: #2a4f7c;    --info-bg: #e9eff7;

  /* 状态色的边框 / 深色文字 / 其它主题可覆盖的杂项 */
  --ok-line: #bcd9c9;   --ok-ink: #22503a;
  --warn-line: #e8d3a6; --warn-ink: #6b460c;
  --err-line: #e6c0bc;  --err-ink: #7c2622;
  --info-line: #c6d5e6; --info-ink: #1e3a5c;
  --on-accent: #ffffff;                 /* 主色底上的文字 */
  --accent-rgb: 43, 106, 78;            /* 用于 rgba() 光晕 */
  --shadow-rgb: 20, 34, 26;
  --overlay: rgba(18, 30, 23, .42);     /* 弹层遮罩 */
  --glass: rgba(255, 255, 255, .94);    /* 地图上的浮层底 */
  --glass-2: rgba(255, 255, 255, .72);
  --map-bg: #dfe4dd;
  --scroll: #ccd4c9;

  --r-sm: 4px;
  --r: 6px;
  --r-md: 10px;
  --r-lg: 14px;

  --sh-1: 0 1px 2px rgba(var(--shadow-rgb), .05);
  --sh-2: 0 6px 20px -10px rgba(var(--shadow-rgb), .22), 0 1px 3px rgba(var(--shadow-rgb), .06);
  --sh-3: 0 24px 60px -24px rgba(var(--shadow-rgb), .35);

  --mono: "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei UI",
          "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: 12px; }
code { background: var(--surface-3); padding: 1px 5px; border-radius: var(--r-sm); }
hr { border: none; border-top: 1px solid var(--line); margin: 16px 0; }
b, strong { font-weight: 600; }

/* ---------- 图标 ---------- */
.ico { width: 16px; height: 16px; flex: 0 0 auto; stroke: currentColor; fill: none;
       stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
       display: inline-block; vertical-align: -3px; }
.ico-sm { width: 13px; height: 13px; vertical-align: -2px; }
.ico-lg { width: 22px; height: 22px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 13px;
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--surface); color: var(--text);
  font-size: 13px; font-family: inherit; font-weight: 500; cursor: pointer;
  white-space: nowrap; transition: background .14s, border-color .14s, box-shadow .14s;
}
.btn:hover:not(:disabled) { background: var(--surface-2); border-color: var(--line-3); }
.btn:active:not(:disabled) { background: var(--surface-3); }
.btn:disabled { color: var(--text-4); cursor: not-allowed; background: var(--surface-3);
                border-color: var(--line); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent);
               box-shadow: 0 1px 2px rgba(var(--accent-rgb), .25); }
.btn-primary:hover:not(:disabled) { background: var(--accent-2); border-color: var(--accent-2); }
.btn-primary:disabled { background: var(--line-3); border-color: var(--line-3); color: var(--on-accent);
                        box-shadow: none; }
.btn-danger { color: var(--err); border-color: var(--err-line); }
.btn-danger:hover:not(:disabled) { background: var(--err-bg); border-color: var(--err); }
.btn-link { border-color: transparent; background: transparent; color: var(--accent);
            height: 26px; padding: 0 7px; font-weight: 500; }
.btn-link:hover:not(:disabled) { background: var(--accent-bg); border-color: transparent; }
.btn-block { width: 100%; }
.btn-lg { height: 38px; font-size: 13.5px; padding: 0 16px; border-radius: var(--r); }
.btn-sm { height: 26px; font-size: 12px; padding: 0 9px; border-radius: var(--r-sm); }
.btn-icon { padding: 0; width: 30px; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 12px; }
.field > label, .lbl { display: block; font-size: 12px; color: var(--text-2);
                       margin-bottom: 5px; font-weight: 500; }
input[type=text], input[type=tel], input[type=password], input[type=number],
input[type=search], textarea, select {
  width: 100%; height: 34px; padding: 0 10px;
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--surface); color: var(--text);
  font-size: 13.5px; font-family: inherit;
  transition: border-color .14s, box-shadow .14s;
}
textarea { height: auto; padding: 8px 10px; line-height: 1.6; resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .12);
}
input::placeholder, textarea::placeholder { color: var(--text-4); }
input[type=checkbox] { accent-color: var(--accent); width: 15px; height: 15px; margin: 0;
                       cursor: pointer; }
.help { font-size: 12px; color: var(--text-3); line-height: 1.65; margin: 5px 0 0; }
.row { display: flex; gap: 8px; align-items: center; }
.row > .grow { flex: 1; min-width: 0; }
.inline-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--surface-3); border-radius: var(--r);
       padding: 2px; gap: 2px; }
.seg button {
  border: none; background: transparent; color: var(--text-2); font: inherit;
  font-size: 12.5px; padding: 5px 11px; border-radius: var(--r-sm); cursor: pointer;
}
.seg button.on { background: var(--surface); color: var(--text); font-weight: 600;
                 box-shadow: var(--sh-1); }

/* ---------- 面板 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--sh-1);
}
.card + .card { margin-top: 12px; }
.card-head {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 15px; border-bottom: 1px solid var(--line);
}
.card-head h2, .card-head h3 {
  margin: 0; font-size: 13.5px; font-weight: 600; color: var(--text);
  letter-spacing: -.01em;
}
.card-head .sub { font-size: 12px; color: var(--text-3); font-weight: 400; }
.card-head .spacer { flex: 1; }
.card-head .card-icon {
  width: 28px; height: 28px; border-radius: var(--r); background: var(--accent-bg);
  color: var(--accent); display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.card-body { padding: 15px; }
.card-body.tight { padding: 0; }

/* ---------- 状态标记 ---------- */
.tag {
  display: inline-block; font-size: 11px; line-height: 17px; font-weight: 500;
  padding: 0 6px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--surface-3); color: var(--text-2);
  white-space: nowrap;
}
.tag-ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.tag-warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }
.tag-err { background: var(--err-bg); border-color: var(--err-line); color: var(--err); }
.tag-info { background: var(--info-bg); border-color: var(--info-line); color: var(--info); }
.tag-accent { background: var(--accent-bg); border-color: var(--accent-line); color: var(--accent); }
.tag-bad, .tag-danger { background: var(--err-bg); border-color: var(--err-line); color: var(--err); }
.tag-line { background: transparent; }

/* ---------- 提示 ---------- */
.alert {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 9px 12px; border: 1px solid var(--line-2); border-left-width: 3px;
  border-radius: var(--r); font-size: 12.5px; line-height: 1.6;
  background: var(--surface-2); color: var(--text-2);
}
.alert .ico { margin-top: 2px; }
.alert-ok { background: var(--ok-bg); border-color: var(--ok-line); border-left-color: var(--ok); color: var(--ok-ink); }
.alert-bad, .alert-err { background: var(--err-bg); border-color: var(--err-line); border-left-color: var(--err); color: var(--err-ink); }
.alert-warn { background: var(--warn-bg); border-color: var(--warn-line); border-left-color: var(--warn); color: var(--warn-ink); }
.alert-info { background: var(--info-bg); border-color: var(--info-line); border-left-color: var(--info); color: var(--info-ink); }
.alert + .alert { margin-top: 7px; }

/* ---------- 数据表 ---------- */
.tbl-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--r); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; background: var(--surface); }
.tbl th {
  text-align: left; font-weight: 600; font-size: 11.5px; color: var(--text-3);
  background: var(--surface-2); padding: 7px 10px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
  position: sticky; top: 0; z-index: 1;
}
.tbl td { padding: 7px 10px; border-bottom: 1px solid var(--surface-3); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl .num { font-variant-numeric: tabular-nums; text-align: right; }
.tbl .muted { color: var(--text-3); }
.tbl .nowrap { white-space: nowrap; }
.empty { padding: 26px 12px; text-align: center; color: var(--text-3); font-size: 12.5px; }

/* ---------- 统计格 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
             gap: 1px; background: var(--line); border: 1px solid var(--line);
             border-radius: var(--r); overflow: hidden; }
.stat { background: var(--surface); padding: 10px 12px; }
.stat .k { font-size: 11.5px; color: var(--text-3); }
.stat .v { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums;
           letter-spacing: -.02em; margin-top: 2px; color: var(--text); }
.stat .v small { font-size: 11.5px; font-weight: 400; color: var(--text-3); margin-left: 3px; }

/* ---------- 状态行 ---------- */
.statusline {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 0; border-bottom: 1px solid var(--surface-3); font-size: 12.5px;
}
.statusline:last-child { border-bottom: none; }
.statusline .sl { flex: 1; color: var(--text-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-3); flex: 0 0 auto; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.dot.bad { background: var(--err); box-shadow: 0 0 0 3px var(--err-bg); }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-bg); }

/* ---------- 滚动条 ---------- */
.scroll-y { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.scroll-y::-webkit-scrollbar { width: 9px; height: 9px; }
.scroll-y::-webkit-scrollbar-thumb { background: var(--scroll); border: 2px solid transparent;
                                     background-clip: padding-box; border-radius: 8px; }
.scroll-y::-webkit-scrollbar-thumb:hover { background: var(--line-3); background-clip: padding-box; }
.scroll-y::-webkit-scrollbar-track { background: transparent; }

/* ---------- 网格 ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; }
@media (max-width: 1080px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

/* ---------- 弹层 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 900; display: none;
  align-items: center; justify-content: center; padding: 18px;
  background: var(--overlay); backdrop-filter: blur(2px);
}
.modal.show { display: flex; animation: fade .16s ease both; }
.modal .box {
  width: 460px; max-width: 100%; max-height: 90vh; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-3);
  animation: pop .18s cubic-bezier(.2,.8,.3,1) both;
}
.modal .box.wide { width: 760px; }
.modal .mh { display: flex; align-items: center; gap: 8px; padding: 14px 18px;
             border-bottom: 1px solid var(--line); }
.modal .mh h3 { margin: 0; font-size: 14.5px; font-weight: 600; }
.modal .mh .spacer { flex: 1; }
.modal .mb { padding: 16px 18px; overflow-y: auto; }
.modal .mf { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 18px;
             border-top: 1px solid var(--line); background: var(--surface-2); }
.modal .mf .btn { min-width: 88px; }

/* ---------- 进度 ---------- */
.progress { height: 6px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; border-radius: 99px; transition: width .35s ease;
                  background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* ---------- 步骤条 ---------- */
.steps { display: flex; align-items: center; gap: 0; margin-bottom: 14px; }
.steps .step {
  display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-4);
  flex: 1; min-width: 0; white-space: nowrap;
}
.steps .step em {
  width: 20px; height: 20px; border-radius: 50%; flex: 0 0 auto;
  border: 1px solid var(--line-2); background: var(--surface);
  font-style: normal; font-size: 11px; font-weight: 600; color: var(--text-3);
  display: inline-flex; align-items: center; justify-content: center;
}
.steps .step::after {
  content: ''; flex: 1; height: 1px; background: var(--line-2); margin: 0 6px; min-width: 8px;
}
.steps .step:last-child::after { display: none; }
.steps .step.on { color: var(--accent); font-weight: 600; }
.steps .step.on em { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.steps .step.done { color: var(--text-2); }
.steps .step.done em { background: var(--accent-bg); border-color: var(--accent-line);
                       color: var(--accent); }

/* ---------- 手机号标签 ---------- */
.ph-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ph-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: 99px; font-size: 11.5px;
  background: var(--accent-bg); border: 1px solid var(--accent-line); color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.ph-chip.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ph-chip.bad { background: var(--err-bg); border-color: var(--err-line); color: var(--err); }
.ph-chip button {
  border: none; background: transparent; color: inherit; cursor: pointer;
  font-size: 13px; line-height: 1; padding: 0 0 0 2px; opacity: .65;
}

/* ---------- 报价卡 ---------- */
.quote {
  border: 1px solid var(--accent-line); border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 60%);
  overflow: hidden; cursor: pointer;
  transition: box-shadow .14s, border-color .14s;
}
.quote:hover { border-color: var(--accent); }
.quote.sel { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(var(--accent-rgb), .14); }
.quote-hd { padding: 14px 15px 12px; border-bottom: 1px dashed var(--accent-line); }
.quote-hd .qh-top { display: flex; align-items: baseline; gap: 8px; }
.quote-hd .qh-label { font-size: 12px; color: var(--text-3); }
.quote-hd .qh-price { font-size: 30px; font-weight: 650; color: var(--accent);
                      letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.quote-hd .qh-price small { font-size: 14px; font-weight: 500; margin-right: 2px; }
.quote-hd .qh-meta { font-size: 12px; color: var(--text-2); margin-top: 3px; }
.quote-bd { padding: 11px 15px 13px; }
.quote-bd .tierrow {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; padding: 4px 8px; border-radius: var(--r-sm); color: var(--text-3);
}
.quote-bd .tierrow.cur { background: var(--accent-bg); color: var(--accent); font-weight: 600; }
.quote-bd .tierrow .tp { font-variant-numeric: tabular-nums; }

/* ---------- 套餐卡 ---------- */
.pkg-list { display: grid; gap: 8px; }
.pkg {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--line-2); border-radius: var(--r);
  cursor: pointer; background: var(--surface); transition: border-color .14s, background .14s;
}
.pkg:hover { border-color: var(--line-3); background: var(--surface-2); }
.pkg.sel { border-color: var(--accent); background: var(--accent-bg);
           box-shadow: 0 0 0 1px var(--accent) inset; }
.pkg .pk { flex: 1; min-width: 0; }
.pkg .pn { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.pkg .pd { font-size: 11.5px; color: var(--text-3); margin-top: 1px; }
.pkg .pp { font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums;
           color: var(--accent); white-space: nowrap; }
.pay-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.pay {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; border: 1px solid var(--line-2); border-radius: var(--r);
  font-size: 12.5px; cursor: pointer; background: var(--surface); color: var(--text-2);
  transition: border-color .14s, background .14s;
}
.pay:hover { border-color: var(--line-3); }
.pay .paylogo { width: 18px; height: 18px; flex: none; }
.qr-brand { display: flex; align-items: center; justify-content: center; gap: 7px;
            font-size: 13px; color: var(--text-2); margin-bottom: 10px; }
.qr-brand .paylogo { width: 22px; height: 22px; }
.pay.sel { border-color: var(--accent); background: var(--accent-bg); color: var(--accent);
           font-weight: 600; }

/* ---------- 通用动画 ---------- */
.fade-in { animation: fade .16s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.99); }
                 to { opacity: 1; transform: none; } }
.spin { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 在线客服 ---------- */
/* 两个浮钮并排一行：公告在左、客服在右，都不会被客服面板盖住 */
.fab-bar {
  position: fixed; right: 16px; bottom: 18px; z-index: 850;
  display: flex; align-items: center; gap: 8px;
  /* 广告位在底部时整体抬高，别被压在广告条下面 */
  transition: bottom .18s ease;
}
body.ad-bottom .fab-bar { bottom: calc(18px + var(--ad-h, 0px) + 10px); }
.svc-fab {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 15px 0 13px;
  border: 1px solid var(--accent-line); border-radius: 99px;
  background: var(--surface); color: var(--accent);
  font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  box-shadow: 0 6px 20px -8px rgba(var(--shadow-rgb), .28), 0 1px 3px rgba(var(--shadow-rgb), .06);
  transition: background .14s, color .14s, transform .14s;
  white-space: nowrap;
}
.svc-fab:hover { background: var(--accent); color: var(--on-accent); transform: translateY(-1px); }
.svc-fab .dot-live {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-bg);
}
.svc-fab:hover .dot-live { background: var(--on-accent); box-shadow: 0 0 0 3px rgba(255,255,255,.28); }
.notice-fab { border-color: var(--line-2); color: var(--text-2); }
.notice-fab:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.svc-panel {
  position: fixed; right: 16px; bottom: 68px; z-index: 851;
  width: 306px; max-width: calc(100vw - 28px);
  max-height: calc(100vh - 100px);
  display: none; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-3);
}
.svc-panel.show { display: flex; animation: pop .18s cubic-bezier(.2,.8,.3,1) both; }
/* 展开态：更高更宽，方便看长对话与截图 */
.svc-panel.big {
  width: 420px; max-height: calc(100vh - 90px);
}
body.ad-bottom .svc-panel { bottom: calc(68px + var(--ad-h, 0px) + 10px); }
.svc-panel.big .svc-bd { max-height: none; }
.svc-hd {
  display: flex; align-items: center; gap: 8px; padding: 11px 13px;
  border-bottom: 1px solid var(--line); background: var(--accent-bg);
  flex: 0 0 auto;
}
.svc-hd .t { flex: 1; min-width: 0; }
.svc-hd b { display: block; font-size: 13px; white-space: nowrap;
            overflow: hidden; text-overflow: ellipsis; }
.svc-hd small { font-size: 11px; color: var(--text-3); white-space: nowrap;
                overflow: hidden; text-overflow: ellipsis; display: block; }
.svc-bd { padding: 11px 13px; overflow-y: auto; flex: 1 1 auto; min-height: 0;
          max-height: 234px; }
.svc-panel.big .svc-bd { max-height: none; }

/* 搜索框 */
.svc-search {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px;
  border-bottom: 1px solid var(--line); background: var(--surface-2);
  flex: 0 0 auto;
}
.svc-search .ico { color: var(--text-4); flex: 0 0 auto; }
.svc-search input {
  flex: 1; min-width: 0; height: 28px; padding: 0 8px; font-size: 12px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text); font-family: inherit;
}
.svc-search input:focus { outline: none; border-color: var(--accent); }

/* 联系信息 + 发消息区 */
.svc-contact { padding: 0 14px 10px; flex: 0 0 auto; }
.svc-send {
  border-top: 1px solid var(--line); padding: 9px 12px 11px;
  background: var(--surface-2); flex: 0 0 auto;
}
.svc-send textarea {
  width: 100%; resize: none; font-size: 12px; font-family: inherit;
  padding: 7px 9px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text); line-height: 1.5;
}
.svc-send textarea:focus { outline: none; border-color: var(--accent); }
.svc-send-bar { display: flex; align-items: center; gap: 6px; margin-top: 7px; }
.svc-send-bar .help { font-size: 10.5px; }

/* FAQ 折叠条 */
.faq-item { border-bottom: 1px solid var(--surface-3); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  display: flex; align-items: flex-start; gap: 6px; width: 100%;
  padding: 9px 2px; border: none; background: transparent; cursor: pointer;
  font: inherit; font-size: 12.5px; color: var(--text); text-align: left;
  line-height: 1.5;
}
.faq-q:hover { color: var(--accent); }
.faq-q .ar { flex: 0 0 auto; color: var(--text-4); font-size: 10px;
             transition: transform .15s; margin-top: 3px; }
.faq-item.open .faq-q .ar { transform: rotate(90deg); }
.faq-a {
  display: none; padding: 0 2px 10px 16px; font-size: 12px;
  color: var(--text-2); line-height: 1.7;
}
.faq-item.open .faq-a { display: block; }
.faq-sec { font-size: 11px; color: var(--text-3); margin: 2px 0 2px; }

/* 客户上传的截图预览 */
.svc-shot {
  display: flex; align-items: center; gap: 8px; padding: 7px 9px; margin-top: 8px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  font-size: 11.5px;
}
.svc-shot img { width: 40px; height: 40px; object-fit: cover; border-radius: 5px;
                flex: 0 0 auto; }
.svc-shot .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
               white-space: nowrap; color: var(--text-2); }

/* 公告浮钮：与客服同排，不再单独定位 */
.notice-fab .dot-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--warn);
  box-shadow: 0 0 0 3px var(--warn-bg);
}
.notice-fab .dot-dot.hide { display: none; }
.notice-body { font-size: 13px; color: var(--text-2); line-height: 1.8; }
.notice-body p { margin: 0 0 8px; }
.notice-img { display: block; width: 100%; max-width: 300px; margin: 10px auto 0;
              border-radius: var(--r); border: 1px solid var(--line); }
.notice-foot { margin-top: 10px; font-size: 11.5px; color: var(--text-4);
               text-align: center; }
.svc-tip {
  font-size: 12px; color: var(--text-2); line-height: 1.65;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 8px 10px; margin-bottom: 10px;
}
.svc-item {
  display: flex; align-items: center; gap: 9px; padding: 8px 2px;
  border-bottom: 1px solid var(--surface-3); font-size: 12.5px;
}
.svc-item:last-child { border-bottom: none; }
.svc-item .k { flex: 0 0 52px; color: var(--text-3); font-size: 11.5px; }
.svc-item .v { flex: 1; color: var(--text); font-weight: 600; word-break: break-all;
               font-variant-numeric: tabular-nums; }
.svc-item a.v { color: var(--accent); text-decoration: none; }
.svc-item a.v:hover { text-decoration: underline; }
.svc-empty { font-size: 12px; color: var(--text-3); text-align: center; padding: 10px 0; }

/* ---------- 免费规则说明 ---------- */
.rulebox { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rulebox .rb {
  font-size: 11px; padding: 3px 8px; border-radius: 99px;
  background: var(--accent-bg); color: var(--accent);
  border: 1px solid var(--accent-line); font-variant-numeric: tabular-nums;
}
.rulebox .rb.warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }

/* ==========================================================================
   移动端适配
   ========================================================================== */
@media (max-width: 900px) {
  body { font-size: 14px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }

  /* 表格在窄屏允许横向滚动，不要压扁 */
  .tbl-wrap { -webkit-overflow-scrolling: touch; }
  .tbl th, .tbl td { padding: 7px 8px; }

  /* 弹层贴底，拇指可达 */
  .modal { padding: 0; align-items: flex-end; }
  .modal .box, .modal .box.wide {
    width: 100%; max-width: 100%; max-height: 88vh;
    border-radius: var(--r-lg) var(--r-lg) 0 0; animation: sheet .22s ease both;
  }
  .modal .mf { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .modal .mf .btn { flex: 1; }

  /* 表单控件放大，避免 iOS 自动缩放 */
  input[type=text], input[type=tel], input[type=password], input[type=number],
  input[type=search], textarea, select { height: 42px; font-size: 16px; }
  textarea { font-size: 15px; }
  .btn { height: 38px; font-size: 14px; }
  .btn-sm { height: 30px; font-size: 12.5px; }
  .btn-lg { height: 44px; font-size: 15px; }
  .field > label { font-size: 13px; }

  .card-body { padding: 13px; }
  .card-head { padding: 11px 13px; }

  /* 步骤条在窄屏只显示序号 + 当前文案，隐藏中间连接线 */
  .steps .step { font-size: 11.5px; }
  .steps .step::after { margin: 0 4px; }

  .svc-fab { height: 38px; font-size: 12px; padding: 0 12px; }
  .fab-bar { right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .svc-panel { right: 8px; left: 8px; width: auto; max-width: none;
               bottom: calc(60px + env(safe-area-inset-bottom)); }
  .svc-panel.big { width: auto; }
}

@keyframes sheet { from { transform: translateY(14px); opacity: .6; }
                   to { transform: none; opacity: 1; } }

@media (max-width: 620px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps .step span { display: none; }
  .steps .step.on span { display: inline; }
}
