﻿/* ============================================================
   算算命 · 基础样式（Lead 维护）· 知乎风
   浅灰底 + 白卡片、15px 正文、4px 圆角、轻阴影
   规范见 DESIGN.md
   ============================================================ */

/* 模块说明（人工修改前先读）
 * 模块：public/styles/base.css
 * 职责：全站设计层：颜色/字号/圆角/阴影令牌、按钮、表单、卡片、Modal、Toast、布局。
 * 修改边界：全站公共选择器；改这里会影响所有页面。
 */
:root {
  --bg: #f6f6f6;
  --bg-soft: #f6f6f6;
  --card: #ffffff;
  --line: #ebebeb;
  --line-strong: #d3d3d3;
  --ink: #121212;
  --ink-2: #444444;
  --muted: #8590a6;
  --green: #d51921;          /* 品牌红（取自 logo），变量名沿用 */
  --green-dark: #b31219;
  --green-soft: #fdecee;
  --brand: #d51921;
  --brand-dark: #b31219;
  --brand-soft: #fdecee;
  --ok: #00a651;
  --ok-dark: #007f3d;
  --ok-soft: #eaf7ec;
  --blue: #175199;
  --blue-hover: #056de8;
  --blue-soft: #eef3f8;
  --orange: #ffac2d;
  --red: #cc3333;
  --red-soft: #fdecec;
  --jade: #007f3d;
  --jade-soft: #eaf7ec;
  --track: #ebebeb;
  --radius: 4px;
  --radius-sm: 4px;
  --radius-lg: 4px;
  --shadow: 0 1px 3px rgba(18, 18, 18, 0.08);
  --gold: #d51921;
  --gold-2: #b31219;
  --gold-3: #f0676d;
  --gold-soft: #fdecee;
  --wash: #f6f6f6;
  --wash-2: #ebebeb;
  --font-serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --tabbar-h: 56px;
  --max-w: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
::selection { background: rgba(213, 25, 33, 0.12); }

.app { max-width: var(--max-w); margin: 0 auto; min-height: 100vh; }

/* ------------------------------------------------------------ 顶部栏 */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: #fff;
  box-shadow: 0 1px 3px rgba(18, 18, 18, 0.08);
}
.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 8px; }
.brand:hover { text-decoration: none; }
.topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.domain-link {
  display: flex; align-items: baseline; gap: 5px;
  padding-left: 14px; border-left: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
  white-space: nowrap;
}
.domain-link b { font-size: 13px; color: var(--brand); font-weight: 700; letter-spacing: 0.2px; }
.domain-hint { font-size: 11px; color: var(--muted); font-weight: 400; }
.domain-link:hover { text-decoration: none; }
.domain-link:hover b { text-decoration: underline; }
@media (max-width: 760px) {
  .domain-slogan { display: none; }
  .domain-link { padding-left: 10px; }
}
.brand-logo { height: 34px; width: auto; max-width: none; flex: 0 0 auto; display: block; }
@media (max-width: 760px) { .brand-logo { height: 28px; } }
.brand-mark { width: 28px; height: 28px; object-fit: contain; display: block; }
.brand-text { font-size: 18px; font-weight: 700; letter-spacing: 0; color: var(--ink); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-link { font-size: 15px; color: var(--ink-2); padding: 4px 2px; }
.topbar-link:hover { color: var(--brand); text-decoration: none; }
.topbar-account { position: relative; }
.topbar-user { display: flex; align-items: center; gap: 8px; padding: 3px 8px 3px 3px; border-radius: 18px;
  background: none; border: 0; font: inherit; color: inherit; cursor: pointer; }
.topbar-caret { font-size: 9px; color: #aaa; margin-left: -2px; }
.topbar-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; min-width: 148px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .12); }
.topbar-menu[hidden] { display: none; }
.topbar-menu a, .topbar-menu button { display: block; width: 100%; text-align: left; padding: 9px 10px;
  border: 0; border-radius: 5px; background: none; font: inherit; font-size: 13px; color: var(--ink-2);
  cursor: pointer; line-height: 1.2; }
.topbar-menu a:hover, .topbar-menu button:hover { background: var(--bg); color: var(--brand); text-decoration: none; }
.topbar-menu button { color: #b31219; }
.topbar-user:hover { background: var(--bg); text-decoration: none; }
.topbar-user .avatar { width: 26px; height: 26px; font-size: 12px; }
.topbar-user span { font-size: 14px; color: var(--ink-2); max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------ 布局 */
.layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 16px 40px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.sidenav { display: none; }
.rightside { display: none; }
.view { flex: 1; min-width: 0; max-width: 694px; padding: 0 0 24px; outline: none; }

@media (min-width: 1000px) {
  .sidenav {
    display: block;
    width: 168px;
    flex: none;
    position: sticky;
    top: 64px;
    padding: 8px 0 24px;
  }
  .sidenav a {
    display: block;
    padding: 9px 12px;
    margin-bottom: 2px;
    font-size: 15px;
    color: var(--ink-2);
    border-radius: 4px;
  }
  .sidenav a:hover { background: rgba(0, 0, 0, 0.04); color: var(--ink); text-decoration: none; }
  .sidenav a.active { color: var(--brand); font-weight: 600; background: var(--brand-soft); }
  .sidenav-sep { display: block; height: 1px; background: var(--line); margin: 10px 12px; }
  .sidenav a.active { color: var(--brand); font-weight: 600; background: var(--brand-soft); }
  .sidenav-qr {
    margin-top: 16px; padding: 10px;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    text-align: center;
  }
  .sidenav-qr img { display: block; width: 100%; height: auto; border-radius: 2px; }
  .sidenav-qr-text { margin-top: 6px; font-size: 12px; color: var(--ink-2); }
  .sidenav-qr-sub { margin-top: 2px; font-size: 11px; color: var(--muted); }
  .rightside { display: block; width: 296px; flex: none; position: sticky; top: 64px; }
  .tabbar { display: none; }
}

/* ------------------------------------------------------------ 底部导航 */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: var(--tabbar-h);
  padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(7, 1fr);
  background: #fff;
  border-top: 1px solid var(--line);
  z-index: 50;
}
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); }
.tab:hover { text-decoration: none; }
.tab-icon { font-size: 18px; line-height: 1; }
.tab-text { font-size: 11px; }
.tab.active { color: var(--brand); }
.tab.active .tab-text { color: var(--brand); font-weight: 600; }

/* ------------------------------------------------------------ 卡片 / 通用 */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 10px;
}
.card-tight { padding: 4px 20px; }
.card-flat { background: #fafafa; box-shadow: none; }

.section { margin: 20px 0 10px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; gap: 10px; }
.section-title { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: 0; }
.section-title::after { content: none; }
.section-more { font-size: 13px; color: var(--blue); }
.section-more:hover { color: var(--blue-hover); text-decoration: underline; }

.row { display: flex; align-items: center; gap: 8px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.col { display: flex; flex-direction: column; gap: 6px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.gold { color: var(--blue); }
.red { color: var(--red); }
.jade { color: var(--ok-dark); }
.bold { font-weight: 600; }
.serif { font-family: var(--font-sans); font-weight: 700; letter-spacing: 0; }
.mt0 { margin-top: 0; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; }
.mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb0 { margin-bottom: 0; }
.nowrap { white-space: nowrap; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.dash-line { border-top: 1px solid var(--line); margin: 14px 0; }
.hr-text { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.hr-text::before, .hr-text::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 34px; padding: 0 16px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line-strong);
  color: var(--ink-2); font-size: 14px; transition: all 0.15s ease;
  user-select: none; white-space: nowrap;
}
.btn:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.btn:active { background: var(--bg); }
.btn-primary {
  background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 500;
}
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--bg); border-color: transparent; color: var(--ink-2); }
.btn-block { display: flex; width: 100%; }
.btn-sm { min-height: 28px; padding: 0 12px; font-size: 13px; }
.btn-lg { min-height: 40px; font-size: 15px; }
.btn[disabled], .btn.disabled { opacity: 0.5; pointer-events: none; }
.btn-icon { width: 34px; min-height: 34px; padding: 0; border-radius: 50%; }

/* 表单 */
.field { margin-bottom: 14px; }
.label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.input, .textarea, .select {
  display: block; width: 100%; min-height: 36px; padding: 7px 12px;
  background: #fff; border: 1px solid var(--line-strong);
  border-radius: var(--radius); color: var(--ink); outline: none;
  font-size: 14px;
  transition: border-color 0.15s ease;
  -webkit-appearance: none; appearance: none;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--brand); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.7; font-size: 15px; }
