/* ============================================================
   UI-Flow AI 全站主题 · Design Tokens 来自自举生成的设计稿
   主渐变 #5B6CFF → #A06AF9 · 浅靛底 #F5F6FB · 大圆角 · 柔和阴影
   ============================================================ */
:root {
  --primary: #5b6cff;
  --primary-dark: #4a5af0;
  --primary-light: #8a94ff;
  --accent: #a06af9;
  --grad: linear-gradient(135deg, #5b6cff 0%, #8b5cf6 55%, #a06af9 100%);
  --grad-soft: linear-gradient(135deg, #eef1ff 0%, #f5f3ff 100%);
  --bg: #f5f6fb;
  --card: #ffffff;
  --border: #e7e9f4;
  --input-border: #dde1ef;
  --text: #1e293b;
  --muted: #64748b;
  --faint: #94a3b8;
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --ring: 0 0 0 3px rgba(91, 108, 255, .18);
  --shadow-sm: 0 1px 2px rgba(30, 41, 59, .05);
  --shadow: 0 4px 18px rgba(91, 108, 255, .08);
  --shadow-lg: 0 12px 32px rgba(91, 108, 255, .16);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
}
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* 页面四角柔和渐变光斑（呼应设计稿背景装饰） */
body::before, body::after {
  content: "";
  position: fixed;
  width: 480px; height: 480px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .35;
  pointer-events: none;
  z-index: 0;
}
body::before { background: #c7d2fe; top: -180px; right: -140px; }
body::after { background: #e9d5ff; bottom: -200px; left: -160px; }

main, .wrap, .topbar { position: relative; z-index: 1; }

h1, h2, h3 { line-height: 1.3; }
a { color: var(--primary); }

/* ---------- 顶部导航 ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  height: 60px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  overflow-x: auto;
  overflow-y: hidden;
}
.topbar .brand {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .2px;
  text-decoration: none;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex: none;
}
.topbar .brand::before {
  content: "";
  width: 22px; height: 22px;
  border-radius: 7px;
  background: var(--grad);
  box-shadow: 0 4px 10px rgba(91, 108, 255, .4);
  -webkit-mask: radial-gradient(circle at 30% 30%, #000 32%, transparent 33%) 0 0/50% 50%,
                radial-gradient(circle at 70% 70%, #000 32%, transparent 33%) 100% 100%/50% 50%;
  mask: radial-gradient(circle at 30% 30%, #000 32%, transparent 33%) 0 0/50% 50%,
        radial-gradient(circle at 70% 70%, #000 32%, transparent 33%) 100% 100%/50% 50%;
}
.topbar .spacer { flex: 1; }
.topbar .muted, .topbar .btn { white-space: nowrap; flex: none; }
.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  transition: all .15s ease;
  white-space: nowrap;
  flex: none;
}
.nav-link:hover { color: var(--primary); background: var(--grad-soft); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 28px 20px 48px; }

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}
.page-head h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: .3px; }
.page-head .muted { margin: 4px 0 0; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow);
}
.muted { color: var(--muted); }
.small { font-size: 12px; }
.hidden { display: none !important; }
/* hidden 属性语义必须赢过任何类选择器的 display（.walert 的 flex、.wbtn 的 inline-flex 会覆盖 UA 的 [hidden]，
   导致空错误条以浅红条占位显示——即页面上"空红框"问题） */
[hidden] { display: none !important; }
.center { justify-content: center; }

.row { display: flex; gap: 10px; align-items: center; }
.row.end { justify-content: flex-end; }
.row input { flex: 1; }

.empty {
  text-align: center;
  color: var(--muted);
  padding: 64px 20px;
  border-style: dashed;
  box-shadow: none;
  background: rgba(255, 255, 255, .6);
}

/* ---------- 表单控件 ---------- */
input, textarea, select {
  padding: 10px 14px;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  width: 100%;
  outline: none;
  background: #fbfcff;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: var(--ring);
  background: #fff;
}
input[type="checkbox"], input[type="radio"] {
  width: auto;
  flex: none;
  accent-color: var(--primary);
  padding: 0;
  vertical-align: -2px;
}
textarea { resize: vertical; }

.input.small { width: auto; padding: 6px 10px; font-size: 13px; }
select.input { width: auto; }

/* ---------- 按钮 ---------- */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  white-space: nowrap;
  transition: all .15s ease;
}
.btn.small { padding: 6px 14px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn.primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 14px rgba(91, 108, 255, .35);
}
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(91, 108, 255, .45); filter: brightness(1.05); }
.btn.secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid #c7d2fe;
}
.btn.secondary:hover { background: var(--grad-soft); border-color: var(--primary-light); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ---------- 认证页（左右分栏，左紫渐变右白） ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 48px 16px; position: relative; z-index: 1; }
.auth-card {
  width: 900px;
  max-width: 100%;
  padding: 0;
  display: flex;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}
.auth-hero {
  flex: 1 1 46%;
  background: linear-gradient(168deg, #6d7bff 0%, #8b7cf7 48%, #a48ffa 100%);
  color: #fff;
  padding: 34px 32px 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.auth-hero::before, .auth-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  filter: blur(8px);
  pointer-events: none;
}
.auth-hero::before { width: 240px; height: 240px; right: -80px; top: -80px; }
.auth-hero::after { width: 170px; height: 170px; left: -60px; bottom: 24%; }
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .3px;
  color: #fff;
  text-decoration: none;
  position: relative; z-index: 1;
}
.auth-brand::before {
  content: "";
  width: 24px; height: 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .95);
  -webkit-mask: radial-gradient(circle at 30% 30%, #000 32%, transparent 33%) 0 0/50% 50%,
                radial-gradient(circle at 70% 70%, #000 32%, transparent 33%) 100% 100%/50% 50%;
  mask: radial-gradient(circle at 30% 30%, #000 32%, transparent 33%) 0 0/50% 50%,
        radial-gradient(circle at 70% 70%, #000 32%, transparent 33%) 100% 100%/50% 50%;
}
.auth-hero h1 {
  font-size: 26px; font-weight: 800; margin: 26px 0 10px; position: relative; z-index: 1;
  color: #fff; letter-spacing: .5px;
}
.auth-hero .muted { color: rgba(255, 255, 255, .82); margin: 0 0 18px; position: relative; z-index: 1; font-size: 13px; }
.auth-feat {
  list-style: none; margin: 0; padding: 0; position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.auth-feat li { display: flex; gap: 8px; align-items: flex-start; min-width: 0; }
.auth-feat b { display: block; font-size: 12px; color: #fff; white-space: nowrap; }
.auth-feat li > span:last-child { font-size: 11px; color: rgba(255, 255, 255, .68); }
.auth-feat .ico {
  width: 30px; height: 30px; flex: none;
  border-radius: 9px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .25);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.auth-illu {
  width: 88%;
  align-self: center;
  margin: 22px auto 0;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -8px 40px rgba(30, 27, 75, .25);
  display: block;
  position: relative; z-index: 1;
}
.auth-form { flex: 1 1 54%; padding: 32px 38px 36px; }
.auth-form h1 { font-size: 22px; margin: 0 0 4px; }
.auth-form .sub { margin: 0 0 18px; }
/* 登录/注册胶囊分段切换（设计稿样式：激活态渐变白字） */
.auth-tabs {
  display: flex;
  gap: 4px;
  background: #eef0f8;
  padding: 4px;
  border-radius: 999px;
  margin: 16px 0 22px;
}
.auth-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px 6px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--muted);
  transition: all .18s ease;
}
.auth-tab.active {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 12px rgba(91, 108, 255, .35);
}
/* 带图标输入框 */
.icon-field { position: relative; }
.icon-field > svg {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--faint);
  pointer-events: none;
}
.icon-field > input { padding-left: 38px; }
/* 窄屏收起品牌区 */
@media (max-width: 720px) {
  .auth-card { flex-direction: column; }
  .auth-hero { display: none; }
}

/* ---------- 登录页试用领取（入口按钮 + 二维码弹窗） ---------- */
.trial-entry {
  margin-top: 16px;
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 14px;
  border-radius: var(--r-md);
  border: 1px dashed rgba(91, 108, 255, .45);
  background: var(--grad-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .18s ease;
}
.trial-entry:hover {
  border-style: solid;
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.trial-entry .gift { font-size: 15px; }
.trial-card { position: relative; text-align: center; padding: 20px 20px 18px; }
.trial-card h2 { margin: 0; font-size: 18px; }
.trial-tip { line-height: 1.7; margin: 0; }
.trial-tip b { color: var(--primary); }
.trial-x {
  position: absolute; right: 10px; top: 10px;
  width: 30px; height: 30px;
  border: none; border-radius: 50%;
  background: #f1f3fa;
  color: var(--muted);
  font-size: 17px; line-height: 1;
  cursor: pointer;
  transition: all .15s ease;
}
.trial-x:hover { background: #e7e9f4; color: var(--text); }
.trial-qr { max-height: 200px; width: auto; max-width: 70vw; }
/* 弹窗内容超高时允许滚动，且用 margin:auto 实现安全居中（避免顶部被裁）；
   gap 用 ID 特异性覆盖 .modal 的 14px，防止小屏超高 */
#trial-overlay { overflow-y: auto; align-items: stretch; }
#trial-overlay .trial-card { margin: auto; gap: 8px; }
#trial-overlay .qr-box { min-height: 0; padding: 4px 0; }

/* ---------- 项目工作台欢迎横幅 ---------- */
.welcome-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: linear-gradient(120deg, #EEF1FF, #F5EEFF);
  border: 1px solid rgba(91, 108, 255, .12);
  border-radius: 18px;
  padding: 24px 30px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.welcome-banner h1 { font-size: 20px; margin: 0 0 6px; }
.welcome-banner p { margin: 0; color: var(--muted); font-size: 13px; }
.wb-illu { width: 150px; flex: none; }
@media (max-width: 640px) { .wb-illu { display: none; } }

/* 分段切换 tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  background: #eef0fa;
  padding: 4px;
  border-radius: 12px;
  margin: 18px 0;
}
.tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px 8px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--muted);
  transition: all .15s ease;
}
.tab:hover { color: var(--primary); }
.tab.active {
  background: #fff;
  font-weight: 700;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; font-weight: 500; }
.error { color: var(--danger); font-size: 13px; margin: 10px 0 0; }
.error-text { color: var(--danger); }

/* ---------- 项目 / 页面卡片 ---------- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.project-card, .page-card { display: flex; flex-direction: column; gap: 4px; transition: all .18s ease; }
.project-card:hover, .page-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #c7d2fe; }
.project-thumb, .page-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--r-md);
  background: var(--grad-soft);
  margin-bottom: 8px;
}
.page-thumb.placeholder {
  display: flex; align-items: center; justify-content: center;
  color: var(--faint);
  border: 1px dashed #c7d2fe;
}
.project-name { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.project-card .row, .page-card .row { margin-top: 10px; }
.project-card.clickable, .page-card.clickable { cursor: pointer; }

/* ---------- 品牌横幅（复刻老前端：背景图 + 压暗蒙层 + 右侧 3D 插画） ---------- */
.brand-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding: 22px 28px;
  border-radius: 14px;
  margin-bottom: 24px;
  overflow: hidden;
  background-image: url('/static/img/brand/bg-login.png');
  background-size: cover;
  background-position: center;
}
.brand-banner.purple { background-image: url('/static/img/brand/bg-register.png'); }
.brand-banner .bb-hero {
  position: relative; z-index: 1;
  height: 92px; max-width: 240px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(30, 27, 75, .30);
}
.brand-banner .bb-text { position: relative; z-index: 1; margin-right: auto; min-width: 0; }
.brand-banner .bb-text h1 { margin: 0; font-size: 20px; font-weight: 800; color: #fff; letter-spacing: .3px; }
.brand-banner .bb-text p { margin: 4px 0 0; color: rgba(255, 255, 255, .85); font-size: 13px; }
.brand-banner .bb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(49, 46, 129, .72) 0%, rgba(49, 46, 129, .35) 60%, rgba(49, 46, 129, .15) 100%);
}
.brand-banner.purple .bb-overlay {
  background: linear-gradient(90deg, rgba(76, 29, 149, .72) 0%, rgba(76, 29, 149, .35) 60%, rgba(76, 29, 149, .15) 100%);
}
@media (max-width: 640px) { .brand-banner .bb-hero { display: none; } }

/* ---------- 项目/页面卡片：封面与底部操作条 ---------- */
.pc-cover {
  height: 140px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #f3f4f6;
  margin-bottom: 8px;
}
.pc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-cover.placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  color: #a5b4fc;
  font-size: 40px;
}
.pc-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
.pc-actions .op-del, .pc-actions .op-rename { cursor: pointer; transition: color .15s ease; }
.pc-actions .op-del:hover { color: var(--danger); }
.pc-actions .op-rename:hover { color: var(--primary); }
.pc-desc { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 状态 Tag（对齐老前端 statusText 配色） */
.tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 1px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 20px;
  border: 1px solid var(--border);
  background: #f6f7fb;
  color: var(--muted);
}
.tag-blue { background: #e6f0ff; border-color: #91caff; color: #1677ff; }
.tag-purple { background: #f4ecff; border-color: #d3adf7; color: #722ed1; }
.tag-green { background: #e8faf0; border-color: #87e8b5; color: #16a34a; }
.tag-gold { background: #fff8e5; border-color: #ffd666; color: #d48806; }
.tag-orange { background: #fff2e8; border-color: #ffbb96; color: #fa8c16; }
.tag-gray { background: #f6f7fb; border-color: var(--border); color: var(--muted); }

/* ---------- 轻量弹窗（新建项目 / 新建 UI 页面） ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(2px);
  padding: 16px;
}
.modal { width: 460px; max-width: 100%; display: flex; flex-direction: column; gap: 14px; }
.modal h3 { margin: 0; font-size: 17px; }
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }

/* ---------- API 密钥页 ---------- */
.wrap-narrow { max-width: 760px; }
.key-item { margin-bottom: 12px; }
.key-item code {
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 8px;
  font-size: 12.5px;
}

/* ---------- 四步向导 v2（交互与样式对齐老前端 antd 版） ---------- */
.wiz {
  --wz-primary: #1677ff;
  --wz-primary-hover: #4096ff;
  --wz-text: rgba(0, 0, 0, .88);
  --wz-text2: rgba(0, 0, 0, .65);
  --wz-text3: rgba(0, 0, 0, .45);
  --wz-border: #d9d9d9;
  --wz-split: #f0f0f0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 20px 48px;
}

/* 顶栏：返回 + 标题 + 可点击 Steps */
.wiz-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--wz-split);
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.wiz-back {
  width: 32px; height: 32px;
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--wz-border);
  border-radius: 6px;
  background: #fff;
  color: var(--wz-text);
  font-size: 16px;
  text-decoration: none;
  transition: all .2s ease;
}
.wiz-back:hover { border-color: var(--wz-primary); color: var(--wz-primary); }
.wiz-tt { min-width: 0; }
.wiz-tt b { display: block; font-size: 15px; color: var(--wz-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wiz-tt span { font-size: 11px; color: var(--wz-text3); }
.wsteps { display: flex; align-items: center; flex: 1; justify-content: flex-end; min-width: 0; overflow-x: auto; }
.wstep { display: flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; }
.wstep .ico {
  width: 26px; height: 26px;
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--wz-border);
  background: #fff;
  color: var(--wz-text3);
  font-size: 13px;
  transition: all .2s ease;
}
.wstep .ico svg { width: 13px; height: 13px; }
.wstep .tt { font-size: 14px; color: var(--wz-text3); }
.wstep.finish .ico { border-color: var(--wz-primary); color: var(--wz-primary); }
.wstep.finish .tt { color: var(--wz-text2); }
.wstep.process .ico { background: var(--wz-primary); border-color: var(--wz-primary); color: #fff; box-shadow: 0 2px 8px rgba(22, 119, 255, .35); }
.wstep.process .tt { color: var(--wz-primary); font-weight: 500; }
.wstep.locked { cursor: not-allowed; opacity: .4; }
.wstep-line { flex: 1 1 24px; min-width: 16px; height: 1px; background: var(--wz-border); margin: 0 12px; }
.wstep-line.done { background: var(--wz-primary); }

/* 单步面板 / 卡片 */
.wpanel[hidden] { display: none; }
.wiz-grid { display: grid; gap: 16px; margin-bottom: 16px; }
/* 栅格子项允许收缩：拆解结果表等宽内容不得把栅格轨道撑爆（否则左列被压成按钮宽度） */
.wiz-grid > .wcard { min-width: 0; }
.wiz-2col { grid-template-columns: 1fr 1fr; }
.wiz-decomp { grid-template-columns: 11fr 12fr; }
.wiz-refine { grid-template-columns: 7fr 16fr; }
.wiz-refine .wcol-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.wcard {
  background: #fff;
  border: 1px solid var(--wz-split);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  margin-bottom: 16px;
}
.wiz-grid .wcard { margin-bottom: 0; }
.wcard-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--wz-split);
  font-size: 14px;
  font-weight: 600;
  color: var(--wz-text);
}
.wcard-hd .extra { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 12px; min-width: 0; }
.wcard-bd { padding: 16px; }

/* 按钮（antd 风格） */
.wbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 15px;
  border: 1px solid var(--wz-border);
  border-radius: 6px;
  background: #fff;
  color: var(--wz-text);
  font-size: 14px; font-family: inherit; font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s ease;
}
.wbtn svg { width: 14px; height: 14px; flex: none; }
.wbtn:hover:not(:disabled) { border-color: var(--wz-primary); color: var(--wz-primary); }
.wbtn.primary { background: var(--wz-primary); border-color: var(--wz-primary); color: #fff; box-shadow: 0 2px 6px rgba(22, 119, 255, .28); }
.wbtn.primary:hover:not(:disabled) { background: var(--wz-primary-hover); border-color: var(--wz-primary-hover); color: #fff; }
.wbtn.large { height: 40px; padding: 0 18px; font-size: 15px; border-radius: 8px; }
.wbtn.small { height: 26px; padding: 0 10px; font-size: 12px; border-radius: 4px; }
.wbtn.small svg { width: 12px; height: 12px; }
.wbtn.block { width: 100%; }
.wbtn.danger { border-color: #ffccc7; color: #ff4d4f; }
.wbtn.danger:hover:not(:disabled) { border-color: #ff4d4f; color: #ff4d4f; }
.wbtn:disabled { cursor: not-allowed; opacity: .6; box-shadow: none; }
.wiz textarea {
  width: 100%;
  border: 1px solid var(--wz-border);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.6;
  color: var(--wz-text);
  background: #fff;
  resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.wiz textarea:focus { border-color: var(--wz-primary); outline: none; box-shadow: 0 0 0 2px rgba(22, 119, 255, .1); }
.wcount { text-align: right; font-size: 12px; color: var(--wz-text3); margin: 4px 0 12px; }

/* 拖拽上传区 */
.wdragger {
  border: 1px dashed var(--wz-border);
  border-radius: 8px;
  background: #fafafa;
  padding: 26px 16px;
  text-align: center;
  cursor: pointer;
  transition: all .2s ease;
}
.wdragger:hover, .wdragger.drag-over { border-color: var(--wz-primary); background: rgba(22, 119, 255, .04); }
.wdragger .wdz-ico svg { width: 42px; height: 42px; color: var(--wz-primary); }
.wdragger .wdz-t { font-size: 14px; color: var(--wz-text); margin-top: 8px; }
.wdragger .wdz-s { font-size: 12px; color: var(--wz-text3); margin-top: 4px; }

/* 图片预览 / 空状态 */
.wimg-box { margin-top: 16px; text-align: center; }
.wimg-box img { max-width: 100%; max-height: 260px; border-radius: 8px; border: 1px solid var(--wz-split); }
.wimg-lg { text-align: center; }
.wimg-lg img { max-width: 100%; max-height: 480px; border-radius: 8px; }
.wimg-cap { color: var(--wz-text3); font-size: 12px; margin-top: 6px; display: inline-flex; align-items: center; gap: 5px; }
.wempty { padding: 42px 16px; text-align: center; color: var(--wz-text3); }
.wempty .we-ico svg { width: 46px; height: 46px; color: #c7d2fe; }
.wempty .we-t { font-size: 15px; color: var(--wz-text); font-weight: 500; margin-top: 12px; }
.wempty .we-s { font-size: 13px; margin-top: 6px; }
.decompose-a { width: 100%; border-radius: 8px; display: block; }

/* 提示条（antd Alert） */
.walert {
  display: flex; gap: 8px; align-items: flex-start;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 12px;
}
.walert svg { width: 14px; height: 14px; flex: none; margin-top: 4px; }
.walert b { display: block; }
.walert ul { margin: 4px 0 0; padding-left: 16px; }
.walert.info { background: #e6f4ff; border: 1px solid #91caff; color: #1677fa; }
.walert.success { background: #f6ffed; border: 1px solid #b7eb8f; color: #389e0d; }
.walert.warning { background: #fffbe6; border: 1px solid #ffe58f; color: #d48806; }
.walert.error { background: #fff2f0; border: 1px solid #ffccc7; color: #cf1322; }

/* 标签（antd Tag） */
.wtag {
  display: inline-flex; align-items: center;
  padding: 0 8px;
  border-radius: 4px;
  border: 1px solid var(--wz-border);
  background: #fafafa;
  color: var(--wz-text2);
  font-size: 12px;
  line-height: 20px;
  white-space: nowrap;
}
.wtag.success { background: #f6ffed; border-color: #b7eb8f; color: #52c41a; }
.wtag.processing { background: #e6f4ff; border-color: #91caff; color: #1677ff; }
.wtag.warning { background: #fffbe6; border-color: #ffe58f; color: #faad14; }
.wtag.error { background: #fff2f0; border-color: #ffccc7; color: #ff4d4f; }
.wtag.orange { background: #fff7e6; border-color: #ffd591; color: #fa8c16; }

/* 加载动画 */
.wspin {
  width: 16px; height: 16px;
  display: inline-block;
  flex: none;
  border: 2px solid rgba(22, 119, 255, .2);
  border-top-color: var(--wz-primary);
  border-radius: 50%;
  animation: wzspin 1s linear infinite;
}
.wbtn .wspin { border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }
@keyframes wzspin { to { transform: rotate(360deg); } }

/* 拆解结果：描述列表 + 元素表 */
.wdesc { margin-bottom: 12px; }
.wdesc-row { display: flex; gap: 8px; font-size: 13px; padding: 2px 0; }
.wdesc-row .lb { color: var(--wz-text3); flex: none; width: 70px; }
.wdesc-row .vl { color: var(--wz-text); min-width: 0; }
.wdesc-row .wtag { margin: 1px 4px 1px 0; }
.swd { display: inline-flex; align-items: center; }
.swd i {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 3px;
  border: 1px solid #e5e7eb;
  margin-right: 6px;
}
.wtable-wrap {
  border: 1px solid var(--wz-split);
  border-radius: 6px;
  overflow: auto;
  max-height: 380px;
}
.wtable { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13px; }
.wtable th {
  position: sticky; top: 0; z-index: 1;
  background: #fafafa;
  font-weight: 600;
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--wz-split);
  white-space: nowrap;
  color: var(--wz-text2);
  font-size: 12px;
}
.wtable td { padding: 8px 10px; border-bottom: 1px solid var(--wz-split); vertical-align: top; color: var(--wz-text); }
.wtable tbody tr:last-child td { border-bottom: none; }
.wtable code { background: #f5f5f5; padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.td-prompt { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--wz-text2); }

/* 步骤 3：素材清单标签 / 失败行 */
.wtags { display: flex; flex-wrap: wrap; gap: 8px; }
.wnote { font-size: 12px; color: var(--wz-text3); margin-top: 12px; line-height: 1.6; text-align: center; }
.wfailed-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; }
.wfailed-name { flex: 1; min-width: 0; font-size: 13px; color: #ff4d4f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 步骤 4：画布 + 右侧栏 */
.wcanvas-wrap { display: flex; gap: 16px; align-items: stretch; }
.wcanvas-wrap .wcard { margin-bottom: 0; }
.wcanvas-left {
  flex: 1; min-width: 0;
  background: #fff;
  border: 1px solid var(--wz-split);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.wcanvas-toolbar { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-bottom: 1px solid var(--wz-split); font-size: 14px; }
.wcanvas-toolbar .hint { margin-left: auto; font-size: 12px; color: var(--wz-text3); }
.wcanvas-area {
  flex: 1;
  overflow: auto;
  padding: 16px;
  min-height: 420px;
  background: repeating-conic-gradient(#f3f4f6 0% 25%, #fff 0% 50%) 50% / 24px 24px;
}
#canvas-grid { position: relative; margin: 0 auto; }
.wcell { position: absolute; cursor: move; user-select: none; }
.wcell .box {
  width: 100%; height: 220px;
  display: flex; align-items: center; justify-content: center;
}
.wcell .box img { max-width: 100%; max-height: 100%; object-fit: contain; pointer-events: none; }
.wcell .lb { height: 24px; line-height: 24px; text-align: center; font-size: 12px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcanvas-side { width: 340px; flex: none; display: flex; flex-direction: column; gap: 16px; }
.wcanvas-side .wcard { margin-bottom: 0; }
.wlist { max-height: 420px; overflow: auto; }
.wlist-row { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-bottom: 1px solid #f5f5f5; }
.wlist-row:last-child { border-bottom: none; }
.wlist-thumb {
  width: 32px; height: 32px;
  flex: none;
  object-fit: contain;
  border-radius: 4px;
  background: repeating-conic-gradient(#f3f4f6 0% 25%, #fff 0% 50%) 50% / 12px 12px;
}
.wlist-ph { width: 32px; height: 32px; flex: none; border: 1px dashed #c7d2fe; border-radius: 4px; }
.wlist-main { flex: 1; min-width: 0; }
.wlist-name { font-size: 13px; color: var(--wz-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wlist-sub { font-size: 11px; color: var(--wz-text3); }

/* 导出面板：单选组 / 复选框 */
.wlabel { font-size: 12px; color: var(--wz-text3); margin: 4px 0 6px; }
.wradio-group { display: inline-flex; }
.wradio {
  display: inline-flex; align-items: center;
  padding: 3px 12px;
  font-size: 13px;
  color: var(--wz-text);
  background: #fff;
  border: 1px solid var(--wz-border);
  border-left-width: 0;
  cursor: pointer;
  transition: all .2s ease;
}
.wradio:first-child { border-left-width: 1px; border-radius: 6px 0 0 6px; }
.wradio:last-child { border-radius: 0 6px 6px 0; }
.wradio input { display: none; }
.wradio:hover { color: var(--wz-primary); }
.wradio.on { color: var(--wz-primary); border-color: var(--wz-primary); box-shadow: -1px 0 0 0 var(--wz-primary); position: relative; z-index: 1; }
.wradio.on + .wradio { border-left-width: 0; }
.wradio.locked { color: rgba(0, 0, 0, .25); background: #f5f5f5; cursor: not-allowed; }
.wcheck { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--wz-text); margin: 12px 0; cursor: pointer; }
.wcheck input { accent-color: var(--wz-primary); width: 15px; height: 15px; }

@media (max-width: 960px) {
  .wiz-2col, .wiz-decomp, .wiz-refine { grid-template-columns: 1fr; }
  .wcanvas-wrap { flex-direction: column; }
  .wcanvas-side { width: 100%; }
  .wsteps { justify-content: flex-start; }
}

/* ---------- 徽章 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--grad-soft);
  color: var(--primary);
  border: 1px solid #e0e7ff;
}
.badge.danger { background: #fef2f2; color: var(--danger); border-color: #fecaca; }
.badge.success { background: #ecfdf5; color: #059669; border-color: #a7f3d0; }
.badge.warning { background: #fffbeb; color: #d97706; border-color: #fde68a; }

/* ---------- 弹窗 / 二维码 ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(30, 41, 59, .45);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
}
.modal-card { width: 360px; max-width: calc(100vw - 32px); }
.qr-box { display: flex; justify-content: center; padding: 12px 0; min-height: 200px; align-items: center; }
.qr-box img, .qr-box canvas { border-radius: 10px; }

/* ---------- 定价 ---------- */
#pricing .page-head { display: block; text-align: center; margin-bottom: 28px; }
#pricing .page-head h1 {
  font-size: 30px;
  color: var(--text);
  display: inline-block;
}
#pricing .page-head h1 .grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
#pricing .page-head .muted { max-width: 560px; margin: 8px auto 0; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: stretch; }
.plan-card { display: flex; flex-direction: column; gap: 6px; transition: all .18s ease; }
.plan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.plan-card h3 { margin: 0; font-size: 17px; }
.plan-price { font-size: 30px; font-weight: 800; margin: 6px 0 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 通用输入框（区别于全局 input 的收窄场景） ---------- */

/* ---------- 管理后台 ---------- */
.tabs.wrap-tabs { flex-wrap: wrap; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
@media (max-width: 1200px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat-card h3 { margin: 4px 0 0; font-size: 24px; font-weight: 800; }
.stat-card .small { color: var(--faint); }
.filter-row { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.filter-row label { color: var(--muted); font-size: 13px; }
.table-wrap {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.admin-table th {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  background: #f8f9ff;
  border-bottom: 1px solid var(--border);
}
.admin-table tbody tr { transition: background .12s ease; }
.admin-table tbody tr:hover { background: #fafbff; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table td .op { margin-right: 6px; }
.pager { margin-top: 14px; }
.pager a { color: var(--primary); text-decoration: none; margin: 0 4px; cursor: pointer; }
.op { color: var(--primary); text-decoration: none; cursor: pointer; white-space: nowrap; font-weight: 500; }
.op:hover { text-decoration: underline; }
.mono { font-family: Consolas, Monaco, monospace; font-size: 12px; }
.form-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.form-row > .form-label { width: 130px; flex: none; color: var(--muted); font-size: 13px; text-align: right; }
.form-row > input, .form-row > textarea, .form-row > select { flex: 1; }
.form-row > input[type="checkbox"] { flex: none; width: auto; }
.grid-2col { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.grid-2col .card { margin: 0; }

/* ---------- toast ---------- */
#toast-box {
  position: fixed;
  top: 74px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.toast {
  background: #1e293b;
  color: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  animation: toast-in .25s ease;
}
.toast.success, .toast.ok { background: linear-gradient(135deg, #10b981, #059669); }
.toast.error { background: linear-gradient(135deg, #f87171, #dc2626); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   以下为对照设计稿（项目 418 gen_a）的样式增强
   ============================================================ */

/* ---------- 工作台：横幅四特性 + 项目卡元信息 ---------- */
.wb-feats {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.wb-feats li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.wb-feats .fi {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 8px rgba(91, 108, 255, .14);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: var(--primary);
}
.project-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  margin: 2px 0 4px;
}
.project-meta span { display: inline-flex; align-items: center; gap: 4px; }
.card-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.card-link:hover { text-decoration: underline; }

/* ---------- 定价：推荐卡 / 高亮框 / 信任条 ---------- */
.plan-card { position: relative; }
.plan-card.recommended {
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--grad) border-box;
  box-shadow: 0 12px 32px rgba(91, 108, 255, .22);
}
.plan-ribbon {
  position: absolute;
  top: -14px; right: 18px;
  background: var(--grad);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(91, 108, 255, .4);
}
.plan-highlight {
  background: var(--grad-soft);
  border-radius: var(--r-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 6px;
}
.plan-highlight .hi {
  width: 34px; height: 34px;
  flex: none;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 8px rgba(91, 108, 255, .14);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.plan-highlight b { display: block; font-size: 13px; }
.plan-highlight span { font-size: 12px; color: var(--muted); }
.plan-cta { margin-top: auto; }
.trust-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 780px;
  margin: 30px auto 0;
  padding: 0;
  list-style: none;
}
.trust-row li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.trust-row .ti {
  width: 34px; height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--grad-soft);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.trust-row b { display: block; font-size: 13px; color: var(--text); }
.trust-row span { font-size: 12px; }

/* ---------- 管理后台：深色侧边栏布局 ---------- */
.admin-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}
.admin-aside {
  width: 210px;
  flex: none;
  background: linear-gradient(180deg, #232848 0%, #1d2138 100%);
  color: #cdd2e8;
  display: flex;
  flex-direction: column;
  padding: 18px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-aside .aside-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  margin-bottom: 14px;
}
.admin-aside .aside-brand::before {
  content: "";
  width: 30px; height: 30px;
  flex: none;
  border-radius: 10px;
  background: var(--grad);
  box-shadow: 0 4px 12px rgba(91, 108, 255, .45);
  -webkit-mask: radial-gradient(circle at 30% 30%, #000 32%, transparent 33%) 0 0/50% 50%,
                radial-gradient(circle at 70% 70%, #000 32%, transparent 33%) 100% 100%/50% 50%;
  mask: radial-gradient(circle at 30% 30%, #000 32%, transparent 33%) 0 0/50% 50%,
        radial-gradient(circle at 70% 70%, #000 32%, transparent 33%) 100% 100%/50% 50%;
}
.admin-aside .aside-brand b { color: #fff; font-size: 15px; display: block; line-height: 1.2; }
.admin-aside .aside-brand span { font-size: 11px; color: #8890b8; }
#admin-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  padding: 0;
  margin: 0;
  flex: 1;
}
#admin-tabs .tab {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 10px 14px;
  border-radius: 10px;
  background: transparent;
  color: #aeb5d6;
  font-size: 13.5px;
  font-weight: 500;
  transition: all .15s ease;
}
#admin-tabs .tab::before { content: "▸"; font-size: 11px; color: #6d76a5; }
#admin-tabs .tab:hover { background: rgba(255, 255, 255, .07); color: #fff; }
#admin-tabs .tab.active {
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(91, 108, 255, .35);
}
#admin-tabs .tab.active::before { color: rgba(255, 255, 255, .8); }
.aside-foot {
  margin-top: 14px;
  padding: 14px 10px 4px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 13px;
  color: #8890b8;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* 侧边栏底部用户区：头像信息块 + 两个全宽醒目按钮 */
.aside-foot .aside-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .09);
}
.aside-foot .au-avatar {
  width: 36px; height: 36px;
  flex: none;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(91, 108, 255, .4);
}
.aside-foot .au-info { min-width: 0; line-height: 1.3; }
.aside-foot .au-info b { display: block; color: #fff; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aside-foot .au-info span { font-size: 11.5px; color: #9aa3cc; }
.aside-foot .au-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .09);
  color: #e8ebfa;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s ease;
}
.aside-foot .au-btn:hover { background: rgba(255, 255, 255, .16); color: #fff; transform: translateY(-1px); }
.aside-foot .au-btn.warn { background: rgba(239, 68, 68, .16); border-color: rgba(239, 68, 68, .35); color: #fca5a5; }
.aside-foot .au-btn.warn:hover { background: rgba(239, 68, 68, .28); color: #fff; }
.admin-main {
  flex: 1;
  min-width: 0;
  padding: 26px 30px 48px;
}
.admin-main .page-head h1 { font-size: 22px; }
.stat-card { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; }
.stat-card .stat-ico {
  width: 42px; height: 42px;
  flex: none;
  border-radius: 12px;
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 19px;
  margin: 0;
  box-shadow: 0 6px 14px rgba(30, 41, 59, .22);
}
.stat-card .stat-main { min-width: 0; }
.stat-card .stat-label { color: var(--faint); font-size: 12px; letter-spacing: .02em; }
.stat-card h3 { margin: 2px 0 0; font-size: 21px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-card .stat-sub { margin-top: 2px; font-size: 12px; color: var(--faint); }
.stat-card .stat-sub.up { color: var(--ok, #10b981); }
.stat-card .stat-sub.bad { color: var(--danger, #ef4444); }
.stat-ico.hue-1 { background: linear-gradient(135deg, #5b6cff, #8a94ff); }
.stat-ico.hue-2 { background: linear-gradient(135deg, #06b6d4, #67e8f9); }
.stat-ico.hue-3 { background: linear-gradient(135deg, #a06af9, #c9a5ff); }
.stat-ico.hue-4 { background: linear-gradient(135deg, #10b981, #6ee7b7); }
.stat-ico.hue-5 { background: linear-gradient(135deg, #f59e0b, #fcd34d); }
.stat-ico.hue-6 { background: linear-gradient(135deg, #ef4444, #fca5a5); }
@media (max-width: 860px) {
  .admin-shell { flex-direction: column; }
  .admin-aside { width: 100%; height: auto; position: static; }
  #admin-tabs { flex-direction: row; flex-wrap: wrap; }
  .admin-main { padding: 20px 16px 40px; }
}

/* ---------- Skill 安装指导页（/skill，免登录） ---------- */
.skill-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 44px 20px 64px;
  position: relative;
  z-index: 1;
}
.skill-hero { text-align: center; margin-bottom: 26px; }
.skill-hero h1 { font-size: 28px; font-weight: 800; margin: 12px 0 10px; letter-spacing: .3px; }
.skill-hero .muted { max-width: 640px; margin: 0 auto; }
.skill-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.skill-step { position: relative; padding-top: 18px; }
.skill-step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 9px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 8px;
}
.skill-step b { display: block; margin-bottom: 4px; }
.skill-step p { margin: 0; }
.skill-panel { margin-bottom: 18px; }
.skill-panel h3 { margin: 0 0 6px; }
.skill-tabs { margin: 14px 0 0; }
.skill-pane { margin-top: 14px; }
.skill-cmd {
  background: #101528;
  color: #dbe4ff;
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin: 0 0 12px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
}
.skill-copy { min-width: 120px; }
.skill-ol { margin: 10px 0 0; padding-left: 20px; }
.skill-ol li { margin-bottom: 6px; }
.skill-ol code {
  background: var(--grad-soft);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 12.5px;
}
.skill-demo p {
  background: var(--grad-soft);
  border: 1px dashed var(--primary-light);
  border-radius: var(--r-md);
  padding: 9px 14px;
  margin: 0 0 8px;
  color: var(--text);
}
@media (max-width: 720px) {
  .skill-steps { grid-template-columns: 1fr; }
  .skill-hero h1 { font-size: 23px; }
}
