/* ===== 公众号无限回调授权系统 · 主题样式（Art Design Pro 风格） ===== */
:root {
  /* --- Art Design Pro 语义色板 --- */
  --art-primary: #5b8bff;
  --art-primary-light: #b9cbff;
  --art-primary-dark: #3f6fe4;
  --art-secondary: #6aa8ff;
  --art-success: #37c26b;
  --art-warning: #ff9f43;
  --art-danger: #f5534f;
  --art-info: #4aa8e0;

  /* --- 兼容旧引用（保持既有业务样式不炸） --- */
  --as-primary: var(--art-primary);
  --as-primary-2: #7b5bff;
  --as-bg: #f8fafc;
  --as-card: #ffffff;
  --as-card-2: #f8fafc;
  --as-text: #0f172a;
  --as-text-secondary: #475569;
  --as-text-sub: #94a3b8;
  --as-text-muted: #94a3b8;
  --as-border: #e2e8f0;
  --as-border-light: #f1f5f9;
  --as-bg-hover: #f1f5f9;
  --as-bg-active: #e2e8f0;
  --as-side-bg: #ffffff;
  --as-shadow: 0 1px 3px 0 rgb(15 23 42 / .08), 0 1px 2px -1px rgb(15 23 42 / .06);
  --as-shadow-hover: 0 10px 15px -3px rgb(15 23 42 / .1), 0 4px 6px -4px rgb(15 23 42 / .08);
  --as-radius: 12px;
  --as-radius-sm: 8px;
  /* Element Plus 主色：本地 vendor element-plus.css 用的是 :root{--el-color-primary:#409eff}，
     与本块特异性相同、且其样式表在前，故本块直接生效；下面的 light-*/dark-* 派生色
     用于按钮 hover/active 等状态，必须补齐，否则会回落到 Element 默认蓝或透明。 */
  --el-color-primary: #5b8bff;
  --el-color-primary-light-3: #88a9ff;
  --el-color-primary-light-5: #a9c1ff;
  --el-color-primary-light-7: #cad8ff;
  --el-color-primary-light-8: #dbe4ff;
  --el-color-primary-light-9: #edf2ff;
  --el-color-primary-dark-2: #3f6fe4;
  --el-color-success: #37c26b;
  --el-color-warning: #ff9f43;
  --el-color-danger: #f5534f;
  --el-border-radius-base: 8px;
}
html.dark {
  --art-primary-light: #2c3f6e;
  /* 暗色下 Element Plus 的 element-plus-dark.css 用 `html.dark{--el-color-primary:#409eff}`
     覆盖主色（特异性 0,1,1 > 本文件的 :root 0,1,0）。这里用同等特异性的选择器改写回来，
     且本文件在 dark.css 之后加载 → 同分靠后胜出。派生色必须同步重写，否则 hover 会串回默认蓝。 */
  --el-color-primary: #5b8bff;
  --el-color-primary-light-3: #4f76cf;
  --el-color-primary-light-5: #41609f;
  --el-color-primary-light-7: #344a74;
  --el-color-primary-light-8: #2d3f61;
  --el-color-primary-light-9: #26344f;
  --el-color-primary-dark-2: #7ba3ff;
  --as-bg: #0f172a;
  --as-card: #1e293b;
  --as-card-2: #1a2436;
  --as-text: #f1f5f9;
  --as-text-secondary: #cbd5e1;
  --as-text-sub: #64748b;
  --as-text-muted: #64748b;
  --as-border: #334155;
  --as-border-light: #1e293b;
  --as-bg-hover: #334155;
  --as-bg-active: #475569;
  --as-side-bg: #1e293b;
  --as-shadow: 0 1px 3px 0 rgb(0 0 0 / .35);
  --as-shadow-hover: 0 10px 15px -3px rgb(0 0 0 / .45);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--as-bg);
  color: var(--as-text);
  font-family: Inter, -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}
[v-cloak] { display: none; }
a { color: var(--as-primary); text-decoration: none; }
.as-icon { vertical-align: -3px; }

