/* ============================================================
   代理提卡系统 · 前台首页样式（v10 · 单列统一版）
   ------------------------------------------------------------
   版式原则：
     1. 全页只有【一个宽度】——620px。顶栏、正文、页脚全部对齐同一条
        左右基准线，不存在「宽的太宽、窄的太窄」。
     2. 内容垂直居中，正好铺满视口，不产生底部空档。
     3. 三层信息自上而下：品牌陈述 → 查询卡 → 信任点，字号逐层收敛。
   类名与 DOM 结构保持不变，功能零改动。
   ============================================================ */

/* ---------------- 设计令牌 ---------------- */
:root {
  /* 中性色 */
  --hp-bg:        #f5f8f6;
  --hp-ink:       #0e2a25;
  --hp-sub:       #46635c;
  --hp-dim:       #7b948d;
  --hp-line:      #e1ece7;
  --hp-line-2:    #cfdfd8;

  /* 品牌色 */
  --hp-brand:     #0d9488;
  --hp-brand-2:   #17b3a3;
  --hp-brand-deep:#0a7a70;
  --hp-grad:      linear-gradient(135deg, #0d9488 0%, #17b3a3 55%, #21c7a9 100%);

  /* 语义 */
  --hp-soft:      rgba(13, 148, 136, .07);
  --hp-soft-2:    rgba(13, 148, 136, .14);
  --hp-danger:    #b42318;
  --hp-danger-bg: rgba(180, 35, 24, .06);

  /* 阴影：只有两级，避免层级混乱 */
  --hp-sh-1: 0 1px 2px rgba(14, 42, 37, .04), 0 14px 34px -18px rgba(14, 42, 37, .22);
  --hp-sh-2: 0 30px 70px -34px rgba(14, 42, 37, .38);

  /* 圆角 */
  --hp-r-sm: 10px;
  --hp-r:    14px;
  --hp-r-lg: 18px;
}

* { box-sizing: border-box; }
html, body.hp-home { margin: 0; padding: 0; }

body.hp-home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--hp-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
               "PingFang SC", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(640px 420px at 50% -8%,  rgba(23, 179, 163, .13), transparent 66%),
    radial-gradient(560px 380px at 88% 104%, rgba(13, 148, 136, .08), transparent 64%),
    var(--hp-bg);
  background-attachment: fixed;
}

/* ============================================================
   ★ 统一宽度容器：三种区块共用同一条基准线
   ============================================================ */
.hp-topbar,
.hp-wrap,
.hp-foot {
  width: 100%;
  max-width: 620px;      /* ← 全页唯一宽度 */
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ============================================================
   顶部品牌条
   ============================================================ */
.hp-topbar {
  position: relative; z-index: 3;
  flex: 0 0 auto;
  padding-top: 20px;
  padding-bottom: 8px;
  display: flex; align-items: center; justify-content: space-between;
}

.hp-brand { display: flex; align-items: center; gap: 10px; }

.hp-mark {
  width: 32px; height: 32px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--hp-grad);
  color: #fff; font-size: 15px;
  box-shadow: 0 6px 14px -6px rgba(13, 148, 136, .7);
}

.hp-brand-txt {
  font-size: 15.5px; font-weight: 700;
  letter-spacing: -.2px; color: var(--hp-ink);
}

.hp-admin {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--hp-line-2);
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--hp-sub);
  font-size: 12px; font-weight: 500;
  text-decoration: none !important;
  transition: color .18s, border-color .18s, background .18s, transform .18s;
}
.hp-admin:hover {
  color: var(--hp-brand-deep);
  border-color: var(--hp-brand);
  background: #fff;
  transform: translateY(-1px);
}
.hp-admin .fa-arrow-right { font-size: 9.5px; opacity: .7; }

/* ============================================================
   主体：单列 · 垂直居中
   ============================================================ */
.hp-wrap {
  position: relative; z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 12px;
  padding-bottom: 20px;
}

