/* ==========================================================================
   ELEC-Com 设计系统
   主色：ELEC-Com 品牌红 #fc5531 / 深墨 #1d2129 / 中性灰阶
   ========================================================================== */
:root {
  --brand: #fc5531;
  --brand-dark: #e04218;
  --brand-soft: #fff2ee;
  --ink: #1d2129;
  --ink-2: #4e5969;
  --ink-3: #86909c;
  --line: #e5e6eb;
  --bg: #f4f5f7;
  --card: #ffffff;
  --blue: #1e80ff;
  --green: #00b42a;
  --purple: #722ed1;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04), 0 2px 8px rgba(0, 0, 0, .04);
  --shadow: 0 4px 16px rgba(0, 0, 0, .08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .12);
  --maxw: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.4; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-3); }
.small { font-size: 12px; }
.hide { display: none !important; }
.spacer { flex: 1; }

/* ---------- 顶栏 ---------- */
.topbar {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(180%) blur(8px);
}
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
  height: 56px; display: flex; align-items: center; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; letter-spacing: -.4px; white-space: nowrap; }
.logo .mark {
  width: 28px; height: 28px; border-radius: 7px; flex: none;
  background: linear-gradient(135deg, #fc5531, #ff8a5c);
  color: #fff; font-size: 15px; font-weight: 800;
  display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(252, 85, 49, .35);
}
.logo b { color: var(--brand); }

.nav { display: flex; gap: 4px; }
.nav a {
  padding: 7px 12px; border-radius: 6px; color: var(--ink-2);
  font-size: 14px; white-space: nowrap; transition: .15s;
}
.nav a:hover { background: var(--bg); color: var(--ink); }
.nav a.on { color: var(--brand); background: var(--brand-soft); font-weight: 600; }

.searchbox { flex: 1; max-width: 460px; position: relative; }
.searchbox input {
  width: 100%; height: 36px; padding: 0 40px 0 14px;
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--bg); outline: none; transition: .18s;
}
.searchbox input:focus { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(252, 85, 49, .1); }
.searchbox button {
  position: absolute; right: 4px; top: 3px; width: 30px; height: 30px;
  border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  color: var(--ink-3); display: grid; place-items: center;
}
.searchbox button:hover { color: var(--brand); background: var(--brand-soft); }

.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 16px; border-radius: 6px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer; white-space: nowrap;
  transition: .16s; font-size: 14px;
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; box-shadow: 0 4px 14px rgba(252, 85, 49, .3); }
.btn-ghost { border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg); color: var(--brand); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.icon-btn {
  position: relative; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: transparent; cursor: pointer; color: var(--ink-2);
  display: grid; place-items: center; transition: .15s;
}
.icon-btn:hover { background: var(--bg); color: var(--brand); }
.badge {
  position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px;
  padding: 0 4px; border-radius: 8px; background: var(--brand); color: #fff;
  font-size: 10px; line-height: 16px; text-align: center; font-weight: 700;
}

.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px;
  cursor: pointer; user-select: none;
}
.avatar.lg { width: 64px; height: 64px; font-size: 24px; }
.avatar.sm { width: 24px; height: 24px; font-size: 11px; }
.avatar.xl { width: 88px; height: 88px; font-size: 34px; }

.dropdown {
  position: absolute; top: 48px; right: 0; width: 200px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 6px; z-index: 200;
}
.dropdown a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: 6px; color: var(--ink-2); font-size: 13px;
}
.dropdown a:hover { background: var(--bg); color: var(--brand); }
.menu-wrap { position: relative; display: flex; align-items: center; gap: 8px; }

/* ---------- 布局 ---------- */
.main { padding: 20px 0 60px; min-height: calc(100vh - 56px - 260px); }
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.layout-3 { display: grid; grid-template-columns: 200px 1fr 280px; gap: 20px; align-items: start; }

.card {
  background: var(--card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.card + .card { margin-top: 16px; }
.card-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.card-head h2 { font-size: 16px; }
.card-head .bar { width: 4px; height: 16px; border-radius: 2px; background: var(--brand); }
.card-body { padding: 16px 18px; }
.card-head .more { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.card-head .more:hover { color: var(--brand); }

.side-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.side-card + .side-card { margin-top: 16px; }
.side-head { padding: 14px 16px 10px; font-weight: 600; display: flex; align-items: center; gap: 8px; font-size: 15px; }
.side-body { padding: 0 16px 14px; }

.sticky { position: sticky; top: 72px; }

/* ---------- 选项卡 ---------- */
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); padding: 0 18px; }
.tabs button {
  border: 0; background: none; padding: 13px 0; cursor: pointer;
  color: var(--ink-2); font-size: 15px; position: relative; transition: .15s;
}
.tabs button:hover { color: var(--brand); }
.tabs button.on { color: var(--ink); font-weight: 600; }
.tabs button.on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--brand); border-radius: 2px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 5px 12px; border-radius: 14px; background: var(--bg);
  color: var(--ink-2); font-size: 13px; cursor: pointer; border: 1px solid transparent; transition: .15s;
}
.chip:hover { color: var(--brand); background: var(--brand-soft); }
.chip.on { background: var(--brand-soft); color: var(--brand); border-color: rgba(252,85,49,.35); font-weight: 600; }
.chip .n { color: var(--ink-3); font-size: 11px; margin-left: 3px; }

