/* ==========================================================================
   归档站视觉 —— 复刻 w1-pingfan「金色禅意」风格
   暖米黄纸面 + 金线 + 单栏 800px 阅读版心 + 手风琴版块折叠
   ========================================================================== */

:root {
  --page: #f5f5f5;
  --paper: #fef9e7;
  --paper-home: #f9e9dc;
  --card: #fdf6e0;
  --card-warm: #f8e0cd;
  --accordion-head: #fcf6e6;
  --accordion-body: #f9e4d0;
  --submenu: #faf6ca;

  --gold: #f1c40f;
  --gold-deep: #d4ac0d;
  --gold-light: #f7e8b0;
  --gold-mid: #edcfa0;
  --gold-tan: #e8d5a0;
  --line: #e6c88a;
  --line-soft: #f0e0b8;
  --line-hard: #d8b898;

  --brown-1: #4a3220;
  --brown-2: #5a3f1e;
  --brown-3: #7a5d2e;
  --brown-4: #a07d4a;
  --brown-5: #946d45;
  --heading: #b8860b;
  --ink: #000;
  --body: #333;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --wide: 1200px;
  --read: 800px;
  --shadow-hover: 0 2px 8px rgba(180, 130, 30, 0.15);
  --shadow-btn: 0 3px 8px rgba(180, 130, 30, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--page);
  color: var(--body);
  font-family: var(--font);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; }
img, video, iframe { max-width: 100%; }

/* 载入占位 */
.boot {
  max-width: var(--read);
  margin: 0 auto;
  padding: 80px 20px;
  text-align: center;
  color: var(--brown-3);
  background: var(--paper);
  min-height: 100vh;
}

/* ==========================================================================
   通用：纸张容器
   ========================================================================== */
.paper {
  background: var(--paper);
  max-width: var(--read);
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px;
}

/* 顶部导航条（文章 / 搜索页） */
.nav-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.nav-btn {
  display: inline-block;
  color: var(--brown-3);
  background: var(--gold-light);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.nav-btn:hover {
  background: var(--gold-mid);
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn);
  color: var(--brown-2);
}

