/* ============================================================
   个人网站 · 基础样式
   浅色主题，朴素克制，内容优先
   ============================================================ */

:root {
  --bg:            #f7f7f5;
  --surface:       #ffffff;
  --surface-2:     #f1efe8;
  --text:          #2c2c2a;
  --text-2:        #5f5e5a;
  --text-3:        #888780;
  --border:        #e3e1da;
  --border-2:      #d3d1c7;
  --accent:        #185fa5;
  --accent-soft:   #e6f1fb;
  --locked:        #993c1d;
  --locked-soft:   #faece7;
  --ok:            #0f6e56;
  --ok-soft:       #e1f5ee;
  --radius:        10px;
  --radius-lg:     14px;
  --maxw:          1180px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14.5px;
  line-height: 1.65;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- 顶栏 ---------- */
header.site {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
header.site .inner {
  display: flex; align-items: center; gap: 24px;
  height: 60px;
}
.brand { font-size: 16px; font-weight: 600; color: var(--text); }
.brand:hover { text-decoration: none; }
nav.main { display: flex; gap: 20px; flex: 1; }
nav.main a {
  color: var(--text-2); font-size: 14px; padding: 4px 0;
  border-bottom: 2px solid transparent;
}
nav.main a:hover { color: var(--text); text-decoration: none; }
nav.main a.active { color: var(--accent); border-bottom-color: var(--accent); }

.userbox { display: flex; align-items: center; gap: 12px; font-size: 13px; }

/* —— 首页无图文章列表（公众号 / 星球） —— */
.home-list { list-style: none; margin: 0; padding: 0; }
.home-list li {
  display: flex; align-items: baseline; gap: 14px;
  padding: 9px 2px; border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.home-list li:last-child { border-bottom: none; }
.home-list .hl-date {
  flex: 0 0 auto; font-size: 12.5px; color: var(--text-3);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.home-list .hl-title { flex: 1 1 auto; min-width: 0; color: var(--text); }
.home-list .hl-title a { color: var(--text); text-decoration: none; }
.home-list .hl-title a:hover { color: var(--accent); text-decoration: underline; }
.home-list .hl-title a.locked-link { color: var(--text-3); }
.home-list .hl-lock {
  margin-left: 8px; font-size: 12px; color: var(--locked, #b45309); white-space: nowrap;
}

/* —— 首页 PPT 图卡：16:9 缩略图 + 每行 3 张 —— */
.home-ppt .pt .thumb, .home-ppt .pt .thumb-ph { aspect-ratio: 16/9; }

/* —— 站内搜索结果列表：日期 + 来源徽标 + 标题 + 摘录 —— */
.search-list { list-style: none; margin: 0; padding: 0; }
.search-list li {
  padding: 12px 2px; border-bottom: 1px solid var(--border);
}
.search-list li:last-child { border-bottom: none; }
.search-list .hl-date {
  font-size: 12.5px; color: var(--text-3);
  font-variant-numeric: tabular-nums; margin-right: 10px;
}
.search-list .src-badge {
  display: inline-block; margin-right: 10px; padding: 1px 8px;
  font-size: 11.5px; border-radius: 999px; vertical-align: 1px;
  background: var(--surface-2, #f1f3f5); color: var(--text-2);
  border: 1px solid var(--border); white-space: nowrap;
}
.search-list .src-badge.src-ppt { color: #185fa5; border-color: #b9d3ea; background: #e8f1fa; }
.search-list .src-badge.src-wechat { color: #1a7f37; border-color: #bfe3c8; background: #eaf6ee; }
.search-list .src-badge.src-zsxq { color: #9a5b00; border-color: #ecd3a8; background: #fbf3e2; }
.search-list .hl-title { font-size: 14.5px; }
.search-list .hl-title a { color: var(--text); text-decoration: none; }
.search-list .hl-title a:hover { color: var(--accent); text-decoration: underline; }
.search-list .hl-title a.locked-link { color: var(--text-3); }
.search-list .hl-lock {
  margin-left: 8px; font-size: 12px; color: var(--locked, #b45309); white-space: nowrap;
}
.search-list .hl-sub {
  margin-top: 4px; font-size: 12.5px; color: var(--text-2); line-height: 1.65;
}

/* —— 管理编辑表单（星球 / 公众号 / 分类维护共用） —— */
.edit-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
}
.edit-card .field { margin-bottom: 16px; }
.edit-card .chk {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; cursor: pointer;
}
.edit-actions { display: flex; gap: 10px; margin-top: 18px; }
.btn.ghost {
  background: transparent; border: 1px solid var(--border); color: var(--text-2);
}
.btn.ghost:hover { color: var(--text); border-color: var(--text-3); }

/* —— 头部搜索框 —— */
.searchbox { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
.searchbox input {
  width: 190px; padding: 6px 11px;
  border: 1px solid var(--border-2); border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 13px; font-family: inherit; color: var(--text);
  background: var(--surface-2); outline: none;
}
.searchbox input:focus { background: var(--surface); border-color: var(--accent); }
.searchbox button {
  padding: 6px 13px; border: 1px solid var(--accent);
  background: var(--accent); color: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 13px; font-family: inherit; cursor: pointer;
}
.searchbox button:hover { opacity: .88; }
.badge {
  display: inline-block; padding: 2px 9px; border-radius: 20px;
  font-size: 12px; line-height: 1.6;
}
.badge.guest    { background: var(--surface-2); color: var(--text-2); }
.badge.reg      { background: var(--accent-soft); color: var(--accent); }
.badge.renewal  { background: #faeeda; color: #854f0b; }
.badge.lifetime { background: #eeedfe; color: #534ab7; }
.badge.admin    { background: #fcebeb; color: #a32d2d; }

/* ---------- 通用 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-auto { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.page-head { margin: 28px 0 20px; }
.page-head h1 { font-size: 21px; font-weight: 600; margin: 0 0 6px; }
.page-head p { color: var(--text-2); margin: 0; font-size: 13.5px; }

.btn {
  display: inline-block; padding: 7px 15px; border-radius: var(--radius);
  border: 1px solid var(--border-2); background: var(--surface);
  color: var(--text); font-size: 13.5px; cursor: pointer;
  font-family: inherit; line-height: 1.5;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #124a80; }
.btn.small { padding: 4px 11px; font-size: 12.5px; }

.flash { padding: 10px 14px; border-radius: var(--radius); margin: 14px 0; font-size: 13.5px; }
.flash.success { background: var(--ok-soft); color: var(--ok); }
.flash.error   { background: #fcebeb; color: #a32d2d; }

.empty { padding: 56px 20px; text-align: center; color: var(--text-3); }

/* ---------- 统计条 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 24px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 13px 15px; }
.stat .num { font-size: 22px; font-weight: 600; line-height: 1.3; }
.stat .lbl { font-size: 12.5px; color: var(--text-3); }
.stat .num.locked { color: var(--locked); }

/* ---------- 锁定提示 ---------- */
.locked-note {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--locked-soft); border: 1px solid #f0d3c6;
  border-radius: var(--radius); padding: 12px 16px; margin: 18px 0;
  font-size: 13.5px; color: #712b13;
}
.locked-note b { color: var(--locked); }

.card-locked { position: relative; }
.card-locked .veil {
  position: absolute; inset: 0; background: rgba(247,247,245,.55);
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; color: var(--locked); font-weight: 500;
}

/* ---------- 图卡 ---------- */
.card.pt {
  display: flex; flex-direction: column;
  transition: border-color .12s, transform .12s;
}
.card.pt:hover { border-color: var(--border-2); transform: translateY(-2px); }
.pt .thumb {
  width: 100%; aspect-ratio: 16/9; background: var(--surface-2);
  object-fit: cover; display: block;
}
.pt .thumb-ph {
  width: 100%; aspect-ratio: 16/9; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 12px;
}
.pt .body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; }
.pt h3 { font-size: 14px; font-weight: 500; margin: 0 0 6px; line-height: 1.5;
         display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pt h3 a { color: var(--text); }
.pt .meta { margin-top: auto; padding-top: 9px; border-top: 1px solid var(--border);
            font-size: 12px; color: var(--text-3); display: flex;
            justify-content: space-between; gap: 8px; }
.card .tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 7px; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.tag { background: var(--surface-2); color: var(--text-2); padding: 3px 10px;
       border-radius: 20px; font-size: 12px; border: 1px solid var(--border);
       display: inline-block; line-height: 1.5; }
.tag:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.tag.on { background: var(--accent); color: #fff; }

/* ---------- 筛选条 ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-bottom: 20px; }
.filters .lead { font-size: 13px; color: var(--text-3); margin-right: 4px; }

/* ---------- 详情页 ---------- */
.detail { max-width: 940px; margin: 0 auto; }

.detail-grid {
  display: grid; grid-template-columns: 7fr 2fr; gap: 18px; align-items: start;
}
.detail .slide {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 12px; text-align: center;
}
.detail .slide img { max-width: 100%; height: auto; border-radius: var(--radius); }
.detail .side {
  min-width: 0;
  /* height:0 使右栏不参与行高计算，min-height:100% 让其贴齐左图撑起的行高 */
  height: 0; min-height: 100%;
  display: flex; flex-direction: column;
}
.detail .side h1 { font-size: 16.5px; font-weight: 600; line-height: 1.5; margin: 2px 0 10px; }
.detail .side .tags { margin-bottom: 10px; }
.detail .narration {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px 16px;
  font-size: 13.5px; line-height: 1.8; color: var(--text);
}
.detail .side .narration {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
}
.detail .side .narration::-webkit-scrollbar { width: 6px; }
.detail .side .narration::-webkit-scrollbar-thumb {
  background: var(--border-2); border-radius: 3px;
}
.detail .side .narration.side-empty { color: var(--text-3); }

.meta-bar {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px;
  margin: 18px 0; padding: 16px 18px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.meta-bar.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.meta-bar .k { font-size: 12px; color: var(--text-3); margin-bottom: 2px; }
.meta-bar .v { font-size: 13.5px; }

/* 管理员工具条 */
.admin-bar {
  display: flex; align-items: center; gap: 10px; margin: 0 0 16px;
  padding: 9px 14px; background: #fcebeb; border: 1px dashed #e0b4b4;
  border-radius: var(--radius); font-size: 13px;
}
.admin-bar .lbl { color: #a32d2d; font-size: 12px; font-weight: 500; }
.admin-bar form { margin: 0; }
.btn.danger { color: #a32d2d; border-color: #e0b4b4; }
.btn.danger:hover { background: #fcebeb; }

/* ---------- 时间轴 ---------- */
.timeline { display: flex; gap: 4px; margin: 16px 0 6px; align-items: stretch; min-height: 46px; }
.tl-seg {
  flex: 1; border-radius: 6px; padding: 7px 9px; font-size: 11.5px;
  display: flex; flex-direction: column; justify-content: center; min-width: 0;
}
.tl-seg.free { background: var(--ok-soft); color: var(--ok); }
.tl-seg.paid { background: #faece7; color: #712b13; }
.tl-seg.bonus { background: var(--accent-soft); color: var(--accent); }
.tl-seg.all { background: #fcebeb; color: #791f1f; }
.tl-seg .t { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-seg .d { font-size: 10.5px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 表格 ---------- */
table.list { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.list th, table.list td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
table.list th { font-size: 12.5px; color: var(--text-3); font-weight: 500; background: var(--surface-2); }
table.list td { table-layout: fixed; }

/* ---------- 表单 ---------- */
.form-narrow { max-width: 400px; margin: 40px auto; }
.form-page { max-width: 620px; margin: 0 auto; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 5px; }
.field input {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border-2);
  border-radius: var(--radius); font-size: 14px; font-family: inherit;
  background: var(--surface); color: var(--text);
}
.field input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.field textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border-2);
  border-radius: var(--radius); font-size: 14px; font-family: inherit;
  background: var(--surface); color: var(--text); resize: vertical; line-height: 1.75;
}
.field textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* 标签多选 */
.tag-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-picker .pick {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 4px 12px; font-size: 13px;
  color: var(--text-2); cursor: pointer; user-select: none;
}
.tag-picker .pick:hover { border-color: var(--border-2); color: var(--text); }
.tag-picker .pick input { width: auto; margin: 0; accent-color: var(--accent); }

/* —— 人工标签管理表格 —— */
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td {
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table th { font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.admin-table tr:hover td { background: color-mix(in srgb, var(--border) 30%, transparent); }

/* ---------- 分页 ---------- */
.pager { display: flex; gap: 6px; justify-content: center; margin: 30px 0 10px; flex-wrap: wrap; }
.pager a, .pager span {
  padding: 5px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 13px; background: var(--surface);
}
.pager span.cur { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- 页脚 ---------- */
footer.site {
  margin-top: 60px; padding: 26px 0; border-top: 1px solid var(--border);
  color: var(--text-3); font-size: 12.5px; text-align: center;
}

/* ---------- 栏目两栏：侧树 + 主流 ---------- */
.two-col { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: start; }
.side-tree {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 12px;
  position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow-y: auto;
}
.tree-title { font-size: 12px; color: var(--text-3); margin: 2px 6px 8px; }
.tree-node {
  display: flex; justify-content: space-between; align-items: center; gap: 6px;
  padding: 6px 9px; border-radius: 8px; font-size: 13.5px; color: var(--text-2);
}
.tree-node:hover { background: var(--surface-2); text-decoration: none; }
.tree-node.on { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.tree-node.sub { padding-left: 14px; }
.tree-node.sub2 { padding-left: 28px; font-size: 12.5px; }
.tree-node span { font-size: 11.5px; color: var(--text-3); }
.tree-node.on span { color: var(--accent); }
details.tree-year > summary, details.tree-month > summary { list-style: none; cursor: pointer; }
details.tree-year > summary::-webkit-details-marker,
details.tree-month > summary::-webkit-details-marker { display: none; }
details.tree-month { margin-left: 10px; }

/* 公众号文章卡片 */
.art-list { display: flex; flex-direction: column; gap: 12px; }
.card.art { display: block; padding: 15px 18px; text-decoration: none;
            transition: border-color .12s, transform .12s; }
.card.art:hover { border-color: var(--border-2); transform: translateY(-1px); }
.card.art h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.5; }
.card.art .summ { margin: 0 0 10px; font-size: 13px; color: var(--text-2); line-height: 1.7; }
.card.art .meta { display: flex; gap: 10px; align-items: center;
                  font-size: 12px; color: var(--text-3); }

/* 星球时间轴 */
.timeline-list { display: flex; flex-direction: column; gap: 12px; position: relative; }
.tl-item { display: flex; gap: 14px; padding: 14px 16px; text-decoration: none;
           transition: border-color .12s, transform .12s; }
.tl-item:hover { border-color: var(--border-2); transform: translateY(-1px); }
.tl-item .tl-date { flex: 0 0 52px; text-align: center; padding-top: 3px; }
.tl-item .tl-date .d1 { font-size: 17px; font-weight: 600; color: var(--accent); line-height: 1.2; }
.tl-item .tl-date .d2 { font-size: 11px; color: var(--text-3); }
.tl-item .body { min-width: 0; }
.tl-item h3 { margin: 0 0 6px; font-size: 14.5px; font-weight: 600; color: var(--text); line-height: 1.5; }
.tl-item .summ { margin: 0 0 8px; font-size: 13px; color: var(--text-2); line-height: 1.7; }
.tl-item .meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-3); }
.pic-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.pic-grid .ph {
  width: 54px; height: 54px; border-radius: 8px; background: var(--surface-2);
  border: 1px solid var(--border); display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 11px; color: var(--text-3); text-decoration: none;
}
.pic-grid.big .ph { width: 96px; height: 96px; font-size: 12.5px; }
.pic-grid .img-wrap { padding: 0; overflow: hidden; }
.pic-grid .img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 文章正文 */
.article { background: var(--surface); border: 1px solid var(--border);
           border-radius: var(--radius-lg); padding: 28px 30px 24px; }
.article h1 { font-size: 21px; font-weight: 600; margin: 0 0 16px; line-height: 1.5; }
.article-body { font-size: 15px; line-height: 1.9; color: var(--text); }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius); }
.article-body p { margin: 0 0 14px; }
.src-link { margin: 18px 0 0; padding-top: 14px; border-top: 1px dashed var(--border);
            font-size: 13px; color: var(--text-3); }

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid.cols-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .detail-grid { grid-template-columns: 1fr; }
  .detail .side { height: auto; min-height: 0; }
  .detail .side .narration { overflow-y: visible; flex: 0 0 auto; }
  .meta-bar.cols-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .two-col { grid-template-columns: 1fr; }
  .side-tree { position: static; max-height: none; }
}
@media (max-width: 620px) {
  header.site .inner { height: auto; padding: 10px 0; flex-wrap: wrap; gap: 10px; }
  nav.main { order: 3; width: 100%; overflow-x: auto; }
  .searchbox { order: 4; width: 100%; }
  .searchbox input { flex: 1; width: auto; }
  .grid.cols-3, .grid.cols-4, .grid.cols-auto { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .meta-bar { grid-template-columns: 1fr; }
}

/* ============================================================
   知识星球详情 · 星球原生样式 + 互动（点赞/留言/转发）
   ============================================================ */
.zsxq-card { padding: 22px 26px 26px; }
.zsxq-detail-head { font-size: 16px; font-weight: 600; margin: 0 0 10px; }
.zsxq-rule { border: 0; border-top: 1px solid var(--border); margin: 0 0 18px; }

.zsxq-author { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.zsxq-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, #e8833a, #d06a1f);
  color: #fff; font-size: 20px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
}
.zsxq-name { color: #d06a1f; font-weight: 600; font-size: 15px; }
.zsxq-sub { color: var(--text-2); font-size: 12.5px; margin-top: 2px; }
.zsxq-sub .sep { margin: 0 4px; }
.zsxq-body { font-size: 15px; line-height: 1.75; }
.zsxq-edited { color: var(--text-2); font-size: 12.5px; margin: 14px 0 0; }

.zsxq-actions {
  display: flex; gap: 26px; margin: 20px 0 4px;
  padding-top: 14px; border-top: 1px solid var(--border);
}
.zact {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
  color: var(--text-2); font-size: 14px; padding: 4px 2px;
}
.zact:hover { color: var(--accent); }
.zact.on { color: #d06a1f; }
.zact svg { display: block; }

.zshare {
  margin-top: 14px; padding: 14px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-1, #fafafa);
}
.zshare-row { display: flex; gap: 16px; align-items: center; }
.zshare-row img { border-radius: 8px; flex: none; }

.zcomments { margin-top: 26px; }
.zcomments h3 { font-size: 15px; margin: 0 0 12px; }
.zcomments .zcnt { color: var(--text-2); font-weight: 400; margin-left: 4px; }
.zc-item { display: flex; gap: 10px; padding: 10px 0; }
.zc-item.hidden-cm { opacity: .55; }
.zc-item.hidden-cm .zc-main p { text-decoration: line-through; }
.zc-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: var(--accent-soft, #e8f5ee); color: var(--accent);
  font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.zc-main { flex: 1; min-width: 0; }
.zc-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.zc-head time { color: var(--text-2); font-size: 12px; }
.zc-head form { margin-left: auto; }
.zc-del {
  background: none; border: 0; color: #a32d2d; cursor: pointer;
  font-size: 12px; padding: 0;
}
.zc-main p { margin: 4px 0 0; font-size: 14px; line-height: 1.6; }

.zc-form { margin-top: 14px; }
.zc-form textarea {
  width: 100%; box-sizing: border-box; margin-top: 8px;
  border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 11px; font: inherit; font-size: 14px; resize: vertical;
}
.zc-form textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.zc-row { display: flex; gap: 10px; align-items: center; }
.zc-row input {
  flex: 1; max-width: 220px;
  border: 1px solid var(--border); border-radius: 8px;
  padding: 7px 11px; font: inherit; font-size: 13.5px;
}
.zc-row input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }

/* —— 图卡标签筛选区：折叠展开 —— */
.tag-more { width: 100%; }
.tag-more summary { cursor: pointer; font-size: 12.5px; color: var(--accent);
                    user-select: none; padding: 4px 0; }
.tag-more[open] summary { color: var(--text-3); }

/* ==================== Skill 库 ==================== */
.form-wide { max-width: 760px; margin: 0 auto; }
.field-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.field-row .field { margin-bottom: 16px; }
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field .hint { font-size: 12px; color: var(--text-3); margin: 6px 0 0; line-height: 1.6; }
.field input[type="file"] { font-size: 13px; }

.sample-viewer { margin-bottom: 32px; }
.sample-toolbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.sample-stage {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; overflow: hidden; margin-bottom: 16px;
}
.sample-stage:fullscreen { border-radius: 0; }
.sample-stage iframe { width: 100%; height: 640px; border: 0; display: block; background: #fff; }
.sample-stage:fullscreen iframe { height: 100vh; }

.mini-previews {
  display: grid; grid-template-columns: repeat(auto-fill, 216px); gap: 14px;
}
.mini-preview {
  position: relative; cursor: pointer;
  border: 2px solid var(--border); border-radius: 10px; overflow: hidden;
  background: var(--surface); transition: border-color .15s, transform .15s;
}
.mini-preview:hover { border-color: var(--border-2); transform: translateY(-2px); }
.mini-preview.active { border-color: var(--accent); }
.mini-scale {
  width: 216px; height: 135px; overflow: hidden; position: relative; background: #fff;
}
.mini-scale iframe {
  width: 1296px; height: 810px;                 /* 6x 放大后等比缩回 */
  transform: scale(0.16667); transform-origin: 0 0;
  border: 0; pointer-events: none; display: block; background: #fff;
}
.mini-name {
  padding: 7px 10px; font-size: 12px; color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-top: 1px solid var(--border);
}
.mini-del { position: absolute; top: 4px; right: 4px; margin: 0; }
.mini-del button {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border);
  background: rgba(255,255,255,.92); color: #a32d2d; font-size: 14px;
  line-height: 1; cursor: pointer; padding: 0;
}
.mini-del button:hover { background: #fcebeb; border-color: #e5b5b5; }
