/* ========= HWCms 样式 ========= */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f4f6fb; color: #1f2430; font-size: 14px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }

/* 表单控件 */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; color: #6b7280; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 9px 12px; border: 1px solid #e6e9f0; border-radius: 9px; background: #fff; color: #1f2430;
}
.field textarea { resize: vertical; min-height: 80px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--hw-primary); box-shadow: 0 0 0 3px rgba(170,31,36,.12); }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border: 1px solid transparent;
  border-radius: 9px; font-size: 14px; font-weight: 500; }
.btn-primary { background: linear-gradient(135deg, var(--hw-primary), #8B181C); color: #fff; box-shadow: 0 4px 14px rgba(170,31,36,.3); }
.btn-primary:hover { background: linear-gradient(135deg, #8B181C, var(--hw-primary)); }
.btn-ghost { background: #fff; border-color: #e6e9f0; color: #1f2430; }
.btn-ghost:hover { background: #f8fafc; }
.btn-danger { background: #ef4444; color: #fff; box-shadow: 0 4px 14px rgba(239,68,68,.25); }
.btn-danger:hover { background: #dc2626; }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn-block { width: 100%; }

/* 登录 */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #667eea, #764ba2); padding: 20px; }
.login-card { width: 100%; max-width: 380px; background: #fff; border-radius: 16px; padding: 34px 30px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.login-logo { display: flex; align-items: center; gap: 10px; }
.login-logo .mark, .brand .mark { width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6); display: grid; place-items: center; color: #fff; font-weight: 700; }
.login-card h1 { font-size: 20px; }
.login-card .sub { color: #6b7280; margin: 6px 0 22px; font-size: 13px; }
.login-hint { margin-top: 14px; font-size: 12px; color: #9aa3b2; }

/* 后台布局（红金主题，呼应品牌 logo） */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 220px; flex-shrink: 0; background: linear-gradient(180deg, #AA1F24 0%, #8B181C 100%);
  display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; box-shadow: 2px 0 16px rgba(139,24,28,.18); }
.sidebar .brand { height: 60px; display: flex; align-items: center; gap: 10px; padding: 0 16px;
  border-bottom: 1px solid rgba(255,255,255,.14); font-weight: 700; font-size: 16px; color: #fff; letter-spacing: .5px; }
.brand-logo { width: 32px; height: 32px; object-fit: contain; border-radius: 8px; background: #fff; padding: 3px;
  box-shadow: 0 0 0 2px rgba(232,170,37,.5); flex-shrink: 0; }
.nav { padding: 12px; flex: 1; overflow-y: auto; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px;
  color: rgba(255,255,255,.78); margin-bottom: 4px; font-weight: 500; }
.nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav a.active { background: var(--hw-accent); color: #6e1114; font-weight: 600; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.nav a .ico { width: 18px; text-align: center; }
/* 一级分组标题 */
.nav-group { display: flex; align-items: center; gap: 9px; padding: 12px 12px 6px; font-size: 12px;
  color: rgba(255,255,255,.4); letter-spacing: .5px; font-weight: 600; }
.nav-group .g-ico { width: 18px; text-align: center; font-size: 14px; }
.nav-group.act { color: rgba(255,255,255,.85); }
/* 分组下的子菜单项 */
.nav-group + a { margin-top: 2px; }
.nav-group + a .ico, .nav-group ~ a .ico { font-size: 13px; }
.side-foot { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.14); font-size: 12px; color: rgba(255,255,255,.55); line-height: 1.7; }

.main { flex: 1; margin-left: 220px; display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 60px; background: #fff; border-bottom: 1px solid #e6e9f0; display: flex; align-items: center;
  justify-content: space-between; padding: 0 22px; position: sticky; top: 0; z-index: 30; }
.topbar h2 { font-size: 17px; font-weight: 700; }
.user { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--hw-primary), var(--hw-accent)); color: #fff; display: grid; place-items: center; font-weight: 600; }
.user .name { font-size: 13px; font-weight: 600; }
.user .role { font-size: 11px; color: #9aa3b2; }
.link-btn { background: none; border: none; color: var(--hw-primary); font-size: 13px; padding: 4px 6px; border-radius: 6px; }
.link-btn:hover { background: rgba(170,31,36,.08); }
.link-danger { color: #ef4444; }
.link-danger:hover { background: #fef2f2; }

.content { padding: 22px; flex: 1; }
.card { background: #fff; border: 1px solid #e6e9f0; border-radius: 12px; box-shadow: 0 1px 3px rgba(16,24,40,.06), 0 6px 20px rgba(16,24,40,.04); }
.card-h { padding: 14px 18px; border-bottom: 1px solid #e6e9f0; font-weight: 600; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.card-b { padding: 16px 18px; }

/* 统计卡（点击直达对应栏目） */
.grid { display: grid; gap: 16px; }
.stat-grid { grid-template-columns: repeat(3, 1fr); }
.stat { padding: 18px 20px; display: flex; align-items: center; gap: 14px; }
a.stat { position: relative; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
a.stat:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(16,24,40,.09); }
a.stat .stat-go { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #cbd5e1; font-size: 16px; opacity: 0; transition: opacity .15s; }
a.stat:hover .stat-go { opacity: 1; }
.stat .icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.stat .label { color: #6b7280; font-size: 13px; }
.stat .value { font-size: 24px; font-weight: 700; }
.chart-grid-2 { grid-template-columns: 2fr 1fr; }

/* 趋势柱状条 */
.bars { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; height: 132px; padding: 4px 2px 0; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; height: 100%; }
.bar-val { font-size: 12px; color: #6b7280; font-weight: 600; }
.bar-fill { width: 62%; max-width: 34px; background: linear-gradient(180deg, #ef4444, var(--hw-primary)); border-radius: 6px 6px 0 0; min-height: 2px; }
.bar-date { font-size: 11px; color: #9aa3b2; }

/* 平台采集 Top5 排名条 */
.rank-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.rank-no { width: 20px; height: 20px; border-radius: 6px; background: #f1f5f9; color: #64748b; font-size: 12px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.rank-name { width: 84px; font-size: 13px; color: #334155; flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-bar { flex: 1; height: 8px; background: #f1f5f9; border-radius: 99px; overflow: hidden; }
.rank-fill { height: 100%; background: linear-gradient(90deg, #6366f1, #8b5cf6); border-radius: 99px; }
.rank-num { width: 34px; text-align: right; font-size: 13px; font-weight: 700; color: #334155; }

/* 采集与分发 kv 行 */
.kv2 { display: flex; flex-direction: column; gap: 4px; }
.kv2-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 2px; border-bottom: 1px dashed #e6e9f0; font-size: 13px; color: #334155; }
.kv2-row:last-child { border-bottom: none; }

/* 动态 */
.feed { display: flex; flex-direction: column; }
.feed-item { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed #e6e9f0; }
.feed-item:last-child { border-bottom: none; }
.feed-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.feed-item .ft { font-size: 13px; }
.feed-item .fm { font-size: 12px; color: #9aa3b2; margin-top: 2px; }

/* 表格 */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .search { flex: 1; min-width: 200px; position: relative; }
.toolbar .search input { padding-left: 34px; }
.toolbar .search .si { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #9aa3b2; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
thead th { text-align: left; font-size: 12px; color: #6b7280; font-weight: 600; padding: 11px 14px;
  background: #fafbfd; border-bottom: 1px solid #e6e9f0; white-space: nowrap; }
tbody td { padding: 12px 14px; border-bottom: 1px solid #e6e9f0; font-size: 13px; vertical-align: middle; }
tbody tr:nth-child(even) td { background: #fcfcfd; }
tbody tr:hover td { background: #f5f7ff; }
.title-cell { font-weight: 600; }
.id-cell { color: #9aa3b2; font-size: 12px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
/* 语义化状态徽章 */
.badge.green { color: #059669; background: #ecfdf5; }
.badge.red { color: #dc2626; background: #fef2f2; }
.badge.orange { color: #b45309; background: #fffbeb; }
.badge.blue { color: #2563eb; background: #eff6ff; }
.badge.gold { color: #b45309; background: #fffbeb; }
.badge.gray { color: #64748b; background: #f1f5f9; }
.badge.purple { color: #6d28d9; background: #eef2ff; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #f9ecec; color: var(--hw-primary); font-size: 12px; }
.row-actions { display: flex; gap: 4px; flex-wrap: wrap; }

/* 表单布局辅助：两列网格、整行、字段提示 */
.form-row, .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .field { margin-bottom: 10px; }
.field .hint { font-size: 12px; color: #9aa3b2; margin-top: 4px; line-height: 1.6; }
@media (max-width: 720px) { .form-row, .form-grid { grid-template-columns: 1fr; } }

/* 采集规则编辑：分页三字段始终同行，避免窄屏落单 */
.form-row.row-3.wcr-pages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .form-row.row-3.wcr-pages { grid-template-columns: 1fr; } }

/* 采集规则编辑：运行选项统一卡片，3/2/1 列自适应 */
.wcr-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
.wcr-options > .wcr-check, .wcr-options > .field { margin: 0; min-width: 0; }
.wcr-options .wcr-check {
  display: flex; align-items: center; gap: 9px; min-height: 38px; padding: 0 12px;
  border: 1px solid #e6e9f0; border-radius: 9px; background: #fff;
  font-size: 13px; font-weight: 400; color: #334155; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.wcr-options .wcr-check:hover { border-color: #cbd5e1; background: #f8fafc; }
.wcr-options .wcr-check:has(input:checked) { border-color: var(--hw-primary); background: #fff5f5; color: var(--hw-primary); }
.wcr-options .wcr-check input { flex: 0 0 16px; width: 16px; height: 16px; margin: 0; accent-color: var(--hw-primary); }
.wcr-options .wcr-check span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcr-options .wcr-cron label { margin-bottom: 5px; font-size: 13px; color: #6b7280; }
.wcr-options .wcr-cron input { height: 38px; padding: 8px 10px; }
@media (max-width: 1180px) { .wcr-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .wcr-options { grid-template-columns: 1fr; } }

/* 采集执行：进度弹窗 + 折叠说明 */
.wcr-help { margin-top: 14px; border: 1px solid #e6e9f0; border-radius: 8px; background: #fff; }
.wcr-help summary { cursor: pointer; padding: 10px 14px; font-size: 13px; color: #6b7280; }
.wcr-help .hint { padding: 0 14px 12px; margin: 0; }
.wcr-mask { position: fixed; inset: 0; z-index: 9999; background: rgba(15, 23, 42, .42); display: flex; align-items: center; justify-content: center; }
.wcr-mask[hidden] { display: none !important; }
.wcr-progress { width: min(420px, calc(100vw - 40px)); background: #fff; border-radius: 12px; padding: 22px 24px; box-shadow: 0 18px 50px rgba(15, 23, 42, .22); }
.wcr-p-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: #1f2937; }
.wcr-spin { width: 18px; height: 18px; border: 2px solid #fecaca; border-top-color: var(--hw-primary, #aa1f24); border-radius: 50%; animation: wcr-spin .8s linear infinite; flex: 0 0 auto; }
@keyframes wcr-spin { to { transform: rotate(360deg); } }
.wcr-p-rule { margin: 10px 0 16px; font-size: 12px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcr-p-track { height: 8px; border-radius: 999px; background: #eef1f5; overflow: hidden; }
.wcr-p-bar { height: 100%; width: 3%; border-radius: 999px; background: linear-gradient(90deg, #e2686d, var(--hw-primary, #aa1f24)); transition: width .35s ease; }
.wcr-p-foot { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: #9aa3b2; }

/* 内容表单：模型/状态/作者/来源 四列同一行 */
.form-row.row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1180px) { .form-row.row-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .form-row.row-4 { grid-template-columns: 1fr; } }

/* 内容表单：标题行（输入框 + 加粗 + 取色 + 复位） */
.tt-row { display: flex; align-items: stretch; gap: 8px; }
.tt-row input[name="title"] { flex: 1 1 auto; min-width: 0; }
.tt-tool {
  flex: 0 0 38px; width: 38px; height: auto; min-height: 38px; padding: 0;
  border: 1px solid #dbe1ea; background: #fff; border-radius: 8px; cursor: pointer;
  font-size: 15px; font-weight: 800; color: #475569; line-height: 1;
}
.tt-tool:hover { border-color: #94a3b8; color: #0f172a; }
.tt-tool.on { background: var(--hw-primary); border-color: var(--hw-primary); color: #fff; }
.tt-b { font-family: Georgia, "Times New Roman", serif; }
.tt-color {
  position: relative; flex: 0 0 38px; width: 38px; display: flex; align-items: center; justify-content: center;
  border: 1px solid #dbe1ea; border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer;
}
.tt-color input[type="color"] { position: absolute; inset: -8px; width: 200%; height: 200%; border: 0; padding: 0; background: none; cursor: pointer; }

/* 内容表单：栏目只读态 / 顶部右对齐工具 / 底部动作条 */
.cf-cat-static { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.cf-static { padding: 9px 0; }
.cf-static-hint { color: #9aa3b2; font-size: 12px; }
.cf-topbar { display: flex; justify-content: flex-end; margin: -4px 0 4px; }
.cf-actions { margin-top: 14px; display: flex; gap: 10px; align-items: center; }

/* 复选选项组（角色权限等） */
.checkbox-group { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 2px; }
.checkbox-item {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; font-size: 14px; cursor: pointer; user-select: none;
  padding: 7px 14px; border: 1px solid #e2e8f0; border-radius: 8px;
  background: #fff; color: #475569; transition: all .15s ease;
  min-height: 36px;
}
.checkbox-item:hover { border-color: #cbd5e1; background: #f8fafc; }
.checkbox-item input[type="checkbox"] {
  appearance: none; width: 16px; height: 16px; margin: 0; flex-shrink: 0;
  border: 2px solid #cbd5e1; border-radius: 5px; background: #fff;
  position: relative; transition: all .15s ease;
}
.checkbox-item input[type="checkbox"]:checked {
  border-color: var(--hw-primary); background: #fff;
}
.checkbox-item input[type="checkbox"]:checked::after {
  content: ''; position: absolute; left: 5px; top: 1px; width: 4px; height: 8px;
  border: solid var(--hw-primary); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.checkbox-item:has(input:checked) {
  border-color: var(--hw-primary); background: #fff1f2; color: var(--hw-primary); font-weight: 500;
  box-shadow: 0 0 0 1px var(--hw-primary);
}

/* 开关组（二进制单选） */
.switch-group { display: inline-flex; align-items: center; border: 1px solid #e2e8f0; border-radius: 999px; overflow: hidden; background: #fff; }
.switch-group label { display: flex; align-items: center; justify-content: center; min-width: 64px; padding: 7px 14px; font-size: 13px; cursor: pointer; user-select: none; color: #64748b; transition: all .15s ease; margin: 0; }
.switch-group input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-group label:has(input:checked) { background: var(--hw-primary); color: #fff; font-weight: 500; }
.switch-group label:not(:last-child) { border-right: 1px solid #e2e8f0; }

/* 按钮组（多选项单选） */
.btn-group { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.btn-group-item { display: inline-flex; align-items: center; justify-content: center; padding: 7px 14px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; color: #475569; font-size: 13px; cursor: pointer; user-select: none; transition: all .15s ease; }
.btn-group-item:hover { border-color: #cbd5e1; background: #f8fafc; }
.btn-group-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.btn-group-item:has(input:checked) { border-color: var(--hw-primary); background: #fff1f2; color: var(--hw-primary); font-weight: 500; box-shadow: 0 0 0 1px var(--hw-primary); }
/* 同上：抵消 .field label{display:block} 的影响，保证文字居中、不额外产生下边距 */
.field .btn-group-item { display: inline-flex; align-items: center; justify-content: center; margin: 0; text-align: center; font-weight: 400; }

/* 水印位置 3×3 矩阵
   注意：这些元素都是 label，必须用 .field 前缀提升权重，
   否则会被上面的 .field label{display:block} 压掉 flex 布局（文字跑到左上角）。 */
.watermark-grid { display: grid; grid-template-columns: repeat(3, 72px); gap: 8px; }
.field .watermark-cell { display: flex; align-items: center; justify-content: center; height: 44px; margin: 0; padding: 0 4px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; color: #475569; font-size: 12px; font-weight: 400; cursor: pointer; user-select: none; transition: all .15s ease; text-align: center; line-height: 1; }
.field .watermark-cell span { display: block; width: 100%; text-align: center; }
.field .watermark-cell:hover { border-color: #cbd5e1; background: #f8fafc; }
.field .watermark-cell input { position: absolute; opacity: 0; width: 0; height: 0; }
.field .watermark-cell:has(input:checked) { border-color: var(--hw-primary); background: var(--hw-primary); color: #fff; font-weight: 500; }

/* 主题色选择器（个性化设置）：小圆点 + 文字同一行 */
.theme-picker { display: flex; flex-direction: column; gap: 10px; }
.theme-swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; max-width: 100%; }
.field .theme-swatch {
  display: flex; flex-direction: row; align-items: center; justify-content: flex-start;
  gap: 6px; padding: 6px 9px; margin: 0; border: 1px solid #e2e8f0; border-radius: 8px;
  background: #fff; color: #475569; font-size: 12px; font-weight: 400; line-height: 1.1;
  cursor: pointer; user-select: none; transition: all .15s ease; text-align: left; white-space: nowrap;
}
.field .theme-swatch:hover { border-color: #cbd5e1; background: #f8fafc; }
.field .theme-swatch i {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.12), inset 0 1px 3px rgba(255,255,255,.25);
  flex-shrink: 0; display: inline-block;
}
.field .theme-swatch input { position: absolute; opacity: 0; width: 0; height: 0; }
.field .theme-swatch.on { border-color: var(--hw-primary); background: #fff; color: var(--hw-primary); font-weight: 500; box-shadow: 0 0 0 1px var(--hw-primary); }
.field .theme-swatch.on i { box-shadow: 0 0 0 1px #fff, 0 0 0 3px var(--hw-primary), 0 2px 6px rgba(0,0,0,.12); }
.field .theme-swatch .custom-i { position: relative; overflow: hidden; width: 18px; height: 18px; border-radius: 50%; }
.field .theme-swatch .custom-i input[type=color] { position: absolute; inset: -8px; width: 34px; height: 34px; border: none; padding: 0; opacity: 0; cursor: pointer; }
.theme-picker-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #94a3b8; }
.theme-picker-meta code { background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 6px; padding: 2px 8px; font-size: 12px; color: #334155; }

/* 设置页卡片头 */
.settings-card-h { flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 18px 14px; }
.settings-card-title { font-size: 15px; color: #1f2430; }
.settings-card-desc { font-size: 12px; color: #94a3b8; font-weight: normal; }

/* 表单项横向排列（二进制开关用） */
.field-inline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field-inline label { margin-bottom: 0; flex-shrink: 0; }
.field-hint { font-size: 12px; color: #94a3b8; margin-top: 4px; line-height: 1.6; }

@media (max-width: 720px) {
  .switch-group, .btn-group { width: 100%; }
  .switch-group label, .btn-group-item { flex: 1; }
  .watermark-grid { grid-template-columns: repeat(3, 1fr); max-width: 100%; }
  .field-inline { flex-direction: column; align-items: flex-start; gap: 8px; }
  .checkbox-grid-5, .checkbox-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* 批量操作栏 */
.batch-action-bar { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed #e2e8f0; flex-wrap: wrap; }
.batch-action-bar select { min-width: 180px; height: 36px; padding: 0 10px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; font-size: 13px; }

/* 权限模块分组 */
.perm-group { margin: 10px 0; border: 1px solid #e6e9f0; border-radius: 12px; padding: 14px 16px; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.perm-group-title { font-weight: 700; font-size: 13px; color: #1f2937; margin-bottom: 12px; padding-left: 10px; border-left: 3px solid var(--hw-primary); }
.perm-admin-note { border: 1px solid #e6e9f0; border-radius: 10px; padding: 12px 14px; color: var(--hw-primary); font-size: 13px; background: #fff1f2; }
.checkbox-grid { display: grid; gap: 10px; }
.checkbox-grid-4 { grid-template-columns: repeat(2, 1fr); }
.checkbox-grid-3 { grid-template-columns: repeat(2, 1fr); }
.perm-group .checkbox-group { gap: 10px; }
.perm-group .checkbox-item {
  width: 100%; justify-content: flex-start; padding: 9px 12px;
  border-radius: 9px; border-color: #e2e8f0; background: #f8fafc;
}
.perm-group .checkbox-item:hover { background: #fff; border-color: var(--hw-primary); }
.perm-group .checkbox-item:has(input:checked) { background: #fff1f2; color: var(--hw-primary); border-color: var(--hw-primary); box-shadow: none; }
.perm-group .checkbox-item input[type="checkbox"]:checked { border-color: var(--hw-primary); background: #fff; }
.perm-group .checkbox-item input[type="checkbox"]:checked::after { border-color: var(--hw-primary); }

/* 分页 */
.pager { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; flex-wrap: wrap; gap: 10px; }
.pager .info { color: #6b7280; font-size: 13px; }
.pager .pages { display: flex; gap: 6px; }
.pager .pg { min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid #e6e9f0; background: #fff; border-radius: 8px; color: #1f2430; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.pager .pg.active { background: var(--hw-primary); border-color: var(--hw-primary); color: #fff; }
.pager .pg.disabled { opacity: .4; }
/* 后台分页：统计与页码紧凑靠右，不再两端分离 */
.main .content .pager { justify-content: flex-end; gap: 12px; }

/* 前台 */
.site-header { background: #fff; border-bottom: 1px solid #e6e9f0; position: sticky; top: 0; z-index: 20; }
.site-inner { max-width: 1280px; margin: 0 auto; padding: 0 18px; }
.site-header .site-inner { height: 60px; display: flex; align-items: center; justify-content: space-between; }
.site-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--hw-primary); letter-spacing: .5px; }
.site-brand .brand-logo { box-shadow: 0 2px 8px rgba(170,31,36,.2); }
.site-main { padding: 24px 18px 48px; }
/* ========= 小红书风格瀑布流 ========= */
.card-grid { columns: 4; column-gap: 16px; }
.post-card { break-inside: avoid; margin-bottom: 16px; background: #fff; border-radius: 14px; overflow: hidden; transition: .18s; }
.post-card:hover { box-shadow: 0 10px 28px rgba(16,24,40,.10); transform: translateY(-2px); }
.pc-cover { position: relative; display: block; overflow: hidden; background: #f1f3f7; }
.pc-cover img { width: 100%; display: block; object-fit: cover; }
.pc-cover.r-34 img  { aspect-ratio: 3 / 4; }
.pc-cover.r-45 img  { aspect-ratio: 4 / 5; }
.pc-cover.r-43 img  { aspect-ratio: 4 / 3; }
.pc-cover.r-11 img  { aspect-ratio: 1 / 1; }
.pc-cover.r-169 img { aspect-ratio: 16 / 9; }
.pc-cover.r-916 img { aspect-ratio: 9 / 16; }
.pc-badge { position: absolute; left: 10px; top: 10px; background: rgba(0,0,0,.42); color: #fff; font-size: 11px; line-height: 1; padding: 5px 9px; border-radius: 999px; backdrop-filter: blur(3px); z-index: 1; }
.pc-src { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.42); color: #fff; font-size: 10px; line-height: 1; padding: 4px 8px; border-radius: 999px; z-index: 1; }
.pc-body { padding: 10px 12px 12px; }
.pc-title { font-size: 14px; font-weight: 600; line-height: 1.5; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-title a { color: #1f2430; text-decoration: none; }
.pc-title a:hover { color: var(--hw-primary); }
.pc-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pc-author { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #4b5563; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pc-avatar { width: 20px; height: 20px; border-radius: 50%; color: #fff; display: inline-grid; place-items: center; font-size: 11px; flex-shrink: 0; }
.pc-stats { font-size: 11px; color: #9aa3b2; white-space: nowrap; flex-shrink: 0; }
/* 筛选胶囊 tab */
.feed-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.feed-tabs .ft { padding: 7px 16px; border-radius: 999px; border: 1px solid #e6e9f0; background: #fff; color: #4b5563; font-size: 13px; font-weight: 500; text-decoration: none; transition: .15s; }
.feed-tabs .ft:hover { border-color: var(--hw-primary); color: var(--hw-primary); }
.feed-tabs .ft.active { background: var(--hw-primary); border-color: var(--hw-primary); color: #fff; box-shadow: 0 4px 10px rgba(170,31,36,.25); }
.article { max-width: 820px; margin: 0 auto; padding-top: 28px; width: 100%; box-sizing: border-box; }
.article h1 { font-size: 26px; line-height: 1.35; }
.article-cover { height: 280px; background-size: cover; background-position: center; background-color: #eef2f7; border-radius: 12px; margin: 18px 0; }
.article-content { font-size: 15px; line-height: 1.9; color: #2b303b; word-break: break-word; }
/* 富文本内部元素排版（UEditor 输出） */
.article-content p { margin: 0 0 14px; }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 10px auto; }
.article-content video, .article-content audio { max-width: 100%; border-radius: 8px; margin: 8px 0; display: block; }
.article-content h1, .article-content h2, .article-content h3, .article-content h4,
.article-content h5, .article-content h6 { margin: 18px 0 10px; line-height: 1.4; color: #1c2130; }
.article-content h1 { font-size: 22px; } .article-content h2 { font-size: 20px; }
.article-content h3 { font-size: 18px; } .article-content h4 { font-size: 16px; }
.article-content ul, .article-content ol { margin: 0 0 14px; padding-left: 24px; }
.article-content li { margin-bottom: 4px; }
.article-content blockquote { margin: 0 0 14px; padding: 10px 14px; border-left: 4px solid var(--hw-primary); background: #f7f8fa; color: #4b5563; border-radius: 0 8px 8px 0; }
.article-content a { color: var(--hw-primary); text-decoration: underline; }
.article-content table { max-width: 100%; border-collapse: collapse; margin: 10px 0; }
.article-content th, .article-content td { border: 1px solid #e2e6ee; padding: 8px 10px; }
.article-content th { background: #f6f8fb; }
.article-content pre, .article-content code { background: #f3f5f9; border-radius: 6px; font-family: Consolas, Monaco, monospace; }
.article-content pre { padding: 12px; overflow-x: auto; }
.article-content code { padding: 2px 5px; font-size: 13px; }

/* 前台底部版权 */
.site-footer { border-top: 1px solid #e6e9f0; background: #fff; margin-top: 40px; padding: 20px 18px; }
.site-footer .site-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #9aa3b2; font-size: 12px; }
.site-footer a { color: #6b7280; text-decoration: none; }
.site-footer a:hover { color: #4b5563; }

.empty { text-align: center; color: #9aa3b2; padding: 40px 0; }

/* 无限滚动底部状态 */
.feed-end { text-align: center; color: #9aa3b2; font-size: 13px; padding: 14px 0 6px; }
.feed-end.fe-loading { color: #6b7280; }
.feed-end.fe-error { color: #dc2626; cursor: pointer; }
.feed-end.fe-done { color: #c3c9d4; letter-spacing: 1px; }

/* ========= 前台导航条（参考门户站） ========= */
.site-nav { background: linear-gradient(90deg, var(--hw-primary), #8B181C); box-shadow: 0 2px 8px rgba(139,24,28,.25); position: sticky; top: 60px; z-index: 19; }
.site-nav-inner { display: flex; align-items: center; flex-wrap: wrap; }
.site-nav-inner a { color: rgba(255,255,255,.9); padding: 0 18px; height: 44px; line-height: 44px; font-size: 15px; font-weight: 500; transition: .15s; }
.site-nav-inner a:hover { background: rgba(255,255,255,.12); color: #fff; }
.site-nav-inner a.active { background: var(--hw-accent); color: #6e1114; font-weight: 700; }
.page-title { font-size: 22px; font-weight: 800; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.page-title::before { content: ''; width: 5px; height: 20px; border-radius: 3px; background: linear-gradient(180deg, var(--hw-primary), var(--hw-accent)); }

/* 首页热门投票条 */
.home-vote-strip { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: linear-gradient(90deg, #fdf6e8, #fff); border: 1px solid #f3e2b8; border-radius: 12px; padding: 12px 16px; margin-bottom: 22px; }
.home-vote-strip .hvs-label { font-weight: 700; color: var(--hw-primary); font-size: 14px; white-space: nowrap; }
.hvs-list { display: flex; gap: 18px; flex-wrap: wrap; flex: 1; }
.hvs-list a { font-size: 13px; color: #2b303b; font-weight: 500; }
.hvs-list a:hover { color: var(--hw-primary); }

/* 首页推荐内容条（封面 mini 卡，小红书风格） */
.home-reco-strip { margin-bottom: 24px; }
.reco-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.reco-label { font-weight: 800; font-size: 16px; color: #1f2430; display: flex; align-items: center; gap: 6px; }
.reco-sub { font-size: 12px; color: #9aa3b2; }
.reco-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.reco-card { display: block; background: #fff; border: 1px solid #eef0f5; border-radius: 12px; overflow: hidden; transition: .18s; }
.reco-card:hover { box-shadow: 0 10px 24px rgba(16,24,40,.10); transform: translateY(-2px); border-color: #f0c9c9; }
.reco-cover { position: relative; display: block; overflow: hidden; background: #f1f3f7; }
.reco-cover img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.reco-cover .pc-badge { font-size: 10px; padding: 4px 7px; }
.reco-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; font-weight: 600; line-height: 1.5; padding: 9px 10px 11px; color: #1f2430; min-height: 42px; }
.reco-card:hover .reco-title { color: var(--hw-primary); }
@media (max-width: 1024px) { .reco-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .reco-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .reco-title { font-size: 12px; min-height: 36px; padding: 7px 8px 9px; }
  .reco-label { font-size: 15px; }
}

/* 右下角悬浮按钮（刷新 / 回到顶部） */
.float-actions { position: fixed; right: 22px; bottom: 24px; z-index: 60; display: flex; flex-direction: column; gap: 12px; }
.fab { width: 46px; height: 46px; border-radius: 50%; border: 1px solid #eef0f5; background: rgba(255,255,255,.94); color: #1f2430;
  box-shadow: 0 6px 18px rgba(16,24,40,.14); display: grid; place-items: center; cursor: pointer; transition: .15s;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.fab .ico { line-height: 1; font-size: 17px; font-weight: 700; }
.fab:hover { color: var(--hw-primary); border-color: #f0c9c9; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(170,31,36,.18); }
.fab:active { transform: translateY(0); }
.fab.spin .ico { display: inline-block; animation: fab-spin .6s ease; }
@keyframes fab-spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
  .float-actions { right: 14px; bottom: 16px; gap: 10px; }
  .fab { width: 40px; height: 40px; }
}

/* ========= 投票 ========= */
.vote-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.vote-card { background: #fff; border: 1px solid #e6e9f0; border-radius: 12px; overflow: hidden; transition: .15s; }
.vote-card:hover { box-shadow: 0 8px 24px rgba(170,31,36,.1); transform: translateY(-2px); border-color: #f0c9c9; }
.vc-cover { height: 130px; background-size: cover; background-position: center; background-color: #f9ecec; display: grid; place-items: center; font-size: 40px; }
.vc-cover-plain { background: linear-gradient(135deg, #f9ecec, #fdf6e8); }
.vc-body { padding: 14px 16px; }
.vc-title { font-weight: 700; font-size: 15px; margin: 8px 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vc-desc { color: #6b7280; font-size: 12px; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vst { font-size: 11px; padding: 1px 8px; border-radius: 99px; font-weight: 600; }
.vst.running { color: #059669; background: #d1fae5; }
.vst.notstart { color: #b45309; background: #fef3c7; }
.vst.ended { color: #6b7280; background: #f3f4f6; }
.vote-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.vote-detail h1 { font-size: 24px; line-height: 1.4; }
.vote-desc { color: #6b7280; font-size: 13px; margin-top: 10px; }
.vote-ok { background: linear-gradient(135deg, #f0fdf4, #fff); border: 1px solid #a7f3d0; color: #047857; border-radius: 10px; padding: 12px 14px; margin: 14px 0; font-size: 14px; font-weight: 600; }
.vote-errors { background: linear-gradient(135deg, #fef2f2, #fff); border: 1px solid #fecaca; color: #b91c1c; border-radius: 10px; padding: 12px 14px; margin: 14px 0; font-size: 13px; line-height: 1.8; }

.vote-opt-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.vote-opt.text { display: flex; align-items: center; gap: 12px; border: 1px solid #e6e9f0; border-radius: 10px; padding: 12px 16px; cursor: pointer; transition: .15s; font-size: 15px; }
.vote-opt.text:hover { border-color: var(--hw-primary); background: #fdf7f7; }
.vote-opt.text input, .vo-check input { width: 17px; height: 17px; accent-color: var(--hw-primary); cursor: pointer; flex-shrink: 0; }
.vote-opt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.vote-opt-grid.video { grid-template-columns: repeat(2, 1fr); }
.vote-opt.image, .vote-opt.video { border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: #fafbfd; transition: .15s; }
.vote-opt.image:hover, .vote-opt.video:hover { border-color: #f0c9c9; }
.vote-opt.image:has(input:checked), .vote-opt.video:has(input:checked) { border-color: var(--hw-primary); box-shadow: 0 0 0 3px rgba(170,31,36,.12); }
.vote-opt.image img { width: 100%; height: 150px; object-fit: cover; display: block; }
.vote-opt.video video { width: 100%; height: 200px; background: #000; display: block; }
.vo-check { display: flex; align-items: center; gap: 9px; padding: 10px 12px; font-size: 14px; font-weight: 500; }
.vote-tip { font-size: 12px; color: #9aa3b2; margin-top: 12px; }

/* 前端轻量 Toast（投稿成功等即时反馈） */
.toast { position: fixed; top: 18px; right: 18px; z-index: 99999; display: flex; align-items: flex-start; gap: 10px;
  width: 300px; max-width: calc(100vw - 36px); padding: 14px; background: #fff;
  border: 1px solid #e5e7eb; border-left: 4px solid #047857; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15,23,42,.14); color: #1f2937; font-size: 14px; line-height: 1.5;
  transform: translateX(120%); opacity: 0; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s; }
.toast.show { transform: translateX(0); opacity: 1; }
.toast-ico { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; background: #047857; }
.toast-msg { flex: 1 1 auto; padding-top: 1px; }
.toast-close { flex: 0 0 auto; border: 0; background: transparent; color: #9aa3b2; font-size: 18px; line-height: 1;
  cursor: pointer; padding: 0 2px; }
.toast-close:hover { color: #475569; }
.vote-captcha { display: flex; gap: 10px; margin-top: 14px; align-items: center; }
.vote-captcha input { flex: 1; max-width: 220px; padding: 9px 12px; border: 1px solid #e6e9f0; border-radius: 9px; }
.vote-captcha img { height: 42px; border-radius: 8px; cursor: pointer; }

.vote-result-list { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.vote-result-item .vri-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.vri-no { width: 24px; height: 24px; border-radius: 6px; background: #f3f4f6; color: #6b7280; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.vri-no.top1 { background: var(--hw-primary); color: #fff; }
.vri-no.top2 { background: #d4766f; color: #fff; }
.vri-no.top3 { background: var(--hw-accent); color: #6e1114; }
.vri-thumb { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; }
.vri-title { font-weight: 600; font-size: 14px; flex: 1; min-width: 120px; }

/* ========= 留言 ========= */
.msg-layout { display: grid; grid-template-columns: 5fr 7fr; gap: 18px; align-items: start; }
.msg-form-card .form-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.msg-form-card .req { color: #dc2626; font-style: normal; margin-left: 2px; }
.msg-wall-card .msg-item { padding: 13px 0; border-bottom: 1px dashed #eef0f5; }
.msg-wall-card .msg-item:last-child { border-bottom: none; }
.msg-head { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.msg-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--hw-primary), var(--hw-accent)); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.msg-head b { font-size: 13px; }
.msg-content { font-size: 13px; color: #2b303b; line-height: 1.7; padding-left: 39px; }
.msg-reply { margin: 8px 0 0 39px; background: #fafbfd; border-left: 3px solid var(--hw-accent); border-radius: 0 8px 8px 0; padding: 8px 12px; font-size: 12px; color: #4b5563; line-height: 1.7; }
.msg-reply .tag { margin-right: 6px; }

/* ========= 详情页互动条（点赞/分享） ========= */
.interact-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 34px; padding: 16px 0; border-top: 1px solid #eef0f5; }
.act-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 99px; border: 1px solid #e6e9f0; background: #fff; font-size: 13px; font-weight: 500; color: #2b303b; cursor: pointer; transition: .15s; text-decoration: none; }
.act-btn:hover { border-color: var(--hw-primary); color: var(--hw-primary); }
.like-btn.done { background: #f9ecec; border-color: #f0c9c9; color: var(--hw-primary); }
.like-btn.shake { animation: hw-shake .4s; }
@keyframes hw-shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-3px)} 75%{transform:translateX(3px)} }
.share-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share-label { font-size: 13px; color: #6b7280; }
.share-tip { margin-left: auto; }

/* 响应式 */
@media (max-width: 1024px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } .chart-grid-2 { grid-template-columns: 1fr; } .card-grid { columns: 3; } }
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); box-shadow: 4px 0 24px rgba(0,0,0,.12); }
  .main { margin-left: 0; }
  .topbar h2 { font-size: 15px; }
  .card-grid { columns: 2; column-gap: 10px; }
  .post-card { margin-bottom: 10px; border-radius: 10px; }
  .content { padding: 16px; }
  .vote-list-grid, .vote-opt-grid, .vote-opt-grid.video { grid-template-columns: 1fr; }
  .msg-layout { grid-template-columns: 1fr; }
  .msg-form-card .form-row2 { grid-template-columns: 1fr; }
  .site-nav-inner a { padding: 0 12px; font-size: 14px; }
  .site-nav { position: static; }
}
@media (max-width: 520px) { .stat-grid { grid-template-columns: 1fr; } }

/* ========= 后台移动端汉堡按钮 ========= */
.menu-toggle { display: none; width: 36px; height: 36px; border: 1px solid #e6e9f0; background: #fff; border-radius: 8px;
  font-size: 16px; line-height: 1; color: var(--hw-primary); cursor: pointer; align-items: center; justify-content: center; flex-shrink: 0; }
.topbar .left { display: flex; align-items: center; gap: 10px; }
@media (max-width: 768px) {
  .menu-toggle { display: inline-flex; }
  .sidebar.open { transform: translateX(0); }
}

/* ========= 前台 640 自适应 ========= */
@media (max-width: 640px) {
  .site-brand { font-size: 15px; }
  .site-header .site-inner { height: 52px; }
  .site-nav { top: 52px; }
  .site-main { padding: 16px 12px 36px; }
  .page-title { font-size: 19px; }
  .pc-title { font-size: 13px; }
  .article { padding-top: 18px; }
  .article h1 { font-size: 22px; line-height: 1.4; }
  .article-cover { height: 190px; }
  .article-content { font-size: 14px; line-height: 1.85; }
  .post-meta { flex-wrap: wrap; gap: 6px; }
  .interact-bar { gap: 10px; }
  .share-group { width: 100%; }
  .share-tip { margin-left: 0; }
  .vc-cover { height: 110px; }
  .vote-opt.image img { height: 120px; }
  .vote-opt.video video { height: 160px; }
  .article-cover, .g-item img { border-radius: 10px; }
}
/* 前台 420 自适应 */
@media (max-width: 420px) {
  .site-brand .brand-name { display: none; }
  .site-nav-inner a { padding: 0 11px; height: 40px; line-height: 40px; font-size: 13px; }
  .card-grid { column-gap: 8px; }
  .post-card { margin-bottom: 8px; }
  .pc-title { font-size: 12px; }
  .post-summary { font-size: 12px; }
  .article h1 { font-size: 19px; }
  .msg-form-card .form-row2 { grid-template-columns: 1fr; }
  .act-btn { padding: 7px 12px; font-size: 12px; }
}

/* ========= HWCms 安装向导 ========= */
:root {
  --hw-primary: #AA1F24;
  --hw-primary-dark: #8B181C;
  --hw-accent: #E8AA25;
  --hw-text: #2b1010;
  --hw-muted: #8a6f6f;
}
.install-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #AA1F24 0%, #8B181C 55%, #B22B2D 100%);
  position: relative;
  overflow: hidden;
  padding: 28px 20px;
}
.install-wrap::before, .install-wrap::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.install-wrap::before {
  top: -180px; right: -160px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(232,170,37,.35) 0%, transparent 70%);
}
.install-wrap::after {
  bottom: -200px; left: -180px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(232,170,37,.22) 0%, transparent 70%);
}
.install-container {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* 头部品牌 */
.install-header {
  text-align: center;
  margin-bottom: 18px;
  color: #fff;
}
.install-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  background: rgba(255,255,255,.97);
  border-radius: 16px;
  padding: 9px;
  box-shadow: 0 10px 26px rgba(0,0,0,.32), 0 0 0 3px rgba(232,170,37,.4);
  margin-bottom: 10px;
}
.install-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.install-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(0,0,0,.28);
}
.install-subtitle {
  margin-top: 4px;
  font-size: 13px;
  opacity: .88;
}

/* 步骤指示器 */
.install-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.install-step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.75);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.install-step .num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: rgba(255,255,255,.9);
  display: grid; place-items: center;
  font-weight: 700;
  border: 2px solid rgba(255,255,255,.3);
  transition: .2s;
}
.install-step.active { color: #fff; }
.install-step.active .num {
  background: var(--hw-accent);
  border-color: var(--hw-accent);
  color: var(--hw-primary-dark);
  box-shadow: 0 0 0 4px rgba(232,170,37,.3);
}
.install-step.done { color: #fff; }
.install-step.done .num {
  background: #fff;
  border-color: #fff;
  color: var(--hw-primary);
}
.install-step-sep {
  flex: 0 0 46px;
  height: 2px;
  background: rgba(255,255,255,.25);
  margin: 0 14px;
  border-radius: 1px;
}

/* 主卡片 */
.install-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px 26px;
  box-shadow: 0 24px 64px rgba(0,0,0,.3), 0 2px 8px rgba(0,0,0,.12);
}
.install-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--hw-text);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.install-card-title::before {
  content: '';
  width: 4px; height: 17px;
  background: linear-gradient(180deg, var(--hw-primary), var(--hw-accent));
  border-radius: 2px;
}
.install-card-desc {
  color: var(--hw-muted);
  font-size: 12px;
  margin-bottom: 14px;
}

/* 错误提示 */
.install-errors {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.7;
}

/* 环境检测项 */
.env-list { display: flex; flex-direction: column; gap: 10px; }
.env-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fafbfd;
  border: 1px solid #eef0f5;
  border-radius: 12px;
  transition: .15s;
}
.env-item:hover { border-color: var(--hw-accent); background: #fff; }
.env-item .env-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #fff;
  display: grid; place-items: center;
  font-size: 18px;
  flex-shrink: 0;
  border: 1px solid #eef0f5;
}
.env-item .env-info { flex: 1; min-width: 0; }
.env-item .env-name { font-weight: 600; font-size: 14px; color: var(--hw-text); }
.env-item .env-desc { font-size: 12px; color: var(--hw-muted); margin-top: 2px; }
.env-item .env-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.env-item.ok {
  border-color: #d1fae5;
  background: linear-gradient(135deg, #f0fdf4, #fff);
}
.env-item.ok .env-icon { background: #d1fae5; border-color: #a7f3d0; }
.env-item.ok .env-status { background: #10b981; }
.env-item.fail {
  border-color: #fecaca;
  background: linear-gradient(135deg, #fef2f2, #fff);
}
.env-item.fail .env-icon { background: #fee2e2; border-color: #fecaca; }
.env-item.fail .env-status { background: #dc2626; }

/* 表单分组 */
.install-section { margin-bottom: 0; }
.install-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--hw-text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #eef0f5;
}
.install-section-title .st-icon {
  width: 24px; height: 24px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--hw-primary), var(--hw-accent));
  color: #fff;
  display: grid; place-items: center;
  font-size: 12px;
}

/* 左右分栏（数据库连接 / 管理员账号），中间竖线分隔 */
.install-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.install-split .install-section:first-child { padding-right: 24px; }
.install-split .install-section + .install-section {
  padding-left: 24px;
  border-left: 2px solid #e6e9f0;
}

/* 字段 */
.install-card .field { margin-bottom: 11px; }
.install-card .field label {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 5px;
  font-weight: 500;
}
.install-card .field input, .install-card .field select, .install-card .field textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e6e9f0;
  border-radius: 10px;
  background: #fff;
  color: #1f2430;
  transition: .15s;
}
.install-card .field input:focus, .install-card .field select:focus, .install-card .field textarea:focus {
  outline: none;
  border-color: var(--hw-primary);
  box-shadow: 0 0 0 3px rgba(170,31,36,.12);
}
.install-card .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* 按钮 */
.install-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn-install-primary {
  background: linear-gradient(135deg, var(--hw-primary), #8B181C);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: .15s;
  box-shadow: 0 6px 18px rgba(170,31,36,.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.btn-install-primary:hover {
  background: linear-gradient(135deg, #8B181C, var(--hw-primary));
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(170,31,36,.5);
}
.btn-install-primary.btn-block { width: 100%; }
.btn-install-secondary {
  background: #fff;
  color: var(--hw-primary);
  border: 1px solid #e6e9f0;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: .15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-install-secondary:hover { background: #fafbfd; border-color: var(--hw-primary); }

.install-hint {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255,255,255,.7);
  text-align: center;
  letter-spacing: .3px;
}

/* 已安装状态 */
.install-done { text-align: center; padding: 10px 0; }
.install-done .done-icon {
  width: 76px; height: 76px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--hw-primary), var(--hw-accent));
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 38px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(170,31,36,.35);
}
.install-done h1 { font-size: 22px; margin-bottom: 8px; color: var(--hw-text); }
.install-done .sub { color: var(--hw-muted); margin-bottom: 24px; }

/* 响应式 */
@media (max-width: 600px) {
  .install-card { padding: 18px 16px; }
  .install-card .form-row { grid-template-columns: 1fr; }
  .install-split { grid-template-columns: 1fr; }
  .install-split .install-section:first-child { padding-right: 0; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 2px solid #e6e9f0; }
  .install-split .install-section + .install-section { padding-left: 0; border-left: none; }
  .install-step-sep { flex: 0 0 30px; margin: 0 6px; }
  .install-logo { width: 56px; height: 56px; padding: 8px; border-radius: 14px; }
  .install-title { font-size: 20px; }
  .install-step span:not(.num) { display: none; }
}

/* ==================== 内容模型（文章/图片/视频） ==================== */
/* 列表卡片模型角标 */
.post-model {
  display: inline-block;
  font-size: 11px;
  line-height: 1;
  padding: 3px 7px;
  margin-right: 6px;
  border-radius: 4px;
  vertical-align: 2px;
  color: #fff;
}
.pm-image { background: #10b981; }
.pm-video { background: #6366f1; }

/* 详情页：图片模型图集 */
.image-gallery {
  margin: 16px 0;
}
.g-item {
  margin: 0 0 18px;
  text-align: center;
}
.g-item img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  cursor: zoom-in;
  background: #f1f3f7;
}
.g-item figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--hw-muted, #6b7280);
}

/* 详情页：视频模型播放器 */
.video-player {
  margin: 16px 0;
}
.video-player video {
  width: 100%;
  max-height: 520px;
  border-radius: 10px;
  background: #000;
}

/* 内容全流程轨迹时间线（HWCms 特色：采集→审核→发布 全生命周期） */
.tl-wrap { position: relative; padding-left: 4px; }
.tl-item { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.tl-item::before { content: ''; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: #e6e9f0; }
.tl-item:last-child::before { display: none; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 15px;
  color: #fff; flex-shrink: 0; box-shadow: 0 0 0 4px #fff, 0 2px 6px rgba(16,24,40,.12); z-index: 1; }
.tl-body { flex: 1; padding-top: 2px; }
.tl-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tl-title { font-weight: 600; font-size: 14px; }
.tl-time { color: #9aa3b2; font-size: 12px; }
.tl-desc { color: #6b7280; font-size: 13px; margin-top: 3px; line-height: 1.6; }
.tl-desc a { color: var(--hw-primary); }

/* ==================== 投稿页 ==================== */
.page-title { font-size: 26px; font-weight: 800; margin: 0 0 4px; }
.page-sub { color: #6b7280; font-size: 14px; margin: 0 0 24px; }
.contrib-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.contrib-form-card { min-height: 400px; }
.contrib-layout .form-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contrib-layout .hint-inline { font-weight: 400; color: #9aa3b2; font-size: 12px; }
.contrib-layout .vote-captcha { margin: 16px 0; }
.contrib-layout .btn-install-primary { width: 100%; padding: 12px; font-size: 15px; }

/* 优秀投稿侧栏 */
.contrib-recent-card { position: sticky; top: 20px; }
.contrib-recent-list { display: flex; flex-direction: column; gap: 12px; }
.contrib-recent-item { display: flex; gap: 12px; text-decoration: none; color: inherit; padding: 8px; border-radius: 8px; transition: background .15s; }
.contrib-recent-item:hover { background: #f5f6f8; }
.contrib-recent-cover { width: 72px; height: 72px; border-radius: 8px; background-size: cover; background-position: center; flex-shrink: 0; background-color: #e8ecf1; }
.contrib-recent-ph { display: grid; place-items: center; font-size: 11px; color: #9aa3b2; }
.contrib-recent-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.contrib-recent-title { font-size: 13px; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.contrib-recent-meta { font-size: 12px; color: #9aa3b2; margin-top: 6px; }

/* 投稿导航高亮 */
.nav-contrib { font-weight: 600; }

/* 响应式 */
@media (max-width: 900px) {
  .contrib-layout { grid-template-columns: 1fr; }
  .contrib-recent-card { position: static; }
}
@media (max-width: 640px) {
  .contrib-layout .form-row2 { grid-template-columns: 1fr; }
}

/* ==================== 后台投稿管理 ==================== */
.contrib-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.contrib-stat-box { display: flex; flex-direction: column; align-items: center; padding: 16px 12px; border-radius: 10px; background: #f8fafc; border: 1px solid #e6e9f0; }
.contrib-stat-box.pending { background: #fffbeb; border-color: #fde68a; }
.contrib-stat-box.published { background: #ecfdf5; border-color: #a7f3d0; }
.contrib-stat-box.rejected { background: #fef2f2; border-color: #fecaca; }
.contrib-stat-num { font-size: 28px; font-weight: 800; line-height: 1; }
.contrib-stat-box.pending .contrib-stat-num { color: #d97706; }
.contrib-stat-box.published .contrib-stat-num { color: #059669; }
.contrib-stat-box.rejected .contrib-stat-num { color: #ef4444; }
.contrib-stat-label { font-size: 12px; color: #6b7280; margin-top: 6px; }
@media (max-width: 640px) { .contrib-stat-row { grid-template-columns: repeat(2, 1fr); } }

/* ==================== 封面上传组件 ==================== */
.thumb-upload { display: flex; gap: 14px; align-items: flex-start; }
.thumb-preview {
  width: 180px; height: 135px; flex: 0 0 180px; border-radius: 8px;
  border: 2px dashed #d3dae6; background: #f8fafc no-repeat center/cover;
  position: relative; overflow: hidden;
}
.thumb-preview::before {
  content: '封面预览'; position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center; color: #b6bfce; font-size: 13px;
  background: #f8fafc; z-index: 1;
}
.thumb-preview.has { border-style: solid; border-color: #c7d2e0; }
.thumb-preview.has::before { display: none; }
.thumb-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding-top: 2px; }
.thumb-actions .vote-tip { margin-top: 4px; max-width: 260px; }
@media (max-width: 640px) {
  .thumb-upload { flex-direction: column; }
}

/* ==================== 授权管理 ==================== */
.lic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .lic-grid { grid-template-columns: 1fr; } }
.lic-status { border-left: 4px solid #3b82f6; }
.lic-status.err { border-left-color: #ef4444; }
.lic-status.none { border-left-color: #f59e0b; }
.lic-status.ok { border-left-color: #22c55e; }
.lic-status-head { font-size: 16px; font-weight: 600; color: #1f2937; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.lic-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.lic-badge.ok { background: #dcfce7; color: #16a34a; }
.lic-badge.err { background: #fee2e2; color: #dc2626; }
.lic-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lic-table th { text-align: right; width: 100px; padding: 6px 10px; color: #6b7280; font-weight: 500; vertical-align: top; }
.lic-table td { padding: 6px 10px; color: #111827; word-break: break-all; }
.lic-empty { color: #6b7280; font-size: 13px; margin: 6px 0 0; line-height: 1.7; }
.lic-msg { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 13px; }
.lic-msg.ok { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.lic-msg.err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.lic-gen-result { margin-top: 14px; }
.lic-gen-result textarea { width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; background: #f8fafc; border: 1px solid #d3dae6; border-radius: 6px; }
.lic-gen-result .vote-tip { margin-top: 6px; }
.lic-gen-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .lic-gen-form .form-row { grid-template-columns: 1fr; } }

/* ========= 前台头部搜索框 + 会员入口 ========= */
.header-right { display: flex; align-items: center; gap: 10px; }
.header-search { display: flex; align-items: center; gap: 0; }
.header-search input {
  width: 180px; height: 32px; padding: 0 10px; border: 1px solid #d3dae6; border-right: none;
  border-radius: 16px 0 0 16px; font-size: 13px; outline: none; transition: .2s; background: #f8fafc;
}
.header-search input:focus { border-color: var(--hw-primary); background: #fff; }
.header-search button {
  height: 32px; width: 36px; border: 1px solid #d3dae6; border-radius: 0 16px 16px 0;
  background: #f1f3f7; cursor: pointer; font-size: 13px; color: #5a6478;
}
.header-search button:hover { background: var(--hw-primary); color: #fff; border-color: var(--hw-primary); }
.header-member { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.header-member .me-link { display: flex; align-items: center; gap: 6px; color: #2b3245; text-decoration: none; }
.header-member .me-avatar { width: 28px; height: 28px; border-radius: 50%; }
.header-member .me-nick { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-member .me-msg { position: relative; color: #5a6478; text-decoration: none; padding: 2px 6px; }
.header-member .me-msg.has { color: var(--hw-primary); font-weight: 600; }
.header-member .me-msg b { background: var(--hw-primary); color: #fff; font-size: 10px; border-radius: 8px; padding: 0 5px; margin-left: 2px; }
.header-member .me-out { color: #8a94a6; text-decoration: none; }
.header-member .me-out:hover { color: var(--hw-primary); }
.header-member .me-login { color: var(--hw-primary); text-decoration: none; font-weight: 500; }
.header-member .me-reg { color: #5a6478; text-decoration: none; }
@media (max-width: 640px) {
  .header-search input { width: 120px; }
  .header-member .me-nick { display: none; }
  .header-right .btn { display: none; }
}

/* ========= 搜索结果页 ========= */
.search-bar-wrap { margin-bottom: 20px; }
.search-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search-bar input {
  flex: 1; min-width: 200px; height: 40px; padding: 0 14px; border: 1px solid #d3dae6;
  border-radius: 8px; font-size: 14px; outline: none; transition: .2s;
}
.search-bar input:focus { border-color: var(--hw-primary); box-shadow: 0 0 0 3px rgba(170,31,36,.08); }
.search-bar select { height: 40px; padding: 0 8px; border: 1px solid #d3dae6; border-radius: 8px; font-size: 13px; background: #fff; }
.search-result-info { margin-bottom: 16px; font-size: 14px; color: #5a6478; }
.search-result-info b { color: var(--hw-primary); }

/* ========= 会员中心页 ========= */
.member-page { max-width: 900px; margin: 0 auto; }
.member-auth-card { max-width: 420px; margin: 40px auto; }
.member-tabs { display: flex; gap: 0; border-bottom: 2px solid #e6e9f0; margin-bottom: 24px; }
.member-tabs a {
  padding: 10px 20px; font-size: 14px; color: #5a6478; text-decoration: none; border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: .2s;
}
.member-tabs a.active { color: var(--hw-primary); border-bottom-color: var(--hw-primary); font-weight: 600; }
.member-tabs a:hover { color: var(--hw-primary); }
.member-profile { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; padding: 20px; background: #fff; border-radius: 12px; border: 1px solid #e6e9f0; }
.member-profile .mp-avatar { width: 64px; height: 64px; border-radius: 50%; }
.member-profile .mp-info h3 { margin: 0 0 4px; font-size: 18px; }
.member-profile .mp-info p { margin: 0; color: #8a94a6; font-size: 13px; }
.member-msg-list { list-style: none; padding: 0; margin: 0; }
.member-msg-list li { padding: 14px 16px; background: #fff; border: 1px solid #e6e9f0; border-radius: 8px; margin-bottom: 10px; transition: .15s; }
.member-msg-list li.unread { border-left: 3px solid var(--hw-primary); }
.member-msg-list li .mm-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.member-msg-list li .mm-content { color: #5a6478; font-size: 13px; line-height: 1.6; }
.member-msg-list li .mm-meta { color: #aab2c0; font-size: 12px; margin-top: 6px; }
.member-msg-list li .mm-actions { margin-top: 8px; }
.member-contrib-list { list-style: none; padding: 0; margin: 0; }
.member-contrib-list li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border: 1px solid #e6e9f0; border-radius: 8px; margin-bottom: 10px; }
.member-contrib-list li .mc-cover { width: 64px; height: 48px; border-radius: 6px; object-fit: cover; background: #f1f3f7; }
.member-contrib-list li .mc-info { flex: 1; }
.member-contrib-list li .mc-title { font-size: 14px; font-weight: 500; }
.member-contrib-list li .mc-meta { font-size: 12px; color: #8a94a6; margin-top: 2px; }
.member-contrib-list li .mc-status { font-size: 12px; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }

/* ========= 面包屑导航 ========= */
.breadcrumb { font-size: 13px; color: #8a94a6; margin-bottom: 16px; }
.breadcrumb a { color: #5a6478; text-decoration: none; }
.breadcrumb a:hover { color: var(--hw-primary); }
.breadcrumb .sep { margin: 0 6px; color: #d3dae6; }

/* ========= 详情页评论区 ========= */
.comment-section { margin-top: 32px; padding-top: 24px; border-top: 1px solid #e6e9f0; }
.comment-section h3 { font-size: 18px; margin: 0 0 16px; }
.comment-form { margin-bottom: 24px; }
.comment-form textarea { width: 100%; min-height: 80px; padding: 12px; border: 1px solid #d3dae6; border-radius: 8px; font-size: 14px; resize: vertical; outline: none; transition: .2s; }
.comment-form textarea:focus { border-color: var(--hw-primary); box-shadow: 0 0 0 3px rgba(170,31,36,.08); }
.comment-form .cf-row { display: flex; gap: 12px; margin-top: 10px; align-items: center; flex-wrap: wrap; }
.comment-form .cf-row input { height: 36px; padding: 0 10px; border: 1px solid #d3dae6; border-radius: 6px; font-size: 13px; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list > li { padding: 14px 0; border-bottom: 1px solid #f1f3f7; }
.comment-list .cl-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.comment-list .cl-avatar { width: 28px; height: 28px; border-radius: 50%; }
.comment-list .cl-name { font-weight: 600; font-size: 13px; }
.comment-list .cl-time { color: #aab2c0; font-size: 12px; }
.comment-list .cl-body { font-size: 14px; line-height: 1.6; color: #2b3245; padding-left: 36px; }
.comment-list .cl-reply { padding-left: 36px; margin-top: 6px; font-size: 12px; }
.comment-list .cl-reply a { color: var(--hw-primary); text-decoration: none; }
.comment-list .cl-children { list-style: none; padding: 0 0 0 36px; margin: 8px 0 0; }
.comment-list .cl-children > li { padding: 10px 0; border-bottom: 1px dashed #f1f3f7; }
.comment-empty { color: #aab2c0; font-size: 14px; text-align: center; padding: 20px; }

/* ========= 详情页上下篇 + 相关推荐 ========= */
.prev-next-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; }
.prev-next-nav a { flex: 1; padding: 12px 16px; background: #fff; border: 1px solid #e6e9f0; border-radius: 8px; text-decoration: none; font-size: 13px; color: #5a6478; transition: .15s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prev-next-nav a:hover { border-color: var(--hw-primary); color: var(--hw-primary); }
.prev-next-nav .pn-next { text-align: right; }
.related-list { margin-top: 24px; }
.related-list h3 { font-size: 16px; margin: 0 0 12px; }
.related-list .rl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.related-list .rl-item { display: block; background: #fff; border-radius: 8px; overflow: hidden; text-decoration: none; transition: .15s; }
.related-list .rl-item:hover { box-shadow: 0 4px 14px rgba(16,24,40,.08); transform: translateY(-1px); }
.related-list .rl-item img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.related-list .rl-item .rl-title { padding: 6px 8px; font-size: 12px; color: #2b3245; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .related-list .rl-grid { grid-template-columns: repeat(2, 1fr); } }

/* ========= 友情链接 ========= */
.friend-links { padding: 16px 18px; border-top: 1px solid #e6e9f0; }
.friend-links .fl-title { font-size: 13px; color: #8a94a6; margin-bottom: 8px; }
.friend-links .fl-list { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.friend-links .fl-list a { font-size: 13px; color: #5a6478; text-decoration: none; }
.friend-links .fl-list a:hover { color: var(--hw-primary); }
.friend-links .fl-list img { height: 20px; vertical-align: middle; }

/* ========= 广告位 ========= */
.ad-block { margin: 16px 0; text-align: center; }
.ad-block img { max-width: 100%; border-radius: 8px; }

/* ========= TAG 标签页 ========= */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.tag-cloud a { padding: 6px 14px; background: #fff; border: 1px solid #e6e9f0; border-radius: 16px; font-size: 13px; color: #5a6478; text-decoration: none; transition: .15s; }
.tag-cloud a:hover { background: var(--hw-primary); color: #fff; border-color: var(--hw-primary); }
.tag-cloud a.hot { font-size: 16px; font-weight: 600; }
.tag-cloud a.medium { font-size: 14px; }

/* ========= 单页面 ========= */
.page-content { max-width: 900px; margin: 0 auto; background: #fff; border-radius: 12px; border: 1px solid #e6e9f0; padding: 32px 40px; }
.page-content h1 { font-size: 24px; margin: 0 0 20px; }
.page-content .page-body { line-height: 1.8; font-size: 15px; }
.page-content .page-body img { max-width: 100%; border-radius: 8px; }

/* ========= SEO 体系补充 ========= */
.breadcrumb .bc-sep { margin: 0 6px; color: #d3dae6; }
.breadcrumb .bc-cur { color: #2b3245; font-weight: 500; }
.page-h1 { font-size: 22px; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tag-count { font-size: 13px; font-weight: 400; color: #8a94a6; }
.tag-cloud .tag-item { display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; background: #fff; border: 1px solid #e6e9f0; border-radius: 16px; font-size: 13px; color: #5a6478; text-decoration: none; transition: .15s; line-height: 1; }
.tag-cloud .tag-item:hover { background: var(--hw-primary); color: #fff; border-color: var(--hw-primary); }
.tag-cloud .tag-item .tag-n { font-size: 11px; background: rgba(0,0,0,.06); border-radius: 8px; padding: 1px 6px; }
.tag-cloud .tag-item:hover .tag-n { background: rgba(255,255,255,.25); }
.article-list { display: flex; flex-direction: column; gap: 14px; }
.al-item { display: flex; gap: 14px; background: #fff; border: 1px solid #e6e9f0; border-radius: 10px; padding: 12px; transition: .15s; }
.al-item:hover { box-shadow: 0 4px 14px rgba(16,24,40,.08); transform: translateY(-1px); }
.al-cover { flex: 0 0 160px; height: 100px; border-radius: 8px; overflow: hidden; background: #f1f3f7; }
.al-cover img { width: 100%; height: 100%; object-fit: cover; }
.al-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.al-body h3 { font-size: 16px; margin: 0 0 6px; line-height: 1.4; }
.al-body h3 a { color: #2b3245; text-decoration: none; }
.al-body h3 a:hover { color: var(--hw-primary); }
.al-summary { font-size: 13px; color: #8a94a6; line-height: 1.6; margin: 0 0 8px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.al-meta { display: flex; gap: 14px; font-size: 12px; color: #aab2c0; }
@media (max-width: 640px) { .al-cover { flex-basis: 110px; height: 80px; } }

/* ===== 评论区块 ===== */
.comment-section { margin-top: 26px; background: #fff; border: 1px solid #e6e9f0; border-radius: 12px; padding: 20px 22px; }
.comment-hd { font-size: 16px; margin: 0 0 16px; display: flex; align-items: center; gap: 8px; }
.comment-count { background: var(--hw-primary); color: #fff; font-size: 12px; border-radius: 10px; padding: 1px 8px; }
.comment-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.comment-item { border: 1px solid #eef1f6; border-radius: 10px; padding: 12px 14px; background: #fafbfd; }
.comment-body { }
.comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.comment-name { font-weight: 600; font-size: 14px; color: #2b3245; }
.comment-reply { font-size: 12px; color: var(--hw-primary); text-decoration: none; }
.comment-reply:hover { text-decoration: underline; }
.comment-text { font-size: 14px; line-height: 1.7; color: #3d4657; word-break: break-word; }
.comment-sub { margin: 10px 0 0 18px; padding-left: 14px; border-left: 2px solid #eef1f6; display: flex; flex-direction: column; gap: 10px; }
.comment-empty { text-align: center; color: #aab2c0; font-size: 13px; padding: 24px 0; }
.comment-form { border-top: 1px dashed #eef1f6; padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.comment-fields { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.comment-login { font-size: 13px; color: #6b7280; }
.comment-login em { font-style: normal; color: var(--hw-primary); }
.c-input { border: 1px solid #e6e9f0; border-radius: 8px; padding: 8px 12px; font-size: 13px; outline: none; transition: border-color .15s; box-sizing: border-box; }
.c-input:focus { border-color: var(--hw-primary); }
.c-nick { width: 160px; }
.c-captcha { width: 100px; }
.c-captcha-img { height: 34px; border-radius: 8px; cursor: pointer; border: 1px solid #e6e9f0; }
.c-textarea { width: 100%; resize: vertical; min-height: 60px; line-height: 1.6; }
.comment-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.c-tip { font-size: 12px; color: var(--hw-primary); }
@media (max-width: 640px) {
  .comment-section { padding: 14px; }
  .c-nick { width: 100%; }
  .comment-sub { margin-left: 8px; padding-left: 8px; }
}

/* ==================== 友情链接（footer） ==================== */
.site-footer .site-inner { display: block; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px dashed #e6e9f0; font-size: 13px; }
.footer-links:empty, .site-footer .site-inner:not(:has(.footer-links)) .footer-copy { padding-top: 0; margin-top: 0; border-bottom: 0; }
.fl-title { color: #9aa3b2; font-size: 12px; }
.footer-links a { color: #6b7280; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.footer-links a:hover { color: var(--hw-primary, #e02020); }
.fl-logo { height: 16px; width: auto; border-radius: 3px; object-fit: contain; }
.footer-copy { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #9aa3b2; font-size: 12px; }

/* ==================== 广告位 ==================== */
.ad-slot { margin: 14px 0; overflow: hidden; border-radius: 12px; }
.ad-slot:first-child { margin-top: 0; }
.ad-image img { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; }
.ad-image a { display: block; }
.ad-code { background: #f7f8fa; border: 1px dashed #e0e3ea; padding: 10px; text-align: center; }
.ad-code:empty { display: none; }

/* ==================== 前台单页 ==================== */
.page-content { background: #fff; border-radius: 16px; padding: 28px; margin-top: 14px; }
.page-content .page-body { font-size: 15px; line-height: 1.85; color: #374151; word-break: break-word; }
.page-content .page-body img { max-width: 100%; border-radius: 8px; }
.page-content .page-body p { margin: 0 0 12px; }
@media (max-width: 640px) {
  .page-content { padding: 16px; }
  .ad-image img { max-height: 140px; }
}

/* ==================== 专题系统（参考 CMSTop） ==================== */
.sp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 14px; }
.sp-item { display: flex; gap: 14px; background: #fff; border-radius: 14px; padding: 14px; text-decoration: none; color: inherit; border: 1px solid #eef0f4; transition: box-shadow .25s, transform .25s; }
.sp-item:hover { box-shadow: 0 10px 26px rgba(30, 41, 59, .10); transform: translateY(-3px); }
.sp-item-cover { flex: 0 0 96px; height: 84px; border-radius: 10px; background: linear-gradient(135deg, #3b82f6, #8b5cf6); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px; font-weight: 700; }
.sp-item-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sp-item-title { font-size: 15px; font-weight: 600; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-item-desc { font-size: 12px; color: #94a3b8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp-item-meta { font-size: 12px; color: #6366f1; margin-top: auto; }
.sp-hero { position: relative; border-radius: 16px; overflow: hidden; margin-top: 14px; min-height: 190px; display: flex; align-items: flex-end; }
.sp-hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #1e3a8a, #7c3aed); background-size: cover; background-position: center; }
.sp-hero-mask { position: absolute; inset: 0; background: linear-gradient(to top, rgba(2, 6, 23, .72), rgba(2, 6, 23, .18) 60%, rgba(2, 6, 23, .35)); }
.sp-hero-body { position: relative; z-index: 1; padding: 24px; color: #fff; }
.sp-badge { display: inline-block; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 2px 12px; font-size: 12px; margin-bottom: 10px; backdrop-filter: blur(4px); }
.sp-hero-body h1 { font-size: 24px; margin: 0 0 6px; font-weight: 700; }
.sp-hero-body p { margin: 0 0 10px; font-size: 13.5px; opacity: .9; max-width: 720px; }
.sp-hero-meta { font-size: 12px; opacity: .75; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 14px; }
.sp-card { display: flex; flex-direction: column; gap: 10px; background: #fff; border-radius: 14px; padding: 12px; text-decoration: none; color: inherit; border: 1px solid #eef0f4; transition: box-shadow .25s, transform .25s; }
.sp-card:hover { box-shadow: 0 10px 26px rgba(30, 41, 59, .10); transform: translateY(-3px); }
.sp-card-lead { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
.sp-card-cover { position: relative; display: block; border-radius: 10px; overflow: hidden; background: #f1f5f9; }
.r-169 { aspect-ratio: 16 / 9; }
.r-43 { aspect-ratio: 4 / 3; }
.sp-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-card-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 700; color: #cbd5e1; }
.sp-card-lead .sp-card-cover { flex: 0 0 46%; }
.sp-card-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sp-card-title { font-size: 15px; font-weight: 600; color: #111827; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp-card-lead .sp-card-title { font-size: 18px; }
.sp-card-desc { font-size: 12.5px; color: #6b7280; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp-card-meta { font-size: 12px; color: #94a3b8; margin-top: auto; }
.pc-badge { position: absolute; left: 8px; bottom: 8px; background: rgba(17, 24, 39, .72); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 6px; backdrop-filter: blur(4px); z-index: 2; }
@media (max-width: 640px) {
  .sp-card-lead { flex-direction: column; }
  .sp-card-lead .sp-card-cover { flex: none; }
  .sp-hero { min-height: 150px; }
  .sp-hero-body h1 { font-size: 19px; }
}

/* ==================== 详情页：上一篇/下一篇 + 相关阅读 ==================== */
.pn-nav { display: flex; gap: 12px; margin: 22px 0; }
.pn-item { flex: 1; background: #f8fafc; border: 1px solid #eef0f4; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pn-label { font-size: 11.5px; color: #94a3b8; }
.pn-link { font-size: 14px; color: #1f2937; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; transition: color .2s; }
.pn-link:hover { color: var(--hw-primary, #e02020); }
.pn-none { font-size: 13px; color: #cbd5e1; }
.related-section { margin-top: 26px; }
.related-hd { font-size: 16px; font-weight: 700; color: #111827; margin: 0 0 12px; padding-left: 10px; border-left: 4px solid var(--hw-primary, #e02020); }
.related-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.related-item { display: flex; gap: 10px; background: #fff; border: 1px solid #eef0f4; border-radius: 12px; padding: 10px; text-decoration: none; color: inherit; transition: box-shadow .22s, transform .22s; }
.related-item:hover { box-shadow: 0 8px 20px rgba(30, 41, 59, .09); transform: translateY(-2px); }
.rel-cover { flex: 0 0 76px; height: 58px; border-radius: 8px; background-size: cover; background-position: center; background-color: #f1f5f9; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; color: #cbd5e1; }
.rel-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rel-title { font-size: 13.5px; font-weight: 600; color: #111827; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rel-desc { font-size: 11.5px; color: #94a3b8; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.rel-meta { font-size: 11px; color: #c0c8d4; margin-top: auto; }
@media (max-width: 640px) { .pn-nav { flex-direction: column; } }

/* ==================== 首页：焦点轮播 + 头条 ==================== */
.home-slide { margin-top: 14px; }
.slide-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.slide-label { font-size: 15px; font-weight: 700; color: #111827; }
.slide-sub { font-size: 12px; color: #94a3b8; }
.slide-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.slide-card { display: flex; flex-direction: column; gap: 8px; background: #fff; border-radius: 14px; padding: 10px; text-decoration: none; color: inherit; border: 1px solid #eef0f4; transition: box-shadow .25s, transform .25s; }
.slide-card:hover { box-shadow: 0 10px 24px rgba(30, 41, 59, .10); transform: translateY(-3px); }
.slide-cover { position: relative; display: block; border-radius: 10px; overflow: hidden; background: #f1f5f9; }
.slide-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-title { font-size: 13.5px; font-weight: 600; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-headline { margin-top: 16px; }
.hl-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.hl-label { font-size: 15px; font-weight: 700; color: #111827; }
.hl-sub { font-size: 12px; color: #94a3b8; }
.hl-list { display: flex; flex-direction: column; gap: 0; background: #fff; border: 1px solid #eef0f4; border-radius: 14px; padding: 6px 14px; }
.hl-item { display: flex; align-items: center; gap: 10px; padding: 11px 2px; text-decoration: none; color: inherit; border-bottom: 1px dashed #f1f3f7; }
.hl-item:last-child { border-bottom: 0; }
.hl-item:hover .hl-txt, .hl-item:hover .hl-lead-title { color: var(--hw-primary, #e02020); }
.hl-lead-cover { flex: 0 0 120px; height: 68px; border-radius: 8px; overflow: hidden; background: #f1f5f9; display: block; }
.hl-lead-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hl-lead-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hl-lead-title { font-size: 15px; font-weight: 700; color: #111827; transition: color .2s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-lead-desc { font-size: 12px; color: #94a3b8; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.hl-num { flex: 0 0 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, #3b82f6, #8b5cf6); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.hl-item:nth-child(2) .hl-num { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.hl-item:nth-child(3) .hl-num { background: linear-gradient(135deg, #10b981, #14b8a6); }
.hl-txt { font-size: 14px; color: #1f2937; font-weight: 500; transition: color .2s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 自定义模型扩展字段（参考迅睿CMS 模块字段） */
.extra-fields { margin: 18px 0; border: 1px solid #e5e9f0; border-radius: 10px; overflow: hidden; }
.extra-row { display: flex; gap: 14px; padding: 10px 16px; border-bottom: 1px solid #eef1f6; font-size: 14px; }
.extra-row:last-child { border-bottom: none; }
.extra-label { flex: 0 0 110px; color: #8a94a6; }
.extra-val { flex: 1; color: #2b303b; word-break: break-word; }
.extra-img { max-width: 260px; max-height: 200px; border-radius: 8px; cursor: zoom-in; }
/* 后台模型字段构建器 */
.model-fields { display: flex; flex-direction: column; gap: 8px; }
.card-sub { font-size: 14px; font-weight: 500; color: #3c3489; margin: 14px 0 10px; padding: 8px 12px; background: #f3f1fc; border-radius: 8px; }
/* 内容编辑页推荐位/专题芯片 */
.form-row.align-start { align-items: start; }
.pos-grid, .special-list { display: grid; gap: 10px; padding-top: 4px; }
.pos-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.special-list { grid-template-columns: 1fr; }
.pos-chip, .special-chip { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #d3dae6; border-radius: 8px; cursor: pointer; background: #fff; transition: all .15s ease; }
.pos-chip:hover, .special-chip:hover { border-color: #9aa3b2; background: #f8fafc; }
.pos-chip:has(input:checked), .special-chip:has(input:checked) { border-color: #6366f1; background: #eef2ff; }
.pos-chip input, .special-chip input { flex: 0 0 auto; margin: 0; width: 16px; height: 16px; accent-color: #6366f1; cursor: pointer; }
.chip-body { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.chip-title { font-size: 13px; color: #2b303b; font-weight: 500; }
.chip-desc { font-size: 11px; color: #7a8298; }
.chip-badge { flex: 0 0 auto; margin-left: auto; font-size: 11px; padding: 2px 6px; border-radius: 4px; background: #f1f5f9; color: #64748b; }
.empty-hint { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: #f8fafc; border: 1px dashed #d3dae6; border-radius: 8px; color: #64748b; font-size: 13px; }

/* ==================== 内容表单 1.1.8：分区配色与紧凑行 ==================== */
/* 三列行：发布时间 / 加入专题 / 修订说明 */
.form-row.row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1180px) { .form-row.row-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .form-row.row-3 { grid-template-columns: 1fr; } }

/* 标题(2/3) + 标签(≤1/3) 同一行 */
.form-row.title-tags { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1180px) { .form-row.title-tags { grid-template-columns: 1fr; } }

/* 封面图 + 推荐位 同一行 */
.form-row.cf-cover-pos { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1180px) { .form-row.cf-cover-pos { grid-template-columns: 1fr; } }

/* 功能按钮配色：上传类=蓝，媒体库类=红（参考上传/浏览双按钮样式） */
.btn.btn-blue { background: #1673ff; border-color: #1673ff; color: #fff; }
.btn.btn-blue:hover { background: #3c86ff; border-color: #3c86ff; }
.btn.btn-red { background: #f5222d; border-color: #f5222d; color: #fff; }
.btn.btn-red:hover { background: #ff4d4f; border-color: #ff4d4f; }

/* 分区标题配色：发布设置=橙 / 封面与推荐=青 / 自定义字段=紫 */
.card-sub.cs-orange { background: #fff7ed; color: #c2410c; }
.card-sub.cs-teal { background: #f0fdfa; color: #0f766e; }
.card-sub.cs-purple { background: #f5f3ff; color: #6d28d9; }

/* 推荐位投放：按钮式多选（2026-10-21，去掉卡片与说明文字） */
.pos-btns { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 2px; }
.pos-btn { position: relative; display: inline-block; cursor: pointer; }
.pos-btn input { position: absolute; opacity: 0; pointer-events: none; }
.pos-btn span {
  display: inline-block; padding: 7px 16px; border: 1px solid #dbe1ea; border-radius: 8px;
  background: #fff; color: #1f2430; font-size: 13px; line-height: 1.4; user-select: none;
}
.pos-btn span:hover { border-color: #94a3b8; }
.pos-btn input:checked + span { background: var(--hw-primary); border-color: var(--hw-primary); color: #fff; }

/* 系统设置：图片类字段（LOGO 等）选择器 */
.img-picker { display: flex; align-items: center; gap: 12px; }
.img-picker-preview {
  flex: 0 0 72px; width: 72px; height: 72px; border: 1px dashed #dbe1ea; border-radius: 8px;
  background: #f8fafc center/contain no-repeat;
}
.img-picker-preview.has { border-style: solid; background-color: #fff; }
.img-picker-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
