@charset "UTF-8";

/* ===== CSS 变量 ===== */
:root {
  --bg: #f6f3ea;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-title: #000000;
  --text-link: #1e88e5;
  --text-link-title: #0066cc;
  --text-secondary: #586069;
  --accent: #0066cc;
  --border: #eaecef;
  --radius: 8px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  --mainbody-max-width: 860px;
}

/* ===== 深色模式 ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --bg-card: #161b22;
    --text: #c9d1d9;
    --text-title: #ffffff;
    --text-link: #58a6ff;
    --text-link-title: #79c0ff;
    --text-secondary: #8b949e;
    --accent: #58a6ff;
    --border: #30363d;
  }
  mark {
    background: #e09f13;
    color: #0d1117;
  }
  .topbar-1 .ssshl {
    color: #ffaa44;
  }
}

/* ===== 基础重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  padding: 0;
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 16px;
}
body {
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
i {
  font-style: normal;
}
ul, li {
  list-style: none;
  padding: 0;
  margin: 0;
}
h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  font-weight: normal;
  font-size: 1.2em;
  margin: 0;
  padding: 0;
}

/* ===== 容器 ===== */
.container {
  width: 99%;
  max-width: var(--mainbody-max-width);
  margin: auto;
  padding: 0;
}
.foot-mainbody {
  width: 96%;
  max-width: var(--mainbody-max-width);
  margin: auto;
  padding: 0;
}

/* ===== 卡片通用 ===== */
.unitcard,
.topic-item,
.author-item,
.article-card,
.announcement-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1em 10px 0 10px;
  margin:1em 0 0 0;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.card:hover,
.item:hover,
.unitcard:hover,
.topic-item:hover,
.author-item:hover,
.article-card:hover,
.announcement-card:hover {
  box-shadow: var(--shadow);
}
/* 列表项变体（覆盖卡片默认） */
.card,
.item {
  padding: 1em 1em;
  border-bottom: none;
  border-radius: 1em;
  background: #fffbee;
  margin: 0 0 1em 0;
}
.card:last-child,
.item:last-child {
  border-bottom: none;
}
.card:hover,
.item:hover {
  box-shadow: none;
}

/* ===== 标题与内容 ===== */
.item-title,
.card-title {
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 0.5em;
}
.item-title a,
.card-title a {
  color: var(--text);
}
.item-title a:hover,
.card-title a:hover {
  color: var(--accent);
  text-decoration: none;
}
.item-preview {
  font-size: 0.9375em;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.5em;
}

/* ===== 元数据 ===== */
.stats {
  font-size: 0.875em;
  color: var(--text-secondary);
  margin-bottom: 1em;
}
.info-row,
.item-meta {
  font-size: 0.875em;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin-top: 0.5em;
}
.info-item,
.meta-tag {
  color: var(--text-secondary);
}
.type-badge {
  background: var(--border);
  padding: 0.125em 0.5em;
  border-radius: 3px;
  font-size: 0.875em;
  color: var(--text-secondary);
}
.status-tip {
  text-align: center;
  font-size: 0.875em;
  color: var(--text-secondary);
  margin-top: 0.5em;
}

/* ===== 匹配行 ===== */
.matched-lines {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  margin: 0.5em 0;
}
.line,
.fallback-preview {
  border-bottom: 1px solid rgba(169, 168, 167, 0.904);
  font-size: 0.9375em;
  line-height: 1.7;
  color: var(--text);
  padding: 0.5em;
  word-break: break-word;
}
mark {
  background: #ffeb3b;
  padding: 0 2px;
}
.item-topic::before {
  content: "📌 ";
}
.item-source::before {
  content: "📖 ";
}
.topic-link {
  color: var(--accent);
}
.item-topic a {
  color: var(--text-secondary);
}