/* ---------- 文章卡片 ---------- */
.art-item { padding: 18px; border-bottom: 1px solid var(--line); display: flex; gap: 16px; transition: background .15s; }
.art-item:last-child { border-bottom: 0; }
.art-item:hover { background: #fafbfc; }
.art-main { flex: 1; min-width: 0; }
.art-title {
  font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 6px;
  display: block; line-height: 1.5;
}
.art-title:hover { color: var(--brand); }
.art-title .pin {
  display: inline-block; vertical-align: 1px; margin-right: 6px;
  background: var(--brand); color: #fff; font-size: 11px; font-weight: 600;
  padding: 1px 6px; border-radius: 3px;
}
.art-title .hot-tag {
  display: inline-block; vertical-align: 1px; margin-right: 6px;
  background: #fff1e8; color: #ff7d00; font-size: 11px; font-weight: 600;
  padding: 1px 6px; border-radius: 3px;
}
.art-sum {
  color: var(--ink-2); font-size: 13px; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.art-meta { display: flex; align-items: center; gap: 14px; color: var(--ink-3); font-size: 12px; flex-wrap: wrap; }
.art-meta .m { display: inline-flex; align-items: center; gap: 4px; }
.art-meta .cat { color: var(--brand); background: var(--brand-soft); padding: 1px 8px; border-radius: 10px; font-size: 12px; }
.art-cover {
  width: 150px; height: 96px; border-radius: var(--radius); flex: none;
  display: grid; place-items: center; color: #fff; font-size: 26px; overflow: hidden;
  background: linear-gradient(135deg, #fc5531, #ff9a6c);
}
.art-cover .cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- 文章封面 / 代码块 / 目录 ---------- */
.article-cover { margin: 4px 0 20px; border-radius: 12px; overflow: hidden; max-height: 380px; }
.article-cover img { width: 100%; display: block; object-fit: cover; }
.cover-preview { margin-top: 10px; }
.cover-preview img { max-width: 260px; max-height: 150px; border-radius: 10px; border: 1px solid var(--line); display: block; }
.cover-preview .small-muted { font-size: 12px; color: #f53f3f; }

.code-block { position: relative; margin: 6px 0 20px; }
.code-block .code-copy {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  padding: 3px 10px; font-size: 12px; border-radius: 6px; cursor: pointer;
  background: rgba(255,255,255,.14); color: #cbd5e1; border: 1px solid rgba(255,255,255,.22);
  transition: .15s; font-family: var(--sans, system-ui);
}
.code-block .code-copy:hover { background: rgba(255,255,255,.26); color: #fff; }
.code-block .code-copy.ok { background: #00b96b; border-color: #00b96b; color: #fff; }
.code-block pre { margin: 0; }

.toc-list { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.toc-list li { padding: 5px 0; line-height: 1.5; }
.toc-list li.lv3 { padding-left: 16px; }
.toc-list a { color: var(--ink-2); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toc-list a:hover, .toc-list a.active { color: var(--brand); font-weight: 600; }

/* 采纳回答徒章 */
.adopt-badge {
  display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px;
  font-weight: 600; color: #b8860b; background: linear-gradient(135deg,#fff8e1,#ffeeba);
  border: 1px solid #ffe08a; vertical-align: middle;
}

/* 文章正文标题锚点偏移（scrollIntoView 留白） */
.article-body h2, .article-body h3 { scroll-margin-top: 74px; }

.tag {
  display: inline-block; padding: 1px 8px; border-radius: 3px;
  background: var(--bg); color: var(--ink-2); font-size: 12px; margin-right: 6px;
}
.tag:hover { background: var(--brand-soft); color: var(--brand); }
.tag.hash { background: transparent; color: var(--blue); padding: 1px 0 1px 8px; }

/* ---------- 榜单 ---------- */
.rank-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.rank-list li:last-child { border-bottom: 0; }
.rank-list .no {
  width: 18px; height: 18px; border-radius: 4px; flex: none; font-size: 11px;
  display: grid; place-items: center; background: var(--bg); color: var(--ink-3); font-weight: 700;
}
.rank-list li:nth-child(1) .no { background: #fc5531; color: #fff; }
.rank-list li:nth-child(2) .no { background: #ff7d00; color: #fff; }
.rank-list li:nth-child(3) .no { background: #ffb400; color: #fff; }
.rank-list .t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.rank-list .t:hover { color: var(--brand); }
.rank-list .v { color: var(--ink-3); font-size: 11px; white-space: nowrap; }

/* ---------- 作者 ---------- */
.author-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.author-row .info { flex: 1; min-width: 0; }
.author-row .nm { font-size: 13px; font-weight: 600; display: block; }
.author-row .nm:hover { color: var(--brand); }
.author-row .ds { font-size: 11px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lv { display: inline-flex; align-items: center; padding: 0 5px; height: 15px; border-radius: 3px; font-size: 10px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #ffb400, #ff7d00); }
.lv.l4 { background: linear-gradient(135deg, #fc5531, #ff2d55); }
.lv.l5 { background: linear-gradient(135deg, #722ed1, #b37feb); }

/* ---------- 文章详情 ---------- */
.article-view { padding: 28px 36px 36px; }
.article-view h1 { font-size: 28px; line-height: 1.4; margin-bottom: 16px; letter-spacing: -.3px; }
.art-detail-meta { display: flex; align-items: center; gap: 14px; color: var(--ink-3); font-size: 13px; padding-bottom: 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.article-body { font-size: 15.5px; line-height: 1.9; color: #252b33; padding: 22px 0; }
.article-body p { margin: 0 0 18px; }
.article-body h2 { font-size: 21px; margin: 30px 0 14px; padding-left: 12px; border-left: 4px solid var(--brand); }
.article-body h3 { font-size: 17px; margin: 24px 0 12px; }
.article-body code {
  font-family: var(--mono); background: #f2f3f5; color: #d63384;
  padding: 2px 6px; border-radius: 4px; font-size: 13.5px;
}
.article-body pre {
  background: #1e1e28; color: #e6e6ef; padding: 16px 18px; border-radius: var(--radius);
  overflow-x: auto; margin: 0 0 18px; font-size: 13.5px; line-height: 1.7;
  font-family: var(--mono); border: 1px solid #2b2b3a;
}
.article-body pre code { background: none; color: inherit; padding: 0; }
.article-body ul { list-style: disc; padding-left: 22px; margin-bottom: 18px; }
.article-body li { margin-bottom: 6px; }
.article-body blockquote {
  margin: 0 0 18px; padding: 12px 16px; background: #f7f8fa;
  border-left: 4px solid var(--blue); border-radius: 0 6px 6px 0; color: var(--ink-2);
}

.action-bar {
  display: flex; align-items: center; gap: 12px; padding: 20px 0 0;
  border-top: 1px solid var(--line); margin-top: 8px; flex-wrap: wrap;
}
.act {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 20px;
  border-radius: 19px; border: 1px solid var(--line); background: #fff;
  cursor: pointer; color: var(--ink-2); transition: .16s; font-size: 14px;
}
.act:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.act.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.act.on.blue { background: var(--blue); border-color: var(--blue); }
.act.on.green { background: var(--green); border-color: var(--green); }

/* ---------- 评论 ---------- */
.comment { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.comment:last-child { border-bottom: 0; }
.comment .cbody { flex: 1; min-width: 0; }
.comment .chead { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 4px; }
.comment .chead b { font-weight: 600; }
.comment .ctext { color: var(--ink-2); font-size: 14px; }
.comment .cfoot { margin-top: 6px; color: var(--ink-3); font-size: 12px; display: flex; gap: 14px; }
.comment .cfoot span { cursor: pointer; }
.comment .cfoot span:hover { color: var(--brand); }

.editor-box { display: flex; gap: 12px; margin-bottom: 18px; }
.editor-box textarea {
  flex: 1; min-height: 84px; padding: 12px; border: 1px solid var(--line);
  border-radius: var(--radius); resize: vertical; outline: none; transition: .15s;
}
.editor-box textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(252,85,49,.1); }

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: var(--radius); outline: none; transition: .15s; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(252,85,49,.1);
}
.field textarea { resize: vertical; min-height: 100px; line-height: 1.7; }
.field .hint { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.field .hint:empty { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- 模态 ---------- */
.mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 500;
  display: grid; place-items: center; padding: 20px; animation: fade .18s;
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.modal {
  background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 400px;
  padding: 28px; box-shadow: var(--shadow-lg); animation: pop .2s;
}
.modal.wide { max-width: 760px; }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0 } to { transform: none; opacity: 1 } }
.modal h3 { font-size: 20px; margin-bottom: 6px; }
.modal .sub { color: var(--ink-3); font-size: 13px; margin-bottom: 20px; }
.modal .close { position: absolute; }
.modal-head { display: flex; align-items: flex-start; margin-bottom: 18px; }
.modal-head .x { margin-left: auto; border: 0; background: none; font-size: 22px; color: var(--ink-3); cursor: pointer; line-height: 1; }
.modal-head .x:hover { color: var(--brand); }

.login-tabs { display: flex; gap: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.login-tabs button { border: 0; background: none; padding: 0 0 10px; cursor: pointer; color: var(--ink-3); font-size: 15px; }
.login-tabs button.on { color: var(--brand); font-weight: 600; border-bottom: 2px solid var(--brand); }

/* ---------- 微信扫码登录 ---------- */
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; color: var(--ink-3); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.wx-btn {
  width: 100%; height: 40px; display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid #07c160; color: #07c160; background: #f2fff8; font-weight: 600;
}
.wx-btn:hover { background: #e6fbef; }
.modal.wx-modal { max-width: 340px; }
.wx-qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 0 4px; }
#wx-qr { border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; }
.wx-status { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.wx-open { display: block; text-align: center; margin-top: 8px; font-size: 13px; color: #07c160; }
.wx-open:hover { text-decoration: underline; }
.spinner {
  width: 14px; height: 14px; border: 2px solid #07c160; border-top-color: transparent;
  border-radius: 50%; display: inline-block; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 资源可见性标签 ---------- */
.vis-tag { font-size: 11px; padding: 1px 7px; border-radius: 10px; margin-left: 6px; font-weight: 500; vertical-align: middle; }
.vis-tag.pub { background: #e8f4ff; color: #165dff; }
.vis-tag.priv { background: #fff3e8; color: #ff7d00; }

/* ---------- Toast ---------- */
#toast-wrap { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 900; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--ink); color: #fff; padding: 9px 20px; border-radius: 20px;
  font-size: 13.5px; box-shadow: var(--shadow); animation: pop .18s;
}
.toast.ok { background: #00b42a; }
.toast.err { background: #f53f3f; }

/* ---------- 空态 ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--ink-3); }
.empty .ico { font-size: 44px; margin-bottom: 10px; opacity: .5; }

/* ---------- 骨架屏 ---------- */
.skl { background: linear-gradient(90deg, #f2f3f5 25%, #e8eaed 37%, #f2f3f5 63%); background-size: 400% 100%; animation: sk 1.2s infinite; border-radius: 6px; }
@keyframes sk { 0% { background-position: 100% 50% } 100% { background-position: 0 50% } }

/* ---------- 页脚 ---------- */
.footer { background: #1d2129; color: #a9aeb8; padding: 40px 0 24px; margin-top: 40px; }
.footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 26px; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer a { display: block; color: #a9aeb8; font-size: 13px; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer .cp { border-top: 1px solid #2b303b; padding-top: 18px; font-size: 12px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- 排行榜/徽章 ---------- */
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { padding: 4px 12px; border-radius: 14px; background: var(--bg); font-size: 12px; color: var(--ink-2); }
.pill.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-box { text-align: center; padding: 14px 8px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.stat-box .n { font-size: 20px; font-weight: 800; color: var(--brand); }
.stat-box .l { font-size: 12px; color: var(--ink-3); }

/* ---------- 用户主页 ---------- */
.profile-head {
  display: flex; align-items: center; gap: 20px; padding: 26px;
  background: linear-gradient(120deg, #fff 40%, #fff5f1);
}
.profile-head .pinfo { flex: 1; min-width: 0; }
.profile-head .pname { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.profile-head .pbio { color: var(--ink-2); margin: 4px 0 10px; }
.profile-stats { display: flex; gap: 26px; }
.profile-stats .s .n { font-weight: 700; font-size: 16px; }
.profile-stats .s .l { font-size: 12px; color: var(--ink-3); }

/* ---------- 侧边栏分类 ---------- */
.cat-list a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: 6px; color: var(--ink-2); font-size: 13.5px; transition: .15s;
}
.cat-list a:hover { background: var(--bg); color: var(--brand); }
.cat-list a.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.cat-list .c { margin-left: auto; font-size: 11px; color: var(--ink-3); }

/* ---------- 后台管理表格 ---------- */
.adm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.adm-table th {
  text-align: left; padding: 10px 12px; background: var(--bg); color: var(--ink-2);
  font-weight: 600; white-space: nowrap; border-bottom: 1px solid var(--line);
}
.adm-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table tbody tr:hover { background: #fafbfc; }
.adm-table td a { color: var(--ink); }
.adm-table td a:hover { color: var(--brand); }
.adm-table .btn + .btn { margin-left: 6px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .layout, .layout-3 { grid-template-columns: 1fr; }
  .layout-3 > .left-rail { display: none; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav, .searchbox { display: none; }
  .art-cover { display: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .article-view { padding: 20px 18px 26px; }
  .article-view h1 { font-size: 22px; }
  .wrap { padding: 0 14px; }
  .footer .cols { grid-template-columns: 1fr; }
  .mobile-search { display: block; }
}
@media (min-width: 721px) { .mobile-search { display: none; } }

/* ---------- 积分榜 ---------- */
.pts-badge {
  display: inline-block; background: linear-gradient(135deg, #fff4ec, #ffe6d6);
  color: #d9480f; border: 1px solid #ffd8be; border-radius: 999px;
  font-weight: 600; white-space: nowrap; vertical-align: middle;
}
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 18px; padding: 18px 8px 8px; flex-wrap: wrap; }
.pod {
  display: flex; flex-direction: column; align-items: center; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 22px 16px; min-width: 150px; transition: transform .15s, box-shadow .15s;
}
.pod:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.pod1 { border-color: #ffd24a; box-shadow: 0 6px 20px rgba(255,193,7,.16); order: 2; padding-top: 26px; }
.pod2 { order: 1; }
.pod3 { order: 3; }
.pod .medal { font-size: 30px; line-height: 1; margin-bottom: 8px; }
.pod .nm { font-weight: 700; margin-top: 8px; color: var(--ink); }
.pod .pts { font-size: 19px; font-weight: 800; color: var(--brand); margin-top: 4px; }
.my-rank {
  margin-top: 16px; padding: 12px 16px; border-radius: 10px;
  background: #f6f9ff; border: 1px solid #dbe7ff; font-size: 14px; text-align: center;
}
.my-rank b { color: var(--brand); font-size: 16px; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.badge-cell {
  text-align: center; padding: 16px 10px; border-radius: 12px;
  background: linear-gradient(180deg, #fffaf5, #fff); border: 1px solid var(--line);
}
.badge-cell .bi { font-size: 30px; line-height: 1; }
.badge-cell .bt { font-weight: 700; margin-top: 8px; color: var(--ink); }
.badge-cell .bf { font-size: 12px; color: var(--ink-3); margin-top: 3px; }

/* ---------------- 技术问答：写入交互 ---------------- */
.qa-ask { padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--bg); }
.qa-ask input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; outline: none; background: #fff; }
.qa-ask input:focus, .qa-ask textarea:focus { border-color: var(--brand); }
.qa-ask textarea { font-size: 14px; background: #fff; }
.qa-ask-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 10px; }
.qa-ask-foot select { height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 13px; outline: none; }
.qa-anslist { padding: 4px 0; }
.qa-ans { display: flex; gap: 14px; padding: 18px; border-bottom: 1px solid var(--line); }
.qa-ans.accepted { background: linear-gradient(90deg, rgba(0,180,42,.06), transparent); }
.qa-vote { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 40px; }
.qa-vbtn { width: 34px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; color: var(--ink-2); font-size: 13px; transition: .15s; }
.qa-vbtn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.qa-vbtn.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.qa-vbtn:disabled { opacity: .4; cursor: not-allowed; }
.qa-vnum { font-weight: 700; font-size: 14px; color: var(--ink); }
.qa-abody { flex: 1; min-width: 0; }
.qa-ahead { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.qa-ahead a { display: flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; }
.qa-atext { font-size: 15px; line-height: 1.75; color: var(--ink-2); white-space: pre-wrap; }
.qa-none { padding: 30px; text-align: center; color: var(--ink-3); }
.qa-editor { display: flex; gap: 12px; padding: 18px; border-top: 1px solid var(--line); background: var(--bg); }

/* ---------- 评论：嵌套回复 / 点赞 ---------- */
.comment-sub { margin-left: 46px; border-left: 2px solid var(--line); padding-left: 14px; }
.cfoot span { cursor: pointer; user-select: none; }
.cfoot span:hover { color: var(--brand); }
.cfoot .clike.on { color: var(--brand); font-weight: 600; }
.cfoot .cdel:hover { color: #f53f3f; }

/* ---------- 积分商城 ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.shop-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px;
  display: flex; flex-direction: column; gap: 8px; transition: transform .15s, box-shadow .15s;
}
.shop-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.shop-card .si { font-size: 34px; line-height: 1; }
.shop-card .sn { font-weight: 700; font-size: 15px; color: var(--ink); }
.shop-card .sd { font-size: 12.5px; color: var(--ink-3); line-height: 1.7; flex: 1; }
.shop-card .sp { font-size: 20px; font-weight: 800; color: var(--brand); }
.shop-card .sp small { font-size: 12px; color: var(--ink-3); font-weight: 400; }
.shop-card.owned { border-color: #00b96b; background: linear-gradient(180deg, #f4fff9, #fff); }
.shop-card .own-tag { font-size: 12px; color: #00b96b; font-weight: 600; }

/* ---------- 草稿箱 ---------- */
.draft-item { display:flex; align-items:center; gap:12px; padding:14px 4px; border-bottom:1px dashed var(--line); }
.draft-item:last-child { border-bottom:0; }
.draft-item .dt { flex:1; min-width:0; }
.draft-item .dt .t { font-weight:600; color:var(--ink); display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.draft-item .dt .m { font-size:12px; color:var(--ink-3); margin-top:3px; }

/* ---------- 关注流 ---------- */
.feed-tip { padding:14px 18px; background:var(--bg); border-bottom:1px solid var(--line); color:var(--ink-3); font-size:13px; }

/* ---------- 每日签到 ---------- */
.signin-hero { display:flex; gap:26px; align-items:center; flex-wrap:wrap; }
.streak-box {
  text-align:center; min-width:150px; padding:20px 24px; border-radius:16px;
  background:linear-gradient(135deg,#fff4ec,#ffe9d6); border:1px solid #ffd8be;
}
.streak-box .streak-n { font-size:46px; font-weight:800; color:#d9480f; line-height:1; }
.streak-box .streak-l { font-size:12.5px; color:#b45309; margin-top:8px; }
.signin-info { flex:1; min-width:240px; }
.signin-info .si-line { font-size:14px; color:var(--ink-2); margin-bottom:6px; }
.bonus-row { display:flex; gap:10px; flex-wrap:wrap; }
.bonus-chip {
  padding:8px 14px; border-radius:999px; font-size:13px; color:var(--ink-2);
  background:#fff; border:1px solid var(--line);
}
.bonus-chip b { color:var(--brand); }
.bonus-chip.on { background:var(--brand-soft); border-color:#ffd0bd; color:var(--brand); font-weight:600; }
.cal-grid { display:grid; grid-template-columns:repeat(7, 1fr); gap:8px; }
.cal-cell {
  position:relative; aspect-ratio:1/1; border-radius:10px; display:grid; place-items:center;
  background:#f7f8fa; color:var(--ink-3); font-size:13px; border:1px solid transparent;
}
.cal-cell.signed { background:linear-gradient(180deg,#e8fff2,#fff); color:#00a870; font-weight:700; border-color:#c9f2da; }
.cal-cell.today { outline:2px solid var(--brand); outline-offset:1px; }
.cal-cell.future { opacity:.35; }
.cal-cell i { position:absolute; bottom:2px; right:4px; font-size:9px; color:#00a870; font-style:normal; }

/* ==========================================================================
   资源详情 / 下载明细 / 合集 / 悬赏（本轮新增）
   ========================================================================== */
.crumb { padding:6px 2px 12px; color:var(--ink-3); }
.crumb a { color:var(--ink-3); }
.crumb a:hover { color:var(--brand); }

/* 资源详情 */
.res-detail-head { display:flex; gap:16px; align-items:center; margin-bottom:14px; }
.res-icon { width:64px; height:64px; border-radius:14px; display:grid; place-items:center; font-size:30px; flex:none; }
.res-detail-title { font-size:21px; margin:0 0 8px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.res-intro { font-size:14.5px; color:var(--ink-2); padding:14px; background:var(--bg); border-radius:10px; line-height:1.8; white-space:pre-wrap; }
.res-dl-bar { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding-top:6px; }
.dl-rule { font-size:13px; padding:7px 12px; border-radius:8px; }
.dl-rule.own { background:#e8fff2; color:#00875a; }
.dl-rule.done { background:#e8fff2; color:#00875a; }
.dl-rule.ok { background:var(--brand-soft); color:var(--brand); }
.dl-rule.warn { background:#fff7e6; color:#d46b08; }
.dl-row { display:flex; align-items:center; gap:10px; padding:9px 4px; border-bottom:1px solid var(--line); }
.dl-row:last-child { border-bottom:0; }
.dl-av { width:26px; height:26px; border-radius:50%; display:grid; place-items:center; color:#fff; font-size:12px; font-weight:700; flex:none; }
.dl-who { flex:1; font-size:13.5px; color:var(--ink-2); }
.dl-delta { font-weight:700; font-size:13px; }
.dl-delta.minus { color:#f53f3f; }
.dl-delta.plus { color:#00a870; }
.dl-at { flex:none; }
.badge-sm { font-size:11px; color:var(--ink-3); background:var(--bg); padding:1px 6px; border-radius:6px; }

/* 合集卡片网格 */
.col-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:16px; }
.col-card {
  display:block; border:1px solid var(--line); border-radius:12px; overflow:hidden;
  background:#fff; transition:.18s; color:inherit;
}
.col-card:hover { transform:translateY(-3px); box-shadow:0 10px 26px rgba(30,50,90,.1); }
.col-cover { position:relative; height:110px; display:grid; place-items:center; overflow:hidden; }
.col-cover img { width:100%; height:100%; object-fit:cover; }
.col-ico { font-size:38px; }
.col-count { position:absolute; right:10px; top:10px; background:rgba(0,0,0,.5); color:#fff; font-size:11.5px; padding:2px 8px; border-radius:999px; }
.col-body { padding:12px 14px 14px; }
.col-title { font-weight:700; font-size:15px; margin-bottom:6px; color:var(--ink); }
.col-desc { font-size:12.5px; color:var(--ink-3); line-height:1.6; height:40px; overflow:hidden; margin-bottom:10px; }
.col-foot { display:flex; justify-content:space-between; align-items:center; }

/* 合集详情 hero */
.col-hero { display:flex; gap:20px; align-items:center; padding:20px; border-radius:14px; border:1px solid var(--line); margin-bottom:16px; flex-wrap:wrap; }
.col-hero-cover { width:150px; height:96px; border-radius:12px; overflow:hidden; display:grid; place-items:center; font-size:40px; flex:none; }
.col-hero-cover img { width:100%; height:100%; object-fit:cover; }

/* 合集目录条目 */
.col-art { display:flex; gap:12px; align-items:flex-start; padding:12px 4px; border-bottom:1px solid var(--line); }
.col-art:last-child { border-bottom:0; }
.col-idx { width:26px; height:26px; border-radius:8px; background:var(--brand-soft); color:var(--brand); font-weight:700; font-size:13px; display:grid; place-items:center; flex:none; }
.col-art-ops { display:flex; gap:4px; align-items:center; }
.col-art-ops .ic { width:26px; height:26px; border:1px solid var(--line); background:#fff; border-radius:7px; cursor:pointer; color:var(--ink-2); font-size:13px; }
.col-art-ops .ic:hover:not(:disabled) { border-color:var(--brand); color:var(--brand); }
.col-art-ops .ic:disabled { opacity:.35; cursor:not-allowed; }
.col-art-ops .ic.danger:hover { border-color:#f53f3f; color:#f53f3f; }

/* 悬赏标签 */
.bounty-tag {
  display:inline-block; background:linear-gradient(135deg,#ff9a3c,#ff6b35); color:#fff;
  font-size:11.5px; font-weight:700; padding:1px 8px; border-radius:6px; margin:0 6px 0 1px;
}
.bounty-tag.lg { font-size:12.5px; padding:3px 10px; border-radius:8px; }

/* ==========================================================================
   私信 / 打赏 / 勋章 样式（本轮新增）
   ========================================================================== */
/* 打赏 */
.act.reward { color: #d46b08; }
.act.reward:hover { border-color: #ffb066; color: #d46b08; }
.reward-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.reward-opt {
  padding: 10px 0; border: 1px solid var(--line); background: #fff; border-radius: 9px;
  cursor: pointer; font-weight: 600; color: var(--ink-2); transition: .15s;
}
.reward-opt:hover { border-color: var(--brand); color: var(--brand); }
.reward-opt.on { background: linear-gradient(135deg,#ff9a3c,#ff6b35); color: #fff; border-color: transparent; }

/* 私信 */
.dm-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 16px; height: 72vh; min-height: 460px; }
.dm-side { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.dm-side-head { padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 700; }
.dm-convs { overflow-y: auto; flex: 1; }
.dm-conv { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: inherit; transition: background .12s; }
.dm-conv:hover { background: var(--bg); }
.dm-conv.on { background: var(--brand-soft); }
.dm-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; flex: none; }
.dm-conv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dm-conv-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.dm-conv-top b { font-size: 14px; }
.dm-conv-top i { font-style: normal; flex: none; }
.dm-conv-last { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-unread { background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.dm-main { border: 1px solid var(--line); border-radius: 12px; background: #fff; display: flex; flex-direction: column; overflow: hidden; }
.dm-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dm-body { flex: 1; overflow-y: auto; padding: 16px; background: #fbfcfe; display: flex; flex-direction: column; gap: 12px; }
.dm-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 78%; }
.dm-msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.dm-mav { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; flex: none; }
.dm-bubble { position: relative; background: #fff; border: 1px solid var(--line); padding: 9px 12px; border-radius: 12px; font-size: 14px; color: var(--ink); word-break: break-word; }
.dm-msg.mine .dm-bubble { background: linear-gradient(135deg,#1e80ff,#4da3ff); color: #fff; border-color: transparent; }
.dm-time { display: block; font-size: 10.5px; opacity: .6; margin-top: 3px; font-style: normal; }
.dm-input { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); align-items: flex-end; }
.dm-input textarea { flex: 1; min-height: 44px; max-height: 120px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; resize: none; outline: none; font-family: inherit; }
.dm-input textarea:focus { border-color: var(--brand); }
.dm-empty, .dm-loading { display: grid; place-items: center; height: 100%; padding: 30px; }

/* 勋章墙 */
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ach-cell { text-align: center; padding: 16px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; position: relative; }
.ach-cell.locked { opacity: .68; background: #fafbfc; }
.ach-cell .ach-ico { font-size: 34px; line-height: 1; position: relative; }
.ach-lock { position: absolute; right: -6px; bottom: -2px; font-size: 15px; }
.ach-name { font-weight: 700; margin: 8px 0 3px; font-size: 14px; }
.ach-tier { font-size: 11px; color: var(--ink-3); margin-bottom: 6px; }
.ach-desc { font-size: 11.5px; color: var(--ink-3); line-height: 1.5; height: 34px; }
.ach-ok { color: #00a870; font-size: 12px; font-weight: 600; }
.ach-bar { height: 5px; background: var(--bg); border-radius: 3px; overflow: hidden; margin: 8px 20px 4px; }
.ach-bar > div { height: 100%; background: linear-gradient(90deg,#1e80ff,#4da3ff); border-radius: 3px; }
.ach-cell.tier-bronze { border-color: #e6c9a8; }
.ach-cell.tier-silver { border-color: #cfd8e3; }
.ach-cell.tier-gold { border-color: #f0d98a; box-shadow: 0 4px 14px rgba(230,180,40,.12); }
.ach-cell.tier-diamond { border-color: #9fd8ff; box-shadow: 0 4px 16px rgba(60,150,240,.16); }
.ach-cell.tier-bronze .ach-ico { filter: drop-shadow(0 0 2px #e6c9a8); }
.ach-cell.tier-gold .ach-ico { filter: drop-shadow(0 0 3px #f0c040); }
.ach-cell.tier-diamond .ach-ico { filter: drop-shadow(0 0 4px #7ec8ff); }
.ach-mini { width: 30px; height: 30px; display: inline-grid; place-items: center; font-size: 17px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.ach-mini.tier-gold { border-color: #f0d98a; }
.ach-mini.tier-diamond { border-color: #9fd8ff; }
.ach-progress-bar { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; margin: 8px 0 4px; max-width: 360px; }
.ach-progress-bar > div { height: 100%; background: linear-gradient(90deg,#fc5531,#ff9a6c); border-radius: 4px; }
.ach-metrics { text-align: right; line-height: 1.9; }

/* ==========================================================================
   移动端响应式增强
   ========================================================================== */
/* grid 子项默认 min-width:auto 会被长内容撑开，导致横向溢出 */
.layout > *, .layout-3 > *, .col-grid > *, .dm-wrap > * { min-width: 0; }

/* 移动端底部导航（默认隐藏，小屏显示） */
.mobile-tabbar { display: none; }
@media (max-width: 720px) {
  .mobile-tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -2px 10px rgba(0,0,0,.05); padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 7px 0 6px; color: var(--ink-3); font-size: 11px; text-decoration: none;
  }
  .mobile-tabbar a.on { color: var(--brand); font-weight: 600; }
  body { padding-bottom: 58px; }
  .footer { padding-bottom: 40px; }
}
@media (max-width: 720px) {
  /* 顶栏精简：隐藏桌面导航/搜索，显示横向滚动导航 */
  .topbar-inner { flex-wrap: wrap; gap: 10px; padding: 10px 0; }
  .logo span:last-child { font-size: 16px; }
  .top-actions .btn-primary { padding: 0 10px; }
  .top-actions .btn-primary span { display: none; }
  /* 横向可滚动的导航条 */
  .nav {
    display: flex; order: 5; width: 100%; overflow-x: auto; gap: 4px;
    -webkit-overflow-scrolling: touch; padding-bottom: 2px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; flex: none; }
  /* 双栏变单栏 */
  .layout, .layout-3 { grid-template-columns: 1fr; gap: 14px; }
  .col-grid, .shop-grid, .ach-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .badge-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  /* 文章/列表项紧凑 */
  .art-item { padding: 14px 4px; }
  .art-title { font-size: 15px; }
  .art-meta { flex-wrap: wrap; row-gap: 4px; }
  .art-main { min-width: 0; }
  .art-sum, .art-title { overflow-wrap: anywhere; }
  .profile-head { flex-direction: column; align-items: flex-start; text-align: left; gap: 12px; }
  .profile-head .pinfo { width: 100%; }
  .profile-stats { flex-wrap: wrap; gap: 14px; }
  /* 表单单列 */
  .field-row { grid-template-columns: 1fr; gap: 10px; }
  /* 卡头换行 */
  .card-head { flex-wrap: wrap; gap: 8px; }
  .card-head .more { white-space: normal; }
  /* 私信：单栏，会话列表在上 */
  .dm-wrap { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .dm-side { max-height: 240px; }
  .dm-main { height: 68vh; min-height: 400px; }
  .dm-msg { max-width: 88%; }
  /* 弹窗宽度自适应 */
  .modal { width: calc(100vw - 28px) !important; max-width: 100%; }
  .modal.wide { width: calc(100vw - 20px) !important; }
  /* 收银台/领奖台纵向堆叠 */
  .podium { gap: 10px; }
  .pod { min-width: 120px; padding: 14px 14px 12px; }
  .pod1 { padding-top: 20px; }
  /* 页脚 */
  .footer { padding: 24px 0; }
  .ach-metrics { text-align: left; }
  .reward-opts { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 420px) {
  .col-grid, .shop-grid, .ach-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .top-actions .btn { padding: 0 9px; font-size: 12.5px; }
}

/* ==========================================================================
   成长等级 / 草稿云同步 / 数据导出 / PWA 样式（本轮新增）
   ========================================================================== */
/* 成长等级徽章 */
.growth-lv {
  display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
}
/* 成长等级 Hero */
.lvl-hero { background: linear-gradient(120deg, #fff6f1 0%, #ffffff 60%); }
.lvl-hero-main { display: flex; align-items: center; gap: 18px; padding: 20px; flex-wrap: wrap; }
.lvl-hero-info { flex: 1; min-width: 220px; }
.lvl-bar { height: 12px; background: #f0f1f3; border-radius: 6px; overflow: hidden; margin-top: 4px; }
.lvl-bar > div { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #fc5531, #ff9a6c); transition: width .4s; }
/* 等级列表 */
.lvl-list { display: flex; flex-direction: column; gap: 4px; }
.lvl-row { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); }
.lvl-row.reached { background: #f7fff9; border-color: #d5f2dd; }
.lvl-row.current { background: linear-gradient(120deg, #fff2ee, #fff); border-color: #ffcdbd; box-shadow: 0 3px 12px rgba(252,85,49,.08); }
.lvl-no { flex: none; width: 54px; height: 30px; display: grid; place-items: center; font-weight: 800; font-size: 12.5px; border-radius: 8px; background: var(--bg); color: var(--ink-3); }
.lvl-row.reached .lvl-no { background: #e8ffea; color: #00a870; }
.lvl-row.current .lvl-no { background: linear-gradient(135deg, #fc5531, #ff9a6c); color: #fff; }
.lvl-info { flex: 1; min-width: 0; }
.lvl-title { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.lv-cur { font-size: 10.5px; font-weight: 700; color: #fc5531; background: #fff2ee; padding: 1px 7px; border-radius: 999px; }
.lv-ok { color: #00a870; font-weight: 800; }
.lvl-priv { margin-top: 2px; }
.lvl-exp { flex: none; }
/* 特权标签 */
.priv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.priv-chip {
  font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  background: #f0f7ff; color: #1e80ff; border: 1px solid #d6e7ff;
}
/* 草稿云同步 */
.sync-note { border-bottom: 1px dashed var(--line); }
.rev-chip { font-size: 10.5px; font-weight: 700; color: #1e80ff; background: #f0f7ff; padding: 1px 6px; border-radius: 999px; margin-left: 4px; }
/* 数据导出 */
.export-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.export-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fff;
  display: flex; flex-direction: column; gap: 6px; transition: .15s;
}
.export-card:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgba(252,85,49,.08); }
.export-card .ex-ico { font-size: 30px; line-height: 1; }
.export-card .ex-name { font-weight: 700; font-size: 15px; }
.export-card .ex-count { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.export-card .ex-count b { color: var(--brand); font-size: 15px; }
.export-card .ex-dl { margin-top: 8px; width: 100%; }
/* 离线提示条 */
.offline-bar {
  position: fixed; left: 0; right: 0; top: 0; z-index: 200;
  background: #f53f3f; color: #fff; text-align: center; font-size: 13px; font-weight: 600;
  padding: 7px 12px; box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.offline-bar.hide { display: none; }
/* 顶栏安装按钮在窄屏隐藏文字 */
@media (max-width: 720px) {
  #pwa-btn { padding: 0 9px; }
  .growth-lv { font-size: 11px; }
  .export-grid { grid-template-columns: 1fr; }
  .lvl-hero-main { gap: 12px; padding: 16px; }
}

/* ==========================================================================
   标签聚合 / 阅读进度 / 划线笔记 / 订阅（本轮新增）
   ========================================================================== */
/* 标签聚合页 */
.tag-hero { background: linear-gradient(120deg, #eef5ff 0%, #ffffff 60%); }
.tag-hero-main { display: flex; align-items: center; gap: 16px; padding: 20px; }
.tag-hero-ico { font-size: 40px; }
.tag-hero-name { font-size: 26px; font-weight: 800; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.tag-cloud a { color: var(--ink-2); text-decoration: none; padding: 2px 4px; border-radius: 6px; transition: .12s; }
.tag-cloud a:hover { background: var(--brand-soft); color: var(--brand); }
.tag-cloud a.cur { color: var(--brand); font-weight: 800; background: var(--brand-soft); }
.tag-cloud-inline { display: flex; flex-wrap: wrap; gap: 8px; }

/* 阅读进度条 */
.read-progress-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 90; background: transparent; }
.read-progress-bar > div { height: 100%; width: 0; background: linear-gradient(90deg, #fc5531, #ff9a6c); transition: width .1s linear; }
.read-meter { text-align: right; font-size: 12px; color: var(--ink-3); margin-bottom: 10px; }
.read-meter #read-pct { font-weight: 700; color: var(--brand); }
.read-meter.done #read-pct { color: #00a870; }
.resume-tip { background: var(--brand-soft); border: 1px solid #ffd6c6; color: var(--brand); padding: 8px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }
.resume-tip a { color: var(--brand); font-weight: 700; text-decoration: underline; }

/* 划线 */
mark.hl-mark { background: #fff3a8; padding: 1px 2px; border-radius: 3px; cursor: pointer; box-shadow: inset 0 -2px 0 rgba(255,200,0,.4); }
mark.hl-mark:hover { filter: brightness(.96); }
.hl-toolbar {
  position: absolute; transform: translateX(-50%); z-index: 120; display: flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
}
.hl-toolbar.hide { display: none; }
.hl-toolbar button[data-c] { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; cursor: pointer; padding: 0; box-shadow: 0 0 0 1px var(--line); }
.hl-toolbar button[data-c][data-c=yellow] { background: #fff3a8; }
.hl-toolbar button[data-c][data-c=green] { background: #c8f7c5; }
.hl-toolbar button[data-c][data-c=blue] { background: #c6e4ff; }
.hl-toolbar button[data-c][data-c=pink] { background: #ffd6e7; }
.hl-toolbar button[data-c].on { box-shadow: 0 0 0 2px var(--brand); }
.hl-toolbar .sep { width: 1px; height: 18px; background: var(--line); margin: 0 2px; }
.hl-toolbar .hl-do { border: 0; background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 7px; cursor: pointer; white-space: nowrap; }

/* 我的笔记 */
.note-group { margin-bottom: 14px; }
.note-item { padding: 12px 14px; border-left: 3px solid #ffcf4d; background: #fffbf0; border-radius: 0 8px 8px 0; margin-bottom: 10px; }
.note-text { font-size: 14.5px; color: var(--ink); line-height: 1.7; }
.note-note { color: var(--ink-2); margin-top: 6px; }
.note-meta { margin-top: 6px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.note-meta a { color: var(--brand); }
.note-meta a.note-del { color: #f53f3f; }

/* 订阅 */
.col-unsub { width: 100%; margin-top: 8px; }
@media (max-width: 720px) {
  .tag-hero-main { flex-wrap: wrap; gap: 10px; padding: 16px; }
  .tag-hero-name { font-size: 22px; }
  .hl-toolbar { transform: translateX(-50%) scale(.94); }
  .note-item { padding: 10px 12px; }
}


/* ============ 搜索筛选栏 ============ */
.search-filter { display: flex; flex-direction: column; gap: 12px; }
.sf-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sf-label { font-size: 13px; color: var(--ink-3); min-width: 34px; }
.sf-sel { height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font-size: 13px; }
.search-filter .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.search-filter .chip { cursor: pointer; user-select: none; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--bg); border-radius: 20px; }

/* ============ 文章版本历史 ============ */
.ver-list { display: flex; flex-direction: column; gap: 8px; }
.ver-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); transition: .16s; }
.ver-row:hover { border-color: var(--brand); background: var(--brand-soft); }
.ver-no { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 48px; }
.ver-no .v { font-weight: 800; font-size: 14px; color: var(--brand); }
.ver-no.cur .v { color: #00b42a; }
.ver-tag { font-size: 10px; padding: 1px 5px; border-radius: 4px; background: #e8ffea; color: #00b42a; }
.ver-main { flex: 1; min-width: 0; }
.ver-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ver-meta { font-size: 12px; color: var(--ink-3); margin-top: 3px; display: flex; gap: 6px; flex-wrap: wrap; }
.ver-acts { display: flex; gap: 6px; }

/* ============ 后台图表增强 ============ */
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { padding: 14px; border-radius: 10px; background: var(--bg); text-align: center; }
.kpi .kn { font-size: 24px; font-weight: 800; color: var(--ink); }
.kpi .kl { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.kpi .kd { font-size: 11px; color: var(--brand); margin-top: 2px; }
.chart-sub { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 4px 0 10px; }
.hist-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; font-size: 13px; }
.hist-lv { min-width: 46px; text-align: center; font-weight: 700; font-size: 12px; color: var(--brand); background: var(--brand-soft); border-radius: 5px; padding: 2px 0; }
.hist-title { min-width: 54px; color: var(--ink-2); font-size: 12px; }
.hist-bar { flex: 1; height: 9px; background: var(--bg); border-radius: 5px; overflow: hidden; }
.hist-bar > div { height: 100%; background: linear-gradient(90deg, #fc5531, #ffb59c); border-radius: 5px; }
.hist-n { min-width: 32px; text-align: right; color: var(--ink-3); font-weight: 600; }
.stack-bar { display: flex; height: 26px; border-radius: 8px; overflow: hidden; margin-bottom: 12px; }
.stack-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.sl-item { display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.sl-item i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
@media (max-width: 720px) {
  .kpi-row { grid-template-columns: 1fr; }
  .sf-label { min-width: auto; }
  .ver-row { flex-wrap: wrap; }
  .ver-acts { width: 100%; justify-content: flex-end; }
}


/* ============ AI 摘要卡 ============ */
.ai-box { background: linear-gradient(135deg, #f5f9ff, #eef4ff); border: 1px solid #d6e4ff;
  border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; }
.ai-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ai-badge { font-size: 13px; font-weight: 700; color: #1e5fd6; background: #e2ecff;
  padding: 3px 10px; border-radius: 20px; }
.ai-toggle { margin-left: auto; border: none; background: transparent; color: var(--brand);
  cursor: pointer; font-size: 12px; }
.ai-summary { font-size: 14.5px; line-height: 1.85; color: var(--ink); }
.ai-kw { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.ai-kw .kw { font-size: 12px; padding: 2px 10px; border-radius: 14px; background: #e2ecff;
  color: #1e5fd6; }
.ai-hl { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.ai-hl ul { margin: 4px 0 0 18px; padding: 0; }
.ai-hl li { font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.ai-foot { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #d6e4ff; }

/* ============ @提及 ============ */
.ctext .mention { color: #1e5fd6; background: #e2ecff; border-radius: 4px; padding: 0 3px; font-weight: 600; }
.mention-pop { position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 30; width: 260px;
  max-height: 220px; overflow: auto; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 8px 26px rgba(0,0,0,.14); padding: 4px; }
.mention-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 7px;
  cursor: pointer; font-size: 13px; }
.mention-item.on, .mention-item:hover { background: var(--brand-soft); }
.mi-av { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-size: 12px; flex: none; }

/* ============ 收入明细 ============ */
.src-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; }
.src-ico { width: 22px; text-align: center; flex: none; }
.src-name { min-width: 92px; color: var(--ink-2); }
.src-bar { flex: 1; height: 10px; background: var(--bg); border-radius: 5px; overflow: hidden; }
.src-bar > div { height: 100%; background: linear-gradient(90deg, #00b42a, #7fe0a0); border-radius: 5px; }
.src-bar.exp > div { background: linear-gradient(90deg, #f53f3f, #ffb0b0); }
.src-amt { min-width: 62px; text-align: right; font-weight: 700; color: #00a870; }
.src-amt.exp { color: #f53f3f; }
.src-sum { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--line); font-size: 13px; color: var(--ink-2); }
.src-sum b { color: var(--ink); }
.inc-trend { display: flex; align-items: flex-end; gap: 5px; height: 120px; }
.it-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.it-bar { width: 100%; border-radius: 4px 4px 0 0; }
.it-bar.pos { background: linear-gradient(180deg, #00b42a, #a8e6bd); }
.it-bar.neg { background: linear-gradient(180deg, #f53f3f, #ffc4c4); }

/* ============ 用户行为漏斗 ============ */
.funnel { display: flex; flex-direction: column; gap: 12px; }
.fn-step { display: flex; flex-direction: column; gap: 4px; }
.fn-label { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.fn-label b { color: var(--ink); font-size: 14px; }
.fn-ico { font-size: 14px; }
.fn-track { height: 20px; background: var(--bg); border-radius: 6px; overflow: hidden; }
.fn-fill { height: 100%; border-radius: 6px; transition: width .4s; }
.fn-conv { font-size: 11px; padding-left: 4px; }
.fn-leak { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--line); font-size: 12px; color: var(--ink-3); }
.fn-leak .lk { background: var(--bg); padding: 4px 10px; border-radius: 8px; }
.fn-leak b { color: #f53f3f; }
@media (max-width: 720px) {
  .ai-box { padding: 12px; }
  .src-name { min-width: 70px; }
  .fn-leak { flex-direction: column; }
}

/* 表格横向滚动容器（移动端防溢出） */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { margin-bottom: 0; }

/* ===== 第六轮新增：评论排序 / 折叠 ===== */
.cmt-sort { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.cmt-sort .cs-btn { border: none; background: var(--card, #fff); color: var(--ink-2); font-size: 13px;
  padding: 5px 14px; cursor: pointer; }
.cmt-sort .cs-btn + .cs-btn { border-left: 1px solid var(--line); }
.cmt-sort .cs-btn.on { background: var(--brand); color: #fff; font-weight: 600; }
.cmt-more { font-size: 13px; color: var(--brand); cursor: pointer; padding: 6px 0 6px 44px;
  user-select: none; }
.cmt-more:hover { text-decoration: underline; }
.cmt-kids.hide { display: none; }

/* ===== 第六轮新增：收藏夹分组 ===== */
.fav-folders { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 18px 6px; align-items: center; }
.fav-folder { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 20px;
  background: var(--bg); border: 1px solid var(--line); cursor: pointer; font-size: 13px; transition: .15s; }
.fav-folder:hover { border-color: var(--brand); color: var(--brand); }
.fav-folder.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.fav-folder .ff-n { background: rgba(0,0,0,.08); border-radius: 10px; padding: 0 7px; font-size: 11px; }
.fav-folder.on .ff-n { background: rgba(255,255,255,.25); }
.fav-folder .ff-act { opacity: .55; font-size: 12px; }
.fav-folder .ff-act:hover { opacity: 1; }
.fav-add { padding: 7px 14px; border-radius: 20px; border: 1px dashed var(--line); background: transparent;
  color: var(--ink-3); cursor: pointer; font-size: 13px; }
.fav-add:hover { border-color: var(--brand); color: var(--brand); }
.fav-card { display: flex; gap: 10px; align-items: flex-start; padding: 0 6px; }
.fav-card .art-item { flex: 1; }
.fav-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding-top: 16px; flex: none; }

/* ===== 第六轮新增：作者数据面板 ===== */
.panel-trend { display: flex; align-items: flex-end; gap: 2px; height: 90px; padding: 10px 12px 6px; }
.panel-trend .pt-col { flex: 1; display: flex; align-items: flex-end; height: 100%; min-width: 2px; }
.panel-trend .pt-bar { width: 100%; min-height: 2px; border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #fc5531, #ffb199); }
.rank-row { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px dashed var(--line); }
.rank-row:last-child { border-bottom: none; }
.rank-row .rk { width: 20px; height: 20px; border-radius: 6px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.rank-row .rt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.rank-row .rt:hover { color: var(--brand); }

/* ===== 第六轮新增：分组选择弹窗 ===== */
.pick-row { padding: 11px 14px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.pick-row:hover { background: var(--brand-soft); color: var(--brand); }

@media (max-width: 720px) {
  .fav-card { flex-direction: column; }
  .fav-side { flex-direction: row; align-items: center; padding-top: 0; }
  .panel-trend { height: 70px; }
}

/* ===== 第七轮新增：协作编辑 ===== */
.collab-badge { font-size: 12px; color: #1e80ff; background: #1e80ff1a; border: 1px solid #1e80ff44;
  border-radius: 8px; padding: 3px 8px; }
.collab-row { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px dashed var(--line); }
.collab-row:last-child { border-bottom: none; }
.collab-row .ci { flex: 1; min-width: 0; }
.collab-add-row { position: relative; margin-top: 12px; }
.collab-add-row input { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; background: var(--bg); color: var(--ink); }
.collab-sug { position: absolute; top: 44px; left: 0; right: 0; z-index: 5; background: var(--card, #fff);
  border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.1); max-height: 220px; overflow: auto; }
.sug-row { display: flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer; font-size: 14px; }
.sug-row:hover { background: var(--brand-soft); }

/* ===== 第七轮新增：评论敏感标记 ===== */
.cmt-warn { display: inline-block; font-size: 11px; color: #ff7d00; background: #fff1e8;
  border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: middle; }

/* ===== 第七轮新增：作品集 ===== */
.uv-tabs button { background: none; border: none; border-bottom: 2px solid transparent; padding: 8px 2px;
  cursor: pointer; color: var(--ink-2); font-size: 15px; }
.uv-tabs button.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.pf-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px 6px; }
.pf-head .btn { margin-left: auto; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; padding: 14px 18px; }
.pf-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; position: relative;
  background: var(--card, #fff); transition: .15s; }
.pf-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); transform: translateY(-2px); }
.pf-cover { display: grid; place-items: center; height: 110px; overflow: hidden; }
.pf-cover img { width: 100%; height: 100%; object-fit: cover; }
.pf-emoji { font-size: 36px; }
.pf-body { padding: 10px 12px; }
.pf-title { display: block; font-weight: 600; color: var(--ink); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.pf-title:hover { color: var(--brand); }
.pf-meta { margin-top: 4px; }
.pf-rm { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.45); color: #fff; border: none;
  width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: 12px; line-height: 1; }
.pf-picker { margin: 0 18px 16px; border: 1px dashed var(--line); border-radius: 10px; padding: 12px; }
.pf-cand-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; max-height: 260px; overflow: auto; }
.pf-cand { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px;
  background: var(--bg); cursor: pointer; }
.pf-cand:hover { background: var(--brand-soft); }
.pf-cand b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-cand-add { color: var(--brand); font-weight: 700; }

/* ===== 第七轮新增：敏感词管理 ===== */
.sen-add { display: flex; gap: 8px; margin-bottom: 14px; }
.sen-add input { flex: 1; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--ink); font-size: 14px; }
.sen-words { display: flex; flex-wrap: wrap; gap: 8px; }
.sen-tag { display: inline-flex; align-items: center; gap: 5px; background: #fff1e8; color: #d4380d;
  border-radius: 8px; padding: 4px 10px; font-size: 13px; }
.sen-tag.mini { padding: 2px 7px; font-size: 12px; }
.sen-del { cursor: pointer; font-style: normal; opacity: .6; }
.sen-del:hover { opacity: 1; }

@media (max-width: 720px) {
  .pf-grid { grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 12px; }
  .sen-add { flex-direction: column; }
  .uv-tabs { flex-wrap: wrap; }
}


/* ==========================================================================
   富文本编辑器样式
   ========================================================================== */
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  background: #f8f9fa;
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  border-bottom: none;
}

.ed-btn {
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-2);
  transition: all 0.2s;
}

.ed-btn:hover {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.ed-btn:active {
  background: var(--brand);
  color: #fff;
}

.ed-sep {
  width: 1px;
  height: 24px;
  background: var(--line);
  margin: 0 4px;
  align-self: center;
}

/* Rich Text Editor */
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 12px;
  background: #f8f9fa;
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  border-bottom: none;
}

.ed-btn {
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink);
  transition: all 0.2s;
  line-height: 1.2;
}

.ed-btn:hover {
  background: #e9ecef;
  border-color: #dee2e6;
}

.ed-btn:active {
  background: #dee2e6;
}

.ed-sep {
  width: 1px;
  height: 24px;
  background: var(--line);
  margin: 0 4px;
  align-self: center;
}

.rich-editor {
  min-height: 400px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  background: #fff;
  font-size: 15px;
  line-height: 1.8;
  outline: none;
  overflow-y: auto;
}

.rich-editor:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(28, 128, 255, 0.1);
}

.rich-editor img {
  max-width: 100%;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: 4px;
}

.rich-editor img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.rich-editor img.editor-img {
  border: 2px solid transparent;
  border-radius: 4px;
}

.rich-editor img.editor-img:hover {
  border-color: var(--brand);
}

.rich-editor pre {
  background: #f6f8fa;
  padding: 12px;
  border-radius: 6px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
}

.rich-editor blockquote {
  border-left: 4px solid var(--brand);
  padding-left: 16px;
  margin-left: 0;
  color: var(--ink-2);
  font-style: italic;
}

.rich-editor ul, .rich-editor ol {
  padding-left: 24px;
}

.rich-editor h1 {
  font-size: 26px;
  margin: 28px 0 14px;
}

.rich-editor h2 {
  font-size: 22px;
  margin: 24px 0 12px;
}

.rich-editor h3 {
  font-size: 18px;
  margin: 20px 0 10px;
}

/* ---------- ·Öҳ×é¼þ ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 0 8px;
  flex-wrap: wrap;
}
.pg-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 8px;
  background: var(--bg-card, #fff);
  color: var(--text, #333);
  font-size: 14px;
  cursor: pointer;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pg-btn:hover:not(.disabled):not(.active) {
  border-color: var(--brand, #1e80ff);
  color: var(--brand, #1e80ff);
  background: rgba(30,128,255,.06);
}
.pg-btn.active {
  background: var(--brand, #1e80ff);
  color: #fff;
  border-color: var(--brand, #1e80ff);
  font-weight: 600;
}
.pg-btn.disabled {
  opacity: .4;
  cursor: not-allowed;
}
.pg-dots {
  padding: 0 4px;
  color: var(--text-muted, #999);
  font-size: 14px;
}
