/* ==========================================================================
   车辆信息查询服务平台 —— H5 端样式
   设计基调：蓝紫渐变头部 + 白色卡片 + 大圆角，信息密度高但留白足。
   ========================================================================== */

:root {
  --blue:      #2b6cff;
  --blue-dark: #1c4fd6;
  --blue-soft: #eaf1ff;
  --green:     #0aa66e;
  --orange:    #f08a1e;
  --red:       #e2474a;
  --purple:    #7a5cff;
  --teal:      #12b6a4;

  --text:      #1a1d24;
  --text-sub:  #6b7280;
  --text-mute: #9aa1ad;
  --line:      #eef0f4;
  --bg:        #f4f6fa;
  --card:      #ffffff;

  --radius:    14px;
  --radius-sm: 10px;
  --shadow:    0 2px 12px rgba(28, 45, 90, .06);
  --shadow-lg: 0 8px 28px rgba(28, 45, 90, .12);

  --safe-top:  env(safe-area-inset-top, 0px);
  --safe-bot:  env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body { overflow-x: hidden; }

[v-cloak] { display: none; }

a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }

/* --------------------------------------------------------------------------
   布局骨架
   -------------------------------------------------------------------------- */
.app {
  min-height: 100vh;
  padding-bottom: calc(64px + var(--safe-bot));
}

.app.no-tabbar { padding-bottom: 0; }

.page { animation: fade .22s ease; }

