/* ===== 星火系统 · Design System ===== */
:root {
  --bg: #070c16;
  --bg-2: #0a1120;
  --panel: #0f1729;
  --panel-2: #111c33;
  --panel-3: #16233d;
  --border: #1d2c47;
  --border-soft: rgba(255, 255, 255, .06);
  --text: #e8eef9;
  --muted: #8b9bb4;
  --muted-2: #63748f;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --green: #34d399;
  --red: #f87171;
  --amber: #fbbf24;
  --purple: #a78bfa;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .35);
  --mono: "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(59, 130, 246, .10), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(34, 211, 238, .07), transparent 60%),
    var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #1e2d4a; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #2a3f66; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 布局 ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 228px; flex: 0 0 228px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 8px; padding: 20px 14px;
  background: linear-gradient(180deg, rgba(15, 23, 41, .96), rgba(10, 17, 32, .96));
  border-right: 1px solid var(--border); z-index: 30;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 18px; }
.brand .logo {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; font-size: 19px; color: #04121f;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 6px 20px rgba(34, 211, 238, .28);
}
.brand b { display: block; font-size: 16px; letter-spacing: .5px; }
.brand small { display: block; font-size: 10px; color: var(--muted); letter-spacing: 2px; }
.nav { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  color: var(--muted); font-size: 13.5px; transition: .16s; border: 1px solid transparent;
}
.nav a .ico { width: 18px; text-align: center; font-size: 14px; opacity: .9; }
.nav a:hover { background: rgba(255, 255, 255, .035); color: var(--text); }
.nav a.active {
  color: #fff;
  background: linear-gradient(100deg, rgba(59, 130, 246, .28), rgba(34, 211, 238, .12));
  border-color: rgba(59, 130, 246, .35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
}
.nav a.active .ico { color: var(--cyan); }
.side-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.me { display: flex; align-items: center; gap: 10px; padding: 8px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #1e3a8a, #0e7490); font-weight: 700; font-size: 13px;
}
.me .name { font-size: 13px; font-weight: 600; }
.me .role { font-size: 11px; color: var(--muted); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 62px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 12, 22, .78); backdrop-filter: blur(12px);
}
.crumb { font-weight: 600; font-size: 15px; letter-spacing: .3px; }
.top-right { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 12.5px; }
.online-dot { display: inline-flex; align-items: center; gap: 6px; }
.online-dot i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 2s infinite; }
.content { padding: 24px 26px 70px; width: 100%; max-width: 1480px; margin: 0 auto; }

