/* ============================================================
   汇付通 · 支付通道开户平台
   明亮蓝 · 移动优先 · 圆角卡片
   ============================================================ */
:root {
  --blue: #1677ff;
  --blue-deep: #0e56c4;
  --blue-soft: #eaf2ff;
  --bg: #f4f6f9;
  --card: #ffffff;
  --line: #ebedf0;
  --text: #1f2329;
  --text-2: #646a73;
  --text-3: #8f959e;
  --ok: #00a870;
  --ok-bg: #e3f8f0;
  --bad: #d54941;
  --bad-bg: #fdecea;
  --warn: #d48806;
  --warn-bg: #fdf3e0;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(31, 35, 41, .06);
  --sans: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  line-height: 1.7;
}

.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* ================= 顶部导航 ================= */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; flex-shrink: 1; }
.brand-seal {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(135deg, #3d8bff, var(--blue-deep));
  color: #fff; font-size: 17px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-word { line-height: 1.2; white-space: nowrap; overflow: hidden; }
.brand-name { font-size: 16px; font-weight: 700; color: var(--text); }
.brand-tag { display: none; }
.brand-short { display: none; }
.topnav { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.topnav a {
  color: var(--text-2); text-decoration: none; font-size: 14px;
  white-space: nowrap; transition: color .15s;
}
.topnav a:hover { color: var(--blue); }
.topnav a.on { color: var(--blue); font-weight: 600; }
/* 顶栏里的按钮保持白字，不被普通链接颜色覆盖 */
.topnav a.btn, .topnav a.btn:hover { color: #fff; }
.nav-user { color: var(--text-3); font-size: 13px; white-space: nowrap; }
.nav-divider { width: 1px; height: 16px; background: var(--line); }

/* ================= 按钮 ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 24px; border: 1px solid transparent; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
  font-family: var(--sans); transition: all .15s ease;
}
.btn-gold, .btn-ink { background: var(--blue); color: #fff; }
.btn-gold:hover, .btn-ink:hover { background: var(--blue-deep); }
.btn-line { background: #fff; color: var(--text-2); border-color: #d9dce1; }
.btn-line:hover { color: var(--blue); border-color: var(--blue); }
.btn-line-gold { background: var(--blue-soft); color: var(--blue); border-color: transparent; }
.btn-line-gold:hover { background: #d8e7ff; }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover { filter: brightness(1.05); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-ok:hover { filter: brightness(1.05); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ================= 首页 Hero ================= */
.hero {
  background: linear-gradient(160deg, #1b7cff 0%, #0e56c4 100%);
  color: #fff;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 380px; height: 380px; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.hero::after {
  content: ""; position: absolute; right: 60px; bottom: -160px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}
.hero-inner {
  position: relative; z-index: 1; padding: 72px 0 64px;
  display: grid; grid-template-columns: 1.05fr .95fr;
  align-items: center; gap: 40px;
}
.hero-eyebrow {
  display: inline-block; font-size: 12.5px; letter-spacing: 2px;
  background: rgba(255, 255, 255, .16); border-radius: 999px;
  padding: 5px 16px; margin-bottom: 20px;
}
.hero h1 { font-size: 34px; line-height: 1.4; font-weight: 700; }
.hero h1 em { font-style: normal; color: #ffe58f; }
.hero-sub { margin: 16px 0 30px; color: rgba(255,255,255,.85); font-size: 15px; max-width: 480px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-light { background: #fff; color: var(--blue); }
.hero .btn-light:hover { background: #f0f6ff; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ================= Hero 3D 支付卡 ================= */
.hero-scene { position: relative; min-height: 300px; display: flex; align-items: center; justify-content: center; }
.pcard-stage { perspective: 1100px; }
.pcard-tilt {
  transform-style: preserve-3d;
  transition: transform .18s ease-out;
  animation: pcardFloat 5.5s ease-in-out infinite;
}
@keyframes pcardFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}
.pcard {
  width: 350px; height: 218px; border-radius: 20px;
  background:
    radial-gradient(220px 160px at 85% 0%, rgba(255,255,255,.22), transparent 60%),
    linear-gradient(130deg, #4f94ff 0%, #1663d8 45%, #0a3a8f 100%);
  box-shadow:
    0 30px 60px rgba(5, 30, 80, .45),
    inset 0 1px 0 rgba(255,255,255,.35);
  color: #fff; padding: 24px 26px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transform: translateZ(30px);
}
.pcard-shine {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.14) 45%, transparent 60%);
  animation: pcardShine 4.5s ease-in-out infinite;
}
@keyframes pcardShine {
  0%, 55% { transform: translateX(-100%); }
  85%, 100% { transform: translateX(100%); }
}
.pcard-top { display: flex; justify-content: space-between; align-items: center; }
.pcard-brand { font-size: 17px; font-weight: 700; letter-spacing: 4px; }
.pcard-wave { opacity: .85; }
.pcard-chip {
  width: 46px; height: 34px; border-radius: 7px; margin: 20px 0 16px;
  background: linear-gradient(135deg, #ffe9a8, #e3b74f);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.6), inset 0 -1px 2px rgba(120,80,10,.4);
  display: flex; align-items: center; justify-content: center;
}
.pcard-chip span {
  width: 30px; height: 22px; border-radius: 4px;
  border: 1px solid rgba(120, 80, 10, .35);
  border-left: none; border-right: none;
}
.pcard-number {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 19px; letter-spacing: 2px; font-weight: 600;
  text-shadow: 0 1px 2px rgba(5, 30, 80, .4);
}
.pcard-bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; }
.pcard-holder { font-size: 10.5px; letter-spacing: 2.5px; color: rgba(255,255,255,.75); }
.pcard-logo { display: flex; }
.pcard-logo i {
  width: 26px; height: 26px; border-radius: 50%; display: block;
  background: rgba(255, 255, 255, .85);
}
.pcard-logo i + i { margin-left: -10px; background: rgba(255, 214, 102, .9); }

/* 漂浮光斑 */
.orb { position: absolute; border-radius: 50%; pointer-events: none; }
.orb-1 {
  width: 90px; height: 90px; left: -8%; top: 6%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.35), rgba(255,255,255,.04) 70%);
  animation: orbFloat 7s ease-in-out infinite;
}
.orb-2 {
  width: 46px; height: 46px; right: 2%; top: 14%;
  background: radial-gradient(circle at 35% 35%, rgba(255,229,143,.7), rgba(255,229,143,.06) 70%);
  animation: orbFloat 6s ease-in-out 1s infinite;
}
.orb-3 {
  width: 62px; height: 62px; right: 10%; bottom: 4%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.25), rgba(255,255,255,.03) 70%);
  animation: orbFloat 8s ease-in-out .5s infinite;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* 数据条 */
.hero-strip { position: relative; z-index: 1; background: rgba(0, 0, 0, .12); }
.hero-strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { padding: 20px 8px; text-align: center; }
.strip-item + .strip-item { border-left: 1px solid rgba(255,255,255,.12); }
.strip-num { font-size: 22px; font-weight: 700; color: #fff; }
.strip-num small { font-size: 13px; font-weight: 400; margin-left: 2px; }
.strip-label { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 2px; }

/* ================= 首页区块 ================= */
.section { padding: 56px 0; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-eyebrow { font-size: 12.5px; letter-spacing: 2px; color: var(--blue); margin-bottom: 8px; font-weight: 600; }
.section-title { font-size: 24px; color: var(--text); font-weight: 700; }
.section-desc { color: var(--text-2); margin-top: 8px; font-size: 14px; }

/* 流程卡 */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.flow-item {
  background: #fff; border-radius: var(--radius); padding: 26px 20px;
  box-shadow: var(--shadow); text-align: center;
}
.flow-item::before { display: none; }
.flow-num {
  width: 44px; height: 44px; margin: 0 auto 14px;
  background: var(--blue-soft); color: var(--blue);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700;
}
.flow-item h3 { font-size: 15.5px; color: var(--text); margin-bottom: 6px; }
.flow-item p { font-size: 12.5px; color: var(--text-2); line-height: 1.7; }

/* 特性 */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  background: #fff; border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow); transition: transform .15s ease;
}
.feature:hover { transform: translateY(-3px); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.feature h3 { font-size: 15.5px; color: var(--text); margin-bottom: 6px; }
.feature p { font-size: 13px; color: var(--text-2); }

/* 通道 */
.channels { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.channel-row { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; align-items: center; }
.channel { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; font-weight: 600; }
.channel svg { color: var(--blue); }

/* 底 CTA */
.cta-band { background: linear-gradient(160deg, #1b7cff, #0e56c4); color: #fff; text-align: center; padding: 52px 0; }
.cta-band h2 { font-size: 24px; font-weight: 700; }
.cta-band p { color: rgba(255,255,255,.8); margin: 12px 0 26px; font-size: 14px; }
.cta-band .btn-light { background: #fff; color: var(--blue); }

/* ================= 页脚 ================= */
.footer { background: #fff; border-top: 1px solid var(--line); margin-top: auto; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-size: 12.5px; color: var(--text-3); flex-wrap: wrap; gap: 10px; }
.footer .f-brand { font-weight: 700; color: var(--text-2); }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--text-3); text-decoration: none; }
.footer-links a:hover { color: var(--blue); }

/* ================= 认证页 ================= */
.auth-body { background: var(--bg); }
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-aside {
  background: linear-gradient(165deg, #1b7cff 0%, #0e56c4 100%);
  color: #fff; padding: 48px 56px;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.auth-aside::before {
  content: ""; position: absolute; right: -100px; bottom: -100px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.auth-aside > * { position: relative; }
.auth-aside .brand-name { color: #fff; }
.auth-aside-title { font-size: 28px; line-height: 1.5; font-weight: 700; margin: auto 0 14px; }
.auth-aside-title em { font-style: normal; color: #ffe58f; }
.auth-aside-desc { color: rgba(255,255,255,.8); font-size: 14px; max-width: 380px; margin-bottom: 32px; }
.auth-points { display: flex; flex-direction: column; gap: 14px; }
.auth-point { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: rgba(255,255,255,.88); }
.auth-point svg { color: #a9d1ff; flex-shrink: 0; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-panel {
  width: 100%; max-width: 400px; background: #fff;
  border-radius: 16px; box-shadow: var(--shadow); padding: 36px 32px;
}
.auth-panel-title { font-size: 22px; color: var(--text); font-weight: 700; margin-bottom: 4px; }
.auth-panel-sub { color: var(--text-3); font-size: 13px; margin-bottom: 26px; }
.auth-switch { margin-top: 22px; font-size: 13.5px; color: var(--text-2); text-align: center; }
.auth-switch a { color: var(--blue); text-decoration: none; font-weight: 600; }
.auth-back { display: inline-flex; align-items: center; gap: 4px; color: var(--text-3); font-size: 13px; text-decoration: none; margin-bottom: 24px; }
.auth-back:hover { color: var(--blue); }

@media (max-width: 860px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { padding: 32px 16px; align-items: flex-start; }
}

/* ================= 表单 ================= */
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 13.5px; }
.form-row label .req { color: var(--bad); margin-left: 2px; }
.form-row .hint { font-size: 12px; color: var(--text-3); margin-top: 5px; }
input[type="text"], input[type="password"], input[type="email"], input[type="tel"],
input[type="number"], select, textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid #d9dce1; border-radius: 10px;
  font-size: 14px; font-family: var(--sans); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, .12);
}
input:disabled { background: #f5f6f8; color: var(--text-3); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ================= 提示 / 徽章 ================= */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; font-size: 13.5px; border: 1px solid; }
.alert-success { background: var(--ok-bg); color: #067052; border-color: #b8ecd9; }
.alert-error { background: var(--bad-bg); color: #a83932; border-color: #f5c6c2; }
.alert-info { background: var(--blue-soft); color: var(--blue-deep); border-color: #c9dfff; }
.alert-warn { background: var(--warn-bg); color: #8a5b04; border-color: #f3ddae; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-info { background: var(--blue-soft); color: var(--blue-deep); }

/* ================= 控制台 ================= */
.main { flex: 1; width: 100%; }
.main > .container { padding-top: 30px; padding-bottom: 50px; }
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.page-title { font-size: 22px; color: var(--text); font-weight: 700; }
.page-sub { color: var(--text-3); font-size: 13px; margin-top: 2px; }

.card {
  background: var(--card); border-radius: var(--radius);
  padding: 26px 28px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.card-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 18px; }

/* 步骤条 */
.steps { display: flex; margin: 24px 0 4px; }
.step { flex: 1; text-align: center; position: relative; min-width: 0; }
.step::before {
  content: ""; position: absolute; top: 17px; left: -50%; width: 100%;
  height: 2px; background: var(--line);
}
.step:first-child::before { display: none; }
.step.done::before, .step.active::before { background: var(--blue); }
.step-dot {
  width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 8px;
  background: #fff; border: 2px solid #d9dce1; color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; position: relative; z-index: 1;
}
.step.active .step-dot { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 4px rgba(22,119,255,.12); }
.step.done .step-dot { background: var(--blue); border-color: var(--blue); color: #fff; }
.step-label { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.step.active .step-label { color: var(--blue); font-weight: 600; }
.step.done .step-label { color: var(--text); }

/* ================= 支付页 ================= */
.pay-panel { max-width: 520px; margin: 0 auto; }
.pay-figure { text-align: center; padding: 6px 0 20px; border-bottom: 1px dashed var(--line); margin-bottom: 22px; }
.pay-amount { font-size: 42px; font-weight: 800; color: var(--text); }
.pay-amount small { font-size: 18px; color: var(--text-2); margin-right: 2px; }
.pay-note { color: var(--text-3); font-size: 12.5px; margin-top: 4px; }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.pay-method {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 16px 10px;
  text-align: center; cursor: pointer; transition: all .15s; background: #fff;
}
.pay-method:hover { border-color: var(--blue); }
.pay-method.selected { border-color: var(--blue); background: var(--blue-soft); }
.pay-method svg { color: var(--text-2); margin-bottom: 6px; }
.pay-method.selected svg { color: var(--blue); }
.pay-method .name { font-weight: 600; font-size: 13.5px; }

/* ================= 上传 ================= */
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .upload-grid { grid-template-columns: 1fr; } }
.upload-box { position: relative; }
.upload-box input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-placeholder {
  border: 1.5px dashed #d9dce1; border-radius: 12px; padding: 30px 14px;
  text-align: center; color: var(--text-3); transition: all .15s; background: #fafbfc;
}
.upload-placeholder svg { margin-bottom: 8px; color: var(--text-3); }
.upload-box:hover .upload-placeholder { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.upload-box:hover .upload-placeholder svg { color: var(--blue); }
.upload-preview { margin-top: 10px; }
.upload-preview img { max-width: 100%; border-radius: 10px; border: 1px solid var(--line); }

/* ================= 表格 ================= */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th {
  text-align: left; padding: 11px 12px;
  color: var(--text-3); font-weight: 600; font-size: 12px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
  background: #fafbfc;
}
.data-table td { padding: 12px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.data-table tr:hover td { background: #f8faff; }
.empty { text-align: center; color: var(--text-3); padding: 36px 0; }

/* ================= 后台 ================= */
.admin-body { display: block; background: var(--bg); }
.admin-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 224px; background: #1f2329; flex-shrink: 0;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.sidebar-brand { display: flex; gap: 10px; align-items: center; padding: 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-title { color: #fff; font-size: 15px; font-weight: 700; }
.sidebar-sub { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 2px; }
.sidebar-nav { padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav a {
  color: rgba(255,255,255,.65); text-decoration: none; padding: 10px 12px; border-radius: 8px;
  font-size: 13.5px; display: flex; align-items: center; gap: 10px; transition: all .15s;
}
.sidebar-nav a svg { flex-shrink: 0; opacity: .8; }
.sidebar-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar-nav a.active { background: var(--blue); color: #fff; }
.admin-content { flex: 1; min-width: 0; }
.admin-header {
  background: #fff; padding: 0 24px; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.admin-header h1 { font-size: 17px; color: var(--text); }
.admin-user { color: var(--text-3); font-size: 13px; }
.admin-main { padding: 22px 24px; }

/* 统计卡 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card {
  background: #fff; border-radius: var(--radius);
  padding: 18px 20px; display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow);
}
.stat-icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-num { font-size: 22px; font-weight: 800; color: var(--text); }
.stat-label { color: var(--text-3); font-size: 12.5px; }

/* 详情 */
.detail-grid { display: grid; grid-template-columns: 140px 1fr; row-gap: 12px; column-gap: 14px; font-size: 14px; }
.detail-grid dt { color: var(--text-3); font-weight: 600; }
.detail-grid dd { color: var(--text); }
.detail-grid code, .data-table code { background: #f2f4f7; padding: 3px 8px; border-radius: 6px; font-size: 12.5px; color: var(--blue-deep); }
.idcard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
@media (max-width: 640px) { .idcard-grid { grid-template-columns: 1fr; } }
.idcard-grid figure { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fafbfc; }
.idcard-grid figcaption { padding: 9px 14px; font-size: 12.5px; font-weight: 600; color: var(--text-2); border-bottom: 1px solid var(--line); }
.idcard-grid img { width: 100%; display: block; }

/* ================= 工具 ================= */
.text-center { text-align: center; }
.mt-2 { margin-top: 12px; } .mt-3 { margin-top: 20px; } .mt-4 { margin-top: 28px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* 结果页大图标 */
.result-mark {
  width: 68px; height: 68px; margin: 4px auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.result-ok { background: var(--ok-bg); color: var(--ok); }
.result-pending { background: var(--warn-bg); color: var(--warn); }

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
  .sidebar { width: 60px; }
  .sidebar .nav-text, .sidebar-sub, .sidebar-title { display: none; }
  .sidebar-nav a { justify-content: center; padding: 12px 0; }
  /* Hero 单列：上文下卡 */
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding: 56px 0 48px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-scene { min-height: 240px; }
  .pcard { width: 300px; height: 188px; padding: 20px 22px; }
  .pcard-number { font-size: 16px; }
  .pcard-chip { margin: 14px 0 12px; }
}

/* ================= 手机端（≤768px） ================= */
@media (max-width: 768px) {
  body { font-size: 14px; }
  .container { padding: 0 14px; }

  .topbar-inner { height: 54px; }
  .brand-seal { width: 30px; height: 30px; font-size: 15px; border-radius: 8px; }
  .brand-name { font-size: 14.5px; }
  .topnav { gap: 14px; }
  .topnav a { font-size: 13px; }
  .nav-user, .nav-divider, .nav-optional { display: none; }
  .topnav .btn-sm { padding: 5px 12px; font-size: 12px; }

  .hero-inner { padding: 40px 0 36px; gap: 28px; }
  .hero h1 { font-size: 25px; }
  .hero-sub { font-size: 13.5px; margin: 12px auto 24px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .hero-scene { min-height: 200px; }
  .pcard { width: 272px; height: 170px; border-radius: 16px; padding: 18px 20px; }
  .pcard-brand { font-size: 15px; }
  .pcard-number { font-size: 14.5px; }
  .orb-1 { width: 60px; height: 60px; }
  .orb-2 { width: 34px; height: 34px; }
  .orb-3 { width: 44px; height: 44px; }
  .strip-item { padding: 14px 6px; }
  .strip-num { font-size: 17px; }
  .strip-label { font-size: 11px; }

  .section { padding: 40px 0; }
  .section-head { margin-bottom: 24px; }
  .section-title { font-size: 20px; }
  .flow { grid-template-columns: 1fr 1fr; gap: 12px; }
  .flow-item { padding: 20px 14px; }
  .flow-num { width: 38px; height: 38px; font-size: 15px; margin-bottom: 10px; }
  .feature { padding: 20px 18px; }
  .channel-row { gap: 16px 24px; }
  .cta-band { padding: 40px 0; }
  .cta-band h2 { font-size: 19px; }
  .footer-inner { justify-content: center; text-align: center; }

  .main > .container { padding-top: 20px; padding-bottom: 36px; }
  .card { padding: 20px 16px; border-radius: 12px; }
  .page-title { font-size: 19px; }
  .btn { padding: 11px 18px; }

  .step-dot { width: 28px; height: 28px; font-size: 11px; border-width: 1.5px; }
  .step::before { top: 14px; }
  .step-label { font-size: 11px; }

  .pay-amount { font-size: 36px; }
  .pay-methods { gap: 8px; }

  .data-table { font-size: 12.5px; }
  .data-table th, .data-table td { padding: 9px 10px; }

  .admin-main { padding: 14px 12px; }
  .admin-header { padding: 0 14px; height: 52px; }
  .admin-header h1 { font-size: 15px; }
  .stat-card { padding: 14px 16px; }
  .stat-num { font-size: 19px; }
  .detail-grid { grid-template-columns: 1fr; row-gap: 4px; }
  .detail-grid dt { margin-top: 8px; }
}
