/* ============================================================================
   WeChatBot 网页端 · 与「抖音续火花」1:1 视觉体系
   ----------------------------------------------------------------------------
   结构来源：参考站 web/assets（portal / landing / Koi Admin + Element Plus）
     · 落地页：navy #0b1f3a / 主蓝 #2563eb / 线 #e2e8f2 / 绿 #10b981
     · 用户端：portal 变量（#2563eb、#0f172a、#64748b、#f4f8ff、8px 圆角）
     · 管理端：Koi 布局 220 侧栏 + 56 顶栏，Element 主色 #2992FF、4px 圆角
   纯手写，无框架、无远程资源。
   ========================================================================= */

:root {
  /* Element Plus / 管理端 */
  --blue: #2992ff;
  --blue-hover: #1a86f5;
  --blue-soft: #ecf5ff;
  --blue-soft-2: #d9ecff;
  --success: #67c23a;
  --success-soft: #f0f9eb;
  --warn: #e6a23c;
  --warn-soft: #fdf6ec;
  --danger: #f56c6c;
  --danger-soft: #fef0f0;
  --text: #303133;
  --text-2: #606266;
  --muted: #909399;
  --faint: #a8abb2;
  --line: #ebeef5;
  --line-2: #dcdfe6;
  --bg: #f2f3f5;

  /* 落地页 */
  --navy: #0b1f3a;
  --navy-2: #16233b;
  --landing-blue: #2563eb;
  --landing-blue-deep: #1d4ed8;
  --landing-line: #e2e8f2;
  --landing-muted: #5b6b83;
  --landing-green: #10b981;

  /* 用户端 portal */
  --pt-brand: #2563eb;
  --pt-brand-strong: #1d4ed8;
  --pt-brand-soft: rgba(37, 99, 235, .09);
  --pt-ink: #0f172a;
  --pt-ink-2: #334155;
  --pt-muted: #64748b;
  --pt-faint: #94a3b8;
  --pt-line: rgba(37, 99, 235, .12);
  --pt-line-strong: rgba(37, 99, 235, .22);
  --pt-surface: rgba(255, 255, 255, .94);
  --pt-soft: #f4f8ff;
  --pt-green: #12b76a;

  --r: 4px;
  --pt-r: 8px;
  --font: "Inter", "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }

h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }

code {
  padding: 1px 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-2);
  background: #f5f7fa;
  border: 1px solid var(--line);
  border-radius: 3px;
}

/* ============================== 品牌标记 & 图标 ============================== */
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%);
  box-shadow: 0 10px 24px -8px rgba(37, 99, 235, .65);
}
.brand-mark svg { display: block; width: 62%; height: 62%; }

.ico {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  vertical-align: -3px;
  background: currentColor;
  -webkit-mask: var(--i) no-repeat center / contain;
  mask: var(--i) no-repeat center / contain;
}
.ico-14 { width: 14px; height: 14px; }
.ico-18 { width: 18px; height: 18px; }
.ico-20 { width: 20px; height: 20px; }
.ico-22 { width: 22px; height: 22px; }

