/* ============================================================
   5.0支付 · 收款通道系统（PC 端）
   深紫 + 蓝绿渐变 品牌风格
   ============================================================ */
:root {
  --brand-purple: #2b1a5e;
  --brand-purple-dark: #1d1145;
  --brand-purple-light: #3d2a7d;
  --brand-cyan: #19d3c5;
  --brand-blue: #3b82f6;
  --brand-grad: linear-gradient(135deg, #19d3c5 0%, #3b82f6 100%);
  --bg: #f4f5fa;
  --card: #ffffff;
  --text: #1e2340;
  --text-sub: #7a82a5;
  --border: #e6e8f2;
  --danger: #e5484d;
  --ok: #19c37d;
  --warn: #f5a623;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(43, 26, 94, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  /* 科技感页面底色：网格 + 光斑（与登录页/手机端一致，全局应用） */
  background:
    linear-gradient(rgba(123,104,238,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123,104,238,.07) 1px, transparent 1px),
    linear-gradient(rgba(25,211,197,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25,211,197,.035) 1px, transparent 1px),
    radial-gradient(820px 520px at 94% -8%, rgba(123,104,238,.22) 0%, transparent 55%),
    radial-gradient(720px 500px at -6% 110%, rgba(25,211,197,.18) 0%, transparent 50%),
    radial-gradient(520px 360px at 50% 118%, rgba(59,130,246,.10) 0%, transparent 60%),
    linear-gradient(160deg, #efeafb 0%, #e6eefb 100%);
  background-size: 34px 34px, 34px 34px, 170px 170px, 170px 170px, auto, auto, auto, auto;
  background-attachment: fixed;
  overflow-x: hidden;
}
#techCanvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
@keyframes pcScanMove { 0% { top: -25%; } 100% { top: 115%; } }

/* ---------- 通用 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 14px;
  cursor: pointer;
  transition: all .18s;
  font-family: inherit;
}
.btn-primary { background: var(--brand-grad); color: #fff; }
.btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--brand-purple); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--brand-cyan); }
.btn-danger { background: #fff; color: var(--danger); border: 1px solid #f3c6c8; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 6px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.page-title { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.page-sub { color: var(--text-sub); font-size: 13px; margin-bottom: 18px; }

.tag {
  display: inline-block; padding: 2px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.tag-ok { background: #e6f9f0; color: var(--ok); }
.tag-pending { background: #fff4e0; color: var(--warn); }
.tag-off { background: #f0f1f6; color: var(--text-sub); }
.tag-risk { background: #fdecea; color: var(--danger); }

/* ---------- 登录页 ---------- */
.login-page {
  min-height: 100vh;
  background: radial-gradient(900px 600px at 85% -10%, rgba(123,104,238,.30) 0%, transparent 55%),
              radial-gradient(700px 500px at -5% 110%, rgba(25,211,197,.22) 0%, transparent 50%),
              linear-gradient(160deg, #f4efff 0%, #eaf3ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
/* 科技感：透视网格层 */
.login-grid {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(123,104,238,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123,104,238,.10) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 72% 65% at 50% 45%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 72% 65% at 50% 45%, #000 30%, transparent 75%);
  animation: gridDrift 26s linear infinite;
}
@keyframes gridDrift { from { background-position: 0 0, 0 0; } to { background-position: 46px 46px, 46px 46px; } }
/* 科技感：粒子网络画布 */
#techCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1;
}
.login-dots {
  position: absolute;
  width: 520px; height: 520px;
  right: -80px; top: -60px;
  opacity: .55;
  z-index: 1;
}
.login-dots::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(25,211,197,.60) 0 14px, transparent 15px),
    radial-gradient(circle at 60% 12%, rgba(123,104,238,.55) 0 10px, transparent 11px),
    radial-gradient(circle at 80% 45%, rgba(25,211,197,.45) 0 8px, transparent 9px),
    radial-gradient(circle at 42% 62%, rgba(123,104,238,.42) 0 6px, transparent 7px),
    radial-gradient(circle at 75% 78%, rgba(25,211,197,.38) 0 5px, transparent 6px),
    radial-gradient(circle at 20% 85%, rgba(123,104,238,.35) 0 12px, transparent 13px);
  filter: blur(1px);
  animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: .6; } 50% { transform: scale(1.08); opacity: .85; } }

