/* 围达博客：宣纸底色、墨色文字、朱砂红点缀，棋盘与棋子作为装饰。界面与围达客户端的复古风格分开。 */
/* 书法字体只包含以下字：分享围达，一定有人懂你博客精选。其他文字不要使用 --brush。 */
@font-face {
  font-family: "WeidaBrush";
  src: url(/fonts/mashanzheng-blog-subset.woff) format("woff");
  font-display: block;
}
.wb {
  --bg: #f6f2ea;
  --card: #fffdf9;
  --paper-deep: #ece4d5;
  --ink: #1f1c18;
  --sub: #665e53;
  --faint: #7d7569;
  --line: #e3dbcc;
  --line-strong: #cfc5b3;
  --accent: #c23c2a;
  --accent-dark: #a32f1f;
  --accent-soft: #f6e5dd;
  --accent-border: #e4b8aa;
  --focus: var(--accent-dark);
  --focus-halo: #f1d3c9;
  --jade: #e1ebe4;
  --jade-ink: #2c6353;
  --gold: #c98b14;
  --gold-fill: #e3a72c;
  --wood: #e3c68f;
  --board-bg: var(--wood);
  --wood-soft: #f3ead9;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(40 30 15 / .05), 0 8px 24px rgb(40 30 15 / .06);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", var(--font);
  --brush: "WeidaBrush", "STKaiti", "KaiTi", serif;
  --control-bg: #ece6da;
  --control-hover: #3a352e;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --top-height: 64px;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
.wb *, .wb *::before, .wb *::after { box-sizing: border-box; }
.wb a { color: inherit; text-decoration: none; }
.wb button { font: inherit; color: inherit; cursor: pointer; }
.wb button:disabled { cursor: default; opacity: .5; }
.wb img { display: block; max-width: 100%; }
.wb svg.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wb .muted { color: var(--sub); }
.wb .wb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wb :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.wb :is(.wb-btn, .wb-icon-btn, .wb-chip, .wb-tab, .wb-back, .wb-topic-chip) { -webkit-tap-highlight-color: transparent; }
.wb :is(.wb-btn, .wb-icon-btn, .wb-chip, .wb-tab, .wb-topic-chip):active:not(:disabled) { opacity: .75; }

/* —— 按钮 —— */
.wb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--card); font-weight: 600; white-space: nowrap; }
.wb-btn:hover:not(:disabled) { border-color: var(--ink); }
.wb-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.wb-btn.primary:hover:not(:disabled) { background: var(--accent-dark); border-color: var(--accent-dark); }
.wb-btn.ghost { border-color: transparent; background: transparent; }
.wb-btn.ghost:hover:not(:disabled) { background: var(--control-bg); border-color: transparent; }
.wb-btn.small { height: 30px; padding: 0 12px; font-size: 13px; }
.wb-btn.on { background: var(--control-bg); border-color: var(--control-bg); color: var(--sub); }

/* —— 页头 —— */
.wb-top { position: sticky; top: 0; z-index: 20; background: rgb(246 242 234 / .94); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); }
.wb-top-in { display: flex; align-items: center; gap: 20px; height: 64px; max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.wb-logo { display: flex; align-items: center; gap: 10px; flex: none; }
.wb-seal { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; border-radius: 6px; background: var(--accent); color: #fff;
  font: 22px/1 var(--brush); box-shadow: inset 0 0 0 2px rgb(255 255 255 / .2); }
.wb-logo-cn { font: 26px/1 var(--brush); letter-spacing: 2px; padding-top: 2px; }
.wb-logo-url { font-size: 11px; color: var(--faint); letter-spacing: .5px; margin-top: 6px; }
.wb-search-wrap { flex: 1; min-width: 0; max-width: 460px; margin: 0 auto; display: flex; align-items: center; gap: 8px; }
.wb-search-back { flex: none; height: 40px; padding: 0 12px; }
.wb-search-back svg.ic { width: 16px; height: 16px; }
.wb-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; height: 40px; padding: 0 4px 0 16px; border-radius: 10px;
  border: 1px solid transparent; background: var(--control-bg); color: var(--sub); }
.wb-search:focus-within { outline: none; border-color: var(--ink); background: var(--card); }
.wb-search:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--focus-halo); }
.wb-search input { flex: 1; width: 0; min-width: 0; border: 0; border-radius: inherit; background: transparent; font: inherit; color: var(--ink); outline: none; appearance: none; }
/* 焦点由外层搜索框统一呈现，避免通用规则再给输入框画一层方框。 */
.wb .wb-search input:focus-visible { outline: none; box-shadow: none; }
.wb-search input::placeholder { color: var(--faint); }
.wb-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.wb-search button { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--sub); }
.wb-search button:hover, .wb-search button:active { background: var(--paper-deep); color: var(--ink); }
.wb-search .wb-search-submit { color: var(--ink); }
.wb-search .wb-search-clear svg.ic { width: 16px; height: 16px; }
.wb-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.wb-icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); }
.wb-icon-btn:hover { background: var(--control-bg); }
.wb-badge { position: absolute; top: 4px; left: 22px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: #fff;
  font: 600 10px/16px var(--font); text-align: center; border: 2px solid var(--bg); box-sizing: content-box; }
.wb-me { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; border: 1px solid var(--line-strong); }
.wb-me img { width: 100%; height: 100%; object-fit: cover; }
.wb a.wb-back { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; min-height: 38px; padding: 0 14px;
  border: 1px solid var(--ink); border-radius: var(--radius-sm); background: var(--ink); color: var(--bg); white-space: nowrap; font-size: 13px; font-weight: 600; }