/* .hp-intro 用 display:contents 拆平，让它的子元素直接参与 .hp-wrap
   的纵向排列，这样才能把「信任点」排到卡片下方 */
.hp-intro { display: contents; }

/* 纵向顺序：小标 → 标题 → 描述 → 卡片 → 信任点 → 数据 */
.hp-kicker   { order: 1; }
.hp-intro h1 { order: 2; }
.hp-desc     { order: 3; }
.hp-card     { order: 4; }
.hp-feat     { order: 5; }
.hp-stat     { order: 6; }

.hp-kicker {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 14px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 2.4px;
  color: var(--hp-brand-deep);
  text-transform: uppercase;
}
.hp-kicker span {
  width: 20px; height: 2px; border-radius: 2px;
  background: var(--hp-grad);
}

.hp-intro h1 {
  margin: 0 0 12px;
  text-align: center;
  font-size: 29px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -.7px;
  color: var(--hp-ink);
}
.hp-intro h1 em {
  font-style: normal;
  background: var(--hp-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.hp-desc {
  margin: 0 auto 20px;
  text-align: center;
  max-width: 430px;
  font-size: 13.5px; line-height: 1.8;
  color: var(--hp-sub);
}

/* 信任点：移到卡片下方，做成三等分 —— 与卡片同宽、均匀分割 */
.hp-feat {
  list-style: none;
  margin: 16px 0 0; padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.hp-feat li {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0;
  background: none;
  border: 0;
  min-width: 0;
}
/* 项与项之间的细分隔线（纯装饰，不构成按钮感） */
.hp-feat li + li::before {
  content: ";
  position: absolute; left: -4px; top: 50%;
  width: 1px; height: 12px;
  margin-top: -6px;
  background: var(--hp-line-2);
}
.hp-feat li > i {
  flex: 0 0 auto;
  color: var(--hp-brand);
  font-size: 12px;
}
.hp-feat b {
  display: block;
  font-size: 12.5px; font-weight: 700;
  color: var(--hp-ink);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
/* 副说明在单列紧凑版里收起，避免参差 */
.hp-feat span { display: none; }

/* 数据条：并进信任行下方，居中小字 */
.hp-stat {
  width: 100%;
  margin-top: 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 11.5px;
  color: var(--hp-dim);
}
.hp-stat b {
  font-size: 13px; font-weight: 800;
  letter-spacing: -.2px;
  font-variant-numeric: tabular-nums;
  color: var(--hp-brand-deep);
}
.hp-stat span { font-size: 11.5px; color: var(--hp-dim); }
.hp-stat i {
  width: 1px; height: 11px;
  background: var(--hp-line-2);
  margin: 0 8px;
}

/* ---------------- 查询卡片（整列宽） ---------------- */
.hp-card {
  position: relative;
  width: 100%;
  padding: 22px 22px 18px;
  background: #fff;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-r-lg);
  box-shadow: var(--hp-sh-1);
  overflow: hidden;
}
.hp-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--hp-grad);
}

.hp-card-head {
  display: flex; align-items: center; gap: 11px;
  margin-bottom: 16px;
}
.hp-card-ic {
  flex: 0 0 auto;
  width: 36px; height: 36px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--hp-soft);
  color: var(--hp-brand);
  font-size: 15px;
}
.hp-card-head h2 {
  margin: 0 0 2px;
  font-size: 15.5px; font-weight: 800;
  letter-spacing: -.2px;
  color: var(--hp-ink);
}
.hp-card-head p {
  margin: 0;
  font-size: 12px;
  color: var(--hp-dim);
}

/* 账号类型：三等分，与卡片同宽 */
.hp-types {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 13px;
}
.hp-types label {
  position: relative;
  margin: 0; cursor: pointer;
  min-width: 0;
  -webkit-tap-highlight-color: transparent;
}
.hp-types input {
  position: absolute; opacity: 0;
  width: 0; height: 0;
  pointer-events: none;
}
.hp-type-item {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 4px;
  border: 1px solid var(--hp-line-2);
  border-radius: var(--hp-r-sm);
  background: #fbfdfc;
  color: var(--hp-sub);
  font-size: 12.5px; font-weight: 600;
  white-space: nowrap;
  transition: border-color .18s, background .18s, color .18s, box-shadow .18s;
}
.hp-type-item i { font-size: 14px; }

.hp-types label:hover .hp-type-item {
  border-color: var(--hp-brand);
  color: var(--hp-brand-deep);
}
.hp-types input:checked + .hp-type-item {
  border-color: var(--hp-brand);
  background: var(--hp-soft);
  color: var(--hp-brand-deep);
  box-shadow: inset 0 0 0 1px var(--hp-brand);
}
.hp-types input:focus-visible + .hp-type-item {
  box-shadow: inset 0 0 0 1px var(--hp-brand), 0 0 0 3px var(--hp-soft-2);
}

/* 输入框 */
.hp-field { position: relative; margin-bottom: 11px; }
.hp-field > i {
  position: absolute; left: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--hp-dim); font-size: 13px;
  pointer-events: none;
}
.hp-field .inp {
  display: block; width: 100%; height: 46px;
  padding: 0 13px 0 37px;
  border: 1px solid var(--hp-line-2);
  border-radius: var(--hp-r-sm);
  background: #fbfdfc;
  color: var(--hp-ink);
  font-family: inherit; font-size: 13.5px;
  outline: none;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.hp-field .inp::placeholder { color: var(--hp-dim); }
.hp-field .inp:focus {
  border-color: var(--hp-brand);
  background: #fff;
  box-shadow: 0 0 0 3px var(--hp-soft-2);
}

/* 主按钮 */
.hp-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; height: 46px;
  border: 0; border-radius: var(--hp-r-sm);
  background: var(--hp-grad);
  color: #fff;
  font-family: inherit; font-size: 14px; font-weight: 700;
  letter-spacing: .4px;
  cursor: pointer;
  box-shadow: 0 8px 18px -9px rgba(13, 148, 136, .85);
  transition: transform .16s, box-shadow .16s, filter .16s;
}
.hp-btn:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -12px rgba(13, 148, 136, .9);
}
.hp-btn:active { transform: translateY(0); }
.hp-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--hp-soft-2), 0 8px 18px -9px rgba(13, 148, 136, .85);
}

