/* ===== 云结算中心 · 全局样式 ===== */
:root {
  --brand: #4338ca;
  --brand-600: #4f46e5;
  --brand-700: #3730a3;
  --brand-50: #eef2ff;
  --brand-100: #e0e7ff;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --line: #e9ecf3;
  --bg: #f5f6fa;
  --card: #ffffff;
  --ok: #10b981;
  --ok-bg: #ecfdf5;
  --warn: #f59e0b;
  --warn-bg: #fffbeb;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 28px -16px rgba(16, 24, 40, .18);
  --shadow-lg: 0 24px 60px -20px rgba(17, 24, 39, .28);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
button { font-family: inherit; }
::selection { background: #ddd6fe; }

/* ---------- 布局 ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.page-main { padding-top: 26px; padding-bottom: 40px; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { height: 62px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; color: var(--ink); white-space: nowrap; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #4338ca);
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 700;
  box-shadow: 0 6px 16px -6px rgba(67, 56, 202, .6);
}
.brand small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: .04em; }
.topnav { display: flex; gap: 4px; flex: 1; }
.topnav a {
  padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-size: 14px; transition: .18s;
}
.topnav a:hover { background: #f1f2f7; color: var(--ink); }
.topnav a.active { background: var(--brand-50); color: var(--brand); font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.user-chip { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #a5b4fc, #818cf8); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 22px 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 15px; }
.card-head .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.section-title h2 { font-size: 20px; }
.section-title .desc { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); font-size: 13.5px; font-weight: 500; cursor: pointer;
  transition: .18s; white-space: nowrap; text-decoration: none;
}
.btn:hover { border-color: #d6dae6; background: #fafbff; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: linear-gradient(180deg, #5b52e0, #4338ca); border-color: var(--brand); color: #fff;
  box-shadow: 0 8px 18px -10px rgba(67, 56, 202, .9);
}
.btn-primary:hover { background: linear-gradient(180deg, #635bed, #3f35c4); border-color: var(--brand-700); color: #fff; }
.btn-soft { background: var(--brand-50); border-color: transparent; color: var(--brand); }
.btn-soft:hover { background: var(--brand-100); border-color: transparent; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { background: #f2f3f8; color: var(--ink); }
.btn-danger { color: var(--danger); border-color: #fecaca; background: #fff; }
.btn-danger:hover { background: var(--danger-bg); border-color: #fca5a5; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-icon { width: 32px; height: 32px; padding: 0; border-radius: 8px; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); font-weight: 500; margin-bottom: 7px; }
.field label .req { color: var(--danger); }
.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid #dfe3ec;
  background: #fff; font-size: 14px; color: var(--ink); font-family: inherit; outline: none; transition: .16s;
}
.textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.6; }
.input:hover, .select:hover, .textarea:hover { border-color: #cfd5e2; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(79, 70, 229, .12); }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input-group { position: relative; }
.input-group .input { padding-right: 42px; }
.input-group .eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border: 0; background: transparent; color: var(--muted); cursor: pointer;
  display: grid; place-items: center; border-radius: 6px;
}
.input-group .eye:hover { background: #f2f3f8; color: var(--ink); }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--brand-600); }

/* ---------- 统计卡 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.stat .label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.stat .value { font-size: 27px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat .value small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.stat .foot { font-size: 12px; color: var(--muted); margin-top: 6px; }
.stat .ico {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  position: absolute; right: 18px; top: 16px; background: var(--brand-50); color: var(--brand);
}
.stat .ico svg { width: 19px; height: 19px; }
.stat.green .ico { background: var(--ok-bg); color: var(--ok); }
.stat.amber .ico { background: var(--warn-bg); color: #d97706; }
.stat.violet .ico { background: #f5f3ff; color: #7c3aed; }

/* ---------- 表格 ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left; font-weight: 600; font-size: 12.5px; color: var(--muted);
  background: #fafbfe; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table th:first-child { padding-left: 24px; }
.table th:last-child { padding-right: 24px; }
.table td { padding: 13px 14px; border-bottom: 1px solid #f1f3f8; vertical-align: middle; color: var(--ink-2); }
.table td:first-child { padding-left: 24px; }
.table td:last-child { padding-right: 24px; }
.table tbody tr:hover { background: #fbfcff; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.table .money { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.table .name { font-weight: 500; color: var(--ink); }
.table .time { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.table .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.table-empty { padding: 46px 0; text-align: center; color: var(--muted); }

/* ---------- 标签 ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 23px; padding: 0 9px;
  border-radius: 999px; font-size: 12px; font-weight: 500; background: #f1f2f7; color: var(--ink-2); white-space: nowrap;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.chip.plain::before { display: none; }
.chip.green { background: var(--ok-bg); color: #047857; }
.chip.amber { background: var(--warn-bg); color: #b45309; }
.chip.red { background: var(--danger-bg); color: #b91c1c; }
.chip.indigo { background: var(--brand-50); color: var(--brand); }
.chip.gray { background: #f3f4f6; color: #6b7280; }
.chip.plain { background: #f6f7fb; color: var(--ink-2); }

/* ---------- 提示条 ---------- */
.alert {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 12px;
  font-size: 13px; line-height: 1.6; border: 1px solid transparent;
}
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.alert.info { background: var(--brand-50); color: #3730a3; border-color: #e0e7ff; }
.alert.warn { background: var(--warn-bg); color: #92400e; border-color: #fde68a; }
.alert.ok { background: var(--ok-bg); color: #065f46; border-color: #d1fae5; }
.alert strong { font-weight: 600; }
.alert .alert-action { margin-left: auto; flex: none; }

/* ---------- 标签页 ---------- */
.tabs { display: inline-flex; padding: 3px; background: #f1f2f7; border-radius: 10px; gap: 2px; }
.tabs button {
  border: 0; background: transparent; padding: 6px 14px; border-radius: 8px; font-size: 13px;
  color: var(--muted); cursor: pointer; transition: .18s; white-space: nowrap;
}
.tabs button.active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }

/* ---------- 工具栏 ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar .grow { flex: 1; }
.search { position: relative; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted-2); }
.search .input { padding-left: 34px; min-width: 200px; }
.select-wrap { position: relative; }
.select-wrap .select { min-width: 130px; padding-right: 30px; appearance: none; }
.select-wrap::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}

/* ---------- 空状态 ---------- */
.empty { padding: 54px 20px; text-align: center; color: var(--muted); }
.empty .icon { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 16px; background: #f4f5f9; display: grid; place-items: center; color: #a5aec0; }
.empty .icon svg { width: 26px; height: 26px; }
.empty h4 { font-size: 14px; color: var(--ink-2); margin-bottom: 4px; }
.empty p { font-size: 12.5px; }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.pager .btns { display: flex; gap: 6px; }

/* ---------- 弹窗 ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(17, 24, 39, .42);
  backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fade .18s ease;
}
.modal {
  width: 100%; max-width: 520px; max-height: 88vh; overflow: auto; background: #fff; border-radius: 18px;
  box-shadow: var(--shadow-lg); animation: pop .22s cubic-bezier(.2, .9, .3, 1.1);
}
.modal.wide { max-width: 760px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 0; }
.modal-head h3 { font-size: 17px; }
.modal-head .sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.modal-close { width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.modal-close:hover { background: #f3f4f8; color: var(--ink); }
.modal-body { padding: 18px 24px 6px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px 22px; }
@keyframes fade { from { opacity: 0 } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98) } }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; top: 18px; left: 0; right: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 9px; padding: 10px 16px; background: #111827; color: #fff;
  border-radius: 10px; font-size: 13px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .4); animation: drop .22s ease;
  max-width: 90vw;
}
.toast.ok { background: #065f46; }
.toast.err { background: #991b1b; }
.toast svg { width: 15px; height: 15px; }
@keyframes drop { from { opacity: 0; transform: translateY(-12px) } }

/* ---------- 登录页 ---------- */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: #fff; }
.auth-hero {
  position: relative; overflow: hidden; padding: 56px 64px; color: #fff;
  background: radial-gradient(1200px 600px at 10% 0%, #6366f1 0%, #4338ca 45%, #312e81 100%);
  display: flex; flex-direction: column;
}
.auth-hero::before, .auth-hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(10px); opacity: .5;
}
.auth-hero::before { width: 420px; height: 420px; right: -140px; top: -120px; background: radial-gradient(circle, #a78bfa, transparent 70%); }
.auth-hero::after { width: 500px; height: 500px; left: -180px; bottom: -220px; background: radial-gradient(circle, #38bdf8, transparent 70%); opacity: .35; }
.auth-hero .brand { color: #fff; position: relative; z-index: 2; }
.auth-hero .brand small { color: rgba(255, 255, 255, .65); }
.auth-hero .hero-body { position: relative; z-index: 2; margin: auto 0; max-width: 460px; }
.auth-hero h1 { font-size: 34px; line-height: 1.3; letter-spacing: -.02em; margin-bottom: 16px; font-weight: 700; }
.auth-hero .lead { font-size: 14.5px; color: rgba(255, 255, 255, .78); line-height: 1.8; }
.hero-points { margin-top: 34px; display: grid; gap: 14px; }
.hero-point { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: rgba(255, 255, 255, .9); }
.hero-point .dot { width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; flex: none; }
.hero-point .dot svg { width: 15px; height: 15px; }
.hero-point b { display: block; font-size: 13.5px; }
.hero-point span { color: rgba(255, 255, 255, .62); font-size: 12.5px; }
.auth-hero .foot { position: relative; z-index: 2; font-size: 12px; color: rgba(255, 255, 255, .45); }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #fcfcfe; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h2 { font-size: 25px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 26px; }
.auth-mobile-brand { display: none; }
.auth-switch { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }
.demo-box { margin-top: 22px; padding: 12px 14px; border-radius: 10px; background: #f6f7fb; font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.demo-box b { color: var(--ink-2); }

/* ---------- 用户端 ---------- */
.hero-card {
  position: relative; overflow: hidden; border-radius: 18px; padding: 26px 28px; color: #fff;
  background: linear-gradient(120deg, #4f46e5 0%, #4338ca 45%, #6d28d9 100%);
  box-shadow: 0 18px 40px -24px rgba(67, 56, 202, .9);
}
.hero-card::after {
  content: ""; position: absolute; width: 320px; height: 320px; right: -80px; top: -140px;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 65%); border-radius: 50%;
}
.hero-card .hello { font-size: 13px; color: rgba(255, 255, 255, .72); }
.hero-card h2 { font-size: 24px; margin: 4px 0 18px; }
.hero-card .metrics { display: flex; gap: 42px; flex-wrap: wrap; position: relative; z-index: 2; }
.hero-card .metric small { display: block; font-size: 12px; color: rgba(255, 255, 255, .68); margin-bottom: 2px; }
.hero-card .metric b { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hero-pay { position: relative; z-index: 2; }

.grid-2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stack { display: grid; gap: 18px; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-8 { margin-top: 8px; }
.section-actions { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.strong { font-weight: 600; }
.right { text-align: right; }
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grow { flex: 1; }

/* 项目卡 */
.project-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; transition: .2s; }
.project-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.project-card .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.project-card h4 { font-size: 15.5px; }
.project-card .desc { font-size: 12.8px; color: var(--muted); line-height: 1.7; min-height: 44px; }
.project-card .price { font-size: 24px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.project-card .price small { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.project-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px dashed #ebedf4; }

/* 结算卡 */
.settle-item { display: flex; align-items: center; gap: 16px; padding: 15px 0; border-bottom: 1px solid #f1f3f8; }
.settle-item:last-child { border-bottom: 0; }
.settle-item .body { flex: 1; min-width: 0; }
.settle-item .title { font-weight: 500; color: var(--ink); font-size: 13.5px; }
.settle-item .meta { font-size: 12.3px; color: var(--muted); margin-top: 3px; }
.settle-item .amt { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 简单柱状图 */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; padding-top: 10px;
  background-image: linear-gradient(to top, #f1f3f9 1px, transparent 1px); background-size: 100% 30px; border-radius: 6px; }
.bars .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bars .bar { width: 100%; max-width: 26px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #818cf8, #4338ca); transition: .3s; min-height: 3px; }
.bars .bar.zero { background: #e8eaf2; }
.bars .bar-label { font-size: 11px; color: var(--muted-2); }

/* ---------- 管理端 ---------- */
.admin-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 228px; flex: none; background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.side-nav { padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; }
.side-nav .group { font-size: 11px; color: var(--muted-2); padding: 14px 12px 6px; letter-spacing: .06em; }
.side-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px;
  color: var(--ink-2); font-size: 13.5px; cursor: pointer; border: 0; background: transparent; text-align: left; width: 100%;
}
.side-link svg { width: 17px; height: 17px; color: #98a2b3; flex: none; }
.side-link:hover { background: #f6f7fb; color: var(--ink); }
.side-link.active { background: var(--brand-50); color: var(--brand); font-weight: 600; }
.side-link.active svg { color: var(--brand); }
.side-link .badge { margin-left: auto; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; background: #fef2f2; color: #b91c1c; font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.side-foot { padding: 14px; border-top: 1px solid var(--line); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; }
.side-user .name { font-size: 13px; font-weight: 600; }
.side-user .role { font-size: 11px; color: var(--muted); }

.admin-main { flex: 1; min-width: 0; }
.admin-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 28px; background: rgba(255, 255, 255, .9); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30; backdrop-filter: blur(12px);
}
.admin-head h1 { font-size: 19px; }
.admin-head .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.admin-body { padding: 22px 28px 44px; }

/* 导入页 */
.import-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.dropzone {
  border: 1.5px dashed #cfd5e6; border-radius: 14px; padding: 32px 20px; text-align: center;
  background: #fbfcff; cursor: pointer; transition: .2s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--brand-600); background: var(--brand-50); }
.dropzone .ico { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 13px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; }
.dropzone .ico svg { width: 22px; height: 22px; }
.dropzone b { font-size: 14px; }
.dropzone p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.file-picked { display: none; margin-top: 14px; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #f6f7fb; font-size: 13px; }
.file-picked.show { display: flex; }
.file-picked .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 结果 */
.result-box { padding: 18px 20px; border-radius: 12px; background: #f8f9fe; border: 1px solid #eceef8; }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.result-grid .it { text-align: center; padding: 10px 6px; background: #fff; border-radius: 10px; border: 1px solid #edeff6; }
.result-grid .it small { display: block; font-size: 11.5px; color: var(--muted); }
.result-grid .it b { font-size: 19px; font-variant-numeric: tabular-nums; }

/* 详情列表 */
.detail-list { display: grid; gap: 0; }
.detail-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed #eef0f6; font-size: 13px; }
.detail-row:last-child { border-bottom: 0; }
.detail-row .k { color: var(--muted); width: 96px; flex: none; }
.detail-row .v { flex: 1; word-break: break-all; }
.detail-row .v strong { font-variant-numeric: tabular-nums; }

/* 页面切换 */
.view { display: none; }
.view.active { display: block; animation: fadeUp .28s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px) } }

/* 底部 Tab（H5） */
.bottom-nav { display: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .import-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-mobile-brand { display: flex; margin-bottom: 26px; }
  .auth-panel { background: #fff; align-items: flex-start; padding-top: 36px; }

  .admin-shell { display: block; }
  .sidebar { display: none; }
  .admin-head { padding: 14px 16px; }
  .admin-head .desk-only { display: none; }
  .admin-body { padding: 16px 16px 40px; }
  .mobile-menu { display: flex !important; }

  .topbar-inner { gap: 12px; height: 56px; }
  .topnav { display: none; }
  .brand small { display: none; }
  .wrap { padding: 0 16px; }
  .page-main { padding-top: 18px; padding-bottom: 76px; }

  /* 表格转卡片 */
  .table.responsive thead { display: none; }
  .table.responsive, .table.responsive tbody, .table.responsive tr, .table.responsive td { display: block; width: 100%; }
  .table.responsive tr {
    background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 6px 4px;
  }
  .table.responsive td {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 7px 12px; border-bottom: 0; text-align: right; font-size: 13px;
  }
  .table.responsive td::before {
    content: attr(data-label); color: var(--muted); font-weight: 400; font-size: 12px; text-align: left;
  }
  .table.responsive td:first-child { padding-left: 12px; }
  .table.responsive td:last-child { padding-right: 12px; }
  .table.responsive td .actions { justify-content: flex-end; }

  .pager { padding: 12px 14px; }
  .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-card { padding: 20px; border-radius: 16px; }
  .hero-card .metrics { gap: 24px; }
  .hero-card .metric b { font-size: 19px; }
  .modal { max-width: 100%; max-height: 92vh; }
  .overlay { padding: 12px; align-items: flex-end; }
  .modal { border-radius: 18px; animation: sheet .25s cubic-bezier(.2,.9,.3,1.1); }
  @keyframes sheet { from { transform: translateY(30px); opacity: .6 } }
  .modal-head { padding: 18px 18px 0; }
  .modal-body { padding: 14px 18px 4px; }
  .modal-foot { padding: 12px 18px 18px; }
  .modal-foot .btn { flex: 1; }

  .section-title h2 { font-size: 17px; }
  .card-pad { padding: 16px 18px; }
  .card-head { padding: 14px 18px; }

  /* H5 底部导航 */
  .bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px);
    border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 5px 0; color: var(--muted); font-size: 11.5px; border-radius: 8px;
  }
  .bottom-nav a svg { width: 20px; height: 20px; }
  .bottom-nav a.active { color: var(--brand); font-weight: 600; }
  .desk-only { display: none !important; }
}

@media (max-width: 560px) {
  .stats { gap: 10px; }
  .stat { padding: 14px 15px; }
  .stat .value { font-size: 22px; }
  .stat .ico { width: 30px; height: 30px; right: 12px; top: 12px; }
  .stat .ico svg { width: 15px; height: 15px; }
  .stat .foot { font-size: 11px; }
  .hero-card .metrics { gap: 18px 24px; }
  .settle-item { gap: 10px; }
  .settle-item .amt { font-size: 16px; }
  .result-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #d8dce7; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* 管理端移动端标签栏 */
.mobile-tabs { display: none; }
@media (max-width: 900px) {
  .mobile-tabs {
    display: block; padding: 10px 16px 12px; background: #fff; border-bottom: 1px solid var(--line);
  }
  .mobile-tabs .tabs { width: 100%; background: #fff; padding: 0; gap: 6px; }
  .mobile-tabs .tabs button {
    border: 1px solid var(--line); background: #fff; padding: 5px 12px; border-radius: 8px; font-size: 12.5px;
  }
  .mobile-tabs .tabs button.active { background: var(--brand-50); color: var(--brand); border-color: var(--brand-100); box-shadow: none; }
  .mobile-tabs .tabs { flex-wrap: wrap; overflow: visible; }
  .mobile-tabs .tabs button { flex: 1 1 22%; text-align: center; }
}

/* 结算流程 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { position: relative; padding: 16px 18px; border-radius: 12px; background: #fafbff; border: 1px solid #eceef8; }
.step .no { width: 26px; height: 26px; border-radius: 8px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-size: 12.5px; font-weight: 700; margin-bottom: 10px; }
.step h4 { font-size: 14px; margin-bottom: 4px; }
.step p { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .section-actions { justify-content: stretch; }
  .section-actions .btn { flex: 1; }
}
@media (max-width: 560px) {
  .hero-card .metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
  .bars { height: 96px; }
}