.nav-btn.solid {
  background: linear-gradient(145deg, #f7e8b0, #edcfa0);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-search input {
  color: var(--brown-1);
  background: #fffcf0;
  border: 1px solid var(--line);
  border-radius: 4px;
  width: 180px;
  padding: 6px 12px;
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.nav-search input::placeholder { color: #b8950a; }
.nav-search input:focus { border-color: var(--gold); outline: none; }

.nav-search button {
  color: var(--brown-3);
  background: var(--gold-light);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.nav-search button:hover { color: #fff; background: var(--gold); }
.nav-search button svg { display: block; width: 15px; height: 15px; }

/* 首页筛选条 */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 22px;
  padding-top: 14px;
  border-top: 1px dashed rgba(216, 184, 152, 0.5);
}

.filter-btn {
  color: var(--brown-3);
  background: #fdf3d8;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover { background: var(--gold-light); }

.filter-btn.active {
  color: #fff;
  background: linear-gradient(145deg, var(--gold), var(--gold-deep));
  border-color: var(--gold-deep);
  box-shadow: 0 2px 6px rgba(180, 130, 30, 0.22);
}

/* 首页两个互斥视图：全部版块 / 最近更新 */
.home-pane[hidden] { display: none; }

.home-pane[data-pane='latest'] { margin-top: 2px; }

/* ==========================================================================
   首页：分区标题 + 手风琴
   ========================================================================== */
.home-wrap {
  background: var(--paper-home);
  max-width: var(--wide);
  margin: 0 auto;
  padding: 20px 15px 40px;
}

.home-head {
  text-align: center;
  padding: 22px 10px 6px;
}

.home-head h1 {
  color: var(--brown-3);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.5;
}

.home-head .tagline {
  color: var(--brown-4);
  font-size: 14px;
  margin-top: 6px;
}

.home-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 14px;
  color: var(--brown-4);
  font-size: 13px;
}

.home-stats b {
  color: var(--heading);
  font-size: 17px;
  font-weight: 700;
  margin-right: 3px;
}

/* 首页搜索 */
.search-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  max-width: 800px;
  margin: 20px auto;
  padding: 0 20px;
}

.search-bar input {
  flex: 1;
  min-width: 180px;
  color: var(--brown-1);
  background: #fffcf0;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.search-bar input::placeholder { color: #b8950a; }

.search-bar input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 8px rgba(241, 196, 15, 0.3);
}

.search-bar button {
  color: var(--brown-3);
  background: linear-gradient(145deg, #f7e8b0, #edcfa0);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 28px;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s;
}

.search-bar button:hover {
  color: #fff;
  background: linear-gradient(145deg, var(--gold), var(--gold-deep));
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn);
}

/* 分区标题 */
.category-title {
  display: flex;
  align-items: center;
  margin: 25px 0 10px;
}

.category-title:first-of-type { margin-top: 0; }

.category-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  color: var(--heading);
}

.category-icon svg { display: block; width: 100%; height: 100%; }

.category-title-text {
  color: #785635;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
}

.category-count {
  margin-left: 10px;
  color: var(--brown-4);
  font-size: 13px;
  font-weight: 400;
}

/* 手风琴 */
.accordion-container {
  background: var(--card-warm);
  border: 1px solid var(--line-hard);
  border-radius: 12px;
  width: 100%;
  margin-bottom: 25px;
  overflow: hidden;
}

.accordion-item { border-bottom: 1px solid var(--line-hard); }
.accordion-item:last-child { border-bottom: none; }

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--accordion-head);
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s;
}

