:root {
  --safe-b: env(safe-area-inset-bottom, 0px);
  --primary: #4f46e5;
  --primary-2: #6366f1;
  --primary-soft: #eef2ff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f1f5f9;
  --card: #ffffff;
  --ok: #059669;
  --warn: #d97706;
  --danger: #dc2626;
  --shadow: 0 8px 30px rgba(15, 23, 42, .06);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .12);
  --radius: 16px;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-2); }
#app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* Login · 旧站样式拟态 */
.login-wrap {
  position: relative; flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
  min-height: 100vh; min-height: 100dvh;
  background-image: url("https://haowallpaper.com/link/common/file/getCroppingImg/b1a3d64694339ca0f02ee40291849552");
  background-repeat: no-repeat; background-size: cover; background-position: center;
  overflow-x: hidden; overflow-y: auto;
}
@media (min-width: 769px) {
  .login-wrap {
    background-image: url("https://p0.qhimg.com/bdr/__85/t01a3d15d1c3eb047aa.jpg");
  }
}
.login-wrap::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(0, 0, 0, .24);
}
.login-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px; background: rgba(255,255,255,.86); padding: 26px 30px 22px;
  border-radius: 4px; border: 0; box-shadow: 0 3px 10px rgba(0,0,0,.22);
  backdrop-filter: blur(2px);
}
.login-logo-mark {
  width: 80%; max-width: 260px; height: 54px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  color: #111827; font-size: 24px; font-weight: 800;
  border: 1px solid rgba(15,23,42,.08); border-radius: 2px;
  background: rgba(255,255,255,.54);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 12px;
}
.login-card h2 { margin: 0 0 20px; font-size: 15px; text-align: center; color: #333; font-weight: 700; }
.login-card .sub { margin: -10px 0 18px; color: #667085; font-size: 12px; text-align: center; }
.login-card .el-form-item { margin-bottom: 18px; }
.login-card .el-form-item__label { display: none; }
.login-card .el-form-item__content { width: 100%; display: block; }
.login-field { position: relative; width: 100%; }
.login-field .el-input { width: 100%; }
.login-field .field-icon {
  position: absolute; left: 0; top: 0; z-index: 2;
  width: 46px; height: 46px; line-height: 46px; text-align: center;
  color: #909399; font-size: 18px; pointer-events: none;
}
.login-card .el-input__wrapper {
  height: 46px; line-height: 46px; border-radius: 2px;
  box-shadow: inset 0 -1px 0 #dcdfe6; border: 0; background: transparent;
  padding-left: 46px;
}
.login-card .el-input__wrapper.is-focus { box-shadow: inset 0 -1px 0 #00a65a; }
.login-card .el-button--primary {
  --el-button-bg-color: #111827;
  --el-button-border-color: #111827;
  --el-button-hover-bg-color: #000;
  --el-button-hover-border-color: #000;
  height: 48px; border-radius: 2px;
  background: #111827; border-color: #111827; font-size: 16px;
}
.login-card .el-button--primary:hover { background: #000; border-color: #000; }
.auth-switch { margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted); }
.auth-switch a { font-weight: 600; color: #1e9fff; }
.login-copy { text-align: center; margin: 14px 0 0; color: #6b7280; font-size: 12px; }
body.tpl-clean .login-wrap {
  background: #f3f6fb;
  background-image: linear-gradient(135deg, #eef2ff 0%, #f8fafc 48%, #ecfdf5 100%);
}
body.tpl-clean .login-wrap::before { background: rgba(255,255,255,.08); }
body.tpl-clean .login-card {
  max-width: 390px; background: #fff; border-radius: 14px;
  border: 1px solid #e5e7eb; box-shadow: 0 18px 42px rgba(15,23,42,.12);
  backdrop-filter: none;
}
body.tpl-clean .login-logo-mark {
  width: 58px; height: 58px; border-radius: 16px; padding: 0; max-width: none;
  background: #111827; color: #fff; font-size: 18px; margin-bottom: 16px;
}
body.tpl-clean .login-card h2 { font-size: 20px; margin-bottom: 8px; color: #111827; }
body.tpl-clean .login-card .sub { margin: 0 0 20px; color: #64748b; }
body.tpl-clean .login-card .el-input__wrapper {
  background: #f8fafc; border-radius: 8px; box-shadow: inset 0 0 0 1px #e5e7eb;
}
body.tpl-clean .login-card .el-input__wrapper.is-focus { box-shadow: inset 0 0 0 1px #16b777; }
body.tpl-clean .login-card .el-button--primary { border-radius: 8px; background: #16b777; border-color: #16b777; }
body.tpl-clean .login-card .el-button--primary:hover { background: #0f9f67; border-color: #0f9f67; }
body.tpl-clean .site-header { box-shadow: none; border-bottom-color: #e5e7eb; }
body.tpl-clean .site-logo { background: #16b777; box-shadow: none; }
body.tpl-clean .layui-card-like,
body.tpl-clean .panel,
body.tpl-clean .platform-card,
body.tpl-clean .quick-card {
  border-radius: 8px; box-shadow: none; border-color: #e5e7eb;
}
body.tpl-element {
  --primary: #409eff;
  --primary-2: #337ecc;
  --primary-soft: #ecf5ff;
  --text: #1f2937;
  --muted: #606266;
  --line: #dcdfe6;
  --bg: #f5f7fa;
  --card: #ffffff;
  --ok: #67c23a;
  --warn: #e6a23c;
  --danger: #f56c6c;
  --shadow: 0 8px 22px rgba(31, 45, 61, .06);
  --shadow-lg: 0 18px 44px rgba(31, 45, 61, .12);
  --radius: 8px;
  --el-color-primary: #409eff;
  --el-border-radius-base: 6px;
}
body.tpl-element .login-wrap {
  background:
    linear-gradient(135deg, rgba(64,158,255,.08), rgba(103,194,58,.04)),
    repeating-linear-gradient(90deg, rgba(148,163,184,.13) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(148,163,184,.10) 0 1px, transparent 1px 72px),
    #f5f7fa;
}
body.tpl-element .login-wrap::before { background: transparent; }
body.tpl-element .login-card {
  max-width: 390px; background: #fff; border-radius: 8px;
  border: 1px solid #dcdfe6; box-shadow: var(--shadow-lg);
  backdrop-filter: none;
}
body.tpl-element .login-logo-mark {
  width: 48px; height: 48px; border-radius: 8px; padding: 0; max-width: none;
  background: #409eff; color: #fff; font-size: 18px; margin-bottom: 14px;
  border: 0;
}
body.tpl-element .login-card h2 { font-size: 20px; margin-bottom: 8px; color: #1f2937; }
body.tpl-element .login-card .sub { margin: 0 0 20px; color: #606266; }
body.tpl-element .login-card .el-input__wrapper {
  background: #fff; border-radius: 6px; box-shadow: inset 0 0 0 1px #dcdfe6;
}
body.tpl-element .login-card .el-input__wrapper.is-focus { box-shadow: inset 0 0 0 1px #409eff; }
body.tpl-element .login-card .el-button--primary { border-radius: 6px; background: #409eff; border-color: #409eff; }
body.tpl-element .login-card .el-button--primary:hover { background: #337ecc; border-color: #337ecc; }
@media (max-width: 480px) {
  .login-wrap { padding: 16px 12px; }
  .login-card { padding: 24px 20px 20px; }
}
@media (max-height: 650px) {
  .login-wrap {
    align-items: flex-start;
    padding-top: max(14px, env(safe-area-inset-top, 0px));
    padding-bottom: max(14px, env(safe-area-inset-bottom, 0px));
  }
  .login-card { margin: 0 auto; }
  body.tpl-clean .login-logo-mark,
  body.tpl-element .login-logo-mark {
    width: 44px; height: 44px; margin-bottom: 10px; border-radius: 10px;
  }
  body.tpl-clean .login-card h2,
  body.tpl-element .login-card h2 { font-size: 18px; }
  .login-card .el-form-item { margin-bottom: 14px; }
  .login-copy { margin-top: 10px; }
}
body.tpl-element .site-header { box-shadow: 0 1px 4px rgba(31,45,61,.06); border-bottom-color: #dcdfe6; }
body.tpl-element .site-logo { background: #409eff; box-shadow: none; border-radius: 8px; }
body.tpl-element .site-nav .nav-link.active { background: #ecf5ff; border-color: #409eff; color: #1677d2; }
body.tpl-element .layui-card-like,
body.tpl-element .panel,
body.tpl-element .platform-card,
body.tpl-element .quick-card,
body.tpl-element .order-card,
body.tpl-element .log-item {
  border-radius: 8px; box-shadow: none; border-color: #dcdfe6;
}
body.tpl-element .layui-card-head {
  background: #f5f7fa; border-bottom-color: #dcdfe6; color: #303133;
}
body.tpl-element .table-wrap { border-radius: 8px; border-color: #dcdfe6; }
.invite-box {
  margin-top: 10px; padding: 12px 14px; border-radius: 12px;
  background: #f8fafc; border: 1px solid var(--line); font-size: 13px;
}
.invite-box .code {
  font-size: 18px; font-weight: 800; letter-spacing: .12em; color: var(--primary);
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.wxpush-box {
  display: grid; gap: 10px; margin-top: 10px;
}
.wxpush-input {
  width: 100%; max-width: 420px; height: 36px; padding: 0 12px;
  border: 1px solid #dcdfe6; border-radius: 8px; outline: none;
  font-size: 14px; color: #1f2937; background: #fff;
}
.wxpush-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(64, 158, 255, .12);
}
.wxpush-actions {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.wxpush-btn {
  height: 34px; padding: 0 14px; border-radius: 8px;
  border: 1px solid #dcdfe6; background: #fff; color: #303133;
  cursor: pointer; font-size: 14px; line-height: 32px;
}
.wxpush-btn:hover { border-color: var(--primary); color: var(--primary); }
.wxpush-btn.primary {
  background: var(--primary); border-color: var(--primary); color: #fff;
}
.wxpush-btn.primary:hover { background: var(--primary-2); color: #fff; }
.wxpush-btn.link {
  border-color: transparent; background: transparent; color: var(--primary);
  padding-left: 4px; padding-right: 4px;
}
.wxpush-btn:disabled {
  opacity: .55; cursor: not-allowed; border-color: #e5e7eb; color: #9ca3af;
}
.wxpush-options {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  color: #303133;
}
.wxpush-options label {
  display: inline-flex; gap: 6px; align-items: center; cursor: pointer;
}
.wxpush-qr {
  padding: 12px; border: 1px dashed #dcdfe6; border-radius: 10px;
  background: #fff; max-width: 420px;
}
.wxpush-qr-inner {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.wxpush-qr-img {
  width: 160px; height: 160px; object-fit: contain; border-radius: 12px;
  border: 1px solid #e5e7eb; background: #fff;
}
.auth-link-layout {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start;
}
.auth-qr-card {
  padding: 12px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; text-align: center;
}
.auth-qr-card canvas,
.auth-qr-card table {
  margin: 0 auto;
}
.auth-qr-placeholder {
  width: 220px; height: 220px; margin: 0 auto; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; padding: 14px;
  color: #909399; font-size: 13px; line-height: 1.6; text-align: center;
  background: #f8fafc; border: 1px dashed #dcdfe6;
}
.auth-expire-tip {
  margin-top: 10px; padding: 10px 12px; border-radius: 12px;
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 13px;
}
@media (max-width: 640px) {
  .auth-link-layout { grid-template-columns: 1fr; }
  .auth-qr-card { max-width: 260px; margin: 0 auto; }
}

/* Header */
.site-header {
  background: #fff; border-bottom: 1px solid #f0f0f0;
  position: sticky; top: 0; z-index: 30;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.site-header-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 18px;
  height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.site-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.site-logo {
  width: 36px; height: 36px; border-radius: 11px;
  background: #20222a;
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(79,70,229,.28);
}
.site-title { font-size: 16px; font-weight: 750; white-space: nowrap; letter-spacing: 0; }
.site-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-user {
  font-size: 12px; color: var(--muted); text-align: right; line-height: 1.35;
  padding: 6px 10px; border-radius: 12px; background: #f8fafc; border: 1px solid var(--line);
}
.header-user strong { color: var(--text); font-weight: 650; }
.money { color: var(--danger); font-weight: 750; }
.user-notification-trigger { flex-shrink: 0; }
.user-notification-list { display: grid; }
.user-notification-item {
  width: 100%; display: flex; gap: 10px; align-items: flex-start; text-align: left;
  padding: 12px 4px; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; color: var(--text); cursor: pointer;
}
.user-notification-item:hover { background: #f8fafc; }
.user-notification-dot {
  width: 8px; height: 8px; flex: 0 0 8px; margin-top: 6px;
  border-radius: 50%; background: transparent;
}
.user-notification-item.unread .user-notification-dot {
  background: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
.user-notification-main { min-width: 0; flex: 1; }
.user-notification-title { display: block; font-size: 14px; font-weight: 700; line-height: 1.45; }
.user-notification-content {
  display: block; margin-top: 3px; color: var(--muted); font-size: 12px;
  line-height: 1.6; overflow-wrap: anywhere;
}
.user-notification-time { display: block; margin-top: 5px; color: #94a3b8; font-size: 11px; }

/* Nav */
.site-nav { background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); }
.site-nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 12px;
  display: flex; gap: 2px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.site-nav-inner::-webkit-scrollbar { display: none; }
.site-nav button.nav-link {
  border: 0; background: transparent; cursor: pointer;
  padding: 12px 14px; font-size: 13px; color: var(--muted);
  border-bottom: 2px solid transparent; white-space: nowrap; border-radius: 2px;
  transition: .15s ease;
}
.site-nav button.nav-link:hover { color: var(--text); background: #f8fafc; }
.site-nav button.nav-link.active {
  color: #16b777; border-bottom-color: #16b777; font-weight: 700; background: #f0fdf4;
}

/* Main */
.site-main {
  flex: 1; max-width: 1280px; width: 100%; margin: 0 auto;
  padding: 18px 20px calc(28px + var(--safe-b));
}
@media (min-width: 1400px) {
  .site-main { max-width: 1360px; }
}
.page-head {
  margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 10px 16px;
  align-items: flex-end; justify-content: space-between;
}
.page-head h2 { margin: 0 0 4px; font-size: 20px; font-weight: 780; letter-spacing: 0; }
.page-head p { margin: 0; color: var(--muted); font-size: 13px; }

.notice-banner {
  margin-bottom: 14px; border-radius: 14px; padding: 12px 14px;
  background: linear-gradient(90deg, #fff7ed, #fffbeb);
  border: 1px solid #fed7aa; color: #9a3412; font-size: 13px; line-height: 1.6;
  display: flex; gap: 10px; align-items: flex-start;
}
.notice-banner .ico {
  width: 28px; height: 28px; border-radius: 8px; background: #ffedd5;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px;
}
.stat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 14px 12px; box-shadow: var(--shadow);
}
.stat-card .l { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.stat-card .n { font-size: 22px; font-weight: 800; letter-spacing: 0; line-height: 1.15; }
.stat-card .s { font-size: 11px; color: var(--muted); margin-top: 4px; }
.stat-card.accent { background: linear-gradient(145deg, #4f46e5, #6366f1); color: #fff; border: 0; }
.stat-card.accent .l, .stat-card.accent .s { color: rgba(255,255,255,.78); }
.stat-card.accent .n { color: #fff; }

.platform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.platform-card {
  position: relative; background: var(--card); border-radius: 16px; padding: 18px 16px 16px;
  border: 1px solid var(--line); cursor: pointer; transition: .18s ease;
  min-height: 140px; box-shadow: var(--shadow); overflow: hidden;
}
.platform-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--pc, var(--primary));
}
.platform-card:hover {
  transform: translateY(-2px); border-color: #c7d2fe;
  box-shadow: 0 14px 30px rgba(79,70,229,.12);
}
.platform-card .badge {
  display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 8px; font-weight: 650;
}
.platform-card h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: 0; }
.platform-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; min-height: 36px; }
.platform-card .price {
  margin-top: 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
}
.platform-card .price b { font-size: 18px; color: var(--text); }
.platform-card .cta {
  font-size: 12px; color: var(--primary); font-weight: 700;
}

.panel {
  background: var(--card); border-radius: var(--radius); padding: 16px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  min-width: 0; width: 100%;
}
.toolbar {
  display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; align-items: center;
}
.muted { color: var(--muted); font-size: 13px; }
.table-wrap {
  width: 100% !important;
  max-width: 100%;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.empty-box {
  text-align: center; padding: 36px 16px; color: var(--muted); font-size: 13px;
  background: #f8fafc; border: 1px dashed var(--line); border-radius: 14px;
}
.empty-box .big { font-size: 28px; margin-bottom: 8px; }

/* 旧站首页工作台拟态 */
.legacy-dashboard {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 15px;
}
.legacy-col-4 { grid-column: span 4; }
.legacy-col-6 { grid-column: span 6; }
.legacy-col-12 { grid-column: span 12; }
.layui-card-like {
  background: #fff; border-radius: 2px; border: 1px solid #f2f2f2;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,.05); overflow: hidden; min-width: 0;
}
.layui-card-head {
  height: 42px; line-height: 42px; padding: 0 15px;
  border-bottom: 1px solid #f6f6f6; color: #333; font-size: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.layui-card-body-like { padding: 15px; }
.layuiadmin-card-list p { margin: 0; }
.layuiadmin-big-font {
  font-size: 30px; line-height: 38px; padding: 5px 0 10px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #666;
}
.layuiadmin-span-color { float: right; color: #999; font-size: 13px; }
.layui-badge-like {
  display: inline-flex; align-items: center; height: 18px; padding: 0 6px;
  border-radius: 2px; color: #fff; font-size: 12px; line-height: 18px; cursor: pointer;
}
.bg-green { background: #16b777; }
.bg-black { background: #393d49; }
.bg-red { background: #ff5722; }
.bg-blue { background: #1e9fff; }
.bg-cyan { background: #2f9688; }
.quick-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-btn {
  border: 0; border-radius: 999px; color: #fff; padding: 6px 12px;
  font-size: 12px; line-height: 1.3; cursor: pointer;
}
.legacy-info-list { display: grid; gap: 10px; }
.legacy-info-row {
  display: grid; grid-template-columns: 88px 1fr; gap: 10px; align-items: center;
  font-size: 13px; color: #374151;
}
.legacy-info-label { color: #666; text-align: right; }
.legacy-readonly {
  min-height: 36px; line-height: 36px; padding: 0 10px; border: 1px solid #e6e6e6;
  background: #fafafa; color: #555; border-radius: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.legacy-notice-body {
  min-height: 210px; max-height: 47vh; overflow: hidden auto;
  color: #475569; line-height: 1.8; font-size: 13px;
}
.platform-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.platform-summary small { color: #64748b; font-size: 12px; }
.platform-grid.legacy-platform-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px;
}
.legacy-platform-grid .platform-card {
  min-height: 78px; padding: 12px; border-radius: 8px;
  box-shadow: none; border-color: #e5edf5;
}
.legacy-platform-grid .platform-card::before { display: none; }
.legacy-platform-grid .platform-card:hover {
  transform: translateY(-1px); border-color: var(--pc, #16b777);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
}
.legacy-platform-grid .platform-card .badge {
  position: absolute; top: 10px; right: 10px; margin: 0;
  padding: 2px 6px; border-radius: 8px; background: #f8fafc;
}
.legacy-platform-grid .platform-card h3 {
  display: flex; align-items: center; gap: 7px;
  margin: 0; padding-right: 52px; font-size: 15px; font-weight: 600; color: #1f2937 !important;
}
.legacy-platform-grid .platform-card h3::before {
  content: ""; width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%;
  background: var(--pc, #16b777);
}
.legacy-platform-grid .platform-card p {
  margin-top: 8px; min-height: 0; line-height: 1.4; color: #64748b;
}
.legacy-platform-grid .platform-card .price { display: none; }
@media (min-width: 769px) {
  #app { background: #f2f2f2; }
  .site-header { position: fixed; left: 0; right: 0; height: 60px; }
  .site-header-inner { max-width: none; padding-left: 236px; padding-right: 18px; }
  .site-logo {
    position: fixed; left: 0; top: 0; width: 220px; height: 60px; border-radius: 0;
    box-shadow: none; font-size: 16px; background: #20222a;
  }
  .site-brand > div:last-child { margin-left: 0; }
  .site-nav {
    display: block; position: fixed; left: 0; top: 60px; bottom: 0; width: 220px;
    background: #20222a; border: 0; z-index: 29; overflow-y: auto;
  }
  .site-nav-inner {
    max-width: none; margin: 0; padding: 10px 0; display: flex; flex-direction: column;
    gap: 0; overflow: visible;
  }
  .site-nav button.nav-link {
    width: 100%; height: 44px; padding: 0 18px; color: rgba(255,255,255,.72);
    text-align: left; border-radius: 0; border: 0; font-size: 14px;
  }
  .site-nav button.nav-link:hover { background: #16181d; color: #fff; }
  .site-nav button.nav-link.active {
    color: #fff; background: #16b777; border: 0; font-weight: 600;
  }
  .site-main {
    max-width: none; margin: 60px 0 0 220px;
    width: auto; padding: 18px 20px 28px;
  }
  .site-footer { margin-left: 220px; }
}
@media (min-width: 769px) {
  body.tpl-element #app { background: #f5f7fa; }
  body.tpl-element .site-header-inner { padding-left: 236px; }
  body.tpl-element .site-logo {
    width: 220px; height: 60px; border-radius: 0;
    background: #fff; color: #409eff; border-right: 1px solid #dcdfe6;
  }
  body.tpl-element .site-nav {
    background: #fff; border-right: 1px solid #dcdfe6;
  }
  body.tpl-element .site-nav button.nav-link {
    width: calc(100% - 20px); height: 40px; margin: 2px 10px;
    border-radius: 6px; color: #606266; padding: 0 12px;
  }
  body.tpl-element .site-nav button.nav-link:hover {
    background: #f5f7fa; color: #409eff;
  }
  body.tpl-element .site-nav button.nav-link.active {
    background: #ecf5ff; color: #1677d2; border: 0; font-weight: 600;
  }
  body.tpl-element .site-main { padding-top: 20px; }
}
@media (max-width: 900px) {
  .legacy-col-4, .legacy-col-6 { grid-column: span 12; }
}
@media (max-width: 520px) {
  .legacy-dashboard { gap: 10px; }
  .legacy-col-4 { grid-column: span 6; }
  .layui-card-head { padding: 0 10px; }
  .layui-card-body-like { padding: 12px; }
  .layuiadmin-big-font { font-size: 24px; }
  .legacy-info-row { grid-template-columns: 76px 1fr; }
}

/* 现代首页工作台 */
.modern-home { display: grid; gap: 18px; }
.home-overview {
  min-height: 196px; padding: 30px 32px; border-radius: 16px;
  background: #ffffff; color: #111827; border: 1px solid #dbe5f0;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  overflow: hidden;
}
.home-overview-copy { min-width: 0; }
.home-kicker {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  color: #047857; font-size: 13px; font-weight: 700;
}
.home-kicker::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 0 5px rgba(52, 211, 153, .13);
}
.home-overview h1 {
  margin: 0; font-size: 26px; line-height: 1.35; font-weight: 750; letter-spacing: 0;
}
.home-overview p { margin: 10px 0 0; color: #64748b; font-size: 14px; line-height: 1.65; }
.home-overview-side { min-width: 270px; text-align: right; }
.home-balance-label { color: #64748b; font-size: 13px; }
.home-balance {
  margin: 4px 0 18px; font-size: 34px; line-height: 1.2; font-weight: 760;
  font-variant-numeric: tabular-nums;
}
.home-overview-actions { display: flex; justify-content: flex-end; gap: 10px; }
.home-overview .el-button { min-height: 38px; border-radius: 7px; }
.home-overview .el-button--primary {
  --el-button-bg-color: var(--primary); --el-button-border-color: var(--primary);
  --el-button-hover-bg-color: var(--primary-2); --el-button-hover-border-color: var(--primary-2);
}
.home-overview .el-button.is-plain {
  color: #334155; border-color: #cbd5e1; background: #fff;
}
.home-metrics {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px;
}
.home-metric {
  min-width: 0; padding: 14px; border: 1px solid #e5e7eb; border-radius: 10px;
  background: #fff; display: flex; align-items: center; gap: 10px;
}
.home-metric.stat-clickable {
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.home-metric.stat-clickable:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, .35);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

/* 首页统计下钻弹窗：移动端自适应，避免固定桌面宽度撑破页面 */
.responsive-dialog {
  width: min(920px, calc(100vw - 24px)) !important;
  max-width: calc(100vw - 24px);
  margin: 6vh auto 0 !important;
}
.responsive-dialog .el-dialog__body { padding: 12px 16px 16px; overflow-x: hidden; }
.responsive-dialog .el-table { font-size: 13px; }
.responsive-dialog .el-table__body-wrapper,
.responsive-dialog .el-table__header-wrapper { overflow-x: auto; }
@media (max-width: 600px) {
  .responsive-dialog {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px);
    margin-top: 3vh !important;
  }
  .responsive-dialog .el-dialog__header { padding: 14px 14px 8px; }
  .responsive-dialog .el-dialog__title { font-size: 16px; }
  .responsive-dialog .el-dialog__body { padding: 6px 8px 12px; }
  .responsive-dialog .el-table { font-size: 12px; min-width: 560px; }
  .responsive-dialog .el-pagination { justify-content: center; flex-wrap: wrap; }
  .responsive-dialog .stat-col-account,
  .responsive-dialog .stat-col-nickname,
  .responsive-dialog .stat-col-task,
  .responsive-dialog .stat-col-message { display: none; }
}
.home-metric-icon {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 8px;
  display: grid; place-items: center; color: var(--metric-color, #2563eb);
  background: var(--metric-bg, #eff6ff); font-size: 17px;
}
.home-metric-label { color: #64748b; font-size: 11px; }
.home-metric-value {
  margin-top: 2px; color: #111827; font-size: 16px; line-height: 1.2; font-weight: 730;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.home-section { min-width: 0; padding: 8px 0 2px; }
.home-section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px;
}
.home-section-head h2 { margin: 0; color: #111827; font-size: 17px; line-height: 1.4; letter-spacing: 0; }
.home-section-head p { margin: 4px 0 0; color: #64748b; font-size: 12px; }
.home-action-grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px;
}
.home-action {
  min-width: 0; height: 88px; padding: 12px 8px; border: 1px solid #e5e7eb; border-radius: 9px;
  background: #fff; color: #334155; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.home-action:hover {
  color: var(--primary); border-color: #bfdbfe; box-shadow: 0 8px 20px rgba(15,23,42,.07);
  transform: translateY(-1px);
}
.home-action .el-icon { font-size: 21px; }
.home-action span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.platform-picker-intro { margin: -4px 0 14px; color: #64748b; font-size: 13px; }
.platform-picker-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.platform-picker-item {
  min-width: 0; padding: 14px; border: 1px solid #e2e8f0; border-radius: 9px;
  background: #fff; color: #334155; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: 38px minmax(0, 1fr) 18px; align-items: center; gap: 11px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.platform-picker-item:hover {
  border-color: var(--pc, #409eff); box-shadow: 0 8px 20px rgba(15,23,42,.07);
  transform: translateY(-1px);
}
.platform-picker-mark {
  width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
  color: var(--pc, #409eff); background: color-mix(in srgb, var(--pc, #409eff) 11%, white);
}
.platform-picker-main { min-width: 0; }
.platform-picker-name {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #1f2937; font-size: 14px; font-weight: 700;
}
.platform-picker-meta {
  display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #64748b; font-size: 12px;
}
.platform-picker-arrow { color: var(--pc, #409eff); }
.platform-search-wrap { margin-bottom: 14px; }
.platform-search-empty {
  grid-column: 1 / -1; text-align: center; padding: 32px 16px; color: #94a3b8;
}
.platform-search-empty .el-icon { font-size: 32px; margin-bottom: 8px; display: block; }
.home-platform-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px;
}
.home-platform {
  position: relative; min-width: 0; min-height: 136px; padding: 17px;
  border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.home-platform:hover {
  border-color: var(--pc, #409eff); box-shadow: 0 10px 24px rgba(15,23,42,.08);
  transform: translateY(-2px);
}
.home-platform-top { display: flex; align-items: center; gap: 11px; padding-right: 44px; }
.home-platform-mark {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 9px;
  display: grid; place-items: center; color: var(--pc, #409eff);
  background: color-mix(in srgb, var(--pc, #409eff) 11%, white); font-weight: 800;
}
.home-platform h3 {
  margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #1f2937; font-size: 15px; line-height: 1.4; letter-spacing: 0;
}
.home-platform-badge {
  position: absolute; top: 14px; right: 14px; color: var(--pc, #409eff); font-size: 11px; font-weight: 700;
}
.home-platform p {
  margin: 12px 0 14px; min-height: 34px; color: #64748b; font-size: 12px; line-height: 1.45;
}
.home-platform-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  color: #64748b; font-size: 12px;
}
.home-platform-foot b { color: #111827; font-size: 15px; }
.home-platform-foot .el-icon { color: var(--pc, #409eff); }
.home-lower-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 14px; }
.home-detail-panel {
  min-width: 0; padding: 20px; border: 1px solid #e2e8f0; border-radius: 10px;
  background: #fff; box-shadow: 0 8px 24px rgba(15,23,42,.04);
}
.home-detail-panel .home-section-head { align-items: center; margin-bottom: 12px; }
.home-detail-heading { display: flex; align-items: center; gap: 11px; min-width: 0; }
.home-detail-icon {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 8px;
  display: grid; place-items: center; background: #eff6ff; color: #2563eb; font-size: 18px;
}
.home-detail-icon.notice { background: #fffbeb; color: #d97706; }
.home-info-list { border-top: 1px solid #eef2f7; }
.home-info-row {
  min-height: 50px; padding: 10px 2px; border-bottom: 1px solid #eef2f7;
  display: grid; grid-template-columns: 26px 82px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  font-size: 13px;
}
.home-info-row:last-child { border-bottom: 0; }
.home-info-row > .el-icon { color: #94a3b8; font-size: 16px; }
.home-info-label { color: #64748b; }
.home-info-value { color: #1f2937; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-notice {
  min-height: 156px; padding: 14px 2px 2px; border-top: 1px solid #eef2f7; background: transparent;
  color: #475569; font-size: 13px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere;
}
@media (max-width: 980px) {
  .home-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-action-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .modern-home { gap: 15px; }
  .home-overview { min-height: 0; padding: 22px 18px; display: block; border-radius: 12px; }
  .home-overview h1 { font-size: 21px; }
  .home-overview-side { min-width: 0; margin-top: 24px; text-align: left; }
  .home-balance { margin-bottom: 14px; font-size: 29px; }
  .home-overview-actions { justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
  .home-overview-actions .el-button { margin-left: 0; max-width: 100%; flex: 1 1 auto; }
  .home-overview-actions .el-button:last-child { flex: 1 1 100%; }
  .home-metrics { gap: 9px; }
  .home-metric { padding: 13px; gap: 10px; }
  .home-metric-icon { width: 36px; height: 36px; flex-basis: 36px; font-size: 18px; }
  .home-metric-value { font-size: 17px; }
  .home-platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .home-platform { min-height: 126px; padding: 14px; }
  .home-platform-top { gap: 8px; padding-right: 0; }
  .home-platform-mark { width: 32px; height: 32px; flex-basis: 32px; }
  .home-platform-badge { display: none; }
  .platform-picker-grid { grid-template-columns: minmax(0, 1fr); }
  .home-lower-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .home-detail-panel { padding: 16px; }
  .home-info-row { grid-template-columns: 24px 70px minmax(0, 1fr) auto; gap: 8px; }
}
@media (max-width: 390px) {
  .home-overview-actions .el-button { padding-left: 12px; padding-right: 12px; }
  .home-action-grid { gap: 7px; }
  .home-action { height: 78px; }
  .home-platform-grid { grid-template-columns: minmax(0, 1fr); }
}

/* PC 数据表格：外层铺满，内部列宽交给 Element 计算 */
.data-table.el-table {
  --el-table-header-bg-color: #f8fafc;
  --el-table-header-text-color: #475569;
  --el-table-text-color: #0f172a;
  --el-table-row-hover-bg-color: #f1f5f9;
  --el-table-border-color: #eef2f7;
  --el-table-bg-color: #fff;
  --el-table-tr-bg-color: #fff;
  --el-fill-color-lighter: #fafbfc;
  font-size: 13px;
  width: 100% !important;
  border: none !important;
}
.data-table .el-table__inner-wrapper,
.data-table .el-table__header-wrapper,
.data-table .el-table__body-wrapper,
.data-table .el-table__footer-wrapper {
  width: 100%;
}
.data-table.el-table::before,
.data-table.el-table::after,
.data-table .el-table__inner-wrapper::before { display: none !important; height: 0 !important; }
.data-table.el-table th.el-table__cell {
  background: #f8fafc !important;
  color: #475569 !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: .02em;
  height: 44px !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
.data-table.el-table th.el-table__cell .cell {
  white-space: nowrap !important;
  line-height: 20px !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  overflow: hidden;
  text-overflow: ellipsis;
}
.data-table.el-table td.el-table__cell {
  padding: 12px 0 !important;
  border-bottom: 1px solid #f1f5f9 !important;
  vertical-align: middle;
}
.data-table.el-table td.el-table__cell .cell {
  padding-left: 12px !important;
  padding-right: 12px !important;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
}
.data-table.el-table .el-table__row:last-child td.el-table__cell {
  border-bottom: none !important;
}
.data-table.el-table .el-table__fixed-right::before,
.data-table.el-table .el-table__fixed::before { background-color: transparent !important; }
.data-table.el-table .el-table__fixed-right-patch {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
.data-table .el-table__empty-block { min-height: 120px; width: 100% !important; }
.data-table .el-table__empty-text { color: var(--muted); font-size: 13px; }
.data-table .cell-ops {
  display: inline-flex; align-items: center; justify-content: center; gap: 2px; flex-wrap: nowrap;
}
.data-table .cell-ops .el-button { margin: 0 !important; padding: 4px 6px; }
.data-table .cell-mono {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; color: #334155;
}
.data-table .cell-num {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}
.toolbar.pc-toolbar { padding-bottom: 2px; }
.toolbar.pc-toolbar .el-button { min-width: 72px; }
.page-actions, .batch-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.batch-bar {
  margin-bottom: 12px; padding: 10px 12px; border: 1px solid #bfdbfe;
  border-radius: 8px; background: #eff6ff; color: #1e40af; font-size: 13px;
}
.batch-bar .count { font-weight: 700; margin-right: 4px; }
.import-summary {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; align-items: center;
  color: var(--muted); font-size: 12px;
}
.import-summary .name { color: var(--text); font-weight: 650; }

.status-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: #f1f5f9; color: #475569;
}
.status-pill.on { background: #d1fae5; color: #065f46; }
.status-pill.off { background: #fee2e2; color: #991b1b; }
.status-pill.warn { background: #ffedd5; color: #9a3412; }
.status-pill.done { background: #e2e8f0; color: #475569; }

.order-cards { display: none; gap: 12px; }
.order-card {
  background: #fff;
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 12px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.order-card.selected { border-color: #93c5fd; box-shadow: 0 0 0 2px #dbeafe; }
.order-card .pick { display: inline-flex; align-items: center; margin-right: 6px; }
.order-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--oc, var(--primary));
}
.order-card .t {
  font-weight: 750; font-size: 15px; display: flex; justify-content: space-between; gap: 8px; align-items: flex-start;
}
.order-card .t .acc { min-width: 0; word-break: break-all; line-height: 1.35; }
.order-card .t .acc .id { font-weight: 500; font-size: 12px; color: var(--muted); margin-left: 4px; }
.order-card .m { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.65; }
.order-card .meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px;
  margin-top: 10px; padding: 10px; border-radius: 10px; background: #f8fafc;
  font-size: 12px; color: var(--muted); line-height: 1.45;
}
.order-card .meta b { color: var(--text); font-weight: 650; }
.order-card .meta .full { grid-column: 1 / -1; }
.order-card .ops {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px;
  padding-top: 10px; border-top: 1px dashed var(--line);
}
.order-card .ops .el-button { margin: 0; }
.plat-name {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 650; color: #334155;
}
.plat-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--pc, var(--primary)); flex-shrink: 0;
}
.amt-up { color: var(--ok); font-weight: 750; white-space: nowrap; }
.amt-down { color: var(--danger); font-weight: 750; white-space: nowrap; }
.amt-bal { font-weight: 650; white-space: nowrap; }
.type-tag {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary); white-space: nowrap;
}
.type-tag.ok { background: #d1fae5; color: #065f46; }
.type-tag.fail { background: #fee2e2; color: #991b1b; }
.type-tag.mute { background: #f1f5f9; color: #475569; }
.log-list { display: none; gap: 10px; }
.recharge-disabled { padding: 18px 20px; }
.recharge-disabled-inner {
  min-height: 76px; display: flex; align-items: center; gap: 14px;
  color: var(--text); background: #f8fafc; border: 1px dashed var(--line);
  border-radius: 12px; padding: 16px 18px;
}
.recharge-disabled-icon {
  width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center;
  border-radius: 12px; background: #eaf2ff; color: var(--primary); font-size: 21px;
}
.recharge-disabled-title { font-size: 15px; font-weight: 700; }
.recharge-disabled-desc { margin-top: 3px; color: var(--muted); font-size: 13px; }
.recharge-entry-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 14px; align-items: stretch;
}
.recharge-entry-grid .panel { margin: 0; }
.recharge-card-panel { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.recharge-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.recharge-card-icon {
  width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center;
  border-radius: 10px; background: #ecfdf5; color: #059669; font-size: 20px;
}
.recharge-card-title { font-size: 16px; font-weight: 750; color: var(--text); }
.recharge-card-desc { margin-top: 2px; color: var(--muted); font-size: 12px; }
.recharge-record-panel { overflow: hidden; }
.recharge-record-panel > .page-head {
  margin-bottom: 12px !important; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.recharge-record-panel .table-wrap { overflow-x: auto; }
.recharge-record-panel .el-table { width: 100% !important; min-width: 850px; }
.recharge-record-empty { margin: 0; box-shadow: none; }
.log-item {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
  box-shadow: var(--shadow);
}
.log-item .row1 {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
}
.log-item .row1 .time { font-size: 12px; color: var(--muted); }
.log-item .row2 {
  margin-top: 8px; font-size: 13px; color: var(--text); line-height: 1.55; word-break: break-all;
}
.log-item .row3 {
  margin-top: 8px; display: flex; justify-content: space-between; align-items: center;
  gap: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap;
}
.pager-bar {
  margin-top: 16px; padding-top: 4px;
  display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; align-items: center;
}
.el-table { width: 100% !important; }

/* Image upload */
.upload-zone {
  border: 1.5px dashed #c7d2fe; border-radius: 16px; background: linear-gradient(180deg, #eef2ff, #f8fafc);
  padding: 28px 16px; text-align: center; cursor: pointer; transition: .15s ease; margin-bottom: 14px;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--primary); background: #eef2ff; box-shadow: inset 0 0 0 1px rgba(79,70,229,.15);
}
.upload-zone .uz-ico { font-size: 28px; margin-bottom: 8px; }
.upload-zone .uz-title { font-weight: 750; font-size: 14px; margin-bottom: 4px; }
.upload-zone .uz-tip { font-size: 12px; color: var(--muted); }
.img-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px;
}
.img-item {
  position: relative; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: #f8fafc; box-shadow: var(--shadow);
}
.img-item img {
  width: 100%; height: 110px; object-fit: cover; display: block; background: #e2e8f0;
}
.img-item .meta {
  padding: 8px 10px; display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--muted); background: #fff;
}
.img-item .del {
  position: absolute; top: 8px; right: 8px; border: 0; border-radius: 999px;
  background: rgba(15,23,42,.55); color: #fff; width: 26px; height: 26px;
  cursor: pointer; font-size: 14px; line-height: 26px; text-align: center;
}
.img-item .del:hover { background: var(--danger); }

.form-section-title {
  font-size: 13px; font-weight: 750; color: var(--muted); margin: 4px 0 10px;
  padding-bottom: 6px; border-bottom: 1px dashed var(--line);
}

.el-button--primary {
  --el-button-bg-color: var(--primary);
  --el-button-border-color: var(--primary);
  --el-button-hover-bg-color: var(--primary-2);
  --el-button-hover-border-color: var(--primary-2);
}
.el-dialog, .el-drawer { --el-dialog-border-radius: 16px; }
.el-dialog__header { padding-bottom: 8px; }
.el-drawer__body { padding: 12px 16px 24px; }

/* 下单弹窗 · 简洁 */
.order-dlg.el-dialog { border-radius: 12px; }
.order-dlg .el-dialog__header { padding: 16px 18px 8px; margin-right: 0; }
.order-dlg .el-dialog__title { font-size: 16px; font-weight: 700; color: var(--text); }
.order-dlg .el-dialog__body { padding: 4px 18px 8px; }
.order-dlg .el-dialog__footer {
  padding: 10px 18px 14px; border-top: 1px solid var(--line);
}
.order-dlg-body { max-height: min(68vh, 620px); overflow-y: auto; padding-right: 2px; }
.guide-bar {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: 12px;
  background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 10px;
  color: #0369a1; font-size: 13px; cursor: pointer; transition: background .15s;
}
.guide-bar:hover { background: #e0f2fe; }
.order-hint { margin: 0 0 12px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.usage-guide-box {
  margin: 0 0 16px; padding: 12px 14px; border-radius: 10px;
  background: #f0fdf4; border: 1px solid #bbf7d0; font-size: 13px; line-height: 1.55; color: #166534;
}
.usage-guide-box h2 { font-size: 15px; margin: 0 0 4px; color: #166534; font-weight: 700; }
.usage-guide-box h3 { font-size: 13px; margin: 6px 0 2px; color: #166534; font-weight: 600; }
.usage-guide-box p { margin: 4px 0; }
.usage-guide-box ul, .usage-guide-box ol { padding-left: 18px; margin: 2px 0; }
.usage-guide-box li { margin: 0; }
.usage-guide-box blockquote {
  margin: 6px 0 0; padding: 6px 10px; border-left: 3px solid #16b777;
  background: rgba(255,255,255,.6); border-radius: 0 6px 6px 0; font-size: 12px; color: #15803d;
}
.usage-guide-box code {
  background: rgba(0,0,0,.06); padding: 1px 4px; border-radius: 3px; font-size: 12px;
}
.usage-guide-box strong { font-weight: 700; }
.price-line {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin-bottom: 14px; padding: 10px 12px; border-radius: 8px;
  background: #f8fafc; border: 1px solid var(--line); font-size: 13px;
}
.price-line .pn { font-size: 16px; font-weight: 700; color: var(--text); }
.price-line .ps { font-size: 12px; color: var(--muted); }
.order-sec {
  font-size: 13px; font-weight: 700; color: #334155;
  margin: 14px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line);
}
.order-sec:first-of-type { margin-top: 0; }
.order-dlg .el-form-item { margin-bottom: 12px; }
.order-dlg .el-form-item__label { font-weight: 500; color: #475569; }
.order-need-preview {
  text-align: center; padding: 18px 12px; margin: 8px 0 4px;
  color: var(--muted); font-size: 13px; background: #f8fafc;
  border: 1px dashed var(--line); border-radius: 8px;
}

/* Footer / bottom */
.site-footer {
  background: #fff; border-top: 1px solid var(--line);
  margin-top: auto; padding: 18px 16px calc(18px + var(--safe-b));
}
.site-footer-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--muted);
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--primary); }

.feedback-layout {
  display: grid; grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
  gap: 16px; align-items: start;
}
.feedback-mode { margin-bottom: 16px; }
.feedback-mode .el-radio-group { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
.feedback-mode .el-radio-button { width: 100%; }
.feedback-mode .el-radio-button__inner { width: 100%; }
.feedback-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.feedback-history-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 12px;
}
.feedback-history-head h3 { margin: 0; font-size: 16px; }
.ticket-list { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.ticket-item { padding: 14px; border-bottom: 1px solid var(--line); background: var(--card); }
.ticket-item:last-child { border-bottom: 0; }
.ticket-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ticket-title { font-weight: 700; font-size: 14px; color: var(--text); }
.ticket-meta { color: var(--muted); font-size: 12px; margin-top: 5px; line-height: 1.6; }
.ticket-content { margin-top: 9px; color: var(--text); font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
.ticket-reply {
  margin-top: 10px; padding: 9px 11px; border-left: 3px solid var(--primary);
  background: var(--primary-soft); color: var(--text); font-size: 13px; line-height: 1.65;
}
.ticket-actions { display: flex; align-items: center; justify-content: flex-end; margin-top: 10px; }
.feedback-thread {
  max-height: 360px; overflow-y: auto; padding: 12px;
  border: 1px solid var(--line); border-radius: 8px; background: #f8fafc;
}
.feedback-message { display: flex; margin-bottom: 12px; }
.feedback-message:last-child { margin-bottom: 0; }
.feedback-message.user { justify-content: flex-end; }
.feedback-message.system { justify-content: center; }
.feedback-bubble { max-width: 84%; min-width: 110px; }
.feedback-bubble .meta { color: var(--muted); font-size: 11px; margin: 0 4px 4px; }
.feedback-message.user .meta { text-align: right; }
.feedback-bubble .content {
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); color: var(--text); white-space: pre-wrap;
  overflow-wrap: anywhere; line-height: 1.65; font-size: 13px;
}
.feedback-message.user .content { background: var(--primary); border-color: var(--primary); color: #fff; }
.feedback-message.system .content {
  border: 0; background: transparent; color: var(--muted); padding: 2px 8px; font-size: 12px;
}
.ticket-status {
  flex-shrink: 0; font-size: 11px; line-height: 22px; height: 22px; padding: 0 8px;
  border-radius: 999px; background: #fef3c7; color: #92400e;
}
.ticket-status.processing { background: #dbeafe; color: #1d4ed8; }
.ticket-status.resolved { background: #d1fae5; color: #047857; }
.ticket-status.closed { background: #e5e7eb; color: #475569; }
.mobile-more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mobile-more-item {
  min-height: 78px; border: 1px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 7px; font-size: 12px; cursor: pointer;
}
.mobile-more-item .el-icon { font-size: 22px; color: var(--primary); }
.mobile-admin-more { border-color: #93c5fd; background: var(--primary-soft); color: var(--primary); }
.mobile-more-drawer .el-drawer__body { padding: 4px 16px calc(18px + var(--safe-b)); }
.mobile-platform-trigger {
  display: none; position: fixed; left: 0; top: 68%; z-index: 39;
  width: 42px; min-height: 72px; padding: 9px 5px;
  border: 1px solid #bfdbfe; border-left: 0; border-radius: 0 8px 8px 0;
  background: rgba(255,255,255,.96); color: var(--primary);
  box-shadow: 0 8px 22px rgba(15,23,42,.12);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  font-size: 11px; font-weight: 700; cursor: grab; backdrop-filter: blur(10px);
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.mobile-platform-trigger.dragging { cursor: grabbing; box-shadow: 0 10px 26px rgba(15,23,42,.20); }
.mobile-platform-trigger .el-icon { font-size: 20px; }
.mobile-platform-drawer .el-drawer__header {
  margin: 0; padding: 18px 18px 14px; border-bottom: 1px solid var(--line);
  color: var(--text); font-weight: 700;
}
.mobile-platform-drawer .el-drawer__body {
  padding: 0 14px calc(18px + var(--safe-b)); background: var(--card);
}
.mobile-platform-summary {
  padding: 13px 2px 10px; color: var(--muted); font-size: 12px; line-height: 1.6;
}
.mobile-sidebar-nav {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.mobile-sidebar-nav button {
  min-height: 46px; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--card);
  color: var(--text); padding: 9px 10px; text-align: left; cursor: pointer;
}
.mobile-sidebar-nav button.active { border-color: #93c5fd; background: var(--primary-soft); color: var(--primary); }
.mobile-sidebar-nav .el-icon { font-size: 18px; color: var(--primary); }
.mobile-sidebar-section {
  margin: 12px 2px 2px; color: var(--muted); font-size: 12px; font-weight: 700;
}
.mobile-platform-list { display: grid; gap: 8px; }
.mobile-platform-row {
  width: 100%; min-height: 68px; padding: 10px 8px;
  border: 0; border-bottom: 1px solid var(--line); background: transparent;
  display: grid; grid-template-columns: 42px minmax(0,1fr) auto;
  gap: 10px; align-items: center; color: var(--text); text-align: left; cursor: pointer;
}
.mobile-platform-row:last-child { border-bottom: 0; }
.mobile-platform-row:active { background: var(--primary-soft); }
.mobile-platform-mark {
  width: 40px; height: 40px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: var(--pc, var(--primary)); font-size: 20px;
}
.mobile-platform-main { display: block; min-width: 0; }
.mobile-platform-name {
  display: flex; align-items: center; gap: 6px; min-width: 0;
  font-size: 14px; font-weight: 700; line-height: 1.35;
}
.mobile-platform-name > span:first-child {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mobile-platform-name .el-tag {
  flex-shrink: 0; max-width: 78px; overflow: hidden; text-overflow: ellipsis;
}
.mobile-platform-desc {
  display: block;
  margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mobile-platform-price { display: block; margin-top: 4px; color: var(--text); font-size: 12px; }
.mobile-platform-price b { color: var(--danger); font-size: 13px; }
.mobile-platform-arrow { color: var(--muted); font-size: 18px; }

.bottom-nav {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
  padding: 6px 2px calc(6px + var(--safe-b));
  grid-template-columns: repeat(5, 1fr); backdrop-filter: blur(10px);
}
.bottom-nav button {
  border: 0; background: transparent; color: var(--muted); font-size: 11px;
  min-height: 52px; padding: 6px 2px; cursor: pointer; border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}
.bottom-nav button.active { color: var(--primary); font-weight: 700; background: var(--primary-soft); }
.bottom-nav .ico { display: block; font-size: 20px; margin: 0; }

.detail-hero {
  border-radius: 16px; padding: 16px; margin-bottom: 12px;
  background: linear-gradient(145deg, #1e1b4b, #312e81 55%, #4338ca);
  color: #e0e7ff; box-shadow: var(--shadow);
}
.detail-hero .t { font-size: 17px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.detail-hero .m { font-size: 12px; line-height: 1.75; opacity: .9; }
.detail-hero .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

@media (max-width: 860px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .site-nav { display: none; }
  .bottom-nav { display: grid; }
  .mobile-platform-trigger { display: flex; }
  .desktop-only { display: none !important; }
  .order-cards { display: grid; }
  .log-list { display: grid; }
  .recharge-entry-grid { grid-template-columns: 1fr; }
  .site-main { padding-bottom: calc(76px + var(--safe-b)); }
  .site-footer { display: none; }
  .header-user .hide-sm { display: none; }
  .header-right > .el-button { display: none; }
  .header-right > .mobile-admin-entry { display: inline-flex !important; padding: 6px 9px; }
  .header-user { padding: 5px 7px; border: 0; background: transparent; }
  .site-header-inner { padding: 0 12px; gap: 8px; }
  .site-brand { gap: 8px; flex: 1; }
  .site-title { max-width: 118px; overflow: hidden; text-overflow: ellipsis; }
  .site-sub { display: none; }
  .page-head h2 { font-size: 18px; }
  .page-head { align-items: stretch; }
  .page-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .page-actions .el-button { width: 100%; margin: 0; }
  .page-actions .el-button:last-child { grid-column: 1 / -1; }
  .toolbar .el-input, .toolbar .el-select { width: 100% !important; max-width: none; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar .el-button { width: 100%; }
  .feedback-layout { grid-template-columns: 1fr; }
  .feedback-form-grid { grid-template-columns: 1fr; gap: 0; }
  .feedback-layout > .panel { padding: 14px; }
  .ticket-top { gap: 8px; }
}
@media (min-width: 769px) {
  .bottom-nav { display: none !important; }
}

/* 全页水印 · 禁止分享（canvas 平铺，铺满视口） */
.page-wm {
  position: fixed; left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh; height: 100dvh;
  z-index: 99999; pointer-events: none; overflow: hidden;
  user-select: none; -webkit-user-select: none;
  background-repeat: repeat; background-position: 0 0;
}
[v-cloak] { display: none !important; }
.auth-bootstrap {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: #64748b; font-size: 13px; background: #f5f7fa;
}
.auth-bootstrap-spinner {
  width: 28px; height: 28px; border: 3px solid #dbe4f0;
  border-top-color: #409eff; border-radius: 50%;
  animation: auth-bootstrap-spin .72s linear infinite;
}
@keyframes auth-bootstrap-spin { to { transform: rotate(360deg); } }

/* 轻量视觉统一：保留各模板配色，只增强层次、圆角与交互反馈。 */
.site-header {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
}
.site-logo { border-radius: 12px; }
.panel,
.stat-card,
.platform-card,
.order-card,
.log-item,
.layui-card-like,
.quick-card,
.table-wrap { border-radius: 14px; }
.panel, .stat-card, .platform-card, .order-card, .quick-card {
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.panel:hover, .stat-card:hover, .quick-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 12px 28px rgba(15,23,42,.08);
}
.el-button:not(.is-text) { border-radius: 9px; transition: transform .15s ease, box-shadow .15s ease; }
.el-button--primary:not(.is-text):hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(64,158,255,.18); }
.el-input__wrapper, .el-select__wrapper, .el-textarea__inner { border-radius: 9px; }
.site-nav button.nav-link { border-radius: 8px; }
.layui-card-like { overflow: hidden; }
.empty-box { box-shadow: inset 0 0 0 1px rgba(148,163,184,.04); }
@media (max-width: 768px) {
  .site-header-inner { height: 56px; }
  .site-main { padding-left: 14px; padding-right: 14px; }
  .panel { padding: 14px; }
  .stat-card { padding: 13px; }
  .platform-card:active, .quick-card:active, .mobile-more-item:active { transform: scale(.985); }
}
