/* ============================================================
   金币论坛 全局样式 v3（大气版）
   设计语言：深蓝紫渐变主调 + 金色点缀、玻璃拟态吸顶条、
   大圆角卡片、细腻光影、响应式多档适配
   ============================================================ */
:root {
  --bg: #eef1f8;
  --bg-deep: #e6ebf6;
  --card: #ffffff;
  --border: #e3e8f2;
  --text: #18202f;
  --muted: #6b7688;
  --primary: #2f5af0;
  --primary-dark: #1c3fc4;
  --primary-soft: #eaf0ff;
  --gold: #b45309;
  --gold-bg: #fff7e3;
  --gold-border: #f0d9a8;
  --success: #16a34a;
  --danger: #dc2626;
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 10px 30px rgba(22, 34, 84, 0.12);
  --shadow-lg: 0 18px 48px rgba(22, 34, 84, 0.16);
  --radius: 16px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  font-size: var(--body-font-size, 14px);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 88% -130px, rgba(124, 92, 255, 0.16), transparent 60%),
    radial-gradient(780px 440px at -8% 30px, rgba(47, 90, 240, 0.12), transparent 55%),
    radial-gradient(720px 440px at 96% 40%, rgba(240, 177, 60, 0.14), transparent 55%),
    radial-gradient(660px 400px at 10% 80%, rgba(236, 72, 153, 0.10), transparent 55%),
    linear-gradient(180deg, #f2efff 0%, var(--bg) 360px);
  background-attachment: fixed;
}

a { color: var(--primary); text-decoration: none; transition: color .15s ease; }
a:hover { text-decoration: underline; }

.container { max-width: 1000px; margin: 0 auto; padding: 0 12px; }