.accordion-header:active { background: #f0b880; }

.accordion-header-text {
  flex: 1;
  color: var(--brown-2);
  font-size: 20px;
  font-weight: 600;
}

.accordion-header-text .num {
  margin-left: 8px;
  color: var(--brown-4);
  font-size: 13px;
  font-weight: 400;
}

.accordion-icon {
  margin-left: 10px;
  color: var(--brown-5);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s;
}

.accordion-item.open .accordion-icon { transform: rotate(90deg); }
.accordion-item.is-empty .accordion-header { cursor: default; }
.accordion-item.is-empty .accordion-header-text { color: #9c8b74; font-weight: 500; }
.accordion-item.is-empty .accordion-icon { color: #c3b49c; }

.accordion-content {
  background: var(--accordion-body);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.submenu { list-style: none; }

.submenu-item {
  background: var(--submenu);
  border-bottom: 1px solid var(--line-hard);
}

.submenu-item:last-child { border-bottom: none; }

.submenu-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--brown-1);
  padding: 12px 20px;
  font-size: 17px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.submenu-item a:active { background: #f0b880; }
.submenu-item a:hover { background: #f6ecc0; }

.submenu-item .cnt {
  flex-shrink: 0;
  color: var(--brown-4);
  font-size: 13px;
  font-weight: 400;
}

.submenu-item.lead a { color: var(--heading); font-weight: 600; }

/* ==========================================================================
   版块页
   ========================================================================== */
.forum-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.forum-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.back {
  display: inline-block;
  color: var(--brown-3);
  background: linear-gradient(145deg, #f7e8b0, #edcfa0);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

.back:hover {
  color: #fff;
  background: linear-gradient(145deg, var(--gold), var(--gold-deep));
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn);
}

.forum-title-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.forum-title-row h1 {
  flex: 1;
  color: #2c3e50;
  font-size: 26px;
  font-weight: 700;
  border-bottom: 3px solid var(--gold);
  padding-bottom: 6px;
  line-height: 1.5;
}

.forum-sub {
  color: var(--brown-4);
  font-size: 14px;
  margin: 6px 0 10px;
}

.top-page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 0 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.page-num-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  color: var(--brown-3);
  background: #f5f5f5;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.page-num-btn:hover { background: var(--gold-light); }

.page-num-btn.active {
  color: #fff;
  background: linear-gradient(145deg, var(--gold), var(--gold-deep));
  border-color: var(--gold-deep);
}

.thread-list { list-style: none; }

.thread-list li {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  margin-bottom: 8px;
  padding: 12px 15px;
  transition: all 0.2s;
}

.thread-list li:hover {
  border-color: var(--line);
  box-shadow: var(--shadow-hover);
}

.thread-list a {
  color: var(--brown-2);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
}

.thread-list a:hover { color: var(--heading); }

.thread-list .author {
  color: var(--brown-4);
  margin-left: 8px;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}

.thread-list .author::before {
  content: "·";
  margin-right: 5px;
  color: #cbb693;
}

.thread-list .meta {
  float: right;
  color: #b8950a;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  margin-left: 8px;
}

.thread-list li::after { content: ""; display: block; clear: both; }

/* 子版块 */
.sub-forums {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  margin: 20px 0;
  padding: 15px;
}

.sub-forums h3 {
  color: var(--brown-3);
  font-size: 18px;
  margin-bottom: 10px;
}

.sub-forums ul { list-style: none; }

.sub-forums li {
  border-bottom: 1px solid #f0f0f0;
  padding: 10px 15px;
}

.sub-forums li:last-child { border-bottom: none; }

.sub-forums a {
  color: var(--brown-2);
  font-size: 17px;
  font-weight: 600;
}

.sub-forums a:hover { color: var(--heading); }

.sub-meta {
  color: var(--brown-4);
  margin-left: 8px;
  font-size: 14px;
  font-weight: 400;
}

/* 空状态 */
.empty {
  color: #999;
  text-align: center;
  padding: 40px 0;
  font-size: 15px;
}

.empty.big { padding: 60px 0 30px; }
.empty .lead { color: var(--brown-3); font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.empty .hint { color: var(--brown-4); font-size: 14px; line-height: 1.9; max-width: 440px; margin: 0 auto 18px; }
.empty a { color: var(--heading); }

/* ==========================================================================
   翻页
   ========================================================================== */
.pagination-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
  padding: 12px 0;
  border-top: 1px solid #eee;
}

.pagination-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-info { color: #888; font-size: 14px; }

.pagination-left a {
  display: inline-block;
  color: var(--brown-3);
  background: linear-gradient(145deg, #f7e8b0, #edcfa0);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

.pagination-left a:hover:not(.disabled) {
  color: #fff;
  background: linear-gradient(145deg, var(--gold), var(--gold-deep));
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn);
}

.pagination-left a.disabled {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.6;
  color: #ccc;
  background: #f0f0f0;
  border-color: #ddd;
}

.page-jump {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--brown-3);
  font-size: 13px;
}

.page-jump input {
  width: 50px;
  text-align: center;
  color: var(--brown-1);
  background: #fffcf0;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 14px;
  font-family: inherit;
}

.page-jump input:focus { border-color: var(--gold); outline: none; }

.page-jump button {
  color: var(--brown-3);
  background: linear-gradient(145deg, #f7e8b0, #edcfa0);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s;
}

.page-jump button:hover {
  color: #fff;
  background: linear-gradient(145deg, var(--gold), var(--gold-deep));
}

/* ==========================================================================
   文章页
   ========================================================================== */
.post-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.post-header h1 {
  flex: 1;
  min-width: 200px;
  color: var(--heading);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.55;
  border-left: 4px solid var(--gold);
  padding-left: 14px;
}

.copy-btn {
  flex-shrink: 0;
  height: fit-content;
  color: var(--brown-3);
  background: var(--gold-light);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s;
}

.copy-btn:hover {
  color: #fff;
  background: var(--gold);
  transform: translateY(-1px);
}

.post-meta {
  color: var(--brown-4);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 20px;
  padding-bottom: 15px;
  font-size: 14px;
}

.post-meta .dot { margin: 0 8px; color: #d4b880; }

.content {
  color: var(--ink);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.9;
  overflow-wrap: break-word;
}

.content p { margin: 1em 0; }
.content img { max-width: 100% !important; height: auto !important; display: block; margin: 1em auto; }
/* 音视频一律外链直连：不下载、不转码，这里只管尺寸与观感 */
.content video, .content audio {
  display: block;
  max-width: 100%;
  margin: 1.2em auto;
  border-radius: 10px;
  background: #241d12;
  outline: none;
}
.content audio { background: transparent; width: 100%; }

/* 音频帖（源站用 SoundManager2）：换成原生播放器 + 曲目列表 */
.content .audio-bar {
  margin: 1.2em 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf5;
}
.content .audio-bar audio { display: block; width: 100%; margin: 0 0 10px; }
.content .audio-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 60vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.content .audio-list li { margin: 0; }
.content .audio-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--brown-2);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  cursor: pointer;
}
.content .audio-item:hover { background: #f7e8b0; }
.content .audio-item.is-active { background: #f1c40f; color: #4a3220; font-weight: 600; }
.content .audio-item.is-active::before { content: "▶ "; }

/* 音频帖：源站原版 SoundManager2 播放器（资源在 spa/vendor/sm2）
   没挂载前先藏起来，否则会露出一段没有样式的裸结构 */
.content .sm2-bar-ui:not(.sm2-mounted) { display: none !important; }
.content .sm2-bar-ui.sm2-mounted { display: block; margin: 1.2em 0; max-width: 100%; }
.content .sm2-bar-ui .sm2-playlist-bd { list-style: none; margin: 0; padding: 0; }
.content .sm2-bar-ui li { margin: 0; }
.content .sm2-bar-ui a { border-bottom: 0; }
.content video { height: auto; }
/* 外链图片加载慢或图床拒绝时，不留空洞 */
.content img:not([src]), .content img[src=""] { display: none; }
.content a { color: var(--heading); border-bottom: 1px dashed var(--line); }
.content a:hover { color: var(--brown-3); border-bottom-color: var(--brown-3); }
.content h1, .content h2, .content h3, .content h4 {
  color: var(--brown-2);
  margin: 1.2em 0 0.6em;
  line-height: 1.5;
}
.content blockquote {
  border-left: 3px solid var(--gold);
  background: #fffdf2;
  color: var(--brown-3);
  margin: 1em 0;
  padding: 8px 16px;
}
.content ul, .content ol { padding-left: 1.6em; margin: 1em 0; }
.content li { margin: 0.3em 0; }
.content table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: 16px; }
.content th, .content td { border: 1px solid var(--line); padding: 8px 10px; }
.content th { background: var(--card); color: var(--brown-2); }
.content code {
  background: #f7f0d8;
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 0.9em;
}
.content pre {
  background: #fffdf2;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 12px 14px;
  overflow-x: auto;
  line-height: 1.6;
}
.content pre code { background: none; padding: 0; }
.content hr { border: none; border-top: 1px dashed var(--line); margin: 1.6em 0; }

.post-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 248, 220, 0.4);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  border-radius: 8px;
  margin: 20px 0;
  padding: 12px 16px;
}

.nav-link {
  display: flex;
  align-items: center;
  width: 100%;
  color: var(--heading);
  font-size: 14px;
  font-weight: 500;
  padding: 4px 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.nav-link:hover:not(.disabled) { color: var(--brown-3); text-decoration: underline; }
.nav-link.disabled { color: transparent; cursor: default; }
.post-nav .nav-link.prev { border-bottom: 1px dashed var(--line-soft); padding-bottom: 6px; }
.post-nav .nav-link .lbl {
  flex-shrink: 0;
  color: var(--brown-4);
  margin-right: 8px;
  font-weight: 400;
}

/* 返回顶部 */
/* Netlify 角标是免费套餐强制的 iframe，固定贴在右下角、层级压过页面元素，
   关不掉也改不了样式，只能把自己抬到它上方（角标含边距约 56px 高）。 */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 72px;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  color: var(--brown-3);
  background: var(--gold-light);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(180, 130, 30, 0.2);
  transition: all 0.3s;
  opacity: 0;
  visibility: hidden;
}

.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { color: #fff; background: var(--gold); transform: translateY(-3px); }
.back-to-top:active { transform: scale(0.92); }

/* ==========================================================================
   搜索页
   ========================================================================== */
.search-results { padding-bottom: 20px; }

.search-results h2 {
  color: var(--brown-3);
  font-size: 20px;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.search-results ul { list-style: none; }

.search-results li {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  margin-bottom: 8px;
  padding: 12px 15px;
  transition: all 0.2s;
}

.search-results li:hover { border-color: var(--line); box-shadow: var(--shadow-hover); }

.search-results a {
  color: var(--brown-2);
  font-size: 17px;
  font-weight: 600;
}

.search-results a:hover { color: var(--heading); }

.search-results .snippet {
  color: var(--brown-3);
  font-size: 15px;
  line-height: 1.8;
  margin-top: 4px;
}

.search-results .snippet mark {
  background: #ffe98a;
  color: var(--brown-1);
  border-radius: 2px;
  padding: 0 2px;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 768px) {
  .home-wrap { padding: 15px 12px 30px; }
  .home-head h1 { font-size: 25px; }
  .category-icon { width: 22px; height: 22px; margin-right: 6px; }
  .category-title-text { font-size: 22px; }
  .accordion-header { min-height: 52px; padding: 14px 16px; }
  .accordion-header-text { font-size: 19px; }
  .submenu-item a { padding: 14px 16px; font-size: 18px; }
}

@media (max-width: 600px) {
  .paper { padding: 15px 12px; }
  .nav-search { width: 100%; margin-left: 0; }
  .nav-search input { flex: 1; min-width: 150px; }
  /* 窄屏下两个按钮加 180px 固定宽输入框会顶出视口，搜索栏整行占位并允许收缩 */
  .nav-search { width: 100%; margin-left: 0; }
  .nav-search input { width: auto; flex: 1 1 auto; min-width: 0; }
  .nav-search button { padding: 8px 12px; font-size: 13px; }
  .search-bar { padding: 0 4px; }
  .search-bar button { padding: 10px 18px; }
  .forum-title-row h1 { font-size: 21px; }
  .top-page-numbers { justify-content: center; }
  .page-num-btn { min-width: 30px; height: 30px; padding: 0 4px; font-size: 12px; }
  .thread-list a { font-size: 16px; }
  .thread-list .meta { float: none; display: block; margin-left: 0; margin-top: 2px; }
  .pagination-nav { flex-direction: column; align-items: stretch; gap: 8px; }
  .pagination-left, .page-jump { justify-content: center; }
  .post-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .post-header h1 { min-width: unset; width: 100%; font-size: 19px; }
  .copy-btn { align-self: flex-start; padding: 5px 12px; font-size: 13px; }
  .content { font-size: 17px; line-height: 1.85; }
  .content p { margin: 0.9em 0; }
  .nav-link { font-size: 13px; }
  /* 手机上 Netlify 角标贴着底边、宽度几乎占满，会盖住右下角的返回顶部按钮。
     角标是免费套餐强制的 iframe，改不了它的样式，只能把自己往上抬。 */
  .back-to-top { width: 42px; height: 42px; font-size: 20px; right: 15px; bottom: 84px; }
  .search-results a { font-size: 16px; }
  .search-results .snippet { font-size: 14px; }
}
