:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #fafbfe;
  --border: #e5e9f2;
  --border-strong: #d5dbe8;
  --text: #182033;
  --muted: #6c7893;
  --primary: #2f5bea;
  --primary-dark: #2447c4;
  --primary-soft: #eef2ff;
  --success: #0f9d58;
  --success-soft: #e6f7ee;
  --warn: #b26a00;
  --warn-soft: #fdf3e2;
  --danger: #d92d20;
  --danger-soft: #fdeceb;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 32, 66, .04), 0 8px 24px rgba(20, 32, 66, .05);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }

code, .mono { font-family: var(--mono); font-size: 12.5px; }

/* ---------- 布局 ---------- */
.layout {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2f5bea, #6d8bff);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 15px;
  box-shadow: 0 4px 10px rgba(47, 91, 234, .28);
}

.brand-name { font-weight: 650; font-size: 15px; }
.brand-sub { font-size: 11.5px; color: var(--muted); }

.nav-group { margin: 14px 6px 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #9aa5bd; }

.nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  color: #3a4761;
  font-size: 13.5px;
  margin-bottom: 2px;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a.active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
.nav a .count { font-size: 11px; color: var(--muted); }

.main { min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}

.topbar h1 { font-size: 17px; }
.topbar .sub { color: var(--muted); font-size: 12.5px; }

.userbox { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary-dark);
  display: grid; place-items: center; font-weight: 600; font-size: 13px;
}

.content { padding: 24px 28px 48px; max-width: 1440px; width: 100%; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  overflow: hidden;
}