@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* 顶部渐变头部 */
.hero {
  background: linear-gradient(135deg, #2b6cff 0%, #4b7dff 48%, #6a5cff 100%);
  padding: calc(14px + var(--safe-top)) 18px 22px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::after {
  /* 一点光晕，避免大面积纯色显得平 */
  content: "";
  position: absolute;
  right: -60px; top: -80px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}

.hero-head {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .22);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex: 0 0 auto;
}

.hero-title { font-size: 19px; font-weight: 700; letter-spacing: .3px; }

/* 搜索框上下的说明：一句话讲清它是干什么的、车架号在哪儿找 */
.search-label {
  font-size: 13.5px;
  font-weight: 600;
  opacity: .95;
  margin: 14px 0 8px;
  position: relative;
  z-index: 1;
}

.search-hint {
  font-size: 11.5px;
  opacity: .74;
  margin-top: 8px;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

/* 搜索框 */
.search {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .96);
  border-radius: 999px;
  padding: 6px 6px 6px 16px;
  position: relative;
  z-index: 1;
  box-shadow: 0 6px 18px rgba(20, 40, 100, .16);
}

.search input {
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 15px;
  background: transparent;
  color: var(--text);
  min-width: 0;
}

.search input::placeholder { color: #b6bcc7; }

.search-btn {
  flex: 0 0 auto;
  border: 0;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 999px;
}

/* 公告条 */
.notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 14px 0;
  padding: 10px 14px;
  background: #fff8e8;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: #9a6b12;
  line-height: 1.5;
}

.notice .ico { flex: 0 0 auto; }

/* --------------------------------------------------------------------------
   区块
   -------------------------------------------------------------------------- */
.section { margin: 18px 14px 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title { font-size: 17px; font-weight: 700; }
.section-more  { font-size: 13px; color: var(--text-mute); }

/* 工具卡片网格 */
.tools {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
}

.tool {
  background: var(--card);
  border-radius: var(--radius);
  padding: 13px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .16s ease, box-shadow .16s ease;
}

.tool:active { transform: scale(.975); box-shadow: var(--shadow-lg); }

.tool-top { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }

.tool-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: #fff;
  flex: 0 0 auto;
}

.tool-name {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.25;
}

.tool-desc {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.5;
  min-height: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-foot {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tool-go {
  flex: 1;
  text-align: center;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 0;
  border-radius: 9px;
}

/* 角标 */
.badge {
  position: absolute;
  right: 0; top: 0;
  font-size: 10px;
  color: #fff;
  padding: 2px 8px;
  border-radius: 0 var(--radius) 0 10px;
  background: var(--red);
  font-weight: 600;
}

.badge.free { background: var(--green); }
.badge.new  { background: var(--orange); }

.price-tag { font-size: 12px; color: var(--red); font-weight: 700; }
.price-free { font-size: 12px; color: var(--green); font-weight: 700; }

/* --------------------------------------------------------------------------
   列表 / 卡片通用
   -------------------------------------------------------------------------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card + .card { margin-top: 11px; }

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.row:last-child { border-bottom: 0; }

.row-label { flex: 0 0 auto; color: var(--text-sub); font-size: 14px; min-width: 92px; }
.row-value { flex: 1; text-align: right; font-size: 14px; word-break: break-all; }
.row-value.mono { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .3px; }

.row.tap:active { background: #fafbfd; }
.row .arrow { color: #c8ccd4; flex: 0 0 auto; }

/* 结果分组 */
.result-group { margin: 12px 14px 0; }

.result-group-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 2px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.result-group-title::before {
  content: "";
  width: 3px; height: 14px;
  border-radius: 2px;
  background: var(--blue);
}

/* 标签 */
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 600;
}

.tag.ok   { background: #e6f8f0; color: var(--green); }
.tag.bad  { background: #fdeaea; color: var(--red); }
.tag.warn { background: #fff6e6; color: var(--orange); }
.tag.mute { background: #f0f2f5; color: var(--text-sub); }

/* 明细表格 */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }

table.tbl th,
table.tbl td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table.tbl th {
  background: #f8fafd;
  color: var(--text-sub);
  font-weight: 600;
  position: sticky;
  top: 0;
}

table.tbl tr:last-child td { border-bottom: 0; }

/* 时间轴 */
.timeline { padding: 4px 0 4px 6px; }

.tl-item {
  position: relative;
  padding: 0 0 16px 20px;
  border-left: 2px solid var(--line);
}

.tl-item:last-child { border-left-color: transparent; padding-bottom: 0; }

.tl-item::before {
  content: "";
  position: absolute;
  left: -6px; top: 4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--blue);
}

.tl-title { font-size: 14px; font-weight: 600; }
.tl-sub   { font-size: 12.5px; color: var(--text-sub); margin-top: 2px; }

.paragraph {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-sub);
  padding: 12px 16px;
  background: #f8fafd;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   表单
   -------------------------------------------------------------------------- */
.form { padding: 6px 16px 0; }

.field { padding: 14px 0; border-bottom: 1px solid var(--line); }
.field:last-child { border-bottom: 0; }

.field-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.field-label .req { color: var(--red); }

.field-input {
  width: 100%;
  border: 0;
  outline: 0;
  font-size: 16px;
  padding: 10px 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
}

.field-input::placeholder { color: #c3c8d1; }

.field-input.mono { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 1.5px; text-transform: uppercase; }

.field-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  background: #fafbfd;
}

.field-box.err { border-color: var(--red); background: #fff8f8; }

.field-tip  { font-size: 12px; color: var(--text-mute); margin-top: 6px; }

/* 位数够了给个绿色确认，用户点查询之前就知道自己没输错 */
.field-tip.ok { color: var(--green); }

/* 车架号/车牌填满后输入框变正色，给一个「填完了」的视觉反馈 */
.field-input.done { border-color: #b9e5d2; background: #f6fdfa; }

/* 拍行驶证：车架号下面那颗按钮 */
.scan-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 9px;
  padding: 10px 0;
  border: 1px dashed #b9c8e6;
  border-radius: 10px;
  background: #f6f9ff;
  color: var(--blue);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.scan-btn:active { background: #eef4ff; }
.scan-btn:disabled { color: var(--text-mute); border-color: var(--line); background: #fafbfd; }

/* 「本次查询你能拿到」字段清单 */
.rf-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 8px;
}

.rf {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 7px;
  background: #f4f7fc;
  font-size: 12.5px;
  color: #3d4a63;
  line-height: 1.3;
}

.rf .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  flex: 0 0 auto;
}
.field-err  { font-size: 12.5px; color: var(--red); margin-top: 6px; }

/* --------------------------------------------------------------------------
   常见问题
   ★ 之前这几个类压根没有样式，后台配的问题就挤成
     「1多久能出结果? ▾」一行小字 —— 用户说粗糙就是这个原因。
   现在按小程序端的样子补齐：编号方块、行分割线、会转的箭头、缩进的答案。
   -------------------------------------------------------------------------- */
.faq { padding: 13px 16px; border-bottom: 1px solid var(--line); }
.faq:last-child { border-bottom: none; }

.faq-q { display: flex; align-items: center; gap: 9px; }
.faq-q .n {
  flex: 0 0 auto; width: 19px; height: 19px; border-radius: 6px;
  background: var(--blue-soft); color: var(--blue);
  font-size: 11.5px; line-height: 19px; text-align: center; font-weight: 700;
}
.faq-q .t { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--text); }
.faq-q .arw {
  flex: 0 0 auto; color: var(--text-mute); font-size: 10px;
  transition: transform .18s ease;
}
.faq-q .arw.on { transform: rotate(180deg); }

.faq-a {
  margin: 8px 0 0 28px;
  font-size: 12.5px; line-height: 1.75; color: var(--text-sub);
}

.opt-row { display: flex; flex-wrap: wrap; gap: 8px; }

.opt {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  color: var(--text-sub);
}

.opt.on {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 600;
}

/* 按钮 */
.btn {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  background: var(--blue);
  color: #fff;
  text-align: center;
  transition: opacity .15s;
}

.btn:active { opacity: .86; }
.btn[disabled] { background: #c8d3e8; color: #fff; }

.btn.ghost { background: #fff; color: var(--blue); border: 1px solid var(--blue); }
.btn.gray  { background: #eef0f4; color: var(--text-sub); }
.btn.danger{ background: var(--red); }
.btn.small { padding: 9px; font-size: 14px; border-radius: 9px; }

/* 底部固定操作条 */
.footbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + var(--safe-bot));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  z-index: 40;
}

/* 授权声明：独占一整行。
   原来它和价格、按钮挤在同一行里，协议文字被压成窄条、按钮被挤成
   一个方块，三行小字还会被价格盖住 —— 现在勾选归勾选、下单归下单。 */
.footbar .agree {
  flex: 0 0 100%;
  margin: 0 0 10px;
  padding: 0 0 9px;
  font-size: 11.5px;
  line-height: 1.5;
  border-bottom: 1px solid var(--line);
}
.footbar .agree input {
  flex: 0 0 auto;
  width: 15px; height: 15px;
  margin: 1px 0 0;
  accent-color: var(--blue);
}
.footbar .agree b { color: var(--blue); font-weight: 500; }

.footbar-row { flex: 1; display: flex; align-items: center; gap: 12px; }

.footbar-info { flex: 0 0 auto; line-height: 1.25; }
.footbar-info .p { font-size: 19px; font-weight: 700; color: var(--red); }
.footbar-info .t { font-size: 11.5px; color: var(--text-mute); }
.footbar .btn { flex: 1; }

/* --------------------------------------------------------------------------
   底部导航
   -------------------------------------------------------------------------- */
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: calc(58px + var(--safe-bot));
  padding-bottom: var(--safe-bot);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: flex;
  z-index: 50;
}

.tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  color: #98a0ad;
}

.tabbar a.on { color: var(--blue); font-weight: 600; }
.tabbar .ti { font-size: 20px; line-height: 1; }

/* --------------------------------------------------------------------------
   导航栏（内页）
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding-top: var(--safe-top);
  display: flex;
  align-items: center;
  height: calc(48px + var(--safe-top));
}

.navbar .back {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text);
  flex: 0 0 auto;
}

.navbar .title {
  flex: 1;
  text-align: center;
  font-size: 16.5px;
  font-weight: 600;
  margin-right: 48px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   登录页
   -------------------------------------------------------------------------- */
.login-wrap { padding: 26px 22px; }

.login-logo { text-align: center; margin-bottom: 26px; }
.login-logo .ic { font-size: 62px; line-height: 1; }
.login-logo h1 { font-size: 21px; margin: 12px 0 4px; }
.login-logo p  { font-size: 13px; color: var(--text-mute); margin: 0; }

.login-item {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.login-item input {
  flex: 1;
  border: 0; outline: 0;
  font-size: 16px;
  background: transparent;
  min-width: 0;
}

.login-item .code-btn {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 13.5px;
  font-weight: 600;
  flex: 0 0 auto;
  padding-left: 12px;
}

.login-item .code-btn[disabled] { color: var(--text-mute); }

.agree {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--text-mute);
  margin-top: 22px;
  line-height: 1.6;
}

.agree .box {
  width: 17px; height: 17px;
  border: 1.5px solid #cfd5e0;
  border-radius: 5px;
  flex: 0 0 auto;
  margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #fff;
}

.agree .box.on { background: var(--blue); border-color: var(--blue); }

/* --------------------------------------------------------------------------
   我的 / 余额
   -------------------------------------------------------------------------- */
.me-head {
  background: linear-gradient(135deg, #2b6cff, #6a5cff);
  padding: calc(20px + var(--safe-top)) 18px 30px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
}

.me-avatar {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .24);
  display: flex; align-items: center; justify-content: center;
  font-size: 27px;
  flex: 0 0 auto;
  overflow: hidden;
}

.me-name { font-size: 18px; font-weight: 700; }
.me-phone { font-size: 13px; opacity: .85; }
/* 没绑手机号时跟在后面的「去绑定 ›」：白底小胶囊，一眼看得出这儿能点 */
.me-bind {
  display: inline-block; margin-left: 7px; padding: 1px 8px;
  border-radius: 999px; background: rgba(255, 255, 255, .9);
  color: var(--blue); font-size: 11px; font-weight: 600;
}

.stat-grid {
  display: grid;
  /* 按实际有几项自动均分：余额是有时显示有时不显示的，项数会在 2~3 之间变 */
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  background: #fff;
  margin: -18px 14px 0;
  border-radius: var(--radius);
  padding: 16px 6px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

/* 少了一个格子时改成 3 列，免得右边空一块 */
.stat-grid.grid3 { grid-template-columns: repeat(3, 1fr); }

/* ==========================================================================
   首页「按你的需求选」—— 每张卡用一句场景问句当标题，价格并排
   客户不用懂「几项」，对号入座就行；价格在点击之前就看得见
   ========================================================================== */
/*
 * 首页工具卡：一行一条。
 * 原来是上下两段（上面单独一段场景问句、下面再一段图标+名称+价格），
 * 六七个工具就要六百多像素，首屏只看得见两个 —— 用户说「首页太长」
 * 就是这里。压成一行后三样信息一个不少，高度只剩一半。
 */
.scene-list { display: flex; flex-direction: column; gap: 10px; }

.scene-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px 15px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .12s ease;
}

.scene-card:active { transform: scale(.985); }

.tool-icon.sm { width: 32px; height: 32px; font-size: 16px; border-radius: 9px; }

.scene-info { flex: 1; min-width: 0; }
.scene-name { font-size: 14.5px; font-weight: 600; color: var(--text); line-height: 1.35; }

/* 场景问句降级成第二行的说明文字：一行放不下就折两行，不截断 —— 截断就看不懂了 */
.scene-q {
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.4;
  margin-top: 3px;
}

.scene-price {
  flex: 0 0 auto;
  color: var(--red);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.3px;
}
.scene-price .cur  { font-size: 12px; font-weight: 600; }
.scene-price .unit { font-size: 11px; font-weight: 400; color: var(--text-mute); }

.pay-note {
  margin: 12px 2px 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-mute);
}
.pay-note b { color: var(--green); font-weight: 600; }

/* 工具备注里的「重要提醒」：以【开头的那条，做成黄色警示框 */
.paragraph.warn {
  background: #fff8ec;
  border: 1px solid #ffe2b8;
  border-radius: 10px;
  padding: 11px 13px;
  color: #8a6019;
  font-size: 13px;
  line-height: 1.75;
  margin: 0;
}

/* 免费工具：做成小胶囊，视觉上让位给付费工具 */
.section-title.sub { font-size: 14px; color: var(--text-sub); font-weight: 600; }

.free-row { display: flex; flex-wrap: wrap; gap: 8px; }

.free-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 13px;
  border-radius: 999px;
  background: #f2f4f8;
  color: var(--text-sub);
  font-size: 12.5px;
}

.free-chip .ic { font-size: 14px; }

/* 历史记录页：按工具筛选的横向标签条 */
/* 换行铺开，不用左右滑：标签通常两三个，多的时候自动落第二行 */
.htabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px 2px;
  margin-top: -6px;
}

.htab {
  flex: 0 0 auto;
  padding: 7px 15px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text-sub);
  font-size: 12.5px;
  white-space: nowrap;
}

