/* ==========================================================
   PromptWork · 全站样式（PC + H5 响应式）
   ========================================================== */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --ink: #0f1115;
  --ink-2: #3d4450;
  --muted: #737b8a;
  --faint: #9aa2b1;
  --line: #e8eaef;
  --line-2: #f0f2f5;

  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --brand-soft: #eef0ff;
  --brand-ink: #3730a3;

  --gold: #b45309;
  --gold-soft: #fef3c7;
  --ad: #f97316;
  --ok: #16a34a;
  --danger: #dc2626;

  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;
  --r-xl: 22px;

  --sh-1: 0 1px 2px rgba(15, 17, 21, .04), 0 1px 3px rgba(15, 17, 21, .04);
  --sh-2: 0 4px 14px rgba(15, 17, 21, .07);
  --sh-3: 0 12px 40px rgba(15, 17, 21, .12);

  --nav-h: 62px;
  --maxw: 1280px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Source Han Sans SC", Inter, "Segoe UI", Roboto, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -.01em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.hide { display: none !important; }

/* ============ 导航 ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; gap: 22px; }

.logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px;
  box-shadow: 0 3px 10px rgba(79, 70, 229, .3);
}
.logo-text { font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.logo-text em { font-style: normal; color: var(--brand); }

.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 7px 13px; border-radius: var(--r-s); font-size: 14.5px;
  color: var(--ink-2); font-weight: 500; transition: .16s;
}
.nav-links a:hover { background: var(--line-2); color: var(--ink); }
.nav-links a.on { color: var(--brand); background: var(--brand-soft); font-weight: 600; }

.nav-search {
  flex: 1; max-width: 400px; position: relative; margin-left: auto;
}
.nav-search input {
  width: 100%; height: 38px; border-radius: var(--r-xl);
  border: 1px solid var(--line); background: var(--surface-2);
  padding: 0 40px 0 38px; outline: none; transition: .18s; font-size: 14px;
}
.nav-search input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(79, 70, 229, .1); }
.nav-search .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 14px; }

.nav-act { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px; border-radius: var(--r-s);
  font-size: 14px; font-weight: 600; transition: .16s; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #4338ca; transform: translateY(-1px); box-shadow: var(--sh-2); }
.btn-vip {
  background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff;
  box-shadow: 0 3px 10px rgba(217, 119, 6, .28);
}
.btn-vip:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(217, 119, 6, .34); }
.btn-ghost { border: 1px solid var(--line); background: #fff; color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-soft { background: var(--brand-soft); color: var(--brand-ink); }
.btn-soft:hover { background: #e2e5ff; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 46px; padding: 0 26px; font-size: 15.5px; border-radius: var(--r-m); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

.nav-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); cursor: pointer;
  border: 2px solid #fff; box-shadow: var(--sh-1); position: relative;
}
.nav-avatar.is-vip::after {
  content: 'V'; position: absolute; right: -3px; bottom: -3px;
  width: 15px; height: 15px; border-radius: 50%; font-size: 9px;
  background: linear-gradient(135deg, #fbbf24, #d97706); border: 1.5px solid #fff;
  display: grid; place-items: center; color: #fff;
}
.burger { display: none; width: 38px; height: 38px; border-radius: var(--r-s); place-items: center; font-size: 19px; color: var(--ink-2); }

/* ============ Hero ============ */
.hero { padding: 52px 0 34px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -140px 0 auto 0; height: 380px;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(124, 58, 237, .13), transparent 70%);
  pointer-events: none;
}
.hero-in { position: relative; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px 5px 6px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  font-size: 12.5px; color: var(--ink-2); box-shadow: var(--sh-1); margin-bottom: 18px;
}
.hero-badge b { background: var(--brand); color: #fff; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.hero h1 { font-size: 42px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 14px; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--brand), var(--brand-2) 60%, #db2777); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 16px; max-width: 620px; margin: 0 auto 26px; }

.searchbox { max-width: 660px; margin: 0 auto; position: relative; }
.searchbox input {
  width: 100%; height: 54px; border-radius: 27px; border: 1px solid var(--line);
  background: #fff; padding: 0 122px 0 50px; font-size: 15.5px; outline: none;
  box-shadow: var(--sh-2); transition: .2s;
}
.searchbox input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79, 70, 229, .1), var(--sh-2); }
.searchbox .ic { position: absolute; left: 19px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 17px; }
.searchbox .go { position: absolute; right: 6px; top: 6px; height: 42px; padding: 0 22px; border-radius: 21px; background: var(--brand); color: #fff; font-weight: 600; font-size: 14.5px; }
.searchbox .go:hover { background: #4338ca; }

.hot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.hot span { font-size: 13px; color: var(--faint); align-self: center; }
.hot button {
  padding: 5px 12px; border-radius: 20px; background: #fff; border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2); transition: .16s;
}
.hot button:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

.stats-row { display: flex; justify-content: center; gap: 44px; margin-top: 34px; flex-wrap: wrap; }
.stat b { display: block; font-size: 25px; font-weight: 800; letter-spacing: -.02em; }
.stat span { font-size: 12.5px; color: var(--muted); }

/* ============ 广告位 ============ */
.ad { position: relative; border-radius: var(--r-l); overflow: hidden; }
.ad-tag {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  font-size: 10px; padding: 2px 7px; border-radius: 4px; letter-spacing: .04em;
  background: rgba(15, 17, 21, .42); color: #fff; font-weight: 600; backdrop-filter: blur(4px);
}
.ad-banner {
  display: flex; align-items: center; gap: 20px; padding: 20px 24px;
  border: 1px solid var(--line); background: var(--surface);
}
.ad-banner .ad-ic { width: 50px; height: 50px; border-radius: var(--r-m); display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.ad-banner .ad-body { flex: 1; min-width: 0; }
.ad-banner h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 3px; }
.ad-banner p { margin: 0; font-size: 13.5px; color: var(--muted); }
.ad-blue .ad-ic { background: #e0f2fe; color: #0369a1; }
.ad-violet .ad-ic { background: #ede9fe; color: #6d28d9; }
.ad-amber .ad-ic { background: #fef3c7; color: #b45309; }
.ad-green .ad-ic { background: #dcfce7; color: #15803d; }
.ad-pink .ad-ic { background: #fce7f3; color: #be185d; }

.ad-feed {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 18px; padding: 18px 22px;
  background: linear-gradient(120deg, #fff, var(--surface-2));
  border: 1px dashed #dfe3ea; border-radius: var(--r-l);
}
.ad-feed .ad-ic { width: 44px; height: 44px; border-radius: var(--r-m); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.ad-feed h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 2px; }
.ad-feed p { margin: 0; font-size: 13px; color: var(--muted); }

.ad-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 18px; text-align: center;
}
.ad-box .ad-ic { width: 46px; height: 46px; border-radius: var(--r-m); display: grid; place-items: center; font-size: 21px; margin: 0 auto 12px; }
.ad-box h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 5px; }
.ad-box p { margin: 0 0 13px; font-size: 12.5px; color: var(--muted); }
.ad-slot-id { font-size: 10px; color: #c3c9d4; font-family: var(--mono); margin-top: 9px; }

/* ============ 筛选栏 ============ */
.filters { position: sticky; top: var(--nav-h); z-index: 60; background: var(--bg); padding: 14px 0 12px; border-bottom: 1px solid var(--line); }
.cats { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cats::-webkit-scrollbar { display: none; }
.cat {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: 8px 15px; border-radius: var(--r-xl); background: #fff;
  border: 1px solid var(--line); font-size: 14px; color: var(--ink-2);
  font-weight: 500; transition: .16s; white-space: nowrap;
}
.cat:hover { border-color: #cdd2dc; }
.cat.on { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
.cat i { font-style: normal; opacity: .7; }

.subfilters { display: flex; align-items: center; gap: 10px; margin-top: 11px; flex-wrap: wrap; }
.selectbox { position: relative; }
.selectbox select {
  appearance: none; -webkit-appearance: none;
  height: 34px; padding: 0 30px 0 12px; border-radius: var(--r-s);
  border: 1px solid var(--line); background: #fff; font-size: 13.5px; color: var(--ink-2);
  outline: none; cursor: pointer;
}
.selectbox::after { content: '⌄'; position: absolute; right: 11px; top: 3px; color: var(--faint); pointer-events: none; font-size: 14px; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; user-select: none; }
.chk input { width: 15px; height: 15px; accent-color: var(--brand); cursor: pointer; }
.result-count { margin-left: auto; font-size: 13px; color: var(--muted); }
.result-count b { color: var(--ink); }

/* ============ 布局 ============ */
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 26px; padding: 24px 0 60px; align-items: start; }
.aside { position: sticky; top: calc(var(--nav-h) + 100px); display: grid; gap: 16px; }

/* 首页案例网格：minmax 280px 让 906px 的网格区能放下 3 列，避免 9 张一页时最后一行出现单卡孤立的视觉空洞（2 列时 9%2=1）
 * 同时 4 列会在更宽的浏览器上自然展开（≥~1080px 网格宽度时） */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }

/* ============ 案例卡片 ============ */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s cubic-bezier(.2,.8,.3,1), box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-3); border-color: #dfe3ea; }

/* 上方：效果预览 */
.card-art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.card-art .art { width: 100%; height: 100%; }
.cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-art .badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 2; }
.tag-pill {
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 5px;
  background: rgba(255, 255, 255, .93); color: var(--ink-2); backdrop-filter: blur(6px);
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.tag-pro { background: linear-gradient(135deg, #fbbf24, #d97706); color: #fff; }
.card-art .tool {
  position: absolute; bottom: 10px; right: 10px; z-index: 2;
  font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 5px;
  background: rgba(15, 17, 21, .62); color: #fff; backdrop-filter: blur(6px);
}
/* 多工具标签：右下对齐、可换行 */
.tool-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tool-tags.inline { display: inline-flex; vertical-align: middle; }
.tool-tags.nowrap { flex-wrap: nowrap; }
.tool-pill {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 5px;
  background: rgba(15, 17, 21, .62); color: #fff; backdrop-filter: blur(6px); white-space: nowrap;
}
.tool-pill.sm { font-size: 10.5px; padding: 2px 7px; }
.tool-pill.more { background: rgba(15, 17, 21, .45); }
.card-art .tool-tags {
  position: absolute; bottom: 10px; right: 10px; z-index: 2;
  max-width: calc(100% - 20px); justify-content: flex-end;
}
.card-art .zoom {
  position: absolute; inset: 0; background: rgba(15,17,21,.34); opacity: 0;
  display: grid; place-items: center; transition: .2s; z-index: 1;
}
.card:hover .card-art .zoom { opacity: 1; }
.zoom span { background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; padding: 8px 18px; border-radius: 20px; box-shadow: var(--sh-2); }

/* 下方：提示词 */
.card-body { padding: 14px 15px 15px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.card-title { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.4; }
.card-title:hover { color: var(--brand); }

.prompt-box { position: relative; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-m); padding: 11px 12px 10px; }
.prompt-box .lbl {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10.5px; font-weight: 700; color: var(--faint); letter-spacing: .06em; margin-bottom: 6px;
}
.prompt-box pre {
  margin: 0; font-family: var(--mono); font-size: 11.5px; line-height: 1.62; color: var(--ink-2);
  white-space: pre-wrap; word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.prompt-box.locked pre { filter: blur(4.5px); user-select: none; }
.prompt-lock {
  position: absolute; inset: 0; display: grid; place-items: center; gap: 6px;
  background: linear-gradient(180deg, rgba(250,251,252,.55), rgba(250,251,252,.95));
  border-radius: var(--r-m); align-content: center;
}
.prompt-lock b { font-size: 12.5px; color: var(--gold); }
.copy-btn { font-size: 11px; font-weight: 600; color: var(--brand); padding: 2px 7px; border-radius: 5px; transition: .14s; }
.copy-btn:hover { background: var(--brand-soft); }
.copy-btn.done { color: var(--ok); }

.card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.card-tags span { font-size: 11.5px; color: var(--muted); background: var(--line-2); padding: 2px 8px; border-radius: 4px; }

.card-foot {
  display: flex; align-items: center; gap: 8px; margin-top: auto;
  padding-top: 11px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--muted);
}
.avatar { border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; flex-shrink: 0; }
.card-foot .who { font-weight: 500; color: var(--ink-2); }
.card-foot .metrics { margin-left: auto; display: flex; gap: 11px; }
.card-foot .fav { cursor: pointer; transition: .14s; }
.card-foot .fav:hover, .card-foot .fav.on { color: var(--danger); }

/* ============ 侧栏组件 ============ */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px 17px; }
.panel h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 7px; }
.panel h3 .more { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--brand); }

.rank-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.rank-item:last-child { border-bottom: none; }
.rank-no {
  width: 19px; height: 19px; border-radius: 5px; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; background: var(--line-2); color: var(--muted); flex-shrink: 0;
}
.rank-item:nth-child(1) .rank-no { background: #fef2f2; color: #dc2626; }
.rank-item:nth-child(2) .rank-no { background: #fff7ed; color: #ea580c; }
.rank-item:nth-child(3) .rank-no { background: #fefce8; color: #ca8a04; }
.rank-item .t { font-size: 13px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-item:hover .t { color: var(--brand); }
.rank-item .n { font-size: 11.5px; color: var(--faint); flex-shrink: 0; }

.vip-card {
  border-radius: var(--r-l); padding: 20px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #312e81, #4f46e5 55%, #7c3aed);
}
.vip-card::after {
  content: ''; position: absolute; right: -34px; top: -34px; width: 130px; height: 130px;
  border-radius: 50%; background: rgba(255, 255, 255, .1);
}
.vip-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 7px; position: relative; }
.vip-card p { font-size: 12.5px; opacity: .82; margin: 0 0 14px; position: relative; line-height: 1.6; }
.vip-card .price { font-size: 27px; font-weight: 800; position: relative; }
.vip-card .price small { font-size: 12px; font-weight: 500; opacity: .8; }
.vip-card .btn { background: #fff; color: var(--brand-ink); position: relative; margin-top: 12px; }
.vip-card .btn:hover { background: #f1f0ff; }

/* ============ 页脚 / TabBar ============ */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 40px 0 28px; margin-top: 20px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { font-size: 13.5px; font-weight: 700; margin-bottom: 12px; }
.foot-grid li { font-size: 13px; color: var(--muted); padding: 4px 0; }
.foot-grid li:hover { color: var(--brand); }
.foot-desc { font-size: 13px; color: var(--muted); max-width: 300px; margin: 10px 0 0; line-height: 1.7; }
.foot-btm { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--faint); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot-admin { color: var(--faint); border-bottom: 1px dashed transparent; }
.foot-admin:hover { color: var(--brand); border-bottom-color: var(--brand); }

.tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}
.tabbar-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.tabbar a { display: grid; justify-items: center; gap: 2px; padding: 5px 0; font-size: 10.5px; color: var(--muted); }
.tabbar a i { font-style: normal; font-size: 18px; line-height: 1; }
.tabbar a.on { color: var(--brand); font-weight: 600; }

/* ============ 详情页 ============ */
.crumb { font-size: 13px; color: var(--muted); padding: 18px 0 4px; display: flex; gap: 7px; flex-wrap: wrap; }
.crumb a:hover { color: var(--brand); }

.detail { display: grid; grid-template-columns: 1fr 340px; gap: 28px; padding: 14px 0 60px; align-items: start; }
.dcol { display: grid; gap: 18px; min-width: 0; }
.dside { position: sticky; top: calc(var(--nav-h) + 18px); display: grid; gap: 16px; }

.dhero { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.dhero-art { aspect-ratio: 16 / 10; position: relative; background: var(--surface-2); }
.dhero-art .art { width: 100%; height: 100%; }
.dhero-meta { padding: 18px 20px; }
.dhero-meta h1 { font-size: 25px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.dhero-meta .sum { color: var(--muted); font-size: 14.5px; margin: 0 0 14px; }
.meta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.meta-row .who { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 500; }

.block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px; }
.block-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.block-head h2 { font-size: 16.5px; font-weight: 700; }
.block-head .hint { font-size: 12.5px; color: var(--faint); font-weight: 400; }
.block-head .act { margin-left: auto; display: flex; gap: 8px; }

.code-area { position: relative; background: #0f1115; border-radius: var(--r-m); overflow: hidden; }
.code-area pre {
  margin: 0; padding: 18px 20px; font-family: var(--mono); font-size: 13px; line-height: 1.78;
  color: #d7dce5; white-space: pre-wrap; word-break: break-word; max-height: 520px; overflow: auto;
}
.code-area pre .v { color: #fbbf24; font-weight: 600; }
.code-area pre .k { color: #7dd3fc; }
.code-area.locked pre { filter: blur(6px); user-select: none; max-height: 300px; }
.code-lock {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px;
  background: rgba(15, 17, 21, .55); text-align: center; padding: 20px; color: #fff;
}
.code-lock .ic { font-size: 30px; }
.code-lock b { font-size: 16px; }
.code-lock p { margin: 0; font-size: 13px; opacity: .78; max-width: 300px; }

.neg-box { background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--r-m); padding: 13px 15px; font-family: var(--mono); font-size: 12.5px; color: #991b1b; line-height: 1.7; }

table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl th, table.tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.tbl th { font-size: 12px; color: var(--faint); font-weight: 600; letter-spacing: .04em; background: var(--surface-2); }
table.tbl tr:last-child td { border-bottom: none; }
table.tbl td:first-child { font-weight: 600; white-space: nowrap; }
table.tbl code { font-family: var(--mono); font-size: 12.5px; background: var(--brand-soft); color: var(--brand-ink); padding: 1px 6px; border-radius: 4px; }

.tips li { display: flex; gap: 10px; padding: 8px 0; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.tips li::before { content: '✓'; color: var(--ok); font-weight: 800; flex-shrink: 0; }

.dact { display: grid; gap: 9px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-m); overflow: hidden; }
.stat-grid div { background: #fff; padding: 12px 8px; text-align: center; }
.stat-grid b { display: block; font-size: 17px; font-weight: 800; }
.stat-grid span { font-size: 11.5px; color: var(--muted); }

.rel-item { display: flex; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.rel-item:last-child { border-bottom: none; }
.rel-thumb { width: 72px; height: 46px; border-radius: var(--r-s); overflow: hidden; flex-shrink: 0; background: var(--surface-2); }
.rel-thumb .art { width: 100%; height: 100%; }
.rel-item .t { font-size: 13px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rel-item:hover .t { color: var(--brand); }
.rel-item .m { font-size: 11.5px; color: var(--faint); margin-top: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.comment { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.comment:last-child { border-bottom: none; }
.comment .c-body { flex: 1; min-width: 0; }
.comment .c-top { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.comment .c-name { font-size: 13.5px; font-weight: 600; }
.comment .c-time { font-size: 12px; color: var(--faint); }
.comment p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
.comment .c-act { margin-top: 6px; font-size: 12px; color: var(--faint); display: flex; gap: 14px; }
.comment .c-tag.pending { font-size: 11px; color: #b45309; background: #fef3c7; border: 1px solid #fcd34d; border-radius: 6px; padding: 1px 6px; font-weight: 600; }
.comment-input { display: flex; gap: 10px; margin-top: 6px; }
.comment-input textarea {
  flex: 1; min-height: 68px; border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 10px 12px; outline: none; resize: vertical; font-size: 13.5px;
}
.comment-input textarea:focus { border-color: var(--brand); }

/* ============ 后台评论审核 ============ */
.cm-review { padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.cm-review:last-child { border-bottom: none; }
/* 过滤开关（双开关） */
.cm-switches { display: flex; gap: 24px; flex-wrap: wrap; }
.cm-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; color: var(--ink-2); }
.cm-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.cm-track { position: relative; width: 42px; height: 24px; border-radius: 999px; background: var(--line-2); transition: background .18s; flex: none; }
.cm-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .18s; }
.cm-switch input:checked + .cm-track { background: var(--brand); }
.cm-switch input:checked + .cm-track::after { transform: translateX(18px); }
.cm-switch input:focus-visible + .cm-track { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.cm-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--faint); margin-bottom: 6px; flex-wrap: wrap; }
.cm-meta b { color: var(--ink); font-size: 13px; }
.cm-meta .id { color: var(--brand); }
.cm-text { margin: 0 0 10px; font-size: 13.5px; color: var(--ink-2); line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.cm-acts { display: flex; gap: 10px; }
/* 状态徽标（后台评论列表通用） */
.c-tag { font-size: 11px; border-radius: 6px; padding: 1px 7px; font-weight: 600; }
.c-tag.pending { color: #b45309; background: #fef3c7; border: 1px solid #fcd34d; }
.c-tag.approved { color: #15803d; background: #dcfce7; border: 1px solid #86efac; }
.c-tag.rejected { color: #b91c1c; background: #fee2e2; border: 1px solid #fca5a5; }
/* tab 切换 */
.cm-tabs .cm-tab { position: relative; }
.cm-tabs .cm-tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.cm-tabs .cm-tab.active .aj-pill { background: rgba(255,255,255,.22); color: #fff; }
/* 内联编辑 */
.cm-edit { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 10px; }
.cm-edit-name { width: 220px; max-width: 100%; padding: 8px 10px; font-size: 13px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-2); color: var(--ink); }
.cm-edit-text { width: 100%; min-height: 72px; padding: 10px; font-size: 13.5px; line-height: 1.6; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-2); color: var(--ink); resize: vertical; font-family: inherit; }

/* ============ 会员页 ============ */
.page-head { text-align: center; padding: 46px 0 30px; }
.page-head h1 { font-size: 34px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 12px; }
.page-head p { color: var(--muted); font-size: 15.5px; max-width: 560px; margin: 0 auto; }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-bottom: 12px; }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 24px 20px; display: flex; flex-direction: column; position: relative; transition: .2s;
}
.plan:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.plan.hot { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, .1), var(--sh-2); }
.plan-tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff;
  font-size: 11.5px; font-weight: 700; padding: 3px 13px; border-radius: 20px; white-space: nowrap;
  box-shadow: 0 3px 8px rgba(217, 119, 6, .3);
}
.plan h3 { font-size: 17px; font-weight: 800; margin-bottom: 5px; }
.plan .pdesc { font-size: 12.5px; color: var(--muted); min-height: 36px; margin-bottom: 14px; line-height: 1.5; }
.plan .pprice { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.plan .pprice b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.plan .pprice i { font-style: normal; font-size: 13px; color: var(--muted); }
.plan .porigin { font-size: 12.5px; color: var(--faint); text-decoration: line-through; margin-bottom: 16px; min-height: 19px; }
.plan ul { display: grid; gap: 8px; margin-bottom: 20px; }
.plan li { font-size: 13.3px; color: var(--ink-2); display: flex; gap: 8px; line-height: 1.5; }
.plan li::before { content: '✓'; color: var(--ok); font-weight: 800; flex-shrink: 0; }
.plan li.no { color: var(--faint); }
.plan li.no::before { content: '×'; color: #d4d8e0; }
.plan .btn { margin-top: auto; }

.matrix { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.matrix table { width: 100%; border-collapse: collapse; font-size: 14px; }
.matrix th, .matrix td { padding: 13px 16px; text-align: center; border-bottom: 1px solid var(--line-2); }
.matrix th { background: var(--surface-2); font-size: 13.5px; font-weight: 700; }
.matrix th:first-child, .matrix td:first-child { text-align: left; }
.matrix td.y { color: var(--ok); font-weight: 700; }
.matrix td.n { color: #cfd4dd; }
.matrix .col-vip { background: rgba(79, 70, 229, .04); }
.matrix tr:last-child td { border-bottom: none; }

.points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.point-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 18px; text-align: center; cursor: pointer; transition: .16s; position: relative;
}
.point-card:hover, .point-card.on { border-color: var(--brand); background: var(--brand-soft); }
.point-card b { display: block; font-size: 21px; font-weight: 800; }
.point-card .bonus { font-size: 11.5px; color: var(--ad); font-weight: 600; margin: 2px 0 8px; min-height: 17px; }
.point-card .p { font-size: 14px; color: var(--brand); font-weight: 700; }

.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); margin-bottom: 10px; overflow: hidden; }
.faq-q { padding: 15px 18px; font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.faq-q .mk { margin-left: auto; color: var(--faint); transition: .2s; flex-shrink: 0; }
.faq-item.open .faq-q .mk { transform: rotate(45deg); }
.faq-a { padding: 0 18px; max-height: 0; overflow: hidden; transition: .25s; font-size: 13.8px; color: var(--muted); line-height: 1.75; }
.faq-item.open .faq-a { max-height: 260px; padding: 0 18px 16px; }

/* ============ 个人中心 ============ */
.profile { display: grid; grid-template-columns: 230px 1fr; gap: 26px; padding: 22px 0 60px; align-items: start; }
.pnav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 8px; position: sticky; top: calc(var(--nav-h) + 18px); }
.pnav button {
  width: 100%; text-align: left; padding: 10px 13px; border-radius: var(--r-s);
  font-size: 14px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; transition: .14s;
}
.pnav button:hover { background: var(--line-2); }
.pnav button.on { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.pnav button i { font-style: normal; opacity: .8; width: 17px; }
.pnav .badge { margin-left: auto; font-size: 11px; background: var(--line-2); color: var(--muted); padding: 1px 7px; border-radius: 10px; }

.uhead {
  background: linear-gradient(120deg, #312e81, #4f46e5 55%, #7c3aed);
  border-radius: var(--r-l); padding: 24px; color: #fff; display: flex; gap: 18px;
  align-items: center; position: relative; overflow: hidden; flex-wrap: wrap;
}
.uhead::after { content: ''; position: absolute; right: -50px; top: -60px; width: 210px; height: 210px; border-radius: 50%; background: rgba(255,255,255,.09); pointer-events: none; }
.uhead .ua { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 25px; font-weight: 800; border: 2px solid rgba(255,255,255,.4); position: relative; }
.uhead .ui-body { position: relative; flex: 1; min-width: 180px; }
.uhead h2 { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.vip-chip { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 20px; background: linear-gradient(135deg, #fbbf24, #d97706); }
.free-chip { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 20px; background: rgba(124,58,237,.16); color: var(--brand-ink); }
.uhead p { margin: 5px 0 0; font-size: 13px; opacity: .82; }
.uhead .uact { position: relative; display: flex; gap: 9px; z-index: 1; }

/* ---- 免费版用户卡片：单色浅紫底 + 深色文字（保留品牌色调一致） ---- */
.uhead.is-free {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  color: var(--ink, #1f2937);
}
.uhead.is-free::after { background: rgba(124,58,237,.10); }
.uhead.is-free .ua {
  background: rgba(124,58,237,.16);
  color: var(--brand-ink, #312e81);
  border-color: rgba(124,58,237,.30);
}
.uhead.is-free h2 { color: var(--ink, #1f2937); }
.uhead.is-free p { color: var(--ink-2, #4b5563); opacity: 1; }
.uhead.is-free .uact .btn-vip {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
}
.uhead.is-free .uact #h-out {
  background: rgba(0,0,0,.06);
  color: var(--ink, #1f2937);
  border: 1px solid rgba(0,0,0,.08);
}

/* ---- 投标缩略卡（profile.html：「我的投稿」专用） ---- */
.post-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  padding: 14px;
  background: var(--surface, #fff);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  transition: border-color .2s ease;
}
.post-card:hover { border-color: var(--brand, #4f46e5); }
.post-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-2, #f1f5f9);
  display: block;
}
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); background: var(--bg-2); }
.post-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.post-status { align-self: flex-start; }
.post-title { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--muted); }
.post-cat { color: var(--brand); font-weight: 600; }
.post-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.post-snippet {
  font-size: 13px; color: var(--ink-1); line-height: 1.5;
  background: var(--bg-2, #f8fafc); border-radius: 8px;
  padding: 8px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-stats { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); margin-top: auto; }
.post-stats span { white-space: nowrap; }
@media (max-width: 640px) {
  .post-card { grid-template-columns: 1fr; }
  .post-cover { aspect-ratio: 16 / 9; }
}


.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px; }
.kpi b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.kpi span { font-size: 12.5px; color: var(--muted); }
.kpi .trend { font-size: 11.5px; color: var(--ok); font-weight: 600; }

.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.mini {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  overflow: hidden; display: flex; gap: 0; flex-direction: column; transition: .18s;
}
.mini:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.mini-art { aspect-ratio: 16/9; background: var(--surface-2); overflow: hidden; }
.mini-art .art { width: 100%; height: 100%; }
.mini-b { padding: 11px 13px; }
.mini-b .t { font-size: 13.8px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-b .m { font-size: 11.5px; color: var(--faint); margin-top: 5px; display: flex; gap: 10px; }

.empty { text-align: center; padding: 54px 20px; color: var(--muted); }
.empty .ic { font-size: 40px; opacity: .28; margin-bottom: 12px; }
.empty p { margin: 0 0 16px; font-size: 14px; }

.order-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.order-row:last-child { border-bottom: none; }
.order-row .oi { width: 40px; height: 40px; border-radius: var(--r-s); display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 18px; flex-shrink: 0; }
.order-row .ob { flex: 1; min-width: 140px; }
.order-row .ob b { font-size: 14px; font-weight: 600; }
.order-row .ob span { display: block; font-size: 12px; color: var(--faint); }
.order-row .op { font-weight: 700; font-size: 15px; }
.status-chip { font-size: 11.5px; padding: 2px 9px; border-radius: 20px; font-weight: 600; }
.status-ok { background: #dcfce7; color: #15803d; }
.status-wait { background: #fef3c7; color: #b45309; }

.setting-row { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.setting-row:last-child { border-bottom: none; }
.setting-row .sb { flex: 1; min-width: 180px; }
.setting-row .sb b { font-size: 14px; font-weight: 600; display: block; }
.setting-row .sb span { font-size: 12.5px; color: var(--muted); }
.switch { width: 44px; height: 25px; border-radius: 13px; background: #d9dde5; position: relative; transition: .2s; flex-shrink: 0; }
.switch::after { content: ''; position: absolute; width: 19px; height: 19px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch.on { background: var(--brand); }
.switch.on::after { left: 22px; }

/* ============ 弹窗 / Toast ============ */
.mask {
  position: fixed; inset: 0; background: rgba(15, 17, 21, .5); z-index: 200;
  display: grid; place-items: center; padding: 20px; backdrop-filter: blur(3px);
  animation: fade .18s ease;
}
@keyframes fade { from { opacity: 0 } }
.modal {
  background: #fff; border-radius: var(--r-xl); width: 100%; max-width: 420px;
  padding: 28px; box-shadow: var(--sh-3); animation: pop .22s cubic-bezier(.2,.9,.3,1);
  max-height: 90vh; overflow: auto;
}
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97) } }
.modal h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.modal .sub { color: var(--muted); font-size: 13.5px; margin: 0 0 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.field input {
  width: 100%; height: 42px; border: 1px solid var(--line); border-radius: var(--r-s);
  padding: 0 13px; outline: none; transition: .16s;
}
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
.modal-x { position: absolute; }
.modal-foot { display: flex; gap: 10px; margin-top: 20px; }
.modal-note { font-size: 12px; color: var(--faint); text-align: center; margin-top: 14px; line-height: 1.6; }

.pay-opts { display: grid; gap: 10px; margin: 16px 0; }
.pay-opt { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--r-m); cursor: pointer; transition: .14s; }
.pay-opt:hover, .pay-opt.on { border-color: var(--brand); background: var(--brand-soft); }
.pay-opt .pi { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; font-size: 15px; color: #fff; flex-shrink: 0; }
.pay-opt b { font-size: 14px; font-weight: 600; }
.pay-opt .rd { margin-left: auto; width: 17px; height: 17px; border-radius: 50%; border: 2px solid #d4d8e0; }
.pay-opt.on .rd { border-color: var(--brand); background: radial-gradient(circle, var(--brand) 42%, #fff 46%); }
.pay-sum { background: var(--surface-2); border-radius: var(--r-m); padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.pay-sum span { font-size: 13.5px; color: var(--muted); }
.pay-sum b { font-size: 24px; font-weight: 800; color: var(--danger); }

/* 支付舞台：扫码 / 唤起支付 */
.pay-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 4px 6px; }
.pay-qr { background: #fff; padding: 12px; border-radius: 14px; box-shadow: 0 2px 14px rgba(0,0,0,.08); }
.pay-qr img { width: 220px; height: 220px; display: block; }
.pay-hint { font-size: 13px; color: var(--muted); text-align: center; margin: 0; line-height: 1.6; }
.pay-monitor { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border-radius: var(--r-m); padding: 12px 16px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.pay-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(22,119,255,.2); border-top-color: #1677ff; border-radius: 50%; animation: pay-spin .8s linear infinite; flex-shrink: 0; }
@keyframes pay-spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(14px);
  background: rgba(15, 17, 21, .92); color: #fff; padding: 11px 20px; border-radius: var(--r-s);
  font-size: 14px; z-index: 300; opacity: 0; transition: .22s; pointer-events: none;
  box-shadow: var(--sh-3); max-width: 88vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.drawer-mask { position: fixed; inset: 0; background: rgba(15,17,21,.4); z-index: 150; animation: fade .18s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 270px; background: #fff; z-index: 160;
  padding: 18px; animation: slide .22s cubic-bezier(.2,.9,.3,1); overflow: auto;
}
@keyframes slide { from { transform: translateX(100%) } }
.drawer h4 { font-size: 13px; color: var(--faint); margin: 16px 0 8px; font-weight: 600; }
.drawer a, .drawer button { display: block; width: 100%; text-align: left; padding: 11px 12px; border-radius: var(--r-s); font-size: 15px; color: var(--ink-2); }
.drawer a:hover, .drawer button:hover { background: var(--line-2); }
.drawer a.on { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }

.section-title { display: flex; align-items: baseline; gap: 12px; margin: 34px 0 16px; }
.section-title h2 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.section-title p { margin: 0; font-size: 13.5px; color: var(--muted); }

.load-more { display: grid; place-items: center; padding: 26px 0 0; }

/* ============ 响应式 ============ */
@media (max-width: 1100px) {
  .layout { grid-template-columns: 1fr; }
  .aside { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .detail { grid-template-columns: 1fr; }
  .dside { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .nav-search { max-width: 260px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-search { display: none; }
  .burger { display: grid; }
  .nav-act .btn-ghost { display: none; }
  .profile { grid-template-columns: 1fr; }
  .pnav { position: static; display: flex; gap: 4px; overflow-x: auto; padding: 6px; }
  .pnav::-webkit-scrollbar { display: none; }
  .pnav button { width: auto; white-space: nowrap; }
  .pnav .badge { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .points { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  body { padding-bottom: 62px; font-size: 14.5px; }
  .wrap, .nav-in { padding: 0 16px; }
  .tabbar { display: block; }
  .footer { margin-bottom: 0; }

  .hero { padding: 30px 0 22px; }
  .hero h1 { font-size: 27px; }
  .hero p { font-size: 14.5px; margin-bottom: 20px; }
  .searchbox input { height: 48px; font-size: 15px; padding: 0 92px 0 44px; }
  .searchbox .go { height: 38px; padding: 0 16px; font-size: 13.5px; }
  .stats-row { gap: 26px; margin-top: 24px; }
  .stat b { font-size: 20px; }

  .grid { grid-template-columns: 1fr; gap: 14px; }
  .filters { top: var(--nav-h); padding: 10px 0; }
  .subfilters { gap: 8px; }
  .result-count { width: 100%; margin-left: 0; order: 9; }

  .ad-banner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
  .ad-banner .btn { width: 100%; }
  .ad-feed { flex-direction: column; align-items: flex-start; }
  .ad-feed .btn { width: 100%; }
  .aside { grid-template-columns: 1fr; }
  .dside { grid-template-columns: 1fr; }

  .page-head { padding: 28px 0 20px; }
  .page-head h1 { font-size: 25px; }
  .page-head p { font-size: 14px; }
  .plans { grid-template-columns: 1fr; }
  .points { grid-template-columns: repeat(2, 1fr); }
  .matrix { overflow-x: auto; }
  .matrix table { min-width: 480px; }

  .dhero-meta { padding: 15px 16px; }
  .dhero-meta h1 { font-size: 20px; }
  .block { padding: 16px; }
  .code-area pre { font-size: 12px; padding: 14px 15px; }
  .section-title h2 { font-size: 18px; }
  .foot-grid { grid-template-columns: 1fr; }
  .uhead { padding: 18px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .modal { padding: 22px; border-radius: var(--r-l); }
  table.tbl { font-size: 12.8px; }
  table.tbl th, table.tbl td { padding: 8px 9px; }
}

@media (max-width: 380px) {
  .kpis, .points { grid-template-columns: 1fr; }
  .logo-text { display: none; }
}

/* ==========================================================
   PromptWork · 管理后台样式（前缀 aj-）
   ========================================================== */
.aj-login { min-height: 100vh; display: grid; place-items: center; background:
  radial-gradient(1200px 500px at 50% -10%, #eef0ff 0%, var(--bg) 60%); padding: 24px; }
.aj-login .card { width: 360px; max-width: 100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-l); box-shadow: var(--sh-2); padding: 30px; }
.aj-login h2 { font-size: 20px; display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.aj-login .sub { color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.aj-login .field { margin-bottom: 14px; }

.aj-wrap { display: flex; min-height: 100vh; background: var(--bg); }
.aj-side { width: 232px; flex-shrink: 0; background: #0f1115; color: #cfd3dc; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; padding: 18px 14px; }
.aj-brand { display: flex; align-items: center; gap: 9px; padding: 6px 8px 16px; }
.aj-brand .lm { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; color: #fff; font-weight: 800; }
.aj-brand b { color: #fff; font-size: 15px; letter-spacing: -.01em; }
.aj-brand small { color: #6b7280; font-size: 11px; display: block; }
.aj-nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; }
.aj-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: #b6bcc8;
  font-size: 14px; font-weight: 500; cursor: pointer; }
.aj-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.aj-nav a.on { background: var(--brand); color: #fff; }
.aj-nav a .ic { width: 18px; text-align: center; opacity: .9; }
.aj-side .foot { padding: 12px 8px 4px; font-size: 11px; color: #5b6270; border-top: 1px solid rgba(255,255,255,.07); }
.aj-side .foot button { color: #9aa2b1; font-size: 12px; margin-top: 8px; }

.aj-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.aj-top { height: 58px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center;
  justify-content: space-between; padding: 0 24px; position: sticky; top: 0; z-index: 20; }
.aj-top h1 { font-size: 16px; }
.aj-top .meta { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 12px; }
.aj-content { padding: 24px; max-width: 1100px; width: 100%; }
.aj-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.aj-sec-head h2 { font-size: 18px; }
.aj-sec-head p { color: var(--muted); font-size: 13px; margin: 2px 0 0; }
.aj-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px; box-shadow: var(--sh-1); }

.aj-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 22px; }
.aj-kpi .k { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 18px; box-shadow: var(--sh-1); }
.aj-kpi .k b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.aj-kpi .k span { color: var(--muted); font-size: 12.5px; }
.aj-kpi .k.accent b { color: var(--brand); }

.aj-bars { display: grid; gap: 10px; }
.aj-bar { display: grid; grid-template-columns: 92px 1fr 42px; align-items: center; gap: 10px; font-size: 13px; }
.aj-bar .track { height: 10px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.aj-bar .fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 99px; }
.aj-bar .n { text-align: right; color: var(--muted); }

.aj-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.aj-tbl th, .aj-tbl td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.aj-tbl th { color: var(--muted); font-weight: 600; font-size: 12.5px; background: var(--surface-2); }
.aj-tbl tr:hover td { background: var(--surface-2); }
.aj-tbl .id { font-family: var(--mono); color: var(--faint); font-size: 12px; }
.aj-tbl .acts { display: flex; gap: 6px; justify-content: flex-end; }
.aj-pill { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.aj-pill.pro { background: var(--gold-soft); color: var(--gold); }
.aj-pill.off { background: #fee2e2; color: var(--danger); }
.aj-pill.on { background: #dcfce7; color: var(--ok); }

.aj-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.aj-toolbar input, .aj-toolbar select { height: 36px; border: 1px solid var(--line); border-radius: var(--r-s); padding: 0 12px; background: #fff; outline: none; font-size: 13.5px; }
.aj-toolbar input:focus, .aj-toolbar select:focus { border-color: var(--brand); }
.aj-sp { flex: 1; }

.aj-modal { width: 720px; max-width: 92vw; max-height: 86vh; overflow-y: auto; }
.aj-form { display: grid; gap: 14px; }
.aj-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.aj-field { display: flex; flex-direction: column; gap: 6px; }
.aj-field > label { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.aj-field .hint { font-size: 11.5px; color: var(--faint); font-weight: 400; }
.aj-field input, .aj-field select, .aj-field textarea { border: 1px solid var(--line); border-radius: var(--r-s); padding: 9px 11px;
  background: #fff; outline: none; font-size: 13.5px; width: 100%; font-family: inherit; }
.aj-field textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
.aj-field textarea.mono { font-family: var(--mono); font-size: 12.5px; }
.aj-field input:focus, .aj-field select:focus, .aj-field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
.aj-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.aj-check input { width: 16px; height: 16px; }
.aj-checks { display: flex; flex-wrap: wrap; gap: 7px 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--bg-2); }

.aj-dyn { display: grid; gap: 8px; }
.aj-dyn .item { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; }
.aj-dyn .item.three { grid-template-columns: 1fr 1fr 1fr auto; }
.aj-dyn .item input, .aj-dyn .item textarea { border: 1px solid var(--line); border-radius: var(--r-s); padding: 8px 10px; font-size: 13px; width: 100%; font-family: inherit; }
.aj-dyn .item .x { width: 34px; height: 34px; border-radius: var(--r-s); border: 1px solid var(--line); color: var(--danger); }
.aj-dyn .add { font-size: 13px; color: var(--brand); border: 1px dashed var(--brand); border-radius: var(--r-s); padding: 8px; }
.aj-sep { height: 1px; background: var(--line-2); margin: 4px 0; }

.aj-note { font-size: 12.5px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-s); padding: 12px 14px; line-height: 1.7; }
.aj-note b { color: var(--ink-2); }
.aj-empty { color: var(--faint); text-align: center; padding: 30px; font-size: 13.5px; }

@media (max-width: 880px) {
  .aj-side { position: fixed; left: 0; top: 0; z-index: 200; transform: translateX(-100%); transition: .2s; width: 220px; }
  .aj-side.open { transform: none; }
  .aj-row { grid-template-columns: 1fr; }
  .aj-top .burger { display: inline-flex; }
  .aj-content { padding: 16px; }
}
.aj-top .burger { display: none; font-size: 20px; margin-right: 10px; }

/* 详情页：案例上下条切换 */
.pager { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.pager .pager-hint { font-size: 12.5px; color: var(--faint); }
@media (max-width: 600px) {
  .pager { flex-wrap: wrap; }
  .pager .pager-hint { width: 100%; order: 3; text-align: center; }
}

/* 封面灯箱 */
.dhero-art { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, .92); padding: 24px; cursor: zoom-out;
}
.lightbox img {
  max-width: 100%; max-height: 100%;
  border-radius: 12px; box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}
.lightbox .lb-close {
  position: absolute; top: 18px; right: 22px;
  color: #fff; font-size: 26px; line-height: 1; cursor: pointer; opacity: .85;
}

/* 订单管理 */
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; }
.seg-btn { appearance: none; border: none; background: transparent; padding: 7px 14px; font-size: 13px; color: var(--muted); cursor: pointer; }
.seg-btn.on { background: var(--brand); color: #fff; }
.btn-xs { padding: 4px 10px; font-size: 12px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-1); cursor: pointer; }
.btn-xs.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.badge.b-pending { background: #fff4e5; color: #b26a00; }
.badge.b-paid { background: #e7f7ec; color: #1a8a3f; }
.badge.b-closed { background: #f0f0f2; color: #8a8a93; }
.badge.b-refunded { background: #fdeeff; color: #c0392b; }
.badge.b-expired { background: #f0f0f2; color: #8a8a93; }