.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.card-head h2 { font-size: 14px; }
.card-body { padding: 18px; }
.card-body.tight { padding: 0; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.stat .label { color: var(--muted); font-size: 12.5px; }
.stat .value { font-size: 24px; font-weight: 650; letter-spacing: -.02em; margin-top: 2px; }
.stat .value small { font-size: 12px; color: var(--muted); font-weight: 500; }
.stat.accent { background: linear-gradient(135deg, #2f5bea, #5b7cff); border-color: transparent; color: #fff; }
.stat.accent .label, .stat.accent .value small { color: rgba(255,255,255,.78); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.table th, table.table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; white-space: nowrap; }
table.table th { background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: .02em; }
table.table tr:last-child td { border-bottom: none; }
table.table tbody tr:hover { background: #fbfcff; }
table.table td.wrap { white-space: normal; min-width: 220px; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }

/* ---------- 徽标 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.6;
}
.badge.ok { background: var(--success-soft); color: var(--success); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.muted { background: #eef1f7; color: var(--muted); }
.badge.info { background: var(--primary-soft); color: var(--primary-dark); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 13px; font-weight: 550;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 3px 10px rgba(47,91,234,.22); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.form-grid .full { grid-column: 1 / -1; }

.field label { display: block; font-size: 12.5px; font-weight: 600; color: #3b475f; margin-bottom: 5px; }
.field .req { color: var(--danger); margin-left: 2px; }

input[type=text], input[type=password], input[type=number], input[type=email], input[type=datetime-local], input[type=date], select, textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 91, 234, .12);
}
input[readonly], textarea[readonly] { background: var(--surface-2); color: var(--muted); }
textarea { resize: vertical; min-height: 72px; }

.help { font-size: 12px; color: var(--muted); margin-top: 4px; }
.error-text { font-size: 12px; color: var(--danger); margin-top: 4px; }

.checkbox { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--primary); }

/* ---------- 提示 ---------- */
.flash {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  border: 1px solid transparent;
}
.flash.success { background: var(--success-soft); color: #0b7a45; border-color: #bfe8d1; }
.flash.error { background: var(--danger-soft); color: #a12117; border-color: #f5c6c2; }
.flash.info { background: var(--primary-soft); color: var(--primary-dark); border-color: #cfdaff; }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; gap: 6px; padding: 14px 18px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
}
.pager a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.pager .current { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.pager .disabled { color: #b6bfd2; }
.pager .total { border: none; color: var(--muted); font-size: 12.5px; margin-left: auto; }

/* ---------- 工具条 ---------- */
.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.toolbar form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar input[type=text] { width: 220px; }
.toolbar select { width: auto; min-width: 120px; }

/* ---------- 登录 ---------- */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(900px 500px at 12% 8%, #e8eeff 0%, rgba(232,238,255,0) 60%),
    radial-gradient(800px 480px at 88% 92%, #e6f6f0 0%, rgba(230,246,240,0) 55%),
    var(--bg);
  padding: 24px;
}
.auth-card {
  width: 100%; max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(20, 32, 66, .10);
  padding: 30px 28px;
}
.auth-card h1 { font-size: 20px; margin-bottom: 4px; }
.auth-card .sub { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.auth-card .field { margin-bottom: 14px; }
.auth-foot { text-align: center; font-size: 12px; color: var(--muted); margin-top: 18px; }

/* ---------- 详情 ---------- */
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-all; }

.section-title { font-size: 13px; font-weight: 650; color: #3b475f; margin: 22px 0 10px; }

pre.code-block {
  background: #0f1729;
  color: #d6e2ff;
  padding: 14px 16px;
  border-radius: 10px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.65;
}
pre.code-block .k { color: #7dd3fc; }
pre.code-block .s { color: #a7f3d0; }
pre.code-block .c { color: #7c8bab; }

.secret { letter-spacing: .5px; }

/* ---------- 前台 ---------- */
.public-wrap { min-height: 100vh; background: var(--bg); }
.public-head {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.public-body { max-width: 760px; margin: 0 auto; padding: 44px 20px 60px; }
.hero h1 { font-size: 26px; margin-bottom: 8px; }
.hero p { color: var(--muted); margin: 0 0 26px; }
.result-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.result-row:last-child { border-bottom: none; }
.result-row .k { color: var(--muted); }

/* ---------- 安装 ---------- */
.install-card { max-width: 720px; margin: 40px auto; }
.check-list { list-style: none; padding: 0; margin: 0 0 20px; }
.check-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--border); }
  .nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .nav a { padding: 6px 10px; }
  .nav-group { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .content { padding: 18px 16px 40px; }
  .topbar { padding: 14px 16px; }
}

/* ---------- v1.1 新增: 统计卡片 / 时长选择 / 键值展示 / 公告 / 广告 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow);
}
.stat-label { color: var(--muted); font-size: 12px; }
.stat-value { font-size: 22px; font-weight: 700; margin-top: 4px; letter-spacing: -.3px; }
.stat.ok .stat-value { color: var(--success); }
.stat.warn .stat-value { color: var(--warn); }
.stat.danger .stat-value { color: var(--danger); }

.duration-row { display: flex; gap: 8px; align-items: center; }
.duration-row select { flex: 0 0 132px; }
.duration-row input { flex: 1 1 auto; min-width: 0; }
.duration-preview { color: var(--muted); font-size: 12px; white-space: nowrap; }

.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px 22px; }
.kv-grid > div { border-left: 3px solid var(--primary-soft); padding-left: 12px; }
.kv-grid span { display: block; color: var(--muted); font-size: 12px; }
.kv-grid strong { font-size: 15px; }

.notice-list { display: flex; flex-direction: column; }
.notice-item {
  display: block; padding: 12px 2px; border-bottom: 1px dashed var(--border);
  color: var(--text); text-decoration: none;
}
.notice-item:last-child { border-bottom: none; }
.notice-item:hover { text-decoration: none; background: var(--surface-2); }
.notice-item.lv2 .notice-title { color: var(--warn); font-weight: 600; }
.notice-item.lv3 .notice-title { color: var(--danger); font-weight: 700; }
.notice-title { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.notice-meta { color: var(--muted); font-size: 12px; margin-top: 3px; }
.notice-content { font-size: 14px; line-height: 1.9; white-space: pre-wrap; }

.public-nav { display: flex; align-items: center; gap: 16px; font-size: 13px; }
.public-nav a { color: var(--muted); }
.public-nav a:hover { color: var(--primary); text-decoration: none; }

.ad-strip { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.ad-item {
  display: block; border-radius: var(--radius); overflow: hidden; margin-bottom: 12px;
  border: 1px solid var(--border); background: var(--surface);
}
.ad-item img { display: block; width: 100%; height: auto; }
.ad-text { display: block; padding: 10px 14px; font-size: 13px; color: var(--muted); }

.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.inline-form input { flex: 1 1 200px; min-width: 0; }
.auth-card { max-width: 460px; margin: 0 auto; }

/* ============================================================
   v1.2 前台商城
   ============================================================ */

.public-head {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 26px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
}
.public-brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.public-brand:hover { text-decoration: none; }
.public-nav { flex: 1 1 auto; justify-content: center; flex-wrap: wrap; gap: 4px; }
.public-nav a { padding: 6px 10px; border-radius: 8px; }
.public-nav a.on { color: var(--primary-dark); background: var(--primary-soft); font-weight: 600; }
.public-actions { display: flex; align-items: center; gap: 8px; }

.public-body.wide { max-width: 1180px; padding-top: 26px; }
.public-body > .flash { max-width: 1180px; }

/* ---------- 页脚 ---------- */
.public-foot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 26px 40px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.foot-brand .brand-sub { margin-top: 2px; }
.foot-note { color: var(--muted); font-size: 12.5px; margin: 12px 0 0; max-width: 340px; line-height: 1.8; }
.foot-title { font-size: 12px; font-weight: 650; color: #3b475f; letter-spacing: .04em; margin-bottom: 10px; }
.foot-grid a, .foot-static { display: block; color: var(--muted); font-size: 13px; padding: 4px 0; }
.foot-grid a:hover { color: var(--primary); text-decoration: none; }
.foot-bottom { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; text-align: center; }

/* ---------- 首页 Hero ---------- */
.store-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 322px;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 18px;
}
.hero-main {
  background:
    radial-gradient(700px 320px at 8% 0%, #e9efff 0%, rgba(233, 239, 255, 0) 62%),
    radial-gradient(560px 300px at 96% 100%, #e7f6ef 0%, rgba(231, 246, 239, 0) 58%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px 34px 30px;
  box-shadow: var(--shadow);
}
.hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border: 1px solid #cfdaff;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 16px;
}
.hero-main h1 { font-size: 34px; line-height: 1.3; letter-spacing: -.02em; }
.hero-sub { color: var(--muted); font-size: 14px; line-height: 1.9; margin: 14px 0 22px; max-width: 620px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-types { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--border); }
.type-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
  transition: all .15s;
}
.type-chip:hover { border-color: var(--primary); color: var(--primary-dark); text-decoration: none; }
.type-chip b {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary-dark);
  display: grid; place-items: center; font-size: 12px;
}
.chip-count { color: var(--muted); font-size: 12px; }

.hero-side { display: flex; flex-direction: column; gap: 14px; }
.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.side-card:first-child { flex: 1 1 auto; }
.side-title { font-size: 13.5px; font-weight: 650; margin-bottom: 8px; }
.side-desc { color: var(--muted); font-size: 12.5px; margin: 0 0 12px; line-height: 1.7; }
.side-card input[type=text] { margin-bottom: 10px; }
.side-links { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--muted); }
.side-links a { color: var(--primary); }
.side-links em { margin: 0 6px; font-style: normal; }
.stock-row { display: flex; justify-content: space-between; align-items: baseline; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 13px; color: var(--muted); }
.stock-row:last-of-type { border-bottom: none; }
.stock-row strong { color: var(--text); font-size: 14px; }

/* ---------- 统计条 ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.stat-cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.stat-num { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.stat-num small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.stat-label { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* ---------- 区块 ---------- */
.block { margin-bottom: 26px; }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.block-head h2 { font-size: 19px; letter-spacing: -.01em; }
.block-head p { color: var(--muted); font-size: 13px; margin: 5px 0 0; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.two-col > .card { margin-bottom: 0; }

.empty-card {
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  color: var(--muted);
}
.empty-card p { margin: 0 0 12px; font-size: 13.5px; }

/* ---------- 资源卡片 ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; }
.prod-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.prod-card:hover { text-decoration: none; transform: translateY(-2px); border-color: #c9d5f5; box-shadow: 0 12px 28px rgba(20, 32, 66, .10); }
.prod-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.type-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, #2f5bea, #6d8bff);
  color: #fff; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; flex: 0 0 auto;
}
.type-mark.lg { width: 46px; height: 46px; border-radius: 13px; font-size: 19px; }
.type-label { font-size: 12px; font-weight: 600; color: var(--primary-dark); background: var(--primary-soft); padding: 2px 8px; border-radius: 6px; }
.type-ver { font-size: 11.5px; color: var(--muted); margin-left: auto; }
.prod-card h3 { font-size: 15.5px; margin-bottom: 6px; }
.prod-desc { color: var(--muted); font-size: 12.5px; line-height: 1.7; margin: 0 0 12px; min-height: 42px; }
.prod-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag { font-size: 11.5px; color: #3b475f; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; }
.tag.muted { color: var(--muted); }
.prod-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--border); }
.prod-more { font-size: 12.5px; color: var(--primary); }
.price { font-size: 20px; font-weight: 700; color: var(--danger); letter-spacing: -.02em; }
.price small { font-size: 12px; font-weight: 500; color: var(--muted); }
.price.muted { color: var(--muted); font-size: 15px; }
.price.xl { font-size: 30px; }
.text-danger { color: var(--danger); }

/* ---------- 套餐卡片 ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.plan-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.plan-prod { font-size: 11.5px; color: var(--muted); }
.plan-name { font-size: 14.5px; font-weight: 650; }
.plan-price { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.plan-price b { font-size: 28px; color: var(--danger); letter-spacing: -.02em; margin: 0 4px 0 2px; }
.plan-spec { list-style: none; padding: 0; margin: 0 0 16px; }
.plan-spec li { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 6px 0; border-bottom: 1px dashed var(--border); color: var(--muted); }
.plan-spec li:last-child { border-bottom: none; }
.plan-spec b { color: var(--text); font-weight: 600; }
.plan-card .btn { margin-top: auto; }

/* ---------- 会员等级 ---------- */
.level-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; }
.level-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.level-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.level-name { font-size: 16px; font-weight: 650; }
.level-discount { font-size: 12px; color: var(--warn); background: var(--warn-soft); border-radius: 6px; padding: 3px 9px; margin-bottom: 12px; display: inline-block; }
.level-card .btn { margin-top: auto; }

/* ---------- 服务入口 ---------- */
.entry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 14px; }
.entry-card {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color .16s, transform .16s;
}
.entry-card:hover { text-decoration: none; border-color: #c9d5f5; transform: translateY(-2px); }
.entry-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: 0 0 auto;
  background: var(--primary-soft); color: var(--primary-dark);
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
}
.entry-card h3 { font-size: 14.5px; margin-bottom: 4px; }
.entry-card p { color: var(--muted); font-size: 12.5px; margin: 0; line-height: 1.7; }
.entry-go { margin-left: auto; color: var(--muted); align-self: center; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px dashed var(--border); padding: 10px 0; }
.faq details:last-child { border-bottom: none; }
.faq summary { cursor: pointer; font-size: 13.5px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 500; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); font-size: 13px; line-height: 1.85; margin: 8px 0 0; }

/* ---------- 页面标题 / 面包屑 ---------- */
.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: 24px; letter-spacing: -.01em; }
.page-head p { color: var(--muted); font-size: 13.5px; margin: 8px 0 0; }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--primary); text-decoration: none; }
.crumb em { font-style: normal; color: var(--text); }

/* ---------- 筛选条 ---------- */
.filter-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 13px; color: var(--muted);
  text-decoration: none;
}
.filter-chip b { font-weight: 600; font-size: 11.5px; color: #9aa5bd; }
.filter-chip:hover { border-color: var(--primary); color: var(--primary-dark); text-decoration: none; }
.filter-chip.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.filter-chip.on b { color: rgba(255, 255, 255, .8); }
.filter-search { display: flex; gap: 8px; align-items: center; }
.filter-search input[type=text] { width: 220px; }

/* ---------- 资源详情 ---------- */
.prod-hero {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background:
    radial-gradient(600px 260px at 0% 0%, #eaf0ff 0%, rgba(234, 240, 255, 0) 60%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 28px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.prod-hero-main { display: flex; gap: 16px; align-items: flex-start; min-width: 0; }
.prod-hero-tags { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.prod-hero h1 { font-size: 24px; margin-bottom: 8px; }
.prod-hero-desc { color: var(--muted); font-size: 13.5px; line-height: 1.85; margin: 0; max-width: 660px; }
.prod-hero-side { text-align: right; min-width: 180px; }
.prod-hero-side .btn { margin-top: 10px; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 358px; gap: 16px; align-items: start; }
.detail-side .card { margin-bottom: 0; }
.rich-text { font-size: 13.5px; line-height: 1.95; color: #2c3853; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.spec-item {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 13px;
}
.spec-item b { color: var(--success); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 16px 38px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary-dark);
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 700;
}
.steps li::after {
  content: ""; position: absolute; left: 13px; top: 28px; bottom: 4px;
  width: 1px; background: var(--border);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps b { display: block; font-size: 13.5px; margin-bottom: 2px; }
.steps span { color: var(--muted); font-size: 12.5px; line-height: 1.75; }

.buy-list { display: flex; flex-direction: column; }
.buy-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.buy-item:last-child { border-bottom: none; }
.buy-name { font-size: 13.5px; font-weight: 600; }
.buy-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; margin-top: 4px; }
.buy-side { text-align: right; flex: 0 0 auto; }
.buy-side .price { font-size: 16px; margin-bottom: 4px; }

/* ---------- 价格表 ---------- */
.price-table td { vertical-align: top; }
.price-table td[colspan], .price-table td[rowspan] { border-right: 1px solid var(--border); }
.price-cell { font-weight: 700; color: var(--danger); }

/* ---------- 会员权益 / 充值 / 兑换 ---------- */
.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li { position: relative; padding: 7px 0 7px 24px; font-size: 13px; color: #3b475f; border-bottom: 1px dashed var(--border); }
.tick-list li:last-child { border-bottom: none; }
.tick-list li::before { content: "✓"; position: absolute; left: 0; top: 7px; color: var(--success); font-weight: 700; }

.channel-list { display: flex; flex-wrap: wrap; gap: 10px; }
.channel-item {
  display: flex; flex-direction: column; gap: 2px;
  border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 14px; background: var(--surface-2);
  font-size: 13px;
}
.channel-item .help { margin: 0; }

.login-hint { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.login-hint h2 { font-size: 16px; margin-bottom: 4px; }
.login-hint .help { margin: 0; }

.amount-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.amount-chip { position: relative; cursor: pointer; }
.amount-chip input { position: absolute; opacity: 0; pointer-events: none; }
.amount-chip span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 82px; padding: 10px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
  background: var(--surface);
  transition: all .15s;
}
.amount-chip input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); box-shadow: 0 0 0 3px rgba(47, 91, 234, .12); }

.status-list { display: flex; flex-direction: column; gap: 10px; }
.status-list > div { display: flex; align-items: flex-start; gap: 10px; }
.status-list p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- 授权结果 / 授权码 ---------- */
.license-box {
  border: 1px solid #cfdaff;
  background: var(--primary-soft);
  border-radius: 12px;
  padding: 16px;
}
.license-key { margin-bottom: 12px; }
.license-key code { font-size: 17px; font-weight: 700; letter-spacing: .04em; color: var(--primary-dark); }
.license-box .kv-grid > div { border-left-color: #b9c8f7; }
.license-box .kv-grid span { color: #5a6b96; }

.btn-lg { padding: 11px 20px; font-size: 14px; border-radius: 10px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .store-hero { grid-template-columns: 1fr; }
  .hero-side { flex-direction: row; }
  .side-card { flex: 1 1 0; }
  .detail-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .public-head { padding: 12px 14px; gap: 10px; }
  .public-nav { order: 3; width: 100%; justify-content: flex-start; }
  .public-nav a { padding: 5px 8px; font-size: 12.5px; }
  .public-body.wide { padding: 18px 14px 40px; }
  .hero-main { padding: 24px 20px; }
  .hero-main h1 { font-size: 25px; }
  .hero-side { flex-direction: column; }
  .prod-hero { padding: 20px; }
  .prod-hero-side { text-align: left; }
  .prod-grid, .plan-grid, .level-grid, .entry-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 18px; }
  .public-foot { padding: 24px 16px 32px; }
  .filter-search { width: 100%; }
  .filter-search input[type=text] { flex: 1 1 auto; width: auto; }
}

/* ---------- 补全 ---------- */
.buy-main { min-width: 0; }
.chip-label { white-space: nowrap; }

/* ============================================================
   v1.3 支付系统：支付方式卡片 / 二维码 / 跳转 / 人工确认
   ============================================================ */
.pay-amount { font-size: 13px; color: var(--muted); }
.pay-amount b { color: var(--danger); font-size: 18px; font-weight: 700; }

.pay-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pay-tab-form { margin: 0; }

.pay-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.pay-tab:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.pay-tab.is-on,
.pay-tabs-radio .pay-tab:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 3px rgba(47, 91, 234, .1);
}
.pay-tabs-radio .pay-tab input[type=radio] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.pay-tab-name { font-weight: 600; white-space: nowrap; }
.pay-tab-mode {
  font-size: 11.5px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 7px;
  white-space: nowrap;
}
.pay-tab.is-on .pay-tab-mode,
.pay-tabs-radio .pay-tab:has(input:checked) .pay-tab-mode {
  background: #fff;
  color: var(--primary-dark);
  border-color: #c3d0f9;
}

.pay-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex: 0 0 auto;
  background: var(--muted);
  letter-spacing: 0;
}
.pay-mark-alipay   { background: #1677ff; }
.pay-mark-wxpay    { background: #07c160; }
.pay-mark-qqpay    { background: #12b7f5; }
.pay-mark-unionpay { background: #d6001c; }
.pay-mark-usdt     { background: #26a17b; }
.pay-mark-paypal   { background: #003087; }
.pay-mark-manual   { background: #6c7893; }
.pay-mark-other    { background: #7a5af8; }

/* 订单支付页布局 */
.pay-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}
.pay-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pay-side { display: flex; flex-direction: column; gap: 18px; }
.pay-card .card-body { padding-top: 18px; }

/* 二维码收款 */
.qr-stage {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
}
.qr-box {
  flex: 0 0 auto;
  width: 208px;
  height: 208px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; display: block; }
.qr-side { flex: 1 1 auto; min-width: 0; }
.qr-brand { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.qr-price {
  font-size: 34px;
  font-weight: 700;
  color: var(--danger);
  line-height: 1.2;
  margin: 8px 0 10px;
  letter-spacing: -.02em;
}
.qr-price small { font-size: 18px; margin-right: 2px; }
.qr-tip { margin: 0 0 8px; color: var(--text); }

/* 跳转支付 */
.pay-link-stage {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
}
.pay-link-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; }
.pay-link-head .help { margin: 2px 0 0; }

/* 人工确认 */
.pay-manual {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.pay-manual > div {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--surface-2);
}
.pay-manual span { display: block; font-size: 12px; color: var(--muted); }
.pay-manual strong { display: block; font-size: 14px; word-break: break-all; }
.copyable { border-bottom: 1px dashed var(--border-strong); }

/* 提示条 */
.pay-notice {
  margin-top: 16px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.pay-notice.warn   { background: var(--warn-soft); border-color: #f0d9b5; color: var(--warn); }
.pay-notice.info   { background: var(--primary-soft); border-color: #cdd8fa; color: var(--primary-dark); }
.pay-notice.ok     { background: var(--success-soft); border-color: #bfe6d0; color: #0b7a44; }

.pay-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.pay-foot .help { margin: 0; }

/* 余额支付 */
.balance-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.balance-num { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }

.kv-stack { display: flex; flex-direction: column; gap: 10px; }
.kv-stack > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.kv-stack span { font-size: 12.5px; color: var(--muted); flex: 0 0 auto; }
.kv-stack strong { font-size: 13px; text-align: right; word-break: break-all; }

.steps.compact { margin: 0; padding-left: 18px; }
.steps.compact li { margin-bottom: 10px; }
.steps.compact li b { display: block; font-size: 13px; }
.steps.compact li span { font-size: 12.5px; color: var(--muted); }

/* 后台：二维码缩略图与小图标 */
.qr-thumb {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  padding: 2px;
  display: block;
}
.pay-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  vertical-align: middle;
  background: var(--muted);
}
.pay-mini-alipay   { background: #1677ff; }
.pay-mini-wxpay    { background: #07c160; }
.pay-mini-qqpay    { background: #12b7f5; }
.pay-mini-unionpay { background: #d6001c; }
.pay-mini-usdt     { background: #26a17b; }
.pay-mini-paypal   { background: #003087; }
.pay-mini-manual   { background: #6c7893; }
.pay-mini-other    { background: #7a5af8; }

/* 后台：图片字段 */
.image-field { display: flex; gap: 16px; align-items: flex-start; }
.image-preview {
  flex: 0 0 auto;
  width: 108px;
  height: 108px;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.image-preview img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.image-empty { font-size: 12px; color: var(--muted); }
.image-inputs { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.image-inputs input[type=text] { width: 100%; }
.image-inputs input[type=file] {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  font-size: 12.5px;
  color: var(--muted);
}
.image-inputs .help { margin: 0; }

@media (max-width: 960px) {
  .pay-layout { grid-template-columns: 1fr; }
  .pay-side { order: 2; }
}

@media (max-width: 640px) {
  .pay-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .pay-tab { justify-content: flex-start; }
  .pay-tab-form { display: block; }
  .pay-tab-form .pay-tab { width: 100%; }
  .qr-stage { flex-direction: column; align-items: center; text-align: center; padding: 16px; }
  .qr-box { width: 180px; height: 180px; }
  .qr-brand { justify-content: center; }
  .qr-price { font-size: 28px; }
  .image-field { flex-direction: column; }
  .image-preview { width: 100%; height: 140px; }
}

/* ---------- 会员钱包 ---------- */
.wallet-card .stat-strip { margin-bottom: 0; }
.wallet-card .stat-cell {
  box-shadow: none;
  background: var(--surface-2);
  border-color: var(--border);
}
.wallet-card .stat-num { font-size: 24px; }
.wallet-card .stat-num small { font-size: 12px; }