/* Art Design Pro 风格滚动条 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--as-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--as-text-muted); }

/* 统一过渡曲线 */
.transition-art { transition: all .2s cubic-bezier(.4, 0, .2, 1); }

/* ===== 加载动画 ===== */
#appLoading {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--as-bg);
  transition: opacity .4s ease;
}
#appLoading.hide { opacity: 0; pointer-events: none; }
.loader-ring {
  width: 54px; height: 54px; border-radius: 50%;
  border: 3px solid rgba(91, 139, 255, .18);
  border-top-color: var(--as-primary);
  animation: spin .9s linear infinite;
}
#appLoading p { margin-top: 16px; color: var(--as-text-sub); font-size: 13px; letter-spacing: 1px; }
@keyframes spin { to { transform: rotate(360deg); } }
.fade-up { animation: fadeUp .45s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fade-in { animation: fadeIn .35s ease both; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

/* ===== 卡片 ===== */
.as-card {
  background: var(--as-card);
  border-radius: var(--as-radius);
  box-shadow: var(--as-shadow);
  padding: 20px;
  border: 1px solid var(--as-border);
  transition: box-shadow .25s, transform .25s;
}
.as-card-title {
  font-size: 16px; font-weight: 600; margin: 0 0 14px;
  display: flex; align-items: center; gap: 8px;
}
.as-title-line {
  width: 4px; height: 16px; border-radius: 3px;
  background: linear-gradient(180deg, var(--as-primary), var(--as-primary-2));
}

/* ===== 前台布局 ===== */
.front-wrap { display: flex; min-height: 100vh; }
.front-side {
  width: 256px; flex: 0 0 256px; background: var(--as-card);
  border-right: 1px solid var(--as-border);
  padding: 0 12px 16px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
}
.front-logo {
  display: flex; align-items: center; gap: 12px;
  height: 64px; padding: 0 10px; margin-bottom: 6px;
  border-bottom: 1px solid var(--as-border-light);
}
.front-logo-mark {
  width: 36px; height: 36px; border-radius: var(--as-radius-sm); flex: 0 0 36px;
  background: linear-gradient(135deg, var(--art-primary), var(--art-secondary));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; box-shadow: var(--as-shadow);
}
.front-logo-text { font-weight: 600; font-size: 14px; line-height: 1.25; }
.front-logo-sub {
  font-size: 10px; color: var(--as-text-muted);
  font-weight: 500; letter-spacing: .08em;
}
.front-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.front-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--as-radius-sm); cursor: pointer;
  color: var(--as-text-secondary); font-size: 14px; font-weight: 500;
  transition: all .2s cubic-bezier(.4, 0, .2, 1); position: relative;
}
.front-nav-item:hover { background: var(--as-bg-hover); color: var(--as-text); }
.front-nav-item.active {
  background: var(--art-primary); color: #fff; font-weight: 500;
  box-shadow: var(--as-shadow);
}
.front-side-foot {
  margin-top: auto; padding: 14px 10px 4px;
  border-top: 1px solid var(--as-border-light);
  font-size: 12px; color: var(--as-text-muted);
}
.front-side-foot .foot-row { display: flex; align-items: center; gap: 10px; padding: 6px 2px; }
.front-side-foot .foot-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: var(--as-bg-hover); color: var(--as-text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
}
.front-side-foot .foot-name { font-size: 12px; font-weight: 600; color: var(--as-text); }
.front-side-foot .foot-sub { font-size: 10px; color: var(--as-text-muted); }
.front-main { flex: 1; min-width: 0; padding: 0 0 60px; }
.front-header {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 32px; margin-bottom: 24px;
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--as-card) 80%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--as-border-light);
}
.front-header-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.front-header h1 { font-size: 16px; margin: 0; font-weight: 600; white-space: nowrap; }
.front-body { padding: 0 32px; max-width: 1024px; margin: 0 auto; }
.front-menu-btn {
  display: none; padding: 8px; border: 0; border-radius: var(--as-radius-sm);
  background: transparent; color: var(--as-text-secondary); cursor: pointer;
}
.front-menu-btn:hover { background: var(--as-bg-hover); }
.front-icon-btn {
  padding: 8px; border: 0; border-radius: var(--as-radius-sm);
  background: transparent; color: var(--as-text-secondary); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s cubic-bezier(.4, 0, .2, 1);
}
.front-icon-btn:hover { background: var(--as-bg-hover); color: var(--as-text); }
.front-mask {
  position: fixed; inset: 0; z-index: 39;
  background: rgba(15, 23, 42, .45); backdrop-filter: blur(2px);
}
.front-footer {
  margin-top: 32px; padding: 24px 0; text-align: center;
  border-top: 1px solid var(--as-border-light);
  color: var(--as-text-muted); font-size: 12px;
}
.front-footer a { color: var(--as-text-muted); }