/* 次级入口：两等分 */
.hp-links { display: flex; gap: 8px; margin-top: 11px; }
.hp-links a {
  flex: 1 1 0; min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 8px 4px;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-r-sm);
  background: #fbfdfc;
  color: var(--hp-sub);
  font-size: 12px; font-weight: 500;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color .18s, border-color .18s, background .18s;
}
.hp-links a:hover {
  color: var(--hp-brand-deep);
  border-color: var(--hp-brand);
  background: var(--hp-soft);
}

.hp-note {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--hp-line);
  font-size: 11px; line-height: 1.6;
  color: var(--hp-dim);
  text-align: center;
}
.hp-note i { color: var(--hp-brand); margin-right: 3px; }

/* ============================================================
   页脚
   ============================================================ */
.hp-foot {
  position: relative; z-index: 2;
  flex: 0 0 auto;
  padding-top: 12px;
  padding-bottom: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-top: 1px solid var(--hp-line);
  font-size: 11px;
  color: var(--hp-dim);
}

/* ============================================================
   弹层（投诉 / 帮助）
   ============================================================ */
.layui-layer.hp-layer,
.hp-layer.layui-layer {
  background: #fff !important;
  border: 1px solid var(--hp-line) !important;
  border-radius: var(--hp-r-lg) !important;
  box-shadow: var(--hp-sh-2) !important;
  overflow: hidden !important;
}
.hp-layer .layui-layer-content { padding: 0 !important; }

.hp-modal { width: 100%; color: var(--hp-ink); }
.hp-modal::before {
  content: ""; display: block; height: 3px;
  background: var(--hp-grad);
}