/* ===== 搜索框 ===== */
.search-box {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0.75em 0;
  margin-bottom: 1em;
  background: var(--bg);
  border-bottom: 0;
  overflow: hidden;
}
.search-box-inner {
  position: relative;
  max-width: 100%;
}
.search-box input,
.search-panel input {
  width: 100%;
  padding: 0.5em 6em 0.5em 0.75em;
  font-size: 1em;
  border: 1px solid var(--border);
  border-radius: 3px;
  outline: none;
  background: var(--bg-card);
  color: var(--text);
}
.search-box input:focus,
.search-panel input:focus {
  border-color: var(--accent);
}
.search-box .search-btn,
.search-box .sp-search-btn,
.search-panel .sp-search-btn {
  position: absolute;
  right: 0.5em;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 0.25em 0.75em;
  border-radius: 3px;
  font-size: 0.875em;
  cursor: pointer;
}
.search-box .search-btn:hover,
.search-box .sp-search-btn:hover,
.search-panel .sp-search-btn:hover {
  background: #0256b9;
}
.search-box .clear-btn,
.search-box .sp-cancel-btn,
.search-panel .sp-cancel-btn {
  position: absolute;
  right: 4.5em;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 0.875em;
  cursor: pointer;
  color: var(--text-secondary);
}
.search-box .clear-btn:hover,
.search-box .sp-cancel-btn:hover,
.search-panel .sp-cancel-btn:hover {
  color: var(--accent);
}
.search-panel {
  display: none;
  margin-bottom: 1em;
}
.search-panel.show {
  display: block;
}
.search-panel-inner {
  position: relative;
}

/* ===== 分页 ===== */
.pagination,
.pages {
  display: flex;
  justify-content: center;
  gap: 0.25em;
  margin-top: 1.5em;
  flex-wrap: wrap;
}
.pagination a,
.pagination span,
.pages a,
.pages span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2em;
  height: 2em;
  padding: 0 0.5em;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--accent);
  font-size: 1em;
  cursor: pointer;
  background: var(--bg-card);
}
.pagination a:hover,
.pages a:hover {
  background: var(--border);
  text-decoration: none;
}
.pagination .current,
.pages span.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  cursor: default;
}
.pagination .disabled,
.pages .disabled {
  color: var(--text-secondary);
  cursor: default;
  pointer-events: none;
}
.pagination .ellipsis,
.pages .ellipsis {
  padding: 0 0.25em;
  color: var(--text-secondary);
  border: none;
  background: none;
  cursor: default;
}

/* ===== 导航栏 ===== */
.header-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0.5em 0;
}
.nav-main {
  width: 96%;
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, max-content));
  line-height: 1.9em;
  text-align: center;
  gap: 0.5em 1.25em;
  justify-content: center;
  align-items: center;
}
.nav-main a {
  overflow: visible;
  padding: 0.3125em 0.75em;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  white-space: nowrap;
  text-align: center;
}
.nav-main a:hover {
  color: var(--accent);
}
.nav-main img {
  height: 1.9em;
  margin: 0;
}

/* ===== 作者页 ===== */
.header {
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 1em 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5em;
}
.header .avatar {
  width: 4em;
  height: 4em;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}
.header .info {
  flex: 1;
  min-width: 0;
}
.header h1 {
  font-size: 1.25em;
  margin-bottom: 0.25em;
  word-break: break-all;
}
.header .works,
.header p {
  font-size: 0.875em;
  color: var(--text-secondary);
  margin-bottom: 0.25em;
}
.header .works .works-list {
  color: var(--text-secondary);
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 1em;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5em;
}
.sort-btn {
  display: inline-block;
  padding: 0.25em 0.75em;
  font-size: 0.875em;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg-card);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
.sort-btn:hover {
  background: var(--border);
  text-decoration: none;
}
.sort-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2em;
  height: 2em;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  margin-left: auto;
  font-size: 0.875em;
}
.search-toggle:hover {
  background: var(--border);
  color: var(--accent);
}
.search-toggle.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ===== 加载更多 ===== */
.load-more-btn {
  text-align: center;
  margin: 1em 0;
}
.load-more-btn button {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.5em 1.5em;
  border-radius: var(--radius);
  font-size: 0.9375em;
  cursor: pointer;
  color: var(--accent);
}
.load-more-btn button:hover {
  background: var(--border);
}

/* ===== 文章展开 ===== */
.article-full-content {
  padding: 1em;
  margin-top: 0.75em;
}
.article-full-content .article-text {
  font-size: 1em;
  line-height: 1.7;
}
.article-full-content .article-text p {
  margin-bottom: 0.5em;
}
.close-full-content {
  text-align: center;
  margin-top: 0.75em;
}
.close-full-content button {
  background: var(--border);
  border: 1px solid var(--border);
  padding: 0.25em 0.75em;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.875em;
  color: var(--text);
}
.close-full-content button:hover {
  background: var(--text-secondary);
  color: var(--bg-card);
}

