/* ============ 基础 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --accent: #ff6b35;
  --accent-dark: #e5522a;
  --accent-soft: #fff1ea;
  --accent-line: #ffc5ae;
  --ink: #24272b;
  --ink-2: #5a6068;
  --ink-3: #9aa0a8;
  --bg: #f4f5f7;
  --card: #fff;
  --line: #e9ebee;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(20, 24, 32, .06);
  --shadow-md: 0 8px 24px rgba(20, 24, 32, .10);
}
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.ico { flex: none; }

/* ============ 页头 ============ */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }
.header-inner { max-width: 1400px; margin: 0 auto; padding: 0 20px; height: 62px; display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; letter-spacing: 1px; flex: none; }
.logo-mark { font-size: 22px; }
.main-nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.main-nav a { padding: 6px 12px; border-radius: 999px; color: var(--ink-2); font-size: 14.5px; white-space: nowrap; }
.main-nav a:hover { color: var(--ink); background: #f2f3f5; }
.main-nav a.on { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.header-right { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.search-form {
  display: flex; align-items: center; gap: 6px;
  background: #f2f3f5; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; color: var(--ink-3);
}
.search-form:focus-within { border-color: var(--accent); background: #fff; }
.search-form input { border: 0; outline: 0; background: transparent; font-size: 13.5px; width: 150px; color: var(--ink); font-family: inherit; }
.admin-entry { font-size: 13.5px; color: var(--ink-2); border: 1px solid var(--line); padding: 5px 13px; border-radius: 999px; }
.admin-entry:hover { color: var(--accent); border-color: var(--accent-line); }

/* ============ 标题横幅 ============ */
.page-band { background: #fdeee6; color: var(--accent); text-align: center; padding: 12px 16px 11px; border-bottom: 1px solid #fbe0d3; }
.page-band h1 { font-size: 18px; letter-spacing: 2px; font-weight: 700; display: inline-block; color: var(--accent); }
.band-sub { display: inline-block; margin-left: 10px; color: #c98a6e; font-size: 12px; letter-spacing: .5px; }

.container { max-width: 1400px; margin: 0 auto; padding: 24px 20px 60px; }

/* ============ 分类筛选 ============ */
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: 13.5px; color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.chip em { font-style: normal; color: var(--ink-3); font-size: 12px; margin-left: 4px; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip.on em { color: rgba(255, 255, 255, .8); }

/* ============ 卡片墙：固定 4 列，每页铺满 ============ */
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 1300px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-cover { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: #ecedf0; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-cover img { transform: scale(1.05); }
.cover-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--ink-3); font-size: 13px; }
.card-count {
  position: absolute; top: 10px; right: 10px;
  background: rgba(17, 19, 24, .72); color: #fff; font-size: 12px;
  padding: 2px 9px; border-radius: 999px; backdrop-filter: blur(4px);
}
.card-body { padding: 12px 14px 14px; }
.card-cat { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; }
.card-cat i, .post-cat i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
.card-title {
  font-size: 14.5px; font-weight: 600; line-height: 1.45; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.9em;
}
.card:hover .card-title { color: var(--accent); }
.card-meta { display: flex; gap: 14px; margin-top: 8px; color: var(--ink-3); font-size: 12px; }
.meta-item { display: inline-flex; align-items: center; gap: 4px; }

/* ============ 分页 ============ */
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.pg {
  min-width: 36px; height: 36px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  font-size: 13.5px; color: var(--ink-2);
}
.pg:hover { border-color: var(--accent); color: var(--accent); }
.pg.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.pg-dots { color: var(--ink-3); align-self: center; }

/* ============ 详情页 ============ */
.post-wrap { max-width: 900px; margin: 0 auto; padding: 28px 20px 60px; }
.post-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 30px 34px; }
.post-title { font-size: 23px; line-height: 1.4; font-weight: 700; }
.post-meta { display: flex; flex-wrap: wrap; gap: 16px; margin: 14px 0 8px; color: var(--ink-3); font-size: 13px; align-items: center; }
.post-cat {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); background: var(--accent-soft);
  padding: 3px 10px; border-radius: 999px; font-size: 12.5px;
}
.post-images { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.post-figure img { width: 100%; height: auto; border-radius: 8px; }

/* 原文链接框（对照参考站样式） */
.source-box {
  margin-top: 26px;
  border: 1px dashed var(--accent-line);
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 14px 18px;
}
.source-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.source-row a { color: var(--accent); word-break: break-all; font-weight: 600; }
.source-row a:hover { text-decoration: underline; }
.source-label { font-weight: 600; color: var(--ink); }
.source-note { margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }

/* 仅预览提示 */
.preview-note {
  margin: 14px 0 4px; padding: 12px 16px;
  border: 1px solid #b8d4ff; background: #f0f7ff; border-radius: 10px;
  color: var(--ink-2); font-size: 13.5px; line-height: 1.7;
}
.preview-note .pn-badge {
  display: inline-block; background: #2b7fff; color: #fff;
  border-radius: 999px; padding: 2px 12px; font-size: 12.5px; font-weight: 600;
  margin-right: 8px;
}
.preview-note a { color: #2b7fff; font-weight: 600; }
.preview-note a:hover { text-decoration: underline; }

.post-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.pn {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.pn span { font-size: 12px; color: var(--ink-3); }
.pn b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn:hover b { color: var(--accent); }
.pn.next { align-items: flex-end; text-align: right; }
.pn.disabled { opacity: .45; }

/* ============ 猜你喜欢 ============ */
.rec-section { margin-top: 26px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px 22px 16px; }
.rec-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.rec-title::before { content: ''; width: 4px; height: 17px; background: var(--accent); border-radius: 2px; }
.rec-strip {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px;
  -webkit-overflow-scrolling: touch; scroll-behavior: smooth;
}
.rec-strip::-webkit-scrollbar { height: 6px; }
.rec-strip::-webkit-scrollbar-thumb { background: #d8dbdf; border-radius: 3px; }
.rec-strip::-webkit-scrollbar-track { background: transparent; }
.rec-card {
  flex: 0 0 178px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: #fff; transition: transform .16s ease, box-shadow .16s ease;
}
.rec-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.rec-cover { position: relative; aspect-ratio: 3 / 4; background: #ecedf0; overflow: hidden; }
.rec-cover img, .rec-cover video { width: 100%; height: 100%; object-fit: cover; display: block; }
.rec-badge {
  position: absolute; top: 7px; right: 7px;
  background: rgba(17, 19, 24, .72); color: #fff;
  font-size: 11px; padding: 1px 7px; border-radius: 999px;
}
.rec-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(17, 19, 24, .55); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; padding-left: 3px;
}
.rec-name {
  padding: 9px 11px 11px; font-size: 13px; line-height: 1.45; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em;
}
.rec-card:hover .rec-name { color: var(--accent); }

/* ============ 页脚 ============ */
.site-footer { border-top: 1px solid var(--line); background: #fff; margin-top: 20px; }
.footer-inner {
  max-width: 1400px; margin: 0 auto; padding: 26px 20px; text-align: center;
  color: var(--ink-3); font-size: 12.5px; display: flex; flex-direction: column; gap: 6px;
}
.footer-links a { color: var(--ink-2); margin: 0 8px; }
.footer-links a:hover { color: var(--accent); }

/* ============ 空状态 ============ */
.empty {
  background: #fff; border-radius: var(--radius); padding: 70px 20px; text-align: center;
  color: var(--ink-2); box-shadow: var(--shadow-sm); font-size: 15px;
}
.empty-sub { margin-top: 8px; color: var(--ink-3); font-size: 13px; }
.empty-sub a { color: var(--accent); }

/* ============ 按钮 / 提示 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 8px; padding: 9px 18px;
  font-size: 14px; cursor: pointer; font-family: inherit; line-height: 1.4;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: #fff; border-color: #ffd2c2; color: #e5482e; }
.btn-danger:hover { background: #fff3ef; }
.btn-sm { padding: 5px 12px; font-size: 12.5px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.alert { border-radius: 8px; padding: 11px 14px; font-size: 13.5px; margin-bottom: 16px; }
.alert.error { background: #fff1f0; border: 1px solid #ffccc7; color: #cf1322; }
.alert.ok { background: #f6ffed; border: 1px solid #b7eb8f; color: #389e0d; }

/* ============ 工作台 ============ */
.admin-body { background: var(--bg); }
.admin-topbar { background: #202329; color: #fff; position: sticky; top: 0; z-index: 50; }
.admin-topbar-inner { max-width: 1150px; margin: 0 auto; padding: 0 20px; height: 56px; display: flex; align-items: center; }
.admin-brand { font-weight: 700; font-size: 16px; color: #fff; }
.admin-top-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: 13px; }
.admin-top-actions a { color: rgba(255, 255, 255, .75); }
.admin-top-actions a:hover { color: #fff; }
.admin-logout { color: rgba(255, 255, 255, .55) !important; }
.admin-main { max-width: 1150px; margin: 0 auto; padding: 24px 20px 40px; }
.admin-main.narrow { max-width: 860px; }
.admin-foot { max-width: 1150px; margin: 0 auto; padding: 0 20px 30px; color: var(--ink-3); font-size: 12.5px; text-align: center; }
.admin-foot a { color: var(--ink-2); }
.admin-foot a:hover { color: var(--accent); }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 16px 20px; display: flex; flex-direction: column; }
.stat b { font-size: 24px; }
.stat span { color: var(--ink-3); font-size: 12.5px; }

.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px 22px; margin-bottom: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel-head h2 { font-size: 17px; }

.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; color: var(--ink-3); font-weight: 500; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 8px; border-bottom: 1px solid #f2f3f5; vertical-align: middle; }
/* 分类多选 + 分类排序 */
.cat-picker { display: flex; flex-direction: column; gap: 8px; }
/* 批量导入页：分类做成紧凑的横向可勾选胶囊 */
#importCats { flex-direction: row; flex-wrap: wrap; gap: 8px; }
#importCats .cat-opt { padding: 7px 14px; gap: 8px; border-radius: 999px; }
#importCats .cat-name { min-width: 0; font-weight: 600; font-size: 13.5px; }
.cat-opt {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px;
  background: #fff; cursor: pointer;
}
.cat-opt.on { border-color: var(--accent-line); background: var(--accent-soft); }
.cat-opt input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }
.cat-name { font-weight: 600; font-size: 14px; min-width: 84px; }
.cat-w { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
.cat-w input { width: 78px; border: 1px solid var(--line); border-radius: 7px; padding: 5px 8px; font-size: 13px; font-family: inherit; outline: none; }
.cat-w input:focus { border-color: var(--accent); }

.tag .tag-w { color: #2b5fd9; font-size: 11px; margin-left: 4px; font-weight: 600; }
.cat-row td { background: #fafbfc; padding: 12px 10px !important; }
.cat-editor { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.cat-editor-title { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.cat-editor-item { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; }
.cat-editor-name { font-size: 13px; color: var(--ink-2); }

/* 长列表只渲染可视区域，滚动/输入更顺滑 */
.table tbody tr { content-visibility: auto; contain-intrinsic-size: 84px; }
.panel-sub { font-size: 12.5px; color: var(--ink-3); font-weight: 400; margin-left: 8px; }
.tag-v { background: #eef4ff; color: #2b5fd9; border-radius: 999px; padding: 2px 8px; font-size: 11.5px; margin-left: 4px; }
.admin-pager { justify-content: flex-start; margin-top: 18px; }
.row-thumb { width: 52px; height: 64px; object-fit: cover; border-radius: 6px; background: #ecedf0; }
.row-thumb.ph { display: inline-block; }
.td-title { max-width: 300px; }
.td-title a { font-weight: 600; }
.td-title a:hover { color: var(--accent); }
.tag { background: #f2f3f5; border-radius: 999px; padding: 3px 10px; font-size: 12px; color: var(--ink-2); }

/* 表格列宽与竖排分类：让整行紧凑、不换行 */
.table { table-layout: auto; }
.table .btn { white-space: nowrap; }
.td-cats { width: 1%; }
.cat-stack { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.cat-stack .tag { white-space: nowrap; }
.td-num { width: 1%; white-space: nowrap; color: var(--ink-2); text-align: center; }
.td-time { width: 1%; white-space: nowrap; color: var(--ink-2); font-size: 13px; line-height: 1.35; }
.td-time small { display: block; color: var(--ink-3); font-size: 11.5px; }
.td-sort { width: 1%; white-space: nowrap; }
.td-actions { width: 1%; white-space: nowrap; }
.td-actions form { display: inline-block; margin-left: 6px; }
.btn.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* 表单 */
/* 多行文本域 */
.textarea { min-height: 104px; line-height: 1.65; resize: vertical; padding: 10px 12px; }

.field { margin-bottom: 18px; }
.field > label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field > label b { color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input {
  width: 100%; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; font-size: 14px; font-family: inherit; outline: none;
  background: #fff; color: var(--ink);
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 107, 53, .12); }
.hint { color: var(--ink-3); font-size: 12.5px; }
.form-actions { display: flex; gap: 12px; margin-top: 8px; }

/* 上传区 */
.upload-zone {
  border: 2px dashed #d4d7dd; border-radius: var(--radius);
  background: #fafbfc; padding: 34px 16px; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.upload-zone:hover, .upload-zone.drag { border-color: var(--accent); background: var(--accent-soft); }
.upload-hint { color: var(--ink-2); font-size: 14.5px; line-height: 1.9; }
.upload-hint small { color: var(--ink-3); font-size: 12px; }
#fileInput { display: none; }
.upload-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 12px; }
.up-item { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #ecedf0; }
.up-item img, .up-item video { width: 100%; height: 100%; object-fit: cover; }
.up-kind {
  position: absolute; bottom: 4px; left: 4px;
  background: rgba(17, 19, 24, .72); color: #fff;
  border-radius: 999px; font-size: 10.5px; padding: 1px 6px;
}
.up-item.is-video { outline: 2px solid #2b7fff; outline-offset: -2px; }
.up-top, .imp-file-top {
  position: absolute; right: 4px; bottom: 4px;
  border: 0; border-radius: 999px; line-height: 1.4;
  background: rgba(255, 107, 53, .95); color: #fff;
  font-size: 10.5px; padding: 2px 7px; cursor: pointer;
}
.up-top[hidden], .imp-file-top[hidden] { display: none; }
.up-top:hover, .imp-file-top:hover { background: #e85a1f; }

/* 全集数量摘要 */
.count-summary { display: flex; gap: 10px; margin: 12px 0 4px; flex-wrap: wrap; }
.cs-item {
  font-size: 13px; color: var(--ink-2);
  background: #f2f3f5; border-radius: 8px; padding: 6px 12px;
}
.cs-item b { color: var(--ink); font-size: 14px; }
.cs-item.cs-v { background: #eef4ff; color: #2b5fd9; }
.cs-item.cs-v b { color: #2b5fd9; }

/* 视频相关 */
.card-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(17, 19, 24, .55); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; padding-left: 4px;
  pointer-events: none; backdrop-filter: blur(2px);
}
.card:hover .card-play { background: rgba(255, 107, 53, .85); }
.post-figure video { width: 100%; height: auto; border-radius: 8px; display: block; background: #000; }
.media-tip { margin-top: 6px; font-size: 12.5px; color: var(--ink-3); text-align: center; }
.media-badge {
  position: absolute; right: 6px; bottom: 6px;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(17, 19, 24, .68); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
  pointer-events: none;
}
.photo-item video, .row-thumb-wrap video { width: 100%; height: 100%; object-fit: cover; }
.row-thumb-wrap { position: relative; display: inline-block; width: 52px; height: 64px; }
.row-thumb-wrap .row-thumb { width: 52px; height: 64px; }
.row-thumb-wrap .media-badge { right: -4px; bottom: -4px; width: 20px; height: 20px; font-size: 10px; }
.imp-thumb { border-radius: 6px; }
video.imp-thumb { width: 64px; height: 80px; object-fit: cover; background: #000; }
.up-idx { position: absolute; top: 4px; left: 4px; background: rgba(17, 19, 24, .7); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; }
.up-del {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%;
  border: 0; background: rgba(229, 72, 46, .9); color: #fff; cursor: pointer; font-size: 11px; line-height: 1;
}

/* 已上传图片管理 */
.photo-manage { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.photo-item { position: relative; border-radius: 8px; overflow: hidden; background: #ecedf0; }
.photo-item img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.photo-idx { position: absolute; top: 5px; left: 5px; background: rgba(17, 19, 24, .7); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; }
.photo-top {
  position: absolute; top: 5px; right: 5px; z-index: 2;
  border: 0; border-radius: 999px; line-height: 1.4;
  background: rgba(255, 107, 53, .95); color: #fff;
  font-size: 11px; padding: 2px 8px; cursor: pointer;
}
.photo-top[hidden] { display: none; }
.photo-top:hover { background: #e85a1f; }
.photo-actions {
  position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; gap: 6px;
  padding: 6px; background: linear-gradient(transparent, rgba(0, 0, 0, .55));
}
.photo-actions form { margin: 0; }
.photo-actions button {
  width: 26px; height: 26px; border-radius: 6px; border: 0;
  background: rgba(255, 255, 255, .92); cursor: pointer; font-size: 13px; color: var(--ink-2);
}
.photo-actions button:hover { background: var(--accent); color: #fff; }
.photo-actions button.danger:hover { background: #e5482e; }

/* 拖拽排序 */
.photo-item { cursor: grab; }
.photo-item.dragging { opacity: .35; outline: 2px dashed var(--accent); }
.photo-manage.drag-over { outline: 2px dashed var(--accent-line); }

/* 列表排序值 */
.weight-form { display: flex; gap: 6px; align-items: center; }
.weight-input { width: 62px; border: 1px solid var(--line); border-radius: 7px; padding: 5px 8px; font-size: 13px; font-family: inherit; outline: none; }
.weight-input:focus { border-color: var(--accent); }

/* 上传前压缩选项 */
.check-inline {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--ink-2); font-weight: 400;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; line-height: 1.6;
  cursor: pointer;
}
.check-inline input { margin-top: 3px; accent-color: var(--accent); }

/* 登录页 */
.login-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #2b2e34, #43474f); }
.login-card {
  background: #fff; border-radius: 16px; padding: 40px 38px; width: min(400px, 92vw);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35); text-align: center;
}
.login-logo { font-size: 44px; }
.login-card h1 { font-size: 19px; margin-top: 10px; }
.login-sub { color: var(--ink-3); font-size: 13px; margin: 6px 0 22px; }
.login-card form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.login-back { margin-top: 18px; font-size: 12.5px; }
.login-back a { color: var(--ink-3); }
.login-back a:hover { color: var(--accent); }

/* 批量导入 */
.import-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.import-status { border-radius: 8px; padding: 10px 14px; font-size: 13.5px; background: var(--accent-soft); color: var(--ink-2); margin-bottom: 14px; }
.import-status.error { background: #fff1f0; border: 1px solid #ffccc7; color: #cf1322; }
.imp-groups { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.imp-row {
  display: grid; grid-template-columns: 64px 1fr 1.2fr auto; gap: 12px; align-items: center;
  background: #fafbfc; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.imp-row label { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.imp-thumb { width: 64px; height: 80px; object-fit: cover; border-radius: 6px; background: #ecedf0; }
.btn-dark-ghost { background: transparent; border-color: rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .85); }
.btn-dark-ghost:hover { border-color: #fff; color: #fff; }

/* ============ 会员 / 账号 ============ */
.auth-wrap { max-width: 430px; margin: 44px auto; padding: 0 16px; }
.auth-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow-md); padding: 32px 30px; }
.auth-title { font-size: 21px; text-align: center; }
.auth-sub { text-align: center; color: var(--ink-3); font-size: 13px; margin: 6px 0 22px; }
.auth-card .field > label { font-weight: 500; }
.auth-foot { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 16px; }
.auth-foot a { color: var(--accent); }
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row .input { flex: 1; }
.captcha-img { height: 42px; border-radius: 8px; cursor: pointer; border: 1px solid var(--line); background: #f7f8fa; }

.account-wrap { max-width: 900px; margin: 24px auto 60px; padding: 0 20px; }
.page-band-inline { text-align: center; padding: 26px 0 10px; }
.page-band-inline h1 { font-size: 22px; }
.page-band-inline p { color: var(--ink-3); font-size: 13.5px; margin-top: 6px; }
.account-info { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.acc-row { display: flex; gap: 16px; align-items: center; font-size: 14px; }
.acc-row > span { color: var(--ink-3); width: 80px; flex: none; }
.acc-vip { color: #2f8a4f; }
.acc-none { color: var(--ink-3); }
.pwd-form { max-width: 520px; }
.ok-tag { color: #2f8a4f; background: #eef9f1; }

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 18px 0 24px; }
.plan-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px 20px; text-align: center; box-shadow: var(--shadow-sm); }
.plan-card.featured { border-color: var(--accent); box-shadow: 0 10px 28px rgba(255, 107, 53, .14); }
.plan-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 11.5px; padding: 2px 12px; border-radius: 999px; }
.plan-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.plan-price { font-size: 34px; font-weight: 800; color: var(--accent); line-height: 1.2; margin: 8px 0 2px; }
.plan-price em { font-size: 17px; font-style: normal; margin-right: 2px; }
.plan-days { color: var(--ink-2); font-size: 13.5px; }
.plan-per { color: var(--ink-3); font-size: 12px; margin: 4px 0 16px; }
.flow-list { color: var(--ink-2); font-size: 14px; line-height: 2; padding-left: 20px; }

.pay-box { display: grid; grid-template-columns: 240px 1fr; gap: 26px; }
.pay-left { text-align: center; }
.pay-qr { width: 220px; height: 220px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.pay-qr-tip { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }
.pay-qr-empty { width: 220px; height: 220px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--line); border-radius: 12px; color: var(--ink-3); font-size: 13px; }
.pay-row { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.pay-row > span { color: var(--ink-3); width: 80px; flex: none; }
.pay-orderno { font-family: ui-monospace, Consolas, monospace; letter-spacing: .5px; }
.pay-amount { color: var(--accent); font-size: 19px; }
.pay-tip { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 10px; padding: 11px 14px; font-size: 13px; color: var(--ink-2); margin: 14px 0; line-height: 1.7; }
.claim-form { max-width: 420px; }
.pay-status { margin-top: 14px; font-size: 13.5px; color: var(--ink-2); }
.pay-poll-tip { color: var(--ink-3); font-size: 12px; }

.dl-box { margin-top: 22px; border: 1px solid #ffd9c8; background: #fffaf7; border-radius: 12px; padding: 16px 18px; }
.dl-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.dl-title { font-weight: 700; font-size: 15px; }
.dl-tag { font-size: 11.5px; padding: 2px 9px; border-radius: 999px; background: #fff1ea; color: var(--accent); }
.dl-tag.free { background: #eef9f1; color: #2f8a4f; }
.dl-row { display: flex; gap: 14px; align-items: flex-start; padding: 9px 0; font-size: 14px; border-bottom: 1px dashed #ffe1d3; }
.dl-row:last-of-type { border-bottom: 0; }
.dl-label { color: var(--ink-3); width: 64px; flex: none; font-size: 13px; line-height: 1.9; }
.dl-value { display: flex; align-items: flex-start; gap: 10px; min-width: 0; flex: 1; flex-wrap: wrap; line-height: 1.75; }
.dl-link { color: var(--accent); word-break: break-all; font-weight: 600; flex: 1 1 320px; white-space: pre-wrap; }
.dl-link-raw { color: var(--ink-2); word-break: break-all; flex: 1 1 320px; white-space: pre-wrap; }
.dl-value .btn { flex: none; }
.dl-open { white-space: nowrap; }
.dl-code { font-family: ui-monospace, Consolas, monospace; font-size: 16px; letter-spacing: 1px; }
.dl-foot { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }
.dl-foot a { color: var(--accent); }
.dl-locked { text-align: center; padding: 16px 6px 8px; }
.dl-locked p { color: var(--ink-2); font-size: 14px; margin-bottom: 14px; }
.dl-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.dl-plans { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.dl-plan { background: #fff; border: 1px solid var(--accent-line); color: var(--ink-2); border-radius: 8px; padding: 4px 12px; font-size: 13px; }

.user-chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.user-chip:hover { border-color: var(--accent-line); }
.user-avatar { width: 26px; height: 26px; border-radius: 50%; background: #eef0f3; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.user-chip.vip .user-avatar { background: linear-gradient(135deg, #ffb347, #ff6b35); color: #fff; }
.user-name { font-size: 13.5px; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vip-tag { background: linear-gradient(135deg, #ffb347, #ff6b35); color: #fff; font-size: 10.5px; padding: 1px 7px; border-radius: 999px; letter-spacing: .5px; }
.header-link { font-size: 13.5px; color: var(--ink-2); padding: 5px 10px; border-radius: 8px; }
.header-link:hover { color: var(--accent); }
.header-link.primary { background: var(--accent); color: #fff; }
.header-link.primary:hover { background: var(--accent-dark); color: #fff; }
.header-link.muted { color: var(--ink-3); }

.admin-nav { display: flex; gap: 4px; margin-left: 18px; }
.admin-nav a { color: rgba(255, 255, 255, .7); font-size: 13px; padding: 5px 10px; border-radius: 7px; }
.admin-nav a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.tabs { display: flex; gap: 6px; }
.tab { font-size: 13px; padding: 5px 12px; border-radius: 8px; color: var(--ink-2); border: 1px solid var(--line); }
.tab.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.inline-edit { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.qr-preview { max-width: 260px; }
.qr-preview img { width: 100%; border: 1px solid var(--line); border-radius: 12px; }
.qr-empty { height: 200px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--line); border-radius: 12px; color: var(--ink-3); font-size: 13px; }
.sub-block { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; background: #fbfcfd; }
.sub-title { font-weight: 700; font-size: 13.5px; margin-bottom: 12px; color: var(--ink); }

@media (max-width: 720px) {
  .plan-grid { grid-template-columns: 1fr; }
  .pay-box { grid-template-columns: 1fr; }
  .pay-left { display: flex; flex-direction: column; align-items: center; }
  .admin-topbar-inner { flex-wrap: wrap; height: auto; padding: 8px 12px; gap: 8px; }
  .admin-brand { font-size: 15px; }
  .admin-top-actions { margin-left: auto; flex-wrap: wrap; gap: 8px; font-size: 12px; }
  .admin-nav { display: flex; order: 3; width: 100%; overflow-x: auto; margin-left: 0; padding: 4px 0; -webkit-overflow-scrolling: touch; }
  .admin-nav a { white-space: nowrap; background: rgba(255,255,255,.08); }
  .user-name { display: none; }
}


/* 批量导入 v2：每组卡片 */
.imp-row-v2 { display: block; }
.imp-files { display: flex; flex-wrap: wrap; gap: 8px; }
.imp-file { position: relative; width: 86px; height: 108px; border-radius: 8px; overflow: hidden; background: #ecedf0; cursor: grab; }
.imp-file img, .imp-file video { width: 100%; height: 100%; object-fit: cover; display: block; }
.imp-file.dragging { opacity: .4; outline: 2px dashed var(--accent); }
.imp-file-idx { position: absolute; left: 4px; top: 4px; background: rgba(17,19,24,.72); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 999px; }
.imp-file-del { position: absolute; right: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(229,72,46,.92); color: #fff; cursor: pointer; font-size: 11px; line-height: 1; }
.imp-file-kind { position: absolute; left: 4px; bottom: 4px; background: rgba(17,19,24,.72); color: #fff; font-size: 10.5px; padding: 1px 6px; border-radius: 999px; }
.imp-files-tip { font-size: 12px; color: var(--ink-3); }
.imp-remove { margin-left: auto; }
.free-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.imp-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.imp-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.imp-label { font-size: 12.5px; color: var(--ink-2); }
.imp-badge { font-size: 11.5px; padding: 2px 9px; border-radius: 999px; }
.imp-badge.ok { background: #eef9f1; color: #2f8a4f; }
.imp-badge.draft { background: #fff7e6; color: #ad6800; }
.imp-code { font-size: 12.5px; color: var(--ink-2); }
.imp-txt { font-size: 12px; color: var(--ink-3); }
.imp-thumb.ph { background: #ecedf0; border-radius: 6px; }
/* 多条网盘链接 */
.dl-links { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.dl-link-item { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.dl-link-idx { flex: none; width: 20px; height: 20px; border-radius: 50%; background: #fff1ea; color: var(--accent); font-size: 11.5px; display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.dl-raw { margin-top: 10px; padding: 10px 12px; background: #fff; border: 1px dashed var(--line); border-radius: 8px; font-size: 12.5px; color: var(--ink-3); white-space: pre-wrap; word-break: break-all; line-height: 1.7; }
/* 草稿标记 */
.draft-tag { background: #fff7e6; color: #ad6800; border-radius: 999px; padding: 1px 8px; font-size: 11px; margin-left: 6px; }


/* 详情页画质说明（全集条右侧） */
.quality-note-inline { font-size: 12.5px; color: var(--ink-3); margin-left: 4px; align-self: center; }
.quality-note-inline a { color: var(--accent); }
.quality-note-inline a:hover { text-decoration: underline; }


/* 导入排版预览 */
.layout-modal { position: fixed; inset: 0; z-index: 950; display: flex; align-items: center; justify-content: center; }
.layout-modal[hidden] { display: none; }
.layout-modal-mask { position: absolute; inset: 0; background: rgba(10,12,16,.72); }
.layout-modal-body { position: relative; background: #f4f5f7; border-radius: 16px; width: min(94vw, 1200px); max-height: 86vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.layout-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: #fff; border-bottom: 1px solid var(--line); }
.layout-close { border: 0; background: #f2f3f5; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; }
.layout-grid { padding: 18px; overflow-y: auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1000px) { .layout-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .layout-grid { grid-template-columns: repeat(2, 1fr); } }
.layout-grid .card-cover video { width: 100%; height: 100%; object-fit: cover; }

/* 改分类 */
.cat-edit { align-self: flex-start; font-size: 11.5px; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.catpick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.catpick-title { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.catpick-item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.catpick-item input { accent-color: var(--accent); width: 15px; height: 15px; }



/* 封面裁剪（拖动框式） */
.cropper-modal { position: fixed; inset: 0; z-index: 970; display: flex; align-items: center; justify-content: center; }
.cropper-modal[hidden] { display: none; }
.cropper-mask { position: absolute; inset: 0; background: rgba(10,12,16,.78); }
.cropper-panel { position: relative; background: #fff; border-radius: 16px; padding: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.4); max-height: 94vh; overflow-y: auto; }
.cropper-head { display: flex; align-items: center; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.cropper-head button { border: 0; background: #f2f3f5; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; }
.cropper-stage { position: relative; margin: 0 auto; background: #111; overflow: hidden; border-radius: 8px; touch-action: none; }
.cropper-stage img { display: block; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.crop-frame { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0,0,0,.5); cursor: move; touch-action: none; }
.crop-handle { position: absolute; right: -7px; bottom: -7px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); cursor: nwse-resize; }
.cropper-actions { display: flex; gap: 8px; margin-top: 12px; justify-content: flex-end; }

/* ============ 移动端 ============ */
@media (max-width: 720px) {
  .header-inner { gap: 10px; height: 56px; }
  .main-nav { display: none; }
  .search-form { display: none; }
  .logo { font-size: 18px; letter-spacing: .5px; }
  .logo-mark { font-size: 20px; }
  .header-right { gap: 6px; }
  .header-link { font-size: 12.5px; padding: 4px 6px; }
  .header-link.primary { padding: 5px 10px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-title { font-size: 13.5px; }
  .page-band { padding: 22px 14px 18px; }
  .page-band h1 { font-size: 18px; letter-spacing: 2px; }
  .band-sub { font-size: 12px; }
  .post-wrap { padding: 18px 12px 40px; }
  .post-card { padding: 20px 16px; }
  .post-title { font-size: 19px; }
  .field-row { grid-template-columns: 1fr; }
  .post-pn { grid-template-columns: 1fr; }
  .pn.next { align-items: flex-start; text-align: left; }
  .table { min-width: 680px; }
  .td-title { max-width: 180px; }
  .imp-row { grid-template-columns: 52px 1fr; }
  .imp-row .btn-danger { justify-self: start; }
}

/* ============ 支付页增强 ============ */
.pay-wrap { max-width: 980px; }
.order-summary { display: flex; flex-wrap: wrap; gap: 26px; padding: 14px 16px; background: #f7f8fa; border-radius: 12px; }
.os-item { display: flex; flex-direction: column; gap: 4px; }
.os-item > span { font-size: 12px; color: var(--ink-3); }
.os-item b { font-size: 15px; }
.pay-orderno { font-family: ui-monospace, Consolas, monospace; letter-spacing: .5px; }
.pay-amount { color: var(--accent); font-size: 20px !important; }

.pay-tip-lg { margin: 16px 0; border: 1px solid #ffd9c8; background: #fff8f4; border-radius: 12px; padding: 14px 18px; }
.tip-title { font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 10px; }
.tip-items { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.tip-item { display: inline-flex; align-items: center; gap: 8px; }
.tip-label { font-size: 12.5px; color: var(--ink-3); }
.tip-value { background: #fff; border: 1px dashed var(--accent-line); border-radius: 6px; padding: 3px 10px; font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; color: var(--ink); }
.tip-sub { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }

/* 双收款码 */
.qr-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0 6px; }
.qr-cards.single { grid-template-columns: minmax(260px, 420px); justify-content: center; }
.qr-card { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md); background: #fff; border: 1px solid var(--line); }
.qr-card.wechat { border-color: #d7f0dd; }
.qr-card.alipay { border-color: #cfe4ff; }
.qr-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; color: #fff; }
.qr-card.wechat .qr-head { background: linear-gradient(135deg, #2bb673, #1a9e5c); }
.qr-card.alipay .qr-head { background: linear-gradient(135deg, #1677ff, #0b5ad6); }
.qr-brand { font-weight: 700; font-size: 15px; letter-spacing: .5px; }
.qr-hint { font-size: 12px; opacity: .9; }
.qr-img-btn { position: relative; width: 100%; padding: 22px 22px 26px; background: #fff; border: 0; cursor: zoom-in; display: block; }
.qr-img-btn img { width: 100%; max-width: 300px; margin: 0 auto; display: block; border-radius: 10px; }
.qr-zoom-tip {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  font-size: 11.5px; color: var(--ink-3); background: #f4f5f7; border-radius: 999px; padding: 2px 10px;
}
.qr-img-btn:hover .qr-zoom-tip { color: var(--accent); background: var(--accent-soft); }

/* 放大预览灯箱 */
.qr-modal { position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center; }
.qr-modal[hidden] { display: none; }
.qr-modal-mask { position: absolute; inset: 0; background: rgba(10, 12, 16, .72); backdrop-filter: blur(3px); }
.qr-modal-body { position: relative; background: #fff; border-radius: 18px; padding: 20px 20px 16px; box-shadow: 0 30px 80px rgba(0,0,0,.4); max-width: min(92vw, 520px); }
.qr-modal-title { font-weight: 700; font-size: 16px; text-align: center; margin-bottom: 14px; }
.qr-modal-body img { width: min(80vw, 420px); display: block; border-radius: 10px; }
.qr-modal-close { position: absolute; top: -12px; right: -12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow-md); cursor: pointer; font-size: 15px; color: var(--ink-2); }
.qr-modal-close:hover { color: var(--accent); }
.qr-modal-tip { text-align: center; font-size: 12.5px; color: var(--ink-3); margin-top: 12px; }

.btn-lg { padding: 12px 26px; font-size: 15px; }
.pay-open-tip { margin-top: 18px; border-left: 3px solid var(--accent); background: #fffaf7; padding: 10px 14px; border-radius: 0 10px 10px 0; display: flex; flex-direction: column; gap: 6px; }
.po-row { display: flex; gap: 8px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.po-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 8px; flex: none; }
.cs-wx { color: var(--accent); font-family: ui-monospace, Consolas, monospace; }
.pay-status { margin-top: 14px; font-size: 13.5px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.pay-elapsed { color: var(--ink-3); font-size: 12.5px; }
.pay-elapsed.over { color: #cf1322; font-weight: 600; }

/* 后台收款码双槽 */
.qr-admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.qr-admin-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.qr-admin-card.wechat { border-color: #d7f0dd; }
.qr-admin-card.alipay { border-color: #cfe4ff; }
.qr-admin-head { padding: 10px 14px; color: #fff; }
.qr-admin-card.wechat .qr-admin-head { background: linear-gradient(135deg, #2bb673, #1a9e5c); }
.qr-admin-card.alipay .qr-admin-head { background: linear-gradient(135deg, #1677ff, #0b5ad6); }
.qr-admin-preview { padding: 16px; }
.qr-admin-preview img { width: 100%; max-height: 260px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); }
.qr-admin-preview .qr-empty { height: 180px; }
.qr-admin-form { display: flex; gap: 8px; padding: 0 16px 10px; }
.qr-admin-form .input { flex: 1; font-size: 12px; padding: 6px 8px; }
.qr-admin-card > form:last-child { padding: 0 16px 14px; }

@media (max-width: 720px) {
  .qr-cards, .qr-cards.single { grid-template-columns: 1fr; }
  .qr-admin-grid { grid-template-columns: 1fr; }
  .order-summary { gap: 14px; }
}

/* ============ VIP 权益页 ============ */
.vip-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px 60px; }
.vip-hero {
  text-align: center; padding: 54px 20px 46px; border-radius: 20px;
  background: linear-gradient(135deg, #2b2e34 0%, #3a3f47 55%, #4a3a33 100%);
  color: #fff; margin-top: 24px; box-shadow: var(--shadow-md);
}
.vip-hero-badge {
  display: inline-block; background: linear-gradient(135deg, #ffb347, #ff6b35);
  color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 2px;
  padding: 4px 14px; border-radius: 999px; margin-bottom: 16px;
}
.vip-hero h1 { font-size: 30px; letter-spacing: 1px; }
.vip-hero p { color: rgba(255,255,255,.72); font-size: 14px; margin-top: 10px; }
.vip-hero-actions { margin-top: 24px; display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.vip-hero-actions .btn-ghost { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.vip-hero-actions .btn-ghost:hover { border-color: #fff; color: #fff; }
.vip-hero-tip { font-size: 13px; color: rgba(255,255,255,.65); }

.sec-title { font-size: 20px; text-align: center; margin: 44px 0 6px; }
.sec-title::after { content: ''; display: block; width: 36px; height: 3px; background: var(--accent); border-radius: 2px; margin: 10px auto 0; }
.sec-sub { text-align: center; color: var(--ink-3); font-size: 13px; margin-bottom: 6px; }

.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.benefit-card {
  background: #fff; border-radius: 14px; padding: 24px 20px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); transition: transform .18s ease, box-shadow .18s ease;
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.benefit-ico { font-size: 28px; margin-bottom: 10px; }
.benefit-card b { display: block; font-size: 15px; margin-bottom: 6px; }
.benefit-card p { font-size: 13px; color: var(--ink-2); line-height: 1.65; }

.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; }
.adv-item { text-align: center; padding: 18px 12px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.adv-ico {
  display: inline-flex; width: 52px; height: 52px; border-radius: 50%;
  align-items: center; justify-content: center; font-size: 22px;
  background: linear-gradient(135deg, #ff8a5c, #ff5f2e); box-shadow: 0 8px 18px rgba(255,107,53,.28);
  margin-bottom: 12px;
}
.adv-item b { display: block; font-size: 14.5px; }
.adv-item p { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }

.vip-plans .plan-grid { margin-top: 26px; }
.vip-flow, .vip-faq { background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm); padding: 26px 28px; margin-top: 34px; border: 1px solid var(--line); }
.vip-flow .sec-title, .vip-faq .sec-title { margin-top: 0; }
.vip-flow .flow-list { margin-top: 16px; }
.vip-note { margin-top: 12px; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 10px; padding: 12px 16px; font-size: 13.5px; color: var(--ink-2); }
.service-qr-wrap { display: flex; flex-direction: column; align-items: center; margin-top: 16px; }
.service-qr-wrap .qr-img-btn { width: auto; padding: 10px; border: 1px dashed var(--line); border-radius: 14px; }
.service-qr-wrap .qr-img-btn img { max-width: 200px; }
.service-qr-tip { font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.faq-item { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item b { font-size: 14px; }
.faq-item p { font-size: 13px; color: var(--ink-2); margin-top: 4px; line-height: 1.7; }
.faq-item a { color: var(--accent); }

/* 单个购入 */
.buy-box {
  margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  border: 1px solid #d9e6ff; background: linear-gradient(120deg, #f4f8ff, #eef4ff);
  border-radius: 12px; padding: 16px 20px;
}
.buy-title { font-size: 15px; color: var(--ink); }
.buy-sub { font-size: 12.5px; color: var(--ink-2); margin-top: 5px; line-height: 1.6; }
.buy-btn { flex: none; white-space: nowrap; }
.preview-link-line { margin-top: 14px; font-size: 12.5px; text-align: center; }
.preview-link-line a { color: var(--ink-3); }
.preview-link-line a:hover { color: var(--accent); }

/* 微信转账兜底 */
.wechat-fallback {
  display: flex; align-items: center; gap: 20px; margin-top: 16px;
  border: 1px dashed #b7ebc6; background: #f4fdf6; border-radius: 14px; padding: 16px 20px;
}
.wf-left { flex: 1; font-size: 13.5px; color: var(--ink-2); }
.wf-left b { color: var(--ink); font-size: 14.5px; }
.wf-left p { margin-top: 6px; line-height: 1.7; }
.wf-cs { font-size: 13px; }
.wechat-fallback .wf-qr { width: auto; padding: 8px; border: 1px solid #d7f0dd; border-radius: 12px; background: #fff; }
.wechat-fallback .wf-qr img { width: 150px; }
.wechat-fallback .qr-zoom-tip { bottom: 2px; }

/* 说明页 */
.info-p { font-size: 14px; color: var(--ink-2); line-height: 1.95; margin-bottom: 12px; }
.compare-table td, .compare-table th { font-size: 13.5px; }
.compare-table td:first-child { color: var(--ink-3); white-space: nowrap; }

@media (max-width: 900px) {
  .benefit-grid, .adv-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .vip-hero h1 { font-size: 22px; }
  .benefit-grid, .adv-grid { grid-template-columns: 1fr; }
  .buy-box { flex-direction: column; align-items: flex-start; }
  .wechat-fallback { flex-direction: column; align-items: flex-start; }
}

/* 后台作品管理：筛选条 + 分类计数 */
.admin-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.admin-filters .input { width: auto; min-width: 150px; flex: 1 1 160px; max-width: 260px; }
.admin-filters select.input { flex: 0 1 175px; }
.admin-filters select[name=sort] { flex: 0 1 220px; }
.admin-cat-counts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.cc-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; font-size: 13px;
  background: #f2f3f5; color: var(--ink-2); text-decoration: none; border: 1px solid transparent;
}
.cc-chip b { font-weight: 700; color: var(--ink); }
.cc-chip:hover { background: #e9eaee; }
.cc-chip.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink, #c2410c); }
.paused-tag { background: #eef0f4; color: #5b6472; }

/* hidden 属性必须真的隐藏（避免被 display:flex 覆盖） */
[hidden] { display: none !important; }
