:root {
  --accent: #fc3c2d;
  --accent-soft: #ff6a3d;
  --ink: #1c1a18;
  --ink-2: #45403c;
  --muted: #8b8580;
  --muted-2: #a9a29c;
  --line: rgba(28, 26, 24, 0.08);
  --card: rgba(255, 255, 255, 0.95);
  --card-solid: #fff;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(60, 40, 30, 0.05), 0 6px 18px -12px rgba(60, 40, 30, 0.18);
  --shadow-hover: 0 2px 6px rgba(60, 40, 30, 0.07), 0 14px 32px -16px rgba(60, 40, 30, 0.28);
  --wrap: 1200px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.7;
  background: #faf7f3;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: rgba(252, 60, 45, 0.18); }
.muted { color: var(--muted); }
.sm { font-size: 12.5px; }
.sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; font-weight: 400; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 14px; border-radius: 6px; }

/* ---------- 背景层 ---------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("/assets/img/bg.jpg") center top / cover no-repeat;
  background-attachment: fixed;
}
.bg-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 253, 250, 0.52) 0%,
    rgba(255, 251, 247, 0.64) 38%,
    rgba(255, 249, 244, 0.8) 100%
  );
}

/* ---------- 顶部细条 ---------- */
.header-banner {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 12.5px;
  color: var(--ink-2);
}
.banner-in {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.banner-left { display: flex; align-items: center; gap: 7px; color: #6f6862; letter-spacing: 0.2px; }
.banner-left .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(252, 60, 45, 0.14);
}
.top-search {
  display: flex;
  align-items: center;
  height: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(28, 26, 24, 0.1);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.top-search:focus-within {
  border-color: rgba(252, 60, 45, 0.5);
  box-shadow: 0 0 0 3px rgba(252, 60, 45, 0.1);
}
.search-type {
  padding: 0 8px 0 12px;
  color: var(--muted);
  font-size: 12px;
  border-right: 1px solid var(--line);
  line-height: 1;
  white-space: nowrap;
}
.search-input {
  border: 0; outline: 0; background: transparent;
  width: 132px; height: 100%;
  padding: 0 8px; font-size: 12.5px; color: var(--ink);
  font-family: inherit;
}
.search-input::placeholder { color: var(--muted-2); }
.search-btn {
  border: 0; background: transparent; cursor: pointer;
  color: var(--muted); padding: 0 10px 0 4px;
  display: flex; align-items: center;
}
.search-btn:hover { color: var(--accent); }

/* ---------- 主头部 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.5) blur(14px);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid rgba(28, 26, 24, 0.07);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}
.header-in { height: 64px; display: flex; align-items: center; gap: 8px; }
.logo { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.logo-mark { display: flex; filter: drop-shadow(0 2px 5px rgba(252, 60, 45, 0.28)); }
.logo-text {
  font-size: 19.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--ink);
  white-space: nowrap;
  transition: color 0.18s;
}
.logo:hover .logo-text { color: var(--accent); }

.nav { margin-left: 18px; flex: 1; }
.nav-ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; height: 64px;
}
.nav-ul > li { height: 100%; position: relative; }
.nav-ul > li > a {
  position: relative;
  display: flex; align-items: center; height: 100%;
  padding: 0 15px;
  font-size: 15px;
  color: var(--ink-2);
  transition: color 0.16s;
}
.nav-ul > li > a:hover,
.nav-ul > li.on > a { color: var(--accent); }
.hob {
  position: absolute;
  left: 50%; bottom: 12px;
  width: 0; height: 3px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-ul > li > a:hover .hob,
.nav-ul > li.on > a .hob { width: 22px; }
.nav-ul > li.on > a { font-weight: 600; }

.nav-login > a { padding-right: 4px; }
.nav-user { display: flex; align-items: center; gap: 2px; margin-left: 6px; }
.user-chip {
  font-size: 13.5px; color: var(--ink) !important;
  background: rgba(252, 60, 45, 0.09);
  border-radius: 14px; height: 28px !important;
  padding: 0 12px !important;
  max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-admin > a { color: #b4462f !important; font-weight: 600; }
.dot-badge {
  position: absolute; top: 14px; right: 2px;
  min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 8px; background: var(--accent); color: #fff;
  font-size: 10px; font-style: normal; line-height: 15px; text-align: center;
}
.caret {
  width: 0; height: 0; margin-left: 5px;
  border-left: 3.5px solid transparent; border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor; opacity: 0.5;
}
.me-menu {
  display: none;
  position: absolute; top: 60px; right: 0;
  width: 196px; padding: 8px;
  background: #fff; border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.35);
  z-index: 60;
}
.nav-me:hover .me-menu,
.nav-me:focus-within .me-menu { display: block; }
.me-menu a, .me-menu button {
  display: block; width: 100%;
  padding: 8px 10px; border: 0; background: transparent;
  text-align: left; font-size: 13.5px; color: var(--ink-2);
  border-radius: 6px; cursor: pointer; font-family: inherit;
}
.me-menu a:hover, .me-menu button:hover { background: rgba(252, 60, 45, 0.07); color: var(--accent); }
.me-hd {
  padding: 6px 10px 8px; margin-bottom: 4px;
  font-size: 12.5px; color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.me-hd em { font-style: normal; color: var(--accent); }
.me-sign { color: var(--accent) !important; font-weight: 600; }
.me-out { border-top: 1px solid var(--line); margin-top: 4px; color: var(--muted) !important; }

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 40px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 8px 9px;
  flex-direction: column; justify-content: space-between;
}
.menu-toggle span { display: block; height: 2px; background: var(--ink-2); border-radius: 2px; }

/* ---------- 主区域 ---------- */
.main { padding: 22px 20px 52px; }
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: 20px;
  align-items: start;
}
.box {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 18px 20px 20px;
}
.box > .sec-t:first-child { margin-top: 0; }

.page-head { margin: 4px 2px 14px; }
.page-head.row-head .page-title { margin-bottom: 2px; }
.page-head.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.page-title::before {
  content: "";
  width: 4px; height: 20px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-soft));
}
.page-sub {
  margin: 7px 0 0 14px;
  font-size: 13.5px;
  color: #4a443e;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

/* ---------- 文章卡片 ---------- */
.post-list { display: flex; flex-direction: column; gap: 12px; }
.post-item {
  display: flex;
  gap: 16px;
  padding: 13px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.22s, transform 0.22s, background 0.22s;
}
.post-item:hover {
  background: var(--card-solid);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}
.thumb {
  flex: 0 0 236px;
  width: 236px;
  aspect-ratio: 4 / 3;
  border-radius: 7px;
  overflow: hidden;
  background: #ece7e1;
  position: relative;
}
.thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.2, 0, 0.2, 1);
}
.post-item:hover .thumb img { transform: scale(1.045); }