.htab.on {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  font-weight: 600;
}

/* 历史记录卡底部的两个动作：翻旧的免费、重查才花钱 */
.re-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.re-tip { font-size: 12px; color: var(--green); }

.re-btn {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 600;
}

.stat { text-align: center; }
.stat .n { font-size: 17px; font-weight: 700; }
.stat .t { font-size: 11.5px; color: var(--text-mute); margin-top: 2px; }

.menu { margin: 14px 14px 0; }

.menu .row { padding: 15px 16px; }
.menu .ic { font-size: 18px; width: 24px; text-align: center; flex: 0 0 auto; }
.menu .tx { flex: 1; font-size: 14.5px; }
.menu .rt { color: var(--text-mute); font-size: 13px; }

/* 套餐网格 */
.pk-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
  padding: 14px;
}

.pk {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 12px;
  text-align: center;
  position: relative;
  background: #fff;
}

.pk.on { border-color: var(--blue); background: var(--blue-soft); }

.pk .amt { font-size: 21px; font-weight: 700; color: var(--text); }
.pk .amt small { font-size: 12px; font-weight: 500; }
.pk .give { font-size: 12px; color: var(--green); margin-top: 2px; }
.pk .tag-line { font-size: 11.5px; color: var(--text-mute); margin-top: 3px; }