/* ===== 帖子内容 ===== */
.p {
  margin: 0.5em 0;
}
.postmessage,
.postmessage_f1,
.postmessage_fn {
  padding: 0 0.1em 0.8em 0.8em;
  margin-bottom: 1em;
  font-size: 1em;
  line-height: 1.75em;
  clear: both;
  text-indent: 0;
}
.postmessage .p,
.postmessage_f1 .p,
.postmessage_fn .p {
  text-indent: 2em;
}
.postmessage .p img,
.postmessage_f1 .p img,
.postmessage_fn .p img {
  margin-left: -2em;
  max-width: 90%;
}
.postmessage h1, .postmessage_f1 h1, .postmessage_fn h1,
.postmessage h2, .postmessage_f1 h2, .postmessage_fn h2 {
  font-size: 1em;
  margin: 0;
  padding: 0;
  font-weight: bold;
}
.postmessage h3, .postmessage_f1 h3, .postmessage_fn h3 {
  font-size: 1em;
  margin: 0;
  padding: 0;
  font-weight: bold;
  color: #cc6600;
  text-indent: 2em;
}
.postmessage h4, .postmessage_f1 h4, .postmessage_fn h4,
.postmessage h5, .postmessage_f1 h5, .postmessage_fn h5,
.postmessage h6, .postmessage_f1 h6, .postmessage_fn h6 {
  font-size: 1em;
  font-weight: normal;
  margin: 0;
  padding: 0;
}
.postmessage .content-0, .postmessage_f1 .content-0, .postmessage_fn .content-0 {
  font-size: 1em;
  font-weight: bold;
  color: #000;
}
.postmessage .content-1, .postmessage_f1 .content-1, .postmessage_fn .content-1 {
  border-left: solid 2px #1d974b;
  margin: 0 5px 0 0;
  padding: 0 5px;
  font-size: 1em;
  font-weight: normal;
  color: #000;
  background-color: #d7d2d2;
}
.postmessage .content-2, .postmessage_f1 .content-2, .postmessage_fn .content-2 {
  font-size: 0.9em;
  font-weight: normal;
  color: #008800;
}
.postmessage .content-s, .postmessage_f1 .content-s, .postmessage_fn .content-s {
  font-size: 0.8em;
  font-weight: normal;
  color: #333;
}
.postmessage_author {
  display: block;
  font-size: 0.9em;
  font-weight: normal;
  color: #333;
}
.messageimg {}
.messagezs {
  font-size: 0.9em;
  color: #333;
}
.postmessage_f1_hide {
  height: 5em;
  top: -5em;
  margin-bottom: -5em;
  width: 100%;
  position: relative;
  padding: 0;
  background: -webkit-gradient(linear, 0 0%, 0 100%, from(rgba(255, 255, 255, 0)), to(rgb(255, 255, 255)));
}
#show_more_btn,
#show_less_btn {
  bottom: 1em;
  height: 2em;
  text-align: center;
  top: -2em;
  margin-bottom: -2em;
  position: relative;
}
#show_more_btn span,
#show_less_btn span {
  cursor: pointer;
  border: solid 1px orange;
  padding: 5px 10px;
  border-radius: 5px;
  background-color: #fff;
}