.front-hero {
  background: linear-gradient(135deg, var(--art-primary) 0%, var(--art-secondary) 100%);
  border-radius: var(--as-radius); padding: 40px;
  color: #fff; margin-bottom: 24px;
  box-shadow: var(--as-shadow-hover); position: relative; overflow: hidden;
}
.front-hero::after {
  content: ''; position: absolute; right: -80px; top: -80px; width: 256px; height: 256px;
  border-radius: 50%; background: rgba(255, 255, 255, .1); filter: blur(48px);
}
.front-hero::before {
  content: ''; position: absolute; left: -80px; bottom: -80px; width: 192px; height: 192px;
  border-radius: 50%; background: rgba(255, 255, 255, .06); filter: blur(48px);
}
.front-hero h2 {
  margin: 0 0 12px; font-size: 28px; font-weight: 700;
  letter-spacing: -.02em; position: relative; z-index: 10;
}
.front-hero p {
  margin: 0; opacity: .85; font-size: 14px; line-height: 1.7;
  max-width: 640px; position: relative; z-index: 10;
}
.hero-tags { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 10; }
.hero-tag {
  background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .25);
  padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 500;
  backdrop-filter: blur(4px);
}

/* ===== 公告 ===== */
.notice-card { border-left: 0; }
.notice-head { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.notice-title { font-weight: 600; font-size: 14px; }
.notice-body {
  color: var(--as-text-secondary); line-height: 1.8; white-space: pre-wrap;
  margin-top: 12px; font-size: 13.5px;
}
.notice-tag {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  background: color-mix(in srgb, var(--art-danger) 12%, transparent);
  color: var(--art-danger); font-size: 10px; font-weight: 700;
}
.notice-toggle {
  font-size: 12px; color: var(--as-text-muted); cursor: pointer;
  transition: color .2s;
}
.notice-toggle:hover { color: var(--as-text); }

/* ===== 表单辅助 ===== */
.form-item { margin-bottom: 24px; }
.form-label {
  display: flex; align-items: center; gap: 2px;
  font-size: 14px; font-weight: 500; color: var(--as-text);
  margin-bottom: 8px;
}
.form-submit { padding-top: 4px; }
.form-submit-tip {
  text-align: center; font-size: 12px; margin: 12px 0 0;
  color: var(--as-text-muted); transition: color .2s;
}
.form-submit-tip.ok { color: var(--art-success); }
.field-tip { font-size: 12px; color: var(--as-text-muted); margin-top: 6px; line-height: 1.6; }
.help-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--as-bg-hover); border: 1px solid var(--as-border);
  color: var(--as-text-muted); font-size: 10px; margin-left: 6px; cursor: help;
}
.pay-radio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pay-option {
  border: 1px solid var(--as-border); border-radius: var(--as-radius-sm); padding: 16px;
  display: flex; align-items: center; gap: 12px; cursor: pointer; min-width: 0;
  transition: all .2s cubic-bezier(.4, 0, .2, 1); background: var(--as-card);
}
.pay-option:hover { border-color: var(--art-primary); }
.pay-option.active {
  border-color: var(--art-primary);
  background: color-mix(in srgb, var(--art-primary) 5%, transparent);
  box-shadow: 0 0 0 1px var(--art-primary);
}
.pay-logo {
  width: 36px; height: 36px; border-radius: 6px; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 700;
}

