/* 内容工厂 · 全站统一视觉（v0.9.17）
   页面内联样式之后加载，用来统一各页面的基础观感，不改业务逻辑。 */

:root {
  --bg: #f6f7f1;
  --bg-soft: #eef2e8;
  --panel: #ffffff;
  --text: #17231c;
  --muted: #68756c;
  --line: #e1e8dc;
  --line-strong: #cfd9c8;
  --brand: #2f7d54;
  --brand-2: #4b9b6e;
  --brand-soft: #eaf4ec;
  --gold: #c98a2e;
  --ok: #1f8a5b;
  --warn: #b7791f;
  --err: #c94a4a;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(23, 35, 28, .04), 0 8px 24px rgba(23, 35, 28, .05);
  --shadow-md: 0 14px 44px rgba(23, 35, 28, .10), 0 2px 8px rgba(23, 35, 28, .04);
  --ring: 0 0 0 4px rgba(75, 155, 110, .16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 6% -10%, rgba(75, 155, 110, .14), transparent 60%),
    radial-gradient(900px 460px at 96% -4%, rgba(201, 138, 46, .10), transparent 55%),
    linear-gradient(180deg, #f9faf4 0%, var(--bg) 42%, #f3f6ee 100%);
  color: var(--text);
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(75, 155, 110, .22); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd6c6; border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #b7c6b0; }

/* ---------- 顶栏 ---------- */
body > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
  height: auto;
  min-height: 70px;
  padding: 12px 28px;
  gap: 14px;
  flex-wrap: wrap;
  background: rgba(252, 253, 248, .84);
  border-bottom: 1px solid rgba(225, 232, 220, .92);
  box-shadow: 0 1px 0 rgba(23, 35, 28, .02), 0 10px 30px rgba(23, 35, 28, .04);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

body > header .brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
body > header .brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .015em;
  white-space: nowrap;
}

body > header .brand .dot {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2f7d54 0%, #4b9b6e 55%, #c98a2e 120%);
  box-shadow: 0 6px 16px rgba(47, 125, 84, .30);
  position: relative;
  flex: none;
}
body > header .brand .dot::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .92);
}

body > header .brand .sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 2px;
  letter-spacing: .02em;
}

body > header nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
  padding: 4px;
  background: rgba(237, 242, 233, .75);
  border: 1px solid rgba(225, 232, 220, .8);
  border-radius: 13px;
}