/* ==================== 顶部 Logo 条（玻璃拟态） ==================== */
.logo-strip {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(22, 34, 84, 0.06);
}
.logo-strip::after {
  content: "";
  display: block;
  height: 3px;
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(90deg, #2f5af0, #7c5cff, #ec4899, #f0b13c, #22c55e, #2f5af0);
  background-size: 300% 100%;
  animation: stripFlow 8s linear infinite;
}
@keyframes stripFlow {
  0%   { background-position: 0% 0; }
  100% { background-position: 300% 0; }
}
.logo-strip-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  min-height: 68px;
}
.brand {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1.5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #2f5af0, #7c5cff 45%, #ec4899 80%, #f0a13c);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: brandFlow 6s ease-in-out infinite alternate;
}
@keyframes brandFlow {
  0%   { background-position: 0% 0; }
  100% { background-position: 100% 0; }
}
.brand-logo { height: 42px; width: auto; display: inline-block; }
.brand:hover { text-decoration: none; }
.logo-strip .brand { font-size: 30px; font-weight: 900; }
.userbox { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 14px; }
.userbox a { color: var(--text); font-weight: 600; }
.userbox a:hover { color: var(--primary); text-decoration: none; }
.coins-badge {
  background: linear-gradient(135deg, #fff3d0, #ffe7ad);
  color: #9a4a00;
  border: 1px solid var(--gold-border);
  padding: 5px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 3px 10px rgba(180, 83, 9, 0.14);
}

/* ==================== 主体 / 页脚 ==================== */
main.container { padding-top: 18px; padding-bottom: 50px; }
.footer {
  border-top: none;
  padding: 22px 0;
  color: var(--muted);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
}
.footer .container { border-top: 1px solid var(--border); padding-top: 22px; }

/* ==================== 区块标题 ==================== */
.list-head { display: none; }
.list-head h1 { font-size: 20px; margin: 0; }
.section-title {
  font-size: 21px;
  font-weight: 800;
  margin: 0;
  padding-left: 14px;
  border-left: none;
  position: relative;
  line-height: 1.3;
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0; top: 2px; bottom: 2px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #2f5af0, #7c5cff 45%, #ec4899);
}

/* ==================== 首页广告 ==================== */
.home-ad {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.home-ad-bottom { margin-top: 20px; margin-bottom: 0; }

/* ==================== 卡片 ==================== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-md);
}
.card h1 { margin: 0 0 16px; font-size: 24px; }
.card h2 { margin: 0 0 12px; font-size: 18px; }

/* ==================== 提示消息 ==================== */
.flash {
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 16px;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
}
.flash-success { background: #ecfdf3; border: 1px solid #b9f0cd; color: #15803d; }
.flash-error   { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.flash-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }

/* ==================== 按钮 ==================== */
.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  background: var(--card);
  color: var(--text);
  line-height: 1.4;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 6px 18px rgba(47, 90, 240, 0.30);
}
.btn-primary:hover { box-shadow: 0 8px 26px rgba(47, 90, 240, 0.42), 0 0 20px rgba(124, 92, 255, 0.28); }
.btn-gold {
  background: linear-gradient(135deg, #ff9a2e, #e07012);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(255, 150, 20, 0.38), 0 0 16px rgba(255, 190, 70, 0.30);
}
.btn-gold:hover { box-shadow: 0 8px 26px rgba(255, 150, 20, 0.46), 0 0 22px rgba(255, 190, 70, 0.38); }
.btn-danger { background: linear-gradient(135deg, #ef4444, var(--danger)); color: #fff; box-shadow: 0 4px 12px rgba(220, 38, 38, 0.22); }
.btn-sm { padding: 6px 14px; font-size: 14px; border-radius: 9px; }
.btn-outline { background: #fff; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

/* ==================== 表单 ==================== */
.form-row { margin-bottom: 20px; }
.form-row label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 15px; }
.form-row input[type="text"],
.form-row input[type="password"],
.form-row input[type="number"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #dfe5f0;
  border-radius: 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.04);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.form-row input:hover, .form-row select:hover, .form-row textarea:hover {
  border-color: #c3d0ea;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(47, 90, 240, 0.12);
  background: #fff;
}
.form-row input::placeholder, .form-row textarea::placeholder {
  color: #a3adc2;
}
textarea.code-editor { scrollbar-width: thin; scrollbar-color: #c6d0e5 transparent; }
textarea.code-editor::-webkit-scrollbar { width: 8px; height: 8px; }
textarea.code-editor::-webkit-scrollbar-thumb { background: #c6d0e5; border-radius: 8px; }
textarea.code-editor::-webkit-scrollbar-thumb:hover { background: #a9b8d8; }
input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; }
.form-check { font-weight: normal; }
.form-check label { font-weight: normal; display: flex; align-items: center; gap: 8px; }
.theme-picker { display: flex; align-items: center; gap: 12px; }
.theme-picker input[type="color"] {
  width: 54px; height: 38px; padding: 3px;
  border: 1px solid var(--border); border-radius: 10px;
  background: #fff; cursor: pointer;
}
/* 发帖页两列紧凑布局 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; align-items: start; }
.form-grid .form-row { margin-bottom: 14px; }

/* 设置页分组标题 */
.form-group-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin: 10px 0 6px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--border);
}
/* 最小值 ~ 最大值范围输入 */
.range-inputs { display: flex; align-items: center; gap: 10px; }
.range-inputs input[type="number"] { width: 120px; padding: 11px 14px; }
.range-inputs span { color: var(--muted); font-size: 16px; }
.form-group-title + .form-grid { margin-bottom: 8px; }
.auth-card { max-width: 440px; margin: 48px auto; padding: 34px 36px; }
.muted { color: var(--muted); font-size: 14px; }

/* ==================== 代码编辑器（发帖内容） ==================== */
.code-editor {
  width: 100%;
  min-height: 200px;
  padding: 14px 18px;
  border: 1px solid #dfe5f0;
  border-radius: 14px;
  font-family: Consolas, Monaco, Menlo, "Courier New", monospace;
  font-size: 15px;
  line-height: 1.8;
  background: #fff;
  color: var(--text);
  resize: vertical;
  box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.04);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.code-editor:hover { border-color: #c3d0ea; }
.code-editor:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(47, 90, 240, 0.12);
}

/* ==================== 帖子列表 ==================== */
.post-list { display: flex; flex-direction: column; gap: 22px; }
.post-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.post-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, #2f5af0, #7c5cff, #ec4899, #f0b13c, #22c55e, #2f5af0);
  background-size: 300% 100%;
  opacity: 0;
  animation: stripFlow 6s linear infinite;
  transition: opacity .25s ease;
}
.post-card:hover {
  border-color: #c9a8ff;
  box-shadow: 0 14px 36px rgba(124, 92, 255, 0.22), 0 4px 14px rgba(240, 177, 60, 0.12);
  transform: translateY(-4px);
}
.post-card:hover::before { opacity: 1; }
.post-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; letter-spacing: 0.2px; display: flex; align-items: center; flex-wrap: wrap; }
.post-title .badge { font-size: 14px; padding: 4px 14px; margin-left: 0; margin-right: 10px; flex-shrink: 0; }
.post-title a { color: var(--title-color, var(--text)); }
.post-title a:hover { color: var(--primary); text-decoration: none; }
.post-title .post-author-inline { color: inherit; font-size: inherit; margin-left: auto; }
.tip-count-inline {
  display: inline-block;
  font-size: 13px;
  font-weight: 400;
  padding: 2px 12px;
  border-radius: 999px;
  vertical-align: 2px;
  margin-left: 12px;
  color: var(--gold);
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
}
.post-meta { color: var(--muted); font-size: 14px; display: flex; gap: 18px; flex-wrap: wrap; }
.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 999px;
  vertical-align: 2px;
  margin-left: 8px;
}
.badge-gold { background: linear-gradient(135deg, #ffd76a, #ffb347); color: #7c3f00; border: 1px solid #f5c35f; box-shadow: 0 3px 10px rgba(255, 170, 40, 0.35); }
.badge-info { background: linear-gradient(135deg, #e6eeff, #d6e4ff); color: #1d4ed8; border: 1px solid #bcd4ff; box-shadow: 0 3px 10px rgba(47, 90, 240, 0.22); }
.badge-free { background: linear-gradient(135deg, #7df3b4, #34d399); color: #065f46; border: 1px solid #6ee7b7; box-shadow: 0 3px 10px rgba(52, 211, 153, 0.35); }
.badge-top { background: linear-gradient(135deg, #ff8a80, #ef4444); color: #fff; border: 1px solid #fca5a5; box-shadow: 0 3px 10px rgba(239, 68, 68, 0.35); }

/* ==================== 帖子详情（正文代码块） ==================== */
.post-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.post-title-row h1 { margin: 0; }
.post-detail h1 { font-size: 28px; }
.post-content {
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.8;
  word-break: break-word;
  overflow-wrap: break-word;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}
.post-content img, .post-content video, .post-content iframe { max-width: 100%; height: auto; }
.post-content table { border-collapse: collapse; max-width: 100%; }
.post-content th, .post-content td { border: 1px solid var(--border); padding: 6px 10px; }
.post-content pre, .post-content code {
  background: #f4f6fb;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: Consolas, Monaco, Menlo, "Courier New", monospace;
  font-size: 13px;
}
.post-content pre { padding: 12px 14px; overflow-x: auto; }
.post-content pre code { background: transparent; border: 0; }
.paid-box {
  margin-top: 30px;
  border: 1px dashed var(--gold-border);
  background: linear-gradient(135deg, var(--gold-bg), #fff3d6);
  border-radius: 14px;
  padding: 22px 26px;
}
.paid-box h3 { margin: 0 0 10px; color: var(--gold); }
.paid-content { background: #fff; color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; box-shadow: var(--shadow-sm); }
.paid-locked p { margin: 0 0 14px; font-size: 16px; }
.paid-locked strong { color: var(--gold); font-size: 19px; }

/* ==================== 分页 ==================== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 30px; color: var(--muted); font-size: 15px; }
.pagination a {
  color: var(--primary);
  background: #fff;
  border: 1px solid var(--border);
  padding: 7px 18px;
  border-radius: 999px;
  transition: all .15s ease;
}
.pagination a:hover { border-color: var(--primary); background: var(--primary-soft); text-decoration: none; }

/* ==================== 列表 / 金币 ==================== */
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.plain-list li:last-child { border-bottom: none; }
.empty { color: var(--muted); text-align: center; padding: 52px 0; font-size: 16px; }
.coin-line { font-size: 17px; }
.coin-num {
  color: var(--gold);
  font-size: 30px;
  font-weight: 800;
  background: linear-gradient(135deg, #d97b16, #a85a05);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==================== 管理后台 ==================== */
.admin-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  overflow-x: auto;
  margin: 0 0 10px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 0 0 6px;
  box-shadow: none;
  scrollbar-width: none;
}
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .15s ease;
}
.admin-nav a:hover { color: var(--primary); background: var(--primary-soft); text-decoration: none; }
.admin-nav a.active {
  color: var(--primary);
  background: var(--primary-soft);
}

.data-table { width: 100%; border-collapse: collapse; font-size: 17px; }
.data-table th, .data-table td { border: 1px solid var(--border); padding: 8px 8px; text-align: left; vertical-align: middle; }
.data-table th { color: var(--muted); font-weight: 600; font-size: 15px; letter-spacing: 0.4px; background: #f8faff; position: sticky; top: 0; z-index: 3; box-shadow: 0 1px 0 var(--border); }
.data-table tbody tr:hover { background: #f8faff; }
.inline-form { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.small-input { width: 74px; padding: 7px 9px; border: 1px solid #dfe5f0; border-radius: 9px; font-size: 15px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.small-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 90, 240, 0.12); }
.small-input[type="password"] { width: 96px; }
.ops { display: flex; flex-direction: row; gap: 8px; align-items: center; flex-wrap: wrap; }
.ops-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.empty-cell { text-align: center; color: var(--muted); padding: 20px 0; }
.batch-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.batch-form input[type="color"] {
  width: 52px; height: 34px; padding: 2px;
  border: 1px solid var(--border); border-radius: 8px;
  background: #fff; cursor: pointer;
}
.check-all, .post-check { cursor: pointer; accent-color: var(--primary); width: 17px; height: 17px; }
.table-scroll { overflow: visible; }   /* 表头 sticky 需相对视口滚动 */

/* 手动排序（拖拽手柄 + 数字框） */
.sort-cell { display: flex; align-items: center; gap: 6px; }
.drag-handle {
  cursor: grab; color: #9aa5bd; font-size: 19px; line-height: 1;
  user-select: none; padding: 3px 5px; border-radius: 6px;
  transition: background .15s ease, color .15s ease;
}
.drag-handle:hover { background: var(--primary-soft); color: var(--primary); }
.drag-handle:active { cursor: grabbing; }
.sort-input { width: 82px; text-align: center; }
.qe-input { width: 100%; min-width: 84px; }
.paid-content-input {
  width: 100%; min-width: 150px; min-height: 60px;
  padding: 8px 10px;
  border: 1px solid #dfe5f0; border-radius: 9px;
  font-family: Consolas, Monaco, Menlo, "Courier New", monospace;
  font-size: 14px; line-height: 1.6; color: var(--text);
  background: #fff; resize: vertical;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.paid-content-input:hover { border-color: #c3d0ea; }
.paid-content-input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 90, 240, 0.12);
}
/* 打赏内容只读预览（双击进入编辑） */
.paid-content-view {
  margin: 0; width: 100%; min-width: 150px; min-height: 60px; max-height: 160px;
  overflow: auto; padding: 8px 10px;
  border: 1px dashed #c9d2e4; border-radius: 9px;
  background: #f8faff;
  font-family: Consolas, Monaco, Menlo, "Courier New", monospace;
  font-size: 14px; line-height: 1.6; color: var(--text);
  white-space: pre-wrap; word-break: break-word;
  cursor: text;
  transition: border-color .15s ease, background .15s ease;
}
.paid-content-view:hover { border-color: var(--primary); background: var(--primary-soft); }
.data-table tbody tr[draggable="true"] { cursor: move; }
.data-table tbody tr.dragging { opacity: 0.45; background: var(--primary-soft); }

/* ==================== 自定义标题样式（首页广告中可直接使用） ==================== */
.biaoti {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  line-height: 40px;
  border-radius: 0 40px;
  background: linear-gradient(#8B4513, #fff);
  box-shadow: 0 4px 1px 0 rgba(255, 255, 0), 0 6px 20px 0 rgba(0, 0, 0, .19);
}
.colors {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  background-image: linear-gradient(to right, #02000e 90%, #000 95%, #FFFF00 100%);
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: colorChange 10s infinite;
  -webkit-animation: colorChange 10s infinite;
}
@keyframes colorChange {
  0%   { background-position-x: 0; background-position-y: 0; }
  20%  { background-position-x: 1500px; background-position-y: -233px; }
  100% { background-position-x: 0; background-position-y: 0; }
}

/* ==================== 自适应布局 ==================== */
img, video { max-width: 100%; height: auto; }
iframe { max-width: 100%; }


/* ==================== 后台管理专属样式 ==================== */
.admin-strip {
  background: linear-gradient(120deg, #1d2a5c, #2c3d82 55%, #3b4fa0);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.admin-strip .brand { color: #ffffff; }
.admin-tag {
  display: inline-block; margin-left: 10px; padding: 2px 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  color: #1d2a5c; background: #ffd66b; border-radius: 999px;
  vertical-align: middle;
}
.admin-user-name { color: rgba(255, 255, 255, 0.92); font-weight: 600; }
.admin-strip .userbox a { color: rgba(255, 255, 255, 0.9); }
.admin-strip .userbox a:hover { color: #ffffff; }
.admin-strip .coins-badge {
  background: linear-gradient(135deg, #fff3d0, #ffe7ad);
  color: #9a4a00; border: 1px solid #f0cf8a;
}
.admin-footer { color: #8a93a8; }
/* ==================== 管理员管理：增加管理员 ==================== */
.admin-add { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-add-form {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  background: linear-gradient(180deg, #fbfcff, #f4f6fd);
}
.admin-add-form h3 { margin: 0 0 14px; font-size: 16px; }

.badge-owner {
  color: #fff;
  border: 0;
  background: linear-gradient(120deg, #6d28d9, #db2777);
}

.card > h1:first-child { display: none; }
.auth-card > h1:first-child { display: block; }

/* ==================== 顶部条精简（覆盖旧样式） ==================== */
.admin-strip .logo-strip-inner { min-height: 46px; gap: 12px; }
.admin-home { color: #fff; font-weight: 700; font-size: 14px; letter-spacing: 1px; }
.admin-home:hover { color: #ffd66b; text-decoration: none; }
.admin-strip .userbox { gap: 12px; font-size: 12px; }
.admin-strip .userbox .admin-user-name,
.admin-strip .userbox .admin-coins { color: rgba(255,255,255,.82); font-weight: 500; }
.admin-strip .userbox a { font-size: 12px; }

/* ==================== 全站字体统一大小（集中覆盖·加大） ==================== */
.footer { font-size: 12px; }
.section-title { font-size: 16px; }
.card h1 { font-size: 17px; margin-bottom: 12px; }
.card h2 { font-size: 15px; }
.flash { font-size: 13px; padding: 10px 14px; }
.btn { font-size: 14px; padding: 9px 20px; }
.btn-sm { font-size: 12px; padding: 5px 12px; }
.form-row { margin-bottom: 14px; }
.form-row label { font-size: 13px; margin-bottom: 6px; }
.form-row input[type="text"], .form-row input[type="password"], .form-row input[type="number"],
.form-row select, .form-row textarea { font-size: 14px; padding: 10px 13px; }
.code-editor { font-size: 14px; }
.form-group-title { font-size: 14px; }
.range-inputs span { font-size: 12px; }
.muted { font-size: 12px; }
.post-title { font-size: 15px; }
.post-title .badge { font-size: 11px; padding: 3px 10px; }
.tip-count-inline { font-size: 11px; }
.post-meta { font-size: 12px; }
.badge { font-size: 11px; padding: 3px 10px; }
.post-detail h1 { font-size: 19px; }
.post-content { font-size: 14px; line-height: 1.7; }
.post-content pre, .post-content code { font-size: 12px; }
.paid-locked p { font-size: 14px; }
.paid-locked strong { font-size: 15px; }
.pagination { font-size: 12px; }
.empty { font-size: 14px; padding: 36px 0; }
.coin-line { font-size: 14px; }
.coin-num { font-size: 24px; }
.admin-nav a { font-size: 12px; padding: 5px 10px; }
.data-table { font-size: 14px; }
.data-table th { font-size: 12px; }
.small-input { font-size: 12px; }
.paid-content-input, .paid-content-view { font-size: 12px; }
.colors { font-size: 18px; }
.admin-add-form h3 { font-size: 14px; }

/* ==================== PC 端表格：清晰实线 ==================== */
.data-table { border: 1px solid #c2ccdd; }
.data-table th, .data-table td { border: 1px solid #c2ccdd; border-style: solid; }
.data-table th { background: #f1f5fc; }

.title-view { cursor: text; }
.title-input { width: 280px; }
/* 真实打赏账号列 */
.tippers-cell { max-width: 170px; min-width: 100px; }
.real-tippers { font-size: 11px; line-height: 1.7; word-break: break-word; color: var(--text); }

/* ===== 表格式表单（网站设置 / 发布新帖） ===== */
.form-table { width: 100%; border-collapse: collapse; }
.form-table th, .form-table td {
  border: 1px solid var(--border);
  padding: 11px 15px;
  text-align: left;
  vertical-align: middle;
}
.form-table th {
  width: 190px;
  background: var(--primary-soft);
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
.form-table .form-section td {
  background: linear-gradient(135deg, var(--primary), #6a5af9);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .5px;
}
.form-table .code-editor,
.form-table textarea { width: 100%; }
.form-table .req { color: #ef4444; }
.field-hint { color: var(--muted); font-size: 12px; margin: 6px 0 0; }
.inline-range { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inline-range input[type="number"] { width: 120px; }

/* ===== 帖子管理：标题颜色整行一致 ===== */
.data-table tr.row-colored,
.data-table tr.row-colored > td,
.data-table tr.row-colored td a,
.data-table tr.row-colored .real-tippers,
.data-table tr.row-colored .small-input,
.data-table tr.row-colored .paid-content-view,
.data-table tr.row-colored .paid-content-input { color: inherit; }

/* 行内标题颜色选择器 */
.data-table td .qe-color {
  width: 36px; height: 26px; padding: 0;
  border: 1px solid var(--border); border-radius: 6px;
  background: #fff; cursor: pointer; vertical-align: middle;
}

/* ===== 表格居中排列 ===== */
.data-table { margin: 0 auto; }
.data-table th, .data-table td { text-align: center; }
.data-table td .sort-cell,
.data-table td .ops,
.data-table td .inline-form,
.data-table td .title-wrap { justify-content: center; }
.data-table td pre.paid-content-view,
.data-table td textarea { text-align: left; }

/* ===== 表格自动缩放 ===== */
.table-scroll { width: 100%; overflow-x: auto; }
.data-table { width: 100%; table-layout: auto; min-width: 920px; }
.data-table th, .data-table td { overflow-wrap: anywhere; word-break: break-word; }
.data-table td input,
.data-table td textarea,
.data-table td select { max-width: 100%; min-width: 0; box-sizing: border-box; }
.table-scroll .data-table { min-width: 920px; }

/* ===== 帖子管理：保证中间各列可见 ===== */
.data-table td .pc-wrap { min-width: 0; }
.data-table td .paid-content-input,
.data-table td .paid-content-view { min-width: 100px; max-width: 180px; }
.data-table .small-input { min-width: 56px; width: 78px; }
.data-table .tippers-cell { max-width: 170px; }

/* ===== 发布新帖：三列一行 ===== */
.form-table .form-row-3 td { vertical-align: top; }
.form-table .form-row-3.row-main td:nth-child(1) { width: 50%; }
.form-table .form-row-3.row-main td:nth-child(2) { width: 20%; }
.form-table .form-row-3.row-main td:nth-child(3) { width: 20%; }
.form-table .form-row-3.row-sub td { width: 20%; }
.form-table .form-row-3 label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text);
}
.form-table .form-row-3 .field-hint { margin-top: 6px; }

/* ===== 发布新帖：代码编辑框美化 ===== */
.form-table .ad-editor { width: 100%; max-width: 100%; min-height: 220px; box-sizing: border-box; }
.form-table .code-editor,
.form-table textarea {
  width: 100%;
  min-height: 150px;
  padding: 12px 14px;
  font-family: Consolas, Menlo, Monaco, 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.7;
  color: #1f2733;
  background: #f7f6ff;
  border: 1px solid #d9d3f0;
  border-radius: 10px;
  resize: vertical;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  box-sizing: border-box;
}
.form-table .code-editor:focus,
.form-table textarea:focus {
  outline: none;
  border-color: #5b5cfd;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(91, 92, 253, .14);
}
.form-table .code-editor::placeholder { color: #a8a2c8; }

/* 发布新帖：内容编辑框整行标签 */
.form-table .form-cell-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text);
}

/* ===== 发布新帖：紧凑行距 ===== */
.form-table-tight th, .form-table-tight td { padding: 6px 12px; }
.form-table-tight .form-row-3 label { margin-bottom: 4px; }
.form-table-tight .field-hint { margin-top: 4px; }

/* 发布新帖：提示文字跟在输入框后面 */
.inline-range .field-hint { margin: 0; }
/* ==================== 表头固定（兜底强规则） ==================== */
.table-scroll { overflow-x: auto !important; }
.data-table thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 5 !important;
  background: #f1f5fc !important;
  box-shadow: 0 1px 0 #c2ccdd !important;
}
/* ==================== 取消顶部 Logo 条 ==================== */
.logo-strip { display: none !important; }

/* 打赏金额列内的"免费观看"勾选（与发帖机一致） */
.free-view-label { display:inline-flex; align-items:center; gap:3px; font-size:12px; color:#2f6fed; cursor:pointer; margin-left:4px; white-space:nowrap; }
.free-view-label input { width:14px; height:14px; cursor:pointer; }
.data-table tbody tr > td .free-view-label { max-height: 24px; overflow: hidden; }


/* 标题编辑输入框加大（覆盖 .data-table .small-input 窄宽，特异性更高） */
.data-table td .title-input { width: 360px; }


/* 本期资料：编辑输入框加宽（只读预览保持窄列，不撑大表格） */
.data-table td .paid-content-input { min-width: 280px; max-width: 320px; }
/* 打赏金额列：免费观看标签换行显示，腾出列宽 */
.data-table td .free-view-label { display: flex; margin-left: 0; margin-top: 6px; }