/* ============================== 通用控件（管理端 Element 风格） ============================== */
.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 15px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-2);
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s, background .2s, border-color .2s;
}
.btn:hover { color: var(--blue); background: var(--blue-soft); border-color: #c6e2ff; }
.btn-primary { color: #fff; background: var(--blue); border-color: var(--blue); }
.btn-primary:hover { color: #fff; background: var(--blue-hover); border-color: var(--blue-hover); }
.btn-danger { color: #fff; background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { color: #fff; background: #f78989; border-color: #f78989; }
.btn-ghost { color: var(--text-2); background: transparent; border-color: transparent; }
.btn-ghost:hover { color: var(--blue); background: #f5f7fa; border-color: transparent; }
.btn-sm { height: 26px; padding: 0 10px; font-size: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-link { height: auto; padding: 0; color: var(--blue); background: none; border: none; cursor: pointer; font-size: 13px; }
.btn-link:hover { color: var(--blue-hover); background: none; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  border: 1px solid transparent;
  border-radius: var(--r);
  white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.badge.ok { color: #529b2e; background: var(--success-soft); border-color: #e1f3d8; }
.badge.warn { color: #b88230; background: var(--warn-soft); border-color: #faecd8; }
.badge.err { color: var(--danger); background: var(--danger-soft); border-color: #fde2e2; }
.badge.info { color: var(--blue); background: var(--blue-soft); border-color: var(--blue-soft-2); }
.badge.idle { color: var(--muted); background: #f4f4f5; border-color: #e9e9eb; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
table.data th, table.data td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data th { font-size: 13px; font-weight: 600; color: var(--muted); background: #fafafa; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: #f5f7fa; }
table.data td.wrap { white-space: normal; word-break: break-all; }
table.data .muted { color: var(--muted); }
table.data form { display: inline-flex; gap: 6px; align-items: center; }
table.data .btn { height: 26px; padding: 0 10px; font-size: 12px; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.field { min-width: 0; }
.field > label { display: block; margin-bottom: 8px; font-size: 13px; color: var(--text-2); }
input[type="text"], input[type="password"], input[type="email"], input[type="number"],
input[type="search"], select, textarea {
  width: 100%;
  height: 32px;
  padding: 0 11px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-2);
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}
textarea { height: auto; min-height: 76px; padding: 6px 11px; line-height: 1.6; resize: vertical; }
select {
  padding-right: 30px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23c0c4cc' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  cursor: pointer;
}
input:hover, select:hover, textarea:hover { border-color: #c0c4cc; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(41, 146, 255, .12); }
input::placeholder, textarea::placeholder { color: #c0c4cc; }
input:disabled, select:disabled, textarea:disabled { background: #f5f7fa; color: #c0c4cc; }
.checkline { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.checkline input { width: 15px; height: 15px; margin: 0; accent-color: var(--blue); }

.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.flash {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 9px 14px;
  font-size: 13px;
  border: 1px solid transparent;
  border-radius: var(--r);
}
.flash.ok { color: #529b2e; background: var(--success-soft); border-color: #e1f3d8; }
.flash.err { color: var(--danger); background: var(--danger-soft); border-color: #fde2e2; }
.flash.warn { color: #b88230; background: var(--warn-soft); border-color: #faecd8; }

.hint {
  margin: 0 0 16px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-2);
  background: var(--blue-soft);
  border: 1px solid var(--blue-soft-2);
  border-radius: var(--r);
}
.hint strong { color: var(--text); }

.empty {
  padding: 44px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  background: #fafafa;
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
}
.empty strong { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--text-2); }

.log-view {
  margin: 0;
  padding: 12px 14px;
  max-height: 380px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: #d7dce8;
  background: #0f1424;
  border: 1px solid #1f2740;
  border-radius: var(--r);
  white-space: pre-wrap;
  word-break: break-word;
}

.actions-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.actions-bar form { display: inline; }

/* ============================== 页面通用骨架（管理端） ============================== */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.page-head h1 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.page-head p { font-size: 13px; color: var(--muted); }

.card {
  padding: 18px 20px 20px;
  margin-bottom: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .06);
}
.card > h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.card > h2 .muted { font-size: 12px; font-weight: 400; color: var(--muted); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.stat {
  position: relative;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.stat .label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.stat .value { font-size: 26px; font-weight: 600; color: var(--navy); line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat .value small { margin-left: 4px; font-size: 12px; font-weight: 400; color: var(--faint); }
.stat__icon { position: absolute; right: 14px; top: 14px; width: 22px; height: 22px; color: #c0c4cc; }
.stat__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat__top .stat__icon { position: static; width: 18px; height: 18px; color: var(--pt-brand); opacity: .75; }

/* ============================== 用户中心外壳（portal） ============================== */
body.pt-app-body { background: var(--pt-soft); }

.pt-head {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 62px;
  padding: 0 26px;
  background: rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--pt-line);
}
.pt-head__left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pt-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--pt-ink); }
.pt-brand:hover { color: var(--pt-ink); }
.pt-brand .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
.pt-brand__text { display: grid; line-height: 1.15; }
.pt-brand__text b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.pt-brand__text small { font-size: 10px; color: var(--pt-faint); margin-top: 2px; letter-spacing: .02em; }
.pt-head__right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.pt-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  font-size: 12.5px;
  color: var(--pt-muted);
  border-radius: 999px;
  border: 1px solid transparent;
}
.pt-link:hover { color: var(--pt-brand); background: rgba(37, 99, 235, .07); }
.pt-user {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 4px 6px 4px 4px;
  margin-left: 4px;
  border-radius: 999px;
  border: 1px solid var(--pt-line);
  background: #fff;
  box-shadow: 0 6px 18px -14px rgba(15, 23, 42, .5);
}
.pt-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}
.pt-user__name { font-size: 12.5px; font-weight: 600; color: var(--pt-ink-2); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-logout {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 9px;
  font-size: 12px;
  color: var(--pt-muted);
  background: var(--pt-soft);
  border-radius: 999px;
}
.pt-logout:hover { color: #ef4444; background: #fef2f2; }

.pt-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--pt-ink-2);
  background: #fff;
  border: 1px solid var(--pt-line);
  border-radius: 9px;
  cursor: pointer;
}
.pt-toggle:hover { color: var(--pt-brand); border-color: var(--pt-brand); }

.pt-body { display: flex; align-items: stretch; min-height: calc(100vh - 62px); }

.pt-side {
  position: sticky;
  top: 62px;
  display: flex;
  flex-direction: column;
  width: 224px;
  flex: 0 0 224px;
  height: calc(100vh - 62px);
  padding: 16px 12px 14px;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-right: 1px solid var(--pt-line);
  overflow-y: auto;
  transition: width .22s ease, flex-basis .22s ease, padding .22s ease;
}
.pt-side__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--pt-line);
}
.pt-side__brand .brand-mark { width: 28px; height: 28px; border-radius: 8px; }
.pt-side__brand b { display: block; font-size: 13px; color: var(--pt-ink); }
.pt-side__brand small { display: block; font-size: 10px; color: var(--pt-faint); margin-top: 1px; }
.pt-nav { display: flex; flex-direction: column; gap: 3px; }
.pt-nav__label { padding: 14px 10px 6px; font-size: 10.5px; font-weight: 600; color: var(--pt-faint); letter-spacing: .08em; }
.pt-nav__item {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 11px;
  font-size: 13px;
  font-weight: 500;
  color: var(--pt-ink-2);
  border-radius: var(--pt-r);
  transition: background .18s, color .18s, box-shadow .18s;
}
.pt-nav__item .ico { color: var(--pt-muted); transition: color .18s; }
.pt-nav__item:hover { color: var(--pt-brand); background: rgba(37, 99, 235, .06); }
.pt-nav__item:hover .ico { color: var(--pt-brand); }
.pt-nav__item.is-active {
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 10px 22px -14px rgba(37, 99, 235, .9);
}
.pt-nav__item.is-active .ico { color: #fff; }
.pt-side__foot {
  margin-top: auto;
  padding: 12px;
  border-radius: var(--pt-r);
  background: linear-gradient(135deg, #eef5ff, #f7fbff);
  border: 1px solid var(--pt-line);
  font-size: 11px;
  line-height: 1.7;
  color: var(--pt-muted);
}
.pt-side__foot b { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--pt-ink-2); margin-bottom: 4px; }
.pt-side__foot b i { width: 6px; height: 6px; border-radius: 50%; background: var(--pt-green); box-shadow: 0 0 0 3px rgba(18, 183, 106, .14); }

.pt-main { flex: 1 1 auto; min-width: 0; padding: 22px 26px 44px; }

/* 用户端组件覆盖 */
.pt-app .page-head {
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--pt-line);
}
.pt-app .page-head h1 { font-size: 19px; font-weight: 700; color: var(--pt-ink); letter-spacing: -.01em; }
.pt-app .page-head p { margin-top: 3px; font-size: 12px; color: var(--pt-muted); }
.pt-app .page-head .btn { height: 34px; border-radius: var(--pt-r); font-size: 12.5px; }

.pt-app .card {
  padding: 20px 22px 22px;
  margin-bottom: 18px;
  background: var(--pt-surface);
  border: 1px solid var(--pt-line);
  border-radius: var(--pt-r);
  box-shadow: 0 14px 34px -30px rgba(15, 23, 42, .55);
}
.pt-app .card > h2 {
  margin: 0 0 16px;
  padding-bottom: 14px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--pt-ink);
  border-bottom: 1px solid var(--pt-line);
}
.pt-app .card > h2 .muted { font-size: 11.5px; font-weight: 400; color: var(--pt-muted); }

.pt-app .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.pt-app .stat {
  overflow: hidden;
  padding: 16px 18px;
  background: linear-gradient(135deg, #fff 0%, #f4f8ff 100%);
  border: 1px solid var(--pt-line);
  border-radius: var(--pt-r);
  box-shadow: 0 10px 28px -26px rgba(37, 99, 235, .55);
}
.pt-app .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--tone, var(--pt-brand));
}
.pt-app .stat .label { font-size: 12px; color: var(--pt-muted); }
.pt-app .stat .value { font-size: 26px; font-weight: 700; color: var(--tone, var(--pt-brand)); }
.pt-app .stat .value small { color: var(--pt-faint); }

.pt-app .btn {
  height: 34px;
  padding: 0 14px;
  font-size: 12.5px;
  color: var(--pt-ink-2);
  border: 1px solid var(--pt-line-strong);
  border-radius: var(--pt-r);
  background: #fff;
}
.pt-app .btn:hover { color: var(--pt-brand); background: rgba(37, 99, 235, .05); border-color: var(--pt-brand); }
.pt-app .btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-color: transparent;
  box-shadow: 0 12px 24px -16px rgba(37, 99, 235, .9);
}
.pt-app .btn-primary:hover { color: #fff; background: linear-gradient(135deg, #2563eb, #1e40af); border-color: transparent; }
.pt-app .btn-danger { color: #fff; background: #ef4444; border-color: #ef4444; }
.pt-app .btn-danger:hover { color: #fff; background: #dc2626; border-color: #dc2626; }
.pt-app .btn-ghost { color: var(--pt-muted); background: transparent; border-color: transparent; }
.pt-app .btn-ghost:hover { color: var(--pt-brand); background: rgba(37, 99, 235, .06); border-color: transparent; }
.pt-app .btn-sm { height: 28px; padding: 0 10px; font-size: 12px; }

.pt-app .badge {
  padding: 2px 9px;
  font-size: 11.5px;
  border-radius: 999px;
}
.pt-app .badge.ok { color: #067647; background: #ecfdf3; border-color: #c6f1d6; }
.pt-app .badge.warn { color: #b54708; background: #fffaeb; border-color: #fdecc8; }
.pt-app .badge.err { color: #b42318; background: #fef3f2; border-color: #fee4e2; }
.pt-app .badge.info { color: var(--pt-brand); background: #eff6ff; border-color: #dbeafe; }
.pt-app .badge.idle { color: var(--pt-muted); background: #f8fafc; border-color: #e2e8f0; }
.pt-app .badge.plain { color: var(--pt-ink-2); background: #f1f5f9; border-color: #e2e8f0; }

.pt-app .table-wrap { border: 1px solid var(--pt-line); border-radius: var(--pt-r); }
.pt-app table.data th {
  padding: 11px 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--pt-muted);
  background: var(--pt-soft);
}
.pt-app table.data td { padding: 11px 12px; font-size: 12.5px; color: var(--pt-ink-2); border-bottom: 1px solid var(--pt-line); }
.pt-app table.data tbody tr:hover { background: #f8fbff; }
.pt-app table.data td.wrap { white-space: normal; word-break: break-word; }
.pt-app table.data th:first-child, .pt-app table.data td:first-child { padding-left: 16px; }
.pt-app table.data th:last-child, .pt-app table.data td:last-child { padding-right: 16px; }

.pt-app input[type="text"], .pt-app input[type="password"], .pt-app input[type="email"],
.pt-app input[type="number"], .pt-app select, .pt-app textarea {
  height: 38px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--pt-ink-2);
  background: #fff;
  border: 1px solid #dbe4f0;
  border-radius: var(--pt-r);
}
.pt-app input:focus, .pt-app select:focus, .pt-app textarea:focus {
  border-color: var(--pt-brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.pt-app select { padding-right: 30px; }
.pt-app .field > label { font-size: 12px; font-weight: 500; color: var(--pt-ink-2); }

.pt-app .hint {
  padding: 14px 16px;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--pt-muted);
  background: linear-gradient(135deg, #eef5ff, #f8fbff);
  border: 1px solid var(--pt-line);
  border-radius: var(--pt-r);
}
.pt-app .hint strong { color: var(--pt-ink); }
.pt-app .hint code { background: #fff; border-color: var(--pt-line); }

.pt-app .empty {
  padding: 46px 20px;
  font-size: 12.5px;
  color: var(--pt-muted);
  background: linear-gradient(180deg, #fbfdff, #f4f8ff);
  border: 1px dashed var(--pt-line-strong);
  border-radius: var(--pt-r);
}
.pt-app .empty strong { font-size: 13.5px; color: var(--pt-ink-2); }

.pt-app .actions-bar .btn { height: 32px; }

/* 套餐卡片（用户端 / 落地页共用视觉） */
.pt-app .lp-plans { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 0; }
.pt-app .lp-plan {
  padding: 22px 20px;
  background: linear-gradient(160deg, #fff, #f8fbff);
  border: 1px solid var(--pt-line);
  border-radius: var(--pt-r);
  box-shadow: 0 14px 30px -28px rgba(37, 99, 235, .5);
}
.pt-app .lp-plan.featured { border-color: var(--pt-brand); box-shadow: 0 20px 44px -30px rgba(37, 99, 235, .8); }
.pt-app .lp-plan h3 { font-size: 15px; color: var(--pt-ink); }
.pt-app .lp-plan .price { font-size: 28px; color: var(--pt-ink); }
.pt-app .lp-plan .price small { color: var(--pt-muted); }
.pt-app .lp-plan li { font-size: 12.5px; color: var(--pt-muted); }
.pt-app .lp-plan li::before { background: var(--pt-brand); }

/* ============================== 登录 / 注册（portal auth） ============================== */
body.pt-auth-body {
  min-height: 100vh;
  background: #eef5ff;
}

.pt-topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  height: 68px;
  padding: 0 30px;
  background: #fff;
  border-bottom: 1px solid #e6eefc;
}
.pt-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1320px, 100%);
  margin: 0 auto;
}
.pt-topbar .pt-brand .brand-mark { width: 34px; height: 34px; border-radius: 9px; }
.pt-topbar__links { display: flex; align-items: center; gap: 6px; }
.pt-topbar__links a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--pt-muted);
  border-radius: 8px;
}
.pt-topbar__links a:hover { color: var(--pt-brand); background: rgba(37, 99, 235, .06); }
.pt-topbar__links a.is-active { color: var(--pt-brand); font-weight: 600; background: rgba(37, 99, 235, .08); }

.pt-auth {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 68px);
  padding: 44px 20px;
  overflow: hidden;
  background:
    radial-gradient(900px 460px at 18% 8%, rgba(96, 165, 250, .22), transparent 60%),
    radial-gradient(760px 420px at 88% 88%, rgba(147, 197, 253, .22), transparent 62%),
    linear-gradient(155deg, #eef5ff 0%, #f7fbff 46%, #eef4ff 100%);
}
.pt-stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.pt-auth__card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 462px;
  padding: 34px 38px 28px;
  background: #fff;
  border: 1px solid #e5eefc;
  border-radius: 16px;
  box-shadow: 0 34px 80px -44px rgba(37, 99, 235, .5), 0 2px 8px rgba(15, 23, 42, .04);
}
.pt-auth__head { text-align: center; }
.pt-auth__head h1 {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--pt-ink);
}
.pt-auth__head p { margin-top: 6px; font-size: 12.5px; color: var(--pt-muted); }

.pt-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 24px 0 20px;
  padding: 4px;
  background: #f2f5f9;
  border-radius: 10px;
}
.pt-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--pt-muted);
  border-radius: 8px;
}
.pt-tab:hover { color: var(--pt-brand); }
.pt-tab.is-active {
  color: var(--pt-brand);
  font-weight: 600;
  background: #fff;
  box-shadow: 0 4px 12px -4px rgba(15, 23, 42, .16);
}

.pt-field { margin-bottom: 13px; }
.pt-input { position: relative; display: flex; align-items: center; }
.pt-input .ico {
  position: absolute;
  left: 14px;
  color: #9aa9c0;
  pointer-events: none;
  z-index: 1;
}
.pt-input input {
  width: 100%;
  height: 50px;
  padding: 0 14px 0 42px;
  font-size: 14px;
  color: var(--pt-ink);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.pt-input input::placeholder { color: #a9b6c9; }
.pt-input input:hover { border-color: #c8d5e6; }
.pt-input input:focus { border-color: var(--pt-brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }

.pt-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  margin-top: 6px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border: none;
  border-radius: 9px;
  cursor: pointer;
  box-shadow: 0 16px 30px -18px rgba(37, 99, 235, .95);
  transition: filter .18s, transform .18s;
}
.pt-submit:hover { filter: brightness(1.05); }
.pt-submit:active { transform: translateY(1px); }

.pt-divider { height: 1px; margin: 22px 0 16px; background: #eef2f8; }
.pt-notes { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.pt-notes li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--pt-muted); }
.pt-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  color: #079455;
  background: #dcfae6;
}
.pt-auth__foot { margin-top: 18px; text-align: center; font-size: 12px; color: var(--pt-faint); }
.pt-auth__foot a { color: var(--pt-brand); font-weight: 500; }
.pt-auth__foot a:hover { text-decoration: underline; }

.pt-hint { margin: -3px 0 12px; font-size: 11.5px; color: var(--pt-faint); }

/* 顶部提示条 */
.toast-stack {
  position: fixed;
  z-index: 200;
  left: 50%;
  top: 84px;
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  width: min(420px, calc(100% - 32px));
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 15px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--pt-ink-2);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 18px 40px -24px rgba(15, 23, 42, .5);
}
.toast::before { content: ""; width: 6px; height: 6px; margin-top: 6px; border-radius: 50%; background: var(--pt-brand); flex: 0 0 auto; }
.toast.ok { border-color: #c6f1d6; }
.toast.ok::before { background: #12b76a; }
.toast.err { border-color: #fee4e2; }
.toast.err::before { background: #f04438; }
.toast.warn::before { background: #f79009; }

/* ============================== 管理后台外壳（Koi） ============================== */
body.koi-body { background: var(--bg); }

.koi-app { display: flex; min-height: 100vh; }

.koi-aside {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: 220px;
  background: #fff;
  border-right: 1px solid #e4e7ed;
  transition: width .22s ease;
}
.koi-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 60px;
  padding: 0 16px;
  flex: 0 0 auto;
  border-bottom: 1px solid #f2f3f5;
  color: var(--navy);
}
.koi-logo:hover { color: var(--navy); }
.koi-logo .brand-mark { width: 28px; height: 28px; border-radius: 8px; box-shadow: 0 6px 14px -8px rgba(41, 146, 255, .7); }
.koi-logo b { font-size: 14px; font-weight: 600; }
.koi-logo small { display: block; font-size: 10px; font-weight: 400; color: var(--faint); margin-top: 1px; }

.koi-menu { flex: 1 1 auto; overflow-y: auto; padding: 6px 10px 20px; }
.koi-menu__group { padding: 14px 10px 6px; font-size: 11px; color: var(--faint); letter-spacing: .04em; }
.koi-menu__item {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 12px;
  margin-bottom: 4px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: background .2s, color .2s;
}
.koi-menu__item .ico { color: var(--text-2); transition: color .2s; }
.koi-menu__item:hover { background: #f5f7fa; color: var(--text); }
.koi-menu__item:hover .ico { color: var(--blue); }
.koi-menu__item.is-active { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.koi-menu__item.is-active .ico { color: var(--blue); }
.koi-menu__foot {
  padding: 12px 16px 0;
  margin-top: auto;
  border-top: 1px solid #f2f3f5;
  font-size: 11px;
  line-height: 1.7;
  color: #c0c4cc;
}

.koi-main {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 220px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left .22s ease;
}
.koi-header {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 56px;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid #e4e7ed;
  flex: 0 0 auto;
}
.koi-crumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); min-width: 0; }
.koi-crumb b { color: var(--text); font-weight: 500; }
.koi-crumb i { color: #c0c4cc; font-style: normal; }
.koi-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 6px;
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 20px;
  box-shadow: 0 4px 16px -10px rgba(0, 0, 0, .28);
  flex: 0 0 auto;
}
.koi-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--text-2);
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}
.koi-tool:hover { color: var(--blue); background: #f5f7fa; }
.koi-user { display: flex; align-items: center; gap: 7px; padding-left: 8px; border-left: 1px solid #f0f2f5; }
.koi-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #409eff, #2992ff);
}
.koi-user__name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--text); }
.koi-logout {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 26px;
  padding: 0 9px;
  font-size: 12px;
  color: var(--muted);
  border-radius: 13px;
}
.koi-logout:hover { color: var(--danger); background: var(--danger-soft); }

.koi-content { flex: 1 1 auto; padding: 16px; }

.koi-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 8px;
  color: var(--text-2);
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  cursor: pointer;
}
.koi-menu-toggle:hover { color: var(--blue); border-color: var(--blue); }

/* ============================== 落地页 ============================== */
.lp { background: #fff; color: var(--navy-2); }
.lp-shell { width: min(1180px, 100% - 48px); margin: 0 auto; }

.lp-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--landing-line);
  box-shadow: 0 8px 30px rgba(11, 31, 58, .06);
}
.lp-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1280px, 100% - 40px);
  height: 72px;
  margin: 0 auto;
}
.lp-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--navy); }
.lp-brand:hover { color: var(--navy); }
.lp-brand .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
.lp-brand__text { font-size: 17px; font-weight: 700; white-space: nowrap; }
.lp-nav__links { display: flex; align-items: center; gap: 28px; font-size: 14px; color: #4b5c77; }
.lp-nav__links a { color: inherit; padding: 6px 0; border-bottom: 1px solid transparent; }
.lp-nav__links a:hover { color: var(--landing-blue); border-bottom-color: var(--landing-blue); }
.lp-nav__actions { display: flex; align-items: center; gap: 8px; }
.lp-nav__login { display: inline-flex; align-items: center; height: 38px; padding: 0 10px; font-size: 14px; color: var(--navy); }
.lp-nav__login:hover { color: var(--landing-blue); }
.lp-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: var(--landing-blue);
  border: 1px solid var(--landing-blue);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .24);
}
.lp-start:hover { color: #fff; background: var(--landing-blue-deep); border-color: var(--landing-blue-deep); }

.lp-hero {
  position: relative;
  overflow: hidden;
  min-height: 700px;
  padding: 138px 0 56px;
  background: linear-gradient(#eef5ff 0%, #f8fbff 58%, #fff 100%);
}
.lp-hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background:
    linear-gradient(90deg, rgba(37, 99, 235, .07) 1px, transparent 1px) 0 0 / 76px 76px,
    linear-gradient(rgba(37, 99, 235, .07) 1px, transparent 1px) 0 0 / 76px 76px;
  -webkit-mask-image: linear-gradient(#000 0%, transparent 78%);
  mask-image: linear-gradient(#000 0%, transparent 78%);
}
.lp-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(520px, 1.08fr);
  align-items: center;
  gap: 64px;
  width: min(1180px, 100% - 48px);
  margin: 0 auto;
}
.lp-kicker { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; color: var(--landing-blue-deep); }
.lp-kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.lp-kicker__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--landing-blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }

.lp-hero h1 {
  margin: 22px 0;
  font-size: 60px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--navy);
}
.lp-hero h1 em { font-style: normal; color: var(--landing-blue); }
.lp-lead { max-width: 500px; font-size: 16px; line-height: 1.9; color: var(--landing-muted); }
.lp-actions { display: flex; align-items: center; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.lp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-width: 168px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: var(--landing-blue);
  border: 1px solid var(--landing-blue);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(37, 99, 235, .24);
}
.lp-cta:hover { color: #fff; background: var(--landing-blue-deep); }
.lp-cta__arrow { margin-left: 9px; }
.lp-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  font-size: 15px;
  color: var(--navy);
  background: rgba(255, 255, 255, .78);
  border: 1px solid #c9d8f2;
  border-radius: 8px;
}
.lp-ghost:hover { color: var(--landing-blue); border-color: var(--landing-blue); background: #fff; }

.lp-trust { display: flex; align-items: center; gap: 22px; margin-top: 42px; flex-wrap: wrap; }
.lp-trust div { display: grid; gap: 3px; }
.lp-trust strong { font-size: 17px; font-weight: 700; color: var(--navy); }
.lp-trust span { font-size: 12px; color: #7b8aa5; }
.lp-trust > i { width: 1px; height: 28px; background: #d3dff2; }

.lp-visual {
  position: relative;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid #dbe6f8;
  border-radius: 16px;
  box-shadow: 0 30px 70px -45px rgba(11, 31, 58, .5);
  overflow: hidden;
}
.lp-visual__head, .lp-visual__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 0 20px;
  border-bottom: 1px solid var(--landing-line);
}
.lp-visual__head > span { font-size: 11px; font-weight: 700; color: #64748b; letter-spacing: .06em; }
.lp-visual__head small { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 700; color: #0f9d6e; letter-spacing: .06em; }
.lp-visual__head small i { width: 6px; height: 6px; border-radius: 50%; background: var(--landing-green); box-shadow: 0 0 0 4px rgba(16, 185, 129, .12); }
.lp-visual__stage {
  position: relative;
  height: 404px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(37, 99, 235, .06) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(rgba(37, 99, 235, .06) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(#f7faff, #eef4ff);
}
.lp-rings { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid rgba(37, 99, 235, .16); }
.lp-rings.r1 { width: 150px; height: 150px; }
.lp-rings.r2 { width: 240px; height: 240px; border-color: rgba(37, 99, 235, .13); }
.lp-rings.r3 { width: 330px; height: 330px; border-color: rgba(37, 99, 235, .09); }
.lp-orb {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #dbe6f8;
  box-shadow: 0 18px 40px -22px rgba(37, 99, 235, .6);
  text-align: center;
}
.lp-orb .brand-mark { width: 38px; height: 38px; border-radius: 10px; }
.lp-orb b { font-size: 13px; font-weight: 700; color: var(--navy); }
.lp-orb span { font-size: 10px; color: #7b8aa5; }
.lp-chip {
  position: absolute;
  z-index: 3;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--landing-line);
  border-radius: 10px;
  box-shadow: 0 16px 34px -22px rgba(11, 31, 58, .45);
}
.lp-chip span { display: block; font-size: 10px; color: #8a99b1; margin-bottom: 3px; }
.lp-chip b { display: block; font-size: 13px; font-weight: 600; color: var(--navy); }
.lp-chip b.ok { color: #0f9d6e; }
.lp-chip.c1 { left: 8%; top: 22%; }
.lp-chip.c2 { right: 7%; top: 12%; }
.lp-chip.c3 { right: 8%; bottom: 14%; }
.lp-visual__foot { border-bottom: none; border-top: 1px solid var(--landing-line); }
.lp-visual__foot div { display: grid; gap: 3px; }
.lp-visual__foot span { font-size: 10px; color: #8a99b1; }
.lp-visual__foot b { font-size: 11px; font-weight: 700; color: var(--navy); letter-spacing: .08em; }

.lp-metrics { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(980px, 100% - 48px); margin: 44px auto 0; flex-wrap: wrap; }
.lp-metric { display: flex; align-items: baseline; gap: 10px; font-size: 13px; color: #7b8aa5; }
.lp-metric b { font-size: 30px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.lp-pills { display: flex; align-items: center; justify-content: center; gap: 12px; width: min(980px, 100% - 48px); margin: 34px auto 0; flex-wrap: wrap; }
.lp-pill { padding: 9px 18px; font-size: 13px; color: #4b5c77; background: #fff; border: 1px solid var(--landing-line); border-radius: 999px; }

.lp-section { padding: 84px 0 96px; background: #fff; }
.lp-section.alt { background: #f8fbff; border-top: 1px solid var(--landing-line); }
.lp-section h2 {
  margin: 18px 0 10px;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--navy);
}
.lp-section h2 em { font-style: normal; color: var(--landing-blue); }
.lp-section > .lp-shell > p { max-width: 640px; font-size: 15px; line-height: 1.9; color: var(--landing-muted); }
.lp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 40px; }
.lp-card {
  padding: 24px 22px;
  background: #fff;
  border: 1px solid var(--landing-line);
  border-radius: 12px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.lp-card:hover { border-color: #c9d8f2; box-shadow: 0 18px 40px -30px rgba(11, 31, 58, .45); transform: translateY(-2px); }
.lp-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  font-size: 17px;
  color: var(--landing-blue);
  background: #eef4ff;
  border-radius: 10px;
}
.lp-card h3 { margin-bottom: 8px; font-size: 16px; font-weight: 700; color: var(--navy); }
.lp-card p { font-size: 13px; line-height: 1.8; color: var(--landing-muted); }

.lp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 36px; }
.lp-plan {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--landing-line);
  border-radius: 14px;
}
.lp-plan.featured { border-color: var(--landing-blue); box-shadow: 0 20px 50px -34px rgba(37, 99, 235, .7); }
.lp-plan h3 { font-size: 16px; font-weight: 700; color: var(--navy); }
.lp-plan .price { font-size: 32px; font-weight: 800; color: var(--navy); }
.lp-plan .price small { font-size: 13px; font-weight: 400; color: var(--landing-muted); }
.lp-plan ul { margin: 6px 0 0; padding: 0; list-style: none; }
.lp-plan li { position: relative; padding-left: 18px; font-size: 13px; line-height: 2; color: var(--landing-muted); }
.lp-plan li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--landing-blue); }

.lp-band {
  position: relative;
  overflow: hidden;
  padding: 64px 0;
  background:
    radial-gradient(700px 300px at 12% 0%, rgba(59, 130, 246, .32), transparent 62%),
    radial-gradient(600px 320px at 88% 100%, rgba(37, 99, 235, .28), transparent 60%),
    linear-gradient(135deg, #0b1f3a, #12305c 60%, #0b1f3a);
}
.lp-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.lp-band h2 { font-size: 32px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.lp-band p { margin-top: 8px; font-size: 14px; line-height: 1.8; color: #a9bedc; }
.lp-band__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lp-band .lp-ghost { color: #e2ebfa; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); }
.lp-band .lp-ghost:hover { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .45); }

.lp-foot { padding: 46px 0 26px; background: #f8fbff; border-top: 1px solid var(--landing-line); }
.lp-foot__inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.lp-foot__brand { display: flex; align-items: center; gap: 12px; }
.lp-foot__brand .brand-mark { width: 34px; height: 34px; border-radius: 9px; }
.lp-foot__brand b { display: block; font-size: 15px; color: var(--navy); }
.lp-foot__brand span { display: block; margin-top: 2px; font-size: 12px; color: #8a99b1; }
.lp-foot__links { display: flex; gap: 56px; flex-wrap: wrap; }
.lp-foot__links div { display: grid; gap: 8px; }
.lp-foot__links b { font-size: 12px; font-weight: 600; color: var(--navy); }
.lp-foot__links a { font-size: 12px; color: var(--landing-muted); }
.lp-foot__links a:hover { color: var(--landing-blue); }
.lp-foot__bottom {
  width: min(1180px, 100% - 48px);
  margin: 26px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--landing-line);
  font-size: 12px;
  line-height: 1.8;
  color: #8a99b1;
  text-align: center;
}

/* ============================== 错误 / 授权失效 ============================== */
.err-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 44px 20px;
  background:
    radial-gradient(900px 480px at 50% 0%, rgba(147, 197, 253, .3), transparent 62%),
    linear-gradient(160deg, #eef5ff 0%, #f8fbff 55%, #eef4ff 100%);
}
.err-box { width: min(680px, 100%); text-align: center; }
.err-img {
  display: block;
  width: min(330px, 74%);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 26px 46px rgba(37, 99, 235, .16));
}
.err-code {
  margin-top: 6px;
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.err-title { margin: 14px 0 8px; font-size: 20px; font-weight: 700; color: var(--navy); }
.err-desc { font-size: 13px; line-height: 1.85; color: var(--landing-muted); }
.err-meta {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: #8a99b1;
  background: #fff;
  border: 1px solid var(--landing-line);
  border-radius: 8px;
}
.err-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.err-actions .lp-cta, .err-actions .lp-ghost { height: 42px; min-width: 140px; font-size: 14px; }

/* ============================== 响应式 ============================== */
/* 侧栏收缩（桌面端，状态由 JS 记入 localStorage） */
@media (min-width: 769px) {
  html.pt-collapsed .pt-side { width: 68px; flex-basis: 68px; padding: 16px 8px 14px; }
  html.pt-collapsed .pt-side__brand { justify-content: center; padding: 6px 4px 14px; }
  html.pt-collapsed .pt-side__brand span:not(.brand-mark) { display: none; }
  html.pt-collapsed .pt-nav__label { display: none; }
  html.pt-collapsed .pt-nav__item { justify-content: center; gap: 0; padding: 0; }
  html.pt-collapsed .pt-nav__item span:not(.ico) { display: none; }
  html.pt-collapsed .pt-side__foot { display: none; }

  html.koi-collapsed .koi-aside { width: 64px; }
  html.koi-collapsed .koi-main { margin-left: 64px; }
  html.koi-collapsed .koi-logo { justify-content: center; padding: 0; }
  html.koi-collapsed .koi-logo span:not(.brand-mark) { display: none; }
  html.koi-collapsed .koi-menu { padding: 6px 8px 20px; }
  html.koi-collapsed .koi-menu__group { display: none; }
  html.koi-collapsed .koi-menu__item { justify-content: center; gap: 0; padding: 0; }
  html.koi-collapsed .koi-menu__item span:not(.ico) { display: none; }
  html.koi-collapsed .koi-menu__foot { display: none; }
}
@media (max-width: 1180px) {
  .lp-hero h1 { font-size: 48px; }
  .lp-hero__inner { gap: 40px; }
  .pt-app .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .lp-hero { padding-top: 110px; }
  .lp-hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .lp-hero h1 { font-size: 40px; }
  .lp-hero__visual { order: 2; }
  .lp-visual__stage { height: 340px; }
  .lp-nav__links { display: none; }
  .lp-section { padding: 56px 0 64px; }
  .lp-section h2 { font-size: 30px; }
  .lp-band h2 { font-size: 26px; }
}
@media (max-width: 768px) {
  .pt-side {
    position: fixed;
    left: 0;
    top: 62px;
    z-index: 30;
    width: 240px;
    flex-basis: 240px;
    transform: translateX(-102%);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 16px 0 44px -28px rgba(11, 31, 58, .55);
    background: #fff;
  }
  .pt-side.is-open { transform: none; }
  .pt-main { padding: 18px 16px 36px; }
  .pt-toggle { display: inline-flex; }
  .pt-head { padding: 0 16px; }
  .pt-topbar { padding: 0 16px; }
}
@media (max-width: 768px) {
  .koi-aside {
    width: 232px;
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 12px 0 40px -24px rgba(11, 31, 58, .5);
  }
  .koi-aside.is-open { transform: none; }
  .koi-main { margin-left: 0; }
  .koi-header { padding: 0 12px; }
  .koi-content { padding: 12px; }
  .koi-menu-toggle { display: inline-flex; }
  .koi-user__name { display: none; }
  .koi-crumb a, .koi-crumb i { display: none; }
  .koi-crumb b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .card { padding: 14px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat .value { font-size: 22px; }
  .page-head { flex-wrap: wrap; align-items: flex-start; }
  .page-head h1 { font-size: 17px; }
  .table-wrap { -webkit-overflow-scrolling: touch; }

  .pt-head__right .pt-link { display: none; }
  .pt-user__name { display: none; }
  .pt-app .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-app .stat { padding: 13px 14px; }
  .pt-app .stat .value { font-size: 20px; }
  .pt-app .card { padding: 16px; }
  .pt-app .page-head h1 { font-size: 17px; }

  .pt-auth__card { padding: 28px 22px 22px; }
  .pt-auth__head h1 { font-size: 24px; }
  .pt-topbar__links a:not(.is-active) { display: none; }

  .lp-hero h1 { font-size: 32px; }
  .lp-actions { flex-direction: column; align-items: stretch; }
  .lp-cta, .lp-ghost { width: 100%; }
  .lp-trust > i { display: none; }
  .lp-metrics { justify-content: flex-start; }
  .lp-band__actions { width: 100%; }
  .lp-foot__links { gap: 32px; }
  .err-code { font-size: 42px; }
}
@media (max-width: 520px) {
  .form-grid > .field { grid-column: auto !important; }
  .stat-grid, .pt-app .stat-grid { gap: 10px; }
  .pt-head { padding: 0 12px; }
  .pt-main { padding: 14px 12px 32px; }
  .pt-brand__text small { display: none; }
  .koi-content { padding: 10px; }
  .koi-tools { gap: 2px; padding: 0 4px; }
  .koi-tool { width: 28px; height: 28px; }
  .pt-auth__card { padding: 24px 16px 18px; }
  .lp-shell { width: calc(100% - 32px); }
  .lp-nav__inner { width: calc(100% - 24px); height: 62px; }
  .lp-hero h1 { font-size: 28px; }
  .err-actions .lp-cta, .err-actions .lp-ghost { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
