:root {
  --blue: #2b7cf6;
  --blue-deep: #1554c0;
  --grad: linear-gradient(135deg, #4a9cff 0%, #2b7cf6 55%, #1a5fd6 100%);
  --ink: #1c2b3a;
  --muted: #6b7a8c;
  --bg: #f5f8fc;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Segoe UI", "Microsoft YaHei", sans-serif; color: var(--ink); background: var(--bg); }
[hidden] { display: none !important; }

/* 导航 */
.navbar { background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 10; }
.nav-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }
.logo { font-size: 22px; font-weight: 800; color: var(--blue); letter-spacing: .5px; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-user { color: var(--muted); font-size: 14px; }

/* 按钮 */
.btn { border: none; border-radius: 22px; padding: 9px 22px; font-size: 14px; cursor: pointer; transition: .18s; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-deep); }
.btn.ghost { background: #fff; color: var(--blue); border: 1px solid var(--blue); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.white { background: #fff; color: var(--blue); }
.btn.wide { width: 100%; margin-top: 14px; }
.btn.small { padding: 5px 12px; font-size: 12px; }
.btn.danger { background: #e5484d; color: #fff; }
.btn.warn { background: #f5a623; color: #fff; }

/* 落地页 */
.hero { background: var(--grad); color: #fff; padding: 80px 24px; display: flex; max-width: 1180px; margin: 0 auto; gap: 40px; align-items: center; flex-wrap: wrap; }
.hero h1 { font-size: 44px; line-height: 1.2; }
.hero .sub { font-size: 20px; margin: 12px 0 18px; opacity: .95; }
.hero-points { list-style: none; font-size: 15px; opacity: .92; }
.hero-points li { margin: 6px 0; }
.hero-cta { margin-top: 28px; display: flex; gap: 14px; }
.hero-cards { position: relative; flex: 1; min-width: 320px; height: 300px; }
.vcard { position: absolute; width: 250px; height: 155px; border-radius: 16px; box-shadow: 0 14px 34px rgba(0,0,0,.28); }
.card-orange { background: linear-gradient(135deg, #ffb347, #f57c1f); transform: rotate(-12deg); left: 0; top: 30px; }
.card-blue { background: linear-gradient(135deg, #66aaff, #1e64d8); transform: rotate(4deg); left: 140px; top: 90px; }
.card-green { background: linear-gradient(135deg, #7ed88f, #2ea75e); transform: rotate(18deg); right: 0; top: 0; }
.vbrand { position: absolute; bottom: 12px; right: 18px; font-weight: 800; font-style: italic; font-size: 22px; color: rgba(255,255,255,.9); }

.section { max-width: 1180px; margin: 0 auto; padding: 64px 24px; }
.section h2 { text-align: center; font-size: 30px; margin-bottom: 14px; }
.center { text-align: center; color: var(--muted); max-width: 760px; margin: 0 auto 40px; }
.dark-band { background: #0e1b2c; color: #fff; max-width: none; }
.dark-band h2 { color: #fff; }
.dark-band .center { color: #9db4cc; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; max-width: 1180px; margin: 0 auto; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.feature { background: rgba(255,255,255,.06); border-radius: 12px; padding: 24px; }
.section:not(.dark-band) .feature { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.feature h3, .feature h4 { margin-bottom: 10px; }
.feature p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.dark-band .feature p { color: #9db4cc; }
.footer { text-align: center; padding: 32px; color: var(--muted); font-size: 13px; }

/* 登录 */
.auth-box { max-width: 380px; margin: 80px auto; background: #fff; border-radius: 14px; padding: 32px; box-shadow: 0 6px 26px rgba(0,0,0,.08); display: flex; flex-direction: column; gap: 12px; }
.tabs { display: flex; gap: 8px; margin-bottom: 8px; }
.tab { flex: 1; border: none; background: #eef3fb; padding: 10px; border-radius: 8px; cursor: pointer; font-size: 15px; }
.tab.active { background: var(--blue); color: #fff; }
input { padding: 11px 14px; border: 1px solid #d7e1ee; border-radius: 8px; font-size: 14px; outline: none; }
input:focus { border-color: var(--blue); }

/* 控制台 */
.dash-nav { max-width: 1180px; margin: 24px auto 0; display: flex; gap: 10px; padding: 0 24px; }
.dash-nav .tab { background: #fff; color: var(--muted); border-radius: 20px; }
.dash-nav .tab.active { background: var(--blue); color: #fff; }
.dash-panel { max-width: 1180px; margin: 20px auto; background: #fff; border-radius: 14px; padding: 28px; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.row-between { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.wallet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.wallet-card { background: var(--grad); color: #fff; border-radius: 14px; padding: 22px; }
.wallet-card h4 { opacity: .9; font-size: 14px; }
.wallet-card .amt { font-size: 28px; font-weight: 700; margin-top: 8px; }

/* 虚拟卡 */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.vcard-full { position: relative; height: 180px; border-radius: 16px; color: #fff; padding: 20px; box-shadow: 0 10px 26px rgba(0,0,0,.22); overflow: hidden; }
.vcard-full.frozen { filter: grayscale(.7); }
.vcard-full .num { font-size: 19px; letter-spacing: 2px; margin-top: 34px; font-family: monospace; }
.vcard-full .meta { display: flex; gap: 26px; margin-top: 16px; font-size: 13px; opacity: .95; }
.vcard-full .meta b { display: block; font-size: 15px; }
.vcard-full .status-badge { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,.22); padding: 3px 12px; border-radius: 12px; font-size: 12px; }
.vcard-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* 表格 */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 2px solid #eef2f7; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid #f1f4f8; }
.tbl tr:hover td { background: #f8fbff; }

/* 弹窗 */
.modal { position: fixed; inset: 0; background: rgba(10,22,40,.5); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal-box { background: #fff; border-radius: 14px; padding: 28px; width: min(440px, 92vw); display: flex; flex-direction: column; gap: 12px; }
.modal-box h3 { margin-bottom: 4px; }
.modal-box select { padding: 11px 14px; border: 1px solid #d7e1ee; border-radius: 8px; font-size: 14px; }

.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 22px; border-radius: 24px; font-size: 14px; z-index: 60; }
.chk { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.chk input { width: auto; }
.mono { font-family: monospace; word-break: break-all; }
.totp-box { margin-top: 18px; padding: 16px; background: #eef5ff; border-radius: 10px; display: flex; flex-direction: column; gap: 10px; }

/* ---- 侧边栏工作台布局 ---- */
.shell { display: flex; max-width: 1400px; margin: 0 auto; min-height: calc(100vh - 60px); }
.side { width: 210px; flex-shrink: 0; background: #fff; padding: 16px 10px; border-right: 1px solid #eef2f7; }
.side-item { padding: 11px 14px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--ink); margin: 2px 0; }
.side-item:hover { background: #eef5ff; color: var(--blue); }
.side-item.active { background: #eef5ff; color: var(--blue); font-weight: 700; }
.side-group { padding: 12px 14px 4px; font-size: 13px; color: var(--muted); cursor: pointer; }
.side-sub .side-item { padding-left: 26px; }
.side-sub.collapsed { display: none; }
.main { flex: 1; padding: 20px; min-width: 0; }
.panel-wrap > .panel { margin-bottom: 18px; }
.panel { background: #fff; border-radius: 12px; padding: 22px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }

/* 数据看板 */
.board-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.board-grid .panel:nth-child(3) { grid-column: 1; }
.bal-label { font-size: 15px; }
.bal-num { font-size: 22px; letter-spacing: 2px; }
.eye { cursor: pointer; margin: 0 10px; }
.bal-label .btn { margin-left: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.chart { width: 100%; height: 120px; }
.chart-days { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }
.bar { fill: var(--blue); }
.msg { font-size: 13px; color: var(--muted); padding: 10px 0; border-bottom: 1px dashed #eef2f7; line-height: 1.6; }
.tag { background: #eef5ff; color: var(--blue); border-radius: 4px; padding: 1px 8px; font-size: 12px; margin-right: 8px; }
.small-cards { position: relative; height: 190px; margin: 16px 0; }
.donut-wrap { display: flex; align-items: center; gap: 24px; }
.donut { width: 130px; height: 130px; }
.legend { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }
.dot.g { background: #2ea75e; } .dot.r { background: #e5484d; } .dot.y { background: #f5a623; }
.stat2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.stat-box { background: #f7fafd; border-radius: 10px; padding: 14px; }
.stat-box .amt { font-size: 22px; font-weight: 700; margin-top: 6px; }

@media (max-width: 900px) {
  .shell { flex-direction: column; }
  .side { width: 100%; display: flex; flex-wrap: wrap; gap: 4px; }
  .side-group, .side-sub { display: none; }
  .board-grid { grid-template-columns: 1fr; }
}

/* 面包屑 / 筛选表单 / 页签 / 表格操作列 */
.crumb { font-size: 14px; color: var(--muted); padding: 4px 6px 12px; }
.filter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 24px; align-items: end; }
.f-item { display: flex; align-items: center; gap: 10px; }
.f-item label { min-width: 72px; text-align: right; font-size: 13px; color: var(--muted); }
.f-item input, .f-item select { flex: 1; }
.f-btns { display: flex; gap: 8px; justify-content: flex-end; grid-column: span 1; }
.kyc-form { margin-top: 18px; }
.tabs-line { display: flex; gap: 26px; padding: 4px 8px 0; border-bottom: 2px solid #eef2f7; margin-bottom: 14px; }
.tab-l { padding: 10px 2px; font-size: 14px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab-l.active { color: var(--blue); border-color: var(--blue); font-weight: 700; }
.tbl .ops a { color: var(--blue); margin-right: 8px; font-size: 13px; text-decoration: none; }
.tbl .ops a:hover { text-decoration: underline; }
.badge { background: rgba(255,255,255,.25); border-radius: 4px; padding: 1px 6px; font-size: 12px; }
.alert-warn { background: #fdecec; color: #c0392b; font-size: 13px; padding: 10px 16px; border-radius: 6px; margin-bottom: 14px; }
.kyc-steps { display: flex; justify-content: space-around; align-items: center; background: #f7fafd; border-radius: 8px; padding: 14px; color: var(--muted); font-size: 14px; }
.kyc-steps .arr { font-size: 18px; }
.profile-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; border-bottom: 1px solid #f1f4f8; font-size: 14px; }
.link { color: var(--blue); text-decoration: none; }
.link.danger { color: #e5484d; }
.modal-box textarea { padding: 11px 14px; border: 1px solid #d7e1ee; border-radius: 8px; font-size: 14px; font-family: inherit; }
.badge.r { background: #fdecec; color: #c0392b; }
.badge.y { background: #fdf3e0; color: #b8860b; }
.badge.g { background: #e8f7ee; color: #2ea75e; }

@media (max-width: 720px) {
  .hero { padding: 48px 20px; }
  .hero h1 { font-size: 32px; }
  .hero-cards { height: 240px; min-width: 260px; }
  .vcard { width: 190px; height: 118px; }
  .dash-panel { padding: 18px; }
  .tbl { font-size: 12px; }
}