.pk .corner {
  position: absolute; right: -1px; top: -1px;
  background: var(--red); color: #fff;
  font-size: 10px; padding: 2px 8px;
  border-radius: 0 var(--radius) 0 10px;
}

/* --------------------------------------------------------------------------
   状态与提示
   -------------------------------------------------------------------------- */
.empty { text-align: center; padding: 60px 30px; color: var(--text-mute); }
.empty .ic { font-size: 46px; opacity: .5; }
.empty p { margin: 12px 0 0; font-size: 14px; }

.loading { text-align: center; padding: 44px; color: var(--text-mute); font-size: 13.5px; }

.spin {
  width: 26px; height: 26px;
  border: 2.5px solid var(--blue-soft);
  border-top-color: var(--blue);
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: sp .7s linear infinite;
}

@keyframes sp { to { transform: rotate(360deg); } }

.toast {
  position: fixed;
  left: 50%; top: 42%;
  transform: translate(-50%, -50%);
  background: rgba(20, 24, 32, .88);
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  max-width: 78vw;
  text-align: center;
  z-index: 999;
  line-height: 1.55;
}

.mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 30, .45);
  z-index: 900;
  display: flex;
  align-items: flex-end;
}

.sheet {
  width: 100%;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 20px 18px calc(18px + var(--safe-bot));
  max-height: 86vh;
  overflow-y: auto;
  animation: up .24s ease;
}

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