.wb a.wb-back:hover { background: var(--control-hover); border-color: var(--control-hover); }
.wb a.wb-back:active { background: var(--ink); opacity: .8; }
.wb a.wb-back:focus-visible { outline-offset: 4px; }
.wb-back svg.ic { width: 16px; height: 16px; }
.wb-back-mobile { display: none; }
@media (min-width: 761px) and (max-width: 1100px) {
  .wb-top-in { gap: 12px; padding: 0 16px; }
  .wb-logo-url { display: none; }
}

/* —— 正文区 —— */
.wb-main { max-width: 1440px; margin: 0 auto; padding: 20px 24px 60px; }
.wb-narrow { max-width: 860px; margin: 0 auto; }

/* 首页标语 */
.wb-hero { position: relative; display: flex; align-items: center; min-height: 132px; padding: 6px 4px 18px; }
.wb-hero::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 44%); background: url(/img/blog-hero.svg) right bottom / contain no-repeat; pointer-events: none; }
.wb-slogan { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 .55em; margin: 0; font: 48px/1.25 var(--brush); letter-spacing: 4px; color: var(--ink); }
.wb-slogan-seal { align-self: center; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 30px; height: 56px; margin-left: -.15em; border-radius: 4px;
  background: var(--accent); color: #fff; font: 19px/1.15 var(--brush); letter-spacing: 0; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .2); transform: rotate(-3deg); }

/* 频道、话题 */
.wb-chips { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 4px 2px 18px; scrollbar-width: none; }
.wb-chips::-webkit-scrollbar { display: none; }
.wb-chip { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px;
  background: transparent; color: var(--sub); font-weight: 600; border: 1px solid transparent; }
.wb-chip:hover { color: var(--ink); background: var(--control-bg); }
.wb-chip.on { background: var(--jade); color: var(--jade-ink); }
.wb-chip small { margin-left: 4px; font-weight: 400; opacity: .8; }
.wb-chips > .wb-chip { white-space: nowrap; }
/* 频道一行：下划线标签，话题用井号文字 */
.wb-chips.wb-channels { gap: 4px 22px; margin-bottom: 18px; padding: 0 2px; box-shadow: inset 0 -1px 0 var(--line); }
.wb-channels > .wb-chip { position: relative; height: 44px; padding: 0; border: 0; border-radius: 0; background: none; white-space: nowrap; font-size: 15px; }
.wb-channels > .wb-chip:hover { background: none; color: var(--ink); }
.wb-channels > .wb-chip.on { background: none; color: var(--ink); font-weight: 700; }
.wb-channels > .wb-chip.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px 2px 0 0; background: var(--accent); }
.wb-channels > .wb-chip.topic { font-size: 14px; font-weight: 500; color: var(--jade-ink); }
.wb-channels > .wb-chip.topic:hover { color: var(--ink); }
.wb-channels > .wb-chip.topic + .wb-chip.topic { margin-left: -6px; }
.wb-sep { flex: none; width: 1px; height: 16px; margin: 0 2px; background: var(--line-strong); }

