/* ============================================================
   狗蛋 · unslop 主题
   Direction adapted from unslop by @heydamir (github.com/heydamir/unslop), CC BY 4.0.
   方向：打包台 / 工单
   把网页变成安装包，界面像一张正在处理的构建工单：
   冷灰工作台、白色纸面、深墨文字、单一深蓝信号色。
   无渐变、无玻璃、无发光、无彩色 KPI。
   ============================================================ */

:root {
  --u-bg: #f3f5f7;
  --u-surface: #ffffff;
  --u-surface-2: #f8fafb;
  --u-ink: #1b2430;
  --u-text: #344050;
  --u-muted: #687586;
  --u-faint: #97a2af;
  --u-line: #e2e7ec;
  --u-line-strong: #cfd7df;
  --u-accent: #2457d6;
  --u-accent-hover: #1d46b2;
  --u-accent-soft: #edf2ff;
  --u-success: #1f7a4d;
  --u-success-soft: #eef8f2;
  --u-warning: #a45c12;
  --u-warning-soft: #fdf5e9;
  --u-danger: #b23a3a;
  --u-danger-soft: #fdf0f0;
  --u-radius: 10px;
  --u-radius-sm: 7px;
  --u-shadow: 0 1px 2px rgba(27, 36, 48, .04);
  --u-font: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --u-mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Mono", Consolas, monospace;

  /* 旧组件统一接到新色板，避免局部残留旧主题 */
  --c-primary: var(--u-accent);
  --c-primary-hover: var(--u-accent-hover);
  --c-primary-active: #173a94;
  --c-primary-light: rgba(36, 87, 214, .10);
  --c-primary-soft: rgba(36, 87, 214, .06);
  --c-primary-lighter: var(--u-accent-soft);
  --c-primary-border: rgba(36, 87, 214, .24);
  --c-blue: var(--u-accent);
  --c-blue-hover: var(--u-accent-hover);
  --c-success: var(--u-success);
  --c-success-light: var(--u-success-soft);
  --c-success-hover: #16603c;
  --c-green: var(--u-success);
  --c-warning: var(--u-warning);
  --c-warning-light: var(--u-warning-soft);
  --c-warning-hover: #84470c;
  --c-orange: var(--u-warning);
  --c-danger: var(--u-danger);
  --c-danger-light: var(--u-danger-soft);
  --c-danger-hover: #8f2c2c;
  --c-red: var(--u-danger);
  --c-info: var(--u-muted);
  --c-info-light: #f4f6f8;
  --c-bg: var(--u-bg);
  --c-bg-alt: #eef1f4;
  --c-card: var(--u-surface);
  --c-text: var(--u-text);
  --c-text2: var(--u-muted);
  --c-text3: var(--u-faint);
  --c-text4: #b8c0ca;
  --c-text-light: var(--u-muted);
  --c-border: var(--u-line);
  --c-border-strong: var(--u-line-strong);
  --c-sep: var(--u-line);
  --c-fill: var(--u-surface-2);
  --c-fill2: #eef1f4;
  --c-gray: var(--u-muted);
  --radius-sm: var(--u-radius-sm);
  --radius: var(--u-radius);
  --radius-lg: var(--u-radius);
  --radius-xl: 12px;
  --shadow: var(--u-shadow);
  --shadow-card: var(--u-shadow);
  --shadow-hover: 0 8px 24px rgba(27, 36, 48, .08);
  --shadow-pop: 0 16px 40px rgba(27, 36, 48, .10);
  --transition: .16s ease;
  --max-w: 1440px;
  --topbar-h: 56px;
  --sidebar-w: 232px;
  --k-sidebar-bg: #fbfcfd;
  --k-page-bg: var(--u-bg);
  --k-nav-h: 36px;
  --k-nav-h-active: 36px;
  --k-active-bar: 0px;
}

html, body {
  font-family: var(--u-font);
  background: var(--u-bg);
  color: var(--u-text);
  font-size: 14px;
  line-height: 1.55;
}