.sheet-title { font-size: 17px; font-weight: 700; text-align: center; margin-bottom: 16px; }

/* 浮层里标题下面那行小字：说清当前处境，别让人猜为什么弹出来 */
.sheet-sub {
  font-size: 12.5px; color: var(--text-mute);
  text-align: center; margin: -10px 0 4px; line-height: 1.6;
}

/* --------------------------------------------------------------------------
   卡密兑换
   -------------------------------------------------------------------------- */
/* 「或用卡密兑换」—— 一条带文字的横线，把两种付款方式分开 */
.pay-alt {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 0 11px;
  font-size: 11.5px; color: var(--text-mute);
}
.pay-alt::before, .pay-alt::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}

.code-row { display: flex; align-items: center; gap: 9px; }

.code-input {
  flex: 1; min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 13.5px;
  font-family: ui-monospace, monospace;
  letter-spacing: .5px;
  background: #fafbfd;
  color: var(--text);
  outline: none;
}
.code-input:focus { border-color: var(--blue); background: #fff; }
.code-input::placeholder { font-family: inherit; letter-spacing: 0; color: #b9bfca; }

.code-btn {
  flex: 0 0 auto;
  border: 0; border-radius: 10px;
  padding: 11px 18px;
  font-size: 14px; font-weight: 600;
  background: var(--blue); color: #fff;
}
.code-btn[disabled] { background: #c8d3e8; }

/* 跑马灯式搜索建议 */
.sugg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.sugg span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .18);
  padding: 5px 13px;
  border-radius: 999px;
}

.sugg span:active { background: rgba(255, 255, 255, .32); }

/* 免责说明 */
.disclaimer {
  margin: 22px 14px 0;
  font-size: 11.5px;
  color: var(--text-mute);
  line-height: 1.7;
  text-align: center;
}

/* 富文本（协议页） */
.doc { padding: 18px 18px 40px; font-size: 14px; line-height: 1.85; color: #333; }
.doc h2 { font-size: 16px; margin: 22px 0 8px; }
.doc h2:first-child { margin-top: 0; }
.doc p { margin: 0 0 12px; color: #4a5160; }

/* 浮层里的协议正文：纯文本，长文要能滚，别把弹层撑爆 */
.doc-text {
  max-height: 52vh;
  overflow-y: auto;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--text-sub);
  white-space: pre-wrap;
  text-align: left;
  background: #fafbfd;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
}

/* --------------------------------------------------------------------------
   意见反馈
   -------------------------------------------------------------------------- */
.fb-hero {
  display: flex; align-items: flex-start; gap: 11px;
  margin: 12px 16px 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #eef4ff, #f7f3ff);
  border: 1px solid #e3ebff;
}
.fb-hero-ic { font-size: 22px; line-height: 1.2; }
.fb-hero-t  { font-size: 14px; font-weight: 600; color: var(--text); }
.fb-hero-s  { font-size: 12px; color: var(--text-sub); margin-top: 4px; line-height: 1.6; }

.fb-label { font-size: 12.5px; color: var(--text-sub); font-weight: 500; }

/* 多行输入框：和 .field-box 一致，但允许往下撑 */
.fb-box {
  border: 1px solid var(--line); border-radius: 10px; background: #fafbfd;
  padding: 10px 12px; margin-top: 8px;
}
.fb-input {
  width: 100%; border: 0; background: transparent; outline: none; resize: none;
  min-height: 96px; font-size: 13.5px; line-height: 1.65; color: var(--text);
}
.fb-input::placeholder { color: #b9bfca; }
.fb-count { text-align: right; font-size: 11.5px; color: var(--text-mute); margin-top: 5px; }
.fb-count .warn { color: var(--red); }

/* 我的反馈：一条一条列出来，官方回复用蓝底气泡和用户内容区分开 */
.fb-item { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.fb-item:last-child { border-bottom: none; }
.fb-top  { display: flex; align-items: center; gap: 7px; }
.fb-time { margin-left: auto; font-size: 11.5px; color: var(--text-mute); }
.fb-text { font-size: 13.5px; color: var(--text); line-height: 1.7; margin-top: 8px; white-space: pre-wrap; }

.fb-reply {
  margin-top: 10px; padding: 10px 12px; border-radius: 10px;
  background: #f2f7ff; border: 1px solid #dbe8ff;
}
.fb-reply-head { font-size: 11.5px; color: var(--blue); font-weight: 600; }
.fb-reply-text { font-size: 13px; color: var(--text); line-height: 1.7; margin-top: 5px; white-space: pre-wrap; }

/* --------------------------------------------------------------------------
   代理中心
   -------------------------------------------------------------------------- */
.agent-hero {
  background: linear-gradient(135deg, #f0a020 0%, #f08a1e 55%, #e2474a 100%);
  padding: calc(22px + var(--safe-top)) 20px 30px;
  color: #fff;
}

.agent-hero .ah-title { font-size: 22px; font-weight: 700; letter-spacing: .3px; }
.agent-hero .ah-sub   { font-size: 13px; opacity: .92; margin-top: 6px; line-height: 1.6; }

/* 头部那个「去提现」小胶囊，让提现入口一眼可见 */
.agent-hero .ah-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  padding: 6px 16px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.agent-hero .ah-btn:active { background: #fff; transform: scale(.97); }

/* 代理中心内的横向标签 */
.agent-tabs {
  display: flex;
  flex-wrap: wrap;          /* 极窄屏也放得下，宁可换行也不把「提现」挤出屏幕 */
  gap: 4px;
  margin: 16px 14px 12px;
  background: #fff;
  border-radius: 12px;
  padding: 4px;
  box-shadow: var(--shadow);
}

.agent-tabs div {
  flex: 1 1 0;
  white-space: nowrap;
  text-align: center;
  padding: 9px 6px;
  min-width: 0;
  font-size: 13px;
  color: var(--text-sub);
  border-radius: 9px;
}

.agent-tabs div.on {
  background: var(--blue);
  color: #fff;
  font-weight: 600;
}

/* 「提现」是代理最常用的入口，标红让它一眼能被找到 */
.agent-tabs div.hot { color: var(--red); font-weight: 600; }
.agent-tabs div.hot.on { color: #fff; }

/* 代理改价输入框 */
.agent-price-input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--red);
  outline: none;
  background: #fafbfd;
  min-width: 0;
}

.agent-price-input:focus { border-color: var(--blue); background: #fff; }

/* 海报画布 */
.poster-canvas {
  width: 100%;
  max-width: 340px;
  display: block;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  background: #fff;
}

/* 分享链接 */
.share-link {
  font-size: 12.5px;
  word-break: break-all;
  background: #f4f7ff;
  border: 1px solid #dde6ff;
  border-radius: 8px;
  padding: 11px 13px;
  color: #3d4a63;
  line-height: 1.6;
}

/* 提现：手续费明细 */
.wd-calc {
  margin-top: 14px;
  background: #fafbfd;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
}

.wd-calc > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  color: var(--text-sub);
}

.wd-calc b { font-weight: 600; color: var(--text); }

.wd-calc .sum {
  border-top: 1px dashed var(--line);
  margin-top: 4px;
  padding-top: 9px;
  font-size: 15px;
}

.wd-calc .sum b { color: var(--red); font-size: 19px; }

/* 提现：收款码上传框 */
.wd-qr {
  display: block;
  position: relative;
  width: 190px;
  height: 190px;
  margin: 0 auto;
  border: 1px dashed #cfd6e4;
  border-radius: 12px;
  background: #fafbfd;
  overflow: hidden;
  cursor: pointer;
}

.wd-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.wd-qr .ph {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  text-align: center;
  color: var(--text-mute);
  font-size: 12.5px;
  line-height: 1.5;
}

.wd-qr .ph .ico { font-size: 34px; line-height: 1; color: #c3cad8; }

.wd-qr .busy {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .84);
  color: var(--text-sub);
  font-size: 13px;
}


/* ==========================================================================
   社会证明：最近大家都在查什么
   （不显示车架号和用户昵称 —— 那属于别人的查询记录）
   ========================================================================== */
.proof-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 11px;
}

.proof-head .live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(10,166,110,.55);
  animation: pulse 1.9s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(10,166,110,.5); }
  70%  { box-shadow: 0 0 0 8px rgba(10,166,110,0); }
  100% { box-shadow: 0 0 0 0 rgba(10,166,110,0); }
}

.proof-cnt { margin-left: auto; font-size: 11.5px; color: var(--text-mute); font-weight: 400; }

/* 竖向循环滚动：容器固定高，列表整体上移，滚完无缝接回 */
.proof-view { height: 132px; overflow: hidden; }
.proof-list { display: flex; flex-direction: column; gap: 8px; }
.proof-list.rolling { animation: proofRoll 22s linear infinite; }
@keyframes proofRoll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(calc(-50% - 4px)); }
}