.login-card {
  width: 420px;
  background: rgba(255,255,255,.97);
  border-radius: 20px;
  padding: 40px 36px 28px;
  box-shadow: 0 24px 60px rgba(43,26,94,.14);
  position: relative;
  z-index: 2;
  border: 1px solid rgba(123,104,238,.22);
}
/* 科技感：HUD 角标 + 顶部扫描光 */
.login-card::before,
.login-card::after {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  border-color: rgba(25,211,197,.85);
  border-style: solid;
  border-width: 0;
  transition: all .3s;
}
.login-card::before { top: -1px; left: -1px; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 20px; }
.login-card::after { bottom: -1px; right: -1px; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 20px; }
20%, 42% { opacity: .9; }
  52%, 100% { top: 94%; opacity: 0; }
}
.login-logo {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%;
  gap: 10px; margin-bottom: 8px;
}
.login-logo .mark {
  width: 62px; height: 62px; border-radius: 50%;
  background: none;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(59,130,246,.35), 0 0 0 6px rgba(25,211,197,.10);
  animation: logoGlow 3.2s ease-in-out infinite;
}
@keyframes logoGlow {
  0%,100% { box-shadow: 0 8px 20px rgba(59,130,246,.30), 0 0 0 5px rgba(25,211,197,.08); }
  50% { box-shadow: 0 8px 26px rgba(59,130,246,.45), 0 0 0 9px rgba(25,211,197,.16); }
}
.login-logo .brand-name { text-align: center; font-size: 26px; font-weight: 800; color: var(--brand-purple); letter-spacing: 1px; }
.login-logo .brand-sub { text-align: center; font-size: 12px; color: var(--text-sub); }
.login-title { text-align: center; font-size: 15px; color: var(--text-sub); margin: 8px 0 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-sub); margin-bottom: 6px; font-weight: 600; }
.field input {
  width: 100%; height: 44px; border: 1px solid var(--border);
  border-radius: 10px; padding: 0 14px; font-size: 14px; outline: none;
  transition: border .2s, box-shadow .2s;
}
.field input:focus { border-color: var(--brand-cyan); box-shadow: 0 0 0 3px rgba(25,211,197,.18); }
.login-btn {
  width: 100%; height: 46px; border: none; border-radius: 10px;
  background: var(--brand-grad); color: #fff; font-size: 15px; font-weight: 700;
  cursor: pointer; margin-top: 6px;
  box-shadow: 0 10px 24px rgba(59,130,246,.3);
  transition: all .18s;
  position: relative; overflow: hidden;
}
.login-btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 46px;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.5), transparent);
  transform: translateX(-80px) skewX(-18deg);
  animation: btnShine 3.4s ease-in-out infinite;
}
@keyframes btnShine { 0%,55% { transform: translateX(-80px) skewX(-18deg); } 90%,100% { transform: translateX(480px) skewX(-18deg); } }
.login-btn:hover { transform: translateY(-1px); opacity: .92; }
.login-footer { text-align: center; color: var(--text-sub); font-size: 12px; margin-top: 22px; }
.login-tip { margin-top: 14px; text-align: center; font-size: 12px; color: var(--warn); background: #fff7e6; border-radius: 8px; padding: 8px; }

/* ---------- 后台框架 ---------- */
.layout { display: flex; height: 100vh; overflow: hidden; }
.sidebar {
  width: 232px; flex-shrink: 0;
  background: linear-gradient(180deg, #f6f2ff 0%, #ece8fa 100%);
  color: var(--brand-purple);
  border-right: 1px solid #e4def4;
  display: flex; flex-direction: column;
  position: fixed; left: 0; top: 0; bottom: 0; width: 232px; height: 100vh; z-index: 60;
}
.sidebar .logo {
  display: flex; align-items: center; gap: 10px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(43,26,94,.08);
}
.sidebar .logo .mark {
  width: 42px; height: 42px; border-radius: 50%; background: none;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(59,130,246,.35);
}
.sidebar .logo .name { font-weight: 800; font-size: 17px; letter-spacing: .5px; color: var(--brand-purple); }
.sidebar .logo .sub { font-size: 11px; color: #8a80b8; }
.sidebar .menu { padding: 14px 12px; flex: 1; overflow-y: auto; }
.menu-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 10px;
  cursor: pointer; margin-bottom: 4px; font-size: 14px;
  color: #6b5fa8; transition: all .15s;
  user-select: none;
}
.menu-item:hover { background: rgba(123,104,238,.10); color: var(--brand-purple); }
.menu-item.active { background: var(--brand-grad); color: #fff; font-weight: 600; box-shadow: 0 6px 16px rgba(25,211,197,.28); }
.menu-item .ico { width: 18px; height: 18px; opacity: .9; flex-shrink: 0; }
.sidebar .foot { padding: 16px 20px; border-top: 1px solid rgba(43,26,94,.08); }
.sidebar .foot .merchant-info { margin-bottom: 10px; }
.sidebar .foot .merchant-info .nm { font-size: 13px; font-weight: 600; color: var(--brand-purple); }
.sidebar .foot .merchant-info .no { font-size: 11px; color: #8a80b8; }
.sidebar .foot .logout {
  width: 100%; padding: 8px; border-radius: 8px; border: 1px solid #cfc7ee;
  background: transparent; color: var(--brand-purple); cursor: pointer; font-size: 13px;
}
.sidebar .foot .logout:hover { background: #f0ebff; }
/* 科技感：侧边栏流动光带 */
.sidebar::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, transparent, rgba(25,211,197,.7), rgba(59,130,246,.7), transparent);
  opacity: 0;
  animation: sideScan 4.6s ease-in-out infinite;
}
@keyframes sideScan {
  0%, 10% { opacity: 0; }
  30%, 70% { opacity: 1; }
  100% { opacity: 0; }
}
.menu-item { position: relative; }
.menu-item .badge { position:absolute; right:12px; top:50%; transform:translateY(-50%); min-width:18px; height:18px; padding:0 5px; border-radius:9px; background:#e5484d; color:#fff; font-size:11px; font-style:normal; line-height:18px; text-align:center; box-shadow:0 2px 8px rgba(229,72,77,.4); }
.msg-card { display:flex; gap:12px; align-items:flex-start; cursor:pointer; transition:.2s; }
.msg-card:hover { border-color: rgba(123,104,238,.4); }
.msg-card.unread { background: linear-gradient(90deg, rgba(123,104,238,.05), rgba(255,255,255,0)); border-color: rgba(123,104,238,.35); }
.msg-ic { width:38px; height:38px; border-radius:11px; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }
.msg-card .dot { width:8px; height:8px; border-radius:50%; background:#e5484d; flex-shrink:0; }

.menu-item.active::before {
  content: "";
  position: absolute; left: -12px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 22px; border-radius: 3px;
  background: var(--brand-grad);
  box-shadow: 0 0 10px rgba(25,211,197,.7);
}

.main { flex: 1; min-width: 0; margin-left: 232px; height: 100vh; overflow-y: auto; padding: 24px 28px; }

/* ---------- 统计卡片 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; position: relative; overflow: hidden; }
.stat-card .label { font-size: 13px; color: var(--text-sub); }
.stat-card .value { font-size: 26px; font-weight: 800; margin-top: 8px; color: var(--brand-purple); min-width: 0; line-height: 1.25; word-break: break-all; }
.stat-card .value small { font-size: 13px; font-weight: 600; color: var(--text-sub); }
.stat-card .accent {
  position: absolute; right: -18px; top: -18px; width: 74px; height: 74px; border-radius: 50%;
  background: var(--brand-grad); opacity: .1;
}

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 13.5px; white-space: nowrap; }
th { color: var(--text-sub); font-size: 12.5px; font-weight: 600; background: #fafbff; }
tr:hover td { background: #fafbff; }
.empty { text-align: center; color: var(--text-sub); padding: 40px 0 !important; }
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .grow { flex: 1; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(20,12,48,.5);
  display: none; align-items: center; justify-content: center; z-index: 100;
}
.modal-mask.show { display: flex; }
.modal {
  width: 480px; max-width: 94vw; max-height: 88vh; overflow-y: auto;
  background: #fff; border-radius: 16px; padding: 26px 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
}
.modal h3 { font-size: 18px; margin-bottom: 18px; }
.modal .field-row { display: flex; gap: 12px; }
.modal .field-row .field { flex: 1; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.confirm-box { border:1px solid var(--border); border-radius:10px; padding:4px 14px; margin:4px 0 16px; }
.confirm-box .row { display:flex; justify-content:space-between; gap:14px; padding:9px 0; border-bottom:1px dashed #eef0f8; font-size:13.5px; }
.confirm-box .row:last-child { border-bottom:none; }
.confirm-box .row span { color:var(--sub); flex-shrink:0; }
.confirm-box .row b { font-weight:600; word-break:break-all; text-align:right; }
.confirm-box .row .hl { color:#0f9d92; font-size:16px; font-weight:800; }
.confirm-tip { font-size:12px; color:#b77a16; background:#fff7e6; border-radius:8px; padding:8px 12px; margin:-4px 0 14px; }

/* ---------- 码牌卡片（Happy Payment 版式 · 浅色款，与深紫品牌标识区分） ---------- */
.qr-card-wrap { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.qr-card {
  width: 380px;
  background: linear-gradient(170deg, #ffffff 0%, #f6f2ff 55%, #ece8fa 100%);
  border-radius: 18px;
  border: 1px solid #e4def4;
  padding: 26px 24px 20px;
  color: var(--brand-purple);
  box-shadow: 0 18px 48px rgba(43,26,94,.18);
  position: relative; overflow: hidden;
}
.qr-card::after {
  content: ""; position: absolute; right: -70px; top: -70px; width: 220px; height: 220px;
  background:
    radial-gradient(circle at 40% 40%, rgba(25,211,197,.40) 0 16px, transparent 17px),
    radial-gradient(circle at 62% 30%, rgba(59,130,246,.32) 0 12px, transparent 13px),
    radial-gradient(circle at 30% 62%, rgba(25,211,197,.28) 0 9px, transparent 10px),
    radial-gradient(circle at 70% 70%, rgba(123,104,238,.26) 0 7px, transparent 8px);
  opacity: .55;
}
.qr-card .qc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.qr-card .qc-brand { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 800; letter-spacing: .5px; color: var(--brand-purple); }
.qr-card .qc-brand .mark { width: 30px; height: 30px; border-radius: 9px; background: var(--brand-grad); display: flex; align-items: center; justify-content: center; font-size: 15px; color: #fff; }
.qr-card .qc-id { font-size: 12px; color: #6b5fa8; background: rgba(123,104,238,.10); padding: 4px 10px; border-radius: 20px; }
.qr-card .qc-slogan { text-align: center; font-size: 17px; color: #2b1a5e; letter-spacing: 6px; margin: 12px 0 6px; font-weight: 900; text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.qr-card .qc-qr {
  width: 236px; height: 236px; margin: 8px auto;
  background: #fff; border-radius: 14px; padding: 14px;
  border: 1px solid #e4def4;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.qr-card .qc-qr canvas, .qr-card .qc-qr img { max-width: 100%; max-height: 100%; }
.qc-bank { padding:10px 16px; background:linear-gradient(135deg, rgba(255,255,255,.5), rgba(123,104,238,.06)); border:1px solid rgba(123,104,238,.25); border-radius:14px; margin:2px 14px 6px; }
.qc-bank .qb-row { display:flex; align-items:baseline; gap:10px; padding:7px 0; border-bottom:1px dashed rgba(123,104,238,.2); }
.qc-bank .qb-row:last-child { border-bottom:none; }
.qc-bank .qb-row label { width:64px; font-size:12px; color:#7c72a8; flex-shrink:0; }
.qc-bank .qb-row div { flex:1; font-size:13px; font-weight:700; color:#2b1a5e; word-break:break-all; }
.qc-bank .qb-acct .qb-no { font-family:Consolas,monospace; font-size:14px; letter-spacing:.5px; }
.qc-bank .qb-amt { color:#0fa79b !important; }
.qc-bank .qb-row .qb-copy { flex-shrink:0; margin:0; padding:0 10px; height:26px; font-size:12px; line-height:24px; }
.qr-card .qc-tag { text-align: center; font-size: 13px; font-weight: 600; margin-top: 6px; color: var(--brand-purple); }
.qr-card .qc-tag span { color: #0fa79b; }
.qr-card .qc-credit { text-align: center; font-size: 12px; color: #8a80b8; margin-top: 4px; }
.qr-card .qc-count { text-align: center; font-size: 12px; color: #6b5fa8; margin-top: 6px; font-weight: 600; }
.qr-card .qc-count b { color: #0fa79b; font-size: 15px; letter-spacing: 1px; font-family: Consolas, monospace; }
.qr-card .qc-qr.expired { filter: grayscale(.95) opacity(.5); }
.qr-card .qc-qr.expired::after {
  content: "收款码已失效，请重新生成"; position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: rgba(246,242,255,.82); color: #8a80b8; font-size: 13px; font-weight: 700; border-radius: 14px;
}
.qr-card .qc-icons {
  display: flex; justify-content: center; gap: 20px; margin-top: 12px; padding-top: 12px;
  border-top: 1px dashed #cfc7ee; font-size: 11px; color: #8a80b8;
  align-items: center;
}
.qr-card .qc-icons .pi { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.qr-card .qc-icons .pi .badge { width: 30px; height: 30px; border-radius: 8px; background: rgba(123,104,238,.12); display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--brand-purple); }
.qr-card .qc-safe {
  margin-top: 14px; text-align: center; font-size: 11px; color: #6b5fa8;
  background: rgba(123,104,238,.07); border-radius: 8px; padding: 7px 10px;
}
.qr-tools { flex: 1; min-width: 260px; }
.qr-tools .row { display: flex; gap: 10px; margin-bottom: 14px; align-items: center; }
.qr-tools input, .qr-tools select {
  height: 40px; border: 1px solid var(--border); border-radius: 8px; padding: 0 12px; font-size: 13.5px; outline: none; flex: 1;
}
.qr-tools input:focus, .qr-tools select:focus { border-color: var(--brand-cyan); }
.link-box {
  display: flex; align-items: center; gap: 8px; background: #f4f5fa; border-radius: 8px;
  padding: 8px 12px; margin-bottom: 12px;
}
.link-box .link { flex: 1; font-size: 12.5px; color: var(--text-sub); word-break: break-all; }

/* ---------- 图表 ---------- */
.chart-card { margin-bottom: 20px; }
.svg-chart { width: 100%; height: 220px; }

/* ---------- 提示条 ---------- */
.toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  background: #1d1145; color: #fff; padding: 10px 22px; border-radius: 10px;
  font-size: 13.5px; z-index: 999; box-shadow: 0 10px 30px rgba(0,0,0,.3);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.toast.show { opacity: 1; }
.toast.error { background: var(--danger); }

@media (max-width: 900px) {
  .sidebar { width: 76px; }
  .sidebar .logo .name, .sidebar .logo .sub, .menu-item span, .sidebar .foot { display: none; }
  .sidebar .logo { justify-content: center; padding: 16px 0; }
  .sidebar .menu { padding: 10px 8px; }
  .menu-item { justify-content: center; padding: 14px 0; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .charts-row { grid-template-columns: 1fr; }
  .wallet-hero { grid-template-columns: 1fr; }
}

/* ---------- RemotePay 风格首页 ---------- */
.hero-card {
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(135deg, #e0f2fe 0%, #cfe5fd 55%, #b7d6fb 100%);
  border-radius: 16px; padding: 24px 28px; color: #1e3a8a; position: relative; overflow: hidden;
  box-shadow: 0 14px 34px rgba(59, 130, 246, .18);
}
.hero-card::before {
  content: ""; position: absolute; right: -34px; top: -34px; width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, .35), transparent 70%);
}
.hero-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, .9), rgba(25, 211, 197, .9), transparent);
  animation: mScan 4.8s ease-in-out infinite;
}
@keyframes mScan { 0%,20% { opacity: 0; } 45%,75% { opacity: .9; } 100% { opacity: 0; } }
.hero-label { font-size: 13px; opacity: .8; font-weight: 600; }
.hero-value { font-size: 34px; font-weight: 800; margin: 6px 0 4px; letter-spacing: 1px; min-width: 0; line-height: 1.2; word-break: break-all; }
.hero-sub { font-size: 12.5px; opacity: .8; }
.hero-mark {
  width: 58px; height: 58px; border-radius: 16px; flex-shrink: 0; position: relative;
  background: linear-gradient(135deg, rgba(30, 58, 138, .14), rgba(25, 211, 197, .18));
  display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; color: #1e3a8a;
  box-shadow: inset 0 0 0 1px rgba(30, 58, 138, .22), 0 0 16px rgba(25, 211, 197, .35);
  overflow: hidden;
}
.hero-mark::before { content: ""; position: absolute; inset: 0; border-radius: 16px;
  background: radial-gradient(circle at 30% 30%, rgba(25, 211, 197, .5), transparent 60%); }
.hero-mark::after { content: ""; position: absolute; inset: -4px; border-radius: 20px;
  border: 1px dashed rgba(25, 211, 197, .65); animation: markSpin 9s linear infinite; }
@keyframes markSpin { to { transform: rotate(360deg); } }
.stat-ic {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(25, 211, 197, .16), rgba(59, 130, 246, .16));
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(25, 211, 197, .22), 0 0 12px rgba(59, 130, 246, .18);
}
.stat-ic svg { width: 24px; height: 24px; filter: drop-shadow(0 0 4px currentColor); }
.charts-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 16px; margin-top: 16px; }
.wallet-hero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 16px 0; }
.wh-cell {
  background: linear-gradient(135deg, #f6f2ff 0%, #eef4ff 100%); border-radius: 14px; padding: 18px 20px;
  box-shadow: 0 4px 16px rgba(43, 26, 94, .06);
}
.wh-label { font-size: 12.5px; color: var(--text-sub); font-weight: 600; }
.wh-value { font-size: 23px; font-weight: 800; color: var(--brand-purple); margin-top: 8px; min-width: 0; line-height: 1.3; word-break: break-all; }
.wh-sub { font-size: 12px; color: var(--text-sub); margin-top: 4px; }

/* 数据卡点击互通 */
.clickable { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.clickable:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(76,60,180,.12); }
.wh-cell.clickable:hover { background: linear-gradient(135deg, rgba(59,130,246,.06), rgba(25,211,197,.06)); }

/* ===== 登录安全：拼图滑块 + 动态口令弹窗 ===== */
.otp-mask { position: fixed; inset: 0; z-index: 999; background: rgba(6,4,28,.72); display: flex; align-items: center; justify-content: center; }
.otp-box { width: 320px; max-width: 90vw; background: linear-gradient(160deg,#241a5c,#151043); border: 1px solid rgba(123,104,238,.5); border-radius: 16px; padding: 24px; box-shadow: 0 0 40px rgba(25,211,197,.25); color:#fff; }
.otp-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; color:#fff; }
.otp-sub { font-size: 12px; color: #b9b3e6; margin-bottom: 14px; }
.otp-btns { display: flex; gap: 10px; margin-top: 14px; }
.puzzle-box { width: 340px; }
.puzzle-bg { position: relative; width: 300px; height: 150px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(123,104,238,.5); background: #0d0a2e; margin: 0 auto; }
.puzzle-piece { position: absolute; left: 0; width: 52px; height: 52px; background-size: 300px 150px; background-repeat: no-repeat; cursor: grab; z-index: 3; filter: drop-shadow(0 0 6px rgba(25,211,197,.55)); }
.slider-track { position: relative; height: 44px; border-radius: 22px; margin-top: 14px; background: linear-gradient(90deg,#191447,#241a5c); border: 1px solid rgba(123,104,238,.4); overflow: hidden; user-select: none; }
.slider-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg,#7b68ee,#19d3c5); opacity: .85; }
.slider-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #b9b3e6; z-index: 1; }
.slider-handle { position: absolute; left: 0; top: 0; bottom: 0; width: 44px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#7b68ee,#3b82f6); border-radius: 22px; color: #fff; cursor: grab; z-index: 2; box-shadow: 0 0 12px rgba(123,104,238,.5); }

.login-logo > div { text-align: center; }