/* ===== Logo 图片与上传器 ===== */
/* 上传器：后台「网站设置 → 站点 Logo」在用；品牌区 Logo 样式前后台共用 */
.logo-uploader {
  position: relative; display: flex; gap: 16px; align-items: flex-start;
  width: 100%; min-width: 0;
}
.logo-drop {
  flex: none; width: 104px; height: 104px; border-radius: var(--as-radius-sm);
  border: 1px dashed var(--as-border); background: var(--as-bg-hover);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  cursor: pointer; transition: all .2s cubic-bezier(.4, 0, .2, 1);
}
.logo-drop:hover { border-color: var(--art-primary); }
.logo-drop.is-drag {
  border-color: var(--art-primary);
  background: color-mix(in srgb, var(--art-primary) 8%, transparent);
}
.logo-drop img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.logo-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 0 8px; text-align: center;
  color: var(--as-text-muted); font-size: 12px; line-height: 1.4;
}
.logo-side { flex: 1 1 auto; min-width: 0; }
.logo-ops { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
/* 原生 file input 由按钮代触发，视觉上隐藏但保留可访问性（不能 display:none，否则部分浏览器不触发） */
.logo-file {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: 0;
  opacity: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0);
}
/* 品牌区 Logo 图片：与 .front-logo-mark / 登录页 SVG 同尺寸，圆角对齐。
   object-fit 必须用 contain —— 站点 Logo 常是横版（如 200x60），用 cover 会被
   裁成中间一小块，看上去像「图案残缺」，用户会以为图没传成功。 */
.front-logo-img {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: var(--as-radius-sm);
  object-fit: contain; display: block;
}
.lg-logo-img {
  width: 38px; height: 38px; border-radius: var(--as-radius-sm);
  object-fit: contain; display: block;
}