/* ===== 目录 ===== */
.mltext {
  font-weight: bold;
  font-size: 0.9em;
  margin: 5px 0 5px 5px;
}
.catalogcell_upchapter {
  padding: 0 0 0 5px;
  color: #333;
  border-bottom: solid 1px #c9c9c9;
  background-color: #d3e3ce;
}
.catalogcell_upchapter b {
  padding-left: 1.5em;
  margin: 0 0 0 -0.5em;
}
.catalogcell_upchapter i,
.catalogcell i,
.catalogcellnow i {
  border: 0;
  font-size: 0.7em;
  font-style: normal;
  color: #555;
  font-weight: normal;
  padding: 0;
  margin: 0 -0.5em 0 0;
  width: 2.6em;
  display: inline-block;
}
.catalogcell_upchapter em,
.catalogcell em,
.catalogcellnow em {
  font-size: 0.8em;
  font-style: normal;
  color: #555;
  font-weight: normal;
}
.catalogcell {
  padding: 0 0 0 5px;
  color: #333;
  border-bottom: solid 1px #c9c9c9;
}
.catalogcell a {
  padding-left: 1.5em;
  text-decoration: none;
  color: #353c46;
}
.catalogcell a:visited {
  color: #353c46;
}
.catalogcellnow {
  padding: 0 0 0 5px;
  margin: 0;
  border-bottom: solid 1px #c9c9c9;
  color: #000;
  font-weight: normal;
  background-color: #edd894;
}
.catalogcellnow a,
.catalogcellnow a:link,
.catalogcellnow a:visited,
.catalogcellnow a:hover,
.catalogcellnow a:active {
  text-decoration: none;
  padding-left: 1.5em;
  font-weight: normal;
  color: #000;
}
.catalogcell_3 a:before,
.catalogcell_3 b:before {
  content: "";
  margin: 0 0.1em 0 -1.3em;
  width: 0.8em;
  height: 0.8em;
  display: inline-block;
  border: none;
  background-color: #3f8c22;
}
.catalogcell_2 a:before,
.catalogcell_2 b:before {
  content: "";
  margin: 0 0.1em 0 -1.0em;
  width: 0.5em;
  height: 0.8em;
  display: inline-block;
  border: none;
  background-color: #1d974b;
}
.catalogcell_1 a:before,
.catalogcell_1 b:before {
  content: "";
  margin: 0 0.1em 0 -0.7em;
  width: 0.2em;
  height: 0.8em;
  display: inline-block;
  border: none;
  background-color: #27a556;
}
.catalogcell_3 a {
  color: #393939;
  font-weight: bold;
  margin: 0 0 0 -0.5em;
}
.catalogcell_3 a:visited {
  color: #393939;
  font-weight: bold;
}
.catalogcell_2 a {
  color: #393939;
  font-weight: bold;
  font-size: 1em;
  margin: 0 0 0 -0.5em;
}
.catalogcell_2 a:visited {
  color: #393939;
  font-weight: bold;
  font-size: 1em;
}
.catalogcell_1 a {
  color: #353c46;
  font-weight: bold;
  font-size: 1em;
  margin: 0 0 0 -0.3em;
}
.catalogcell_1 a:visited {
  color: #353c46;
  font-weight: bold;
  font-size: 1em;
}
.catalogcell_0 a {
  color: #6c7481;
  font-weight: normal;
  font-size: 0.9em;
  margin: 0 0 0 1em;
}
.catalogcell_0 a:visited {
  color: #6c7481;
  font-weight: normal;
  font-size: 0.9em;
}

/* ===== 子版块 ===== */
.subforum {
  margin: 1em 0 0 0;
  padding: 0;
}
.subforumhp {
  margin: 1em 0 1em 0;
  padding: 0 1em 1em 1em;
  border-bottom: solid 1px #A4A4A4;
}
.trforum {
  background-color: #fff;
  padding: 0.5em;
  margin: 1em 0 1em 0;
  border-left: solid 2px #FF7D7D;
}
.trforumname {}
.trforumdes {
  font-size: 0.9em;
}
.forumnums {
  float: right;
}
.notopic {
  margin: 0.9em;
  padding: 0 0 0 0.5em;
  border-left: solid 2px #FF7D7D;
}
.pxbar {
  background-color: #fff;
  color: #000;
  border: solid 1px green;
  margin: 2px 2px 5px 0px;
}
.textarea1 {
  height: 500px;
  width: 90%;
  margin-top: 2px;
}
.helpcard {
  margin: 1em 0 1em 0;
  background: #fff;
  min-height: 11em;
  padding: 2em;
  border-radius: 10px;
  border: 1px solid #DCDCDC;
}
.helptitle {
  font-weight: bold;
  margin: 0;
  padding-bottom: 1em;
  text-align: center;
  border-bottom: dotted 1px #000099;
}
.helpbt {
  font-weight: bold;
  margin-top: 1em;
}

/* ===== 页脚 ===== */
#footer {
  padding: 0;
  margin: 1em 0;
  font-size: 1em;
}
.footlinks {
  text-align: center;
  font-size: 0.9em;
  font-weight: normal;
  border-radius: 10px;
  padding: 0.5em;
  margin: 0.5em 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
}
.footlinks a {
  color: var(--accent);
}

/* ===== 工具类 ===== */
.list,
.results {
  display: flex;
  flex-direction: column;
}
.empty,
.empty-state {
  text-align: center;
  padding: 3em;
  color: var(--text-secondary);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin-bottom: 1.25em;
  padding: 0.75em 1em;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius);
}
.filters label {
  display: flex;
  align-items: center;
  gap: 0.375em;
  cursor: pointer;
  font-size: 0.875em;
  color: var(--text);
}
.kws {
  color: #ff0000;
  font-weight: bold;
}