.proof-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.proof-item .tg {
  flex: 0 0 auto; padding: 3px 8px; border-radius: 6px;
  background: var(--blue-soft); color: var(--blue); font-size: 11px;
}
.proof-item .br { flex: 1; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proof-item .key { flex: 0 0 auto; color: var(--text-sub); font-size: 11.5px; font-family: ui-monospace, monospace; }
.proof-item .ago { flex: 0 0 auto; color: var(--text-mute); font-size: 11.5px; }

/* 服务优势 */
.svc { display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.svc:last-child { border-bottom: none; }
.svc-ic { flex: 0 0 auto; font-size: 20px; line-height: 1.2; }
.svc-tt { font-size: 13.5px; font-weight: 600; }
.svc-dd { font-size: 12px; color: var(--text-mute); margin-top: 2px; line-height: 1.5; }

/* 悬浮客服 */
.fab {
  position: fixed;
  right: 14px;
  bottom: calc(66px + var(--safe-bot));
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 54px;
  padding: 9px 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(28,45,90,.16);
  cursor: pointer;
}
.fab:active { transform: scale(.95); }
.fab-ic { font-size: 20px; line-height: 1; }
.fab-tx { font-size: 10.5px; color: var(--text-sub); }

/* 客服微信号 */
.wx-code {
  margin: 12px 0 0;
  padding: 14px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: ui-monospace, monospace;
}
