/* ============ Life BS Console ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --pri: #3b6ff2; --pri-2:#2f5ad6; --ok:#16a34a; --warn:#d97706; --err:#dc2626;
  --bg:#f3f5f9; --card:#fff; --line:#e6e9f0; --txt:#141b2d; --mut:#8a93a6;
  --side:#111827; --side-txt:#9aa3b5; --radius:12px;
}
html,body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--txt); font-size: 14px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.icon { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.mono { font-family: ui-monospace, Consolas, "Courier New", monospace; }
.dim { color: var(--mut); font-weight: 400; }
.ta-r { text-align: right; }
.w1 { width: 1%; white-space: nowrap; }
.td-pre { white-space: pre-wrap; word-break: break-all; max-width: 320px; }
.hint { color: #4b5563; margin-bottom: 14px; }
.hint-inline { align-self: center; }

/* ---------- 徽章 ---------- */
.badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px;
  line-height: 1.6; white-space: nowrap; border: 1px solid transparent;
}
.badge-green { color: var(--ok); background: #ecfdf3; border-color:#bbe9cc; }
.badge-red   { color: var(--err); background: #fef2f2; border-color:#f6caca; }
.badge-gray  { color: #55607a; background: #f1f3f7; border-color:#e2e6ee; }
.badge-blue  { color: var(--pri); background: #eef3fe; border-color:#d2dffb; }
.badge-purple{ color: #7c3aed; background: #f5f0fe; border-color:#e2d6fb; }
.badge-orange{ color: var(--warn); background: #fff7ed; border-color:#fadfc0; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid #d7dce6;
  background: #fff; color: #2b3348; padding: 7px 13px; border-radius: 8px;
  font-size: 13px; cursor: pointer; transition: .15s; white-space: nowrap;
  line-height: 1.4;
}
.btn:hover { border-color: #b9c2d4; background: #f7f9fc; }
.btn-primary { background: var(--pri); border-color: var(--pri); color: #fff; }
.btn-primary:hover { background: var(--pri-2); border-color: var(--pri-2); }
.btn-sm { padding: 4px 9px; font-size: 12px; border-radius: 7px; }
.btn-block { width: 100%; justify-content: center; padding: 11px; font-size: 15px; }
.btn.danger, .btn-sm.danger { color: var(--err); }
.btn.danger:hover, .btn-sm.danger:hover { background: #fef2f2; border-color: #f0b4b4; }
.btn .icon { width: 15px; height: 15px; }
.btn-sm .icon { width: 13px; height: 13px; }

/* ---------- 布局 ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 226px; flex: none; background: var(--side); color: var(--side-txt);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.side-head { padding: 18px 16px 10px; }
.brand { display: flex; gap: 10px; align-items: center; color: #fff; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--pri), #8b5cf6);
  color:#fff; display:inline-flex; align-items:center; justify-content:center;
  font-weight: 800; font-size: 14px; letter-spacing: .5px; flex:none;
}
.brand-mark.lg { width: 54px; height: 54px; font-size: 20px; border-radius: 14px; }
.brand-mark svg { width: 26px; height: 26px; }
.brand-txt b { display: block; font-size: 15px; line-height: 1.2; }
.brand-txt small { color: var(--side-txt); font-size: 11px; }
.side-nav { padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.side-nav a {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px;
  color: var(--side-txt); font-size: 14px;
}
.side-nav a .icon { width: 17px; height: 17px; }
.side-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.side-nav a.active { color: #fff; background: var(--pri); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 58px; flex: none; background: var(--card); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 22px;
  position: sticky; top: 0; z-index: 20;
}
.top-title h1 { font-size: 17px; font-weight: 700; }
.top-user { display: flex; align-items: center; gap: 8px; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; background: #f3f5f9; padding: 4px 10px 4px 7px; border-radius: 999px; }
.user-chip .uc-txt { font-size: 13px; color: #333; }
.icon-btn {
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; color: #5b6478; border: 1px solid transparent;
}
.icon-btn:hover { background: #f1f4fa; color: #141b2d; }
.icon-btn.danger:hover { color: var(--err); }
.content { padding: 24px 30px; max-width: 1680px; width: 100%; margin: 0 auto; }

/* ---------- 面板 ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 22px -14px rgba(16,24,40,.12); }
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 18px; border-bottom: 1px solid var(--line);
}
.panel-head h3 { font-size: 15px; font-weight: 700; }
.panel-body { padding: 18px; }
.empty { text-align: center; color: var(--mut); padding: 26px 0; }
.empty .empty-ic { width: 34px; height: 34px; opacity: .45; margin-bottom: 6px; }
.empty p { font-size: 13px; }

/* ---------- 表格 ---------- */
.table-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 22px -14px rgba(16,24,40,.12); }
.bulk-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 14px; border-bottom: 1px dashed var(--line); background: #fafbfe; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #eef0f5; vertical-align: middle; }
.table th { background: #fafbfd; font-size: 12px; color: var(--mut); font-weight: 600; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #fafbff; }
.table td small { display: block; color: var(--mut); }
.table td small.dim, .table td b small { display: block; }
.cell-prod { display: inline-flex; align-items: center; gap: 10px; }
.cell-prod.sm { gap: 8px; }
.cell-user { display: inline-flex; flex-direction: column; line-height: 1.35; text-decoration: none; color: inherit; }
.cell-user:hover b { color: var(--pri); text-decoration: underline; }
.cell-user b { font-size: 13.5px; }
.cell-user small { color: var(--mut); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.cell-buyer .dim { font-size: 12.5px; }
.prod-ic {
  --c: #4F6BF6; width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: color-mix(in srgb, var(--c) 14%, white); color: var(--c);
  display: inline-flex; align-items: center; justify-content: center;
}
.cell-prod.sm .prod-ic { width: 26px; height: 26px; border-radius: 7px; }
.cell-prod b, .cell-prod.sm b { display: block; font-size: 14px; line-height: 1.3; }
.cell-prod small, .cell-prod.sm small { color: var(--mut); font-size: 12px; }
.row-ops { white-space: nowrap; }
.row-ops .btn { margin: 1px; }
.inline { display: inline-flex; }
/* 复选框（内容中心全选 / 行选） */
.table input[type=checkbox], #chkAll {
  -webkit-appearance: none; appearance: none; width: 16px; height: 16px;
  border: 1.5px solid #c3cad6; border-radius: 5px; background: #fff; cursor: pointer;
  position: relative; flex: none; vertical-align: middle; transition: border-color .15s, background .15s;
}
.table input[type=checkbox]:hover, #chkAll:hover { border-color: var(--pri); }
.table input[type=checkbox]:focus, #chkAll:focus { outline: 2px solid rgba(59,111,242,.35); outline-offset: 1px; }
.table input[type=checkbox]:checked, #chkAll:checked { background: var(--pri); border-color: var(--pri); }
.table input[type=checkbox]:checked::after, #chkAll:checked::after {
  content: ""; position: absolute; left: 5px; top: 1px; width: 4px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.table th.col-check, .table td.col-check { text-align: center; padding-left: 6px; padding-right: 6px; }
/* 部署授权操作列 */
.dep-ops { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; align-items: center; }
.dep-ops .btn, .dep-ops .inline { margin: 0; }
.dep-ops .op-del { margin-left: 4px; padding-left: 9px; border-left: 1px solid #e6e9f0; }
.td-chg { max-width: 360px; min-width: 200px; vertical-align: top; }
.table td small.clamp3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  white-space: normal;
}
.table td small.clamp3:hover { color: var(--pri); cursor: help; }
.c-sale { color: #e5484d; font-weight: 600; }
.row-cur { background: var(--soft) !important; }
.row-pending { background: #f5f9ff !important; }
.list-meta { padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--mut); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; background: #fafbfe; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: flex-end; padding: 10px 14px; font-size: 13px; color: var(--mut); }
.kv-table { width: 100%; font-size: 13px; }
.kv-table td { padding: 7px 10px; border-bottom: 1px dashed #eceef4; }
.kv-table td:first-child { color: var(--mut); width: 140px; }

/* ---------- 工具栏 / 筛选 ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filters input, .filters select { min-width: 120px; }
input, select, textarea {
  font-family: inherit; font-size: 14px; color: var(--txt);
  border: 1px solid #d4dae5; border-radius: 8px; padding: 8px 11px;
  background: #fff; outline: none; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--pri); box-shadow: 0 0 0 3px rgba(59,111,242,.12); }
.filters input, .filters select { width: auto; }
textarea { resize: vertical; }
.form { display: grid; gap: 14px; }
.grid2 { grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: #374151; }
.field small { color: var(--mut); font-size: 12px; }
.form-actions { display: flex; gap: 10px; align-items: center; }
.form-actions.full { grid-column: 1 / -1; }
.form-actions .btn .icon { width: 15px; height: 15px; }
.check { display: inline-flex; gap: 7px; align-items: center; font-size: 13px; color: #4b5563; }
.check input { width: auto; }
.inp-inline { width: 150px; padding: 5px 9px; font-size: 12px; }

/* ---------- 登录/安装 页 ---------- */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1000px 600px at 15% -10%, #e4ecff 0%, transparent 60%),
    radial-gradient(800px 500px at 110% 110%, #efe9ff 0%, transparent 55%), #f4f6fb;
  padding: 24px;
}
.auth-card {
  width: 440px; max-width: 100%; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 34px 36px 26px; box-shadow: 0 22px 60px -22px rgba(30,50,110,.28);
}
.auth-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.auth-brand-txt h1 { font-size: 22px; line-height: 1.25; }
.auth-brand-txt p { color: var(--mut); font-size: 13px; }
.auth-foot { margin-top: 16px; text-align: center; font-size: 12px; color: var(--mut); }
.alert { border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-size: 13px; }
.alert p { margin: 2px 0; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #f5c6c6; }
.alert-warn  { background: #fff8e6; color: #8a5a0a; border: 1px solid #f3ddad; }
.alert-ok    { background: #f0fdf4; color: #15803d; border: 1px solid #c2e8cc; }
.alert-info  { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.field label.form-check { flex-direction: row; align-items: center; gap: 7px; cursor: pointer; font-weight: 600; }
.field label.form-check input { width: auto; }

/* ---------- 统计卡 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; display: flex; gap: 13px; align-items: center; transition: .15s;
}
.stat-card:hover { box-shadow: 0 10px 26px -14px rgba(20,30,70,.35); transform: translateY(-1px); }
.stat-ic {
  width: 46px; height: 46px; border-radius: 12px; display: inline-flex;
  align-items: center; justify-content: center; flex: none;
}
.stat-ic .icon { width: 23px; height: 23px; }
.stat-ic.blue { background:#e9f0ff; color:#2f5dd2; }
.stat-ic.green { background:#e6f9ee; color:#128a4b; }
.stat-ic.purple { background:#f1ecfe; color:#7c3aed; }
.stat-ic.orange { background:#fff2e4; color:#d97706; }
.stat-card b { font-size: 24px; display: block; line-height: 1.2; }
.stat-card small { color: var(--mut); font-size: 12px; }
.stat-card em { font-style: normal; color: #aeb6c5; }

.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dash-cols > .panel:last-child { grid-column: 1 / -1; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; background:#fff; border-radius: 10px 10px 0 0; }
.tabs a { padding: 11px 18px; font-size: 14px; color: #667; border-bottom: 2px solid transparent; }
.tabs a.on { color: var(--pri); border-bottom-color: var(--pri); font-weight: 600; }
.tab-pill { display: inline-block; margin-left: 6px; padding: 0 7px; font-size: 11px; line-height: 16px; border-radius: 9px; background: var(--pri); color: #fff; vertical-align: 1px; }
/* 次级筛选 tab（如内容中心状态筛选）：胶囊式，与上方下划线主 tab 区分 */
.tabs.sub { margin-top: -8px; margin-bottom: 16px; border-bottom: none; background: transparent; border-radius: 0; gap: 6px; }
.tabs.sub a { padding: 5px 14px; font-size: 13px; border: 1px solid var(--line); border-radius: 999px; color: #667; background: #fff; }
.tabs.sub a:hover { border-color: var(--pri); color: var(--pri); }
.tabs.sub a.on { color: #fff; background: var(--pri); border-color: var(--pri); font-weight: 600; }
.tabs.sub a.on .tab-pill { background: rgba(255,255,255,.9); color: var(--pri); margin-left: 5px; }

/* ---------- 复制行 ---------- */
.copy-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.copy-row .copy-input { flex: 1; min-width: 260px; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; background:#f7f9fc; }

/* ---------- 动态列表(审计 feed) ---------- */
.feed { list-style: none; }
.feed li { display: flex; gap: 11px; padding: 8px 0; border-bottom: 1px dashed #eef0f5; }
.feed li:last-child { border-bottom: none; }
.feed-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; }
.feed-dot.ok { background: var(--ok); }
.feed-dot.no { background: var(--err); }
.feed p { font-size: 13px; }
.feed small { color: var(--mut); }

/* ---------- Toast ---------- */
.flash-wrap { position: fixed; top: 68px; right: 18px; z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.toast {
  display: flex; gap: 9px; align-items: center; background: #141b2d; color: #fff;
  padding: 11px 15px; border-radius: 10px; font-size: 13px; box-shadow: 0 12px 30px -12px rgba(0,0,0,.5);
  animation: toastIn .22s ease; max-width: 360px;
}
.toast .icon { width: 16px; height: 16px; }
.toast-ok .icon { color: #4ade80; }
.toast-error .icon { color: #f87171; }
.toast-warn .icon { color: #fbbf24; }
@keyframes toastIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* ---------- 支付截图 ---------- */
.recv-link { margin-top: 4px; }
.recv-box { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.recv-prev { max-width: 240px; max-height: 170px; border: 1px solid var(--line); border-radius: 8px; background: #f7f9fc; }
.recv-acts { display: flex; flex-direction: column; gap: 6px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-cols { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .app { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; align-items: center; padding: 8px 12px; gap: 10px; }
  .side-nav { flex-direction: row; overflow-x: auto; padding: 4px 0; }
  .side-nav a span { display: none; }
  .side-head { padding: 0; }
  .grid2 { grid-template-columns: 1fr; }
  .content { padding: 14px; }
  .table { min-width: 880px; }
  .top-user .uc-txt { display: none; }
}

/* ============================================================
 * 产品展示页 site.php（对外公开）
 * ============================================================ */
body.site {
  background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 340px);
  color: #1e293b;
  font-family: var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site-wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
.site-top { border-bottom: 1px solid rgba(15,23,42,.07); background: rgba(255,255,255,.72); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 30; }
.site-top .site-wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: #0f172a; text-decoration: none; }
.site-brand .logo { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, #3b6ff2, #8b5cf6); }
.site-brand em { font-style: normal; color: #64748b; font-weight: 600; font-size: 14px; margin-left: 4px; }
.site-top nav { display: flex; gap: 8px; }
.site-intro { padding: 44px 0 26px; }
.site-intro h1 { font-size: 30px; line-height: 1.3; margin: 0 0 10px; }
.site-intro p { color: #64748b; margin: 0; max-width: 720px; line-height: 1.7; }
.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(352px, 1fr)); gap: 20px; padding-bottom: 60px; }
.pcard { background: #fff; border: 1px solid #e5e9f2; border-radius: 16px; box-shadow: 0 6px 20px rgba(30,41,59,.05); display: flex; flex-direction: column; overflow: hidden; transition: transform .16s ease, box-shadow .16s ease; }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(30,41,59,.09); }
.pcard-head { padding: 18px 20px 14px; display: flex; gap: 12px; align-items: flex-start; border-bottom: 1px dashed #eef1f6; }
.pcard-head .ic { width: 46px; height: 46px; min-width: 46px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--c, linear-gradient(135deg,#3b6ff2,#8b5cf6)); font-size: 0; }
.pcard-head .ic svg { width: 24px; height: 24px; }
.pcard-head h2 { margin: 0; font-size: 19px; }
.pcard-head .tags { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.pcard-head .pcard-hd-main { min-width: 0; flex: 1; }
.pcard-head .pcard-hd-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pcard-head .pcard-hd-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.btn-detail { color: var(--pri); border-color: #c0cdf3; }
.btn-detail:hover { background: #eef2ff; border-color: var(--pri); }
.btn-demo { color: #059669; border-color: #bbf7d0; }
.btn-demo:hover { background: #ecfdf5; border-color: #86efac; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #475569; background: #f1f5f9; border-radius: 999px; padding: 3px 9px; }
.tag.green { color: #15803d; background: #dcfce7; }
.tag.hot { color: #e5484d; background: #ffe4e6; font-weight: 700; }
.plan .pn .tag { margin-left: 6px; }
.plan.has-sale { border-color: #fecdd3; background: #fff6f7; }
.plan.has-sale .pn { color: #e5484d; }
.pcard-body { padding: 14px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.p-desc { margin: 0; color: #475569; line-height: 1.7; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.plans { display: flex; flex-direction: column; gap: 10px; }
.plan { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; border: 1px solid #e8ecf3; border-radius: 12px; padding: 12px 14px; background: #fbfcfe; }
.plan .pn { font-weight: 700; font-size: 14.5px; }
.plan .pp { color: #94a3b8; font-size: 12.5px; grid-column: 1; }
.plan .plan-acts { grid-row: 1 / span 2; grid-column: 2; display: flex; flex-direction: column; gap: 6px; align-items: stretch; justify-content: center; }
.plan .buy { text-decoration: none; font-size: 13px; font-weight: 700; color: #fff; border-radius: 10px; padding: 10px 14px; white-space: nowrap; text-align: center;
  background: linear-gradient(135deg, #3b6ff2, #6d5df6); box-shadow: 0 4px 10px rgba(59,111,242,.25); }
.plan .buy:hover { filter: brightness(1.06); }
.plan .buy-ask { text-align: center; font-size: 12.5px; color: #64748b; text-decoration: none; }
.plan .buy-ask:hover { color: #3b6ff2; text-decoration: underline; }
.plan-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; grid-column: 1; }
.plan-price .now { font-size: 20px; font-weight: 800; color: #e5484d; }
.plan-price .now.no-sale { color: #0f172a; }
.plan-price .old { color: #94a3b8; font-size: 13px; }
.plan-price .unit { font-size: 12px; color: #94a3b8; }
.plan-price .peq { font-size: 12px; color: #94a3b8; margin-left: 2px; }
.rate-hint { margin: 8px 0 0; font-size: 13px; color: #64748b; }
.rate-hint a { color: #3b6ff2; text-decoration: none; }
.rate-hint a:hover { text-decoration: underline; }
.plan .note { grid-column: 1 / -1; font-size: 12px; color: #64748b; margin-top: 2px; }
.no-plan { color: #94a3b8; font-size: 13px; padding: 6px 0; }
.updates { border-top: 1px dashed #eef1f6; padding-top: 12px; }
.updates h4 { margin: 0 0 8px; font-size: 13px; color: #64748b; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.updates ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.updates li { font-size: 13px; }
.updates .vn { font-weight: 700; color: #3b6ff2; margin-right: 8px; }
.updates .vd { color: #94a3b8; font-size: 12px; }
.updates p { margin: 3px 0 0; color: #64748b; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.updates .none { color: #cbd5e1; }
.site-empty { padding: 40px 0 90px; text-align: center; color: #94a3b8; }
.site-foot { border-top: 1px solid rgba(15,23,42,.07); padding: 22px 0; color: #94a3b8; font-size: 13px; margin-top: auto; }
.site-foot .site-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-foot a { color: #64748b; }
.friend-links { margin-top: 10px; font-size: 13px; line-height: 1.9; }
.friend-links .fl-label { opacity: .7; margin-right: 6px; }
.friend-links a { margin-right: 16px; }
.friend-links a:hover { text-decoration: underline; color: #334155; }

/* ---------- 首页卡片：历史版本入口 ---------- */
.updates .upd-more {
  margin-top: 10px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: #3b6ff2; text-decoration: none;
}
.updates .upd-more:hover { text-decoration: underline; }
.updates .upd-more .icon { width: 14px; height: 14px; }
.updates .upd-more em {
  font-style: normal; font-size: 11px; color: #fff; background: #3b6ff2;
  border-radius: 999px; padding: 1px 7px; font-weight: 600; line-height: 1.5;
}

/* ---------- 版本更新日志 changelog.php ---------- */
body.clg-page { background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 300px); }
.clg-back { display: inline-block; margin: 22px 0 2px; color: #64748b; font-size: 13.5px; text-decoration: none; }
.clg-back:hover { color: #3b6ff2; }
.clg-head { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0 22px; }
.clg-head .clg-ic { width: 54px; height: 54px; min-width: 54px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 0; }
.clg-head .clg-ic svg { width: 28px; height: 28px; }
.clg-head h1 { margin: 2px 0 6px; font-size: 23px; line-height: 1.3; }
.clg-head p { margin: 0; color: #64748b; line-height: 1.8; max-width: 760px; }
.clg-list { display: flex; flex-direction: column; gap: 12px; padding-bottom: 60px; }
.clg-item {
  background: #fff; border: 1px solid #e5e9f2; border-radius: 14px; padding: 15px 20px;
  box-shadow: 0 4px 14px rgba(30,41,59,.04);
}
.clg-item.cur { border-color: #b9d1fb; box-shadow: 0 6px 18px rgba(59,111,242,.10); }
.clg-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.clg-ver { font-size: 16px; font-weight: 800; color: #3b6ff2; }
.clg-item.cur .clg-ver { color: #15803d; }
.clg-time { color: #94a3b8; font-size: 12.5px; }
.clg-chg { margin-top: 8px; color: #475569; font-size: 14px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.clg-empty {
  background: #fff; border: 1px dashed #d7dce6; border-radius: 14px;
  padding: 44px 20px; text-align: center; color: #94a3b8; margin-bottom: 60px; font-size: 14px;
}
.clg-empty .btn { margin-top: 4px; }
@media (max-width: 720px) {
  .clg-head { flex-direction: column; }
  .clg-head h1 { font-size: 20px; }
}

/* ---------- 通用弹窗（购买咨询等） ---------- */
.dlg-root { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.dlg-root.open { display: flex; }
.dlg-mask { position: absolute; inset: 0; background: rgba(15,23,42,.45); backdrop-filter: blur(3px); }
.dlg-card { position: relative; background: #fff; width: min(440px, 100%); border-radius: 16px; padding: 28px 26px 24px;
  text-align: center; box-shadow: 0 24px 60px rgba(15,23,42,.28); animation: dlgIn .18s ease-out; }
@keyframes dlgIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.dlg-ic { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(135deg, #3b6ff2, #8b5cf6); }
.dlg-ic svg { width: 26px; height: 26px; }
.dlg-card h3 { margin: 0 0 8px; font-size: 19px; }
.dlg-lead { margin: 0 auto; max-width: 360px; color: #475569; line-height: 1.8; }
.dlg-lead b { color: #dc2626; }
.dlg-ctx { display: none; margin: 12px auto 0; max-width: 380px; font-size: 13px; color: #3b6ff2; font-weight: 700;
  background: #eef3fe; border: 1px solid #d2dffb; border-radius: 8px; padding: 7px 12px; }
.dlg-mail-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px 0 10px;
  background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px; padding: 12px; }
.dlg-mail { font-size: 17px; font-weight: 700; color: #0f172a; }
.dlg-copy { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #3b6ff2; border: 1px solid #cbd8fb;
  background: #fff; border-radius: 8px; padding: 5px 10px; cursor: pointer; }
.dlg-copy:hover { background: #eef3fe; }
.dlg-tip { margin: 4px auto 16px; max-width: 380px; font-size: 12.5px; line-height: 1.7; }
.dlg-wx { margin: 14px auto 0; max-width: 380px; text-align: center; }
.dlg-wx > span { display: block; font-size: 13px; color: #64748b; font-weight: 600; margin-bottom: 6px; }
.dlg-wx img { width: 168px; height: 168px; object-fit: contain; background: #fff; border: 1px solid #e5e9f2; border-radius: 12px; padding: 8px; box-shadow: 0 4px 12px rgba(30,41,59,.06); }
.dlg-actions { display: flex; justify-content: center; gap: 10px; }
.dlg-actions .btn { padding: 8px 16px; }
@media (max-width: 720px) {
  .dlg-card { padding: 24px 18px 20px; }
  .dlg-mail { font-size: 15px; }
}
@media (max-width: 720px) {
  .site-grid { grid-template-columns: 1fr; }
  .site-intro h1 { font-size: 24px; }
  .site-top .site-wrap { height: 56px; }
  .site-top nav { gap: 6px; }
  .site-top nav a span { display: none; }
  .site-top nav .btn { padding: 7px; border-radius: 8px; }
  .site-top nav .btn .icon { width: 18px; height: 18px; }
}

/* ---------- 我的授权 my.php ---------- */
.alert-ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.alert-ok p { margin: 0 0 4px; }
body.mypage { background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 320px); }
.my-topbar { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.my-box { background: #fff; border: 1px solid #e5e9f2; border-radius: 16px; box-shadow: 0 8px 26px rgba(30,41,59,.06); padding: 26px 28px; margin-bottom: 40px; }
.my-box h1 { margin: 0 0 8px; font-size: 21px; }
.my-sub { margin: 0 0 18px; line-height: 1.8; }
.my-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.my-head h1 { margin: 0 0 4px; }
.my-card { border: 1px solid #e8ecf3; border-radius: 14px; background: #fbfcfe; padding: 16px 18px; }
.my-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.my-card-head .prod-ic { width: 42px; height: 42px; border-radius: 12px; font-size: 0; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--c, #4F6BF6); }
.my-pname { font-size: 17px; margin-right: 8px; }
.kv { display: grid; grid-template-columns: 118px 1fr; gap: 9px 14px; font-size: 14px; }
.kv .k { color: #94a3b8; }
.kv .v { color: #1e293b; word-break: break-all; }
.kv .v.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.my-acts { margin-top: 18px; }
.my-acts-tip { color: #64748b; font-size: 13px; margin-bottom: 10px; }
.my-btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 登录两步验证 ---------- */
.auth-tip { border: 1px solid #dbeafe; background: #eff6ff; border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }
.auth-tip p { margin: 0 0 6px; }
.auth-tip p:last-child { margin-bottom: 0; }
.auth-alt { display: flex; gap: 10px; justify-content: center; margin-top: 14px; align-items: center; }

/* ============================================================
 * 首页（site.php）UI 优化：参考 mTab 的清爽卡片式布局，纯色极简风格
 * ============================================================ */
body.site { background: #f6f8fc; }   /* 纯色底，避免渐变 */
/* Hero 区 */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 56px 0 30px; }
.hero-badge { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--pri); background: #eef3fe; border: 1px solid #d6e1fb; border-radius: 999px; padding: 4px 12px; margin-bottom: 16px; }
.hero h1 { font-size: 38px; line-height: 1.22; margin: 0 0 14px; letter-spacing: -.5px; color: #0f172a; }
.hero-lead { color: #475569; font-size: 15.5px; line-height: 1.8; margin: 0 0 22px; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.btn-lg { padding: 11px 20px; font-size: 15px; border-radius: 10px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 0; margin: 0; }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: #475569; }
.hero-points svg { width: 17px; height: 17px; color: var(--ok); }
/* Hero 右侧预览（纯 CSS 仿仪表盘，无需图片） */
.hero-visual { background: #fff; border: 1px solid #e6eaf2; border-radius: 18px; box-shadow: 0 18px 44px -22px rgba(30,41,59,.28); overflow: hidden; }
.preview-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid #eef1f6; background: #fafbff; }
.preview-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d7deea; }
.preview-bar span:first-child { background: #f0a3a3; }
.preview-body { padding: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ptile { border: 1px solid #eef1f6; border-radius: 12px; padding: 14px 10px; text-align: center; background: #fbfcfe; }
.ptile .pic { width: 34px; height: 34px; border-radius: 10px; margin: 0 auto 8px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.ptile .pt-name { font-size: 12px; color: #334155; font-weight: 600; }
.ptile .pt-sub { font-size: 11px; color: #94a3b8; margin-top: 2px; }

/* 区块标题 */
.sec-head { margin: 8px 0 18px; }
.sec-head h2 { font-size: 22px; margin: 0 0 6px; color: #0f172a; }
.sec-head p { margin: 0; color: #64748b; font-size: 14px; }

/* 特性卡片 */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 14px 0 8px; }
.feat { background: #fff; border: 1px solid #e6eaf2; border-radius: 14px; padding: 18px; transition: .16s; }
.feat:hover { box-shadow: 0 10px 26px -16px rgba(30,41,59,.3); transform: translateY(-2px); }
.feat .f-ic { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 12px; }
.feat .f-ic svg { width: 22px; height: 22px; }
.feat h3 { margin: 0 0 6px; font-size: 15.5px; color: #1e293b; }
.feat p { margin: 0; color: #64748b; font-size: 13px; line-height: 1.7; }

/* 获取授权步骤 */
.how { padding: 30px 0 10px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: #fff; border: 1px solid #e6eaf2; border-radius: 14px; padding: 20px; position: relative; }
.step .num { width: 30px; height: 30px; border-radius: 50%; background: var(--pri); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; font-size: 16px; color: #1e293b; }
.step p { margin: 0; color: #64748b; font-size: 13.5px; line-height: 1.75; }

.products { padding: 34px 0 10px; }

/* ---------- 我的授权 my.php（多授权卡片列表） ---------- */
body.mypage { background: #f6f8fc; }
.my-login { max-width: 480px; margin: 48px auto 60px; }
.my-tip { margin-top: 16px; font-size: 12.5px; line-height: 1.7; color: #64748b; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px; padding: 10px 12px; }
.my-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 16px; padding-bottom: 50px; }
.dep-card { background: #fff; border: 1px solid #e5e9f2; border-radius: 16px; box-shadow: 0 6px 20px rgba(30,41,59,.05); padding: 18px 20px; transition: .16s; }
.dep-card:hover { box-shadow: 0 12px 30px rgba(30,41,59,.09); }
.dep-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.dep-card-tit { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dep-card-tit b { font-size: 17px; color: #0f172a; }
.dom-edit { margin-top: 14px; border-top: 1px dashed #eef1f6; padding-top: 14px; }
.dom-edit-tip { font-size: 13px; line-height: 1.7; color: #64748b; margin: 0 0 12px; background: #fff8ec; border: 1px solid #f3e2bd; border-radius: 9px; padding: 8px 11px; }
.dom-edit-row { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.inp-code { max-width: 200px; letter-spacing: 3px; font-weight: 700; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 36px 0 18px; gap: 26px; }
  .hero h1 { font-size: 30px; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .my-list { grid-template-columns: 1fr; }
  .preview-body { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .feat-grid { grid-template-columns: 1fr; }
}

/* ===== v3.18.3 产品详情页 ===== */
.pd-main { padding: 24px 0 60px; }
.pd-back { display:inline-flex; align-items:center; gap:6px; color:var(--mut); font-size:13px; margin-bottom:16px; }
.pd-back:hover { color:var(--pri); }
.pd-alert { background:#fff4e5; border:1px solid #f3d5a5; color:#8a5a00; border-radius:10px; padding:10px 14px; font-size:13px; margin-bottom:16px; }
.pd-cover { margin-bottom:22px; border-radius:14px; overflow:hidden; border:1px solid var(--line); background:var(--card); }
.pd-cover img { display:block; width:100%; max-height:360px; object-fit:cover; }
.pd-hero { display:flex; gap:16px; align-items:flex-start; background:var(--card); border:1px solid var(--line); border-radius:14px; padding:22px; }
.pd-ic { width:52px; height:52px; border-radius:14px; display:flex; align-items:center; justify-content:center; color:#fff; flex:none; }
.pd-ic .icon { width:26px; height:26px; }
.pd-hero-copy h1 { font-size:24px; margin:0 0 8px; }
.pd-hero-copy .tags { display:flex; gap:6px; flex-wrap:wrap; margin-top:6px; }
.pd-desc { color:#5b6478; font-size:14px; line-height:1.7; margin:8px 0 0; }
.pd-demo-btn { margin-top:16px; }
.pd-sec { margin-top:28px; background:var(--card); border:1px solid var(--line); border-radius:14px; padding:22px; }
.pd-h1 { display:flex; align-items:center; gap:8px; font-size:22px; margin:0 0 10px; }
.pd-h2 { display:flex; align-items:center; gap:8px; font-size:17px; margin:0 0 16px; }
.pd-h2 .icon { width:18px; height:18px; color:var(--pri); }
.pd-rich { font-size:14px; line-height:1.8; color:#333c50; }
.pd-rich h2 { font-size:19px; margin:22px 0 10px; }
.pd-rich h3 { font-size:16px; margin:18px 0 8px; }
.pd-rich h4 { font-size:15px; margin:16px 0 8px; }
.pd-rich p { margin:0 0 12px; }
.pd-rich ul, .pd-rich ol { margin:0 0 14px; padding-left:22px; }
.pd-rich li { margin-bottom:8px; }
.pd-rich img { max-width:100%; height:auto; border-radius:10px; border:1px solid var(--line); margin:10px 0; }
.pd-rich a { color:var(--pri); text-decoration:underline; }
.pd-rich blockquote { margin:0 0 14px; padding:10px 14px; background:#f7f9fc; border-left:3px solid var(--pri); border-radius:0 8px 8px 0; color:#5b6478; }
.pd-rich table { width:100%; border-collapse:collapse; margin:0 0 14px; font-size:13px; }
.pd-rich th, .pd-rich td { border:1px solid var(--line); padding:8px 10px; text-align:left; }
.pd-rich th { background:#f7f9fc; }
.pd-rich code { background:#f2f4f8; padding:2px 5px; border-radius:4px; font-size:13px; }
.pd-rich hr { border:0; border-top:1px solid var(--line); margin:18px 0; }
.pd-notes { background:#fffaf0; }
.pd-notes .pd-rich { color:#5b4a2a; }
.pd-plans { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:14px; }
.pd-plan { border:1px solid var(--line); border-radius:12px; padding:16px; background:#fbfcfe; display:flex; flex-direction:column; gap:8px; }
.pd-plan.has-sale { border-color:#f3c9c9; background:#fff7f7; }
.pd-plan .pn { font-weight:600; font-size:14px; }
.pd-plan .pp { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
.pd-plan .now { font-size:24px; font-weight:700; color:var(--err); }
.pd-plan .now.no-sale { color:var(--txt); }
.pd-plan .old { color:var(--mut); font-size:13px; }
.pd-plan .peq { font-size:12px; color:var(--mut); }
.pd-plan-acts { margin-top:auto; display:flex; flex-direction:column; gap:6px; }
.pd-plan .buy { text-align:center; background:var(--pri); color:#fff; border-radius:9px; padding:9px 12px; font-size:13px; text-decoration:none; }
.pd-plan .buy:hover { background:var(--pri-2); }
.pd-plan .buy-ask { text-align:center; font-size:12.5px; color:var(--mut); text-decoration:none; }
.pd-plan .buy-ask:hover { color:var(--pri); text-decoration:underline; }
.pd-cta { margin-top:28px; background:#f5f8ff; border:1px solid #dbe4fb; border-radius:14px; padding:22px; display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.pd-cta h3 { font-size:17px; margin:0 0 6px; }
.pd-cta-act { display:flex; gap:10px; flex-wrap:wrap; }
.pd-link { color:inherit; text-decoration:none; }
.pd-link:hover { color:var(--pri); text-decoration:underline; }

/* ===== 产品详情 · 历史版本 ===== */
.pd-ver-list { list-style:none; margin:14px 0 0; padding:0; display:flex; flex-direction:column; gap:10px; }
.pd-ver-item { border:1px solid var(--line); border-radius:10px; padding:10px 12px; background:var(--card); }
.pd-ver-head { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:13.5px; }
.pd-ver-head b { color:var(--txt); font-size:14px; }
.pd-ver-tag { font-size:11.5px; color:#15803d; background:#dcfce7; border:1px solid #bbf7d0; padding:1px 7px; border-radius:999px; }
.pd-ver-mut { font-size:12px; color:var(--mut); }
.pd-ver-log { margin-top:5px; font-size:13px; color:#475569; line-height:1.7; white-space:pre-wrap; }

/* ===== v3.18.3 为爱发电 ===== */
.donate-band { margin-top:34px; background:var(--card); border:1px solid var(--line); border-radius:16px; padding:24px; }
.dband-top { display:flex; align-items:center; gap:16px; }
.dband-ic { width:46px; height:46px; border-radius:13px; background:#ec4899; color:#fff; display:flex; align-items:center; justify-content:center; flex:none; }
.dband-ic .icon { width:24px; height:24px; }
.dband-copy { flex:1; }
.dband-copy h2 { font-size:19px; margin:0 0 4px; }
.dband-copy p { margin:0; color:#5b6478; font-size:14px; }
.dband-sum { margin-top:4px !important; color:#ec4899 !important; font-size:13px !important; }
.dband-notice, .donate-notice { display:flex; gap:10px; align-items:flex-start; background:#fff8ec; border:1px solid #f3e2bd; border-radius:11px; padding:12px 14px; }
.dband-notice .icon, .donate-notice .icon { width:18px; height:18px; color:var(--warn); flex:none; margin-top:1px; }
.dband-notice b, .donate-notice b { display:block; font-size:13px; color:#8a5a00; margin-bottom:2px; }
.dband-notice span, .donate-notice span { font-size:13px; color:#8a6a20; line-height:1.6; }
.dband-qrs { display:flex; gap:18px; margin-top:18px; flex-wrap:wrap; }
.dband-qr { width:132px; text-align:center; color:var(--mut); font-size:12px; }
.dband-qr img { width:120px; height:120px; object-fit:contain; background:#fff; border:1px solid var(--line); border-radius:12px; padding:6px; }
.dband-qr span { display:block; margin-top:6px; }
.dband-qr:hover img { border-color:var(--pri); }
.donate-hero .pd-ic { background:#ec4899; }
.donate-sum { margin:8px 0 0 !important; font-size:14px; color:#5b6478; }
.donate-sum b { color:#ec4899; }
.donate-notice { margin-bottom:24px; padding:14px 16px; border-radius:12px; }
.donate-qrs { display:flex; gap:24px; flex-wrap:wrap; }
.donate-qr { text-align:center; }
.donate-qr img { width:180px; height:180px; object-fit:contain; background:#fff; border:1px solid var(--line); border-radius:14px; padding:8px; }
.donate-qr .q-name { display:block; margin-top:8px; font-size:13px; color:var(--mut); }
.donate-table-wrap { overflow-x:auto; }
.donate-table { width:100%; border-collapse:collapse; font-size:13px; }
.donate-table th, .donate-table td { padding:10px 12px; border-bottom:1px solid var(--line); text-align:left; white-space:nowrap; }
.donate-table th { background:#f7f9fc; color:#5b6478; font-weight:500; }
.donate-table td.num, .donate-table th.num { text-align:right; }
.donate-table .dn-name { font-weight:500; color:var(--txt); }
.donate-table .dn-mail, .donate-table .dn-time, .donate-table .dn-msg { color:var(--mut); }
.donate-table .dn-amt { color:#ec4899; font-weight:600; }
.donate-table .dn-domain a { color:var(--pri); }
.donate-table tbody tr:hover { background:#fafbfe; }
.donate-off { text-align:center; padding:40px 0; }
.qr-preview { margin-bottom:8px; }
.qr-preview img { width:120px; height:120px; object-fit:contain; background:#fff; border:1px solid var(--line); border-radius:10px; padding:6px; }
.qr-remove-row { display:flex; gap:10px; margin-top:14px; flex-wrap:wrap; }

/* 内容中心收录标准 */
.rules { padding: 34px 0 4px; }
.rule-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.rule-cat { background: #fff; border: 1px solid #e6eaf2; border-radius: 14px; padding: 20px 22px; }
.rc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.rc-ic { width: 34px; height: 34px; border-radius: 10px; background: #eef2ff; color: var(--pri); display: flex; align-items: center; justify-content: center; flex: none; }
.rc-ic .icon { width: 18px; height: 18px; }
.rc-head h3 { margin: 0; font-size: 16px; color: #1e293b; }
.rule-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.rule-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; line-height: 1.75; color: #475569; }
.rc-bad { flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: #fee2e2; color: #dc2626; font-size: 13px; font-weight: 700; line-height: 1; display: flex; align-items: center; justify-content: center; }
.rule-foot { margin: 14px 0 0; font-size: 12.5px; line-height: 1.7; color: #64748b; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px; padding: 10px 13px; }

/* 后台：收录标准分组编辑 */
.rule-group { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; background: #fbfcfe; }
.rg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.rg-no { font-size: 13px; font-weight: 600; color: #374151; }
.rg-fields { gap: 12px; }
.rule-group textarea { font-size: 13px; line-height: 1.8; }

/* ===== v3.18.3 产品详情页：功能亮点 / 模块清单 ===== */
.pd-sub { margin:-6px 0 16px; font-size:13px; color:var(--mut); }
.pd-feats { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:14px; }
.pd-feat { display:flex; gap:12px; align-items:flex-start; border:1px solid var(--line); border-radius:12px; padding:15px 16px; background:#fbfcfe; }
.pd-feat:hover { border-color:#c9d4f5; }
.pdf-ic { width:36px; height:36px; border-radius:10px; background:#eef2ff; color:var(--pri); display:flex; align-items:center; justify-content:center; flex:none; }
.pdf-ic .icon { width:18px; height:18px; }
.pdf-txt h3 { margin:0 0 4px; font-size:15px; color:#1e293b; }
.pdf-txt p { margin:0; font-size:13px; line-height:1.7; color:#5b6478; }
.pd-mods { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:12px; }
.pd-mod { border:1px solid var(--line); border-radius:12px; padding:14px 16px; background:#fff; }
.pdm-top { display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.pdm-top h3 { margin:0; font-size:15px; color:#1e293b; }
.pdm-tag { flex:none; font-size:11px; padding:2px 7px; border-radius:20px; background:#eef2ff; color:var(--pri); }
.pd-mod p { margin:0; font-size:13px; line-height:1.7; color:#5b6478; }

/* 后台：功能 / 模块行编辑器 */
.pf-tip { font-size:12.5px; color:var(--mut); line-height:1.7; margin-bottom:10px; }
.pf-h2 { font-size:14px; font-weight:600; color:#374151; margin:22px 0 8px; padding-top:16px; border-top:1px solid var(--line); }
.pf-wrap { display:grid; gap:8px; }
.pf-row { display:grid; grid-template-columns:170px minmax(150px,1fr) minmax(180px,2fr) auto; gap:8px; align-items:center; }
.pf-row.pm-row { grid-template-columns:minmax(150px,1fr) 150px minmax(180px,2fr) auto; }
.pf-actions { margin-top:10px; }

@media (max-width: 640px) {
  .rule-cats { grid-template-columns: 1fr; }
  .pd-hero { flex-direction:column; }
  .pd-cta { flex-direction:column; align-items:flex-start; }
  .dband-top { flex-direction:column; align-items:flex-start; }
  .donate-qr img { width:140px; height:140px; }
  .pd-plans { grid-template-columns:1fr; }
  .pd-feats, .pd-mods { grid-template-columns:1fr; }
  .pf-row, .pf-row.pm-row { grid-template-columns:1fr; }
}

/* ------------------------------------------------------------------
   用户门户（portal/）—— v3.19.0
   ------------------------------------------------------------------ */
.portal-wrap { padding: 26px 20px 40px; }
.pt-head { margin-bottom: 18px; }
.pt-head h1 { font-size: 22px; font-weight: 600; color: var(--txt); margin: 0 0 6px; }
.pt-head p { margin: 0; color: var(--mut); font-size: 13.5px; }

.pt-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 16px; }
.pt-h2 { font-size: 15px; font-weight: 600; color: var(--txt); margin: 0 0 12px; }

.pt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pt-note { color: var(--mut); font-size: 12.5px; line-height: 1.7; margin: 10px 0 0; }
.pt-note a, .pt-foot a, .pt-link { color: #3b6ff2; text-decoration: none; }
.pt-note a:hover, .pt-foot a:hover, .pt-link:hover { text-decoration: underline; }

/* 提示条 */
.pt-alert { display: flex; gap: 8px; align-items: flex-start; padding: 11px 14px; border-radius: 10px; font-size: 13px; line-height: 1.6; margin-bottom: 12px; }
.pt-alert svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.pt-alert.ok   { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.pt-alert.bad  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.pt-alert.warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.pt-alert.info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.pt-alert a { color: inherit; font-weight: 600; }

/* 登录/注册卡片 */
.pt-auth { display: flex; justify-content: center; padding: 10px 0 30px; }
.pt-auth .pt-card { width: min(460px, 100%); }
.pt-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.pt-tabs a { padding: 9px 16px; font-size: 14px; color: var(--mut); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.pt-tabs a.on { color: #3b6ff2; border-bottom-color: #3b6ff2; font-weight: 500; }

/* 表单 */
.pt-form { display: grid; gap: 14px; }
.pt-field { display: grid; gap: 6px; }
.pt-field > span { font-size: 13px; color: #4b5563; font-weight: 500; }
.pt-field > span em { color: #e11d48; font-style: normal; margin-left: 2px; }
.pt-field input { height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; background: #fff; color: var(--txt); }
.pt-field input:focus { outline: none; border-color: #3b6ff2; box-shadow: 0 0 0 3px rgba(59,111,242,.12); }
.pt-field input:disabled { background: #f3f5f9; color: var(--mut); }
.pt-cap { display: flex; gap: 10px; align-items: center; }
.pt-cap input { flex: 1; }
.pt-cap-img { height: 40px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; background: #f1f5f9; }
.pt-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #4b5563; }
.pt-check input { margin-top: 3px; }
/* 新增插件：适用产品勾选卡片网格 */
.pt-prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 2px; }
.pt-prod {
    display: flex; align-items: center; gap: 8px; cursor: pointer;
    padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
    background: #fff; font-size: 13.5px; color: #334155; transition: border-color .15s, background .15s, box-shadow .15s;
}
.pt-prod input { margin: 0; }
.pt-prod-name { font-weight: 500; }
.pt-prod:hover { border-color: #c7d2fe; background: #fafbff; }
.pt-prod:has(input:checked) { border-color: #3b6ff2; background: #eef2ff; box-shadow: 0 0 0 3px rgba(59,111,242,.12); color: #1e3a8a; }
.pt-foot { margin: 16px 0 0; text-align: center; font-size: 13px; color: var(--mut); }
.pt-tip { background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px; padding: 11px 13px; font-size: 13px; line-height: 1.7; color: #475569; margin: 0 0 14px; }
.pt-inline-form { margin: 0; }
.pt-link { background: none; border: none; padding: 0; font-size: inherit; cursor: pointer; color: #3b6ff2; }

/* 用户 ID 卡 */
.pt-uid { text-align: center; padding: 24px 20px; }
.pt-uid-label { font-size: 13px; color: var(--mut); }
.pt-uid-num { font-size: 40px; font-weight: 600; letter-spacing: 2px; color: var(--txt); margin: 6px 0 8px; font-variant-numeric: tabular-nums; }
.pt-uid-tip { font-size: 12.5px; color: var(--mut); line-height: 1.7; }

/* 统计 */
.pt-stat { display: grid; gap: 12px; }
.pt-stat-item { display: flex; align-items: baseline; gap: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.pt-stat-item:last-child { border-bottom: none; padding-bottom: 0; }
.pt-stat-item span { width: 72px; flex: none; font-size: 13px; color: var(--mut); }
.pt-stat-item b { font-size: 20px; font-weight: 600; color: var(--txt); }
.pt-stat-item em { font-style: normal; font-size: 12px; color: var(--mut); margin-left: auto; }

/* 快捷入口 */
.pt-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.pt-quick a { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; text-decoration: none; color: inherit; background: #fff; }
.pt-quick a:hover { border-color: #3b6ff2; background: #f8faff; }
.pt-quick svg { width: 20px; height: 20px; color: #3b6ff2; }
.pt-quick b { font-size: 14px; font-weight: 600; }
.pt-quick span { font-size: 12px; color: var(--mut); line-height: 1.6; }

/* 授权卡片 */
.pt-dep { padding: 18px 20px; }
.pt-dep-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pt-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
.pt-dep-t { display: grid; gap: 2px; flex: 1; min-width: 0; }
.pt-dep-t b { font-size: 15px; }
.pt-dep-t span { font-size: 13px; color: var(--mut); word-break: break-all; }
.pt-tag { font-size: 12px; padding: 3px 9px; border-radius: 20px; flex: none; }
.pt-tag.ok { background: #ecfdf5; color: #065f46; }
.pt-tag.bad { background: #f3f5f9; color: var(--mut); }
.pt-dep-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 14px; padding: 12px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.pt-dep-meta dt { font-size: 12px; color: var(--mut); margin-bottom: 3px; }
.pt-dep-meta dd { margin: 0; font-size: 13px; color: #374151; word-break: break-all; }
.pt-dep-meta dd.mono { font-family: var(--mono, monospace); font-size: 12px; }
.pt-dep-meta dd .pt-tag { display: inline-block; margin-left: 6px; font-size: 11px; padding: 2px 7px; vertical-align: 1px; }
.pt-ops { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-domain { padding: 14px; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 11px; }

/* 小列表 */
.pt-mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pt-mini-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.pt-mini-list b { font-weight: 500; }
.pt-mini-list em { font-style: normal; color: var(--mut); font-size: 12px; margin-left: auto; }
.pt-ok-line { display: flex; align-items: center; gap: 6px; color: #065f46; font-size: 13.5px; }
.pt-ok-line svg { width: 16px; height: 16px; }

/* 协议弹窗 */
.pt-modal { display: none; position: fixed; inset: 0; z-index: 90; background: rgba(15,23,42,.5); padding: 24px; overflow: auto; }
.pt-modal.open { display: flex; align-items: flex-start; justify-content: center; }
.pt-modal-box { background: #fff; border-radius: 14px; width: min(720px, 100%); display: flex; flex-direction: column; max-height: 86vh; }
.pt-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.pt-modal-body { padding: 18px 20px; overflow: auto; }
.pt-modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); text-align: right; }
.pt-agree { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: inherit; font-size: 13px; line-height: 1.85; color: #374151; }
.pt-x { background: none; border: none; font-size: 24px; line-height: 1; color: var(--mut); cursor: pointer; padding: 0 4px; }

@media (max-width: 760px) {
  .pt-grid, .pt-quick { grid-template-columns: 1fr; }
  .pt-bal { grid-template-columns: 1fr; }
  .pt-dep-meta { grid-template-columns: repeat(2, 1fr); }
  .pt-uid-num { font-size: 32px; }
}

/* ------------------------------------------------------------------
   站点统计（stats.php）—— v3.19.0
   ------------------------------------------------------------------ */
.chart { display: block; width: 100%; height: 210px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.two-col > .card { margin-bottom: 0; }

.bar-list { list-style: none; margin: 0; padding: 0; }
.bar-list li { display: grid; grid-template-columns: minmax(88px, 36%) 1fr 92px; gap: 10px; align-items: center; padding: 6px 0; font-size: 13px; }
.bl-t { color: #374151; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-bar { height: 8px; background: #eef1f6; border-radius: 6px; overflow: hidden; }
.bl-bar i { display: block; height: 100%; background: #3b6ff2; border-radius: 6px; }
.bl-n { text-align: right; color: #111827; font-variant-numeric: tabular-nums; }
.bl-n em { font-style: normal; color: #9aa4b2; font-size: 12px; margin-left: 4px; }

.code-box { background: #0f172a; color: #e2e8f0; padding: 12px 14px; border-radius: 10px; overflow: auto; }
.code-box code { white-space: pre-wrap; word-break: break-all; font-size: 12.5px; font-family: ui-monospace, Menlo, Consolas, monospace; }

.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px dashed var(--line); }
.set-row:first-of-type { border-top: none; }
.set-row > div > b { display: block; font-size: 13.5px; font-weight: 600; }
.set-row .hint { margin: 2px 0 0; }
.th-act { text-align: right; }

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .chart { height: 170px; }
  .set-row { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------------------------------------------
   积分体系（二期）—— 后台 credits.php / 门户 portal/credit.php / buy.php
   ------------------------------------------------------------------ */
.field > span { font-size: 13px; font-weight: 600; color: #374151; }
.field > span em { color: #e11d48; font-style: normal; margin-left: 2px; }

/* 门户：余额卡 */
.pt-bal { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin-bottom: 16px; }
.pt-bal-main, .pt-bal-side { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.pt-bal-main { display: grid; gap: 4px; align-content: center; }
.pt-bal-main > span { font-size: 13px; color: var(--mut); }
.pt-bal-main > b { font-size: 38px; font-weight: 600; color: var(--txt); line-height: 1.1; font-variant-numeric: tabular-nums; }
.pt-bal-main > em { font-style: normal; font-size: 12.5px; color: var(--mut); line-height: 1.6; }
.pt-bal-side { display: grid; gap: 12px; align-content: center; }
.pt-bal-side > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.pt-bal-side > div:last-child { border-bottom: none; padding-bottom: 0; }
.pt-bal-side span { font-size: 13px; color: var(--mut); }
.pt-bal-side b { font-size: 20px; color: var(--txt); font-variant-numeric: tabular-nums; }

/* 门户：收款码 */
.pt-qr2 { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; padding: 6px 0 4px; }
.pt-qr { text-align: center; }
.pt-qr-t { font-size: 13px; color: var(--mut); margin-bottom: 8px; }
.pt-qr img { width: 168px; height: 168px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }

/* 门户：表格 */
.pt-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pt-table th { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--mut); font-weight: 500; font-size: 12.5px; }
.pt-table td { padding: 9px 10px; border-bottom: 1px dashed var(--line); vertical-align: middle; }
.pt-table tr:last-child td { border-bottom: none; }
.pt-table .small { font-size: 12.5px; }
.pt-plus  { color: #059669; font-weight: 600; }
.pt-minus { color: #e11d48; font-weight: 600; }
.pt-mut   { color: var(--mut); }
.pt-tag.wait { background: #fffbeb; color: #92400e; }
.pt-tag.sale { background: #fef2f2; color: #b91c1c; }

/* 门户：购买页 */
.pt-buy-prod { padding: 12px 0; border-top: 1px dashed var(--line); }
.pt-buy-prod:first-of-type { border-top: none; }
.pt-bp-head { display: grid; gap: 2px; margin-bottom: 10px; }
.pt-bp-head b { font-size: 14.5px; }
.pt-bp-head span { font-size: 12.5px; color: var(--mut); }
.pt-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.pt-plan { position: relative; display: grid; gap: 6px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; text-decoration: none; color: inherit; background: #fff; }
.pt-plan:hover { border-color: #3b6ff2; background: #f8faff; }
.pt-plan.on { border-color: #3b6ff2; box-shadow: 0 0 0 3px rgba(59,111,242,.12); background: #f8faff; }
.pt-plan > b { font-size: 13.5px; font-weight: 600; }
.pt-plan-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--mut); }
.pt-plan-price em { font-style: normal; font-size: 22px; font-weight: 600; color: var(--txt); font-variant-numeric: tabular-nums; }
.pt-plan-price s { color: #9aa4b2; }
.pt-plan .pt-tag.sale { position: absolute; top: 10px; right: 10px; }

@media (max-width: 760px) {
  .pt-bal { grid-template-columns: 1fr; }
  .pt-bal-main > b { font-size: 30px; }
  .pt-qr img { width: 140px; height: 140px; }
  .pt-table th:nth-child(1), .pt-table td:nth-child(1) { display: none; }
}

/* ============================================================
 * 站点统计 stats.php（v3.19 重做：概览 / 访问明细 / 访客 / 设置）
 * ============================================================ */
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.two-col > .panel, .dash-cols > .panel { margin-bottom: 0; }
.dash-cols { margin-bottom: 18px; }
/* 统计页专用两列（与 .dash-cols 区别：不带 last-child 跨列规则） */
.st-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; margin-bottom: 18px; }
.st-cols > .panel { margin-bottom: 0; }

/* 顶部 tab + 时间范围 */
.st-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.st-top .st-tabs { flex: 1; min-width: 240px; margin-bottom: 0; background: transparent; }
.st-range { display: flex; gap: 6px; padding-bottom: 6px; }
.st-chip { display: inline-block; padding: 4px 12px; font-size: 12.5px; color: #5b6479; background: #fff; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.st-chip:hover { border-color: var(--pri); color: var(--pri); }
.st-chip.on { background: var(--pri); border-color: var(--pri); color: #fff; font-weight: 600; }

/* 概览副数据行 */
.st-subline { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: -6px 0 18px; padding: 12px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-size: 13px; color: var(--mut); }
.st-subline b { color: var(--txt); font-size: 15px; margin-left: 4px; font-variant-numeric: tabular-nums; }

/* 图例 */
.st-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mut); }
.st-legend i { width: 12px; height: 8px; border-radius: 2px; display: inline-block; }
.st-legend i.lg-pv { background: #cfdcfb; }
.st-legend i.lg-uv { background: #3b6ff2; height: 3px; border-radius: 2px; }
.st-legend em { width: 10px; }

.chart { display: block; width: 100%; height: 240px; }
.chart-sm { height: 150px; }

/* 条形榜：第三列容纳 数量 / 占比 / 平均停留 */
.bar-list li { grid-template-columns: minmax(90px, 34%) 1fr 132px; }
.bl-n { text-align: right; font-variant-numeric: tabular-nums; }
.bl-n em { font-style: normal; color: var(--mut); font-size: 12px; }
.bl-dur { display: block; color: #94a3b8; font-size: 11.5px; }

/* 明细表 */
.st-table td { font-size: 13px; }
.st-table .st-ip { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; color: #1e293b; background: #f4f7fc; border: 1px solid #e6ebf4; border-radius: 6px; padding: 1px 6px; }
.st-host { display: block; color: var(--mut); font-size: 12px; word-break: break-all; }
.st-path { display: inline-block; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; color: #334155; }
.st-vid { font-size: 12px; color: var(--pri); text-decoration: none; }
.st-vid:hover { text-decoration: underline; }

/* 停留时长：按长短着色 */
.st-dur { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-variant-numeric: tabular-nums; border: 1px solid transparent; }
.st-dur.low  { color: #94a3b8; background: #f1f5f9; border-color: #e2e8f0; }
.st-dur.mid  { color: #1d4ed8; background: #eff6ff; border-color: #cfe0fb; }
.st-dur.good { color: #15803d; background: #ecfdf3; border-color: #bbe9cc; }

.st-filters input, .st-filters select { padding: 5px 9px; font-size: 13px; }
.st-note { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 13px; line-height: 1.8; color: #475569; }
.st-note b { color: #1e293b; }

@media (max-width: 900px) {
  .st-top { align-items: flex-start; }
  .st-range { padding-bottom: 0; }
  .chart { height: 190px; }
  .st-path { max-width: 200px; }
  .st-cols { grid-template-columns: 1fr; }
}

/* ============================================================
 * 充值工单（portal/credit.php + 后台 credits.php 充值审核）
 * ============================================================ */
.pt-steps { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 4px; }
.pt-step { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: #f8fafc;
           border: 1px solid var(--line); border-radius: 10px; font-size: 13px; color: #475569; }
.pt-step i { width: 20px; height: 20px; flex: none; border-radius: 50%; background: #3b6ff2; color: #fff;
             font-style: normal; font-size: 12px; display: flex; align-items: center; justify-content: center; }

.pt-tiers { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-tier { padding: 8px 15px; border: 1px solid var(--line); border-radius: 9px; background: #fff;
           color: #4b5563; font-size: 13.5px; font-family: inherit; cursor: pointer; }
.pt-tier:hover { border-color: #3b6ff2; color: #3b6ff2; }
.pt-tier.on { border-color: #3b6ff2; color: #3b6ff2; background: #eff6ff; font-weight: 600; }

.pt-field select { height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px;
                   font-size: 14px; background: #fff; color: var(--txt); }
.pt-field select:focus { outline: none; border-color: #3b6ff2; box-shadow: 0 0 0 3px rgba(59,111,242,.12); }
.pt-field textarea { padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px;
                     font-size: 14px; font-family: inherit; background: #fff; color: var(--txt); }

/* 后台：充值审核 */
.rc-pending { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border-radius: 10px;
              background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 13px; margin-bottom: 14px; }
.rc-pending b { font-size: 15px; }
.rc-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rc-form input[type=number] { width: 88px; padding: 4px 8px; border: 1px solid var(--line);
                              border-radius: 7px; font-size: 13px; }
.rc-row-pending td { background: #fffdf5; }