/* —— 瀑布流 —— */
.wb-grid { column-count: 5; column-gap: 20px; }
@media (max-width: 1400px) { .wb-grid { column-count: 4; } }
@media (max-width: 1100px) { .wb-grid { column-count: 3; } }
@media (max-width: 760px) { .wb-grid { column-count: 2; column-gap: 10px; } }
.wb-card { break-inside: avoid; margin-bottom: 24px; display: block; }
.wb-cover { position: relative; display: block; background: var(--paper-deep); border-radius: var(--radius); overflow: hidden; isolation: isolate; }
.wb-cover::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(40 30 15 / .06); pointer-events: none; }
.wb-cover:focus-visible { outline-offset: 2px; }
.wb-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.wb-cover .mini-board { display: block; width: 100%; height: auto; }
.wb-cover.board { padding: 10px; background: var(--wood); }
.wb-cover.board svg { border-radius: 3px; }
.wb-cover.board svg > rect { fill: var(--wood); }
@media (hover: hover) and (pointer: fine) {
  .wb-card:hover .wb-cover img { transform: scale(1.03); }
  .wb-card:hover .wb-card-title { color: var(--accent-dark); }
  .wb-search:hover:not(:focus-within) { background: var(--paper-deep); }
}
.wb-cover-tag { position: absolute; z-index: 2; left: 10px; top: 10px; padding: 2px 8px; border-radius: 4px; background: rgb(255 253 249 / .92); color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: .5px; }
.wb-cover-tag.pick { left: auto; right: 10px; background: var(--accent); color: #fff; }
.wb-cover-count { position: absolute; z-index: 2; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 4px;
  background: rgb(20 16 12 / .5); color: #fff; font-size: 11px; }
.wb-cover-count svg.ic { width: 12px; height: 12px; }
/* 没有图的笔记：传统色底，宋体标题，下方淡淡的棋盘线和一黑一白两颗子。 */
.wb-textcover { --tc-bg: #efe5d1; --tc-ink: #2b241b; --tc-sub: #6e604c; --tc-line: rgb(60 40 10 / .11); --tc-b: #1f1c18; --tc-w: #fffdf7;
  position: relative; aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 22px 18px 44px;
  background: var(--tc-bg); color: var(--tc-ink); word-break: break-all; overflow: hidden; }
.wb-textcover.tone-1 { --tc-bg: #2a2622; --tc-ink: #f4ede1; --tc-sub: #b5ab9c; --tc-line: rgb(255 248 235 / .09); --tc-b: #0b0a09; --tc-w: #f4ede1; }
.wb-textcover.tone-2 { --tc-bg: #dae4dc; --tc-ink: #1f3a31; --tc-sub: #4b655a; --tc-line: rgb(20 50 40 / .1); }
.wb-textcover.tone-3 { --tc-bg: #e3c68f; --tc-ink: #3a2913; --tc-sub: #6b522c; --tc-line: rgb(60 35 5 / .18); }
.wb-textcover.tone-4 { --tc-bg: #f2ddd3; --tc-ink: #6c2416; --tc-sub: #8d5546; --tc-line: rgb(110 36 23 / .1); }
.wb-textcover.tone-5 { --tc-bg: #dfe2e6; --tc-ink: #1f2730; --tc-sub: #57616c; --tc-line: rgb(20 30 40 / .09); }
.wb-textcover::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; pointer-events: none;
  background-image: linear-gradient(var(--tc-line) 1px, transparent 1px), linear-gradient(90deg, var(--tc-line) 1px, transparent 1px);
  background-size: 26px 26px; background-position: 12px 12px;
  -webkit-mask-image: linear-gradient(to top, #000 20%, transparent); mask-image: linear-gradient(to top, #000 20%, transparent); }
.wb-textcover::after { content: ""; position: absolute; right: 14px; bottom: 14px; width: 34px; height: 18px; pointer-events: none;
  background: radial-gradient(circle at 9px 9px, var(--tc-b) 0 8px, transparent 8.6px),
    radial-gradient(circle at 25px 9px, var(--tc-w) 0 7.4px, rgb(0 0 0 / .22) 7.6px 8px, transparent 8.6px); }
.wb-textcover span { position: relative; font: 700 19px/1.5 var(--serif); letter-spacing: .5px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.wb-textcover p { position: relative; margin: 0; font-size: 13px; line-height: 1.7; color: var(--tc-sub); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.wb-card-body { padding: 10px 2px 0; }
.wb-card-title { font-size: 14.5px; line-height: 1.5; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; transition: color .15s; }
.wb-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; color: var(--sub); font-size: 12px; }
.wb-author { display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 28px; }
.wb-author img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex: none; }
.wb-author span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wb .staff-tag { margin: 0 0 0 2px; font-family: inherit; }
.wb .wb-author .staff-tag { overflow: visible; }
.wb-author:hover span { color: var(--ink); }
.wb-like { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: var(--sub); padding: 2px 0; font-size: 12px; flex: none; }
.wb-like svg.ic { width: 16px; height: 16px; }
.wb-like:hover { color: var(--accent-dark); }
.wb-like.on { color: var(--accent); }
.wb-like.on svg.ic { fill: var(--accent); stroke: var(--accent); }
.wb-like.pop svg.ic { animation: wb-pop .35s ease-out; }
@keyframes wb-pop { 40% { transform: scale(1.35); } }
.wb-more { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; padding: 20px 0; color: var(--faint); font-size: 13px; }

/* 空状态、标题 */
.wb-empty { padding: 80px 20px; text-align: center; color: var(--sub); }
.wb-empty .wb-empty-mark { display: block; width: 56px; height: 56px; margin: 0 auto 14px; opacity: .5; }
.wb-empty p { margin: 0 0 16px; }
.wb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 6px 0 18px; }
.wb-head-copy { min-width: 0; }
.wb-head h1, .wb-prof-name, .wb-cover-band span { overflow-wrap: anywhere; }
.wb-head > .wb-btn { flex: none; }
.wb-head h1 { margin: 0; font: 700 28px/1.3 var(--serif); letter-spacing: .5px; }
.wb-head .muted { margin-top: 4px; }
.wb-read-nav { max-width: 1180px; margin: 0 auto 12px; }
.wb-comment-context { margin: 12px 0; padding: 10px; background: var(--wood-soft); border-radius: var(--radius-sm); color: var(--sub); }
.wb-search-section { margin-bottom: 22px; }
.wb-search-section h2 { margin: 0 0 10px; font-size: 16px; }
.wb-search-topics { display: flex; flex-wrap: wrap; gap: 10px; }

/* —— 笔记页 —— */
.wb-note { display: flex; max-width: 1180px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; min-height: 620px; }
.wb-note.textonly { max-width: 760px; }
.wb-media { flex: 1.25; min-width: 0; background: var(--paper-deep); display: flex; align-items: center; justify-content: center; position: relative; }
.wb-media-stack { width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.wb-media-stack.mixed { padding: 16px; align-self: flex-start; }
.wb-media-part { min-width: 0; }
.wb-media-part h2 { margin: 0 0 8px; font-size: 14px; color: var(--sub); }
.wb-media-stack.mixed .wb-carousel { min-height: 240px; height: auto; }
.wb-side { flex: 1; min-width: 0; max-width: 480px; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.wb-note.textonly .wb-side { max-width: none; border-left: 0; }
.wb-side-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.wb-side-head .wb-author { flex: 1; font-size: 15px; font-weight: 600; gap: 10px; }
.wb-side-head .wb-author img { width: 40px; height: 40px; }
.wb-side-scroll { flex: 1; overflow-y: auto; padding: 22px; max-height: 70vh; }
.wb-note.textonly .wb-side-scroll { max-height: none; padding: 30px 36px; }
.wb-note-title { margin: 0 0 12px; font: 700 22px/1.45 var(--serif); letter-spacing: .3px; word-break: break-all; }
.wb-note.textonly .wb-note-title { font-size: 26px; }
.wb-note-body { font-size: 15px; line-height: 1.85; white-space: pre-wrap; word-break: break-word; }
.wb-note-body a.wb-tag, .wb-tags a { color: var(--jade-ink); }
.wb-note-body a.wb-tag:hover { text-decoration: underline; }
.wb-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 13px; }
.wb .wb-tags a { padding: 3px 10px; border-radius: 999px; background: var(--jade); color: var(--jade-ink); }
.wb-note-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 16px; font-size: 12px; color: var(--faint); }
.wb-note-tools { display: flex; gap: 14px; margin-top: 10px; font-size: 13px; color: var(--sub); }
.wb-note-tools button { border: 0; background: none; padding: 0; color: inherit; }
.wb-note-tools button:hover { color: var(--ink); }
.wb-quiz { margin-top: 16px; }
.wb-answer { margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: var(--wood-soft); white-space: pre-wrap; }
.wb-adj { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 12px; color: var(--sub); }
.wb-adj a { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 48%; }
.wb-adj a:hover { color: var(--ink); }
.wb-bar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--card); }
.wb-bar-input { flex: 1; min-width: 0; height: 38px; padding: 0 16px; border-radius: 10px; border: 0; background: var(--control-bg); font: inherit; color: var(--ink); outline: none; text-align: left; }
.wb-bar-input::placeholder, button.wb-bar-input { color: var(--faint); }
.wb-act { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: var(--ink); font-size: 13px; padding: 4px 2px; }
.wb-act svg.ic { width: 22px; height: 22px; }
.wb-act:hover { color: var(--accent-dark); }
.wb-act.on.like { color: var(--accent); }
.wb-act.on.like svg.ic { fill: var(--accent); stroke: var(--accent); }
.wb-act.on.save { color: var(--gold); }
.wb-act.on.save svg.ic { fill: var(--gold-fill); stroke: var(--gold); }
.wb-act.pop svg.ic { animation: wb-pop .35s ease-out; }

/* 轮播 */
.wb-carousel { position: relative; width: 100%; height: 100%; min-height: 420px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.wb-carousel img { max-width: 100%; max-height: 78vh; object-fit: contain; }
.wb-image-open { display: flex; align-items: center; justify-content: center; width: 100%; padding: 0; border: 0; background: none; }
.wb .wb-image-open { cursor: zoom-in; }
.wb-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgb(255 253 249 / .92); box-shadow: 0 2px 8px rgb(20 16 12 / .15); display: flex; align-items: center; justify-content: center; }
.wb-nav-btn.prev { left: 14px; }
.wb-nav-btn.next { right: 14px; }
.wb-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.wb-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgb(20 16 12 / .22); }
.wb-dots i.on { background: var(--accent); }
.wb-pageno { position: absolute; top: 14px; right: 14px; padding: 2px 10px; border-radius: 4px; background: rgb(20 16 12 / .5); color: #fff; font-size: 12px; }

/* 图片大图预览：放大后可滚动查看完整图片。 */
.wb-mask.wb-image-mask { padding: 0; background: #171512; }
.wb-image-viewer { --focus: #fff; width: 100%; height: 100%; min-height: 0; display: flex; flex-direction: column; background: #171512; color: #fff; }
.wb-image-toolbar { flex: none; display: flex; align-items: center; gap: 12px; padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left)); }
.wb-image-count { flex: 1; font-variant-numeric: tabular-nums; }
.wb-image-viewer .wb-btn { min-height: 44px; background: #332f29; border-color: #665e53; color: #fff; }
.wb-image-viewer .wb-btn:hover { border-color: #fff; }
.wb-image-stage { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.wb .wb-image-toggle { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.wb-image-toggle img { flex: none; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.wb .wb-image-toggle.zoomed { width: max-content; height: max-content; min-width: 100%; min-height: 100%; cursor: zoom-out; }
.wb-image-toggle.zoomed img { max-width: none; max-height: none; }
.wb-image-nav { flex: none; display: flex; justify-content: center; gap: 24px; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); }

/* 棋盘（插的棋谱、棋图） */
.wb-board-box { width: 100%; max-width: 560px; padding: 24px; }
.wb-board-box svg { width: 100%; height: auto; display: block; border-radius: 4px; box-shadow: 0 1px 2px rgb(60 40 10 / .15), 0 10px 28px rgb(60 40 10 / .14); }
.wb-board-box svg > rect { fill: var(--board-bg); }
.wb-game-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-size: 13px; }
.wb-game-head b { font-size: 14px; }
.wb-stone { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; border: 1px solid var(--ink); }
.wb-stone.b { background: var(--ink); }
.wb-stone.w { background: #fff; }
.wb-player-ctl { display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.wb-player-ctl button { width: 34px; height: 32px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--card); display: flex; align-items: center; justify-content: center; }
.wb-player-ctl button:hover { border-color: var(--ink); }
.wb-player-ctl input[type=range] { flex: 1; accent-color: var(--accent); }
.wb-player-ctl span { min-width: 74px; text-align: right; font-size: 12px; color: var(--sub); font-variant-numeric: tabular-nums; }
.wb-game-link { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--jade-ink); }
.wb-game-link:hover { text-decoration: underline; }

/* —— 评论 —— */
.wb-comments { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.wb-comments-head { font-size: 14px; color: var(--sub); margin-bottom: 8px; }
.wb-cmt { display: flex; gap: 10px; padding: 12px 0; }
.wb-cmt + .wb-cmt { border-top: 1px solid var(--line); }
.wb-cmt > img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.wb-cmt-main { flex: 1; min-width: 0; }
.wb-cmt-name { font-size: 13px; color: var(--sub); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wb-cmt-name a:hover { color: var(--ink); }
.wb-cmt-tag { padding: 0 6px; border-radius: 4px; background: var(--accent-soft); color: var(--accent-dark); font-size: 11px; font-weight: 600; }
.wb-cmt-text { margin-top: 2px; font-size: 14px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.wb-cmt-re { color: var(--sub); }
.wb-cmt-foot { display: flex; gap: 14px; margin-top: 4px; font-size: 12px; color: var(--faint); }
.wb-cmt-foot button { border: 0; background: none; padding: 0; color: inherit; }
.wb-cmt-foot button:hover { color: var(--ink); }
.wb-cmt-foot .wb-like { margin-left: auto; color: var(--sub); }
.wb-cmt-foot .wb-like.on, .wb-cmt-foot .wb-like.on:hover { color: var(--accent); }
.wb-cmt-liked { color: var(--accent-dark); }
.wb-cmt.hl { animation: wb-hl 2.4s ease-out; border-radius: var(--radius-sm); }
@keyframes wb-hl { 0%, 40% { background: #f8ecd2; } 100% { background: transparent; } }
.wb-cmt-empty { padding: 26px 0; text-align: center; color: var(--faint); font-size: 13px; }
.wb-compose { display: flex; align-items: flex-end; gap: 10px; }
.wb-compose textarea { flex: 1; min-width: 0; min-height: 38px; max-height: 140px; padding: 9px 14px; border-radius: 10px; border: 0; background: var(--control-bg); resize: none;
  font: 14px/1.45 var(--font); color: var(--ink); outline: none; }
.wb-replying { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12px; color: var(--sub); }
.wb-replying button { border: 0; background: none; color: var(--jade-ink); padding: 0; }

/* —— 个人主页 —— */
.wb-profile { max-width: 1440px; margin: 0 auto; }
.wb-cover-band { height: 200px; border-radius: var(--radius); overflow: hidden; background: var(--paper-deep) url(/img/blog-banner.svg) center / cover no-repeat; position: relative; }
.wb-cover-title { position: absolute; z-index: 1; left: 0; right: 0; bottom: 30px; padding: 0 24px; text-align: center; color: var(--ink); font: 700 28px/1.3 var(--serif); letter-spacing: 3px; }
.wb-cover-band.has-custom-cover::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(transparent 30%, rgb(20 16 12 / .66)); pointer-events: none; }
.wb-cover-band.has-custom-cover .wb-cover-title { color: #fff; text-shadow: 0 1px 8px rgb(20 16 12 / .6); }
.wb-dialog.wb-cover-dialog { max-width: 640px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
.wb-cover-help { margin: -4px 0 16px; font-size: 13px; }
.wb-cover-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.wb-cover-preview-label { margin: 12px 0 6px; color: var(--sub); font-size: 12px; }
.wb-cover-preview { width: 100%; height: auto; aspect-ratio: 7 / 1; border-radius: var(--radius-sm); overflow: hidden; }
.wb-cover-preview.mobile { max-width: 320px; aspect-ratio: 2.7 / 1; }
.wb-cover-preview .wb-cover-title { bottom: 12px; padding: 0 12px; font-size: 14px; letter-spacing: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-cover-position { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.wb-cover-position label { flex: none; font-size: 13px; }
.wb-cover-position input { flex: 1; min-width: 0; height: 32px; margin: 0; accent-color: var(--accent); }
.wb-cover-position output { width: 40px; flex: none; text-align: right; color: var(--sub); font-size: 12px; font-variant-numeric: tabular-nums; }
.wb-cover-status { min-height: 22px; margin-top: 10px; font-size: 12px; }
.wb-cover-error { margin-top: 6px; color: var(--accent-dark); font-size: 13px; }
.wb-prof { display: flex; gap: 28px; align-items: flex-start; padding: 0 40px; margin-top: -52px; position: relative; z-index: 2; }
.wb-prof-info, .wb-prof-acts { padding-top: 66px; }
.wb-prof-av { width: 120px; height: 120px; border-radius: 50%; border: 4px solid var(--bg); background: var(--card); overflow: hidden; flex: none; }
.wb-prof-av img { width: 100%; height: 100%; object-fit: cover; }
.wb-prof-info { flex: 1; min-width: 0; padding-bottom: 6px; }
.wb-prof-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 24px; font-weight: 700; }
.wb-rank { padding: 1px 8px; border-radius: 4px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 600; letter-spacing: .5px; }
.wb-prof-sign { margin-top: 6px; color: var(--sub); white-space: pre-wrap; word-break: break-word; }
.wb-stats { display: flex; gap: 22px; margin-top: 12px; flex-wrap: wrap; }
.wb-stats a, .wb-stats span { display: flex; gap: 5px; align-items: baseline; color: var(--sub); }
.wb-stats b { font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; }
.wb-stats a:hover b { color: var(--accent); }
.wb-prof-acts { display: flex; gap: 10px; padding-bottom: 6px; flex-wrap: wrap; }
.wb-kudos { gap: 6px; }
.wb-kudos svg.ic { width: 18px; height: 18px; }
.wb-kudos-hint { flex-basis: 100%; font-size: 12px; color: var(--sub); }
.wb-tabs { display: flex; justify-content: center; gap: 36px; margin: 26px 0 18px; box-shadow: inset 0 -1px 0 var(--line); scrollbar-width: none; }
.wb-tabs::-webkit-scrollbar { display: none; }
.wb-tab { position: relative; padding: 12px 2px; border: 0; background: none; font-size: 15px; font-weight: 600; color: var(--sub); white-space: nowrap; }
.wb-tab:hover { color: var(--ink); }
.wb-tab.on { color: var(--ink); font-weight: 700; }
.wb-tab.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px 2px 0 0; background: var(--accent); }
.wb-tab small { font-weight: 400; margin-left: 3px; color: var(--faint); }
.wb-points { font-size: 12px; color: var(--sub); }

/* 粉丝、关注列表，消息 */
.wb-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.wb-row { display: flex; gap: 12px; align-items: center; padding: 14px 18px; }
.wb-row + .wb-row { border-top: 1px solid var(--line); }
.wb-row.fresh { background: var(--accent-soft); }
.wb-row > a > img, .wb-row > img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.wb-row > .wb-row-seal { width: 44px; height: 44px; border-radius: 8px; font-size: 30px; }
.wb-row-main { flex: 1; min-width: 0; }
.wb-row-title { font-weight: 600; }
.wb-row-title .muted { font-weight: 400; }
.wb-row-sub { font-size: 13px; color: var(--sub); margin-top: 2px; white-space: pre-wrap; word-break: break-word; }
.wb-row-text { margin-top: 4px; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.wb-row-time { font-size: 12px; color: var(--faint); margin-top: 4px; display: flex; gap: 14px; }
.wb-row-time button { border: 0; background: none; padding: 0; color: inherit; }
.wb-row-time button:hover { color: var(--ink); }
.wb-row-time a:hover { color: var(--ink); }
.wb-msg { display: flex; gap: 24px; align-items: flex-start; }
.wb-msg-nav { width: 200px; flex: none; position: sticky; top: 84px; display: flex; flex-direction: column; gap: 4px; }
.wb-msg-nav button { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 16px; border-radius: 10px; border: 0; background: transparent; font-weight: 600; color: var(--sub); text-align: left; }
.wb-msg-nav button:hover { color: var(--ink); background: var(--control-bg); }
.wb-msg-nav button.on { background: var(--card); color: var(--ink); box-shadow: inset 3px 0 0 var(--accent), 0 0 0 1px var(--line); }
.wb-msg-nav em { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; line-height: 20px; text-align: center; }
.wb-msg-body { flex: 1; min-width: 0; }
.wb-quote { margin-top: 6px; padding: 6px 10px; border-radius: 6px; background: var(--control-bg); font-size: 13px; color: var(--sub); box-shadow: inset 2px 0 0 var(--line-strong); }

/* —— 发布 —— */
.wb-editor { max-width: 860px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 28px 32px 24px; }
.wb-editor h1 { margin: 0 0 18px; font: 700 22px/1.4 var(--serif); }
.wb-up { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.wb-up-item { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--control-bg); }
.wb-up-item img { width: 100%; height: 100%; object-fit: cover; }
.wb-up-item.busy img { opacity: .45; }
.wb-up-item .wb-up-state { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--sub); }
.wb-up-item .wb-up-tools { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; justify-content: space-between; opacity: 0; transition: opacity .15s; }
.wb-up-item:hover .wb-up-tools, .wb-up-item:focus-within .wb-up-tools { opacity: 1; }
.wb-up-tools button, .wb-up-del { width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgb(20 16 12 / .58); color: #fff; display: flex; align-items: center; justify-content: center; }
.wb-up-tools svg.ic, .wb-up-del svg.ic { width: 14px; height: 14px; }
.wb-up-del { position: absolute; top: 6px; right: 6px; }
.wb-up-first { position: absolute; left: 6px; top: 6px; padding: 0 6px; border-radius: 4px; background: var(--accent); color: #fff; font-size: 11px; line-height: 18px; }
.wb-up-add { aspect-ratio: 1; border-radius: 10px; border: 1.5px dashed var(--line-strong); background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--sub); font-size: 12px; }
.wb-up-add:hover, .wb-up.drag .wb-up-add { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); }
.wb-up-add svg.ic { width: 26px; height: 26px; }
/* 旧内核（Chrome 88 以下）不认 aspect-ratio：用上内边距撑成正方形 */
@supports not (aspect-ratio: 1) {
  .wb-up-item { height: 0; padding-top: 100%; }
  .wb-up-item img { position: absolute; top: 0; left: 0; }
}
.wb-field { margin-top: 18px; position: relative; }
.wb-field label.wb-label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--sub); font-weight: 600; }
.wb-input, .wb-textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; font: inherit; color: var(--ink); background: var(--card); outline: none; }
.wb-input:focus, .wb-textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--focus-halo); }
.wb-input.title { font-size: 17px; font-weight: 600; padding-right: 64px; }
.wb-textarea { min-height: 200px; resize: vertical; line-height: 1.75; font-size: 15px; }
.wb-count { position: absolute; right: 14px; top: 14px; font-size: 12px; color: var(--faint); }
.wb-field-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wb-topic-chip { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); color: var(--jade-ink); font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.wb-topic-chip:hover { border-color: var(--jade-ink); }
.wb-topic-chip.on { background: var(--jade); border-color: var(--jade-ink); }
.wb-topic-chip svg.ic { width: 12px; height: 12px; }
.wb-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--control-bg); }
.wb-seg button { height: 30px; padding: 0 16px; border-radius: 8px; border: 0; background: transparent; color: var(--sub); font-weight: 600; }
.wb-seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgb(40 30 15 / .12); }
.wb-attach { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 10px; background: var(--wood-soft); border: 1px solid var(--line); }
.wb-attach svg.mini-board { width: 76px; height: 76px; flex: none; border-radius: 4px; }
.wb-attach-main { flex: 1; min-width: 0; font-size: 13px; }
.wb-attach-main b { font-size: 14px; }
.wb-editor-foot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.wb-editor-foot .muted { margin-right: auto; font-size: 12px; }
.wb-diagram-wrap { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--card); }
.wb-diagram-wrap .w-board { width: 100%; max-width: 420px; border-radius: 4px; overflow: hidden; }
.wb-diagram-wrap .w-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.wb-diagram-wrap .w-tools button { height: 28px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--card); font-size: 12px; }
.wb-diagram-wrap .w-tools button.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.wb-diagram-wrap .w-turn { font-size: 12px; color: var(--sub); }

/* —— 弹窗、提示 —— */
.wb-mask { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 200; background: rgb(20 16 12 / .45); display: flex; align-items: center; justify-content: center; padding: 16px; animation: wb-fade .15s ease-out; }
@keyframes wb-fade { from { opacity: 0; } }
.wb-dialog { width: 100%; max-width: 440px; min-height: 0; max-height: calc(100vh - 32px); overflow: auto; background: var(--card); border-radius: 14px; box-shadow: 0 20px 60px rgb(20 16 12 / .25); padding: 22px 24px 18px;
  font: 14px/1.6 var(--font); color: var(--ink); animation: wb-rise .2s ease-out; }
@keyframes wb-rise { from { transform: translateY(12px); opacity: 0; } }
.wb-dialog h3 { margin: 0 0 12px; font-size: 17px; }
.wb-dialog .wb-dialog-msg { color: var(--sub); }
.wb-dialog .wb-dialog-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.wb-dialog .wb-textarea { min-height: 110px; }
.wb-dialog select.wb-input { appearance: auto; }
.wb-pick-list { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow: auto; margin: 4px -4px 0; padding: 4px; }
.wb-pick-row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); text-align: left; }
.wb-pick-row:hover { border-color: var(--ink); }
.wb-pick-row svg.mini-board { width: 56px; height: 56px; flex: none; border-radius: 4px; }
.wb-toast { position: fixed; z-index: 210; left: 50%; bottom: 40px; transform: translateX(-50%); padding: 10px 20px; border-radius: 10px; background: rgb(31 28 24 / .92); color: #fbf7ef;
  font: 14px/1.4 var(--font); box-shadow: 0 6px 20px rgb(20 16 12 / .2); animation: wb-rise .2s ease-out; max-width: calc(100vw - 32px); }

/* 博客的评论、人气提醒使用博客样式；特别关注保留复古窗体和按钮。 */
body.bare-page .follow-notice:not(.special-follow-notice) { border-radius: 12px; border: 1px solid #e3dbcc; background: #fffdf9; box-shadow: 0 10px 30px rgb(30 25 15 / .16);
  font: 13px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; color: #1f1c18; }
body.bare-page .follow-notice:not(.special-follow-notice) .follow-avatar { border-radius: 50%; object-fit: cover; }
body.bare-page .follow-notice:not(.special-follow-notice) .follow-title { color: #c23c2a; }
body.bare-page .follow-notice:not(.special-follow-notice) .xp-btn { border: 0; border-radius: 8px; background: #c23c2a; color: #fff; padding: 4px 14px; box-shadow: none; font: inherit; }

/* —— 手机 —— */
.wb-tabbar { display: none; }
@media (max-width: 760px) {
  .wb { --top-height: 112px; }
  .wb-top-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; height: var(--top-height); padding: 8px 12px 12px; }
  .wb-logo { gap: 8px; }
  .wb-seal { width: 26px; height: 26px; border-radius: 5px; font-size: 19px; }
  .wb-logo-cn { font-size: 22px; letter-spacing: 1px; }
  .wb-logo-url, .wb-top .wb-publish, .wb-top .wb-me, .wb-register { display: none; }
  .wb-search-wrap { grid-column: 1 / -1; grid-row: 2; width: 100%; max-width: none; margin: 0; }
  .wb-search-back { width: 40px; padding: 0; }
  .wb-search-back span { display: none; }
  .wb-search button { width: 36px; height: 36px; }
  .wb-search .ic { width: 16px; height: 16px; }
  .wb-search input { font-size: 16px; }
  .wb-actions { gap: 6px; justify-content: flex-end; }
  .wb-actions .wb-btn { padding: 0 10px; }
  .wb a.wb-back { min-height: 44px; padding: 0 10px; gap: 4px; font-size: 12px; }
  .wb-back-desktop { display: none; }
  .wb-back-mobile { display: inline; }
  .wb-main { padding: 12px 12px calc(88px + env(safe-area-inset-bottom)); }
  .wb-hero { min-height: 0; padding: 8px 0 18px; }
  .wb-hero::after { display: none; }
  .wb-slogan { font-size: min(6.8vw, 30px); letter-spacing: 2px; gap: 0 .4em; }
  .wb-slogan-seal { width: 22px; height: 40px; font-size: 14px; }
  .wb-chips.wb-channels { gap: 4px 18px; margin-bottom: 14px; }
  .wb-channels > .wb-chip { height: 42px; font-size: 15px; }
  .wb-read-nav { position: sticky; top: var(--top-height); z-index: 19; padding: 6px 0; background: var(--bg); }
  .wb-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .wb-head h1 { font-size: 23px; }
  .wb-card { margin-bottom: 16px; }
  .wb-cover { border-radius: 10px; }
  .wb-card-body { padding: 8px 2px 0; }
  .wb-card-title { font-size: 14px; }
  .wb-card-foot { gap: 4px; margin-top: 0; }
  .wb-card-foot .wb-author { min-height: 40px; }
  .wb-like { min-width: 40px; min-height: 40px; justify-content: center; padding: 4px; margin-right: -6px; }
  .wb-textcover { padding: 14px 12px 36px; }
  .wb-textcover span { font-size: 16px; }
  .wb-textcover p { font-size: 12px; -webkit-line-clamp: 3; }
  .wb-textcover::after { right: 10px; bottom: 10px; transform: scale(.85); transform-origin: right bottom; }
  .wb-tabbar { display: flex; position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: calc(56px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgb(255 253 249 / .96); border-top: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .wb-tabbar a, .wb-tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 0; background: none; font-size: 11px; color: var(--sub); position: relative; }
  .wb-tabbar .on { color: var(--ink); font-weight: 700; }
  .wb-tabbar .wb-tab-plus span { width: 46px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; }
  .wb-tabbar .wb-badge { top: 3px; left: calc(50% + 4px); right: auto; border-color: var(--card); }
  .wb-note { flex-direction: column; border: 0; border-radius: 0; margin: -12px -12px 0; min-height: 0; box-shadow: none; }
  .wb-media { min-height: 0; }
  .wb-carousel { min-height: 300px; max-height: 70vh; }
  .wb-side { max-width: none; border-left: 0; }
  .wb-side-scroll, .wb-note.textonly .wb-side-scroll { max-height: none; padding: 16px; }
  .wb-side-head { padding: 12px 16px; }
  .wb-note-title, .wb-note.textonly .wb-note-title { font-size: 21px; }
  .wb-note-body { font-size: 16px; line-height: 1.85; }
  .wb-bar { position: fixed; z-index: 31; left: 0; right: 0; bottom: 0; gap: 6px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
  .wb-act { min-height: 44px; min-width: 36px; justify-content: center; gap: 3px; font-size: 12px; }
  .wb-compose textarea { min-height: 44px; }
  .wb-note-page .wb-tabbar { display: none; }
  .wb-note-page .wb-main { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .wb-board-box { padding: 14px; }
  .wb-cover-band { height: 130px; border-radius: 10px; }
  .wb-cover-title { font-size: 19px; letter-spacing: 1px; padding: 0 16px; bottom: 54px; }
  .wb-cover-dialog .wb-cover-preview { height: auto; }
  .wb-cover-dialog .wb-cover-title { font-size: 13px; padding: 0 12px; bottom: 10px; }
  .wb-prof { flex-direction: column; align-items: flex-start; gap: 10px; padding: 0 16px; margin-top: -44px; }
  .wb-prof-info, .wb-prof-acts { padding-top: 0; }
  .wb-prof-av { width: 88px; height: 88px; }
  .wb-prof-name { font-size: 20px; }
  .wb-stats { gap: 16px; }
  .wb-tabs { gap: 20px; margin-top: 18px; overflow-x: auto; }
  .wb-msg { flex-direction: column; align-items: stretch; gap: 10px; }
  .wb-msg-nav { position: static; width: 100%; flex-direction: row; flex-wrap: wrap; }
  .wb-msg-nav button { flex: none; height: 38px; }
  .wb-msg-nav button.on { box-shadow: inset 0 -2px 0 var(--accent), 0 0 0 1px var(--line); }
  .wb-row { padding: 14px 12px; gap: 10px; }
  .wb-editor { padding: 18px 14px; border-radius: 14px; }
  .wb-editor-foot { flex-wrap: wrap; }
  .wb-editor-foot .muted { flex-basis: 100%; }
  .wb-up { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .wb-up-item .wb-up-tools { opacity: 1; }
  .wb-btn, .wb-chip, .wb-icon-btn { min-height: 40px; }
  .wb-actions .wb-btn, .wb-actions .wb-icon-btn { min-height: 44px; }
  .wb-note-tools button, .wb-cmt-foot button, .wb-row-time button { min-height: 36px; }
  .wb-topic-chip, .wb-seg button { min-height: 40px; }
  .wb-compose textarea, .wb-bar-input, .wb-input, .wb-textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .wb *, .wb-mask, .wb-dialog, .wb-toast { animation: none !important; transition: none !important; }
}

/* 来信列表只显示预览，全文在独立站内信窗口中阅读。 */
.wb .wb-letter-preview { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; cursor: pointer; }
/* 草稿箱 */
.wb-dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.wb-drafts { display: flex; flex-direction: column; max-height: 60vh; overflow: auto; }
.wb-draft-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--wb-line, #e4dccb); color: inherit; text-decoration: none; }
.wb-draft-row:hover { background: rgba(0,0,0,.03); }
.wb-draft-row b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-draft-row .muted { flex: none; }
/* 评论：引用回复的原话、@ 的名字 */
/* 系统通知里举报处理反馈下面的那行：举报了谁、什么原因、哪天 */
.wb-notice-ref { margin: 4px 0 2px; padding: 3px 8px; border-left: 2px solid #c9b48a; background: rgba(201,180,138,.12); color: #6b5a3c; font-size: 12.5px; word-break: break-word; }
.wb-cmt-quote { margin: 2px 0 4px; padding: 3px 8px; border-left: 2px solid #c9b48a; background: rgba(201,180,138,.12); color: #6b5a3c; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-at-name { color: #a8261b; }
.wb-at { min-width: 32px; font-weight: 600; }
/* 关注栏空时推荐的棋友、文章末尾的相关笔记 */
.wb-suggest { padding: 8px 0; }
.wb-suggest h2 { font-size: 16px; margin: 4px 0 8px; }
.wb-related { margin-top: 18px; border-top: 1px solid var(--wb-line, #e4dccb); padding-top: 10px; }
.wb-related h3 { font-size: 15px; margin: 0 0 6px; }
.wb-related-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; color: inherit; text-decoration: none; }
.wb-related-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-related-row:hover span { text-decoration: underline; }