/* ===== 后台布局 ===== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-side {
  width: 240px; flex: 0 0 240px; background: var(--as-card);
  border-right: 1px solid var(--as-border);
  position: fixed; left: 0; top: 0; bottom: 0; overflow-y: auto;
  padding: 0 12px 16px; transition: width .25s; z-index: 20;
}
.admin-side.collapsed { width: 64px; flex: 0 0 64px; }
.admin-main { flex: 1; min-width: 0; margin-left: 240px; transition: margin-left .25s; }
.admin-side.collapsed + .admin-main { margin-left: 64px; }
.admin-top {
  position: sticky; top: 0; z-index: 15; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  background: color-mix(in srgb, var(--as-card) 80%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--as-border-light);
}
.admin-content { padding: 24px; }
.admin-menu { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.admin-menu-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: var(--as-radius-sm); cursor: pointer;
  color: var(--as-text-secondary); font-size: 14px; font-weight: 500;
  transition: all .2s cubic-bezier(.4, 0, .2, 1); white-space: nowrap;
}
.admin-menu-item:hover { background: var(--as-bg-hover); color: var(--as-text); }
.admin-menu-item.active {
  background: var(--art-primary); color: #fff; font-weight: 500;
  box-shadow: var(--as-shadow);
}
.admin-menu-badge { margin-left: auto; }
.admin-user {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 6px 10px; border-radius: var(--as-radius-sm); transition: background .2s;
}
.admin-user:hover { background: var(--as-bg-hover); }
.admin-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--art-primary), var(--art-secondary));
  color: #fff; font-weight: 600;
}

/* --- 顶部栏结构（原为内联样式，抽出来以便移动端覆写） --- */
.top-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.top-title { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-right { display: flex; align-items: center; gap: 12px; position: relative; min-width: 0; }
.top-search { width: 230px; }
/* 移动端抽屉遮罩：admin-side(z:20) 之上、内容(z:15) 之下 */
.side-mask {
  position: fixed; inset: 0; z-index: 18;
  background: rgba(15, 23, 42, .45);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.side-mask.show { opacity: 1; pointer-events: auto; }
/* 菜单图标不被长菜单名压缩 */
.admin-menu-item .as-icon, .admin-menu-item svg { flex: none; }

/* ===== 统计卡片 ===== */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-card {
  position: relative; overflow: hidden; cursor: pointer;
  border-radius: var(--as-radius); padding: 20px; color: #fff;
  box-shadow: var(--as-shadow); transition: transform .3s cubic-bezier(.2, .8, .3, 1), box-shadow .3s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--as-shadow-hover); }
.stat-card::after {
  content: ''; position: absolute; right: -30px; bottom: -40px; width: 130px; height: 130px;
  border-radius: 50%; background: rgba(255, 255, 255, .16);
}
.stat-blue { background: linear-gradient(135deg, #5b8bff, #3f6fe4); }
.stat-green { background: linear-gradient(135deg, #37c26b, #1fa85a); }
.stat-purple { background: linear-gradient(135deg, #8f6bff, #6a4bd8); }
.stat-orange { background: linear-gradient(135deg, #ff9f43, #f57c1f); }
.stat-label { font-size: 13px; opacity: .92; display: flex; align-items: center; gap: 6px; }
.stat-value { font-size: 30px; font-weight: 700; margin: 8px 0 4px; letter-spacing: .5px; }
.stat-sub { font-size: 12px; opacity: .85; }
.stat-icon { position: absolute; right: 18px; top: 18px; opacity: .85; }

/* ===== 信息卡片 ===== */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 24px; }
.info-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--as-border); font-size: 13px; }
.info-label { color: var(--as-text-sub); min-width: 96px; }
.info-value { font-weight: 500; word-break: break-all; }

/* ===== 快捷操作 ===== */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quick-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 8px; border-radius: 12px; cursor: pointer;
  background: var(--as-card-2); border: 1px solid var(--as-border);
  transition: all .25s; font-size: 13px;
}
.quick-btn:hover { transform: translateY(-4px); box-shadow: var(--as-shadow-hover); border-color: var(--as-primary); color: var(--as-primary); }
.quick-icon {
  width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(91, 139, 255, .16), rgba(123, 91, 255, .16)); color: var(--as-primary);
}

/* ===== 表格与筛选 ===== */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.table-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 12px; flex-wrap: wrap; }
.pager { display: flex; justify-content: flex-end; margin-top: 14px; }
/* 表格横向滚动容器：移动端避免表格撑破布局 */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .el-table { min-width: 640px; }

/* ===== Element 细节微调 ===== */
.el-card { border-radius: var(--as-radius) !important; border: 1px solid var(--as-border) !important; }
.el-table { --el-table-border-color: var(--as-border); }
html.dark .el-table { --el-table-bg-color: var(--as-card); --el-table-tr-bg-color: var(--as-card); --el-table-header-bg-color: var(--as-card-2); }
.el-button { border-radius: 8px !important; }
.el-input__wrapper, .el-select__wrapper { border-radius: 8px !important; }
.page-title { font-size: 18px; font-weight: 600; margin: 0 0 4px; }
.page-desc { color: var(--as-text-sub); font-size: 13px; margin-bottom: 16px; }

/* ===== 登录页（旧卡片版样式已废弃，见上方 .lg-* 新版） ===== */

/* ===== 登录页（版式对齐参考稿：通栏品牌栏 + 大标题 + 无边框输入 + 滑块验证） ===== */
.lg-page {
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--as-bg); color: var(--as-text);
}
/* --- 顶部品牌栏 --- */
.lg-top {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 22px 26px;
}
.lg-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lg-logo { display: inline-flex; flex: none; }
.lg-logo svg { display: block; }
.lg-brand-name {
  margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.01em;
  color: var(--as-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lg-theme {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: transparent; color: #1e293b; cursor: pointer;
  transition: background .2s, color .2s;
}
.lg-theme:hover { background: var(--as-bg-hover); color: var(--art-primary); }
html.dark .lg-theme { color: #e2e8f0; }

/* --- 主体（对齐参考稿：整体上移、左对齐、宽度收敛） --- */
.lg-main {
  flex: 1; width: 100%; max-width: 520px;
  margin: 0 auto; padding: 46px 26px 40px;
  display: flex; flex-direction: column;
}
.lg-title {
  margin: 0 0 10px; font-size: 34px; font-weight: 700; line-height: 1.25;
  letter-spacing: -.02em; color: #1e293b;
}
html.dark .lg-title { color: #f1f5f9; }
.lg-desc { margin: 0 0 34px; font-size: 15px; color: #64748b; }
html.dark .lg-desc { color: #94a3b8; }

/* --- 表单 --- */
.lg-form { display: flex; flex-direction: column; }
.lg-input {
  width: 100%; height: 56px; margin-bottom: 16px; padding: 0 18px;
  border: 1px solid var(--as-border); border-radius: 10px;
  background: var(--as-card); color: var(--as-text);
  font-size: 15px; font-family: inherit; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.lg-input::placeholder { color: #94a3b8; }
.lg-input:focus {
  border-color: var(--art-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--art-primary) 14%, transparent);
}

/* --- 滑块验证 --- */
.lg-slider {
  position: relative; height: 56px; margin-bottom: 26px;
  border: 1px solid var(--as-border); border-radius: 10px;
  background: var(--as-card-2); overflow: hidden; user-select: none;
}
.lg-slider-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: color-mix(in srgb, var(--art-primary) 12%, transparent);
  transition: width .12s linear;
}
.lg-slider-knob {
  position: absolute; left: 0; top: 0; bottom: 0; width: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--as-card); border-right: 1px solid var(--as-border);
  color: #64748b; cursor: grab; touch-action: none;
  transition: left .12s linear, color .2s, background .2s;
}
.lg-slider.dragging .lg-slider-knob { cursor: grabbing; transition: color .2s, background .2s; }
.lg-slider:hover .lg-slider-knob { color: var(--art-primary); }
.lg-slider.ok { border-color: color-mix(in srgb, var(--art-success) 45%, transparent); }
.lg-slider.ok .lg-slider-fill { background: color-mix(in srgb, var(--art-success) 14%, transparent); }
.lg-slider.ok .lg-slider-knob {
  left: calc(100% - 46px); border-right: 0; border-left: 1px solid var(--as-border);
  color: #fff; background: var(--art-success);
}
.lg-slider.ok .lg-slider-text { color: var(--art-success); font-weight: 600; }
.lg-slider-text {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: #64748b; pointer-events: none;
}
html.dark .lg-slider-text, html.dark .lg-slider-knob { color: #94a3b8; }

/* --- 提交 / 页脚 --- */
.lg-submit {
  width: 100%; height: 56px; border: 0; border-radius: 10px;
  background: var(--art-primary); color: #fff;
  font-size: 17px; font-weight: 600; font-family: inherit; cursor: pointer;
  transition: background .2s cubic-bezier(.4,0,.2,1), box-shadow .2s, transform .1s;
}
.lg-submit:hover:not(:disabled) { background: var(--art-primary-dark); box-shadow: var(--as-shadow-hover); }
.lg-submit:active:not(:disabled) { transform: translateY(1px); }
.lg-submit:disabled { opacity: .65; cursor: not-allowed; }
.lg-foot { display: flex; justify-content: flex-end; margin-top: 22px; }
.lg-forgot {
  font-size: 15px; color: var(--art-primary); cursor: pointer;
  transition: color .2s;
}
.lg-forgot:hover { color: var(--art-primary-dark); text-decoration: underline; }

@media (max-width: 480px) {
  .lg-top { padding: 18px 18px; }
  .lg-brand-name { font-size: 19px; }
  .lg-main { padding: 26px 18px 32px; }
  .lg-title { font-size: 28px; }
  .lg-desc { margin-bottom: 26px; }
  .lg-input, .lg-slider, .lg-submit { height: 52px; }
  .lg-slider-knob { width: 44px; }
  .lg-slider.ok .lg-slider-knob { left: calc(100% - 44px); }
}

/* ===== 统一弹窗样式 ===== */
.as-dialog .el-dialog__header { padding-bottom: 10px; }
.as-dialog .el-dialog__title { font-weight: 600; }
.as-dialog .el-dialog__headerbtn { top: 12px; right: 12px; }
.as-dialog .el-dialog__footer { padding-top: 10px; }
.as-confirm { border-radius: 14px !important; padding-bottom: 12px; }
.as-confirm .el-message-box__title { font-weight: 600; }
.as-confirm .el-message-box__content { line-height: 1.8; }
.el-message { border-radius: 10px !important; }
.el-overlay-dialog .el-dialog { border-radius: 14px !important; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .pay-radio { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  /* 侧边栏变抽屉 */
  .front-side {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 40;
    width: 264px; flex: none; height: 100vh;
    transform: translateX(-100%); transition: transform .25s cubic-bezier(.4, 0, .2, 1);
    box-shadow: none;
  }
  .front-side.mobile-open { transform: none; box-shadow: 0 0 40px rgba(15, 23, 42, .3); }
  .front-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .front-header { padding: 0 16px; height: 56px; margin-bottom: 16px; }
  .front-header h1 { font-size: 15px; }
  .front-body { padding: 0 16px; }
  .front-hero { padding: 24px 20px; border-radius: var(--as-radius); }
  .front-hero h2 { font-size: 21px; }
  .front-hero p { font-size: 13px; }
  .hero-tags { margin-top: 16px; }
  .hero-tag { font-size: 11px; padding: 5px 11px; }
  .front-side-foot { display: block; }

  .admin-side {
    position: fixed; transform: translateX(-100%);
    width: 264px; flex: 0 0 264px;
  }
  /* 手机上不存在「折叠态」：即使状态残留也要按完整抽屉渲染 */
  .admin-side.collapsed { width: 264px; flex: 0 0 264px; }
  .admin-side.mobile-open { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .25); }
  .admin-main { margin-left: 0 !important; }
  .admin-top { height: 56px; padding: 0 12px; }
  .top-title { font-size: 15px; }
  /* 390px 宽放不下 230px 搜索框 + 标题 + 头像，收窄并隐藏用户名文字 */
  .top-search { width: 128px; }
  .top-search .el-input__inner { padding: 0 9px; }
  .top-user-info { display: none; }
  .admin-content { padding: 14px 12px 22px; }
  .stat-grid, .info-grid, .quick-grid { grid-template-columns: 1fr; }
  .stat-value { font-size: 24px; }
  .page-title { font-size: 16px; }
  /* 弹窗在手机上铺满留白，避免 700px 宽的固定对话框溢出 */
  .el-dialog { width: calc(100vw - 24px) !important; max-width: calc(100vw - 24px) !important; margin-top: 6vh !important; }
  .el-message-box { max-width: calc(100vw - 32px); }
  .el-date-editor.el-input, .el-date-editor.el-input__inner { width: 100%; }
}

/* ===== 回调设置（极简表单） ===== */
/* 后台只保留这一个页面/表单，相关样式集中在此，勿被前台同名字段误用 */
.cbx-card { padding: 22px 24px 26px; }
.cbx-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-size: 15px; font-weight: 600; color: var(--as-text);
  padding-bottom: 12px; margin-bottom: 20px;
  border-bottom: 1px solid var(--as-border-light);
}
.cbx-head-link {
  flex: none; font-size: 12.5px; font-weight: 500;
  color: var(--art-primary); text-decoration: none; white-space: nowrap;
  transition: color .2s;
}
.cbx-head-link:hover { color: var(--art-primary-dark); }
.cbx-form { max-width: 560px; }
.cbx-item { margin-bottom: 18px; }
.cbx-label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--as-text-secondary); margin-bottom: 8px;
}
.cbx-control { width: 100%; }
/* 提交按钮：钉住主色，避免 Element Plus 的 light-3 hover 覆盖 */
.cbx-submit {
  width: 100%; height: 44px; margin-top: 6px;
  background: var(--art-primary); border-color: var(--art-primary); color: #fff;
  border-radius: var(--as-radius-sm); font-size: 15px; font-weight: 600;
  transition: background .2s cubic-bezier(.4, 0, .2, 1), box-shadow .2s;
}
.cbx-submit:hover, .cbx-submit:focus, .cbx-submit:active {
  background: var(--art-primary-dark) !important;
  border-color: var(--art-primary-dark) !important;
  color: #fff !important; box-shadow: var(--as-shadow);
}

/* 对接信息：字段 + 复制（前台「接口信息」页在用，勿删） */
.cbx-info { display: flex; flex-direction: column; gap: 18px; }
.cbx-info-item { display: block; }
.cbx-copy-row { display: flex; align-items: center; gap: 10px; }
.cbx-copy-val {
  flex: 1; min-width: 0; padding: 10px 14px;
  background: var(--as-card-2); border: 1px solid var(--as-border);
  border-radius: var(--as-radius-sm); font-size: 13px; color: var(--as-text-secondary);
  font-family: ui-monospace, Consolas, monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 复制按钮：浅色描边风，降低大面积实心的视觉重量 */
.cbx-copy-btn {
  flex: none; padding: 9px 20px; border: 1px solid var(--art-primary);
  border-radius: var(--as-radius-sm);
  background: color-mix(in srgb, var(--art-primary) 8%, transparent);
  color: var(--art-primary); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: background .2s cubic-bezier(.4, 0, .2, 1), color .2s, box-shadow .2s;
}
.cbx-copy-btn:hover {
  background: var(--art-primary); color: #fff; box-shadow: var(--as-shadow);
}

/* 教程区块（前台「接口信息」页在用，勿删） */
.cbx-tutorial { font-size: 13.5px; line-height: 1.9; color: var(--as-text-secondary); }
.cbx-tutorial .k { color: var(--art-danger); font-weight: 600; word-break: break-all; }
.cbx-tutorial .link { color: var(--art-danger); word-break: break-all; }
.cbx-quote {
  margin: 14px 0; padding: 12px 16px;
  border-left: 3px solid var(--art-primary);
  background: color-mix(in srgb, var(--art-primary) 5%, transparent);
  border-radius: 0 var(--as-radius-sm) var(--as-radius-sm) 0;
  font-size: 13px; line-height: 1.8;
}
.cbx-note {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 16px; padding: 11px 14px;
  background: color-mix(in srgb, var(--art-warning) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--art-warning) 28%, transparent);
  border-radius: var(--as-radius-sm); font-size: 13px; color: var(--as-text-secondary);
}
.cbx-note-ico { flex: none; color: var(--art-warning); font-weight: 700; }
/* 配置未就绪时的警示态（红色），后台「回调设置」用它区分「能跑」与「跑不起来」 */
.cbx-note-warn {
  background: color-mix(in srgb, var(--art-danger) 10%, transparent);
  border-color: color-mix(in srgb, var(--art-danger) 28%, transparent);
}
.cbx-note-warn .cbx-note-ico { color: var(--art-danger); }

/* 移动端适配 */
@media (max-width: 768px) {
  .cbx-card { padding: 18px 16px 20px; }
  .cbx-head { flex-wrap: wrap; gap: 6px; }
  .cbx-copy-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .cbx-copy-btn { width: 100%; }
  .cbx-copy-val { white-space: normal; word-break: break-all; }
  .cbx-tutorial { font-size: 13px; }
  .cbx-form { max-width: 100%; }
  /* 上传器：窄屏改为上下排列，避免预览框把右侧说明挤成一条 */
  .logo-uploader { flex-direction: column; align-items: stretch; }
  .logo-drop { width: 100%; height: 132px; }
}