/* ===== 图标 ===== */
.tcmxsicon {
  
}
.icon-search:before {
  font-size: var(--tcmxsicon-size);
  color: #3385ff;
}
.icon-rising:before {
  font-size: var(--tcmxsicon-size);
  color: #3385ff;
}
.icon-shouqi:before {
  font-size: var(--tcmxsicon-size);
  color: #028802;
  font-weight:bold;
}
.icon-zhankai:before {
  font-size: var(--tcmxsicon-size);
  color: #028802;
  font-weight: bold;
}
.icon-clear-circle:before {
  font-size: var(--tcmxsicon-size);
  color: #3385ff;
}
.icon-chanpinguanli:before {
  font-size: var(--tcmxsicon-size);
  color: #3385ff;
}
.icon-icon-shezhi-xian:before {
  font-size: var(--tcmxsicon-size);
  color: #fc8553;
}
.icon-icon-shezhi-mian:before {
  font-size: var(--tcmxsicon-size);
  color: #fc8553;
}
.icon-icon-ziti-da:before {
  font-size: var(--tcmxsicon-size);
  color: #3385ff;
}
.icon-icon-ziti-xiao:before {
  font-size: var(--tcmxsicon-size);
  color: #3385ff;
}
.icon-a-Plus7:before {
  font-size: var(--tcmxsicon-size);
  color: #fc8553;
}
.icon-icon-suibi:before {
  font-size: var(--tcmxsicon-size);
  color: #3385ff;
}
.icon-icon-mulu-mian:before {
  font-size: var(--tcmxsicon-size);
  color: #028802;
}
/* ===== 加载动画 ===== */
.loading {
  position: absolute;
  margin: 0 auto;
  left: 50%;
  margin-left: -32px;
  z-index: 15;
  border-radius: 50%;
  border-top: 16px solid #3f8c22;
  border-bottom: 16px solid orange;
  border-left: 16px solid #f5f5f5;
  border-right: 16px solid #f5f5f5;
  width: 32px;
  height: 32px;
  animation: loading_an 2s linear infinite;
}
@keyframes loading_an {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== 回到顶部 ===== */
.buttontop-top {
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  white-space: nowrap;
}
.buttontop-top.buttontop-fade-out,
.buttontop-top.buttontop-is-visible,
.no-touch .buttontop-top:hover {
  transition: opacity 0.3s 0s, visibility 0s 0s;
}
.buttontop-top.buttontop-is-visible {
  visibility: visible;
  opacity: 1;
}
.buttontop-top.buttontop-fade-out {
  opacity: 0.5;
}
.buttontop-top:hover {
  opacity: 1;
  color: #262626;
  text-decoration: none;
}

/* ===== 悬浮工具栏 ===== */
#top-tools {
  width: 50px;
  float: right;
  position: fixed;
  right: calc(50% - 495px);
  z-index: 11;
  margin: 0;
  padding: 0;
  list-style: none;
  bottom: 156px;
  display: none;
}
#top-tools li,
#top-tools ul {
  border: 0;
  font-family: inherit;
  font-size: 100%;
  font-style: inherit;
  margin: 0;
  padding: 0;
  vertical-align: baseline;
}
#top-tools li {
  background: rgba(55, 55, 55, 0.8);
  font-size: 20px;
  color: #fff;
  width: 50px;
  height: 50px;
  opacity: 0.6;
  line-height: 50px;
  text-align: center;
  margin-top: 16px;
  display: block;
  cursor: pointer;
  border-radius: 10px;
  transition: 0.2s;
}
#top-tools li i:hover {
  opacity: 1;
}
#top-tools-catalog {
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 11;
  position: fixed;
  text-align: center;
}
#top-tools-catalog li:hover {
  opacity: 1;
}
.side-toolbar {
  position: fixed;
  display: flex;
  flex-direction: column;
  z-index: 100;
}
.side-toolbar button {
  display: flex;
  align-items: center;
  justify-content: center;
}
.side-toolbar button:hover {
  font-weight: bold; 
}

/* ===== 主按钮与工具面板 ===== */
#mainToggleBtn {
  position: fixed;
  bottom: 150px;
  right: calc(50% - 495px);
  z-index: 9999;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: rgba(56, 112, 200, 0.16);
  border: none;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.9;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