.info { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.cats { display: flex; gap: 6px; flex-wrap: wrap; }
.cat {
  font-size: 12px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  font-weight: 500;
}
.cat.draft { color: #8b8580; background: rgba(28, 26, 24, 0.07); }
.post-t {
  margin: 8px 0 7px;
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-t a { transition: color 0.16s; }
.post-t a:hover { color: var(--accent); }
.excerpt {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: #7d766f;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.meta {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--muted-2);
}
.meta .views, .meta .mini-stat { display: inline-flex; align-items: center; gap: 4px; }
.meta .author { margin-left: auto; color: var(--muted); }

.mini-stat svg { width: 13px; height: 13px; }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 22px 0 4px; }
.pg {
  min-width: 34px; height: 34px;
  padding: 0 11px;
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  font-size: 13px;
  background: var(--card);
  border: 1px solid rgba(28, 26, 24, 0.08);
  border-radius: 7px;
  color: var(--ink-2);
  transition: all 0.16s;
}
.pg:hover { color: var(--accent); border-color: rgba(252, 60, 45, 0.4); background: #fff; }
.pg.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.pg.gap { border: 0; background: transparent; min-width: 16px; padding: 0; color: var(--muted-2); }
.pg.prev svg { margin-right: 2px; }
.pg.next svg { margin-left: 2px; transform: rotate(180deg); }

/* ---------- 侧栏 ---------- */
.sidebar { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 78px; }
.widget { padding: 15px 16px 16px; }
.widget-t {
  margin: 0 0 12px;
  font-size: 14.5px;
  font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  letter-spacing: 0.3px;
}
.widget-t::before {
  content: "";
  width: 3px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-soft));
}
.notice p { margin: 0 0 8px; font-size: 13px; color: #6f6862; line-height: 1.75; }
.notice-sub { font-size: 12px !important; color: var(--muted-2) !important; margin: 0 !important; }
.notice-p { font-size: 13px; color: #6f6862; margin: 0 0 10px; line-height: 1.7; }

.hot-list { list-style: none; margin: 0; padding: 0; }
.hot-list li + li { border-top: 1px dashed rgba(28, 26, 24, 0.07); }
.hot-list a { display: flex; align-items: center; gap: 9px; padding: 8px 0; font-size: 13.2px; color: var(--ink-2); }
.hot-list a:hover .hot-t { color: var(--accent); }
.muted-li { padding: 8px 0; font-size: 13px; color: var(--muted-2); }
.rank {
  flex: 0 0 18px; height: 18px;
  border-radius: 4px;
  background: rgba(28, 26, 24, 0.06);
  color: var(--muted);
  font-size: 11px; font-style: normal;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600;
}
.rank.top { background: rgba(252, 60, 45, 0.12); color: var(--accent); }
.hot-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 0.16s; }
.hot-v { flex: 0 0 auto; font-size: 11.5px; color: var(--muted-2); }

.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li + li { margin-top: 6px; }
.cat-list a {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 9px; border-radius: 6px;
  font-size: 13.5px; color: var(--ink-2);
  transition: background 0.16s;
}
.cat-list a:hover { background: rgba(252, 60, 45, 0.06); }
.cat-list li.on a { background: rgba(252, 60, 45, 0.08); color: var(--accent); font-weight: 600; }
.cbar { width: 3px; height: 13px; border-radius: 2px; }
.cname { flex: 1; }
.cnum { font-size: 12px; color: var(--muted-2); }

/* ---------- 头像 / 角色 ---------- */
.av {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  color: #fff; font-size: 14px; font-weight: 600;
  flex: 0 0 auto; user-select: none;
}
.av.sm { width: 30px; height: 30px; font-size: 13px; }
.av.lg { width: 56px; height: 56px; font-size: 24px; border-radius: 16px; }
.role-chip {
  display: inline-block; padding: 1px 8px; border-radius: 10px;
  font-size: 11.5px; line-height: 18px; font-weight: 600;
}
.role-admin { background: rgba(252, 60, 45, 0.12); color: #d4380d; }
.role-author { background: rgba(63, 122, 232, 0.12); color: #2f5fc4; }
.role-user { background: rgba(28, 26, 24, 0.07); color: #6f6862; }

/* ---------- 正文页 ---------- */
.single { padding: 26px 30px 22px; }
.crumbs {
  font-size: 12.5px; color: var(--muted-2);
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 14px;
}
.crumbs a:hover { color: var(--accent); }
.crumbs em { font-style: normal; color: var(--muted); }
.single-t { margin: 0 0 14px; font-size: 27px; line-height: 1.45; letter-spacing: 0.4px; font-weight: 700; }
.single-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 12.5px; color: var(--muted-2);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.single-meta .author { color: var(--ink-2); font-weight: 500; }
.single-meta .views { display: inline-flex; align-items: center; gap: 4px; }
.edit-link { margin-left: auto; color: var(--accent); }
.single-cover { margin: 18px 0 6px; border-radius: 8px; overflow: hidden; background: #eee; }
.single-cover img { width: 100%; max-height: 420px; object-fit: cover; }

.single-body {
  padding: 20px 0 8px;
  font-size: 16px;
  line-height: 1.95;
  color: #2f2b28;
  overflow: hidden;
}
.single-body p { margin: 0 0 17px; }
.single-body .art-h2 {
  font-size: 20px; font-weight: 800; letter-spacing: 0.3px;
  margin: 26px 0 12px; padding-left: 11px;
  border-left: 4px solid var(--accent);
  line-height: 1.5;
}
.art-fig { margin: 16px 0; }
.art-fig img { width: 100%; border-radius: 8px; display: block; background: #eee; }
.art-fig figcaption { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 7px; line-height: 1.6; }
.fig-center { float: none; margin-left: auto; margin-right: auto; }
.fig-left { float: left; margin: 6px 22px 12px 0; }
.fig-right { float: right; margin: 6px 0 12px 22px; }

/* 划线批注 */
.anno {
  background: linear-gradient(transparent 62%, rgba(252, 60, 45, 0.16) 62%);
  cursor: pointer;
}
.anno:hover { background: linear-gradient(transparent 62%, rgba(252, 60, 45, 0.26) 62%); }
.anno-dot {
  display: inline-block;
  width: 15px; height: 15px; margin-left: 2px;
  position: relative; top: 3px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff; font-style: normal; font-size: 10px;
  line-height: 15px; text-align: center;
  cursor: pointer; user-select: none; vertical-align: baseline;
  box-shadow: 0 1px 4px -1px rgba(252, 60, 45, 0.7);
}
.anno-dot::after { content: attr(data-n); }
.anno-dot:hover { transform: scale(1.15); }
.anno-hint {
  margin: 6px 0 0; padding: 9px 12px;
  font-size: 12px; color: var(--muted);
  background: rgba(28, 26, 24, 0.03);
  border-radius: 6px; border: 1px dashed rgba(28, 26, 24, 0.1);
}

/* 选区浮动按钮 */
.sel-tip {
  position: absolute; z-index: 300;
  display: none;
  padding: 7px 12px;
  background: #2b2723; color: #fff;
  border-radius: 18px; font-size: 12.5px;
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.5);
  cursor: pointer; white-space: nowrap;
}
.sel-tip.on { display: block; }
.sel-tip b { color: #ffb08a; }

/* 操作条 */
.act-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 0 4px;
  border-top: 1px solid var(--line);
  margin-top: 10px;
}
.act {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 16px;
  border-radius: 19px; border: 1px solid rgba(28, 26, 24, 0.1);
  background: #fff; color: var(--ink-2);
  font-size: 13.5px; font-family: inherit; cursor: pointer;
  transition: all 0.16s;
}
.act em { font-style: normal; color: var(--muted-2); font-size: 12.5px; }
.act:hover { border-color: rgba(252, 60, 45, 0.4); color: var(--accent); }
.act.on { background: rgba(252, 60, 45, 0.08); border-color: rgba(252, 60, 45, 0.35); color: var(--accent); }
.act.on svg { fill: rgba(252, 60, 45, 0.16); }
.act.on em { color: var(--accent); }
.act.share:hover { color: #2f5fc4; border-color: rgba(63, 122, 232, 0.4); }
.single-foot { padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); }
.back { font-size: 13.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.back:hover { color: var(--accent); }

/* ---------- 评论 ---------- */
.sec-t {
  font-size: 16px; font-weight: 700; margin: 0 0 14px;
  display: flex; align-items: center; gap: 8px;
}
.sec-t em { font-style: normal; font-size: 13px; color: var(--muted); font-weight: 400; }
.sec-t.sm { font-size: 14px; }
.cmt-sec { margin-top: 16px; }
.cmt-login {
  padding: 14px; text-align: center; font-size: 13.5px; color: var(--muted);
  background: rgba(28, 26, 24, 0.03); border-radius: 8px;
}
.cmt-login a { color: var(--accent); font-weight: 600; }
.cmt-form { position: relative; }
.cmt-form textarea, .ed-desc, #upMsg, .ph-txtarea {
  width: 100%; padding: 11px 13px;
  border: 1px solid rgba(28, 26, 24, 0.12);
  border-radius: 8px; font-family: inherit; font-size: 14px;
  line-height: 1.7; resize: vertical; outline: 0;
  background: rgba(255, 255, 255, 0.92);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.cmt-form textarea:focus, .ed-desc:focus, #upMsg:focus {
  border-color: rgba(252, 60, 45, 0.5);
  box-shadow: 0 0 0 3px rgba(252, 60, 45, 0.1);
}
.cmt-form-ft { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; gap: 10px; }
.cmt-tools { display: flex; align-items: center; gap: 4px; }
.tool {
  width: 30px; height: 30px; border-radius: 6px;
  border: 1px solid transparent; background: transparent;
  color: var(--muted); cursor: pointer; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center;
}
.tool:hover { background: rgba(28, 26, 24, 0.05); color: var(--accent); }
.cmt-count { font-size: 11.5px; color: var(--muted-2); margin-left: 4px; }
.cmt-extra:empty { display: none; }
.cmt-extra { margin-top: 8px; }
.cmt-preview { position: relative; display: inline-block; }
.cmt-preview img { max-height: 120px; border-radius: 6px; }
.cmt-preview button {
  position: absolute; top: -6px; right: -6px;
  width: 20px; height: 20px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, 0.65); color: #fff; cursor: pointer; line-height: 1;
}
.emoji-bar {
  display: flex; flex-wrap: wrap; gap: 4px;
  padding: 8px; margin-top: 6px;
  background: rgba(28, 26, 24, 0.03); border-radius: 8px;
}
.emoji-bar button {
  border: 0; background: transparent; font-size: 19px;
  cursor: pointer; padding: 2px 4px; border-radius: 5px; line-height: 1.3;
}
.emoji-bar button:hover { background: rgba(252, 60, 45, 0.1); }

.cmt-list { list-style: none; margin: 18px 0 0; padding: 0; }
.cmt { display: flex; gap: 11px; padding: 14px 0; }
.cmt + .cmt, .cmt-replies .cmt { border-top: 1px solid rgba(28, 26, 24, 0.06); }
.cmt-main { flex: 1; min-width: 0; }
.cmt-hd { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.cmt-hd b { color: var(--ink); font-weight: 600; }
.cmt-hd time { margin-left: auto; font-size: 11.5px; color: var(--muted-2); }
.cmt-text { font-size: 14.5px; line-height: 1.8; margin-top: 5px; word-break: break-word; white-space: pre-wrap; }
.cmt-quote {
  margin: 7px 0 0; padding: 6px 11px;
  border-left: 3px solid rgba(252, 60, 45, 0.4);
  background: rgba(252, 60, 45, 0.05);
  border-radius: 0 5px 5px 0;
  font-size: 13px; color: #6f6862; line-height: 1.65;
}
.cmt-img img { max-height: 180px; border-radius: 7px; margin-top: 8px; }
.cmt-emoji { font-size: 24px; line-height: 1.4; display: inline-block; margin-top: 6px; }
.cmt-ft { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.cmt-ft button {
  border: 0; background: transparent; padding: 0;
  font-size: 12px; color: var(--muted); cursor: pointer;
  font-family: inherit; display: inline-flex; align-items: center; gap: 4px;
}
.cmt-ft button:hover { color: var(--accent); }
.cmt-ft button.on { color: var(--accent); }
.cmt-ft svg { width: 14px; height: 14px; }
.cmt-ft button.on svg { fill: rgba(252, 60, 45, 0.2); }
.cmt-replies { list-style: none; margin: 4px 0 0; padding: 0 0 0 4px; background: rgba(28, 26, 24, 0.02); border-radius: 8px; padding: 2px 12px; }
.cmt-replies .cmt { padding: 11px 0; }
.cmt-empty { text-align: center; color: var(--muted-2); font-size: 13px; padding: 18px 0 6px; }
.reply-hint {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--accent);
  background: rgba(252, 60, 45, 0.06);
  padding: 6px 10px; border-radius: 6px; margin-top: 8px;
}
.reply-hint button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; }

/* 批注浮层 */
.anno-pop {
  position: absolute; z-index: 400;
  width: 320px; max-width: calc(100vw - 24px);
  background: #fff; border-radius: 10px;
  border: 1px solid rgba(28, 26, 24, 0.1);
  box-shadow: 0 22px 50px -20px rgba(0, 0, 0, 0.4);
  padding: 12px 14px 10px;
}
.anno-pop .ap-quote {
  font-size: 12.5px; color: #6f6862; line-height: 1.6;
  padding: 6px 9px; margin-bottom: 8px;
  background: rgba(252, 60, 45, 0.05);
  border-left: 3px solid rgba(252, 60, 45, 0.4);
  border-radius: 0 5px 5px 0;
  max-height: 72px; overflow: auto;
}
.anno-pop .ap-list { max-height: 260px; overflow: auto; }
.ap-item { padding: 8px 0; }
.ap-item + .ap-item { border-top: 1px solid rgba(28, 26, 24, 0.06); }
.ap-item .ap-hd { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.ap-item .ap-hd b { color: var(--ink); }
.ap-item .ap-hd time { margin-left: auto; font-size: 11px; color: var(--muted-2); }
.ap-item .ap-tx { font-size: 13.5px; line-height: 1.7; margin-top: 3px; white-space: pre-wrap; word-break: break-word; }
.ap-item .ap-tx img { max-height: 130px; border-radius: 6px; margin-top: 5px; }
.ap-ft { display: flex; align-items: center; gap: 12px; margin-top: 5px; }
.ap-ft button { border: 0; background: transparent; padding: 0; font-size: 11.5px; color: var(--muted); cursor: pointer; font-family: inherit; }
.ap-ft button.on { color: var(--accent); }
.ap-close { position: absolute; top: 8px; right: 10px; border: 0; background: transparent; font-size: 16px; color: var(--muted-2); cursor: pointer; line-height: 1; }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(28, 26, 24, 0.42);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal {
  width: 100%; max-width: 480px;
  background: #fff; border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.5);
}
.modal h3 { margin: 0 0 4px; font-size: 16px; }
.modal .m-sub { font-size: 12.5px; color: var(--muted); margin: 0 0 12px; }
.modal .m-quote {
  font-size: 13px; color: #6f6862; line-height: 1.7;
  padding: 8px 11px; margin-bottom: 12px;
  background: rgba(252, 60, 45, 0.05);
  border-left: 3px solid rgba(252, 60, 45, 0.4);
  border-radius: 0 5px 5px 0;
  max-height: 110px; overflow: auto;
}
.modal .m-ft { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

/* ---------- 相册书 ---------- */
.album-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.album-card {
  display: block; background: var(--card); border-radius: 10px;
  overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition: transform 0.22s, box-shadow 0.22s;
}
.album-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.album-cover { position: relative; aspect-ratio: 4 / 3; background: #ece7e1; overflow: hidden; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.album-card:hover .album-cover img { transform: scale(1.04); }
.album-count {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(0, 0, 0, 0.55); color: #fff;
  font-size: 11px; padding: 2px 8px; border-radius: 10px;
}
.album-info { padding: 11px 13px 12px; }
.album-info h3 { margin: 0 0 4px; font-size: 15px; font-weight: 700; line-height: 1.5; }
.album-info p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; min-height: 38px; }
.album-info .meta { padding-top: 6px; font-size: 11.5px; }

.album-page { padding: 4px 0 30px; }
.album-head { margin-bottom: 14px; }
.album-head .single-t { margin-bottom: 10px; }
.album-desc { margin: 12px 0 0; font-size: 14px; color: #5f5952; line-height: 1.8; }
.viewer { padding: 0; overflow: hidden; }
.stage { position: relative; background: #1a1817; overflow: hidden; touch-action: pan-y; }
.track { display: flex; transition: transform 0.36s cubic-bezier(0.22, 0.61, 0.36, 1); }
.slide { flex: 0 0 100%; display: flex; align-items: center; justify-content: center; min-height: 320px; }
.slide img { max-width: 100%; max-height: 74vh; width: auto; height: auto; object-fit: contain; display: block; }
.nav-prev, .nav-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, 0.86);
  color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.6);
}
.nav-prev { left: 14px; }
.nav-next { right: 14px; transform: translateY(-50%) rotate(180deg); }
.nav-prev:hover, .nav-next:hover { background: #fff; color: var(--accent); }
.counter {
  position: absolute; right: 14px; bottom: 12px;
  background: rgba(0, 0, 0, 0.55); color: #fff;
  font-size: 11.5px; padding: 3px 9px; border-radius: 10px;
}
.counter b { color: #ffb08a; }
.swipe-tip {
  position: absolute; left: 14px; bottom: 12px;
  font-size: 11.5px; color: rgba(255, 255, 255, 0.55);
}
.dots { display: flex; justify-content: center; gap: 6px; padding: 12px 0 4px; background: #fff; }
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(28, 26, 24, 0.16); cursor: pointer; transition: all 0.2s;
}
.dot.on { width: 18px; border-radius: 3px; background: var(--accent); }
.viewer .act-bar { padding: 10px 18px 14px; border-top: 0; margin: 0; background: #fff; }
.ph-panel { padding: 4px 20px 20px; border-top: 1px solid var(--line); }
.ph-txt { font-size: 15.5px; line-height: 1.9; color: #2f2b28; margin: 12px 0 0; white-space: pre-wrap; }
.ph-txt.clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ph-more { border: 0; background: transparent; color: var(--accent); font-size: 12.5px; cursor: pointer; padding: 4px 0; font-family: inherit; }
.ph-cmt { margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(28, 26, 24, 0.1); }

/* ---------- 我的 ---------- */
.me-wrap { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.me-wrap.wide { max-width: 100%; }
.me-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.me-id { display: flex; align-items: center; gap: 14px; }
.me-id h1 { margin: 0 0 6px; font-size: 21px; font-weight: 700; }
.me-id p { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.me-points { text-align: right; }
.pt { display: flex; align-items: baseline; gap: 6px; justify-content: flex-end; }
.pt b { font-size: 26px; color: var(--accent); letter-spacing: -0.5px; }
.pt span { font-size: 12.5px; color: var(--muted); }
.me-points .btn { margin-top: 6px; }
.me-points p { margin: 6px 0 0; }

.stats-row, .mg-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mg-stats { grid-template-columns: repeat(5, 1fr); margin-bottom: 16px; }
.stat {
  background: var(--card); border-radius: 8px; padding: 13px 15px;
  box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, 0.7);
  text-align: center;
}
.stat b { display: block; font-size: 21px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.stat span { font-size: 12px; color: var(--muted); }
.stat em { display: block; font-style: normal; font-size: 11px; color: var(--muted-2); margin-top: 2px; }

.me-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.me-link {
  display: block; padding: 15px 17px;
  background: var(--card); border-radius: 8px;
  box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, 0.7);
  transition: transform 0.2s, box-shadow 0.2s;
}
.me-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.me-link b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.me-link span { font-size: 12.5px; color: var(--muted); }
.me-link:hover b { color: var(--accent); }

.notice-box p { font-size: 14px; color: #5f5952; line-height: 1.85; margin: 0 0 10px; }
.tag-wait {
  display: inline-block; padding: 6px 12px; border-radius: 6px;
  background: rgba(250, 173, 20, 0.14); color: #a86b00; font-size: 13px;
}
.points-hero { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.pt-big b { display: block; font-size: 44px; line-height: 1.1; color: var(--accent); font-weight: 800; letter-spacing: -1px; }
.pt-big span { font-size: 13px; color: var(--muted); }
.pt-info { flex: 1; min-width: 220px; }
.pt-info p { margin: 0 0 8px; font-size: 13.5px; color: #5f5952; }
.rule-list { margin: 0; padding-left: 20px; font-size: 13.5px; color: #5f5952; line-height: 2; }

.upgrade-box textarea { margin: 10px 0; }
.fav-list, .my-cmt-list { list-style: none; margin: 0; padding: 6px 0; }
.fav-item { display: flex; align-items: center; gap: 12px; padding: 10px 18px; }
.fav-item + .fav-item { border-top: 1px solid rgba(28, 26, 24, 0.06); }
.fav-thumb { width: 76px; height: 56px; border-radius: 6px; overflow: hidden; background: #eee; flex: 0 0 auto; }
.fav-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fav-item > div { flex: 1; min-width: 0; }
.fav-t { font-size: 14.5px; font-weight: 600; }
.fav-t:hover { color: var(--accent); }
.my-cmt { display: flex; gap: 12px; padding: 12px 18px; align-items: flex-start; }
.my-cmt + .my-cmt { border-top: 1px solid rgba(28, 26, 24, 0.06); }
.my-cmt-main { flex: 1; min-width: 0; font-size: 14px; line-height: 1.75; }
.quote-mini { font-size: 12.5px; color: var(--muted); background: rgba(28, 26, 24, 0.04); padding: 2px 7px; border-radius: 4px; display: inline-block; margin-bottom: 4px; }
.empty-cell { text-align: center; color: var(--muted); padding: 26px 0; font-size: 13.5px; list-style: none; }
.empty-cell a { color: var(--accent); }

/* ---------- 编辑器 ---------- */
.editor-wrap { max-width: 880px; margin: 0 auto; }
.ed-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 10px; flex-wrap: wrap; }
.ed-actions { display: flex; align-items: center; gap: 8px; }
.ed-wordcount { font-size: 12.5px; color: var(--muted); }
.editor { padding: 22px 24px 24px; }
.ed-title {
  width: 100%; border: 0; outline: 0; background: transparent;
  font-size: 26px; font-weight: 700; font-family: inherit;
  padding: 4px 0 12px; border-bottom: 1px solid var(--line);
  letter-spacing: 0.3px; color: var(--ink);
}
.ed-title::placeholder { color: #c9c2bb; font-weight: 600; }
.ed-sub { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; flex-wrap: wrap; }
.ed-select {
  height: 34px; padding: 0 10px; border-radius: 7px;
  border: 1px solid rgba(28, 26, 24, 0.12); background: #fff;
  font-family: inherit; font-size: 13.5px; color: var(--ink); outline: 0;
}
.ed-tip { font-size: 12px; color: var(--muted-2); }
.ed-desc { margin-top: 12px; }
.ed-cover-preview { position: relative; margin: 12px 0; max-width: 380px; }
.ed-cover-preview img { width: 100%; border-radius: 8px; }
.ed-cover-preview button { position: absolute; top: 8px; right: 8px; }
.ed-blocks { margin: 18px 0 6px; }
.blk { position: relative; margin-bottom: 8px; }
/* 编辑器里的段落间距/字号与正文 .single-body 对齐，写的时候什么样，发布后就什么样 */
.blk-p { margin-bottom: 17px; }
.blk-h2 { margin: 18px 0 10px; }
.blk-img { margin: 16px 0; }
.blk-p textarea::placeholder { color: #b8b1aa; }
.blk-p textarea {
  width: 100%; border: 0; outline: 0; resize: none;
  font-family: inherit; font-size: 16px; line-height: 1.95; color: #2f2b28;
  padding: 0 34px 0 0; background: transparent; overflow: hidden;
}
.blk-h2 input {
  width: 100%; border: 0; outline: 0; background: transparent;
  font-family: inherit; font-size: 20px; font-weight: 800;
  padding: 2px 34px 2px 0; color: var(--ink);
  border-left: 4px solid var(--accent); padding-left: 11px;
}
.blk-tools {
  position: absolute; right: 0; top: 8px;
  display: flex; gap: 2px; opacity: 0; transition: opacity 0.16s;
}
.blk:hover .blk-tools, .blk:focus-within .blk-tools { opacity: 1; }
.blk-tools button {
  width: 26px; height: 26px; border-radius: 6px;
  border: 1px solid var(--line); background: #fff;
  color: var(--muted); cursor: pointer; font-size: 12px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit;
}
.blk-tools button:hover { color: var(--accent); border-color: rgba(252, 60, 45, 0.4); }
.blk-img { padding: 8px 0; }
.blk-img .img-box { display: inline-block; max-width: 100%; position: relative; }
.blk-img img { border-radius: 8px; }
.blk-img.float-left .img-box { float: left; margin: 4px 20px 12px 0; }
.blk-img.float-right .img-box { float: right; margin: 4px 0 12px 20px; }
.blk-img.float-center .img-box { display: block; margin: 8px auto; }
.img-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; font-size: 12px; color: var(--muted); }
.img-ctl input[type="range"] { width: 120px; }
.img-ctl button {
  border: 1px solid var(--line); background: #fff; border-radius: 5px;
  padding: 3px 8px; font-size: 11.5px; cursor: pointer; color: var(--ink-2); font-family: inherit;
}
.img-ctl button.on { background: rgba(252, 60, 45, 0.1); border-color: rgba(252, 60, 45, 0.4); color: var(--accent); }
.ed-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 14px; border-top: 1px dashed rgba(28, 26, 24, 0.12); }
.tool-btn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 34px; padding: 0 13px; border-radius: 7px;
  border: 1px solid rgba(28, 26, 24, 0.12); background: #fff;
  font-size: 13px; color: var(--ink-2); cursor: pointer; font-family: inherit;
}
.tool-btn:hover { border-color: rgba(252, 60, 45, 0.4); color: var(--accent); }
.ed-hint { font-size: 11.5px; color: var(--muted-2); }
.ed-rule { font-size: 12.5px; color: #5f5952; text-align: center; margin-top: 12px; text-shadow: 0 1px 2px rgba(255,255,255,.9); }
.ed-rule b { color: var(--accent); }
.alb-photos { display: flex; flex-direction: column; gap: 12px; margin: 14px 0; }
.alb-item {
  display: flex; gap: 12px; padding: 10px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  align-items: flex-start;
}
.alb-item img { width: 128px; height: 96px; object-fit: cover; border-radius: 7px; flex: 0 0 auto; background: #eee; }
.alb-item textarea {
  flex: 1; min-height: 78px; border: 1px solid rgba(28, 26, 24, 0.1);
  border-radius: 7px; padding: 10px 12px; font-family: inherit; font-size: 15.5px;
  line-height: 1.9; resize: vertical; outline: 0;
}
.alb-item .alb-tools { display: flex; flex-direction: column; gap: 4px; }
.alb-idx { font-size: 11px; color: var(--muted-2); }

/* ---------- 管理 ---------- */
.tabs-bar { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs-item {
  padding: 8px 15px; border-radius: 7px; font-size: 13.5px;
  background: rgba(255, 255, 255, 0.8); border: 1px solid rgba(28, 26, 24, 0.08);
  color: var(--ink-2);
}
.tabs-item:hover { color: var(--accent); }
.tabs-item.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.table-wrap { padding: 4px 0; overflow-x: auto; }
.grid-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.grid-table th {
  text-align: left; font-size: 12px; font-weight: 600; color: var(--muted);
  padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.grid-table td { padding: 11px 16px; border-bottom: 1px solid rgba(28, 26, 24, 0.05); vertical-align: middle; }
.grid-table tr:last-child td { border-bottom: 0; }
.grid-table td a:hover { color: var(--accent); }
.tcell { max-width: 380px; }
.tcell a { font-weight: 600; }
.msg-cell { max-width: 320px; color: #5f5952; line-height: 1.65; font-size: 13px; }
.opcell { white-space: nowrap; text-align: right; }
.opcell > * + * { margin-left: 5px; }
.mini-btn {
  display: inline-flex; align-items: center; height: 27px; padding: 0 10px;
  border-radius: 6px; border: 1px solid rgba(28, 26, 24, 0.12);
  background: #fff; font-size: 12px; color: var(--ink-2); cursor: pointer;
  font-family: inherit; white-space: nowrap;
}
.mini-btn:hover { border-color: rgba(252, 60, 45, 0.4); color: var(--accent); }
.mini-btn.danger { color: #cf2f1b; border-color: rgba(207, 47, 27, 0.25); }
.mini-btn.danger:hover { background: rgba(207, 47, 27, 0.07); }
.mini-btn.ok { color: #1a7f37; border-color: rgba(26, 127, 55, 0.3); }
.mini-btn.ok:hover { background: rgba(26, 127, 55, 0.07); }
.tag-ok { color: #1a7f37; font-size: 12.5px; }
.tag-no { color: #cf2f1b; font-size: 12.5px; }
.draft-tag { color: #a86b00; font-size: 11.5px; }

/* ---------- 登录 ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 40px 0 60px; }
.auth { width: 100%; max-width: 420px; padding: 30px 32px 26px; }
.auth-tabs {
  display: flex; gap: 6px; margin-bottom: 22px;
  background: rgba(28, 26, 24, 0.045);
  padding: 4px; border-radius: 9px;
}
.tab {
  flex: 1; border: 0; background: transparent;
  height: 34px; border-radius: 7px;
  font-size: 13.5px; color: var(--muted);
  cursor: pointer; font-family: inherit;
  transition: all 0.18s;
}
.tab.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07); }
.auth-t { margin: 0 0 6px; font-size: 21px; font-weight: 700; letter-spacing: 0.3px; }
.auth-sub { margin: 0 0 20px; font-size: 13px; color: var(--muted); }
.auth-form[hidden] { display: none; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; }
.field input {
  width: 100%; height: 42px;
  border: 1px solid rgba(28, 26, 24, 0.12);
  border-radius: 8px; padding: 0 13px;
  font-size: 14px; font-family: inherit;
  background: rgba(255, 255, 255, 0.9); outline: 0;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.field input:focus { border-color: rgba(252, 60, 45, 0.55); box-shadow: 0 0 0 3px rgba(252, 60, 45, 0.1); }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; }
.code-row .btn { flex: 0 0 auto; padding: 0 12px; height: 42px; }
.auth-err { margin: 0 0 6px; min-height: 17px; font-size: 12.5px; color: #d4380d; }
.auth-note { margin: 0 0 10px; font-size: 12px; color: var(--accent); line-height: 1.7; }
.auth-note:empty { display: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 18px;
  border-radius: 8px; border: 1px solid transparent;
  font-size: 14px; font-family: inherit; cursor: pointer;
  transition: all 0.18s;
}
.btn.sm { height: 34px; padding: 0 13px; font-size: 13px; border-radius: 7px; }
.btn.primary { background: linear-gradient(135deg, var(--accent), #ff7a3d); color: #fff; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.06); box-shadow: 0 8px 20px -10px rgba(252, 60, 45, 0.8); }
.btn.primary:disabled { opacity: 0.6; cursor: default; box-shadow: none; filter: none; }
.btn.full { width: 100%; }
.btn.ghost { border-color: rgba(28, 26, 24, 0.14); color: var(--ink-2); background: rgba(255, 255, 255, 0.7); }
.btn.ghost:hover { border-color: rgba(252, 60, 45, 0.4); color: var(--accent); }
.btn.ghost:disabled { opacity: 0.55; cursor: default; }
.auth-tip { margin: 16px 0 0; font-size: 12px; color: var(--muted-2); text-align: center; line-height: 1.75; }
.auth-link { color: var(--accent); text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.auth-btns { display: flex; gap: 8px; margin-top: 16px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 40px;
  transform: translate(-50%, 20px);
  background: rgba(28, 26, 24, 0.92); color: #fff;
  padding: 10px 20px; border-radius: 20px;
  font-size: 13.5px; opacity: 0; pointer-events: none;
  transition: all 0.25s; z-index: 600; max-width: 80vw; text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 空态 / 页脚 ---------- */
.empty { padding: 46px 20px; text-align: center; }
.empty strong { display: block; font-size: 16px; margin-bottom: 6px; }
.empty p { margin: 0; color: var(--muted); font-size: 13.5px; }

.footer {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(28, 26, 24, 0.07);
  padding: 26px 0 30px;
}
.footer-in { text-align: center; }
.footer-brand { font-size: 14px; font-weight: 600; letter-spacing: 0.4px; color: var(--ink-2); }
.footer-brand span { margin: 0 8px; color: var(--muted-2); font-weight: 400; }
.footer-links { margin: 9px 0 10px; display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; font-size: 12.5px; color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 12px; color: var(--muted-2); }
.footer-copy a { color: var(--muted); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr) 268px; }
  .thumb { flex-basis: 200px; width: 200px; }
  .logo-text { font-size: 18px; }
  .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px -18px rgba(0, 0, 0, 0.4);
    display: none;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
  .nav.open { display: block; }
  .nav-ul { flex-direction: column; height: auto; align-items: stretch; padding: 6px 12px 12px; }
  .nav-ul > li { height: auto; }
  .nav-ul > li > a { height: 44px; padding: 0 6px; }
  .hob { display: none; }
  .nav-user { margin-left: 0; }
  .nav-me .me-menu {
    position: static; display: block; width: 100%;
    box-shadow: none; border: 0; padding: 0 0 0 14px; background: transparent;
  }
  .me-hd { display: none; }
  .menu-toggle { display: flex; }
  .header-in { position: relative; }

  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
  .banner-left { display: none; }
  .banner-in { justify-content: flex-end; }
  .search-input { width: 100px; }
  .bg-layer { background-image: url("/assets/img/bg-small.jpg"); background-attachment: scroll; }

  .thumb { flex-basis: 118px; width: 118px; aspect-ratio: 1 / 1; }
  .post-t { font-size: 15.5px; -webkit-line-clamp: 2; }
  .excerpt { -webkit-line-clamp: 2; font-size: 12.8px; }
  .meta .author { display: none; }
  .single { padding: 20px 18px 18px; }
  .single-t { font-size: 21px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .mg-stats { grid-template-columns: repeat(3, 1fr); }
  .me-links { grid-template-columns: repeat(2, 1fr); }
  .editor { padding: 18px 16px; }
  .single-body { font-size: 15.5px; }
  .blk-p textarea { font-size: 15.5px; }
  .fig-left, .fig-right { float: none; margin: 14px auto; }
  .act-bar .act { padding: 0 12px; font-size: 13px; }
  .anno-pop { position: fixed !important; left: 12px !important; right: 12px; top: auto; bottom: 16px; width: auto; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 14px; }
  .main { padding: 16px 14px 40px; }
  .logo-text { font-size: 16.5px; letter-spacing: 0; }
  .post-item { padding: 10px; gap: 11px; }
  .thumb { flex-basis: 96px; width: 96px; }
  .excerpt { display: none; }
  .post-t { margin: 6px 0 0; }
  .single-t { font-size: 19px; }
  .auth { padding: 24px 20px 22px; }
  .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .album-info p { display: none; }
  .me-card { flex-direction: column; align-items: flex-start; }
  .me-points { text-align: left; }
  .pt { justify-content: flex-start; }
  .me-links { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .mg-stats { grid-template-columns: repeat(2, 1fr); }
  .ed-title { font-size: 21px; }
  .act-bar { gap: 6px; }
  .act { height: 34px; padding: 0 10px; font-size: 12.5px; }
  .act svg { width: 15px; height: 15px; }
  .slide { min-height: 220px; }
  .nav-prev, .nav-next { width: 34px; height: 34px; }
  .cmt-replies { padding: 2px 8px; }
  .grid-table th, .grid-table td { padding: 9px 10px; }
  .album-info h3 { font-size: 13.5px; }
}

/* ---------- 批注弹窗补充 ---------- */
.modal .m-ta {
  width: 100%; padding: 10px 12px;
  border: 1px solid rgba(28, 26, 24, 0.12); border-radius: 8px;
  font-family: inherit; font-size: 14px; line-height: 1.7;
  resize: vertical; outline: 0; background: #fff;
}
.modal .m-ta:focus { border-color: rgba(252, 60, 45, 0.5); box-shadow: 0 0 0 3px rgba(252, 60, 45, 0.1); }
.modal .m-bar { display: flex; align-items: center; gap: 5px; margin-top: 8px; flex-wrap: wrap; }
.modal .m-bar .mini-btn { height: 26px; padding: 0 8px; font-size: 12px; }
.modal .m-bar .m-emo { font-size: 14px; }
.modal .m-count { margin-left: auto; font-size: 11.5px; color: var(--muted-2); }
.modal .m-prev img { margin-top: 8px; }
.modal .m-prev:empty { display: none; }

/* ---------- 后台设置 ---------- */
.settings-box { padding: 20px 22px 24px; }
.settings-box .sec-t { margin: 18px 0 6px; }
.settings-box .sec-t:first-child { margin-top: 0; }
.set-note { font-size: 13px; color: #5f5952; margin: 0 0 12px; }
.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.set-hint { font-size: 12px; color: var(--muted); line-height: 1.8; margin: 0 0 18px; }
.set-hint code { background: rgba(28, 26, 24, 0.06); padding: 1px 5px; border-radius: 4px; font-size: 11.5px; }
.set-actions { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px dashed rgba(28, 26, 24, 0.12); }
@media (max-width: 640px) { .set-grid { grid-template-columns: 1fr; } }

/* ---------- 登录页：邀请码注册 ---------- */
.auth-tabs.three .tab { font-size: 12.5px; padding: 0 2px; }
.auth-note.tight { margin: 0 0 14px; font-size: 12px; color: var(--muted); line-height: 1.75; background: rgba(252, 60, 45, 0.05); padding: 8px 10px; border-radius: 7px; }
@media (max-width: 400px) {
  .auth-tabs.three .tab { font-size: 11.5px; }
}

/* ---------- 后台：邀请码 ---------- */
.switch-row {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 13px; color: #3f3a35; line-height: 1.7;
  padding: 10px 12px; margin: 0 0 16px;
  background: rgba(28, 26, 24, 0.04); border-radius: 8px;
  cursor: pointer;
}
.switch-row input { margin: 3px 0 0; width: 15px; height: 15px; accent-color: var(--accent); flex: none; }
.inv-gen {
  display: grid; grid-template-columns: 1.5fr 0.8fr 0.8fr auto;
  gap: 10px; align-items: end; margin-bottom: 6px;
}
.inv-gen .field { margin: 0; }
.code-cell { white-space: nowrap; }
.code-cell code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px; background: rgba(28, 26, 24, 0.06);
  padding: 2px 6px; border-radius: 4px; letter-spacing: 0.4px;
}
.code-cell .mini-btn { margin-left: 6px; }
@media (max-width: 760px) {
  .inv-gen { grid-template-columns: 1fr 1fr; }
  .inv-gen .btn { grid-column: 1 / -1; }
}

/* ---------- 转发：已复制反馈 + 手动复制面板 ---------- */
.act.copied {
  background: rgba(34, 160, 90, 0.1);
  border-color: rgba(34, 160, 90, 0.4);
  color: #1f8b50;
}
.act.copied svg { fill: rgba(34, 160, 90, 0.14); }
.share-mask {
  position: fixed; inset: 0; z-index: 900;
  display: none; align-items: center; justify-content: center;
  padding: 20px; background: rgba(24, 20, 18, 0.45);
  backdrop-filter: blur(3px);
}
.share-mask.on { display: flex; }
.share-box {
  width: 100%; max-width: 420px; background: #fff;
  border-radius: 12px; padding: 20px 20px 18px;
  box-shadow: 0 20px 50px -20px rgba(30, 20, 15, 0.5);
}
.share-box strong { display: block; font-size: 15.5px; margin-bottom: 6px; }
.share-box p { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); line-height: 1.65; }
.share-box input {
  width: 100%; height: 38px; padding: 0 12px;
  border: 1px solid rgba(28, 26, 24, 0.14); border-radius: 8px;
  font-size: 13px; font-family: inherit; color: var(--ink-2);
  background: #faf7f3;
}
.share-acts { display: flex; gap: 10px; margin-top: 14px; }
.share-acts .btn { flex: 1; height: 38px; font-size: 13.5px; }

/* ---------- 头像（图片版） ---------- */
.av.av-img { overflow: hidden; padding: 0; background: #eee; }
.av.av-img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.av.xs { width: 20px; height: 20px; font-size: 11px; border-radius: 50%; vertical-align: -5px; margin-right: 6px; }
.user-chip { display: inline-flex; align-items: center; padding-right: 10px !important; }
.me-hd { display: flex; align-items: center; gap: 2px; }

/* ---------- 游客评论 ---------- */
.cmt-who { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cmt-name {
  flex: 1 1 auto; min-width: 0; height: 34px; padding: 0 12px;
  border: 1px solid rgba(28, 26, 24, 0.12); border-radius: 8px;
  font-family: inherit; font-size: 13.5px; color: var(--ink); outline: 0;
  background: rgba(255, 255, 255, 0.92);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.cmt-name:focus { border-color: rgba(252, 60, 45, 0.5); box-shadow: 0 0 0 3px rgba(252, 60, 45, 0.1); }
.cmt-left {
  flex: 0 0 auto; font-size: 12px; color: var(--muted);
  background: rgba(28, 26, 24, 0.05); padding: 3px 9px; border-radius: 10px;
}
.cmt-left.out { color: #d4380d; background: rgba(252, 60, 45, 0.1); }
.cmt-guest {
  display: inline-block; font-size: 10.5px; line-height: 15px; padding: 0 5px;
  border-radius: 4px; color: #6f6862; background: rgba(28, 26, 24, 0.07); font-weight: 400;
}
.cmt-full { margin: 0; font-size: 13px; color: var(--muted); }
.cmt-full a { color: var(--accent); font-weight: 600; }
.cmt-locked { background: rgba(28, 26, 24, 0.03); border-radius: 8px; padding: 12px; }

/* ---------- 我的：资料编辑 ---------- */
.me-av { position: relative; flex: 0 0 auto; }
.me-av-edit {
  position: absolute; right: -4px; bottom: -4px;
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid #fff; background: var(--accent); color: #fff;
  display: none; align-items: center; justify-content: center;
  cursor: pointer; padding: 0; box-shadow: 0 2px 6px rgba(252, 60, 45, 0.4);
}
.me-av:hover .me-av-edit, .me-av-edit:focus { display: inline-flex; }
.me-av-edit svg { width: 13px; height: 13px; }
.prof-box { margin-top: 0; }
.prof-form { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.prof-form .field { width: 100%; max-width: 320px; }
.prof-av-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.prof-av .av { width: 62px; height: 62px; font-size: 26px; border-radius: 16px; }
.cmt-form .hidden-file { display: none; }
.prof-err { margin: 0; font-size: 12.5px; color: #d4380d; display: none; }
.prof-err.on { display: block; }
@media (max-width: 760px) {
  .me-av-edit { display: inline-flex; }
}

/* ---------- 站点公告 ---------- */
.ann-tag {
  flex: 0 0 auto; font-size: 10.5px; line-height: 16px; padding: 0 6px;
  border-radius: 4px; color: #fff; background: var(--accent);
  font-weight: 600; letter-spacing: 0.5px;
}
.banner-left { min-width: 0; }
.ann-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-box textarea#annText {
  width: 100%; padding: 11px 13px; min-height: 84px;
  border: 1px solid rgba(28, 26, 24, 0.12); border-radius: 8px;
  font-family: inherit; font-size: 14px; line-height: 1.7;
  color: var(--ink); outline: 0; resize: vertical;
  background: rgba(255, 255, 255, 0.9);
}
.settings-box textarea#annText:focus {
  border-color: rgba(252, 60, 45, 0.5);
  box-shadow: 0 0 0 3px rgba(252, 60, 45, 0.1);
}
.ann-preview {
  display: flex; align-items: center; gap: 8px; margin: 4px 0 16px;
  padding: 9px 12px; border-radius: 8px; font-size: 13px; color: #6f6862;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(28, 26, 24, 0.07);
}

/* ---------- 自定义网站背景 ---------- */
.prof-bg-row { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.bg-thumb {
  flex: 0 0 auto; width: 190px; height: 108px; border-radius: 9px;
  background: url("/assets/img/bg.jpg") center / cover no-repeat, #ece7e1;
  border: 1px solid rgba(28, 26, 24, 0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 12.5px; overflow: hidden;
}
.bg-acts { flex: 1 1 240px; min-width: 0; display: flex; align-items: flex-start; gap: 9px; flex-wrap: wrap; }
.bg-acts p { flex: 1 1 100%; margin: 2px 0 0; line-height: 1.6; }
@media (max-width: 760px) {
  .bg-thumb { width: 100%; height: 130px; }
  .ann-tag { display: none; }
}

/* ---------- 操作条：只留图标 + 数字，右对齐 ---------- */
.act-bar { justify-content: flex-end; gap: 20px; padding: 12px 0 2px; }
.viewer .act-bar { justify-content: flex-end; }
.act {
  height: auto; padding: 0; gap: 5px;
  border: 0; border-radius: 0; background: transparent;
  color: #8a837c; font-size: 13px;
}
.act svg { width: 18px; height: 18px; }
.act em { font-style: normal; font-size: 12.5px; color: #9a938c; }
.act:hover, .act.share:hover { border: 0; background: transparent; color: var(--accent); }
.act.on { border: 0; background: transparent; color: var(--accent); }
.act.on em { color: var(--accent); }
.act.copied { border: 0; background: transparent; color: #1f8b50; }
.act.copied svg { fill: rgba(34, 160, 90, 0.18); }

/* ---------- 句尾评论气泡 ---------- */
.sent.has-cmt {
  background: linear-gradient(transparent 66%, rgba(252, 60, 45, 0.13) 66%);
  cursor: pointer;
}
.sent-bubble {
  display: inline-block; position: relative; top: -1px;
  width: 19px; height: 19px; margin: 0 3px 0 5px; padding: 0;
  border: 1px solid rgba(28, 26, 24, 0.24); border-radius: 50%;
  background: rgba(255, 255, 255, 0.78); color: #6f6862;
  font-family: inherit; font-size: 10.5px; line-height: 17px; text-align: center;
  cursor: pointer; vertical-align: baseline; user-select: none;
  transition: transform 0.15s, border-color 0.15s, color 0.15s;
}
.sent-bubble::after { content: attr(data-n); }
.sent-bubble::before {
  content: ''; position: absolute; left: -4px; bottom: 2px;
  border: 3px solid transparent; border-right-color: rgba(28, 26, 24, 0.24);
  transform: rotate(-18deg);
}
.sent-bubble:hover, .sent-bubble:focus {
  transform: scale(1.14); border-color: rgba(252, 60, 45, 0.6);
  color: var(--accent); background: #fff; outline: 0;
}
.anno-pop .ap-add {
  width: 100%; margin-top: 10px; height: 32px;
  border: 1px dashed rgba(28, 26, 24, 0.16); border-radius: 8px;
  background: rgba(252, 60, 45, 0.03); color: var(--accent);
  font-family: inherit; font-size: 12.5px; cursor: pointer;
}
.anno-pop .ap-add:hover { background: rgba(252, 60, 45, 0.08); }

/* ---------- 我的：小故事播放设置 ---------- */
.story-set { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.story-chk { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.story-chk input { width: 16px; height: 16px; accent-color: var(--accent); }
.story-rate { max-width: 280px; }
.story-rate select {
  width: 100%; height: 36px; padding: 0 10px;
  border: 1px solid rgba(28, 26, 24, 0.12); border-radius: 8px;
  font-family: inherit; font-size: 13.5px; color: var(--ink); background: #fff;
}

/* ---------- 相册书沉浸模式 ---------- */
.imm { position: fixed; inset: 0; z-index: 1000; display: none; background: #100e0c; color: #fff; }
.imm.on { display: block; }
.imm-back {
  position: absolute; inset: -40px;
  background-size: cover; background-position: center;
  filter: blur(30px) brightness(0.5); opacity: 0.9;
}
.imm-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.imm-shade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.66));
  pointer-events: none;
}
.imm-cap-wrap {
  position: absolute; left: 0; right: 0; bottom: 9%;
  display: flex; justify-content: center; padding: 0 8vw; pointer-events: none;
}
.imm-cap {
  max-width: 920px; padding: 6px 14px; border-radius: 10px;
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  /* 楷体优先，未装楷体的设备回退到衬线体 */
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "楷体", "楷体_GB2312", "Kaiti TC", "DFKai-SB", serif;
  /* 评论正文 .cmt-text 的 2 倍（14.5px × 2） */
  font-size: 29px; line-height: 1.8;
  letter-spacing: 0.02em; opacity: 0; transition: opacity 0.3s ease;
  color: #fff; background: rgba(0, 0, 0, 0.1);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}
/* 外层 .imm-cap 的 opacity 只负责逐句淡入淡出；文字半透明由内层控制 */
.imm-cap-txt { display: inline-block; opacity: 0.55; }
/* 逐行换字时轻微淡入，字幕常亮不闪烁 */
.imm-cap-txt.row-in { animation: capRowIn 0.22s ease both; }
@keyframes capRowIn { from { opacity: 0; } to { opacity: 0.55; } }
.imm-cap.on { opacity: 1; }
.imm.light-bg .imm-cap {
  color: #241f1c; background: rgba(255, 255, 255, 0.22);
  text-shadow: 0 1px 5px rgba(255, 255, 255, 0.5);
}
.imm.light-bg .imm-shade { background: linear-gradient(transparent, rgba(255, 255, 255, 0.66)); }
.imm-close, .imm-play {
  position: absolute; z-index: 2; width: 46px; height: 46px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1); color: #fff;
  font-family: inherit; line-height: 1; cursor: pointer;
  backdrop-filter: blur(4px); transition: background 0.18s, transform 0.18s;
}
.imm-close { left: 22px; top: 22px; font-size: 27px; }
.imm-play { left: 22px; bottom: 24px; font-size: 15px; }
.imm-close:hover, .imm-play:hover { background: rgba(255, 255, 255, 0.26); transform: scale(1.06); }
.imm-meta { position: absolute; right: 22px; bottom: 30px; font-size: 12px; color: rgba(255, 255, 255, 0.72); }

@media (max-width: 760px) {
  .act-bar { gap: 15px; }
  .act svg { width: 16px; height: 16px; }
  .imm-cap-wrap { bottom: 11%; padding: 0 6vw; }
  .imm-close, .imm-play { width: 40px; height: 40px; }
  .imm-close { left: 14px; top: 14px; }
  .imm-play { left: 14px; bottom: 18px; }
  .imm-meta { right: 14px; bottom: 24px; font-size: 11px; }
  .imm-voice { right: 14px; top: 14px; font-size: 11.5px; padding: 7px 11px; }
  .imm-voice-menu { right: 14px; top: 56px; width: 200px; }
}

/* ---------- 后台：朗读配音缓存 ---------- */
.voice-admin .sec-t em { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 400; }
.voice-bar { display: flex; align-items: flex-end; gap: 22px; flex-wrap: wrap; margin: 16px 0 12px; }
.voice-bar .field { max-width: 330px; min-width: 240px; }
.voice-bar select {
  width: 100%; height: 36px; padding: 0 10px; border: 1px solid rgba(28, 26, 24, 0.12);
  border-radius: 8px; font-family: inherit; font-size: 13.5px; color: var(--ink); background: #fff;
}
.voice-nums { display: flex; gap: 26px; flex-wrap: wrap; }
.voice-nums .stat { text-align: center; }
.voice-nums .stat b { font-size: 20px; }
.voice-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 10px; }
.voice-acts .ed-tip { flex: 1 1 240px; }
.ed-tip.bad { color: #cf2f1b; }
.voice-table .msg-cell { max-width: 430px; }
.voice-table .opcell { white-space: nowrap; }
.voice-table .mini-btn { margin-right: 4px; }
.voice-table code {
  display: inline-block; margin-top: 4px; font-size: 10.5px; color: var(--muted-2);
  word-break: break-all; line-height: 1.4;
}

/* ---------- 沉浸模式：音色切换 ---------- */
.imm-voice {
  position: absolute; right: 22px; top: 22px; z-index: 3;
  padding: 8px 14px; border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1); color: #fff;
  font-family: inherit; font-size: 12.5px; line-height: 1; cursor: pointer;
  backdrop-filter: blur(4px); transition: background 0.18s;
}
.imm-voice:hover { background: rgba(255, 255, 255, 0.26); }
.imm-voice.ro { opacity: 0.62; cursor: default; }
.imm-voice-menu {
  position: absolute; right: 22px; top: 68px; z-index: 4;
  width: 232px; max-height: 62vh; overflow-y: auto; padding: 6px;
  background: rgba(24, 21, 19, 0.95); border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.imm-voice-menu[hidden] { display: none; }
.imm-voice-menu button {
  display: block; width: 100%; padding: 9px 10px; margin: 2px 0; text-align: left;
  border: 0; border-radius: 8px; background: transparent; color: rgba(255, 255, 255, 0.9);
  font-family: inherit; font-size: 12.5px; line-height: 1.5; cursor: pointer;
}
.imm-voice-menu button:hover { background: rgba(255, 255, 255, 0.12); }
.imm-voice-menu button.on { background: rgba(252, 60, 45, 0.92); color: #fff; }
.imm-voice-menu button small { display: block; font-size: 11px; opacity: 0.7; }
.imm-voice-hint { padding: 8px 10px; font-size: 11.5px; color: rgba(255, 255, 255, 0.6); line-height: 1.6; }

/* 管理员上传的站点图标：与内置花瓣保持同样尺寸 */
.logo-img { width: 28px; height: 28px; display: block; object-fit: cover; border-radius: 7.5px; }
@media (max-width: 900px) { .logo-img { width: 26px; height: 26px; } }
/* 管理本站 → 站点品牌 */
.brand-preview { display: flex; align-items: center; gap: 10px; padding: 14px 16px; margin: 4px 0 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.brand-mark { display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; flex: 0 0 auto; }
.brand-mark > svg { width: 32px; height: 32px; }
.brand-logo-img { width: 32px; height: 32px; object-fit: cover; border-radius: 8px; display: block; }
.brand-name { font-size: 19.5px; font-weight: 700; color: var(--ink); }
