/* ==================== qr.io 风格工作台设计系统 ==================== */
:root {
  --brand: #06a77d;
  --brand-dark: #058f6b;
  --brand-light: #e6f7f2;
  --blue: #1d4ed8;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f3f6f9;
  --sidebar-w: 230px;
  --topbar-h: 58px;
  --shadow: 0 1px 3px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.06);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }

/* ---------- 顶栏 ---------- */
.dash-top {
  position: fixed; inset: 0 0 auto 0; height: var(--topbar-h); z-index: 100;
  background: var(--brand); color: #fff; display: flex; align-items: center;
  padding: 0 22px; gap: 20px;
}
.dash-logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; }
.dash-logo .logo-mark {
  width: 30px; height: 30px; display: grid; grid-template-columns: repeat(3,1fr);
  gap: 2px;
}
.dash-logo .logo-mark i { background: #fff; border-radius: 2px; }
.dash-logo .logo-mark i:nth-child(2),
.dash-logo .logo-mark i:nth-child(4),
.dash-logo .logo-mark i:nth-child(8) { background: rgba(255,255,255,.25); }
.dash-top .spacer { flex: 1; }
.top-link {
  color: rgba(255,255,255,.88); font-size: 14px; font-weight: 500;
  padding: 6px 12px; border-radius: 8px; transition: all .15s;
}
.top-link:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-upgrade {
  background: #fff; color: var(--brand); border: none; border-radius: 999px;
  padding: 8px 18px; font-weight: 800; display: flex; align-items: center; gap: 6px;
  font-size: 13.5px; box-shadow: 0 2px 6px rgba(0,0,0,.08); transition: all .15s;
}
.btn-upgrade:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.dash-account {
  display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer;
  padding: 4px 10px 4px 4px; border-radius: 999px; transition: background .15s;
}
.dash-account:hover { background: rgba(255,255,255,.12); }
.dash-account .avatar {
  width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.dash-account .acc-name { font-weight: 600; font-size: 13.5px; }
.dash-account .acc-arrow { font-size: 11px; opacity: .85; }
.acc-pop {
  position: fixed; top: calc(var(--topbar-h) + 8px); right: 16px; z-index: 200;
  min-width: 200px; background: #fff; border-radius: 12px;
  box-shadow: 0 10px 40px rgba(15,23,42,.18); padding: 8px;
  display: none;
}
.acc-pop.show { display: block; }
.acc-pop a {
  display: block; padding: 10px 14px; border-radius: 8px;
  font-size: 14px; color: #374151; font-weight: 500;
}
.acc-pop a:hover { background: #f3f4f6; }
.acc-pop a.danger { color: #dc2626; }
.acc-sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* ---------- 顶部提示条 ---------- */
.top-trial {
  position: fixed; top: var(--topbar-h); left: 0; right: 0; height: 40px; z-index: 90;
  background: var(--brand-light); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-size: 13.5px; font-weight: 500; border-bottom: 1px solid rgba(6,167,125,.15);
}
.top-trial .tt-link {
  background: var(--brand); color: #fff; padding: 5px 14px;
  border-radius: 999px; font-weight: 700; font-size: 12.5px;
}

/* ---------- 侧边栏 ---------- */
.dash-side {
  position: fixed; top: calc(var(--topbar-h) + 40px); left: 0; bottom: 0; width: var(--sidebar-w);
  background: #fff; border-right: 1px solid var(--line); padding: 18px 14px;
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
}
.side-create {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px solid var(--brand); color: var(--brand); background: #fff;
  border-radius: 10px; padding: 11px 0; font-weight: 700; font-size: 15px;
  margin-bottom: 14px; transition: all .15s;
}
.side-create:hover { background: var(--brand-light); }
.side-group {
  font-size: 11px; font-weight: 800; letter-spacing: .08em;
  color: #9ca3af; text-transform: uppercase; margin: 14px 10px 6px;
  display: flex; align-items: center; gap: 8px;
}
.badge-paused {
  background: #e5e7eb; color: #6b7280; font-size: 9.5px; font-weight: 800;
  padding: 2px 6px; border-radius: 4px; letter-spacing: .06em;
}
.side-link {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px;
  border-radius: 8px; color: #374151; font-weight: 500;
}
.side-link:hover { background: #f3f4f6; }
.side-link.active { background: var(--brand-light); color: var(--brand); font-weight: 700; }
.side-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.side-sep { height: 1px; background: var(--line); margin: 12px 6px; }
.side-folder { justify-content: flex-start !important; }
.side-folder .fname { flex: 1; font-size: 13.5px; }
.side-folder .fcnt {
  color: #9ca3af; font-size: 12px; font-weight: 600;
  background: #f3f4f6; padding: 2px 8px; border-radius: 999px;
}
.side-link.active .fcnt { background: rgba(6,167,125,.15); color: var(--brand); }

/* ===== 二维码拖入文件夹 ===== */
.qr-card[draggable="true"] { cursor: grab; }
.qr-card.dragging {
  opacity: .4; cursor: grabbing;
  transform: none !important; box-shadow: none !important;
}
body.qr-dragging .side-folder,
body.qr-dragging #sideAllQr {
  outline: 1.5px dashed rgba(6,167,125,.45); outline-offset: -1px;
}
.side-folder.drag-over,
#sideAllQr.drag-over {
  background: var(--brand-light) !important;
  color: var(--brand); font-weight: 700;
  outline: 2px solid var(--brand); outline-offset: -2px;
}
.side-folder.drag-over .fcnt,
#sideAllQr.drag-over .fcnt { background: rgba(6,167,125,.18); color: var(--brand); }
.no-folder {
  padding: 8px 12px; color: #9ca3af; font-size: 12.5px; font-style: italic;
}
.btn-new-folder {
  background: var(--blue); color: #fff; border: none; border-radius: 9px;
  padding: 11px 0; font-weight: 700; margin-top: 8px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.side-upgrade {
  margin-top: 10px; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(6,167,125,.10) 0%, rgba(11,138,143,.08) 100%);
  border: 1px solid rgba(6,167,125,.20);
  transition: all .15s;
}
.side-upgrade:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(6,167,125,.15); }
.side-upgrade b { display: block; color: var(--ink); font-size: 14px; font-weight: 800; }
.side-upgrade small { color: var(--muted); font-size: 11.5px; font-weight: 500; }

/* ---------- 主区域 ---------- */
.dash-main {
  margin-left: var(--sidebar-w); margin-top: calc(var(--topbar-h) + 40px);
  padding: 26px 30px 50px; min-height: calc(100vh - var(--topbar-h) - 40px);
}
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.page-head h1 { font-size: 22px; font-weight: 800; }
.page-head .head-icon {
  width: 34px; height: 34px; color: var(--brand);
}
.toolbar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.search-box {
  display: flex; align-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 0 14px; width: 340px; max-width: 100%;
}
.search-box input { border: none; outline: none; padding: 11px 10px; flex: 1; background: transparent; }
.btn {
  border: none; border-radius: 9px; padding: 11px 20px; font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 7px; transition: filter .15s, background .15s;
}
.btn:hover { filter: brightness(.95); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-light { background: #eef0f3; color: #374151; }
.btn-outline { background: #fff; border: 1.5px solid #cfd6de; color: #374151; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 7px; }
.sort-select {
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font-weight: 600; color: #374151;
}

/* ---------- 二维码卡片 ---------- */
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 18px; }
.qr-card {
  background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  padding: 18px; display: flex; gap: 16px; position: relative; transition: box-shadow .15s, transform .15s;
}
.qr-card:hover { box-shadow: 0 2px 6px rgba(16,24,40,.06), 0 16px 40px rgba(16,24,40,.10); transform: translateY(-1px); }
.qr-thumb {
  width: 120px; height: 120px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; padding: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color .15s;
}
.qr-thumb:hover { border-color: var(--brand); }
.qr-thumb img { width: 100%; height: 100%; object-fit: contain; }
.qr-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.qr-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.qr-head-left { min-width: 0; flex: 1; }
.qr-type { display: inline-flex; align-items: center; gap: 5px; color: var(--brand);
  font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em;
  background: var(--brand-light); padding: 3px 8px; border-radius: 6px; }
.qr-title {
  font-size: 17px; font-weight: 800; margin: 6px 0 4px; display: flex; align-items: center; gap: 8px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.qr-title .tname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr-title .edit-ic { color: #9ca3af; cursor: pointer; font-size: 14px; flex-shrink: 0; opacity: .7; transition: all .15s; }
.qr-title .edit-ic:hover { color: var(--brand); opacity: 1; transform: scale(1.1); }
.qr-title-input {
  font-size: 17px; font-weight: 800; padding: 4px 8px;
  border: 1.5px solid var(--brand); border-radius: 7px; outline: none;
  width: 100%; min-width: 0; background: #fff;
}
.qr-date { color: #9ca3af; font-size: 12px; margin-bottom: 8px; }
.qr-link-row { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; flex-wrap: wrap; }
.qr-link {
  color: var(--brand); font-size: 12.5px; font-weight: 600;
  padding: 3px 8px; background: var(--brand-light); border-radius: 6px; cursor: pointer;
  transition: all .15s;
}
.qr-link:hover { background: var(--brand); color: #fff; }
.qr-link.copied { background: #10b981; color: #fff; }
.qr-dest {
  color: var(--muted); font-size: 12.5px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; margin-bottom: 10px;
  padding-left: 2px;
}
.qr-actions {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 4px;
}
.scans-badge {
  display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid #c9d7ef;
  color: var(--blue); border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 12.5px;
  background: #fff; transition: all .15s;
}
.scans-badge:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.qr-action-link { color: #374151; font-size: 13px; font-weight: 700; display: inline-flex;
  align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; transition: all .15s; }
.qr-action-link:hover { color: var(--brand); background: var(--brand-light); }
.qr-download-btn {
  padding: 6px 14px !important; font-size: 12.5px !important;
  border-radius: 999px !important;
}
.qr-card-menu {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
  border-radius: 8px; border: none; background: transparent; color: #9ca3af;
  font-size: 18px; display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.qr-card-menu:hover { background: #f3f4f6; color: #374151; }
.qr-menu-pop {
  position: absolute; top: 44px; right: 14px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: 6px; z-index: 20; min-width: 160px;
  display: none;
}
.qr-menu-pop.open { display: block; }
.qr-menu-pop button {
  display: block; width: 100%; text-align: left; border: none; background: none;
  padding: 9px 12px; border-radius: 7px; font-size: 13.5px; color: #374151;
}
.qr-menu-pop button:hover { background: #f3f4f6; }
.qr-menu-pop button.danger { color: #dc2626; }
.status-pill { font-size: 10.5px; padding: 3px 9px; border-radius: 999px; font-weight: 800; }
.status-paused { background: #fef3c7; color: #b45309; }
.empty-state { text-align: center; padding: 80px 20px; color: #9ca3af; }
.empty-state .big { font-size: 52px; margin-bottom: 14px; }

/* ---------- 统计 ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; }
.stat-card { background: #fff; border-radius: 14px; padding: 22px; box-shadow: var(--shadow); }
.stat-card h6 { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.stat-card .num { font-size: 34px; font-weight: 800; }
.panel { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-head h3 { font-size: 15.5px; font-weight: 800; }
.chart-wrap { position: relative; height: 260px; }
.data-tbl { width: 100%; border-collapse: collapse; }
.data-tbl th { text-align: left; color: var(--muted); font-size: 12.5px; padding: 8px 10px;
  border-bottom: 1px solid var(--line); }
.data-tbl td { padding: 10px; border-bottom: 1px solid #f3f4f6; font-size: 13.5px; }
.pct-bar { height: 6px; background: #eef0f3; border-radius: 4px; overflow: hidden; min-width: 90px; }
.pct-bar i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.range-select { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

/* ---------- 生成向导 ---------- */
.wiz-steps { display: flex; align-items: center; gap: 0; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 6px; width: fit-content; margin-bottom: 22px; }
.wiz-step { display: flex; align-items: center; gap: 9px; padding: 9px 18px; border-radius: 9px;
  font-weight: 700; color: #9ca3af; font-size: 14px; cursor: pointer; }
.wiz-step .n {
  width: 26px; height: 26px; border-radius: 50%; background: #e5e7eb; color: #6b7280;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.wiz-step.active { background: var(--brand); color: #fff; }
.wiz-step.active .n { background: rgba(255,255,255,.25); color: #fff; }
.wiz-step.done { color: var(--brand); }
.wiz-step.done .n { background: var(--brand); color: #fff; }
.wiz-nav { display: flex; justify-content: space-between; margin-top: 20px; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 14px; }
.type-card {
  background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 20px 16px;
  text-align: center; cursor: pointer; transition: all .15s;
}
.type-card:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgba(6,167,125,.12); }
.type-card.sel { border-color: var(--brand); background: var(--brand-light); }
.type-card .ic { font-size: 26px; margin-bottom: 8px; }
.type-card .t { font-weight: 800; font-size: 14.5px; margin-bottom: 3px; }
.type-card .d { font-size: 12px; color: var(--muted); }

.form-card { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 28px;
  max-width: 720px; }
.form-card label { display: block; font-weight: 700; margin: 16px 0 7px; font-size: 14px; }
.form-card label .req { color: #ef4444; }
.form-card input[type=text], .form-card input[type=url], .form-card input[type=email],
.form-card input[type=password], .form-card input[type=date], .form-card input[type=time],
.form-card input[type=number], .form-card textarea, .form-card select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 9px; outline: none;
}
.form-card input:focus, .form-card textarea:focus, .form-card select:focus { border-color: var(--brand); }
.form-card .hint { font-size: 12.5px; color: #9ca3af; margin-top: 5px; }

.wiz-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.wiz-layout > * { min-width: 0; }
.design-panel { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 22px;
  margin-bottom: 16px; }
.design-panel > summary { font-weight: 800; font-size: 15px; list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.design-panel[open] > summary { margin-bottom: 18px; }
.shape-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin: 10px 0 16px; }
.shape-item {
  aspect-ratio: 1; border: 2px solid var(--line); border-radius: 8px; cursor: pointer;
  background: #fff center / 70% no-repeat; padding: 0;
}
.shape-item.sel { border-color: var(--brand); background-color: var(--brand-light); }
.shape-grid-8 { grid-template-columns: repeat(8, 1fr); }
.design-select { flex: 1; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 8px;
  background: #fff; cursor: pointer; }
.preset-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.preset-item { aspect-ratio: 1; border: 2px solid var(--line); border-radius: 9px; background: #fff;
  padding: 5px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.preset-item img { width: 100%; height: 100%; object-fit: contain; }
.preset-item.sel { border-color: var(--brand); background: var(--brand-light); }

.tpl-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.tpl-item { padding: 9px 4px; border: 1.5px solid var(--line); border-radius: 9px; background: #fff;
  font-size: 12.5px; cursor: pointer; }
.tpl-item:hover { border-color: var(--brand); color: var(--brand); }

.modal-mask { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 900;
  display: flex; align-items: center; justify-content: center; }
.modal-box { background: #fff; border-radius: 14px; width: 92%; max-width: 560px;
  max-height: 86vh; overflow: auto; }
.modal-head { padding: 16px 20px; font-weight: 800; font-size: 16px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 18px 20px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: flex-end; gap: 10px; }
.modal-body code { background: #f3f4f6; padding: 2px 8px; border-radius: 6px; font-size: 13px; }
.frame-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 14px; }
.frame-item { flex: 0 0 74px; height: 74px; border: 2px solid var(--line); border-radius: 9px;
  cursor: pointer; background: #fff center / 60% no-repeat; }
.frame-item.sel { border-color: var(--brand); background-color: var(--brand-light); }
.color-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.color-row input[type=text] { flex: 1; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 8px; }
.color-row input[type=color] { width: 48px; height: 38px; border: 1.5px solid var(--line);
  border-radius: 8px; background: #fff; padding: 2px; cursor: pointer; }
.switch-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.switch { position: relative; width: 42px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .sl { position: absolute; inset: 0; background: #d1d5db; border-radius: 20px; transition: .2s; cursor: pointer; }
.switch .sl::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .sl { background: var(--brand); }
.switch input:checked + .sl::before { transform: translateX(18px); }

.preview-panel { position: sticky; top: calc(var(--topbar-h) + 20px); }
.preview-box { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 22px;
  text-align: center; }
.preview-box img { width: 100%; max-width: 280px; border-radius: 10px; }
.preview-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.preview-tabs button { flex: 1; padding: 10px; border-radius: 9px; border: 1.5px solid var(--line);
  background: #fff; font-weight: 700; color: #6b7280; }
.preview-tabs button.active { background: var(--brand); color: #fff; border-color: var(--brand); }

.toast { position: fixed; top: 72px; left: 50%; transform: translateX(-50%); background: #111827;
  color: #fff; padding: 11px 22px; border-radius: 10px; z-index: 999; font-size: 14px;
  opacity: 0; transition: opacity .25s; pointer-events: none; }
.toast.show { opacity: .95; }

/* ---------- 登录 ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #06a77d 0%, #0b8a8f 100%); padding: 20px; }
.auth-card { background: #fff; border-radius: 18px; padding: 40px; width: 100%; max-width: 410px;
  box-shadow: 0 30px 60px rgba(0,0,0,.2); }
.auth-card .brand { display: flex; align-items: center; gap: 10px; font-size: 22px;
  font-weight: 800; color: var(--brand); justify-content: center; margin-bottom: 6px; }
.auth-card h2 { text-align: center; font-size: 18px; margin-bottom: 24px; color: #374151; }
.auth-card label { display: block; font-weight: 600; font-size: 13.5px; margin: 14px 0 6px; }
.auth-card input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 10px; outline: none; }
.auth-card input:focus { border-color: var(--brand); }
.auth-card .btn-primary { width: 100%; justify-content: center; margin-top: 22px; padding: 13px; }
.auth-card .alt { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.auth-card .alt a { color: var(--brand); font-weight: 700; }
.auth-err { background: #fef2f2; color: #dc2626; padding: 9px 13px; border-radius: 8px;
  font-size: 13px; margin-top: 14px; display: none; }

/* ---------- 落地页 ---------- */
.lp-body { background: #f3f6f9; min-height: 100vh; }
.lp-wrap { max-width: 560px; margin: 0 auto; padding: 24px 16px 50px; }
.lp-head { text-align: center; margin-bottom: 18px; }
.lp-avatar { width: 76px; height: 76px; border-radius: 50%; background: var(--brand);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 32px;
  font-weight: 800; margin: 0 auto 12px; }
.lp-head h1 { font-size: 22px; }
.lp-head p { color: var(--muted); font-size: 14px; }
.lp-card { background: #fff; border-radius: 16px; padding: 22px; box-shadow: var(--shadow);
  margin-bottom: 14px; }
.lp-link-btn { display: flex; align-items: center; gap: 12px; width: 100%;
  border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 14px 16px;
  margin-bottom: 10px; font-size: 15px; font-weight: 600; transition: all .15s; }
.lp-link-btn:hover { border-color: var(--brand); background: var(--brand-light); }
.lp-link-btn .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-light);
  color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.lp-meta { display: flex; gap: 10px; color: var(--muted); font-size: 13.5px; margin: 6px 0; }
.lp-cta { display: block; text-align: center; background: var(--brand); color: #fff;
  border-radius: 12px; padding: 15px; font-weight: 700; font-size: 16px; margin-top: 12px; }
.lp-text { white-space: pre-wrap; line-height: 1.8; }
.lp-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #f3f4f6; }
.lp-row span:first-child { color: var(--muted); }

/* ---------- 统计页 KPI 卡片 ---------- */
.kpi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px;
}
.kpi-card {
  background: #fff; border-radius: 14px; padding: 20px 22px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  border: 1px solid var(--line);
}
.kpi-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.kpi-qr::before { background: linear-gradient(90deg, #06a77d, #10b981); }
.kpi-scans::before { background: linear-gradient(90deg, #1d4ed8, #3b82f6); }
.kpi-unique::before { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.kpi-label {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 13.5px; font-weight: 600;
}
.kpi-label svg { width: 17px; height: 17px; opacity: .85; }
.kpi-num {
  font-size: 34px; font-weight: 800; margin: 10px 0 4px;
  letter-spacing: -0.5px; color: var(--ink);
}
.kpi-sub { color: #9ca3af; font-size: 12.5px; }

/* ---------- 日期范围 & 工具按钮 ---------- */
.range-date {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 13px; font-weight: 500;
}
.range-date input {
  padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 8px;
  font-size: 13px; color: var(--ink); background: #fff; outline: none;
}
.range-date input:focus { border-color: var(--brand); }

.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.btn-xs {
  padding: 5px 12px; font-size: 12.5px; border-radius: 999px; font-weight: 600;
}

/* ---------- 旧兼容：stat-cards 保留但视觉向 KPI 对齐 ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-card {
  background: #fff; border-radius: 14px; padding: 18px 20px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.stat-card h6 { color: var(--muted); font-size: 13.5px; margin-bottom: 10px; font-weight: 600; }
.stat-card .num { font-size: 30px; font-weight: 800; color: var(--ink); }

@media (max-width: 1100px) {
  .kpi-grid, .stat-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .kpi-grid, .stat-cards { grid-template-columns: 1fr; }
}

@media (max-width: 1200px) {
  .shape-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 960px) {
  .wiz-layout { grid-template-columns: minmax(0, 1fr); }
  .preview-panel { position: static; }
  .stat-cards { grid-template-columns: 1fr; }
  .dash-side {
    transform: translateX(-100%); transition: .2s; z-index: 90;
    top: calc(var(--topbar-h) + 40px);
  }
  .dash-side.open { transform: none; }
  .dash-main { margin-left: 0; }
  .top-trial span { font-size: 12px; padding: 0 8px; }
  .top-link { display: none; }
}
