/* ==========================================================================
   七乐彩论坛 · 样式表
   默认皮肤：福彩红 + 暖金 + 米白；后台「站点设置 → 论坛皮肤」可切换。
   ========================================================================== */

:root {
  --paper: #faf6ef;
  --paper-deep: #f2ebe0;
  --card: #ffffff;
  --ink: #22303a;
  --ink-soft: #4a5a63;
  --muted: #857c6d;
  --line: #e7ddcd;
  --line-soft: #f0e8db;
  --sea: #0f6b64;
  --sea-dark: #0a4f4a;
  --sea-wash: #e8f1ef;
  --sun: #c8722f;
  --sun-wash: #fbeee0;
  --danger: #a63a2f;
  --radius: 14px;
  --shadow: 0 10px 24px -18px rgba(34, 48, 58, .45);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: "Georgia", "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 10% -10%, #efe4d2 0%, transparent 60%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--sea-dark); text-decoration: none; }
a:hover { color: var(--sun); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .01em; margin: 0 0 .4em; }
h1 { font-size: 30px; line-height: 1.3; }
h2 { font-size: 20px; }
h3 { font-size: 17px; }

p { margin: 0 0 .8em; }

.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }

.subtle { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.inline { display: inline; }
.empty { color: var(--muted); padding: 22px; text-align: center; }
.empty-card { text-align: center; padding: 48px 24px; }

/* ---------- 顶部 ---------- */
.site-head {
  background: rgba(250, 246, 239, .9);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
}
.head-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 0;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 58px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0;
  background: transparent;
  color: inherit;
  flex: none;
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.brand-mark-qilecai {
  gap: 3px;
  border-radius: 10px;
  border: 1px solid var(--sea-dark);
  background: linear-gradient(145deg, var(--sea), var(--sea-dark));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.brand-mark-qilecai .brand-ball {
  width: 19px; height: 19px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #fff8ea;
  color: var(--sea-dark);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
}
.brand-mark-qilecai .brand-ball-special { background: var(--sun); color: #fff; }
.brand-mark-qilecai .brand-plus { color: #fff8ea; font-size: 11px; font-weight: 700; line-height: 1; }

.site-banner {
  background: var(--sea-dark);
  color: #fff3dc;
  font-size: 12px;
  letter-spacing: .04em;
}
.site-banner .wrap { padding: 5px 0; text-align: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: var(--serif); font-size: 19px; letter-spacing: .02em; }
.brand-text small { font-size: 11.5px; color: var(--muted); letter-spacing: .08em; }

.nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav a { color: var(--ink-soft); font-size: 14.5px; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--sea); }
.nav a.on { color: var(--sea); border-bottom-color: var(--sea); }
.nav a.btn, .nav a.btn:hover { color: #fff; border-bottom-color: transparent; }

.head-user { display: flex; align-items: center; gap: 12px; font-size: 13.5px; }
.user-chip { display: flex; align-items: center; gap: 7px; color: var(--ink); }
.user-chip:hover { color: var(--sea); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--sea);
  background: var(--sea);
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  transition: background .16s, transform .16s, color .16s;
}
.btn:hover { background: var(--sea-dark); border-color: var(--sea-dark); color: #fff; transform: translateY(-1px); }
.btn:disabled, .btn[disabled] { opacity: .42; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-lg { padding: 12px 26px; font-size: 15.5px; }
.btn-ghost { background: transparent; color: var(--sea-dark); }
.btn-ghost:hover { background: var(--sea-wash); color: var(--sea-dark); }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #84291f; border-color: #84291f; }
.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--ink-soft); font: inherit; font-size: 13.5px;
}
.link-btn:hover { color: var(--sea); }
.link-btn.danger:hover { color: var(--danger); }

/* ---------- 主体 ---------- */
.main { padding: 30px 0 60px; flex: 1; }

.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--sea); }
.crumbs .sep { opacity: .5; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.page-head h1 { margin-bottom: .2em; }
.page-head p { margin: 0; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.section-head h2 { margin: 0; font-size: 18px; }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  padding: 46px 42px 40px;
  margin-bottom: 34px;
  border-radius: 20px;
  overflow: hidden;
  color: #f7f2e8;
  background:
    radial-gradient(900px 380px at 88% -30%, rgba(200, 114, 47, .55), transparent 70%),
    linear-gradient(135deg, #0d5a55 0%, #0f6b64 48%, #14514c 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 22px);
  pointer-events: none;
}
.hero-text { position: relative; z-index: 1; max-width: 620px; }
.eyebrow {
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.28;
  margin-bottom: 16px;
  color: #fdfaf3;
}
.hero-sub { color: rgba(255, 255, 255, .78); max-width: 480px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero .btn { background: #f6efe2; border-color: #f6efe2; color: #0b4a46; }
.hero .btn:hover { background: #fff; border-color: #fff; color: #083c39; }
.hero .btn-ghost { background: transparent; color: #f6efe2; border-color: rgba(255, 255, 255, .45); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.hero-stats {
  position: relative; z-index: 1;
  display: flex;
  gap: 26px;
  padding-bottom: 6px;
}
.hero-stats div { text-align: right; }
.hero-stats strong { display: block; font-family: var(--serif); font-size: 30px; line-height: 1.1; color: #fff; }
.hero-stats span { font-size: 12px; color: rgba(255, 255, 255, .65); letter-spacing: .06em; }

.lottery-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.lottery-note { padding: 20px 22px; }
.lottery-note h2 { font-size: 17px; margin: 2px 0 8px; }
.lottery-note p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.75; }
.lottery-note ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 14px; line-height: 1.8; }
.lottery-note li { margin: 2px 0; }
.lottery-kicker {
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--sea);
  font-weight: 700;
}

/* ---------- 首页网格 ---------- */
.index-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.board-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.guide-wide { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 22px; padding: 20px 24px; }
.guide-wide h2 { font-size: 17px; margin: 0 0 6px; }
.guide-wide p { margin: 0; }
@media (max-width: 900px) {
  .board-cards { grid-template-columns: 1fr; }
  .guide-wide { flex-direction: column; align-items: flex-start; gap: 8px; }
  .lottery-notes { grid-template-columns: 1fr; }
}
.board-card { padding: 18px 20px; transition: border-color .16s, transform .16s; }
.board-card:hover { border-color: #d6c9b3; transform: translateY(-1px); }
.board-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.board-name { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.board-desc { margin: 6px 0 8px; color: var(--ink-soft); font-size: 14px; }
.board-last { font-size: 13px; margin: 0; }

.side { display: grid; gap: 18px; position: sticky; top: 88px; }
.side-card h2 { font-size: 17px; }
.latest-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.latest-list li { padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.latest-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.latest-main { font-size: 14.5px; line-height: 1.5; display: flex; flex-wrap: wrap; gap: 6px; }
.latest-meta { display: flex; align-items: center; gap: 5px; font-size: 12px; margin-top: 5px; flex-wrap: wrap; }
.guide-card p { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- 头像 / 标签 ---------- */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--av, var(--sea));
  color: #fff;
  font-family: var(--serif);
  flex: none;
  overflow: hidden;
  object-fit: cover;
  border: 1px solid rgba(20, 45, 45, .1);
  box-shadow: 0 1px 2px rgba(20, 45, 45, .06);
}
.avatar-field > span { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }
.avatar-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 0;
}
.avatar-choice {
  position: relative;
  display: block;
  cursor: pointer;
  border-radius: 50%;
  padding: 3px;
  border: 2px solid transparent;
  transition: border-color .15s ease, background .15s ease;
}
.avatar-choice img {
  width: 100%; height: auto; aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: block;
}
.avatar-choice input {
  position: absolute; opacity: 0; width: 0; height: 0;
  pointer-events: none;
}
.avatar-choice:hover { border-color: var(--line); }
.avatar-choice.on { border-color: var(--sea); background: var(--sea-wash); }
@media (max-width: 640px) {
  .avatar-options { gap: 6px; }
}
.badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 11.5px;
  line-height: 1.6;
  background: var(--paper-deep);
  color: var(--ink-soft);
  vertical-align: 1px;
  margin-right: 3px;
  text-indent: 0;
}
.badge-pin { background: var(--sun-wash); color: #9a531d; }
.badge-pin-1 { background: #fdf1da; color: #9a531d; }
.badge-pin-2 { background: #fbe2b7; color: #8a4612; }
.badge-pin-3 { background: #f5c78b; color: #6d3508; }
.badge-top { background: #fdf1da; color: #9a531d; }
.badge-top-2 { background: #fbe2b7; color: #8a4612; }
.badge-top-3 { background: #f5c78b; color: #6d3508; }
.badge-lock { background: #eef0f2; color: #5b6670; }
.topic-new, .topic-old, .topic-sticky { height: 18px; width: auto; margin-right: 4px; vertical-align: -3px; display: inline-block; border-radius: 2px; }
/* 前台不再显示置顶图标和置顶级别文字 */
.bbs-head .topic-sticky,
.topic-title .topic-sticky,
.topic-head-main .topic-sticky,
.bbs-head .badge-pin,
.topic-title .badge-pin,
.topic-head-main .badge-pin { display: none !important; }
.badge-admin { background: var(--sea-wash); color: var(--sea-dark); }
.badge-expert { background: #f7ecd6; color: #86560f; }
.badge-danger { background: #fbe9e6; color: var(--danger); }
.badge-ok { background: #e9f2e9; color: #3f6b45; }
.uname { font-weight: 600; }
.title-hl { font-weight: 700; }

/* ---------- 帖子水印 ---------- */
.post-body { position: relative; overflow: hidden; }
.post-wm {
  position: absolute;
  inset: -4px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  place-items: center;
  transform: rotate(-16deg) scale(1.02);
  opacity: .1;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  z-index: 0;
}
.post-wm span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ink);
  white-space: nowrap;
}
.post-content { position: relative; z-index: 1; }
.wm-preview { position: relative; padding: 14px 18px; min-height: 120px; overflow: hidden; border-radius: 12px; background: var(--paper); }
.wm-preview p { position: relative; z-index: 1; margin: 0 0 10px; }

/* ---------- 广告位 ---------- */
.ad-slot { display: block; overflow-wrap: anywhere; }
.ad-slot img, .ad-slot iframe, .ad-slot video { max-width: 100%; }
.ad-slot-board {
  margin: 0 0 16px;
  padding: 12px 16px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.ad-slot-board img { display: inline-block; border-radius: 8px; }
.ad-slot-user {
  margin: 7px 0 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--sea);
}
.ad-slot-user a { color: var(--sea); text-decoration: none; border-bottom: 1px dotted var(--sea); }
.ad-slot-user img { border-radius: 6px; }
.ad-slot-post {
  margin: 14px 0 0;
  padding: 12px 14px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.ad-slot-post img { display: inline-block; border-radius: 8px; }
.ad-board-item { padding: 14px 0; border-top: 1px dashed var(--line); }
.ad-board-item:first-of-type { border-top: 0; padding-top: 4px; }
.ad-board-item label { display: block; font-size: 13.5px; color: var(--ink-soft); }
.ad-board-item label > textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  min-height: 76px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
}
.lock-duration-inputs { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.lock-duration-inputs input { width: 62px; padding: 6px 8px; font-size: 13.5px; }
.clear-topic-select { display: block; width: 100%; max-width: 560px; margin-top: 7px; }
.ad-board-item .date-input { display: block; margin-top: 7px; width: 230px; max-width: 100%; }

/* ---------- 话题列表 ---------- */
.list-meta { font-size: 13px; margin: 0 0 12px; }
.board-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.board-switch a {
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--paper);
}
.board-switch a:hover { border-color: var(--sea); color: var(--sea-dark); }
.board-switch a.on { background: var(--sea); border-color: var(--sea); color: #fff; }
.list-card { padding: 6px 0; }
.topic-list { list-style: none; margin: 0; padding: 0; }
.topic-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 62px 82px;
  gap: 14px;
  align-items: center;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line-soft);
}
.topic-row:last-child { border-bottom: 0; }
.topic-row:hover { background: var(--paper); }
.topic-title { font-size: 15.5px; line-height: 1.45; margin-bottom: 3px; }
.topic-title a { color: var(--ink); font-weight: 600; }
.topic-title a:hover { color: var(--sea); }
.topic-meta { font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 2px; }
.topic-nums { text-align: center; line-height: 1.2; }
.topic-nums strong { display: block; font-family: var(--serif); font-size: 18px; color: var(--sea-dark); }
.topic-nums span { font-size: 11px; color: var(--muted); }
.topic-last { font-size: 12px; text-align: right; }
.topic-avatar { display: block; }

/* ---------- 版块页：话题 + 缩进回复 ---------- */
.bbs-card { padding: 0; overflow: hidden; }
.bbs-list { list-style: none; margin: 0; padding: 0; }
.bbs-item { padding: 15px 22px; border-bottom: 1px solid var(--line-soft); }
.bbs-item:last-child { border-bottom: 0; }
.bbs-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.bbs-title { font-size: 15.5px; font-weight: 600; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.bbs-title:hover { color: var(--sea); }
.bbs-by { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.bbs-by a { color: var(--sea-dark); }
.bbs-by a:hover { text-decoration: underline; }
.bbs-time, .bbs-stat { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.bbs-region { font-size: 12px; color: var(--muted); white-space: nowrap; margin-left: 6px; }
.bbs-replies { list-style: none; margin: 9px 0 0; padding: 0 0 0 20px; border-left: 2px dotted var(--line); }
.bbs-reply {
  padding: 2px 0 2px 2.4em; text-indent: -2.4em;
  font-size: 13.5px; line-height: 1.75; color: var(--ink-soft);
  overflow-wrap: anywhere;
}
.bbs-prefix { color: var(--sea); }
.bbs-reply-text { overflow-wrap: anywhere; }
.bbs-more {
  margin: 9px 0 0 20px; padding: 2px 0;
  background: none; border: 0; color: var(--sea); font-size: 12.5px;
  font-family: inherit; cursor: pointer;
}
.bbs-more:hover { text-decoration: underline; }
.bbs-more-note { margin: 6px 0 0 20px; font-size: 12.5px; color: var(--muted); }
.bbs-more-note a { color: var(--sea); }

/* ---------- 话题详情 ---------- */
.topic-head { display: flex; gap: 18px; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; padding: 26px 26px 24px; }
.topic-head h1 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 8px; }
.topic-sub { font-size: 13px; }
.topic-head-actions { flex: none; }

.post-block {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 26px;
  margin-bottom: 14px;
  overflow: hidden;
}
.first-post { border-left: 3px solid var(--sea); }
.post-author { border-right: 1px dashed var(--line); padding-right: 18px; display: flex; flex-direction: column; gap: 4px; }
.post-author-name { margin-top: 8px; font-size: 14px; }
.post-history { font-size: 12px; line-height: 1.5; }
.post-history a { color: var(--sea-dark, #0b5750); }
.post-history a:hover { text-decoration: underline; }
.history-page { padding: 22px 24px; }
.history-head h1 { margin: 0 0 6px; font-size: 20px; }
.history-head p { margin: 0 0 14px; }
.history-list { list-style: none; margin: 0; padding: 0; }
.history-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line-soft, var(--line));
}
.history-item:last-child { border-bottom: 0; }
.history-title { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.history-title:hover { color: var(--sea); }
.history-meta { color: var(--muted); font-size: 12px; white-space: nowrap; }
@media (max-width: 640px) {
  .history-item { flex-direction: column; align-items: flex-start; gap: 4px; }
}
.post-points { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.rank-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--sea-wash);
  color: var(--sea-dark, #0b5750);
  font-size: 12px;
  border: 1px solid var(--line);
  white-space: nowrap;
}
.post-pts { font-size: 12px; color: var(--ink-soft); }
.post-body { min-width: 0; }
.post-content {
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--ink);
  word-break: break-word;
  overflow-wrap: anywhere;
}
.post-content p { margin: 0 0 .8em; }
.post-foot {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  font-size: 12.5px; margin-top: 18px; padding-top: 12px; border-top: 1px dashed var(--line);
}
.post-foot a { color: var(--muted); }
.post-foot a:hover { color: var(--sun); }
.post-follow-form { margin: 0; display: inline-flex; }
.post-follow-btn { white-space: nowrap; }
.post-foot a.post-follow-btn { color: var(--sea-dark); }
.post-foot a.post-follow-btn:hover { color: var(--sea-dark); }

/* 出售帖：锁住的正文、作者收益提示、列表价格标签 */
.badge-sale { background: #fdf3dc; color: #8a5a12; }
.sale-line { color: #9a531d; }
.sale-line.muted { color: var(--muted); }
.sale-lock {
  border: 1px dashed #e2cfae;
  background: #fbf7ee;
  border-radius: 10px;
  padding: 22px 20px;
  text-align: center;
}
.sale-lock-title {
  font-family: var(--serif);
  font-size: 17px;
  margin: 0 0 6px;
  color: #8a5a12;
}
.sale-lock .btn { margin-top: 6px; }
.sale-contact-ad {
  max-width: 560px;
  margin: 10px auto 10px;
  padding: 8px 13px;
  border: 1px dashed #e2cfae;
  border-radius: 8px;
  background: #fff4df;
  color: #7a4c12;
  font-size: 13px;
  line-height: 1.7;
  word-break: break-word;
}
.sale-contact-ad a { color: #b5121b; font-weight: 600; }
.sale-preview {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #e2cfae;
}
.sale-preview-tip {
  margin: -4px 0 12px;
  text-align: center;
}
.sale-note {
  margin-top: 16px;
  padding: 9px 13px;
  border-left: 3px solid #d9a75c;
  background: var(--sun-wash);
  font-size: 13px;
  color: #6b4a1f;
  line-height: 1.7;
}
.buyers {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
}
.buyers summary { cursor: pointer; color: var(--sea-dark); font-weight: 600; }
.buyers summary:hover { color: var(--sun); }
.buyers ul { margin: 8px 0 0; padding-left: 18px; }
.buyers li { margin: 5px 0; line-height: 1.6; }
.buyers li a { color: var(--ink); }
.buyers li a:hover { color: var(--sun); }
.buyers li .small { margin-left: 8px; }

.wallet-card { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; padding: 16px 20px; margin-bottom: 18px; }
.wallet-card p { margin: 0; flex: 1 1 220px; }
.wallet-nums { display: flex; gap: 26px; }
.wallet-nums strong { font-family: var(--serif); font-size: 20px; display: block; line-height: 1.2; }
.wallet-nums span { font-size: 12px; color: var(--muted); }
.coin-input { width: 86px; }
.table-wide { min-width: 860px; }
.move-form select { max-width: 132px; }
.coin-delta { font-weight: 700; white-space: nowrap; }
.coin-delta.plus { color: #1f7a55; }
.coin-delta.minus { color: #b23b2e; }
.ip-cell { white-space: nowrap; font-size: 12px; line-height: 1.65; color: #4d4a43; }
.ip-cell span { display: block; }
.ip-cell .ip-label { color: var(--muted); margin-right: 5px; }
.table-wide th { white-space: nowrap; }
.table-wide td:nth-child(1), .table-wide td:nth-child(4), .table-wide td:nth-child(5),
.table-wide td:nth-child(7), .table-wide td:nth-child(8) { white-space: nowrap; }
.table-wide td:nth-child(3) { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mod-bar { display: flex; align-items: center; gap: 12px; padding: 12px 20px; margin-bottom: 20px; flex-wrap: wrap; }
.replies-head { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 12px; }
.replies-head h2 { font-size: 17px; margin: 0; }

.reply-box { margin-top: 26px; }
.reply-box textarea,
.form-card textarea,
.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="password"],
.form-card input[type="search"],
.form-card input[type="number"],
.form-card select {
  width: 100%;
}
.form-card input[type="number"] { max-width: 160px; }
textarea, input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"], select {
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--ink);
  background: #fdfbf7;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 13px;
  line-height: 1.7;
  transition: border-color .15s, box-shadow .15s;
  max-width: 100%;
}
textarea { resize: vertical; min-height: 90px; }
textarea:focus, input:focus, select:focus {
  outline: none;
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(15, 107, 100, .12);
  background: #fff;
}
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; flex-wrap: wrap; }

/* ---------- 表单页 ---------- */
.form-card { padding: 28px; }
.form-card h1 { font-size: 25px; }
.form-card h2 { font-size: 19px; }
.form-card label { display: block; margin-bottom: 16px; font-size: 14px; color: var(--ink-soft); }
.form-card label > input,
.form-card label > textarea,
.form-card label > select { margin-top: 7px; }
.form-card .form-foot { margin-top: 20px; }
#bulk-register textarea { min-height: 160px; font-family: ui-monospace, Consolas, monospace; }
.form-card .bulk-date-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.form-card .bulk-date-row label { flex: 1 1 190px; margin-bottom: 0; }
.board-fixed {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 16px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8f4ec;
  font-size: 14px;
}
.board-fixed strong { color: var(--sea-dark); font-family: var(--serif); font-size: 16px; }
.board-fixed .small { color: var(--muted); }
.board-fixed > a { margin-left: auto; color: var(--sea-dark); }
.board-fixed > a:hover { color: var(--sun); }
.check-line { display: flex !important; align-items: center; gap: 8px; font-size: 13.5px; }
.check-line input { width: auto; margin: 0; }
.captcha-q { color: var(--sea-dark); font-family: var(--serif); font-size: 16px; }

.auth-wrap { max-width: 520px; margin: 0 auto; }

/* ---------- 提示 ---------- */
.alerts { margin-bottom: 18px; display: grid; gap: 8px; }
.alert {
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 14px;
  border: 1px solid var(--line);
  background: var(--paper-deep);
  color: var(--ink);
}
.alert p { margin: 0; }
.alert p + p { margin-top: 4px; }
.alert-success { background: #eaf2ea; border-color: #cfe0cf; color: #3a5f3f; }
.alert-warning { background: #fbf1e2; border-color: #ecd6b8; color: #8a531d; }
.alert-danger { background: #fbeae7; border-color: #eccbc6; color: var(--danger); }
.alert-info { background: var(--sea-wash); border-color: #c9dedb; color: var(--sea-dark); }

/* ---------- 分页 ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 26px 0 6px; flex-wrap: wrap; }
.pager .pg {
  min-width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-size: 13.5px;
}
.pager .pg:hover { border-color: var(--sea); color: var(--sea); }
.pager .pg.current { background: var(--sea); border-color: var(--sea); color: #fff; }
.pager .pg.muted { border-color: transparent; background: transparent; }
.pager-jump { display: inline-flex; align-items: center; gap: 5px; margin-left: 2px; }
.pager-jump-label { font-size: 12.5px; color: var(--muted); }
.pager-jump input[type="number"] {
  width: 58px; height: 34px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  text-align: center;
}
.pager-jump input[type="number"]:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 2px var(--sea-wash); }
.pager-jump button {
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--sea);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
}
.pager-jump button:hover { border-color: var(--sea); background: var(--sea-wash); }

/* ---------- 用户主页 / 设置 ---------- */
.profile-card { display: flex; gap: 24px; align-items: flex-start; padding: 28px; margin-bottom: 30px; flex-wrap: wrap; }
.profile-main { flex: 1; min-width: 220px; }
.profile-main h1 { font-size: 26px; margin-bottom: .25em; }
.profile-stats { display: flex; flex-wrap: wrap; gap: 22px 26px; margin-top: 14px; }
.profile-stats strong { font-family: var(--serif); font-size: 22px; display: block; line-height: 1.1; }
.profile-stats span { font-size: 12px; color: var(--muted); }
.profile-stats a { color: inherit; }
.profile-stats a:hover strong { color: var(--sea); }
.profile-section { margin-top: 30px; }
.profile-actions { flex: none; }
.follow-head-name { color: var(--ink); }
.follow-head-name:hover { color: var(--sea); }

/* ---------- 关注 / 粉丝 ---------- */
.follow-form { margin: 0; display: inline-flex; }
.follow-list { padding: 6px 20px; }
.follow-items { list-style: none; margin: 0; padding: 0; }
.follow-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.follow-item:last-child { border-bottom: 0; }
.follow-person { display: flex; align-items: center; gap: 12px; min-width: 180px; color: var(--ink); }
.follow-person:hover { color: var(--sea); }
.follow-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 15px; }
.follow-meta { color: var(--muted); font-size: 12px; }
.follow-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.color-field { margin-bottom: 8px; font-size: 14px; color: var(--ink-soft); }
.color-options { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.color-dot { position: relative; width: 30px; height: 30px; margin: 0 !important; cursor: pointer; }
.color-dot input { position: absolute; opacity: 0; inset: 0; }
.color-dot span {
  display: block; width: 30px; height: 30px; border-radius: 50%;
  background: var(--dot);
  border: 2px solid transparent;
  box-shadow: 0 0 0 1px var(--line);
}
.color-dot input:checked + span { border-color: #fff; box-shadow: 0 0 0 2px var(--sea); }
.color-dot input:focus-visible + span { box-shadow: 0 0 0 2px var(--sea); }

.reply-list { list-style: none; margin: 0; padding: 8px 22px; }
.reply-list li { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.reply-list li:last-child { border-bottom: 0; }
.reply-excerpt { margin: 0 0 4px; font-size: 14.5px; }
.reply-list p { margin: 0; }

/* ---------- 搜索 ---------- */
.search-bar { display: flex; gap: 10px; padding: 14px; margin-bottom: 20px; align-items: flex-start; }
.search-field { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.search-field input[type="search"] { width: 100%; }
.search-scope { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; user-select: none; }
.search-scope input[type="checkbox"] { width: auto; flex: none; margin: 0; }
.search-bar input { flex: 1; }
.search-inline { display: flex; gap: 8px; }

/* ---------- 页脚 ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--paper-deep); padding: 26px 0; margin-top: auto; }
.foot-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-end; }
.foot-inner p { margin: 4px 0 0; font-size: 13px; }
.foot-note { text-align: right; }
strong { font-weight: 600; }

/* ---------- 后台 ---------- */
.admin-bar {
  display: flex; align-items: center; gap: 16px;
  background: #123c3a;
  color: #e8f1ef;
  border-radius: 12px;
  padding: 10px 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.admin-tag { font-size: 12px; letter-spacing: .12em; color: #a9c6c1; }
.admin-bar nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.admin-bar nav a { color: #d9e8e5; font-size: 13.5px; }
.admin-bar nav a.on { color: #fff; border-bottom: 1px solid #8fc0b8; }
.admin-bar nav a:hover { color: #fff; }
.admin-back { margin-left: auto; opacity: .75; }

.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { text-align: center; padding: 18px 12px; }
.stat strong { display: block; font-family: var(--serif); font-size: 28px; color: var(--sea-dark); line-height: 1.2; }
.stat span { font-size: 12.5px; color: var(--muted); }

.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.admin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.admin-list li { display: flex; flex-direction: column; gap: 2px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); font-size: 14px; }
.admin-list li:last-child { border-bottom: 0; padding-bottom: 0; }

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table th { text-align: left; font-weight: 600; color: var(--ink-soft); padding: 8px 8px; border-bottom: 1px solid var(--line); font-size: 12.5px; white-space: nowrap; }
.table td { padding: 8px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table td input[type="text"] { padding: 5px 9px; font-size: 13px; border-radius: 7px; }
.name-with-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.name-actions { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.name-actions .link-btn { font-size: 12.5px; }
.table td .btn { margin-right: 4px; }
.bulk-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 20px; margin-bottom: 16px; }
.bulk-bar strong { font-size: 14px; }
.bulk-count { font-size: 12.5px; font-weight: 600; color: var(--sea); background: var(--sea-wash); padding: 3px 10px; border-radius: 999px; }
.check-col { width: 30px; }
.check-col input { width: 15px; height: 15px; cursor: pointer; }
.color-select { padding: 4px 6px; font-size: 12.5px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.sticky-select { max-width: 110px; }
.date-input { padding: 7px 10px; font-size: 13.5px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.check-line { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 4px 0 14px; }
.check-line input { width: 16px; height: 16px; }
.actions-cell form { display: flex; gap: 4px; flex-wrap: wrap; }
.hidden-forms { display: none; }

.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; margin-bottom: 16px; flex-wrap: wrap; }
.inline-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.inline-form label { font-size: 13px; color: var(--ink-soft); }
.inline-form input, .inline-form select { padding: 7px 10px; font-size: 13.5px; }
.inline-form .grow { flex: 1; min-width: 180px; }
.inline-form .grow input { width: 100%; }

.report-list { list-style: none; margin: 0; padding: 0; }
.report-list li { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.report-list li:last-child { border-bottom: 0; }
.report-preview { background: var(--paper); border: 1px dashed var(--line); border-radius: 10px; padding: 14px; margin-bottom: 18px; }
.report-preview h3 { margin: 6px 0; }

/* ---------- 安装 ---------- */
.install-body { background: var(--paper); display: block; }
.install-shell { width: min(680px, 100% - 32px); margin: 40px auto 60px; display: grid; gap: 18px; }
.install-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: var(--shadow); }
.install-card h1 { font-size: 26px; }
.install-card h2 { font-size: 17px; margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line); }
.install-card h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 18px; }
.install-form label { display: block; margin-bottom: 14px; font-size: 13.5px; color: var(--ink-soft); }
.install-form label input, .install-form label select { width: 100%; margin-top: 6px; }
.install-list { padding-left: 20px; color: var(--ink-soft); font-size: 14px; }
.install-actions { display: flex; gap: 10px; margin-top: 20px; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; width: 100%; }
.field-group { padding: 4px 0 0; }

/* ---------- 后台皮肤选择 ---------- */
.form-card .theme-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  margin: 0 0 10px;
}
.form-card .theme-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  margin-bottom: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
}
.form-card .theme-choice input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  flex: none;
}
.theme-choice .theme-swatch {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(0, 0, 0, .08);
  flex: none;
}
.theme-choice strong { display: block; font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.theme-choice small { display: block; font-size: 11.5px; line-height: 1.55; color: var(--muted); }

/* ---------- 响应式 ---------- */
/* 长串网址 / 英文长词不撑破容器 */
img, video { max-width: 100%; height: auto; }
.post-content, .topic-title, .board-last, .latest-main, .topic-meta, .report-preview { overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .index-grid { grid-template-columns: 1fr; }
  .side { position: static; }
  .hero { flex-direction: column; align-items: flex-start; padding: 34px 26px; gap: 26px; }
  .hero-stats { gap: 22px; }
  .hero-stats div { text-align: left; }
  .settings-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { gap: 14px; }
  .topic-row { grid-template-columns: 36px minmax(0, 1fr) 56px; }
  .topic-last { display: none; }
}

@media (max-width: 620px) {
  .wrap { width: calc(100% - 28px); }
  .head-inner { gap: 10px 12px; padding: 10px 0; }
  .brand-mark { width: 46px; height: 32px; }
  .brand-text strong { font-size: 17px; }
  .nav { width: 100%; order: 3; margin-left: 0; justify-content: flex-start; gap: 14px; }
  .nav a.btn { margin-left: auto; }
  .head-user { margin-left: auto; gap: 8px; font-size: 13px; }
  .user-chip span { display: none; }
  .main { padding: 20px 0 44px; }

  .hero { padding: 26px 22px 24px; border-radius: 16px; margin-bottom: 24px; gap: 20px; }
  .hero h1 { font-size: 26px; }
  .hero-sub { font-size: 14px; }
  .hero-stats strong { font-size: 24px; }
  .hero-actions .btn { flex: 1 1 0; }

  .card { padding: 18px; }
  .page-head { gap: 12px; }
  .page-head h1 { font-size: 24px; }
  .board-card { padding: 16px; }
  .guide-wide { padding: 18px; }

  .list-card { padding: 4px 0; }
  .bbs-item { padding: 12px 14px; }
  .bbs-title { font-size: 15px; }
  .bbs-replies { padding-left: 12px; }
  .bbs-more, .bbs-more-note { margin-left: 12px; }
  .topic-row { grid-template-columns: 34px minmax(0, 1fr) 46px; gap: 10px; padding: 13px 14px; }
  .topic-title { margin-bottom: 5px; }
  .topic-meta { font-size: 12px; line-height: 1.6; }
  .topic-nums strong { font-size: 16px; }
  .topic-nums span { font-size: 10.5px; }

  .topic-head { padding: 18px; flex-direction: column; gap: 12px; }
  .topic-head h1 { font-size: 22px; line-height: 1.45; }
  .post-block { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
  .post-author { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 12px; border-right: 0; border-bottom: 1px dashed var(--line); padding: 0 0 10px; }
  .post-author-name { margin-top: 0; }
  .ad-slot-board { padding: 10px 12px; margin-bottom: 12px; }
  .ad-slot-post { padding: 10px; margin-top: 12px; }

  .profile-card { padding: 18px; }
  .profile-stats { gap: 18px; }
  .form-card { padding: 18px; }
  .foot-note { text-align: left; }
  .install-shell { margin: 20px auto 40px; }
  .install-card { padding: 20px; border-radius: 14px; }

  /* 手机端输入框用 16px，避免 iOS 聚焦时自动放大页面 */
  textarea, input[type="text"], input[type="email"], input[type="password"], input[type="search"], select { font-size: 16px; }

  .table { display: table; width: 100%; min-width: 880px; }
  .table th, .table td { white-space: nowrap; }
  .admin-bar { padding: 10px 14px; gap: 10px; }
  .admin-tag { display: none; }
  .admin-bar nav { gap: 12px; }
}

@media (max-width: 420px) {
  .brand-text small { display: none; }
  .hero h1 { font-size: 23px; }
  .hero-stats { gap: 16px; }
  .avatar-options { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .profile-stats { gap: 14px; }
}

/* ==========================================================================
   论坛皮肤
   只覆盖配色变量、页面底色和少量圆角/边框质感；页面结构与功能不变。
   ========================================================================== */

body[data-theme="qilecai"] {
  --paper: #fff9f2;
  --paper-deep: #f8e8e0;
  --card: #fffdf8;
  --ink: #2b1c1c;
  --ink-soft: #5b4141;
  --muted: #8a7067;
  --line: #ecd2c8;
  --line-soft: #f7e4dc;
  --sea: #c8102e;
  --sea-dark: #8f0d20;
  --sea-wash: #fbe5e9;
  --sun: #c9963c;
  --sun-wash: #faf0d8;
  --danger: #9f1c2b;
  --radius: 10px;
  --shadow: 0 12px 28px -22px rgba(120, 20, 30, .45);
  background:
    radial-gradient(1100px 520px at 8% -10%, #f8ded1 0%, transparent 62%),
    radial-gradient(900px 420px at 96% -6%, rgba(201, 150, 60, .14) 0%, transparent 65%),
    var(--paper);
}
body[data-theme="qilecai"] .site-head {
  background: rgba(255, 249, 242, .95);
  border-bottom: 2px solid var(--sea);
}
body[data-theme="qilecai"] .site-banner { background: #8f0d20; color: #ffe9c4; }
body[data-theme="qilecai"] .brand-text strong { color: var(--sea-dark); }
body[data-theme="qilecai"] h1,
body[data-theme="qilecai"] h2,
body[data-theme="qilecai"] h3 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: .01em;
}
body[data-theme="qilecai"] .hero {
  background:
    radial-gradient(900px 380px at 90% -30%, rgba(255, 210, 120, .28), transparent 68%),
    linear-gradient(135deg, #8f0d20 0%, #c8102e 52%, #8f0d20 100%);
  color: #fff8ea;
}
body[data-theme="qilecai"] .hero h1 { color: #fff8ea; font-family: var(--sans); font-weight: 800; }
body[data-theme="qilecai"] .hero .btn {
  background: #fff4dd;
  border-color: #fff4dd;
  color: #8f0d20;
}
body[data-theme="qilecai"] .hero .btn:hover { background: #fff; border-color: #fff; color: #7d0b1c; }
body[data-theme="qilecai"] .hero .btn-ghost {
  background: transparent;
  color: #fff4dd;
  border-color: rgba(255, 244, 221, .48);
}
body[data-theme="qilecai"] .hero .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
body[data-theme="qilecai"] .hero-stats strong { color: #ffe4a8; font-family: var(--sans); }
body[data-theme="qilecai"] .btn,
body[data-theme="qilecai"] .board-switch a,
body[data-theme="qilecai"] .pager .pg { border-radius: 8px; }
body[data-theme="qilecai"] .badge { border-radius: 4px; }
body[data-theme="qilecai"] .topic-nums strong,
body[data-theme="qilecai"] .bbs-time,
body[data-theme="qilecai"] .bbs-stat,
body[data-theme="qilecai"] .profile-stats strong,
body[data-theme="qilecai"] .hero-stats strong { font-variant-numeric: tabular-nums; }

body[data-theme="sunset"] {
  --paper: #fdf4e8;
  --paper-deep: #f6e7d4;
  --card: #fffdf8;
  --ink: #392a22;
  --ink-soft: #5c4539;
  --muted: #8b7460;
  --line: #ecd8bf;
  --line-soft: #f7ead9;
  --sea: #b6532b;
  --sea-dark: #8f3c1c;
  --sea-wash: #fbe8dc;
  --sun: #2f7a72;
  --sun-wash: #e5f2ef;
  --danger: #a63a2f;
  --radius: 16px;
  --shadow: 0 10px 24px -18px rgba(90, 55, 30, .38);
  background:
    radial-gradient(1100px 520px at 10% -12%, #f6dcb8 0%, transparent 62%),
    radial-gradient(900px 420px at 92% -8%, rgba(214, 126, 80, .16) 0%, transparent 65%),
    var(--paper);
}
body[data-theme="sunset"] .site-head { background: rgba(253, 244, 232, .93); }
body[data-theme="sunset"] .brand-mark { border-radius: 8px; }
body[data-theme="sunset"] .first-post { border-left-color: var(--sun); }

body[data-theme="forest"] {
  --paper: #f3f4ec;
  --paper-deep: #e4e8d8;
  --card: #fcfdf8;
  --ink: #23302a;
  --ink-soft: #47584d;
  --muted: #788475;
  --line: #d5ddc7;
  --line-soft: #e7ecdf;
  --sea: #2f5d46;
  --sea-dark: #1f4230;
  --sea-wash: #e2ebdf;
  --sun: #a06a3a;
  --sun-wash: #f3e8da;
  --danger: #9c3b31;
  --radius: 9px;
  --shadow: 0 10px 24px -18px rgba(35, 48, 42, .42);
  background:
    radial-gradient(1000px 500px at 8% -10%, #dfe5d1 0%, transparent 62%),
    radial-gradient(900px 400px at 100% 0%, rgba(160, 106, 58, .10) 0%, transparent 62%),
    var(--paper);
}
body[data-theme="forest"] .site-head { background: rgba(243, 244, 236, .94); }
body[data-theme="forest"] .brand-mark { border-radius: 9px; }

body[data-theme="salt"] {
  --paper: #f2f7fa;
  --paper-deep: #e3edf4;
  --card: #ffffff;
  --ink: #1f2d3a;
  --ink-soft: #465b6b;
  --muted: #74879a;
  --line: #d4e1eb;
  --line-soft: #e5eef5;
  --sea: #1f5f8b;
  --sea-dark: #154768;
  --sea-wash: #e1edf6;
  --sun: #d07a3c;
  --sun-wash: #fbeadd;
  --danger: #a63a2f;
  --radius: 18px;
  --shadow: 0 10px 24px -18px rgba(31, 95, 139, .34);
  background:
    radial-gradient(1100px 520px at 10% -10%, #d9e9f4 0%, transparent 62%),
    radial-gradient(800px 400px at 96% -5%, rgba(31, 95, 139, .10) 0%, transparent 65%),
    var(--paper);
}
body[data-theme="salt"] .site-head { background: rgba(242, 247, 250, .93); }
body[data-theme="salt"] .brand-mark { border-radius: 10px; }

body[data-theme="mono"] {
  --paper: #f4f1e9;
  --paper-deep: #e8e3d6;
  --card: #fffefb;
  --ink: #1b1b1b;
  --ink-soft: #444444;
  --muted: #6e6a62;
  --line: #d2ccbd;
  --line-soft: #e9e4d8;
  --sea: #1b1b1b;
  --sea-dark: #000000;
  --sea-wash: #ece8de;
  --sun: #a33a2b;
  --sun-wash: #f3e2de;
  --danger: #8f2b1f;
  --radius: 3px;
  --shadow: none;
  background: linear-gradient(180deg, #f8f5ee 0%, var(--paper) 38%, #efeade 100%);
}
body[data-theme="mono"] .site-head {
  background: rgba(250, 248, 242, .96);
  border-bottom: 2px solid var(--ink);
}
body[data-theme="mono"] .brand-mark { border-radius: 2px; }
body[data-theme="mono"] .card { border-color: #bdb7a8; }
body[data-theme="mono"] .btn,
body[data-theme="mono"] .board-switch a,
body[data-theme="mono"] .pager .pg { border-radius: 2px; }
body[data-theme="mono"] h1,
body[data-theme="mono"] h2,
body[data-theme="mono"] h3 { letter-spacing: 0; }

/* ---------- 板块1 上榜高手 ---------- */
.expert-board {
  margin: 0 0 18px;
  background: #fffdf8;
  border: 1px solid #e3c9a7;
  border-top: 4px solid #c8102e;
  border-radius: var(--radius);
  box-shadow: 0 12px 24px -22px rgba(90, 26, 18, .55);
  overflow: hidden;
}

.expert-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 20px 14px;
  background:
    linear-gradient(120deg, #fff9ee 0%, #fffdf8 55%, #fdf0df 100%);
  border-bottom: 1px solid #f0dfc8;
  flex-wrap: wrap;
}

.expert-board-kicker {
  display: inline-block;
  margin-bottom: 2px;
  color: #c8102e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
}

.expert-board-title h2 {
  margin: 0 0 3px;
  font-size: 21px;
  color: #7f1d1d;
}

.expert-board-title p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}

.expert-board-count {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid #ecd9bf;
  border-radius: 999px;
  color: #7f1d1d;
  white-space: nowrap;
}

.expert-board-count strong {
  font-size: 23px;
  line-height: 1;
  color: #c8102e;
  font-family: var(--sans);
}

.expert-board-count span { font-size: 12px; color: var(--muted); }

/* 板块1 紧凑高手榜：只保留标题和总人数 */
.expert-board-compact {
  margin: 0 0 12px;
  border-top: 1px solid #e3c9a7;
  box-shadow: none;
}
.expert-board-compact .expert-board-head {
  padding: 9px 15px;
  gap: 12px;
  border-bottom: 0;
  flex-wrap: nowrap;
}
.expert-board-compact .expert-board-title h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}
.expert-board-compact .expert-board-count {
  padding: 3px 10px;
  gap: 5px;
}
.expert-board-compact .expert-board-count strong { font-size: 19px; }
.expert-board-compact .expert-board-count span { font-size: 11.5px; }

.expert-title-groups {
  padding: 5px 0 8px;
}

.expert-category + .expert-category {
  margin-top: 4px;
}

.expert-category-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 15px 3px;
  color: #c8102e;
}

.expert-category-head::before,
.expert-category-head::after {
  content: "";
  flex: 1;
  min-width: 28px;
  height: 1px;
  background: #e3c9a7;
}

.expert-category-head span {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .04em;
  white-space: nowrap;
}

.expert-title-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
  max-height: none;
  overflow: visible;
  padding: 2px 15px 5px;
  background: #fffdf8;
}
.expert-title-link {
  display: block;
  min-width: 0;
  padding: 5px 0;
  border-bottom: 1px dotted #eee2d1;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.expert-title-link:hover { color: #c8102e; }

.expert-board-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 430px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.expert-group {
  min-width: 0;
  padding: 10px 16px 12px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.expert-group:nth-child(2n) { border-right: 0; }

.expert-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  color: #7f1d1d;
  font-weight: 700;
  font-size: 13px;
  padding: 2px 0 7px;
  border-bottom: 1px dashed #ead7bd;
  user-select: none;
}

.expert-group summary::-webkit-details-marker { display: none; }
.expert-group summary::before {
  content: "▾";
  color: #c8102e;
  font-size: 11px;
  margin-right: 2px;
}
.expert-group:not([open]) summary::before { content: "▸"; }

.expert-group summary span { flex: 1; }
.expert-group summary b {
  min-width: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #f9e8df;
  color: #a33a2d;
  font-size: 11px;
  line-height: 19px;
  text-align: center;
  font-weight: 600;
}

.expert-group-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}

.expert-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  padding: 5px 0;
  border-bottom: 1px dotted #f0e8db;
}

.expert-row:last-child { border-bottom: 0; }

.expert-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  color: var(--ink);
}

.expert-name:hover { color: #c8102e; }

.expert-post {
  grid-column: 1 / -1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-soft);
  font-size: 12px;
}

.expert-post:hover { color: #c8102e; }

.expert-row time,
.expert-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .expert-board-head { padding: 13px 15px; }
  .expert-board-title h2 { font-size: 19px; }
  .expert-board-groups { grid-template-columns: 1fr; max-height: 420px; }
  .expert-group { border-right: 0; padding: 9px 15px 10px; }
  .expert-row { grid-template-columns: minmax(0, 1fr) auto; }
  .expert-board-compact .expert-board-head { padding: 8px 13px; gap: 10px; }
  .expert-board-compact .expert-board-title h2 { font-size: 17px; }
  .expert-board-compact .expert-board-count { padding: 3px 9px; }
  .expert-category-head { margin: 2px 12px 3px; gap: 8px; }
  .expert-category-head span { font-size: 12.5px; }
  .expert-title-grid { gap: 0 10px; padding: 2px 12px 4px; max-height: none; }
  .expert-title-link { font-size: 11.5px; padding: 4px 0; }
}



/* 编辑痕迹：[ 此帖被【会员】在时间重新编辑 ] */
.edit-mark { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