body > header nav a {
  padding: 7px 14px;
  border-radius: 9px;
  color: #4b5568;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

body > header nav a:hover { background: rgba(255, 255, 255, .8); color: var(--text); }
body > header nav a.on {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 2px 8px rgba(20, 26, 36, .08);
}

body > header .userbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body > header .avatar {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eef0ff, #e6e9ff);
  color: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(47, 125, 84, .14);
}

body > header .user-name { color: var(--text); font-weight: 600; }

body > header .userbox a.ghost {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: #4b5568;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: .16s;
}
body > header .userbox a.ghost:hover { border-color: var(--line-strong); color: var(--text); }

/* 管理下拉菜单 */
.menu { position: relative; display: inline-flex; }
.menu > summary {
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #4b5568;
  padding: 8px 13px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line);
  user-select: none;
  transition: .16s;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { border-color: var(--line-strong); background: #fff; color: var(--text); }
.menu[open] > summary { background: #fff; color: var(--brand); border-color: rgba(75, 155, 110, .38); box-shadow: var(--ring); }
.menu-body {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 40;
}
.menu-body button, .menu-body a {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 9px 11px;
  border-radius: 9px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.menu-body button:hover, .menu-body a:hover { background: var(--bg-soft); }
.menu-body .sep { height: 1px; background: var(--line); margin: 5px 4px; }

/* ---------- 主区域 / 卡片 ---------- */
main { padding-left: 24px; padding-right: 24px; animation: pageIn .28s ease both; }

@keyframes pageIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

body .panel {
  background: var(--panel);
  border: 1px solid rgba(225, 232, 220, .95);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

body .panel h1 {
  font-size: 22px;
  letter-spacing: -.01em;
  margin: 0 0 8px;
}
body .panel h2 {
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -.005em;
  margin: 0 0 18px;
}
body .panel h3 {
  font-size: 18px;
  letter-spacing: -.01em;
}
body .panel > p {
  color: var(--muted);
  line-height: 1.75;
}

body .panel .job, body .panel .art {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
body .panel .job:hover, body .panel .art:hover {
  border-color: rgba(75, 155, 110, .38);
  box-shadow: 0 8px 24px rgba(20, 26, 36, .06);
}

body .panel .job-head { gap: 12px; }
body .panel .job-title { font-size: 15px; }
body .panel .meta { color: var(--muted); }
body .art .art-time { font-size: 11px; color: var(--muted); margin: 3px 0 0; }
body .job .meta span:first-child:empty { display: none; }
body .job video {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 320px;
  margin: 12px auto 4px;
  border-radius: 14px;
  background: #0b1020;
  box-shadow: 0 14px 34px rgba(10, 14, 26, .12);
}

body .panel .empty {
  padding: 34px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: #fbfcff;
  color: var(--muted);
}

body .panel .list-item, body .panel .plat-row {
  border-bottom: 1px solid var(--line);
  padding: 12px 2px;
  transition: background .14s;
  border-radius: 10px;
}
body .panel .list-item:hover, body .panel .plat-row:hover { background: #f7faf4; }
body .panel .list-item:last-child, body .panel .plat-row:last-child { border-bottom: 0; }

/* ---------- 表单 ---------- */
body label { color: #4b5568; font-weight: 500; }
body input, body textarea, body select {
  background: #fbfcff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 13px;
  color: var(--text);
  transition: border-color .16s, box-shadow .16s, background .16s;
}
body input::placeholder, body textarea::placeholder { color: #a3aabd; }
body input:hover, body textarea:hover, body select:hover { border-color: var(--line-strong); }
body input:focus, body textarea:focus, body select:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand-2);
  box-shadow: var(--ring);
}
body textarea { line-height: 1.7; }
body input[type="checkbox"], body input[type="radio"] { accent-color: var(--brand); }

body .row { align-items: start; }

body .drop {
  border: 1.5px dashed #cbd6c5;
  border-radius: 15px;
  background: linear-gradient(180deg, #fbfcf7, #f3f7ef);
  padding: 18px;
  transition: border-color .18s, background .18s, transform .18s;
}
body .drop:hover {
  border-color: var(--brand-2);
  background: #f1f7ee;
  transform: translateY(-1px);
}
body .drop.hover { border-color: var(--brand); background: #edf5ea; }
body .drop small { color: var(--muted); }

/* ---------- 按钮 ---------- */
body button {
  border-radius: 11px;
  padding: 10px 17px;
  font-weight: 650;
  background: linear-gradient(135deg, #2f7d54, #45936a);
  box-shadow: 0 4px 12px rgba(47, 125, 84, .20);
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}
body button:hover { filter: brightness(1.04); box-shadow: 0 6px 18px rgba(47, 125, 84, .26); transform: translateY(-1px); }
body button:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(47, 125, 84, .22); }
body button:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
body button.ghost {
  background: #fff;
  color: #3f4757;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(20, 26, 36, .03);
}
body button.ghost:hover { background: #f7faf4; border-color: var(--line-strong); color: var(--text); }
body button.small { padding: 7px 11px; font-size: 12px; border-radius: 9px; }
body button.danger { background: #fef2f2; color: var(--err); border: 1px solid #fbd5d5; box-shadow: none; }
body button.danger:hover { background: #fee2e2; }

/* ---------- 标签 / 徽标 ---------- */
body .tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #f7faf4;
  color: #526b57;
  font-size: 11px;
  font-weight: 600;
}
body .badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eff4ea;
  color: #526b57;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}
body .badge.success, body .badge.ok { background: #e7f5ec; color: var(--ok); }
body .badge.bad { background: #fdefef; color: var(--err); }
body .badge.warn { background: #fbf3e2; color: var(--warn); }
body .badge.running { background: var(--brand-soft); color: var(--brand); }

/* ---------- 发布话题选择 ---------- */
body .topic-input-row { display: flex; align-items: center; gap: 8px; }
body .topic-input-row input { flex: 1; min-width: 0; }
body .topic-input-row button { flex: none; white-space: nowrap; }
body .topic-picker {
  margin: -6px 0 14px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfcfa;
}
body .topic-picker-head {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 9px;
  line-height: 1.6;
}
body .topic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
body .topic-chip {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
  color: #4b5568;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: background .14s, border-color .14s, color .14s;
}
body .topic-chip:hover {
  background: var(--brand-soft);
  border-color: var(--brand-2);
  color: var(--brand);
  box-shadow: none;
  transform: none;
  filter: none;
}
body .topic-chip.on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
body .topic-chip.on:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
body .topic-chip.on::before { content: "✓ "; font-weight: 700; }
body .topic-hint { font-size: 12px; color: var(--muted); }

/* ---------- 下拉 / 提示 ---------- */
body details > summary { color: #4b5568; }
body details > summary:hover { color: var(--text); }
body code {
  background: #f3f6ef;
  border: 1px solid #e2e8de;
  border-radius: 5px;
  padding: 1px 5px;
  color: #4d5f53;
  font-size: 12px;
}

/* ---------- 弹窗 ---------- */
body .modal {
  background: rgba(16, 28, 20, .48);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: dshFade .16s ease;
}
body .sheet {
  width: 620px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 26px 80px rgba(12, 24, 16, .28);
  padding: 26px;
  animation: dshPop .18s cubic-bezier(.2, .8, .3, 1);
}
body .sheet h3 { font-size: 19px; }
body .sheet p { color: var(--muted); line-height: 1.75; font-size: 13px; }
body .actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

@keyframes dshFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dshPop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- 提示条 ---------- */
body .toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(20, 34, 25, .95);
  color: #fff;
  box-shadow: 0 14px 40px rgba(12, 24, 16, .28);
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  backdrop-filter: blur(8px);
  transition: opacity .25s ease, transform .25s ease;
}
body .toast.show { opacity: 1; transform: none; }

/* ---------- 视频 / 图文页局部 ---------- */
body .job .bar { background: #eef1f9; height: 7px; border-radius: 999px; overflow: hidden; }
body .job .bar i { background: linear-gradient(90deg, var(--brand), #a78bfa); }

body .guide .step {
  background: #fbfcff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
body .guide .step b { color: var(--brand); }

body .review-bar {
  background: linear-gradient(180deg, #fbfcff, #f7f8ff);
  border: 1px solid var(--line);
  border-radius: 12px;
}
body .preview-note, body .check-box { border-radius: 12px; }
body .pv-tabs { border-bottom-color: var(--line); }

/* ---------- 账号页 ---------- */
body .screen-box {
  background: radial-gradient(600px 300px at 50% 0%, #1e3b2d, #0b1712 72%);
  border-radius: 16px;
  border: 1px solid #1f3329;
}
body .screen-box .screen-hint { animation: screenPulse 1.8s ease-in-out infinite; }
@keyframes screenPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
body .screen-url { border-radius: 10px; }

/* ---------- 草稿中心 ---------- */
body .draft { padding: 14px 4px; transition: background .14s; border-radius: 12px; }
body .draft:hover { background: #f7faf4; }

/* ---------- 登录页 ---------- */
body .card {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 24px 70px rgba(20, 26, 36, .14);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
}
body .logo .dot {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2f7d54 0%, #4b9b6e 55%, #c98a2e 120%);
  box-shadow: 0 6px 16px rgba(47, 125, 84, .30);
  position: relative;
  flex: none;
}
body .logo .dot::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .92);
}
body .logo { font-size: 19px; font-weight: 800; gap: 10px; }

/* ---------- 首页 Hero ---------- */
.hero {
  grid-column: 1 / -1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  padding: 28px 34px;
  border-radius: 22px;
  background:
    radial-gradient(700px 300px at 92% 10%, rgba(201, 138, 46, .35), transparent 60%),
    linear-gradient(118deg, #173d2b 0%, #2f7d54 58%, #3f9466 100%);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 20px 46px rgba(23, 61, 43, .22);
  color: #f7fbf3;
}
.hero-copy { position: relative; z-index: 2; max-width: 620px; }
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  letter-spacing: .18em;
  color: rgba(247, 251, 243, .72);
  padding: 5px 10px;
  border: 1px solid rgba(247, 251, 243, .28);
  border-radius: 999px;
  margin-bottom: 12px;
}
.hero h1 {
  margin: 0 0 8px;
  font-size: 27px;
  line-height: 1.3;
  letter-spacing: -.02em;
  font-weight: 800;
  color: #fff;
}
.hero p {
  margin: 0;
  font-size: 13px;
  color: rgba(247, 251, 243, .78);
  letter-spacing: .01em;
}
.hero-actions { display: flex; gap: 9px; flex-wrap: wrap; position: relative; z-index: 2; }
.hero-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  color: #f7fbf3;
  border: 1px solid rgba(247, 251, 243, .30);
  background: rgba(255, 255, 255, .08);
  transition: .16s;
  white-space: nowrap;
}
.hero-btn:hover { background: rgba(255, 255, 255, .16); transform: translateY(-1px); }
.hero-btn.primary { background: #f7fbf3; color: #1f513a; border-color: #f7fbf3; box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.hero-btn.primary:hover { background: #fff; }
.hero-orb {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  pointer-events: none;
}
.hero-orb.one { width: 260px; height: 260px; right: -40px; top: -120px; background: rgba(255, 255, 255, .05); }
.hero-orb.two { width: 180px; height: 180px; right: 150px; bottom: -120px; background: rgba(201, 138, 46, .12); }

/* ---------- 页脚 ---------- */
.site-footer {
  width: calc(100% - 48px);
  max-width: 1280px;
  margin: 38px auto 0;
  padding: 18px 4px 26px;
  border-top: 1px solid rgba(207, 217, 200, .75);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: #7d8a80;
  font-size: 12px;
  letter-spacing: .01em;
}
.site-footer .foot-brand { color: #526b57; font-weight: 650; }
.site-footer .foot-sep { color: #b7c4b2; }
.site-footer a { color: #526b57; text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.login-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 18px;
  width: 100%;
  max-width: none;
  margin: 0;
  border-top: 0;
  justify-content: center;
  padding: 0 16px;
  color: #8a978d;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  body > header { padding: 10px 18px; }
  body > header nav { margin-left: 4px; }
  main { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 820px) {
  body > header {
    position: relative;
    min-height: 0;
    padding: 10px 14px;
    gap: 8px;
  }
  body > header .brand { font-size: 16px; }
  body > header .brand-name { font-size: 15px; }
  body > header .brand .sub { display: none; }
  body > header nav {
    order: 3;
    width: 100%;
    margin: 2px 0 0;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }
  body > header nav::-webkit-scrollbar { display: none; }
  body > header .userbox { gap: 6px; }
  body > header .userbox .tag { display: none; }
  body > header .userbox > span:not(.avatar) { display: none; }
  main { margin-top: 16px; }
  body .panel { padding: 18px; border-radius: 16px; }
  body .row { grid-template-columns: 1fr !important; }
  body .sheet { padding: 20px; border-radius: 18px; }
  body .toast { left: 14px; right: 14px; bottom: 14px; text-align: center; }
  .hero { flex-direction: column; align-items: flex-start; padding: 22px; border-radius: 18px; }
  .hero h1 { font-size: 22px; }
  .hero-actions { width: 100%; }
  .hero-btn { flex: 1; justify-content: center; }
  .hero-orb.one { width: 170px; height: 170px; right: -60px; }
}

/* 防止窄屏下 grid / 输入框把页面撑宽 */
body main > *, body .panel, body .row > *, body .job, body .art, body .plat {
  min-width: 0;
}
body input, body textarea, body select {
  max-width: 100%;
  min-width: 0;
}
body img, body video { max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 统一外壳组件（v0.9.29 美化） ---------- */

/* 面板标题栏：标题 + 计数 + 右侧操作 */
body .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}
body .panel-head h2 { margin: 0; }
body .panel-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -.005em;
}
body .panel-title .count {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 3px 10px;
}
body .panel-title .count:empty { display: none; }
body .panel-head .ops { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* 右侧栏堆叠容器 */
body main .col-side {
  display: grid;
  gap: 20px;
  align-content: start;
  align-self: start;
}

/* 折叠说明块 */
body .fold {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfa;
  margin: 0 0 12px;
  overflow: hidden;
}
body .fold > summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #4b5568;
  display: flex;
  align-items: center;
  gap: 8px;
}
body .fold > summary::-webkit-details-marker { display: none; }
body .fold > summary::before {
  content: "?";
  width: 18px; height: 18px;
  flex: none;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
body .fold > summary::after {
  content: "展开";
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
body .fold[open] > summary::after { content: "收起"; }
body .fold > .fold-body {
  padding: 0 14px 13px 40px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.75;
}

/* 记录行：左信息右操作，失败原因不再截断 */
body .rec {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
body .rec:last-child { border-bottom: 0; }
body .rec .rec-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
body .rec .rec-name { font-weight: 600; font-size: 13px; }
body .rec .rec-msg { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.6; word-break: break-word; }
body .rec .rec-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
body .rec .rec-time { color: var(--muted); font-size: 11px; white-space: nowrap; }
body .rec .rec-ops { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
body .rec .rec-ops button { padding: 5px 10px; font-size: 12px; border-radius: 8px; }

/* 记录分组：同一天 + 同一主题折叠，组头外显总条数/未发布条数 */
body .rec-group {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  margin-bottom: 10px;
  overflow: hidden;
}
body .rec-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  background: #f7faf6;
  color: var(--text);
  border: 0;
  border-radius: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
body .rec-group-head:hover {
  background: var(--brand-soft);
  color: var(--text);
  filter: none;
  box-shadow: none;
  transform: none;
}
body .rec-group.open > .rec-group-head { border-bottom: 1px solid var(--line); }
body .rec-group-head .caret {
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  transition: transform .15s ease;
}
body .rec-group.open .caret { transform: rotate(90deg); }
body .rec-group-head .name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body .rec-group-head .stats {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
body .rec-group-head .stats b { color: var(--text); font-weight: 600; }
body .rec-group-head .stats .todo { color: var(--gold); }
body .rec-group-head .stats .ok { color: var(--ok); }
body .rec-group-head .stats .badge { font-weight: 500; }
body .rec-group-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}
body .rec-group-body > .job,
body .rec-group-body > .art { margin-bottom: 0; }

/* 长列表限高滚动 */
body .scroll-wrap { position: relative; }
body .scroll-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 10px;
  bottom: 0;
  height: 28px;
  background: linear-gradient(to top, #fff, rgba(255, 255, 255, 0));
  pointer-events: none;
}
body .scroll-list { max-height: 520px; overflow: auto; padding-right: 4px; }
body .scroll-list::-webkit-scrollbar { width: 8px; }
body .col-side .scroll-list { max-height: 460px; }
body .col-side .job video { max-height: 200px; }

/* 平台卡片网格 */
body .plat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 10px;
}
body .plat-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  min-width: 0;
  transition: border-color .16s ease, box-shadow .16s ease;
}
body .plat-card:hover { border-color: rgba(75, 155, 110, .38); box-shadow: 0 6px 18px rgba(20, 26, 36, .05); }
body .plat-card .pc-name { font-weight: 600; font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body .plat-card .pc-sub { font-size: 11px; color: var(--muted); }
body .plat-card .pc-ops { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
body .plat-card .pc-ops button { white-space: nowrap; }

/* 分组小标题 */
body .group-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 650; color: var(--muted);
  margin: 16px 0 10px;
}
body .group-title:first-child { margin-top: 0; }
body .group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* 空状态盒子 */
body .empty-box {
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  background: #fbfcfa;
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
body .empty-box .eb-actions { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }

/* 空状态 / 卡片里的行动按钮 */
body .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: .16s;
}
body .btn:hover { border-color: var(--line-strong); background: #f7faf4; }
body .btn.primary {
  background: linear-gradient(135deg, #2f7d54, #45936a);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(47, 125, 84, .20);
}
body .btn.primary:hover { filter: brightness(1.04); }

/* 可折叠大面板 */
body details.collapse {
  border: 1px solid rgba(225, 232, 220, .95);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  margin: 0 0 18px;
  overflow: hidden;
}
body details.collapse > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 750;
  color: var(--text);
  transition: background .16s;
}
body details.collapse > summary::-webkit-details-marker { display: none; }
body details.collapse > summary:hover { background: #f7faf4; }
body details.collapse > summary::after {
  content: "展开";
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
body details.collapse[open] > summary { border-bottom: 1px solid var(--line); }
body details.collapse[open] > summary::after { content: "收起"; }
body details.collapse > .collapse-body { padding: 20px 24px 24px; }
body details.collapse > .collapse-body > :first-child { margin-top: 0; }

/* 文件选择控件 */
body input[type="file"] {
  font-size: 12px;
  color: var(--muted);
  background: #fbfcfa;
  border-style: dashed;
}
body input[type="file"]::file-selector-button {
  font: inherit;
  font-weight: 600;
  font-size: 12px;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid rgba(75, 155, 110, .28);
  border-radius: 8px;
  padding: 6px 12px;
  margin-right: 10px;
  cursor: pointer;
}

/* 链接式次要操作 */
body .link-btn {
  background: none;
  border: 0;
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 2px;
  cursor: pointer;
  text-decoration: none;
}
body .link-btn:hover { color: var(--brand-2); text-decoration: underline; }
body .link-btn.danger { color: var(--err); }
body .link-btn.danger:hover { color: #a53a3a; }

/* 记录卡片的次要操作行 */
body .art .more-actions {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 820px) {
  body .rec { grid-template-columns: 1fr; }
  body .rec .rec-side { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  body .rec .rec-ops { justify-content: flex-start; }
  body .scroll-list { max-height: 420px; }
  body .panel-head { margin-bottom: 12px; }
}