/* ---------- 页面标题 ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 21px; letter-spacing: .4px; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 卡片 / 统计 ---------- */
.grid { display: grid; gap: 16px; }
.stats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 18px;
  position: relative; overflow: hidden;
}
.card.hover:hover { border-color: #2b4166; transform: translateY(-1px); transition: .18s; }
.card-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-title h3 { margin: 0; font-size: 14px; font-weight: 600; }
.card-title .more { color: var(--muted); font-size: 12px; cursor: pointer; }
.stat .label { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 7px; }
.stat .value { font-size: 27px; font-weight: 750; letter-spacing: .3px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.stat .sub { color: var(--muted-2); font-size: 11.5px; margin-top: 6px; }
.stat .unit { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 3px; }
.stat.accent { background: linear-gradient(145deg, rgba(59, 130, 246, .18), var(--panel-2) 60%); border-color: rgba(59, 130, 246, .35); }
.stat.gold { background: linear-gradient(145deg, rgba(251, 191, 36, .13), var(--panel-2) 60%); border-color: rgba(251, 191, 36, .28); }
.stat.green { background: linear-gradient(145deg, rgba(52, 211, 153, .12), var(--panel-2) 60%); border-color: rgba(52, 211, 153, .26); }
.stat.purple { background: linear-gradient(145deg, rgba(167, 139, 250, .13), var(--panel-2) 60%); border-color: rgba(167, 139, 250, .28); }
.stat .value.green { color: var(--green); }
.stat .value.amber { color: var(--amber); }
.stat .value.red { color: var(--red); }
.stat .value.blue { color: #60a5fa; }
.stat .value.cyan { color: var(--cyan); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px; border-radius: 10px; border: 1px solid transparent;
  background: var(--panel-3); color: var(--text); cursor: pointer; font-size: 13px;
  transition: .16s; white-space: nowrap; user-select: none;
}
.btn:hover { filter: brightness(1.12); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #04121f; font-weight: 700; box-shadow: 0 6px 18px rgba(59, 130, 246, .25); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-danger { background: rgba(248, 113, 113, .12); color: var(--red); border-color: rgba(248, 113, 113, .3); }
.btn-success { background: rgba(52, 211, 153, .14); color: var(--green); border-color: rgba(52, 211, 153, .3); }
.btn-warn { background: rgba(251, 191, 36, .12); color: var(--amber); border-color: rgba(251, 191, 36, .3); }
.btn.sm { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.btn.lg { padding: 12px 22px; font-size: 14.5px; }
.btn.block { width: 100%; }
.btn-icon { padding: 6px 9px; }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12.5px; color: var(--muted); }
.field .hint { font-size: 11.5px; color: var(--muted-2); }
.input, .select, textarea {
  width: 100%; background: #0b1424; border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; outline: none; transition: .15s; color: var(--text); font-size: 13.5px;
}
.input:focus, .select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59, 130, 246, .13); }
.input::placeholder, textarea::placeholder { color: #4b5b74; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #6b7c96 50%), linear-gradient(135deg, #6b7c96 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
textarea { min-height: 92px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.check { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; cursor: pointer; }
.check input { accent-color: var(--blue); width: 15px; height: 15px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th {
  text-align: left; font-weight: 500; font-size: 11.5px; color: var(--muted);
  padding: 11px 14px; background: rgba(255, 255, 255, .018);
  border-bottom: 1px solid var(--border); white-space: nowrap; letter-spacing: .3px;
}
td { padding: 12px 14px; border-bottom: 1px solid var(--border-soft); font-size: 13px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(59, 130, 246, .04); }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: .2px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.strong { font-weight: 650; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }

/* ---------- 状态徽章 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; line-height: 1.5; background: rgba(139, 155, 180, .1); color: var(--muted);
  white-space: nowrap;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.green { color: #4ade80; background: rgba(52, 211, 153, .11); }
.badge.blue { color: #60a5fa; background: rgba(59, 130, 246, .13); }
.badge.cyan { color: var(--cyan); background: rgba(34, 211, 238, .11); }
.badge.amber { color: var(--amber); background: rgba(251, 191, 36, .1); }
.badge.red { color: var(--red); background: rgba(248, 113, 113, .1); }
.badge.purple { color: var(--purple); background: rgba(167, 139, 250, .12); }
.badge.gray { color: #94a3b8; background: rgba(148, 163, 184, .1); }

/* ---------- 空状态 / 提示 ---------- */
.empty { padding: 42px 20px; text-align: center; color: var(--muted-2); font-size: 13px; }
.empty .big { font-size: 34px; opacity: .4; margin-bottom: 8px; }
.notice {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 15px; border-radius: 11px;
  background: rgba(59, 130, 246, .08); border: 1px solid rgba(59, 130, 246, .2);
  color: #b9cdf0; font-size: 12.5px; margin-bottom: 16px;
}
.notice.warn { background: rgba(251, 191, 36, .07); border-color: rgba(251, 191, 36, .2); color: #e8d19a; }
.notice.red { background: rgba(248, 113, 113, .07); border-color: rgba(248, 113, 113, .2); color: #f3b3b3; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(3, 7, 15, .72); backdrop-filter: blur(4px);
  z-index: 100; display: flex; align-items: center; justify-content: center; padding: 18px;
  animation: fadeIn .15s ease;
}
.modal {
  width: 100%; max-width: 540px; max-height: 92vh; overflow: auto;
  background: linear-gradient(180deg, #101a2e, #0d1526);
  border: 1px solid #24365a; border-radius: 16px; box-shadow: var(--shadow);
  animation: popIn .18s ease;
}
.modal.wide { max-width: 760px; }
.modal.slim { max-width: 420px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; font-size: 15.5px; }
.modal-close { background: none; border: 0; color: var(--muted); font-size: 20px; cursor: pointer; line-height: 1; padding: 2px 6px; border-radius: 6px; }
.modal-close:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.modal-body { padding: 18px 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border); }
.modal .field:last-child { margin-bottom: 0; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; right: 18px; bottom: 18px; z-index: 300; display: flex; flex-direction: column; gap: 9px; }
.toast {
  min-width: 220px; max-width: 340px; padding: 11px 15px; border-radius: 11px;
  background: #13203a; border: 1px solid #29406b; border-left: 3px solid var(--blue);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4); font-size: 13px; animation: slideUp .2s ease;
}
.toast.ok { border-left-color: var(--green); }
.toast.err { border-left-color: var(--red); }
.toast.warn { border-left-color: var(--amber); }

/* ---------- 标签页 ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tabs button {
  background: none; border: 0; color: var(--muted); padding: 10px 15px; cursor: pointer;
  border-bottom: 2px solid transparent; font-size: 13px; white-space: nowrap; transition: .15s;
}
.tabs button:hover { color: var(--text); }
.tabs button.active { color: #fff; border-bottom-color: var(--cyan); }

/* ---------- 图表 ---------- */
.chart { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding-top: 8px; }
.chart .bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 7px; }
.chart .bar .fill {
  width: 100%; max-width: 34px; border-radius: 6px 6px 3px 3px; min-height: 3px;
  background: linear-gradient(180deg, var(--cyan), rgba(59, 130, 246, .55));
  opacity: .85; transition: height .3s;
}
.chart .bar:hover .fill { opacity: 1; }
.chart .bar span { font-size: 10.5px; color: var(--muted-2); white-space: nowrap; }

/* ---------- 收款码 ---------- */
.code-card { display: flex; flex-direction: column; gap: 12px; }
.code-head { display: flex; align-items: center; justify-content: space-between; }
.qr-box { background: #fff; padding: 7px; border-radius: 10px; display: inline-flex; }
.qr-box img { width: 100%; height: auto; display: block; border-radius: 4px; }
.qr-preview { width: 100%; max-height: 240px; object-fit: contain; }
.code-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.channel-tag { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13px; }
.channel-ico { width: 24px; height: 24px; border-radius: 7px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; }
.channel-ico.wechat { background: #07c160; }
.channel-ico.alipay { background: #1677ff; }
.channel-ico.bank { background: #b91c1c; }

/* ---------- 任务 ---------- */
.task-card { display: flex; flex-direction: column; gap: 13px; }
.task-amount { font-size: 30px; font-weight: 800; letter-spacing: .3px; font-variant-numeric: tabular-nums; }
.task-amount small { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.task-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
.task-row b { color: var(--text); font-weight: 600; }
.countdown { font-family: var(--mono); color: var(--amber); font-weight: 700; }

/* ---------- 充值地址 ---------- */
.addr-box {
  display: flex; align-items: center; gap: 10px; background: #0b1424; border: 1px dashed #2b446e;
  border-radius: 10px; padding: 11px 13px; font-family: var(--mono); font-size: 12px; word-break: break-all;
}
.addr-box .copy { margin-left: auto; cursor: pointer; color: var(--cyan); white-space: nowrap; font-family: inherit; background: none; border: 0; }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 14px; color: var(--muted); font-size: 12.5px; }

/* ---------- 登录 / 注册 ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-left {
  position: relative; overflow: hidden; padding: 54px; display: flex; flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(700px 420px at 20% 10%, rgba(34, 211, 238, .16), transparent 60%),
    radial-gradient(600px 500px at 90% 90%, rgba(59, 130, 246, .2), transparent 60%),
    linear-gradient(160deg, #0a1322, #070c16);
  border-right: 1px solid var(--border);
}
.auth-left .grid-bg {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 78%);
}
.auth-brand { position: relative; display: flex; align-items: center; gap: 12px; }
.auth-brand .logo { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 21px; font-weight: 800; color: #04121f; background: linear-gradient(135deg, var(--cyan), var(--blue)); box-shadow: 0 10px 30px rgba(34, 211, 238, .3); }
.auth-brand b { font-size: 18px; letter-spacing: .5px; }
.auth-brand small { display: block; font-size: 10px; color: var(--muted); letter-spacing: 3px; }
.auth-hero { position: relative; max-width: 520px; }
.auth-hero h2 { font-size: 34px; line-height: 1.3; margin: 0 0 14px; letter-spacing: .5px; }
.auth-hero h2 em { font-style: normal; background: linear-gradient(100deg, var(--cyan), #7dd3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-hero p { color: var(--muted); font-size: 14px; margin: 0 0 26px; }
.auth-feats { display: grid; gap: 12px; }
.auth-feat { display: flex; gap: 12px; align-items: flex-start; }
.auth-feat .fi { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(59, 130, 246, .12); border: 1px solid rgba(59, 130, 246, .25); color: var(--cyan); }
.auth-feat b { display: block; font-size: 13.5px; }
.auth-feat span { color: var(--muted); font-size: 12px; }
.auth-stats { position: relative; display: flex; gap: 36px; }
.auth-stats .as b { display: block; font-size: 21px; font-weight: 750; }
.auth-stats .as span { font-size: 11.5px; color: var(--muted); }
.auth-right { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 390px; }
.auth-card h1 { font-size: 25px; margin: 0 0 6px; letter-spacing: .5px; }
.auth-card .sub { color: var(--muted); font-size: 13px; margin: 0 0 24px; }
.role-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: #0c1526; border: 1px solid var(--border); padding: 4px; border-radius: 11px; margin-bottom: 22px; }
.role-tabs button { background: none; border: 0; padding: 9px 4px; border-radius: 8px; color: var(--muted); cursor: pointer; font-size: 13px; transition: .15s; }
.role-tabs button.active { background: linear-gradient(135deg, rgba(59, 130, 246, .9), rgba(34, 211, 238, .8)); color: #04121f; font-weight: 700; }
.auth-links { display: flex; justify-content: space-between; margin-top: 16px; font-size: 12.5px; color: var(--muted); }
.auth-links a { color: #7dd3fc; }
.auth-foot { margin-top: 26px; text-align: center; color: var(--muted-2); font-size: 11.5px; }

/* ---------- 支付页 ---------- */
.pay-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 22px; }
.pay-card { width: 100%; max-width: 430px; background: linear-gradient(180deg, #101b30, #0b1424); border: 1px solid #23375a; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.pay-head { padding: 20px 22px 16px; text-align: center; border-bottom: 1px solid var(--border); }
.pay-head .shop { font-size: 13px; color: var(--muted); }
.pay-amount { font-size: 40px; font-weight: 800; letter-spacing: .5px; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.pay-amount small { font-size: 18px; color: var(--muted); font-weight: 600; }
.pay-body { padding: 22px; text-align: center; }
.pay-status { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; color: var(--muted); font-size: 13px; }
.pay-timer { font-family: var(--mono); color: var(--amber); font-size: 12.5px; margin-top: 10px; }
.bank-info { text-align: left; background: #0b1424; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin: 6px 0; }
.bank-info .row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 13px; }
.bank-info .row span { color: var(--muted); }
.pay-success { padding: 8px 0 2px; }
.pay-success .tick { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; color: #04121f; background: linear-gradient(135deg, var(--green), #22d3ee); }
.pay-success h2 { margin: 0 0 6px; font-size: 20px; }
.pay-success p { color: var(--muted); font-size: 13px; margin: 0; }

/* ---------- 工具 ---------- */
.flex { display: flex; }
.between { justify-content: space-between; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-14 { gap: 14px; }
.mt-8 { margin-top: 8px; } .mt-14 { margin-top: 14px; } .mt-20 { margin-top: 20px; }
.mb-0 { margin-bottom: 0; } .mb-14 { margin-bottom: 14px; } .mb-20 { margin-bottom: 20px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.text-green { color: var(--green); } .text-red { color: var(--red); } .text-amber { color: var(--amber); } .text-cyan { color: var(--cyan); }
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.copy-inline { cursor: pointer; color: var(--cyan); font-size: 12px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scroll-y { overflow-y: auto; }
.mini-list { display: flex; flex-direction: column; gap: 10px; }
.mini-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); font-size: 12.5px; }
.mini-item:last-child { border-bottom: 0; }
.dot-sep { color: #334155; margin: 0 6px; }
.kv { display: grid; grid-template-columns: 92px 1fr; gap: 8px 12px; font-size: 13px; }
.kv .k { color: var(--muted); }

/* ---------- 双列 / 任务码 / 筛选 ---------- */
.cols-2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; align-items: start; }
.cols-2.equal { grid-template-columns: 1fr 1fr; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.task-code { display: flex; justify-content: center; }
.task-code .qr-box img { width: 170px; }
.task-qr { text-align: center; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filter-bar .input, .filter-bar .select { width: auto; min-width: 130px; padding: 8px 11px; font-size: 12.5px; }
.filter-bar .search { min-width: 200px; flex: 1; max-width: 300px; }
.code-block {
  background: #08101f; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px;
  font-family: var(--mono); font-size: 12px; color: #a9c4e8; overflow-x: auto; line-height: 1.75;
  white-space: pre; margin: 0;
}
.key-row { display: flex; align-items: center; gap: 8px; background: #0b1424; border: 1px solid var(--border); border-radius: 9px; padding: 9px 12px; margin-bottom: 10px; }
.key-row .k { color: var(--muted); font-size: 12px; width: 70px; flex: 0 0 70px; }
.key-row .v { font-family: var(--mono); font-size: 12px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.pill-btns button { border: 1px solid var(--border); background: #0c1526; color: var(--muted); border-radius: 8px; padding: 7px 12px; cursor: pointer; font-size: 12.5px; }
.pill-btns button.active { border-color: rgba(34, 211, 238, .5); color: var(--cyan); background: rgba(34, 211, 238, .08); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.order-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; font-size: 13px; }
.order-detail-grid .k { color: var(--muted); font-size: 12px; }
.pay-link { display: flex; gap: 8px; align-items: center; background: #0b1424; border: 1px dashed #2b446e; border-radius: 9px; padding: 9px 12px; }
.pay-link input { background: none; border: 0; color: var(--cyan); font-family: var(--mono); font-size: 12px; flex: 1; outline: none; }
.progress { height: 8px; background: #0b1424; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; margin: 2px 0 8px; }
.progress i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--blue)); transition: width .3s; }
.payment-mini { margin: 0; }
.payment-mini .mini-item { padding: 7px 0; }
@media (max-width: 980px) {
  .cols-2, .cols-2.equal, .cols-3 { grid-template-columns: 1fr; }
  .order-detail-grid { grid-template-columns: 1fr; }
}


/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .app { display: block; }
  .sidebar { position: sticky; top: 0; width: 100%; height: auto; flex-direction: column; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--border); gap: 8px; }
  .brand { padding: 2px 4px; }
  .brand .logo { width: 34px; height: 34px; font-size: 16px; border-radius: 10px; }
  .brand b { font-size: 14px; }
  .brand small { display: none; }
  .nav { flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 2px; }
  .nav a { padding: 7px 11px; font-size: 12.5px; white-space: nowrap; }
  .nav a .ico { display: none; }
  .side-foot { display: none; }
  .topbar { padding: 0 16px; height: 54px; }
  .content { padding: 16px 14px 50px; }
  .page-head h1 { font-size: 18px; }
  .stat .value { font-size: 23px; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { padding: 30px 18px; }
  .auth-card { max-width: 420px; }
  .modal-mask { padding: 10px; align-items: flex-end; }
  .modal { max-height: 94vh; border-radius: 16px 16px 12px 12px; }
  .toast-wrap { left: 14px; right: 14px; bottom: 14px; }
  .toast { max-width: none; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 13px; }
  .stat .value { font-size: 20px; }
  .card { padding: 14px; }
  .qr-box img { width: 100%; }
}

/* ===== 会员端 · 现货黄金交易皮肤 ===== */
body.member-gold {
  --gold: #f3c969;
  --gold-2: #d6a63c;
  --gold-dim: rgba(243, 201, 105, .16);
  background:
    radial-gradient(1100px 560px at 82% -8%, rgba(243, 201, 105, .10), transparent 62%),
    radial-gradient(900px 520px at -8% 108%, rgba(214, 166, 60, .06), transparent 60%),
    #070b12;
}
body.member-gold .sidebar {
  background: linear-gradient(180deg, rgba(13, 18, 28, .98), rgba(7, 11, 18, .98));
  border-right-color: rgba(243, 201, 105, .14);
}
body.member-gold .brand .logo {
  background: linear-gradient(135deg, #ffe39a, #c8952f);
  color: #1b1305;
  box-shadow: 0 8px 24px rgba(243, 201, 105, .26);
}
body.member-gold .nav a.active {
  color: #fff;
  background: linear-gradient(100deg, rgba(243, 201, 105, .22), rgba(214, 166, 60, .06));
  border-color: rgba(243, 201, 105, .35);
}
body.member-gold .nav a.active .ico { color: var(--gold); }
body.member-gold .topbar { border-bottom-color: rgba(243, 201, 105, .12); }
body.member-gold .btn-primary {
  background: linear-gradient(135deg, #ffe29a, #d2a23a);
  color: #211704;
  border-color: rgba(255, 226, 154, .7);
  box-shadow: 0 6px 18px rgba(243, 201, 105, .16);
}
body.member-gold .btn-primary:hover { filter: brightness(1.06); }
body.member-gold .stat.gold .value { color: var(--gold); }

.gold-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(243, 201, 105, .20);
  border-radius: 18px;
  background:
    radial-gradient(700px 260px at 88% -30%, rgba(243, 201, 105, .16), transparent 65%),
    linear-gradient(145deg, #111827, #0b1220 55%, #0d1421);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .32);
  padding: 20px 22px 14px;
  margin-bottom: 20px;
}
.gold-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(243, 201, 105, .04), transparent);
  transform: skewX(-18deg) translateX(-70%);
  animation: goldSheen 6s linear infinite;
  pointer-events: none;
}
@keyframes goldSheen { 0% { transform: skewX(-18deg) translateX(-70%); } 100% { transform: skewX(-18deg) translateX(70%); } }
.gold-hero-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; position: relative; z-index: 1; }
.gold-pair { display: flex; align-items: center; gap: 12px; }
.gold-coin {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  font-weight: 800; font-size: 15px; color: #231804;
  background: linear-gradient(135deg, #ffe7a8, #c8952f);
  box-shadow: 0 8px 22px rgba(243, 201, 105, .22);
}
.gold-pair h2 { margin: 0; font-size: 20px; letter-spacing: .3px; }
.gold-pair h2 small { font-size: 12px; font-weight: 500; color: var(--gold); margin-left: 6px; letter-spacing: 0; }
.gold-pair p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.live-dot {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; color: var(--gold);
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
}
.live-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #35d39a; box-shadow: 0 0 8px rgba(53,211,154,.9); animation: livePulse 1.4s ease-in-out infinite; }
@keyframes livePulse { 50% { opacity: .35; } }
.gold-quote { text-align: right; }
.gold-quote strong { display: block; font-family: var(--mono); font-size: clamp(26px, 4vw, 38px); letter-spacing: .5px; color: #fff5d8; text-shadow: 0 0 24px rgba(243,201,105,.22); }
.gold-change { display: inline-block; margin-top: 3px; font-family: var(--mono); font-size: 12px; font-weight: 700; }
.gold-change.up { color: #35d39a; }
.gold-change.down { color: #f26d6d; }
.gold-meta { display: flex; flex-wrap: wrap; gap: 18px; margin: 10px 0 2px; color: var(--muted); font-size: 12px; position: relative; z-index: 1; }
.gold-meta b { color: #d9e4f5; font-family: var(--mono); font-weight: 500; margin-left: 4px; }
.gold-period { margin-left: auto; color: var(--gold); border: 1px solid rgba(243,201,105,.25); border-radius: 6px; padding: 1px 8px; font-size: 11px; }
.gold-chart-wrap { position: relative; z-index: 1; margin: 4px -6px 0; }
.gold-chart-wrap canvas { display: block; width: 100%; height: 260px; }
.gold-strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255,255,255,.055); padding-top: 9px; color: var(--muted-2); font-size: 11px; position: relative; z-index: 1; }
@media (max-width: 760px) {
  .gold-hero { padding: 15px 14px 10px; border-radius: 14px; }
  .gold-hero-head { flex-direction: column; }
  .gold-quote { text-align: left; }
  .gold-chart-wrap canvas { height: 210px; }
  .gold-meta { gap: 10px; font-size: 11px; }
}