body { min-height: 100vh; }
h1, h2, h3, h4, h5 {
  color: var(--u-ink);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.3;
}
a { color: var(--u-accent); }
a:hover { color: var(--u-accent-hover); }
code, pre, .mono { font-family: var(--u-mono); }
::selection { background: #dbe5ff; color: var(--u-ink); }

/* ---------- 顶栏 ---------- */
.topbar {
  background: var(--u-surface) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border-bottom: 1px solid var(--u-line) !important;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-inner {
  max-width: 1440px;
  height: 56px;
  padding: 0 24px;
  gap: 26px;
}
.brand {
  font-size: 15px;
  font-weight: 600;
  color: var(--u-ink);
  gap: 9px;
  letter-spacing: -.01em;
}
.brand .logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  box-shadow: none;
}
.nav-menu { gap: 2px; }
.nav-menu a {
  padding: 7px 11px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 450;
  color: var(--u-muted);
  gap: 6px;
}
.nav-menu a .ni { width: 16px; height: 16px; stroke-width: 1.7; }
.nav-menu a:hover { background: var(--u-surface-2); color: var(--u-ink); }
.nav-menu a.active { background: var(--u-accent-soft); color: var(--u-accent); font-weight: 550; }
.nav-user { gap: 9px; }
.nav-user .quota,
.quota-badge {
  font-size: 12px;
  color: var(--u-muted);
  background: var(--u-surface-2);
  border: 1px solid var(--u-line);
  border-radius: 6px;
  padding: 4px 8px;
}
.quota-badge .q-num { color: var(--u-ink); font-family: var(--u-mono); font-weight: 600; }
.nav-user > a:not(.btn) {
  font-size: 13px;
  color: var(--u-text);
  padding: 5px 8px;
  border-radius: 6px;
}
.nav-user > a:not(.btn):hover { background: var(--u-surface-2); color: var(--u-ink); }

/* ---------- 按钮 ---------- */
.btn {
  min-height: 34px;
  height: auto;
  padding: 7px 13px;
  border: 1px solid var(--u-line-strong);
  border-radius: var(--u-radius-sm);
  background: var(--u-surface);
  color: var(--u-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  box-shadow: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.btn:hover {
  background: var(--u-surface-2);
  border-color: #b9c4cf;
  color: var(--u-ink);
}
.btn:active { transform: none; }
.btn:focus-visible { outline: 2px solid rgba(36, 87, 214, .35); outline-offset: 2px; box-shadow: none !important; }
.btn-primary {
  background: var(--u-accent);
  border-color: var(--u-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--u-accent-hover);
  border-color: var(--u-accent-hover);
  color: #fff;
}
.btn-success,
.btn-warning,
.btn-danger {
  background: var(--u-surface);
  border-color: var(--u-line-strong);
  color: var(--u-text);
}
.btn-success { color: var(--u-success); }
.btn-warning { color: var(--u-warning); }
.btn-danger { color: var(--u-danger); }
.btn-success:hover { border-color: #b9d9c7; background: var(--u-success-soft); color: var(--u-success); }
.btn-warning:hover { border-color: #e8d0ae; background: var(--u-warning-soft); color: var(--u-warning); }
.btn-danger:hover { border-color: #e4c1c1; background: var(--u-danger-soft); color: var(--u-danger); }
.btn-sm {
  min-height: 28px;
  padding: 4px 9px;
  font-size: 12px;
  border-radius: 6px;
}
.btn-lg {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 8px;
}
.btn-round { border-radius: var(--u-radius-sm); }
.btn-white {
  background: #fff;
  border-color: #fff;
  color: var(--u-ink);
}
.btn-white:hover { background: #f1f4f7; border-color: #f1f4f7; color: var(--u-ink); }
.btn-block { width: 100%; }

/* ---------- 表单 ---------- */
.form-group { margin-bottom: 16px; }
.form-group > label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--u-text);
  margin-bottom: 7px;
}
.form-control {
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--u-line-strong);
  border-radius: var(--u-radius-sm);
  background: var(--u-surface);
  color: var(--u-ink);
  font-family: var(--u-font);
  font-size: 13.5px;
  box-shadow: none;
}
.form-control::placeholder { color: var(--u-faint); }
.form-control:hover { border-color: #b9c4cf; }
.form-control:focus {
  outline: none;
  border-color: var(--u-accent);
  box-shadow: 0 0 0 3px rgba(36, 87, 214, .10);
}
textarea.form-control { min-height: 96px; resize: vertical; }
select.form-control { height: 38px; }
.form-group .hint { font-size: 12px; color: var(--u-faint); margin-top: 5px; line-height: 1.55; }
.form-row { gap: 14px; }
.form-check input[type=checkbox] { accent-color: var(--u-accent); }

/* ---------- 卡片 ---------- */
.card {
  background: var(--u-surface);
  border: 1px solid var(--u-line);
  border-radius: var(--u-radius);
  box-shadow: none !important;
}
.card-title {
  padding: 15px 18px;
  border-bottom: 1px solid var(--u-line);
  font-size: 14px;
  font-weight: 600;
  color: var(--u-ink);
}
.card-title .card-title-ico { color: var(--u-muted); gap: 8px; }
.card-title .card-title-ico svg { width: 17px; height: 17px; stroke-width: 1.8; }
.card-title .actions { gap: 7px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.table-recent th:nth-child(1), .table-recent td:nth-child(1) { width: 56px; }
.table-recent td:nth-child(2) { min-width: 180px; }
.table-recent td:nth-child(2) strong { font-weight: 550; color: var(--u-ink); }
.table-recent .muted { color: var(--u-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 300px; }
.admin-main > .card { padding: 0; }
.admin-main > .card > .card-title { padding: 15px 18px; }
.admin-main > .card > :not(.card-title) { padding-left: 18px; padding-right: 18px; }
.admin-main > .card > table.table { margin: 0; }

/* ---------- 表格 ---------- */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.table th,
.table td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid var(--u-line);
  vertical-align: middle;
}
.table th {
  background: var(--u-surface-2);
  color: var(--u-muted);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}
.table thead tr:first-child th:first-child { border-top-left-radius: 0; }
.table thead tr:first-child th:last-child { border-top-right-radius: 0; }
.table tbody tr:hover td { background: #f8fafc; }
.table tbody tr:last-child td { border-bottom: none; }
.table td.url-cell { max-width: 220px; }
.table td.url-cell a { color: var(--u-muted); }
.table td.url-cell a:hover { color: var(--u-accent); }
.table td > .btn + .btn { margin-left: 4px; }
.table .btn-sm { min-height: 26px; padding: 3px 8px; font-size: 11.5px; }
.table-records { table-layout: fixed; }
.table-records th:nth-child(1), .table-records td:nth-child(1),
.table-records th:nth-child(7), .table-records td:nth-child(7) { display: none; }
.table-users th:nth-child(1), .table-users td:nth-child(1),
.table-users th:nth-child(8), .table-users td:nth-child(8) { display: none; }
.scroll-x { max-width: 100%; overflow-x: auto; }
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 12px 0 2px;
}
.pagination a, .pagination .current {
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  border: 1px solid var(--u-line);
  border-radius: 6px;
  background: var(--u-surface);
  color: var(--u-muted);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}
.pagination a:hover { border-color: var(--u-line-strong); color: var(--u-ink); background: var(--u-surface-2); }
.pagination .current { background: var(--u-ink); border-color: var(--u-ink); color: #fff; font-weight: 500; }

/* ---------- 标签 / 提示 ---------- */
.tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.5;
}
.tag-success { background: var(--u-success-soft); color: var(--u-success); }
.tag-warning { background: var(--u-warning-soft); color: var(--u-warning); }
.tag-danger { background: var(--u-danger-soft); color: var(--u-danger); }
.tag-info { background: var(--u-accent-soft); color: var(--u-accent); }
.tag-gray { background: #f1f4f7; color: var(--u-muted); }
.alert {
  padding: 10px 12px;
  border: 1px solid var(--u-line);
  border-radius: var(--u-radius-sm);
  font-size: 13px;
  background: var(--u-surface-2);
  color: var(--u-text);
}
.alert-error { background: var(--u-danger-soft); border-color: #efd2d2; color: var(--u-danger); }
.alert-success { background: var(--u-success-soft); border-color: #cfe6d9; color: var(--u-success); }
.alert-info { background: var(--u-accent-soft); border-color: #d5e0fa; color: var(--u-accent); }
.alert-warning { background: var(--u-warning-soft); border-color: #ecd8ba; color: var(--u-warning); }

/* ---------- 后台骨架 ---------- */
body:has(.admin-layout) {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--u-bg);
}
body:has(.admin-layout) .topbar { position: static; flex-shrink: 0; }
.admin-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.admin-side {
  background: var(--k-sidebar-bg);
  border-right: 1px solid var(--u-line);
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.admin-main {
  min-width: 0;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  background: var(--u-bg);
}
body:has(.admin-layout) .admin-main .footer { padding: 20px 0 6px; }

/* v7 侧栏：改成浅色工作台目录 */
.v7-side {
  width: 232px;
  padding: 0 10px 12px;
  background: var(--k-sidebar-bg) !important;
  border-right: 1px solid var(--u-line) !important;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.v7-side .v7-brand {
  height: 56px;
  padding: 0 7px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--u-line);
  gap: 8px;
}
.v7-side .v7-brand .mk {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--u-ink) !important;
  box-shadow: none !important;
}
.v7-side .v7-brand .mk .i { width: 16px; height: 16px; }
.v7-side .v7-brand .nm { font-size: 14px; font-weight: 600; color: var(--u-ink); }
.v7-prof {
  background: transparent !important;
  border-radius: 0;
  padding: 12px 7px;
  margin: 0 0 2px;
  border-bottom: 1px solid var(--u-line);
  gap: 9px;
}
.v7-prof .av {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--u-accent-soft) !important;
  color: var(--u-accent) !important;
  font-size: 13px;
  font-weight: 600;
}
.v7-prof .nm { font-size: 13px; font-weight: 600; color: var(--u-ink); }
.v7-prof .rl { font-size: 11.5px; color: var(--u-faint); }
.v7-grp {
  padding: 14px 7px 5px;
  color: var(--u-faint);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.v7-side a.mi {
  min-height: 36px;
  padding: 7px;
  border-radius: 6px;
  color: var(--u-text);
  font-size: 13px;
  font-weight: 450;
  gap: 9px;
  margin-bottom: 1px;
  border-left: none !important;
}
.v7-side a.mi:hover { background: #f1f4f7; color: var(--u-ink); }
.v7-side a.mi.on {
  background: var(--u-accent-soft) !important;
  color: var(--u-accent) !important;
  font-weight: 550;
}
.v7-side a.mi.on .i { color: var(--u-accent) !important; }
.v7-side a.mi .i { width: 18px; height: 18px; color: var(--u-faint) !important; }
.v7-side a.mi .badge {
  background: var(--u-accent);
  color: #fff;
  border-radius: 4px;
  font-size: 10.5px;
  padding: 0 5px;
}
.ic-pink, .ic-orange, .ic-purple, .ic-blue, .ic-green, .ic-teal { color: var(--u-faint) !important; }
.side-foot { border-top: 1px solid var(--u-line); padding-top: 6px; }
.side-more { display: none; }

/* 后台页头与内容 */
.v7-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  background: var(--u-surface);
  border-bottom: 1px solid var(--u-line);
}
.v7-top h1 { font-size: 21px; font-weight: 600; color: var(--u-ink); letter-spacing: -.02em; }
.v7-top .r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.v7-body {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 24px 44px;
  display: flex;
  flex-direction: column;
}
.v7-body > .footer { margin-top: auto; }
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--u-surface);
  border-bottom: 1px solid var(--u-line);
}
.page-head h1 { font-size: 21px; font-weight: 600; color: var(--u-ink); margin: 0; }
.page-head .desc { font-size: 12.5px; color: var(--u-muted); margin-top: 3px; }
.page-head .head-actions { gap: 8px; }
.grid-main-side { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 16px; }
.v7-grid3 { grid-template-columns: 1.5fr 1fr; gap: 16px; }
.v7-grid2 { grid-template-columns: 1fr 1fr; gap: 16px; }

/* KPI：横向统计，不做彩色卡片 */
.v7-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.v7-kpis.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v7-kpi {
  position: relative;
  overflow: hidden;
  padding: 16px 16px 14px !important;
  border: 1px solid var(--u-line) !important;
  border-radius: var(--u-radius) !important;
  background: var(--u-surface) !important;
  color: var(--u-ink) !important;
  box-shadow: none !important;
}
.v7-kpi::after { display: none !important; }
.v7-kpi .badge {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  margin-bottom: 12px;
  background: var(--u-accent-soft) !important;
  box-shadow: none !important;
  color: var(--u-accent) !important;
}
.v7-kpi .badge .i { width: 17px; height: 17px; }
.v7-kpi.o .badge .i, .v7-kpi.g .badge .i,
.v7-kpi.p .badge .i, .v7-kpi.b .badge .i { color: var(--u-accent) !important; }
.v7-kpi .num {
  position: relative;
  z-index: 1;
  color: var(--u-ink) !important;
  font-family: var(--u-mono);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.v7-kpi .lbl {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  color: var(--u-muted) !important;
  font-size: 12px;
  font-weight: 450;
}

/* ---------- 登录 / 注册 / 找回 ---------- */
body:has(.auth-page) {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--u-bg) !important;
}
body:has(.auth-page) .topbar { display: none; }
body:has(.auth-page) .footer { padding: 20px 24px 24px; color: var(--u-faint); font-size: 12px; }
body:has(.auth-page) .footer a { color: var(--u-faint); }
.auth-page {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  width: 100%;
}
.auth-wrap { width: 100%; max-width: 400px; }
.auth-card {
  background: var(--u-surface);
  border: 1px solid var(--u-line);
  border-radius: 12px;
  padding: 36px 32px 30px;
  box-shadow: none;
}
.auth-head { text-align: left; margin-bottom: 24px; }
.auth-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.auth-title { font-size: 24px; font-weight: 600; color: var(--u-ink); margin: 0 0 6px; letter-spacing: -.03em; }
.auth-sub { font-size: 13px; color: var(--u-muted); line-height: 1.6; }
.auth-card .form-group { margin-bottom: 18px; }
.auth-card .form-group > label { font-size: 12.5px; color: var(--u-text); font-weight: 500; }
.auth-card .form-control { background: var(--u-surface); border-color: var(--u-line-strong); padding: 9px 11px; }
.auth-card .form-control:focus { border-color: var(--u-accent); box-shadow: 0 0 0 3px rgba(36, 87, 214, .10); }
.auth-card .btn-lg { width: 100%; height: 42px; font-size: 14px; letter-spacing: 0; margin-top: 4px; }
.auth-foot { margin-top: 18px; text-align: center; font-size: 12.5px; color: var(--u-faint); }
.auth-foot a { color: var(--u-accent); font-weight: 500; }
.auth-divider { color: var(--u-faint); font-size: 12px; margin: 18px 0; }
.auth-divider::before, .auth-divider::after { background: var(--u-line); }
.auth-perks { gap: 6px; padding-top: 16px; border-top-color: var(--u-line); }
.auth-perks span {
  background: var(--u-surface-2);
  border-color: var(--u-line);
  color: var(--u-muted);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11.5px;
}
.auth-perks svg { color: var(--u-success); }
.auth-steps .st { font-size: 12px; color: var(--u-faint); }
.auth-steps .st i { width: 18px; height: 18px; font-size: 11px; background: #f0f3f6; color: var(--u-faint); }
.auth-steps .st.on { color: var(--u-accent); }
.auth-steps .st.on i { background: var(--u-accent); color: #fff; }
.auth-steps .sep { background: var(--u-line); }

/* ---------- 套餐 ---------- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.plan-card {
  background: var(--u-surface);
  border: 1px solid var(--u-line);
  border-radius: var(--u-radius);
  padding: 22px 20px;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.plan-card::before { display: none; }
.plan-card:hover { border-color: #c6d0db; box-shadow: none; transform: none; }
.plan-name { font-size: 15px; font-weight: 600; color: var(--u-ink); margin-bottom: 10px; }
.plan-price { margin-bottom: 12px; }
.price-now { font-size: 28px; color: var(--u-ink); font-weight: 600; letter-spacing: -.04em; font-family: var(--u-mono); }
.price-now::before { content: "¥"; font-size: 14px; margin-right: 3px; font-weight: 500; color: var(--u-muted); }
.price-old { color: var(--u-faint); font-size: 12px; }
.plan-desc { font-size: 12.5px; color: var(--u-muted); line-height: 1.6; margin-bottom: 14px; }
.plan-tags { gap: 5px; margin-bottom: 16px; }
.plan-tags .tag { background: var(--u-surface-2); color: var(--u-muted); border: 1px solid var(--u-line); }
.plan-cta {
  display: block;
  text-align: center;
  padding: 9px 10px;
  background: var(--u-surface-2);
  border: 1px solid var(--u-line);
  border-radius: 7px;
  color: var(--u-text);
  font-size: 12.5px;
  font-weight: 500;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.plan-cta:hover { background: var(--u-accent); border-color: var(--u-accent); color: #fff; }

/* ---------- 首页 ---------- */
.land-hero-wrap {
  background: #f7f8fa !important;
  border-bottom: 1px solid var(--u-line);
  overflow: hidden;
}
.land-hero-wrap::after { display: none !important; }
.land-hero {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 52px;
  align-items: center;
  padding: 68px 0 76px;
  overflow: visible;
}
.land-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--u-muted);
  font-size: 12.5px;
  font-weight: 450;
  letter-spacing: 0;
  margin-bottom: 18px;
}
.land-eyebrow .dot { width: 5px; height: 5px; background: var(--u-accent); box-shadow: none; }
h1.land-title {
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: 1.1;
  letter-spacing: -.055em;
  font-weight: 600;
  color: var(--u-ink);
  margin-bottom: 18px;
}
h1.land-title em {
  font-style: normal;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--u-accent);
}
.land-sub {
  max-width: 540px;
  margin-bottom: 26px;
  color: var(--u-muted);
  font-size: 15.5px;
  line-height: 1.75;
}
.land-cta { gap: 10px; margin-bottom: 30px; }
.land-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--u-line);
}
.land-stat .n {
  color: var(--u-ink);
  font-family: var(--u-mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.land-stat .n span { font-size: 11px; color: var(--u-muted); margin-left: 3px; }
.land-stat .l { color: var(--u-muted); font-size: 11.5px; margin-top: 2px; }

/* 首页右侧：真实构建工单，而不是假终端 */
.build-sheet {
  background: var(--u-surface);
  border: 1px solid var(--u-line-strong);
  border-radius: 12px;
  padding: 22px 22px 16px;
  box-shadow: 8px 8px 0 #e8edf2;
  font-family: var(--u-font);
}
.bs-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--u-line); }
.bs-kicker { display: block; font-family: var(--u-mono); font-size: 10.5px; color: var(--u-faint); margin-bottom: 7px; }
.bs-title { font-size: 21px; font-weight: 600; color: var(--u-ink); letter-spacing: -.03em; }
.bs-status { display: inline-flex; align-items: center; gap: 6px; padding-top: 2px; color: var(--u-success); font-size: 11.5px; white-space: nowrap; }
.bs-status i { width: 5px; height: 5px; border-radius: 50%; background: var(--u-success); }
.bs-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; padding: 18px 0; margin: 0; }
.bs-meta div { min-width: 0; }
.bs-meta dt { font-size: 10.5px; color: var(--u-faint); margin-bottom: 3px; }
.bs-meta dd { margin: 0; font-family: var(--u-mono); font-size: 12px; color: var(--u-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-progress { height: 5px; background: #edf1f5; border-radius: 3px; overflow: hidden; margin: 0 0 14px; }
.bs-progress span { display: block; width: 100%; height: 100%; background: var(--u-accent); }
.bs-files { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--u-line); border-bottom: 1px solid var(--u-line); }
.bs-files div { padding: 11px 10px 11px 0; }
.bs-files div + div { border-left: 1px solid var(--u-line); padding-left: 12px; }
.bs-files b { display: block; font-size: 11.5px; font-weight: 600; color: var(--u-ink); margin-bottom: 2px; }
.bs-files span { font-family: var(--u-mono); font-size: 10.5px; color: var(--u-muted); }
.bs-foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; color: var(--u-faint); font-size: 10.5px; font-family: var(--u-mono); }

.land-section { padding: 72px 0; }
.land-section-gray { background: var(--u-surface) !important; border-top: 1px solid var(--u-line); border-bottom: 1px solid var(--u-line); }
.land-sec-head { text-align: left; max-width: 700px; margin: 0 0 32px; }
.land-sec-tag { display: inline-block; color: var(--u-faint); font-size: 11.5px; font-weight: 450; letter-spacing: 0; text-transform: none; margin-bottom: 9px; }
.land-sec-head h2 { color: var(--u-ink); font-size: 29px; font-weight: 600; letter-spacing: -.035em; line-height: 1.25; margin-bottom: 9px; }
.land-sec-head p { color: var(--u-muted); font-size: 14px; line-height: 1.7; }
.land-feat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.land-feat {
  background: var(--u-surface);
  border: 1px solid var(--u-line);
  border-radius: var(--u-radius);
  padding: 20px 18px;
  box-shadow: none;
  transition: border-color .16s ease;
}
.land-feat::before { display: none; }
.land-feat:hover { border-color: #c6d0db; box-shadow: none; transform: none; }
.land-feat .fi {
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 6px;
  background: var(--u-surface-2);
  border: 1px solid var(--u-line);
  color: var(--u-muted);
  box-shadow: none;
}
.land-feat .fi svg { width: 17px; height: 17px; stroke-width: 1.7; }
.land-feat h3 { font-size: 14.5px; font-weight: 600; color: var(--u-ink); margin-bottom: 7px; letter-spacing: 0; }
.land-feat p { font-size: 12.5px; color: var(--u-muted); line-height: 1.7; margin-bottom: 12px; }
.land-tag {
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--u-surface-2);
  border: 1px solid var(--u-line);
  color: var(--u-muted);
  font-size: 10.5px;
  font-weight: 450;
}
.land-tag.b { background: var(--u-surface-2); color: var(--u-muted); border-color: var(--u-line); }
.land-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.land-step {
  background: var(--u-surface);
  border: 1px solid var(--u-line);
  border-radius: var(--u-radius);
  padding: 18px 17px;
  box-shadow: none;
}
.land-step .sn { color: var(--u-accent); font-family: var(--u-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0; margin-bottom: 9px; }
.land-step h4 { color: var(--u-ink); font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.land-step p { color: var(--u-muted); font-size: 12.5px; line-height: 1.7; }
.land-cta-wrap { padding: 76px 0; }
.land-cta-band {
  border-radius: 12px;
  padding: 40px 36px;
  background: var(--u-ink);
  box-shadow: none;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.land-cta-band::after { display: none; }
.land-cta-band h2 { color: #fff; font-size: 27px; font-weight: 600; letter-spacing: -.035em; margin-bottom: 9px; }
.land-cta-band p { color: #c9d0d8; font-size: 13.5px; line-height: 1.7; margin: 0 0 20px; max-width: 560px; }
.land-cta-band .row { justify-content: flex-start; gap: 9px; }

/* 下载页、详情页、通用内容 */
.dl-shots img { border-radius: 6px; border-color: var(--u-line); }
.dl-shots { gap: 10px; }
.empty { color: var(--u-muted); padding: 44px 20px; }
.empty .icon { opacity: .45; margin-bottom: 10px; }
.empty p { font-size: 13px; }
.footer {
  color: var(--u-faint);
  font-size: 11.5px;
  text-align: center;
  padding: 20px 24px 24px;
  border-top: 1px solid var(--u-line);
}
.footer a { color: var(--u-faint); }
.footer a:hover { color: var(--u-muted); }

/* 表格工具条与筛选 */
.table-toolbar { gap: 8px; margin-bottom: 14px; }
.dev-filter-row { gap: 8px; }
.dev-filter-row .btn { width: auto; flex: 0 0 auto; }
.card-title-row { gap: 10px; }
.card-title-actions { gap: 7px; }
.form-inline { display: inline; }
.row-actions { gap: 6px; }

/* 移动端：侧栏转底部导航，内容全宽 */
@media (max-width: 1100px) {
  .land-feat-grid, .land-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v7-kpis, .v7-kpis.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main-side, .v7-grid3, .v7-grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .land-hero { grid-template-columns: 1fr; gap: 36px; padding: 52px 0 58px; }
  h1.land-title { font-size: 38px; }
  .build-sheet { box-shadow: 6px 6px 0 #e8edf2; }
}
@media (max-width: 860px) {
  body:has(.admin-layout) .topbar { position: sticky; top: 0; }
  body:has(.v7-side) .admin-layout { grid-template-columns: 1fr !important; }
  .admin-side.v7-side { display: none !important; }
  .admin-main { padding: 0 0 76px !important; }
  .v7-body { padding: 14px 14px 78px !important; }
  .v7-top { padding: 13px 16px; position: sticky; top: 0; z-index: 50; }
  .v7-top h1 { font-size: 18px; }
  .page-head { padding: 14px 16px; }
  .page-head h1 { font-size: 18px; }
  .v7-kpis, .v7-kpis.c3 { gap: 9px; }
  .v7-kpi { padding: 13px !important; }
  .v7-kpi .badge { width: 26px; height: 26px; margin-bottom: 9px; }
  .v7-kpi .num { font-size: 23px; }
  .v7-kpi .lbl { font-size: 11px; }
  .plans-grid { grid-template-columns: 1fr; }
  .auth-page { padding: 24px 16px; align-items: flex-start; }
  .auth-card { padding: 28px 22px 24px; }
  .topbar-inner { padding: 0 16px; }
  .land-section { padding: 50px 0; }
  .land-sec-head h2 { font-size: 25px; }
  .land-cta-band { padding: 30px 24px; }
  .land-cta-band h2 { font-size: 23px; }
  .land-cta-band .row { justify-content: flex-start; }
}
@media (max-width: 620px) {
  .land-feat-grid, .land-flow { grid-template-columns: 1fr; }
  .land-hero { padding: 38px 0 44px; }
  h1.land-title { font-size: 31px; }
  .land-sub { font-size: 14px; }
  .land-stats { gap: 18px; }
  .bs-meta { grid-template-columns: 1fr 1fr; gap: 12px; }
  .bs-files { grid-template-columns: 1fr; }
  .bs-files div + div { border-left: none; border-top: 1px solid var(--u-line); padding-left: 0; }
  .bs-foot { flex-direction: column; gap: 3px; }
  .v7-kpis, .v7-kpis.c3 { grid-template-columns: 1fr; }
  .v7-top .r .btn { padding: 7px 10px; font-size: 12px; }
  .table th, .table td { padding: 9px 8px; }
  .table .btn-sm { min-height: 25px; padding: 3px 7px; font-size: 11px; }
}

/* 覆盖 v7 的 !important 按钮规则 */
.btn-primary {
  background: var(--u-accent) !important;
  background-image: none !important;
  border-color: var(--u-accent) !important;
  color: #fff !important;
  box-shadow: none !important;
  border-radius: var(--u-radius-sm) !important;
}
.btn-primary:hover {
  background: var(--u-accent-hover) !important;
  background-image: none !important;
  border-color: var(--u-accent-hover) !important;
  color: #fff !important;
}
.btn-round { border-radius: var(--u-radius-sm) !important; }
.btn-sm { border-radius: 6px !important; }
.auth-card {
  box-shadow: none !important;
  border: 1px solid var(--u-line) !important;
  border-radius: 12px !important;
}

/* 能力与流程：从“卡片墙”改成可核对的工单清单 */
.land-hero-wrap .container,
.land-section .container,
.land-cta-wrap .container { max-width: 1240px; }
.land-hero { padding: 60px 0 64px; }
.land-section { padding: 56px 0; }
.land-sec-head { margin-bottom: 26px; }

.land-feat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--u-line-strong);
}
.land-feat {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 20px 20px 20px 0;
}
.land-feat + .land-feat {
  border-left: 1px solid var(--u-line);
  padding-left: 20px;
}
.land-feat .fi {
  width: 20px;
  height: 20px;
  margin-bottom: 13px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--u-muted);
}
.land-feat .fi svg { width: 18px; height: 18px; }
.land-feat h3 { font-size: 15px; margin-bottom: 7px; }
.land-feat p { min-height: 78px; margin-bottom: 12px; }
.land-feat .tags { gap: 5px; }

.land-flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--u-line-strong);
}
.land-step {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 20px 20px 20px 0;
}
.land-step + .land-step {
  border-left: 1px solid var(--u-line);
  padding-left: 20px;
}
.land-step .sn { color: var(--u-muted); font-size: 11.5px; margin-bottom: 10px; }
.land-step h4 { font-size: 15px; }

@media (max-width: 980px) {
  .land-feat-grid, .land-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .land-feat { padding: 18px 18px 18px 0; }
  .land-feat:nth-child(odd) { border-left: none; padding-left: 0; }
  .land-feat:nth-child(even) { border-left: 1px solid var(--u-line); padding-left: 18px; }
  .land-feat:nth-child(n+3) { border-top: 1px solid var(--u-line); }
  .land-step { padding: 18px 18px 18px 0; }
  .land-step:nth-child(odd) { border-left: none; padding-left: 0; }
  .land-step:nth-child(even) { border-left: 1px solid var(--u-line); padding-left: 18px; }
  .land-step:nth-child(n+3) { border-top: 1px solid var(--u-line); }
}
@media (max-width: 620px) {
  .land-feat-grid, .land-flow { grid-template-columns: 1fr; }
  .land-feat, .land-feat:nth-child(even) { border-left: none; padding: 18px 0; }
  .land-feat:nth-child(n+2) { border-top: 1px solid var(--u-line); }
  .land-step, .land-step:nth-child(even) { border-left: none; padding: 18px 0; }
  .land-step:nth-child(n+2) { border-top: 1px solid var(--u-line); }
}

/* 减少动态：统一关闭位移动画，只保留颜色反馈 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