.input::placeholder, .textarea::placeholder { color: #bbbbbb; }
.select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 17px, calc(100% - 13px) 17px; background-size: 5px 5px; background-repeat: no-repeat; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.form-error { font-size: 13px; color: var(--red); margin-top: 6px; min-height: 18px; }

/* 标签 */
.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px;
  border-radius: var(--radius); background: var(--bg-soft); border: 1px solid transparent;
  font-size: 13px; color: var(--ink-2);
}
.chip:hover { text-decoration: none; background: #eeeeee; }
.chip.active, .chip[aria-selected="true"] { background: var(--brand-soft); color: var(--brand-dark); font-weight: 500; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block; padding: 2px 8px; border-radius: var(--radius);
  background: var(--bg-soft); color: var(--ink-2); font-size: 12px;
}
.tag-red { background: var(--red-soft); color: var(--red); }
.tag-jade { background: var(--ok-soft); color: var(--ok-dark); }
.pill { display: inline-block; padding: 2px 8px; border-radius: var(--radius); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); display: inline-block; }

/* 头像 */
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; color: var(--muted);
  background: var(--bg-soft); flex: none;
}
.avatar-lg { width: 56px; height: 56px; font-size: 22px; }
.avatar-guide { background: var(--bg-soft); color: var(--muted); }

/* 加载 / 空状态 */
.skeleton { border-radius: var(--radius); background: linear-gradient(90deg, #f2f2f2 25%, #fafafa 37%, #f2f2f2 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.loading-wrap { padding: 40px 0; text-align: center; color: var(--muted); font-size: 14px; }
.loading-dot { display: inline-block; width: 5px; height: 5px; margin: 0 2px; border-radius: 50%; background: var(--brand); animation: bounce 1.2s infinite; }
.loading-dot:nth-child(2) { animation-delay: 0.15s; }
.loading-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty-icon { font-size: 32px; margin-bottom: 10px; }
.empty-title { font-size: 15px; color: var(--ink-2); margin-bottom: 6px; }
.empty-desc { font-size: 13px; line-height: 1.7; margin-bottom: 14px; }

/* 分数条 / 圆环 */
.scorebar { margin-bottom: 10px; }
.scorebar-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.scorebar-top b { color: var(--ink-2); font-weight: 400; }
.scorebar-track { height: 5px; border-radius: 3px; background: var(--track); overflow: hidden; }
.scorebar-fill { height: 100%; border-radius: 3px; background: var(--brand); transition: width 0.5s ease; }
.ring-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ring-label { font-size: 12px; color: var(--muted); }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tabs .tab-btn { white-space: nowrap; flex: 0 0 auto; }
.tab-btn { padding: 9px 14px; margin-bottom: -1px; font-size: 14px; color: var(--ink-2); border-bottom: 3px solid transparent; transition: color 0.15s ease; }
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--ink); border-bottom-color: var(--brand); font-weight: 600; }

/* toast */
.toast-root { position: fixed; left: 50%; top: 64px; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; width: max-content; max-width: 88vw; pointer-events: none; }
.toast {
  padding: 8px 16px; border-radius: var(--radius); font-size: 13px;
  background: #fff; box-shadow: 0 3px 12px rgba(18, 18, 18, 0.14);
  color: var(--ink); animation: toast-in 0.2s ease both;
}
.toast.ok { color: var(--ok-dark); }
.toast.err { color: var(--red); }
.toast.out { animation: toast-out 0.2s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-6px); } }

/* modal / sheet */
.modal-root { position: fixed; inset: 0; z-index: 100; display: none; }
.modal-root.open { display: block; }
.modal-mask { position: absolute; inset: 0; background: rgba(18, 18, 18, 0.55); animation: fade-in 0.15s ease both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal-panel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(440px, 92vw); max-height: 82vh; overflow-y: auto;
  background: #fff; border-radius: var(--radius); padding: 20px;
  box-shadow: 0 8px 30px rgba(18, 18, 18, 0.2);
  animation: modal-in 0.18s ease both;
}
@keyframes modal-in { from { opacity: 0; transform: translate(-50%, -48%); } to { opacity: 1; transform: translate(-50%, -50%); } }
.modal-title { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.modal-body { color: var(--ink-2); font-size: 14px; line-height: 1.75; }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.modal-actions .btn { flex: 1; }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 86vh; overflow-y: auto;
  background: #fff; border-radius: 8px 8px 0 0;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  animation: sheet-in 0.22s ease both;
}
@keyframes sheet-in { from { transform: translateY(24px); opacity: 0.5; } to { transform: none; opacity: 1; } }
.sheet-handle { width: 32px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 14px; }
body.no-scroll { overflow: hidden; }