.hp-modal-head {
  display: flex; align-items: center; gap: 11px;
  padding: 16px 18px 13px;
  border-bottom: 1px solid var(--hp-line);
}
.hp-modal-ic {
  flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--hp-soft); color: var(--hp-brand);
  font-size: 14px;
}
.hp-modal-head h3 {
  margin: 0 0 2px;
  font-size: 14.5px; font-weight: 800;
  color: var(--hp-ink);
}
.hp-modal-head p { margin: 0; font-size: 11.5px; color: var(--hp-dim); }

.hp-modal-x {
  margin-left: auto;
  width: 25px; height: 25px;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 8px;
  background: #f4f8f6; color: var(--hp-sub);
  font-size: 13px; cursor: pointer;
  transition: background .18s, color .18s;
}
.hp-modal-x:hover { background: var(--hp-danger-bg); color: var(--hp-danger); }

.hp-modal-body { padding: 16px 18px 4px; }
.hp-modal-fld { margin-bottom: 12px; }
.hp-modal-fld label {
  display: block; margin-bottom: 5px;
  font-size: 12px; font-weight: 700;
  color: var(--hp-sub);
}
.hp-modal-fld .inp {
  display: block; width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--hp-line-2);
  border-radius: var(--hp-r-sm);
  background: #fbfdfc;
  color: var(--hp-ink);
  font-family: inherit; font-size: 13px;
  line-height: 1.6;
  outline: none; resize: vertical;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.hp-modal-fld .inp::placeholder { color: var(--hp-dim); }
.hp-modal-fld .inp:focus {
  border-color: var(--hp-brand);
  background: #fff;
  box-shadow: 0 0 0 3px var(--hp-soft-2);
}

.hp-modal-foot { padding: 11px 18px 18px; }
.hp-modal-foot .hp-btn { height: 42px; font-size: 13px; }

/* 帮助弹层步骤 */
.hp-help-step { display: flex; gap: 10px; margin-bottom: 12px; }
.hp-help-step > span {
  flex: 0 0 auto;
  width: 21px; height: 21px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  background: var(--hp-soft); color: var(--hp-brand);
  font-size: 11px; font-weight: 800;
}
.hp-help-step p {
  margin: 1px 0 0;
  font-size: 12.5px; line-height: 1.75;
  color: var(--hp-sub);
}
.hp-help-step b { color: var(--hp-ink); }

.hp-help-warn {
  display: flex; gap: 9px;
  margin-top: 14px; padding: 10px 12px;
  border-radius: var(--hp-r-sm);
  background: var(--hp-danger-bg);
  border: 1px solid rgba(180, 35, 24, .16);
}
.hp-help-warn i { color: var(--hp-danger); font-size: 12.5px; margin-top: 2px; }
.hp-help-warn p { margin: 0; font-size: 11.5px; line-height: 1.7; color: #8f2d20; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 640px) {
  .hp-topbar, .hp-wrap, .hp-foot { padding-left: 18px; padding-right: 18px; }
  .hp-topbar { padding-top: 16px; }
  .hp-intro h1 { font-size: 24px; letter-spacing: -.5px; }
  .hp-desc { font-size: 13px; margin-bottom: 16px; }
  .hp-kicker { margin-bottom: 11px; letter-spacing: 1.8px; }
  .hp-card { padding: 18px 16px 15px; border-radius: 16px; }
  .hp-card::before { border-radius: 16px 16px 0 0; }
  .hp-type-item { flex-direction: column; gap: 4px; padding: 10px 2px; font-size: 12px; }
  .hp-feat { gap: 6px; }
  .hp-feat li { padding: 8px 4px; gap: 4px; }
  .hp-feat b { font-size: 11.5px; }
  .hp-links { flex-direction: column; gap: 7px; }
  .hp-foot {
    flex-direction: column; text-align: center;
    gap: 3px; padding-top: 10px; padding-bottom: 16px;
  }
  .layui-layer.hp-layer,
  .hp-layer.layui-layer { width: min(440px, 92vw) !important; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}