#mainToggleBtn:hover {
  opacity: 1;font-weight: bold;
}
#toolsWrapper {
  position: fixed;
  bottom: 206px;
  right: calc(50% - 495px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
#toolsWrapper.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
#toolsWrapper #top-tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: static;
  width: auto;
  float: none;
  bottom: auto;
  right: auto;
  z-index: auto;
}
#toolsWrapper #top-tools li {
  margin: 0;
  background: rgba(55, 55, 55, 0.1);
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  border-radius: 10px;
  cursor: pointer;
  opacity: 1;
  display: block;
  font-size: 18px;
  position: static;
  float: none;
  bottom: auto;
  right: auto;
  z-index: auto;
}
#toolsWrapper #top-tools li:hover {
  background: rgba(55, 55, 55, 0.2);
}
#toolsWrapper #top-tools li i {
  color: #f0ecec;
  font-size: 30px;
}

/* ===== 百度站内搜索 ===== */
.nolook-bd-search {
  display: none;
}
.look-bd-search {
  border-radius: 5px;
  position: fixed;
  bottom: 350px;
  right: calc(50% - 440px);
  z-index: 12;
  background-color: #f5f5f5;
  border: solid 1px #000;
  height: 100px;
  padding: 30px 10px 10px 10px;
}
.bdcs-search-form-input {
  display: block;
  float: left;
  border-radius: 5px;
  box-sizing: content-box;
  max-width: 90%;
  width: 15em;
  height: 2em;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #3385ff;
  -webkit-appearance: none;
}
.bdcs-search-form-input:focus {
  outline: none;
  border: 1px solid #3385ff;
}
.bdcs-search-form-submit {
  border-radius: 5px;
  box-sizing: content-box;
  margin: 0;
  width: 4em;
  height: 2em;
  color: #fff;
  background: #3385ff;
  border: 0;
  -webkit-appearance: none;
  text-align: center;
}

/* ===== 图标菜单 ===== */
.nolook-icon-menu {
  display: none;
}
.look-icon-menu {
  border-radius: 5px;
  position: fixed;
  bottom: 180px;
  right: calc(50% - 440px);
  z-index: 12;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  padding: 10px;
}
.icon-menu-h1 {
  color: var(--text);
  border-bottom: 1px solid var(--border);
  margin-top: 10px;
}
.icon-menu-h1 a {
  color: var(--text);
}
.icon-menu-h2 {
  margin: 5px 0;
}

/* ===== 聊天 ===== */
#whisper {
  border-radius: 5px;
  position: fixed;
  bottom: 50px;
  right: calc(50% - 440px);
  min-width: 200px;
  min-height: 50px;
  max-width: 80%;
  z-index: 10;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
}
#chatTemplate {
  color: var(--text);
  overflow: auto;
  padding: 8px 0 16px 13px;
  line-height: 2em;
  max-height: calc(90vh - 67.5px);
  overflow-y: auto;
}
#whisper.unavailable {
  visibility: hidden;
  -webkit-transform: scale(0);
  transform: scale(0);
  opacity: 0;
}

/* ===== 响应式：桌面端 ===== */
@media all and (min-width: 990px) {
  :root {
    --mainbody-max-width: 860px;
    --tcmxsicon-size: 35px;
  }
  html {
    font-size: 19px;
  }
  #top-tools-catalog {
    width: 50px;
    right: calc(50% - 495px);
    bottom: 70px;
  }
  #top-tools-catalog li {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 20px;
    border-radius: var(--radius);
    background: rgba(56, 112, 200, 0.16);
    opacity: 0.8;
  }
  .side-toolbar {
  right: calc(50% - 495px);
  bottom:350px;
  gap: 16px;
 }
.side-toolbar button {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: rgba(56, 112, 200, 0.16);opacity: 0.9;
}
}

/* ===== 响应式：平板/手机 ===== */
@media all and (max-width: 989px) {
  :root {
    --mainbody-max-width: 95%;
    --tcmxsicon-size: 25px;
  }
  html {
    font-size: 16px;
  }
  #top-tools {
    display: none;
  }
  #toolsWrapper #top-tools {
    display: flex;
  }
  #toolsWrapper #top-tools li {
    position: static;
    right: auto;
    bottom: auto;
    opacity: 1;
  }
  #top-tools-catalog {
    width: 30px;
    right: 5px;
    bottom: 70px;
  }
  #top-tools-catalog li {
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-size: 16px;
    border-radius: var(--radius);
    background: rgba(56, 112, 200, 0.16);
    opacity: 0.8;
  }
  .side-toolbar {
  right: 5px;
  bottom:350px;
  gap: 16px;
 }