/* ------------------------------------------------------------ 首页 */
.hero {
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 22px 20px;
  margin-bottom: 10px;
}
.hero-date { font-size: 13px; color: var(--muted); }
.hero-title { font-size: 22px; font-weight: 700; letter-spacing: 0; margin: 6px 0 8px; color: var(--ink); }
.hero-sub { font-size: 15px; color: var(--ink-2); line-height: 1.7; }
.hero-actions { display: flex; gap: 10px; margin-top: 16px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.hero-meta b { color: var(--ink-2); font-weight: 400; }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 4px; border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.quick:hover { text-decoration: none; transform: translateY(-2px); }
.quick-icon { font-size: 22px; }
.quick-text { font-size: 13px; color: var(--ink-2); }

.post-row { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
.post-row:hover { text-decoration: none; }
.card-tight .post-row:last-child { border-bottom: 0; padding-bottom: 4px; }
.post-main { flex: 1; min-width: 0; }
.post-title { font-size: 16px; color: var(--ink); line-height: 1.5; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.post-row:hover .post-title { color: var(--blue); }
.post-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.post-meta .dot { width: 2px; height: 2px; border-radius: 50%; background: var(--muted); }
.board-badge { font-size: 12px; color: var(--muted); }

.lucky-box {
  border-radius: var(--radius); padding: 22px 20px; background: #fff;
  box-shadow: var(--shadow); text-align: center;
}
.lucky-level { font-size: 20px; font-weight: 700; color: var(--ink); }
.lucky-poem { font-family: var(--font-serif); font-size: 16px; line-height: 2; letter-spacing: 1px; margin: 12px 0; color: var(--ink); }
.lucky-key { display: inline-block; font-size: 13px; color: var(--ink-2); background: var(--bg-soft); padding: 2px 10px; border-radius: var(--radius); }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.stat-num { font-size: 22px; font-weight: 700; color: var(--brand); }
.stat-label { font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------ 社区 */
.board-group { margin-bottom: 18px; }
.board-group-head { display: flex; align-items: center; justify-content: space-between; padding: 0 0 8px; }
.board-group-name { font-size: 17px; font-weight: 700; }
.board-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.board-item {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.board-item:hover { text-decoration: none; transform: translateY(-1px); }
.board-item.mine { background: var(--brand-soft); }
.board-icon { font-size: 16px; }
.board-name { font-size: 14px; color: var(--ink); line-height: 1.4; }
.board-count { font-size: 12px; color: var(--muted); }
.board-flag { margin-left: auto; font-size: 11px; color: var(--brand); }
.board-subhead {
  margin: 14px 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.board-list.type16 { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.board-item.board-type16 {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 12px;
}
.board-type-code { font-size: 15px; font-weight: 700; color: var(--ink); }
.board-type-name { font-size: 12px; color: var(--muted); }
.board-item.board-type16.mine { background: var(--brand-soft); }
.board-item.board-type16.mine .board-type-code { color: var(--brand-dark); }

.cm-head { padding: 0 0 10px; }
.cm-title { font-size: 22px; font-weight: 700; }
.cm-desc { font-size: 13px; color: var(--muted); margin-top: 4px; }
.cm-bar { display: flex; align-items: center; justify-content: space-between; margin: 14px 0; gap: 8px; }
.cm-empty { padding: 28px 8px; }
.cm-compose textarea { min-height: 150px; }
.cm-post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cm-post-title { font-size: 22px; font-weight: 700; line-height: 1.45; margin: 6px 0 12px; }
.cm-post-content { font-size: 15px; line-height: 1.8; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.cm-replies { margin-top: 16px; }
.cm-reply { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; }
.cm-reply-body { flex: 1; min-width: 0; }
.cm-reply-name { font-size: 13px; color: var(--ink-2); }
.cm-reply-text { font-size: 15px; color: var(--ink); line-height: 1.75; margin-top: 4px; white-space: pre-wrap; word-break: break-word; }
.cm-reply-time { font-size: 12px; color: var(--muted); }
.cm-like { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); border-radius: 14px; padding: 4px 12px; background: var(--bg-soft); }
.cm-like.on { color: var(--brand); background: var(--brand-soft); }

/* 回复：引楼 / 楼主 / 回复按钮 */
.cm-owner {
  display: inline-block; vertical-align: 1px;
  margin-left: 4px; padding: 0 5px;
  font-size: 11px; color: var(--brand); background: var(--brand-soft);
  border-radius: 2px;
}
.cm-quote {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 6px 0; padding: 7px 10px;
  background: #fafafa; border-left: 3px solid var(--line-strong);
  border-radius: 2px;
  font-size: 13px; line-height: 1.6; color: var(--muted);
}
.cm-quote:hover { text-decoration: none; color: var(--ink-2); }
.cm-quote-name { color: var(--blue); margin-right: 4px; }
.cm-reply-actions { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.cm-reply-btn { padding: 0; font-size: 13px; color: var(--muted); }
.cm-reply-btn:hover { color: var(--blue); }
.cm-reply-mine { font-size: 11px; color: var(--muted); }
.cm-quote-preview {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px; padding: 8px 12px;
  background: #fafafa; border-left: 3px solid var(--line-strong);
  border-radius: 2px;
  font-size: 13px; color: var(--muted);
}
.cm-quote-preview[hidden] { display: none; }
.cm-quote-preview-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-quote-cancel { flex: none; font-size: 12px; color: var(--blue); }

/* ------------------------------------------------------------ 我的 */
.me-training-entry { display: block; }
.me-training-entry:hover { text-decoration: none; }
.me-head { display: flex; align-items: center; gap: 12px; padding: 0 0 14px; }
.me-logo { height: 40px; width: auto; }
.me-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 12px; }
.btn-danger { border-color: var(--red); color: var(--red); }
.btn-danger:hover { background: var(--red); border-color: var(--red); color: #fff; }
.me-name { font-size: 20px; font-weight: 700; }
.me-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.me-card-title { font-size: 13px; color: var(--muted); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv-k { color: var(--muted); flex: none; }
.kv-v { color: var(--ink); text-align: right; word-break: break-all; }
.auth-switch { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.auth-switch button { padding: 9px 16px; margin-bottom: -1px; font-size: 15px; color: var(--ink-2); border-bottom: 3px solid transparent; }
.auth-switch button.active { color: var(--ink); border-bottom-color: var(--brand); font-weight: 600; }

/* 右栏 */
.side-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 10px; }
.side-card-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.side-text { font-size: 13px; line-height: 1.75; color: var(--muted); }
.side-links { margin-top: 10px; display: flex; gap: 14px; }
.side-link { display: block; font-size: 13px; color: var(--blue); padding: 4px 0; }
.side-link:hover { color: var(--blue-hover); }

/* 右栏 · 今日一签 */
.side-lucky-level { font-size: 16px; font-weight: 700; color: var(--brand); margin-bottom: 2px; }
.side-lucky-poem {
  margin: 8px 0;
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 1px;
  color: var(--ink);
}
.side-lucky-key {
  display: inline-block;
  font-size: 12px;
  color: var(--ink-2);
  background: var(--bg-soft);
  padding: 1px 8px;
  border-radius: var(--radius);
}

/* 桌面端：今日一签只在右栏显示，正文里的这块隐藏 */
@media (min-width: 1000px) {
  .home-lucky { display: none; }
}

/* 免责 */
.disclaim { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 18px 2px 6px; text-align: center; }

/* ------------------------------------------------------------ 角色徽章 / 管理 */
.cm-role {
  display: inline-block; vertical-align: 1px;
  margin-left: 4px; padding: 0 5px;
  font-size: 11px; color: var(--blue); background: var(--blue-soft);
  border-radius: 2px;
}
.cm-role.super { color: #fff; background: var(--brand); }
.cm-role.community { color: var(--brand); background: var(--brand-soft); }
.cm-role.forum { color: var(--ok-dark); background: var(--ok-soft); }
.cm-pinned {
  display: inline-block; margin-right: 6px; padding: 0 5px;
  font-size: 11px; color: var(--brand); background: var(--brand-soft);
  border-radius: 2px; vertical-align: 1px;
}
.post-actions { display: flex; align-items: center; gap: 12px; }
.post-action { font-size: 13px; color: var(--muted); padding: 0; }
.post-action:hover { color: var(--blue); }
.post-action.danger:hover { color: var(--brand); }

.admin-head { padding: 0 0 10px; }
.admin-title { font-size: 22px; font-weight: 700; }
.admin-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 760px) { .admin-grid { grid-template-columns: 1fr; } }
.admin-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
}
.admin-row:last-child { border-bottom: 0; }
.admin-row-name { font-size: 14px; color: var(--ink); }
.admin-row-sub { font-size: 12px; color: var(--muted); }
.admin-select {
  min-height: 32px; padding: 4px 8px; font-size: 13px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: #fff; color: var(--ink);
}
.admin-board { padding: 12px 0; border-bottom: 1px solid var(--line); }
.admin-board:last-child { border-bottom: 0; }
.admin-board-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.admin-board-name { font-size: 14px; font-weight: 600; }
.admin-mods { font-size: 12px; color: var(--muted); margin-top: 4px; }
.admin-users { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.admin-user-chip {
  padding: 3px 10px; font-size: 12px; border-radius: 12px;
  background: var(--bg-soft); color: var(--ink-2);
}
.admin-user-chip.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.admin-post-title { font-size: 14px; color: var(--ink); }
.admin-post-meta { font-size: 12px; color: var(--muted); }
.admin-actions { display: flex; gap: 10px; align-items: center; }
.admin-empty { padding: 16px 0; font-size: 13px; color: var(--muted); }
.noscript { padding: 40px; text-align: center; color: var(--muted); }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #d9d9d9; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* 手机端 */
@media (max-width: 999px) {
  .layout { padding: 10px 12px calc(var(--tabbar-h) + 24px); }
  .card { padding: 16px 14px; }
  .card-tight { padding: 4px 14px; }
  .hero { padding: 18px 16px; }
  .lucky-box { padding: 18px 14px; }
  .board-list.type16 { grid-template-columns: repeat(2, 1fr); }
}

/* 桌面端隐藏底部导航（必须放在 .tabbar 定义之后） */
@media (min-width: 1000px) {
  .tabbar { display: none; }
}

/* 管理后台 · 用户管理（新增） */
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.admin-toolbar .input { flex: 1; min-width: 150px; }
.admin-status { display: inline-block; padding: 1px 8px; border-radius: var(--radius); font-size: 12px; border: 1px solid var(--line); color: var(--muted); }
.admin-status.muted { color: #b26a00; border-color: #f0d9a8; background: #fdf6e8; }
.admin-status.banned { color: var(--brand); border-color: #f3c7c9; background: var(--brand-soft); }
.admin-detail-title { margin: 12px 0 4px; font-size: 13px; font-weight: 600; color: var(--ink); }
.admin-pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 12px; }
.admin-pager button[disabled] { opacity: 0.45; cursor: default; }
.admin-actions .post-action { white-space: nowrap; }


/* ------------------------------------------------------------ 命理师 */
.master-promo-title { font-size: 15px; font-weight: 600; }
.master-v { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px;
  padding: 0 3px; border-radius: 4px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; line-height: 1; vertical-align: 1px; }
.master-featured { display: inline-block; padding: 1px 6px; border: 1px solid var(--brand); border-radius: 4px;
  color: var(--brand); font-size: 12px; vertical-align: 1px; }
.master-head { padding: 2px 0 4px; }
.master-title { font-size: 26px; font-weight: 700; }
.master-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.master-toolbar { display: flex; gap: 8px; margin: 14px 0 10px; }
.master-toolbar .input { flex: 1; }
.master-filters { margin-bottom: 14px; }
.master-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .master-list { grid-template-columns: 1fr; } }
.master-card { display: block; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px; transition: box-shadow 0.15s ease, transform 0.15s ease; }
.master-card:hover { text-decoration: none; box-shadow: 0 4px 14px rgba(18, 18, 18, 0.10); transform: translateY(-1px); }
.master-card-top { display: flex; gap: 10px; align-items: flex-start; }
.master-avatar { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 18px; font-weight: 700; flex: 0 0 auto; }
.master-avatar-lg { width: 64px; height: 64px; font-size: 26px; }
.master-name { font-size: 16px; font-weight: 600; color: var(--ink); }
.master-name-lg { font-size: 24px; font-weight: 700; }
.master-real { font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.master-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.master-skills { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; }
.master-skill { font-size: 12px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 7px; }
.master-excerpt { font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.master-link { margin-top: 8px; font-size: 13px; color: #175199; }
.master-hero { display: flex; gap: 14px; align-items: flex-start; padding: 8px 0 14px; }
.master-intro-p { font-size: 14px; line-height: 1.95; margin: 8px 0; color: var(--ink); }
.master-contact-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.master-contact-row:last-of-type { border-bottom: 0; }
.master-contact-row .kv-k { width: 62px; flex: 0 0 auto; }
.master-contact-row .kv-v { flex: 1; word-break: break-all; }
.master-skill-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.master-pick { display: inline-flex; align-items: center; gap: 4px; font-size: 13px;
  border: 1px solid var(--line); border-radius: 4px; padding: 4px 8px; cursor: pointer; }


.master-stars { color: #f5a623; letter-spacing: 1px; font-size: 13px; }
.master-stars.big { font-size: 22px; line-height: 1; margin-bottom: 8px; }
.master-stars button.star { background: none; border: 0; color: #dddddd; font-size: 24px;
  cursor: pointer; padding: 0 2px; line-height: 1; }
.master-stars button.star.on { color: #f5a623; }
.master-review-form { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }


.master-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: var(--bg); }
.master-photo-lg { width: 72px; height: 72px; border-radius: 10px; }
.bz-charts .bz-chart-row, .bz-chart-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bz-chart-row { cursor: pointer; }
.bz-chart-row:hover { background: #fafafa; }
.bz-chart-row:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.bz-chart-row:last-child { border-bottom: 0; }

/* ---- 站内消息 ---- */
.topbar-bell { position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; margin-right: 4px; }
.topbar-bell:hover { background: var(--brand-soft); text-decoration: none; }
.bell-icon { font-size: 17px; line-height: 1; }
.topbar-badge { position: absolute; top: 1px; right: 0; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--brand); color: #fff; font-size: 10px; line-height: 16px;
  text-align: center; font-weight: 700; }
.notify-head { margin-bottom: 8px; }
.notify-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.notify-tab { border: 0; background: none; padding: 8px 10px; color: var(--muted); font-size: 14px; cursor: pointer; }
.notify-tab.active { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--brand); }
.notify-count { font-size: 11px; color: var(--brand); }
.notify-row { display: flex; gap: 10px; padding: 14px 2px; border-bottom: 1px solid var(--line); color: var(--ink); }
.notify-row:last-child { border-bottom: 0; }
.notify-row:hover { text-decoration: none; background: #fafafa; }
.notify-row.read { opacity: .68; }
.notify-type { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: var(--brand-soft);
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.notify-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.notify-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.notify-text { font-size: 13px; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }
.notify-time { font-size: 11px; color: var(--muted); }
.notify-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand);
  margin-left: 5px; vertical-align: 2px; }
.notify-more { margin: 12px 0 4px; }
@media (max-width: 760px) {
  .topbar-bell { width: 30px; height: 30px; }
  .notify-row { padding: 12px 0; }
}

/* ---- 帖子作者信息标签 ---- */
.cm-author-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 6px; vertical-align: middle; }
.cm-tag { display: inline-block; font-size: 11px; line-height: 1.6; color: var(--muted);
  background: #f5f6f7; border: 1px solid #ececec; border-radius: 3px; padding: 0 5px; }
.cm-tag:hover { color: var(--brand); border-color: #f3c6c9; background: var(--brand-soft); text-decoration: none; }
@media (max-width: 760px) { .cm-author-tags { margin-left: 4px; } .cm-tag { font-size: 10.5px; } }

/* ---- 社区首页：我的社区 ---- */
.cm-home-card { margin-bottom: 16px; }
.cm-home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.cm-home-title { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.cm-home-link { display: block; font-size: 13px; line-height: 1.85; color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-home-link:hover { color: var(--brand); text-decoration: none; }
.cm-home-chip { display: inline-block; font-size: 12px; color: var(--ink-2); background: #f5f6f7;
  border: 1px solid #ececec; border-radius: 3px; padding: 2px 6px; margin: 0 4px 4px 0; }
.cm-home-chip span { color: var(--muted); }
.cm-home-chip:hover { color: var(--brand); border-color: #f3c6c9; background: var(--brand-soft); text-decoration: none; }
@media (max-width: 760px) { .cm-home-grid { grid-template-columns: 1fr; gap: 8px; } }

/* ---- 命理百科 ---- */
.wiki-wrap { max-width: 760px; }
.wiki-hero { padding: 8px 0 14px; }
.wiki-kicker { font-size: 12px; color: var(--brand); letter-spacing: 1px; margin-bottom: 6px; }
.wiki-title { font-size: 34px; margin: 0 0 8px; }
.wiki-sub { color: var(--ink-2); line-height: 1.8; margin: 0 0 16px; }
.wiki-search { display: flex; gap: 8px; }
.wiki-input { flex: 1; }
.wiki-hot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.wiki-chip { font-size: 12px; color: var(--ink-2); background: #f5f6f7; border: 1px solid #ececec;
  border-radius: 999px; padding: 3px 9px; }
.wiki-chip:hover { color: var(--brand); border-color: #f3c6c9; background: var(--brand-soft); text-decoration: none; }
.wiki-cat { border-top: 1px solid var(--line); padding: 16px 0 4px; }
.wiki-cat-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2px; }
.wiki-cat-name { font-weight: 700; font-size: 16px; }
.wiki-links { display: flex; flex-wrap: wrap; gap: 8px; }
.wiki-link-card { font-size: 13px; color: var(--ink-2); border-bottom: 1px dashed transparent; }
.wiki-link-card:hover { color: var(--brand); text-decoration: none; border-bottom-color: rgba(213,25,33,.35); }
.wiki-more { border: 0; background: none; color: var(--brand); font-size: 12px; cursor: pointer; padding: 0; }
.wiki-result { display: flex; flex-direction: column; gap: 2px; padding: 12px 2px; border-bottom: 1px solid var(--line); color: var(--ink); }
.wiki-result:hover { background: #fafafa; text-decoration: none; }
.wiki-result-cat { font-size: 11px; color: var(--brand); }
.wiki-result-title { font-size: 15px; font-weight: 600; }
.wiki-result-sum { font-size: 13px; color: var(--muted); line-height: 1.7; }
.wiki-entry-head { padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.wiki-entry-title { font-size: 30px; margin: 6px 0 8px; }
.wiki-entry-sum { color: var(--ink-2); line-height: 1.9; margin: 0; }
.wiki-sec { padding: 16px 0; border-bottom: 1px solid var(--line); }
.wiki-sec-title { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.wiki-sec-body { color: var(--ink-2); line-height: 1.9; white-space: pre-wrap; }
.wiki-related { padding: 16px 0; }
.wiki-entry-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 12px; }
.wiki-link { color: inherit; border-bottom: 1px dashed rgba(213, 25, 33, 0.42); }
.wiki-link:hover { color: var(--brand); background: var(--brand-soft); text-decoration: none; }
@media (max-width: 760px) {
  .wiki-title { font-size: 28px; }
  .wiki-entry-title { font-size: 25px; }
  .wiki-search { flex-direction: column; }
  .wiki-search .btn { width: 100%; }
}

/* ---- 统一返回按钮 ---- */
.page-back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px;
  padding: 7px 14px; font-size: 14px; font-weight: 500; line-height: 1.4;
  color: var(--ink); background: #fff; border: 1px solid #d9d9d9; border-radius: 5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); cursor: pointer; }
.page-back:hover { color: var(--brand); border-color: #f0b9bd; background: var(--brand-soft); }
.page-back:active { transform: translateY(1px); }
@media (max-width: 760px) {
  .page-back { font-size: 14px; padding: 8px 14px; margin-bottom: 10px; }
}

/* ============================================================ 手机版 v2（豆瓣式） */
.mobile-topbar { display: none; }
.m-feed-tabs { display: none; }
.m-community-chips { display: none; }

@media (max-width: 999px) {
  :root { --tabbar-h: 60px; }
  body { background: #fff; }
  .topbar { display: none; }
  .mobile-topbar {
    display: flex; align-items: center; gap: 10px;
    position: sticky; top: 0; z-index: 45;
    padding: 8px 12px; background: #fff;
    border-bottom: 1px solid #f2f2f2;
  }
  .m-icon { width: 32px; height: 32px; flex: 0 0 32px; position: relative;
    display: flex; align-items: center; justify-content: center; color: #262626; }
  .m-icon svg { width: 21px; height: 21px; }
  .m-badge { position: absolute; top: 0; right: 0; min-width: 14px; height: 14px; padding: 0 3px;
    border-radius: 99px; background: var(--brand); color: #fff; font-size: 8px; line-height: 14px;
    text-align: center; font-weight: 700; }
  .m-search { flex: 1; min-width: 0; height: 34px; border-radius: 17px; background: #f2f3f4;
    display: flex; align-items: center; gap: 6px; padding: 0 12px; color: #9a9a9a; }
  .m-search svg { width: 15px; height: 15px; flex: 0 0 15px; }
  .m-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
    font-size: 12.5px; color: var(--ink); }
  .m-search input::placeholder { color: #9a9a9a; }

  .app { display: block; }
  .layout { display: block; max-width: none; padding: 0 0 calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 8px); }
  .sidenav, .rightside { display: none; }
  .view { max-width: none; width: 100%; padding: 0; }

  /* 通用：去掉桌面卡片感，改成豆瓣式白色区块 + 大间隔 */
  .card, .card-flat {
    border: 0; border-radius: 0; box-shadow: none; background: #fff;
    margin: 0; padding: 14px 16px; border-bottom: 7px solid #f4f4f5;
  }
  .card-tight { padding: 0 16px; }
  .card-tight .post-row:last-child { padding-bottom: 12px; }
  .section { margin: 0; }
  .section-head { padding: 14px 16px 7px; margin: 0; }
  .section-title { font-size: 15px; }
  .section-more { font-size: 11px; }
  .disclaim { padding: 16px 16px 20px; font-size: 11px; }
  .page-back { margin: 12px 16px 0; }

  /* 首页 */
  .hero { display: none; }
  .quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    padding: 8px 6px 12px; border-bottom: 7px solid #f4f4f5; }
  .quick { display: flex; flex-direction: column; align-items: center; gap: 5px;
    padding: 4px 2px; text-align: center; }
  .quick-icon { width: 44px; height: 44px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 21px; }
  .quick:nth-child(1) .quick-icon { background: #fdf1f2; }
  .quick:nth-child(2) .quick-icon { background: #fff6e8; }
  .quick:nth-child(3) .quick-icon { background: #eef5ff; }
  .quick:nth-child(4) .quick-icon { background: #eff8ef; }
  .quick-text { font-size: 10.5px; color: #333; }
  .m-feed-tabs { display: flex; align-items: baseline; gap: 22px; padding: 11px 16px 8px;
    border-bottom: 1px solid #f2f2f2; background: #fff; }
  .m-feed-tabs span { font-size: 14px; color: #969696; }
  .m-feed-tabs .active { color: #111; font-size: 15px; font-weight: 700; position: relative; }
  .m-feed-tabs .active::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%);
    bottom: -8px; width: 22px; height: 3px; border-radius: 2px; background: var(--brand); }
  .m-feed-tabs .date { margin-left: auto; font-size: 10px; color: #b5b5b5; }
  .home-lucky { border-bottom: 7px solid #f4f4f5; }
  .home-lucky .section-head { padding-top: 13px; }
  .lucky-box { border-radius: 0; box-shadow: none; border: 0; padding: 6px 0 4px; background: #fff; }
  .home-lucky .section-more { color: var(--brand); }
  .home-lucky .lucky-box { text-align: left; padding: 4px 16px 8px; }
  .home-lucky .lucky-level { text-align: left; font-size: 13px; margin-bottom: 3px; }
  .home-lucky .lucky-box .tiny { text-align: left; }
  .home-lucky .lucky-poem { text-align: left; font-size: 13px; line-height: 2; margin: 7px 0; }
  .home-lucky .lucky-key { margin: 0; display: inline-block; }
  .home-lucky > .small.muted { padding: 0 16px 14px; }
  .m-board-count { display: none; }
  .home-my-boards { display: none; }
  .cm-home-grid { grid-template-columns: 1fr 1fr !important; gap: 8px 12px !important; }
  .cm-home-link:nth-of-type(n+3) { display: none; }
  .cm-home-chip:nth-of-type(n+3) { display: none; }
  .cm-home-card { padding-bottom: 10px !important; }
  .post-row { padding: 12px 16px; border-bottom: 1px solid #f2f2f2; display: flex; gap: 10px; }
  .post-row .post-title { font-size: 14.5px; font-weight: 700; line-height: 1.5; }
  .post-row .post-meta { font-size: 10px; color: #999; margin-top: 4px; }
  .card-tight .post-row:last-child { border-bottom: 0; }
  .stat-row, .home-lucky + .section .chip-row { display: none; }

  /* 社区：隐藏桌面分区块，改成顶部横向 chips */
  .cm-head { display: none; }
  .cm-home-card { margin: 0; border-bottom: 7px solid #f4f4f5 !important; }
  .board-group { display: none; }
  .m-community-chips { display: flex; gap: 7px; overflow-x: auto; padding: 10px 14px;
    border-bottom: 7px solid #f4f4f5; background: #fff; }
  .m-chip { flex: 0 0 auto; font-size: 11px; color: #666; background: #f6f6f6;
    border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
  .m-chip:hover { text-decoration: none; color: var(--brand); background: var(--brand-soft); }
  .cm-bar { padding: 0 16px 10px; }
  .cm-bar .tabs { max-width: 160px !important; }
  #all-compose { position: fixed; right: 16px; bottom: calc(var(--tabbar-h) + 18px);
    width: 52px; height: 52px; border-radius: 50%; padding: 0; font-size: 0; z-index: 44;
    box-shadow: 0 6px 16px rgba(0,0,0,.22); }
  #all-compose::after { content: "✏️"; font-size: 20px; }
  #board-compose { position: fixed; right: 16px; bottom: calc(var(--tabbar-h) + 18px);
    width: 52px; height: 52px; border-radius: 50%; padding: 0; font-size: 0; z-index: 44;
    box-shadow: 0 6px 16px rgba(0,0,0,.22); }
  #board-compose::after { content: "✏️"; font-size: 20px; }

  /* 八字 */
  .bz-grid { grid-template-columns: 1fr !important; gap: 4px; }
  .bz-card, .bz-result-card { border-radius: 0; box-shadow: none; border: 0;
    border-bottom: 7px solid #f4f4f5; padding: 14px 16px; margin: 0; }
  .bz-submit { height: 44px; }

  /* 星座 */
  .as-hero { padding: 14px 16px 10px !important; border-bottom: 7px solid #f4f4f5; }
  .as-hero-title { font-size: 23px !important; }
  .as-hero-desc { font-size: 12px !important; line-height: 1.7; }
  .as-sign-grid { display: flex !important; overflow-x: auto; gap: 8px !important;
    padding: 4px 16px 12px !important; border-bottom: 7px solid #f4f4f5; }
  .as-sign-grid button, .as-sign-grid .as-sign { flex: 0 0 auto; }
  .as-panel { border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
    padding: 14px 16px !important; margin: 0 !important; border-bottom: 7px solid #f4f4f5 !important; }

  /* 我的 */
  .me-head { padding: 14px 16px 8px !important; }
  .me-logo { height: 26px; }
  .me-toolbar { padding: 0 16px 12px; flex-wrap: wrap; border-bottom: 7px solid #f4f4f5; }
  .me-toolbar .btn { height: 30px; font-size: 11px; }
  .me-head + .card, .me-toolbar + .card { border-top: 0; }

  /* 搜索页 */
  .m-search-page { background: #fff; }
  .m-search-head { padding: 14px 16px 8px; }
  .m-search-head h1 { font-size: 24px; margin: 0 0 10px; }
  .m-search-page-form { display: flex; gap: 8px; }
  .m-search-page-form .input { flex: 1; height: 36px; border-radius: 18px; background: #f2f3f4; border: 0; }
  .m-result-group { border-bottom: 7px solid #f4f4f5; padding: 4px 0; }
  .m-result-title { font-size: 13px; font-weight: 700; padding: 10px 16px 4px; }
  .m-result-row { display: flex; align-items: center; gap: 10px; padding: 10px 16px; color: var(--ink); }
  .m-result-row:hover { background: #fafafa; text-decoration: none; }
  .m-result-main { min-width: 0; }
  .m-result-name { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .m-result-sub { font-size: 10.5px; color: #999; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .m-result-arrow { margin-left: auto; color: #ccc; }
  .m-feed-tabs, .m-community-chips, .mobile-topbar { -webkit-overflow-scrolling: touch; }

  /* 底部 5 栏 */
  .tabbar { grid-template-columns: repeat(5, 1fr); height: var(--tabbar-h);
    padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid #eee; }
  .tab { gap: 2px; color: #8e8e8e; }
  .tab svg { width: 21px; height: 21px; }
  .tab-text { font-size: 10px; }
  .tab.active { color: var(--brand); font-weight: 700; }
  .tab.active .tab-text { font-weight: 700; }
}

/* ============================================================ 八字命理培训单页 */
.tr-page { background: #fbf8f3; }
.tr-hero { background: linear-gradient(145deg, #a90f17 0%, #d51921 55%, #e04a42 100%);
  color: #fff; padding: 40px 34px 34px; position: relative; overflow: hidden; }
.tr-hero::after { content: "八"; position: absolute; right: -30px; bottom: -70px; font-size: 260px;
  font-family: serif; color: rgba(255,255,255,.06); line-height: 1; pointer-events: none; }
.tr-kicker { font-size: 13px; letter-spacing: 2px; color: #ffd9d5; margin-bottom: 12px; }
.tr-title { font-size: 40px; line-height: 1.3; margin: 0 0 14px; color: #fff; }
.tr-sub { font-size: 15px; line-height: 1.85; color: #ffe8e5; max-width: 540px; margin: 0 0 22px; }
.tr-price-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.tr-price { font-size: 34px; font-weight: 800; line-height: 1; }
.tr-price small { font-size: 13px; font-weight: 400; color: #ffd9d5; margin-right: 8px; vertical-align: 4px; }
.tr-price span { font-size: 13px; font-weight: 400; color: #ffd9d5; margin-left: 8px; }
.tr-guarantee { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px;
  background: #fff3c4; color: #8a5a00; font-size: 13px; font-weight: 700; }
.tr-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tr-hero .btn-primary { background: #fff; border-color: #fff; color: #b31219; }
.tr-hero .btn-primary:hover { background: #fff4f2; border-color: #fff4f2; color: #a90f17; }
.tr-ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.tr-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.tr-hero-meta { font-size: 12px; color: #ffd9d5; margin-top: 18px; }
.tr-wrap { max-width: 820px; margin: 0 auto; padding: 8px 16px 40px; }
.tr-section { padding: 26px 0 4px; }
.tr-sec-title { font-size: 22px; font-weight: 800; margin-bottom: 14px; color: #2a1f18; }
.tr-refund { background: #fff; border: 1px solid #f0d9b5; border-left: 4px solid #d51921;
  border-radius: 8px; padding: 16px 18px; }
.tr-refund-badge { display: inline-block; font-size: 11px; color: #b31219; background: #fdecee;
  border-radius: 3px; padding: 2px 8px; margin-bottom: 8px; font-weight: 700; }
.tr-refund p { margin: 0 0 8px; font-size: 14px; line-height: 1.85; color: #4a3f38; }
.tr-refund ul { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.9; color: #6b5d52; }
.tr-days { display: flex; flex-direction: column; gap: 8px; }
.tr-day { display: flex; gap: 14px; background: #fff; border: 1px solid #efe7dc; border-radius: 8px; padding: 13px 15px; }
.tr-day-body { flex: 1; min-width: 0; }
.tr-day-no { flex: 0 0 54px; font-size: 13px; font-weight: 800; color: #d51921; }
.tr-day-title { font-size: 15px; font-weight: 700; color: #2a1f18; margin-bottom: 3px; }
.tr-day-desc { font-size: 12.5px; line-height: 1.75; color: #6b5d52; }
.tr-gains { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tr-gain { background: #fff; border: 1px solid #efe7dc; border-radius: 8px; padding: 14px 15px; }
.tr-gain b { display: block; font-size: 15px; color: #b31219; margin-bottom: 5px; }
.tr-gain span { font-size: 12.5px; line-height: 1.75; color: #6b5d52; }
.tr-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tr-fit { background: #fff; border: 1px solid #efe7dc; border-radius: 8px; padding: 15px 16px; }
.tr-fit-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: #2a1f18; }
.tr-fit ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 2; color: #5c5047; }
.tr-fit-no { background: #faf7f2; }
.tr-price-card { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff; border: 1px solid #efe7dc; border-radius: 10px; padding: 20px 22px; }
.tr-price-big { font-size: 32px; font-weight: 800; color: #b31219; }
.tr-price-big span { font-size: 13px; color: #9a8f86; font-weight: 400; }
.tr-price-note { font-size: 13px; color: #5c5047; margin-top: 5px; }
.tr-price-fine { font-size: 11.5px; color: #a49a91; margin-top: 6px; line-height: 1.6; }
.tr-form-card { background: #fff; border: 1px solid #efe7dc; border-radius: 10px; padding: 20px 22px; }
.tr-form-desc { font-size: 13px; line-height: 1.8; color: #6b5d52; margin: 0 0 16px; }
.tr-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tr-form-fine { text-align: center; margin-top: 10px; }
.tr-form .field { margin-bottom: 12px; }
.tr-success { text-align: center; padding: 22px 10px 10px; }
.tr-success-icon { width: 44px; height: 44px; border-radius: 50%; background: #e8f7ec; color: #1a8f46;
  font-size: 22px; line-height: 44px; margin: 0 auto 10px; }
.tr-success-title { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.tr-success p { font-size: 13px; color: #6b5d52; line-height: 1.8; margin: 0 0 14px; }
.tr-faq { background: #fff; border: 1px solid #efe7dc; border-radius: 8px; padding: 12px 15px; margin-bottom: 8px; }
.tr-faq summary { font-size: 14px; font-weight: 600; cursor: pointer; color: #2a1f18; }
.tr-faq p { font-size: 13px; line-height: 1.8; color: #6b5d52; margin: 8px 0 0; }
.tr-bottom-cta { text-align: center; padding: 26px 0 8px; }
.tr-company { text-align: center; font-size: 10.5px; color: #b3a493; padding: 10px 0 2px; }
.tr-company a { color: #9a8a78; }
.tr-company a:hover { color: #b31219; text-decoration: none; }
.tr-disclaim { font-size: 11px; color: #a49a91; line-height: 1.8; text-align: center;
  border-top: 1px solid #eee4d8; padding-top: 16px; margin-top: 12px; }

/* 左侧招生海报 */
.sidenav-training { display: block; margin-top: 16px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; }
.sidenav-training img { display: block; width: 100%; height: auto; }
.sidenav-training-text { font-size: 11px; color: var(--ink-2); text-align: center; padding: 7px 4px 8px; line-height: 1.5; }
.sidenav-training:hover { text-decoration: none; }

@media (max-width: 760px) {
  .tr-hero { padding: 28px 20px 26px; }
  .tr-title { font-size: 30px; }
  .tr-sub { font-size: 13.5px; }
  .tr-price { font-size: 29px; }
  .tr-wrap { padding: 4px 12px 30px; }
  .tr-sec-title { font-size: 20px; }
  .tr-gains, .tr-two, .tr-field-row { grid-template-columns: 1fr; }
  .tr-price-card { flex-direction: column; align-items: stretch; }
  .tr-price-card .btn { width: 100%; }
  .tr-form-card { padding: 16px 14px; }
  .tr-hero-actions .btn { flex: 1; }
}

/* ---- 培训单页：独立页面，隐藏左右栏和站点导航 ---- */
body.page-training .topbar,
body.page-training .mobile-topbar,
body.page-training .sidenav,
body.page-training .rightside,
body.page-training .tabbar { display: none !important; }
body.page-training .layout { display: block; max-width: none; padding: 0; }
body.page-training .view { max-width: none; width: 100%; padding: 0; }
body.page-training .tr-page { min-height: 100vh; }
.tr-standalone-nav { position: sticky; top: 0; z-index: 60; display: flex; align-items: center;
  justify-content: space-between; padding: 12px max(22px, calc((100vw - 920px) / 2));
  background: rgba(251,248,243,.96); border-bottom: 1px solid #efe4d6; backdrop-filter: blur(6px); }
.tr-brand img { height: 28px; width: auto; display: block; }
.tr-back-home { font-size: 13px; color: #7b6a5b; }
.tr-back-home:hover { color: var(--brand); text-decoration: none; }
.tr-hero { padding-left: max(24px, calc((100vw - 920px) / 2)) !important;
  padding-right: max(24px, calc((100vw - 920px) / 2)) !important; }
.tr-wrap { max-width: 920px; }
.tr-fixed-cta { display: none; }

@media (max-width: 760px) {
  body.page-training .layout { padding-bottom: 0; }
  body.page-training .tr-page { padding-bottom: 78px; }
  .tr-standalone-nav { padding: 10px 16px; }
  .tr-brand img { height: 24px; }
  .tr-back-home { font-size: 12px; }
  .tr-hero { padding-left: 20px !important; padding-right: 20px !important; }
  .tr-fixed-cta { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 70; background: #fff; border-top: 1px solid #eee4d8;
    padding: 9px 16px calc(9px + env(safe-area-inset-bottom)); }
  .tr-fixed-cta > div { flex: 1; line-height: 1.25; }
  .tr-fixed-cta b { display: block; font-size: 18px; color: #b31219; }
  .tr-fixed-cta span { font-size: 10.5px; color: #9b8e82; }
  .tr-fixed-cta .btn { height: 38px; padding: 0 18px; }
}

/* 培训页：讲师 / 手机适配补充 */
#training-form, #tr-outline { scroll-margin-top: 78px; }
.tr-teacher { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #efe7dc;
  border-radius: 8px; padding: 15px 17px; }
.tr-teacher-avatar { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%; background: #fdecee;
  color: #b31219; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; }
.tr-teacher-body { flex: 1; min-width: 0; }
.tr-teacher-name { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.tr-teacher-v { font-size: 10px; color: #b31219; background: #fdecee; border-radius: 2px; padding: 1px 5px; font-weight: 400; }
.tr-teacher-role { font-size: 11px; color: #a49a91; margin-top: 2px; }
.tr-teacher-body p { font-size: 12.5px; line-height: 1.8; color: #6b5d52; margin: 7px 0 0; }
.tr-teacher-link { flex: 0 0 auto; font-size: 12px; color: #b31219; }
.tr-teacher-link:hover { text-decoration: none; color: #8f0d13; }
.tr-price-fine b { color: #b31219; }

@media (max-width: 760px) {
  .tr-teacher { align-items: flex-start; flex-wrap: wrap; padding: 13px 14px; }
  .tr-teacher-avatar { width: 44px; height: 44px; flex-basis: 44px; font-size: 19px; }
  .tr-teacher-body { flex: 1 1 calc(100% - 60px); }
  .tr-teacher-link { flex-basis: 100%; text-align: right; margin-top: 2px; }
  .tr-form .input { font-size: 16px; }
  .tr-fixed-cta > div b { font-size: 16px; }
  .tr-fixed-cta > div span { font-size: 9.5px; }
  .tr-fixed-cta .btn { height: 40px; }
  .tr-hero-meta { line-height: 1.7; }
  .tr-price-fine { line-height: 1.75; }
  .tr-hero-actions { gap: 8px; }
  .tr-hero-actions .btn { height: 42px; font-size: 13px; }
}

/* ============================================================ 公司信息 / 页脚版权 */
.site-footer { border-top: 1px solid var(--line); background: #fafafa; margin-top: 28px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 14px 16px 18px; text-align: center;
  font-size: 12px; color: #8c8c8c; line-height: 1.8; }
.footer-inner a { color: #8c8c8c; }
.footer-inner a:hover { color: var(--brand); text-decoration: none; }
.footer-main { font-size: 13px; color: #555; font-weight: 600; }
.footer-meta { color: #9a9a9a; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 7px 0; }
.footer-links a { color: #7a7a7a; }
.footer-links a:hover { color: var(--brand); text-decoration: none; }
.footer-note { color: #aaa; font-size: 11px; }
body.page-training .site-footer { display: none; }

.company-page { max-width: 760px; margin: 0 auto; padding: 20px 16px 30px; }
.company-head { padding: 4px 0 14px; }
.company-head h1 { font-size: 28px; margin: 5px 0 8px; }
.company-head p { font-size: 13px; color: #6b6b6b; margin: 0; }
.company-page .card { padding: 16px 18px; }
.company-page .kv { border-bottom: 1px solid #f2f2f2; padding: 9px 0; }
.company-page .kv:last-child { border-bottom: 0; }
.company-note { line-height: 1.8; margin: 12px 2px; }
.company-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.company-copy { margin-top: 24px; padding-top: 16px; border-top: 1px solid #eee; font-size: 11px;
  color: #aaa; text-align: center; }

@media (max-width: 999px) {
  .site-footer { margin-top: 0; border-top: 0; }
  .footer-inner { padding: 20px 16px calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px); }
  .footer-links { gap: 6px 12px; }
  .company-page .card { border-bottom: 0; }
}

/* 培训页：报名流程 / 定金 / 协议 */
.tr-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.tr-step { background: #fff; border: 1px solid #efe7dc; border-radius: 8px; padding: 12px 10px; text-align: center; }
.tr-step b { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: #fdecee;
  color: #b31219; align-items: center; justify-content: center; font-size: 12px; margin-bottom: 5px; }
.tr-step span { display: block; font-size: 12px; font-weight: 600; color: #3d3027; }
.tr-step em { display: block; font-style: normal; font-size: 10px; color: #a49a91; margin-top: 3px; }
.tr-deposit-note { margin-top: 10px; background: #fff7e8; border: 1px solid #f2dfb8; color: #7b5a20;
  border-radius: 8px; padding: 10px 13px; font-size: 12px; line-height: 1.7; }
.tr-deposit-note b { color: #a15c00; }
.tr-agree { display: flex; align-items: flex-start; gap: 7px; font-size: 12px; color: #5c5047; line-height: 1.7; margin: 4px 0 2px; }
.tr-agree input { margin-top: 3px; accent-color: var(--brand); }
.tr-agree a { color: #b31219; }
.tr-deposit-tip { background: #fafafa; border-radius: 6px; padding: 8px 10px; font-size: 11px; color: #8f8378;
  line-height: 1.65; margin: 8px 0 2px; }
.tr-deposit-tip b { color: #b31219; }

/* 协议页 */
.tr-agreement { max-width: 820px; margin: 0 auto; padding: 26px 20px 34px; }
.tr-agreement h1 { font-size: 30px; margin: 5px 0 10px; }
.tr-agreement-lead { font-size: 13px; color: #7b6a5b; line-height: 1.8; margin-bottom: 18px; }
.tr-agreement-sec { background: #fff; border: 1px solid #efe7dc; border-radius: 8px; padding: 14px 17px; margin-bottom: 9px; }
.tr-agreement-sec h2 { font-size: 15px; margin: 0 0 7px; color: #2a1f18; }
.tr-agreement-sec p { font-size: 13px; line-height: 1.9; color: #5c5047; margin: 0; }
.tr-agreement-sec strong { color: #b31219; }
.tr-agreement-actions { display: flex; gap: 8px; margin: 20px 0 6px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .tr-steps { grid-template-columns: repeat(2, 1fr); }
  .tr-step:last-child { grid-column: 1 / -1; }
  .tr-agreement { padding: 18px 14px 26px; }
  .tr-agreement h1 { font-size: 25px; }
  .tr-agreement-actions .btn { flex: 1; }
}

/* 管理员标识：低调的小「管」 */
.cm-role-mini { display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; line-height: 14px; height: 14px; min-width: 14px; padding: 0 3px;
  margin-left: 4px; border-radius: 2px; background: #fdf1f2; color: var(--brand);
  font-weight: 500; vertical-align: 1px; letter-spacing: 0; cursor: default; }
@media (max-width: 760px) { .cm-role-mini { font-size: 8.5px; height: 13px; line-height: 13px; } }

.bz-sum-name { color: var(--brand); font-weight: 700; }

/* 登录/注册优化 */
.auth-pass-wrap { position: relative; }
.auth-pass-wrap .input { padding-right: 58px; }
.auth-pass-toggle { position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: #8c8c8c; font-size: 12px; padding: 6px 8px; cursor: pointer; }
.auth-pass-toggle:hover { color: var(--brand); }
#nickname-hint { min-height: 18px; }

/* 后台可配置的首页公告 */
.site-announce { display: flex; align-items: flex-start; gap: 8px; padding: 9px 12px; margin: 0 0 12px;
  background: #fff8f8; border: 1px solid #f2d7d9; border-radius: 6px; color: #6b4b4d;
  font-size: 12px; line-height: 1.7; }
.site-announce span { flex: 0 0 auto; background: var(--brand); color: #fff; font-size: 10px;
  line-height: 17px; padding: 0 6px; border-radius: 2px; margin-top: 1px; }

/* 后台可配置的首页横幅 */
.home-banner { display: block; position: relative; border-radius: 7px; overflow: hidden; margin: 0 0 12px;
  background: #f5f0eb; }
.home-banner img { display: block; width: 100%; max-height: 220px; object-fit: cover; }
.home-banner span { position: absolute; left: 14px; bottom: 12px; color: #fff; font-size: 15px;
  font-weight: 700; text-shadow: 0 1px 8px rgba(0,0,0,.4); }

/* 首页多图轮播 */
.home-carousel { position: relative; border-radius: 8px; overflow: hidden; margin: 0 0 12px; background: #f5f0eb; }
.hc-track { position: relative; height: 220px; }
.hc-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.hc-slide.active { opacity: 1; pointer-events: auto; }
.hc-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc-slide span { position: absolute; left: 14px; bottom: 14px; color: #fff; font-size: 15px;
  font-weight: 700; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.hc-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(0,0,0,.28);
  color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.hc-arrow.prev { left: 10px; } .hc-arrow.next { right: 10px; }
.hc-arrow:hover { background: rgba(0,0,0,.45); }
.hc-dots { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: flex; gap: 5px; }
.hc-dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.55); cursor: pointer; }
.hc-dots button.active { background: #fff; }
.site-ad { padding-bottom: 10px; }
.site-ad-link { display: block; border-radius: 5px; overflow: hidden; }
.site-ad-link img { display: block; width: 100%; height: auto; }
.site-ad-dots { display: flex; gap: 4px; justify-content: center; padding-top: 6px; }
.site-ad-dots button { width: 5px; height: 5px; padding: 0; border: 0; border-radius: 50%;
  background: #d8d8d8; cursor: pointer; }
.site-ad-dots button.active { background: var(--brand); }
@media (max-width: 720px) { .hc-track { height: 160px; } }
