:root {
  /* 中性灰阶 */
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e7eaf1;
  --line-strong: #d6dae5;
  --surface: #ffffff;
  --surface-2: #fbfcfe;
  --bg: #f7f8fc;

  /* 单一主色 */
  --brand: #4f46e5;
  --brand-dark: #4338ca;
  --brand-ink: #312e81;
  --brand-soft: #eef2ff;
  --brand-line: #dbe2ff;

  /* 状态色 */
  --ok: #047857;
  --ok-soft: #ecfdf5;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --danger: #b91c1c;
  --danger-soft: #fef2f2;

  /* 圆角 / 阴影 / 间距 */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 20px rgba(15, 23, 42, .04);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, .12);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --container: 1120px;
}

* { box-sizing: border-box; }

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

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

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  background: #f1f3f9;
  border-radius: 5px;
  padding: 2px 5px;
  font-size: 13px;
  word-break: break-all;
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 12px; letter-spacing: -.015em; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0 0 10px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--brand-dark);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

/* ---------- 顶栏 ---------- */
.topbar {
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(180%) blur(12px);
}
.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  font-size: 16px;
}
.brand:hover { text-decoration: none; }
.brand-text { display: inline-flex; flex-direction: column; line-height: 1.2; }
.brand-text small { font-size: 11px; font-weight: 500; color: var(--muted-2); letter-spacing: .02em; }
.brand-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, #6366f1, #4338ca);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a, .nav-item {
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}
.nav a:hover, .nav-item:hover { background: #f2f4fa; color: var(--ink); text-decoration: none; }
.nav-item.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.link-muted { color: var(--muted); font-size: 13px; }

/* ---------- 页脚 ---------- */
.footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  padding: 32px 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr .6fr 1.2fr;
  gap: 24px;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { color: var(--ink); font-size: 14px; }
.footer-brand p { margin: 2px 0 0; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-note { display: flex; flex-direction: column; gap: 2px; text-align: right; }

/* ---------- 通用 ---------- */
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hint { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.inline { display: inline; }
.center { text-align: center; }
.center-block { margin: 40px auto; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.panel.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.muted-panel { background: var(--surface-2); box-shadow: none; }
.muted-panel p { color: var(--muted); margin-bottom: 6px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 56px 0 20px;
}
.section-head h1, .section-head h2 { margin: 6px 0 0; }
.panel .section-head { margin-top: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .16s var(--ease), border-color .16s var(--ease),
    box-shadow .16s var(--ease), transform .12s var(--ease);
  white-space: nowrap;
  font-family: inherit;
}
.btn:hover { background: #f8fafc; border-color: #cbd5e1; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 1px 2px rgba(79, 70, 229, .22), 0 6px 16px rgba(79, 70, 229, .18);
}
.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(79, 70, 229, .26);
}
.btn-primary:active { transform: translateY(0); }
.btn-danger { color: var(--danger); border-color: #fecaca; background: #fff; }
.btn-danger:hover { background: var(--danger-soft); }
.btn-lg { height: 46px; padding: 0 24px; font-size: 15px; border-radius: 12px; }
.btn-sm { height: 34px; padding: 0 13px; font-size: 13px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.btn.block { width: 100%; margin-top: 16px; }

.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.8;
  white-space: nowrap;
}
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--brand-soft); color: var(--brand-dark); }
.badge-muted { background: #f1f2f6; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.chip {
  background: #f4f5f9;
  color: #4b5563;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
}

/* ---------- 首页 Hero ---------- */
.site-home {
  background-image: radial-gradient(1100px 460px at 50% -140px, #edf0ff 0%, rgba(247, 248, 252, 0) 72%);
  background-repeat: no-repeat;
}
.site-home .container { padding-top: 0; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 56px;
  align-items: start;
  padding: 68px 0 44px;
}
.hero h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -.035em;
  margin: 18px 0 0;
}
.lede {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 560px;
  margin: 18px 0 30px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.hero-meta strong {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-right: 5px;
  letter-spacing: -.02em;
}

/* 购买步骤卡 */
.steps-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.steps-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.steps-head h2 { font-size: 22px; margin: 8px 0 0; }
.steps-badge {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.step-no {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps strong { display: block; font-size: 14.5px; color: var(--ink); }
.steps p { margin: 2px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }

/* 价值点 */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 4px 0 8px;
}
.feature-item {
  display: flex;
  gap: 14px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}
.feature-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.feature-item strong { display: block; font-size: 14.5px; margin-bottom: 4px; }
.feature-item p { margin: 0; font-size: 13px; line-height: 1.65; color: var(--muted); }

/* ---------- 插件卡片 ---------- */
.plugin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.plugin-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-xs);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.plugin-card:hover,
.plugin-card:focus-within {
  transform: translateY(-3px);
  border-color: var(--brand-line);
  box-shadow: var(--shadow-md);
}
.plugin-card:active { transform: translateY(-1px); }

/* 整卡热区：覆盖整张卡片，新窗口打开插件详情页 */
.card-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.card-hit:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.plugin-card > .plugin-card-top,
.plugin-card > .card-desc,
.plugin-card > .tag-list { position: relative; z-index: 0; }
/* 底部按钮区抬到覆盖层之上，按钮只走套餐页，不触发整卡跳转 */
.plugin-card > .card-foot { position: relative; z-index: 2; }

.plugin-card-top { display: flex; align-items: flex-start; gap: 14px; }
.plugin-card-head { min-width: 0; flex: 1; }
.plugin-card h3 { font-size: 17px; margin: 0 0 5px; }
.tagline { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--brand-dark); }
.card-open {
  flex: 0 0 auto;
  color: var(--muted-2);
  font-size: 15px;
  line-height: 1.4;
  transition: color .16s var(--ease);
}
.plugin-card:hover .card-open { color: var(--brand); }

.plugin-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 14px;
  border: 1px solid var(--brand-line);
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  overflow: hidden;
}
.plugin-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plugin-icon.xl {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  border-radius: 18px;
  font-size: 38px;
}

.card-desc {
  flex: 1;
  margin: 16px 0 14px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tag {
  font-size: 12px;
  color: #475569;
  background: #f4f6fb;
  border: 1px solid #e8ebf3;
  border-radius: 999px;
  padding: 2px 9px;
  line-height: 1.7;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.card-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-num { font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.price-unit { font-size: 12px; color: var(--muted); }
.price-meta { font-size: 11.5px; color: var(--muted-2); }
.card-cta {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  height: 38px;
  padding: 0 18px;
  font-size: 13.5px;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 24px;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}
.empty-mark {
  display: block;
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 12px;
  background: var(--brand-soft);
  position: relative;
}
.empty-mark::after {
  content: "";
  position: absolute;
  inset: 13px;
  border: 2px solid var(--brand-line);
  border-radius: 6px;
}

/* ---------- 插件详情 ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 26px 0 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { color: var(--muted-2); }

.plugin-hero {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 40px 0 34px;
  border-bottom: 1px solid var(--line);
}
.plugin-hero-body { flex: 1; min-width: 0; }
.plugin-hero .breadcrumb { margin: 0 0 8px; }
.plugin-hero h1 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -.03em; margin: 0 0 10px; }
.plugin-tagline { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--brand-dark); }
.plugin-desc { max-width: 720px; margin: 0 0 16px; font-size: 14.5px; line-height: 1.75; color: var(--muted); }
.plugin-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.plugin-id { font-size: 12.5px; color: var(--muted-2); }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.plan-card:hover { transform: translateY(-3px); border-color: var(--brand-line); box-shadow: var(--shadow-md); }
.plan-recommended { border-color: var(--brand-line); box-shadow: 0 12px 30px rgba(79, 70, 229, .12); }
.plan-flag {
  position: absolute;
  top: -11px;
  left: 22px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
}
.plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.plan-head h3 { margin: 0; font-size: 15px; }
.plan-days { font-size: 12px; color: var(--muted); }
.plan-price {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  margin: 12px 0 6px;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 10px 0 20px;
  color: var(--muted);
  font-size: 13px;
  flex: 1;
}
.plan-features li { padding: 4px 0 4px 18px; position: relative; }
.plan-features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-line);
}
.plan-recommended .plan-features li::before { background: var(--brand); }
.plan-card .btn.block { margin-top: 0; }

.about-panel { margin-top: 24px; }
.notes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.notes-grid p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.notes-grid strong { display: block; margin-bottom: 4px; font-size: 13.5px; color: var(--ink); }

/* ---------- 订单 / 支付 ---------- */
.narrow-wrap { max-width: 640px; margin: 0 auto; }

.progress { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 18px; }
.progress .step {
  font-size: 12.5px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
}
.progress .step.on {
  background: var(--brand-soft);
  border-color: var(--brand-line);
  color: var(--brand-dark);
  font-weight: 600;
}

.order-summary { border-top: 1px solid var(--line); margin: 18px 0 22px; }
.order-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.order-summary > div span { color: var(--muted); flex: 0 0 auto; }
.order-summary > div strong { text-align: right; }
.order-summary .price { color: var(--brand-dark); font-size: 19px; }
.order-summary.compact { border-top: 0; margin-top: 8px; }
.order-summary.compact > div:last-child { border-bottom: 0; }
.order-plugin { display: inline-flex; align-items: center; gap: 8px; }
.order-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 7px;
  background: var(--brand-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  overflow: hidden;
}
.order-icon img { width: 100%; height: 100%; object-fit: cover; }
.order-foot { text-align: center; margin: 16px 0 40px; }

.field-label { display: block; font-size: 13px; font-weight: 600; margin: 18px 0 6px; color: var(--ink-2); }
.input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
textarea.input { height: auto; padding: 10px 12px; line-height: 1.6; resize: vertical; }
.input:focus { outline: none; border-color: #a5b4fc; box-shadow: 0 0 0 3px var(--brand-soft); }
.input-sm { height: 36px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.input-xs { height: 28px; padding: 0 7px; font-size: 12px; border-radius: 6px; width: 62px; }
.num-input { max-width: 110px; }
.icon-input { max-width: 64px; text-align: center; }

.pay-head { padding: 44px 0 6px; }
.pay-head h1 { font-size: clamp(26px, 3.4vw, 34px); margin: 8px 0 8px; }
.pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  margin: 20px 0 24px;
}
.pay-panel { text-align: center; }
.qr-img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  margin: 10px auto 16px;
  display: block;
  padding: 8px;
}
.pay-amount {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1.2;
}
.pay-order { margin-top: 8px; }

.code-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px dashed var(--brand-line);
  border-radius: 12px;
  padding: 16px;
  margin: 14px 0;
}
.code-label { font-size: 12px; color: var(--brand-dark); font-weight: 600; }
.code-box code {
  font-size: 18px;
  letter-spacing: .06em;
  background: var(--brand-soft);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  color: var(--brand-ink);
}
.success-panel { border-color: #a7f3d0; background: var(--ok-soft); }

/* ---------- 提示 ---------- */
.flash-wrap { margin: 18px 0; }
.flash {
  background: var(--ok-soft);
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 8px;
  word-break: break-word;
}
.flash-error { background: var(--danger-soft); border-color: #fecaca; color: var(--danger); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th, .table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12.5px;
  background: #fafbfd;
  white-space: nowrap;
}
.table tr:last-child td { border-bottom: 0; }
.table td.actions { min-width: 180px; }
.code-keep { white-space: nowrap; }

.row-actions { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.action-extend { display: inline-flex; gap: 4px; align-items: center; }

/* ---------- 后台 ---------- */
.admin-body { background: #f3f4f8; }
.admin-container { padding-top: 8px; padding-bottom: 40px; }
.admin-topbar .nav { gap: 2px; }
.admin-topbar .brand { font-size: 15px; }
.admin-topbar .brand-text small { display: none; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-xs);
}
.stat-label { color: var(--muted); font-size: 12.5px; }
.stat-value { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 2px 0; }
.stat-hint { color: var(--muted-2); font-size: 12px; }

.tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.tab {
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.tab:hover { text-decoration: none; color: var(--ink); }
.tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.edit-list { display: grid; gap: 10px; }
.edit-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fcfcfe;
}
.edit-row .input { flex: 1 1 130px; }
.edit-row .num-input { flex: 0 0 auto; }
.edit-row .icon-input { flex: 0 0 64px; }
.edit-id { flex: 0 0 150px; font-size: 13px; overflow: hidden; }
.plan-row .edit-id { flex-basis: 170px; }
.check { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.search-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.search-row .input { flex: 1 1 160px; max-width: 280px; }

/* 插件编辑器 */
.plugin-editor {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-xs);
}
.plugin-editor-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pe-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 12px;
  border: 1px solid var(--brand-line);
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  overflow: hidden;
}
.pe-icon img { width: 100%; height: 100%; object-fit: cover; }
.pe-meta { min-width: 0; }
.pe-meta strong { display: block; font-size: 15px; }
.pe-meta span { font-size: 12px; color: var(--muted); }
.pe-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pe-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pe-field.full { grid-column: 1 / -1; }
.pe-field label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.pe-field .input { width: 100%; max-width: none; }
.pe-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
  .hero h1 br { display: none; }
  .features { grid-template-columns: 1fr; }
  .steps-card { max-width: 560px; }
  .section-head { margin-top: 44px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-note { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 820px) {
  .pay-grid { grid-template-columns: 1fr; }
  .plugin-hero { flex-direction: column; gap: 18px; }
  .notes-grid { grid-template-columns: 1fr; gap: 14px; }
  .topbar-inner { flex-wrap: wrap; gap: 10px 16px; padding: 10px 24px; }
  .topbar-actions { margin-left: 0; }
  .pe-grid { grid-template-columns: 1fr; }
  .edit-id { flex-basis: 100%; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  body { font-size: 14.5px; }
  .panel { padding: 20px; }
  .hero { padding: 36px 0 28px; }
  .hero h1 { font-size: 30px; }
  .lede { font-size: 15px; }
  .hero-meta { gap: 20px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .steps-card { padding: 22px; }
  .section-head { flex-wrap: wrap; align-items: flex-start; }
  .section-head h2 { font-size: 24px; }
  .plugin-grid { grid-template-columns: 1fr; }
  .plugin-card { padding: 20px; }
  .card-foot { flex-wrap: wrap; }
  .card-cta { width: 100%; }
  .plan-grid { grid-template-columns: 1fr; }
  .qr-img { width: 190px; height: 190px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .nav a, .nav-item { padding: 6px 9px; }
}