.side-toolbar button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: rgba(56, 112, 200, 0.16);opacity: 0.9;
}
  .topbar-1 img {
    height: 40px;
  }
  .topbar-1 .webtitle {
    font-size: 15px;
    font-weight: bold;
  }
  .topbar-lm {
    font-size: 15px;
  }
  .look-bd-search {
    bottom: 250px;
    right: 35px;
  }
  .bdcs-search-form-input {
    width: 12em;
  }
  .look-icon-menu {
    bottom: 150px;
    right: 35px;
  }
  #whisper {
    bottom: 50px;
    right: 5px;
  }
  #mainToggleBtn {
    position: fixed;
    bottom: 110px;
    right: 5px;
    width: 30px;
    height: 30px;
    font-size: 18px;
    border-radius: var(--radius);
    z-index: 9999;
    background: rgba(56, 112, 200, 0.16);
    border: none;
    opacity: 0.9;
  }
  #toolsWrapper {
    position: fixed;
    bottom: 150px;
    right: 5px;
    padding: 0;
  }
  #toolsWrapper #top-tools {
    display: flex;
    flex-direction: column;
    position: static;
    gap: 6px;
  }
  #toolsWrapper #top-tools li {
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-size: 14px;
    position: static;
    float: none;
    right: auto;
    bottom: auto;
    opacity: 1;
    background: rgba(55, 55, 55, 0.1);
    margin: 0;
    border-radius: var(--radius);
  }
  #toolsWrapper #top-tools li i {
    font-size: 14px;
  }
}
/* ===== 通用页面卡片标题样式（authorlist、topiclist 等） ===== */
.page-header-card {
  background: white;
  border-radius: 1em;
  padding: 1.25em 1.5em;
  margin-bottom: 1.25em;
  border: 1px solid var(--border);
}
.page-header-card h1 {
  font-size: 1.375em;
  margin-bottom: 0.375em;
  word-break: break-all;
  color: var(--text);
  font-weight: normal;
}
.page-header-card p {
  font-size: 0.875em;
  color: var(--text-secondary);
}
/* ===== 文章页通用样式（article、showpost、showrepost） ===== */
.article-header {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-bottom: 1.25em;
  padding-bottom: 1em;
  border-bottom: 1px solid #eef2f6;
}
.article-header .author-avatar {
  width: 3em;
  height: 3em;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #eef2f6;
  flex-shrink: 0;
}
.article-header .author-info { flex: 1; min-width: 0; }
.article-header .author-name { font-size: 0.9375em; font-weight: 500; }
.article-header .article-source {
  font-size: 0.8125em;
  color: #64748b;
  margin-top: 0.125em;
}
.article-title {
  font-size: 1.25em;
  font-weight: 700;
  margin-bottom: 1.25em;
  line-height: 1.5;
  word-break: break-all;
}
.article-body {
  font-size: 1em;
  line-height: 1.8;
  word-break: break-word;
}
.article-body p {
  margin-bottom: 0.75em;
  text-indent: 2em;
  position: relative;
}
.article-body p::selection { background: #fef08a; }
.article-body p .highlight {
  background: #fef08a;
  padding: 0 2px;
  border-radius: 2px;
  cursor: pointer;
}
.article-body p .highlight:hover { background: #fde047; }
.article-body p .highlight-note {
  border-bottom: 2px solid var(--accent);
  padding: 0 2px;
  border-radius: 0;
  cursor: pointer;
}
.article-body p .highlight-note:hover { border-bottom-color: #2563eb; }
.article-body p .highlight-both {
  background: #fef08a;
  border-bottom: 2px solid var(--accent);
  padding: 0 2px;
  border-radius: 2px 2px 0 0;
  cursor: pointer;
}
.article-body p .highlight-both:hover { background: #fde047; }
.article-body p .kws {
  background: #ffeb3b;
  color: #333;
  padding: 0 2px;
  border-radius: 2px;
}
.article-footer {
  padding: 1em;
  border-bottom: 1px solid #eef2f6;
  text-align: center;
  margin:1em;
}
.article-footer a,
.nav-links a {
  font-size: 0.8125em;
  color: var(--accent);
  text-decoration: none;
  padding: 0.375em 0.875em;
  border: 1px solid #cbd5e1;
  border-radius: 1.25em;
  transition: 0.2s;
}
.article-footer a:hover,
.nav-links a:hover {
  background: #f1f5f9;
  border-color: var(--accent);
}
.nav-links {
  margin-bottom: 1em;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5em;
}
.float-tip {
  position: fixed;
  background: rgba(30, 41, 59, 0.9);
  color: white;
  padding: 0.5em 1em;
  border-radius: 0.5em;
  font-size: 0.8125em;
  z-index: 300;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  white-space: normal;
  max-width: 80vw;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.float-tip.show { opacity: 1; }

/* ===== 医家网格通用样式（authorlist、index） ===== */
.author-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8em, 1fr));
  gap: 1em;
}
.author-grid-large {
  grid-template-columns: repeat(auto-fill, minmax(10em, 1fr));
}
.author-item { text-align: center; }
.author-link {
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75em;
}
.author-link-avatar {
  width: 4em;
  height: 4em;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #eef2f6;
}
.author-link-avatar-small {
  width: 3.5em;
  height: 3.5em;
}
.author-name {
  font-size: 0.9375em;
  font-weight: 500;
  word-break: break-all;
}
.author-name-small { font-size: 0.875em; }
.author-link:hover .author-name { color: var(--accent); }

/* ===== 公告页通用样式 ===== */
.announcement-title {
  font-size: 1.25em;
  font-weight: 700;
  margin-bottom: 1.25em;
  line-height: 1.5;
}
.announcement-list { list-style: none; padding: 0; margin: 0; }
.announcement-item {
  padding: 1.25em;
  border-bottom: 1px solid #eef2f6;
  transition: 0.2s;
}
.announcement-item:hover { background: #f8fafc; }
.announcement-item:last-child { border-bottom: none; }
.announcement-item-title {
  font-size: 1.125em;
  font-weight: 600;
  margin-bottom: 0.75em;
  color: var(--text);
}
.announcement-item-content {
  font-size: 0.9375em;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 0.75em;
  word-break: break-word;
}
.announcement-time { font-size: 0.8125em; color: #64748b; }
.announcement-empty {
  text-align: center;
  padding: 3em;
  color: #94a3b8;
  font-size: 0.9375em;
}

/* ===== 主题列表通用样式 ===== */
.topic-list { display: flex; flex-direction: column; gap: 1em; }
.topic-item-inner { padding: 1.125em 1.375em; }
.topic-item-title {
  font-size: 1.0625em;
  font-weight: 600;
  margin-bottom: 0.5em;
}
.topic-item-title a { text-decoration: none; color: var(--text); }
.topic-item-title a:hover { color: var(--accent); text-decoration: underline; }
.topic-item-post-title {
  font-size: 0.9375em;
  color: #64748b;
  margin-bottom: 0.375em;
  font-weight: 500;
}
.topic-item-preview {
  font-size: 0.875em;
  color: #94a3b8;
  line-height: 1.6;
  word-break: break-word;
}

/* ===== 文章列表通用样式（viewlist、index） ===== */
.post-list { display: grid; gap: 0.75em; }
.post-entry {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1em;
}
.post-title {
  font-size: 1.0625em;
  font-weight: 600;
  margin-bottom: 0.5em;
  line-height: 1.4;
}
.post-title a { color: var(--text); text-decoration: none; }
.post-title a:hover { color: var(--accent); text-decoration: underline; }
.post-meta { font-size: 0.8125em; color: var(--text-secondary); margin-bottom: 0.5em; }
.post-author { color: var(--accent); text-decoration: none; }
.post-author:hover { text-decoration: underline; }
.post-preview {
  font-size: 0.9375em;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.5em;
  word-break: break-word;
}
.post-topic { font-size: 0.8125em; color: var(--text-secondary); }
.post-topic a { color: var(--accent); text-decoration: none; }
.post-topic a:hover { text-decoration: underline; }

.load-more { text-align: center; padding: 1.5em; max-width: 768px; margin: 0 auto; }
.load-more button {
  background: var(--accent);
  border: none;
  color: white;
  padding: 0.625em 2em;
  border-radius: var(--radius);
  font-size: 0.9375em;
  cursor: pointer;
  transition: background 0.2s;
}
.load-more button:hover { background: #1565c0; }
.load-more button:disabled { background: var(--border); cursor: not-allowed; }
.load-more button.loading { opacity: 0.7; }

.loading-tip { text-align: center; padding: 1em; color: var(--text-secondary); font-size: 0.875em; }

@media (max-width: 30em) {
  .post-entry { padding: 0.875em; }
  .post-title { font-size: 1em; }
  .post-preview { font-size: 0.875em; }
}
