/* 云墨匠 · fenxm 版式复刻 */

:root {
  --brand: #2B5DA8;
  --text: #333;
  --text2: #888;
  --line: #eee;
  --radius: 10px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font: 400 14px/1.8 "PingFang SC", "Lantinghei SC", "Microsoft Yahei",
    "Hiragino Sans GB", "Microsoft Sans Serif", "WenQuanYi Micro Hei", sans-serif;
  color: var(--text);
  background: #f1f1f1;
  padding-top: 80px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { border: 0; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 10px; }
.fl { float: left; }
.fr { float: right; }
.clearfix::after { content: ""; display: table; clear: both; }

/* ---------- 头部 ---------- */

.header {
  width: 100%;
  height: 80px;
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.h-wrap { height: 80px; position: relative; }

.logo-area { float: left; margin: 0; padding-right: 30px; }
.logo-area > a { display: flex; align-items: center; height: 80px; }
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-text { font-size: 24px; font-weight: 700; margin-left: 10px; letter-spacing: 0.02em; }

.pc-nav { float: left; }
.pc-nav li { float: left; list-style: none; }
.pc-nav li a {
  display: block;
  height: 80px;
  line-height: 80px;
  padding: 0 18px;
  font-size: 16px;
  color: var(--text);
}
.pc-nav li a:hover,
.pc-nav li a.active { color: var(--brand); }

.search-button {
  float: right;
  width: 60px;
  height: 80px;
  line-height: 80px;
  text-align: center;
  cursor: pointer;
  color: var(--text);
}
.search-button:hover { color: var(--brand); }

.search-area {
  position: absolute;
  top: 80px;
  right: 0;
  width: 28%;
  min-width: 300px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 15px;
  display: none;
}
.search-area.open { display: block; }
.search-area form { display: flex; gap: 8px; }
.search-area .s-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.5em 0.8em;
  font-size: 14px;
  outline: none;
}
.search-area .s-input:focus { border-color: var(--brand); }
.search-area .s-button {
  border: none;
  background: var(--brand);
  color: #fff;
  border-radius: 6px;
  padding: 0.5em 1.2em;
  font-size: 14px;
}

.m-nav-btn { display: none; }
.m-nav { display: none; }

/* ---------- 内容区 ---------- */

#content { padding: 14px 10px 30px; }

/* 双栏 flex：侧栏原生 sticky 钉住（top 由脚本按自身高度算负值），滚动全程浏览器处理，零抖动 */
#content > .clearfix { display: flex; align-items: flex-start; justify-content: space-between; column-gap: 20px; }
/* flex 布局下不需要 clearfix 的伪元素：否则它会变成第三个 flex 项，多吃掉一个 20px 间距，导致左右留白不对称 */
#content > .clearfix::after { display: none; }
#mainbox { width: 70.4%; flex: 1 1 auto; min-width: 0; }
#sidebar {
  width: 28%;
  flex: 0 0 auto;
  align-self: flex-start;
  position: sticky;
  top: 0;
}
.footer { clear: both; }

/* 最新评论：卡片底部不留白，最后一条评论文字直接对齐容器底（= 分页条那行）
   用 .widget.widget-cmt 提高优先级——.widget 的 padding/margin 定义在后面，同权重会覆盖它 */
.widget.widget-cmt {
  margin-bottom: 0;
  padding-bottom: 0;
}
.widget-cmt .cmt-list li:last-child { padding-bottom: 0; }

/* 横幅 */
.banner-hero {
  height: 250px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  background: #0a1a36;
}
.banner-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 快捷入口（三合一白卡） */
.full-pst {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}
.full-pst .img-list { float: left; width: 31.4%; margin-right: 2.9%; }
.full-pst .img-list:last-child { margin-right: 0; }
.full-pst .figure { float: left; width: 50px; height: 50px; }
.full-pst .figure a { display: block; width: 100%; height: 100%; }
.q-icon { display: flex; width: 50px; height: 50px; }
.q-icon svg { width: 100%; height: 100%; }
.q-icon img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 10px; }
.full-pst .content { margin-left: 62px; padding-top: 1px; }
.full-pst .title { font-size: 16px; font-weight: 400; line-height: 1.4; }
.full-pst .title a:hover { color: var(--brand); }
.full-pst .intro { font-size: 13px; color: var(--text2); margin-top: 2px; }

/* 文章卡 */
.article-list {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.4em 1.5em;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.3s ease;
  display: flex;
  align-items: stretch;
  gap: 20px;
}
.article-list:hover { box-shadow: 0 6px 12px rgba(26, 26, 26, 0.1); }

.article-list .figure {
  flex: none;
  width: 240px;
  height: 134px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: #f5f6f8;
}
.thumbnail {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.thumbnail span {
  font-size: 60px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  font-family: Georgia, "Microsoft Yahei", serif;
}
.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.art-category {
  position: absolute;
  top: 5px;
  left: 5px;
  opacity: 0.65;
  color: #fff;
  background: #000;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.5em;
}

.article-list .content {
  flex: 1;
  min-width: 0;
  margin-left: 0;
  color: var(--text2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2px 0;
}
.article-list .title {
  font-size: 18px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.5;
  margin-top: -4px; /* 抵消行框上半行距，让文字顶边贴齐图片顶边 */
}
.article-list .title a { color: #1a1a1a; }
.article-list .title a:hover { color: var(--brand); }
.article-list .intro {
  margin: 0.45em 0;
  padding: 0;
  color: var(--text2);
  font-size: 15px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 3em; /* 固定 = 2 行 × 1.5 行高，无 padding 参与裁切，任何浏览器都精确只露 2 行 */
}
.article-list .data { font-size: 14px; color: var(--text2); line-height: 1.2; margin-bottom: -3px; /* 抵消行框下半行距，贴齐图片底边 */ }
.article-list .data span,
.article-list .data time { padding-right: 1.2em; }

.ico {
  display: inline-block;
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 4px;
  background-repeat: no-repeat;
  background-size: contain;
}
.ico-user {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M12 12a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm0 2c-3.3 0-8 1.7-8 5v1h16v-1c0-3.3-4.7-5-8-5z'/%3E%3C/svg%3E");
}
.ico-time {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm1 10.6 4 2.3-.8 1.3L11 13V7h2z'/%3E%3C/svg%3E");
}
.ico-app {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M4 4h7v7H4zM13 4h7v7h-7zM4 13h7v7H4zM13 13h7v7h-7z'/%3E%3C/svg%3E");
}
.ico-eye {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M12 5C5.5 5 1.7 11.4 1.6 11.7a.7.7 0 0 0 0 .6C1.7 12.6 5.5 19 12 19s10.3-6.4 10.4-6.7a.7.7 0 0 0 0-.6C22.3 11.4 18.5 5 12 5zm0 11a4 4 0 1 1 4-4 4 4 0 0 1-4 4zm0-6a2 2 0 1 0 2 2 2 2 0 0 0-2-2z'/%3E%3C/svg%3E");
}
.ico-cmt {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M20 2H4a2 2 0 0 0-2 2v18l4-4h14a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zM7 9h10v2H7zm0-4h10v2H7z'/%3E%3C/svg%3E");
}

/* 翻页条 */
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 0;
}
.pager a,
.pager span {
  display: inline-block;
  padding: 8px 14px;
  background: #fff;
  border-radius: 8px;
  font-size: 14px;
  color: #33415c;
  line-height: 1.2;
}
.pager a:hover { color: var(--brand); box-shadow: 0 2px 8px rgba(26, 26, 26, 0.08); }
.pager span.cur { background: var(--brand); color: #fff; font-weight: 600; }
.pager span.dis { opacity: 0.4; }

.empty {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.5em 1em;
  color: var(--text2);
  text-align: center;
  font-size: 14px;
}

/* ---------- 侧栏 widget ---------- */

.widget {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 15px 15px;
  margin-bottom: 20px;
  overflow: hidden;
}

.c-title {
  font-size: 18px;
  font-weight: 400;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5em;
  margin-bottom: 0.8em;
  position: relative;
  color: var(--text);
}
.c-title::after {
  content: "";
  background: var(--brand);
  left: 1px;
  width: 34px;
  height: 2px;
  bottom: -1px;
  position: absolute;
  transition: width 0.4s;
}
.widget:hover .c-title::after { width: 70px; }

/* 侧栏搜索 */
.widget-search { padding: 15px; }
.widget-search form { display: flex; }
.widget-search input[type="text"] {
  width: 78%;
  border: 1px solid #ddd;
  border-right: none;
  border-radius: 6px 0 0 6px;
  background: #fff;
  padding: 0.5em 0.8em;
  font-size: 14px;
  color: var(--text);
  outline: none;
}
.widget-search input[type="text"]:focus { border-color: var(--brand); }
.widget-search button {
  width: 22%;
  border: none;
  background: var(--brand);
  color: #fff;
  border-radius: 0 6px 6px 0;
  font-size: 14px;
}

/* 公告 / 热门文章 共用列表 */
.notice-list li,
.hot-list li {
  border-bottom: 1px dashed #ddd;
  padding: 0.5em 0;
  font-size: 14px;
}
.notice-list li:first-child,
.hot-list li:first-child { padding-top: 0; }
.notice-list li:last-child,
.hot-list li:last-child { border-bottom: none; padding-bottom: 0; }

.notice-list .num,
.hot-list .num {
  float: left;
  font-size: 16px;
  font-style: italic;
  font-weight: 800;
  color: var(--text2);
  line-height: 1.7;
}
.notice-list .n1, .notice-list .n2, .notice-list .n3,
.hot-list .n1, .hot-list .n2, .hot-list .n3 { color: var(--brand); }

.notice-list a,
.hot-list a {
  margin-left: 25px;
  display: block;
  color: #444;
  line-height: 1.6;
}
.notice-list a:hover,
.hot-list a:hover { color: var(--brand); }

/* 深入探索 */
.widget-explore { padding-top: 15px; }
.explore-band {
  background: #eef3fb;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text);
}
.explore-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 6px;
  border-bottom: 1px solid #f2f2f2;
  font-size: 15px;
  color: var(--text);
}
.explore-row:last-child { border-bottom: none; padding-bottom: 4px; }
.explore-row:hover { color: var(--brand); }
.explore-count {
  font-style: normal;
  font-size: 12px;
  color: #b0b0b0;
  margin-left: 8px;
}
.chev {
  width: 8px;
  height: 8px;
  border-right: 2px solid #bbb;
  border-top: 2px solid #bbb;
  transform: rotate(45deg);
  flex: none;
}

/* 标签云 */
.tag-cloud li { display: inline-block; }
/* 标签超过 18 个时默认收起，点「更多」展开 */
.tag-cloud li.tag-more { display: none; }
.tag-cloud.expanded li.tag-more { display: inline-block; }
.tag-cloud a {
  display: inline-block;
  background: #f1f1f1;
  border-radius: var(--radius);
  padding: 0.2em 0.6em;
  margin: 0.5em 0.2em 0 0;
  font-size: 13px;
  color: #555;
}
.tag-cloud a:hover { background: var(--brand); color: #fff; }

/* 公告详情页正文 */
.notice-body { font-size: 17px; line-height: 1.9; color: #333; }
.notice-body h3 { margin: 20px 0 8px; font-size: 17px; color: #222; }
.notice-body p { margin: 10px 0; }
.notice-body ul { margin: 10px 0; padding-left: 22px; }
.notice-body img { max-width: 100%; border-radius: 8px; }
.notice-body h3 { margin: 20px 0 8px; font-size: 17px; color: #222; }
.notice-body p { margin: 10px 0; }
.notice-body ul { margin: 10px 0; padding-left: 22px; }
.notice-body img { max-width: 100%; border-radius: 8px; }

/* 友情链接 */
.flink-box {
  margin-top: 20px;
  margin-bottom: 0;
  padding: 10px 15px 8px;
}
/* 标题条压扁，把高度让给下面放链接的区域 */
.flink-box .c-title {
  padding-bottom: 0.26em;
  margin-bottom: 4px;
}
.flink-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  min-height: 42px;
  padding: 6px 2px;
}
.flink-list a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #555;
  text-decoration: none;
}
.flink-list a:hover { color: #2B5DA8; }
.flink-list a svg { flex: none; opacity: 0.55; }
.flink-empty {
  display: flex;
  align-items: center;
  min-height: 42px;
  font-size: 13px;
  color: #b6bec9;
  padding: 6px 2px;
}

/* 公众号卡 */
.wechat-card {
  background: linear-gradient(135deg, #2B5DA8, #1c4a8f);
  color: #fff;
  text-align: center;
}
.wechat-card h3 { font-size: 16px; font-weight: 600; }
.wechat-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0.4em 0 1em;
}
.qr {
  width: 150px;
  height: 150px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.14);
  border: 2px dashed rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  overflow: hidden;
}
.qr img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.w-name {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

/* 最新收录 */
.recent-list .list {
  display: flex;
  gap: 12px;
  padding: 0.6em 0;
  border-bottom: 1px dashed #eee;
}
.recent-list .list:first-child { padding-top: 0; }
.recent-list .list:last-child { border-bottom: none; padding-bottom: 0; }
.avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.r-body { min-width: 0; flex: 1; }
.r-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  color: #444;
  line-height: 1.5;
}
.r-title:hover { color: var(--brand); }
.r-info { font-size: 12px; color: #999; margin-top: 2px; }
.r-author { padding-right: 1em; }

/* ---------- 分类头 / 详情页 ---------- */

.cat-head { padding-bottom: 18px; }
.cat-desc { color: var(--text2); margin-top: 0.8em; font-size: 14px; }

.post-page { padding: 1.5em; }
.cat-badge {
  display: inline-block;
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 5px;
  line-height: 1.6;
}
.post-head h1 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.45;
  margin-top: 10px;
  color: var(--text);
}
.post-sub {
  font-size: 13px;
  color: #999;
  margin-top: 0.8em;
  padding-bottom: 1em;
  border-bottom: 1px solid var(--line);
}
.post-sub span, .post-sub time { padding-right: 1.2em; }

.art-content { padding-top: 0.5em; }
.sec h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 1.5em 0 0.7em;
  padding-left: 10px;
  border-left: 3px solid var(--brand);
  line-height: 1.45;
}
.sec p { color: #555; font-size: 16px; margin-bottom: 0.8em; }
.sec ul { padding-left: 1.5em; color: #555; font-size: 16px; }
.sec li { margin-bottom: 0.4em; list-style: disc; }

.official-cta {
  margin-top: 1.8em;
  padding-top: 1.4em;
  border-top: 1px dashed var(--line);
}
.btn-official {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 0.6em 1.8em;
  border-radius: 6px;
  font-size: 14px;
  transition: filter 0.3s;
}
.art-content a.btn-official,
.btn-official { color: #fff; border-bottom: none; }
.art-content a.btn-official:hover,
.btn-official:hover { filter: brightness(1.15); color: #fff; border-bottom: none; }
.cta-hint { font-size: 12px; color: #aaa; margin-top: 0.7em; }

/* ---------- 面包屑（文章页） ---------- */

.breadcrumb {
  padding: 14px 10px 8px;
  color: #888;
  font-size: 14px;
}
.breadcrumb a { color: #888; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-top: 1px solid #aaa;
  border-right: 1px solid #aaa;
  transform: rotate(45deg);
  margin: 0 8px 1px 6px;
  vertical-align: middle;
}

/* ---------- 文章详情页（fenxm 版式） ---------- */

.art-main {
  background: #fff;
  border-radius: var(--radius);
  padding: 2em 3em;
  margin-bottom: 20px;
}
.art-main img { max-width: 100%; height: auto; border-radius: var(--radius); }

.art-main .art-title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
}

.art-main .head-info {
  color: #999;
  padding-top: 5px;
  font-size: 14px;
}
.art-main .head-info .category,
.art-main .head-info .time,
.art-main .head-info .view { padding-right: 1em; }
.art-main .head-info .category { color: var(--brand); }

.art-main .art-content {
  padding-top: 10px;
  font-size: 16px;
  width: 100%;
}
.art-content a { color: var(--brand); }
.art-content a:hover { border-bottom: 1px dashed var(--brand); }
.art-content h3 {
  font-size: 1.4em;
  margin: 10px 0;
  font-weight: 700;
  color: var(--text);
}
.art-content p { margin-bottom: 1rem; color: #444; }
.art-content ul {
  list-style: disc;
  margin: 0 0 1rem 1.2em;
  color: #444;
}
.art-content li { margin: 0.2em 0 0.2em 0.6em; }
.art-content blockquote {
  color: #666;
  border-left: 4px solid var(--brand);
  padding: 0.5em 1em;
  background: #f9f9f9;
  margin-bottom: 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.art-content table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1rem;
}
.art-content table th,
.art-content table td {
  padding: 0.3em 0.5em;
  border: 1px solid #ddd;
  text-align: left;
}
.art-content table tr:first-child { font-weight: 700; background: #f8f8f8; }

/* 官方入口（fenxm 下载框：蓝左边条标题） */
.art-content .down-box {
  border: 1px dashed var(--brand);
  border-radius: var(--radius);
  padding: 1em 1.2em;
  margin-top: 1.5em;
}
.art-content .down-box .down-title {
  border-left: 5px solid var(--brand);
  padding-left: 10px;
  font-size: 1.2em;
  margin: 0 0 0.8em;
}
.art-content .cta-hint { font-size: 12px; color: #aaa; margin: 0.7em 0 0; }

/* 标签 */
.tag-wrap {
  font-size: 14px;
  color: #888;
  margin-top: 1.5em;
}

/* 文章页「编辑本文」小入口（站长用，低调灰字） */
.art-editbar { margin-top: 1.2em; text-align: right; }
.art-editbar a {
  font-size: 13px;
  color: #b5bcc6;
  text-decoration: none;
  border-bottom: 1px dashed #d5dae2;
  padding-bottom: 1px;
}
.art-editbar a:hover { color: var(--brand); border-bottom-color: var(--brand); }
.art-content .tags,
.tag-wrap .tags {
  display: inline-block;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  padding: 0.1em 0.5em;
  color: #333;
}
.tag-wrap .tags:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.tag-wrap .padding { padding-right: 0.5em; }

/* 上一篇 / 下一篇 */
.prev-next {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5em;
  margin-bottom: 20px;
}
.prev-next strong { font-weight: 400; }
.prev-next .post-prev,
.prev-next .post-next { width: 46%; color: #999; font-size: 16px; margin: 0; }
.prev-next .post-next { text-align: right; }
.prev-next .prev,
.prev-next .next { display: block; font-size: 14px; }
.prev-next a { color: var(--text); }
.prev-next a:hover { color: var(--brand); }

/* 相关文章 */
.related-art {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 15px 15px;
  margin-bottom: 20px;
  width: 100%;
}
.related-itemf .list {
  float: left;
  width: 48%;
  margin-right: 4%;
  padding-top: 0.7em;
  font-size: 15px;
}
.related-itemf .list:nth-of-type(even) { margin-right: 0; }
.related-itemf .list a {
  display: block;
  color: #444;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.related-itemf .list a:hover { color: var(--brand); }

/* 正文插图（居中大图，fenxm 同款） */
.art-content .img-p { text-align: center; margin-bottom: 1rem; }
.art-content .img-p img { max-width: 100%; border-radius: var(--radius); cursor: zoom-in; }

/* 图片灯箱：点击正文插图全屏看大图 */
#lightbox {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(15, 18, 24, 0.86);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; cursor: zoom-out;
}
#lightbox[hidden] { display: none; }
#lightbox img {
  width: auto; max-width: 94vw; max-height: 92vh;
  border-radius: 8px; box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
  background: #fff;
  image-rendering: -webkit-optimize-contrast;
}
#lightbox .lb-close {
  position: absolute; top: 14px; right: 18px;
  width: 42px; height: 42px; border: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.16); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer;
}
#lightbox .lb-close:hover { background: rgba(255, 255, 255, 0.3); }

/* 版本更新 */
.art-content .up-ver {
  font-size: 1.1em;
  margin: 1em 0 0.4em;
  font-weight: 700;
}
.art-content .up-ver .up-date {
  font-weight: 400;
  font-size: 13px;
  color: #999;
  margin-left: 10px;
}

/* 下载门：验证码解锁 */
.art-content .down-title {
  border-left: 5px solid var(--brand);
  padding-left: 10px;
  font-size: 1.2em;
  margin: 1.5em 0 0.8em;
}
.dl-lock {
  border: 1px dashed var(--brand);
  border-radius: var(--radius);
  padding: 1.2em;
  display: flex;
  gap: 1.2em;
  align-items: center;
}
.dl-lock .dl-main { flex: 1; min-width: 0; }
.dl-tip { color: var(--brand); margin-bottom: 0.8em; }
.dl-form input {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.45em 0.8em;
  font-size: 14px;
  outline: none;
  width: 10em;
}
.dl-form input:focus { border-color: var(--brand); }
.dl-form .dl-go {
  border: none;
  background: var(--brand);
  color: #fff;
  border-radius: 6px;
  padding: 0.5em 1.4em;
  font-size: 14px;
  margin-left: 8px;
  cursor: pointer;
}
.dl-hint { font-size: 15px; color: #556; margin-top: 0.9em; line-height: 1.7; }
.dl-qr {
  flex: none;
  width: 150px;
  height: 150px;
  border: 2px dashed rgba(0, 132, 255, 0.45);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  color: #8aa6cc;
  background: #f6faff;
  overflow: hidden;
}
.dl-qr img { width: 100%; height: 100%; object-fit: contain; border: none; margin: 0; }

/* 解锁后的网盘按钮 */
.dl-links { margin-top: 1em; }
.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand);
  color: #fff !important;
  border-radius: 6px;
  padding: 0.65em 1.3em;
  font-size: 14px;
  margin: 0 10px 10px 0;
  border-bottom: none !important;
}
.dl-btn:hover { filter: brightness(1.12); color: #fff !important; border-bottom: none !important; }
.dl-btn .dl-pwd {
  font-style: normal;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  padding: 1px 6px;
}
.ico-dl {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 3v10.2l-3.6-3.6L7 11l5 5 5-5-1.4-1.4-3.6 3.6V3h-2zM5 19h14v2H5z'/%3E%3C/svg%3E");
}

/* 留言板 */
.post-comment-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 15px 15px;
  margin-bottom: 20px;
}
.c-form textarea {
  width: 100%;
  min-height: 84px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.6em 0.8em;
  font: inherit;
  font-size: 14px;
  resize: vertical;
  outline: none;
}
.c-form textarea:focus { border-color: var(--brand); }
.c-form input {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.5em 0.8em;
  font-size: 14px;
  margin-bottom: 10px;
  outline: none;
}
.c-form input:focus { border-color: var(--brand); }
.c-actions { margin-top: 10px; display: flex; align-items: center; gap: 12px; }
.c-btn {
  border: none;
  background: var(--brand);
  color: #fff;
  border-radius: 6px;
  padding: 0.5em 1.6em;
  font-size: 14px;
  cursor: pointer;
}
.c-btn:disabled { opacity: 0.55; }
#c-status { font-size: 13px; color: #999; }
.c-list { margin-top: 1.2em; }
.c-list li {
  border-top: 1px dashed #eee;
  padding: 0.9em 0 0.3em 44px;
  position: relative;
}
.c-list li:first-child { border-top: none; }
/* 自动头像：昵称首字 + 按昵称哈希取色的圆标 */
.c-avatar {
  position: absolute; left: 0; top: 0.9em;
  width: 32px; height: 32px; border-radius: 50%;
  color: #fff; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  user-select: none;
}
.c-head { display: flex; align-items: baseline; gap: 10px; }
/* 站长身份：机器人头像 + 「站长」徽章（只认留言数据的 admin 标记，不认昵称） */
.c-avatar.admin { background: #fff; overflow: hidden; box-shadow: 0 0 0 2px var(--brand); }
.c-avatar.admin img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.badge-admin {
  flex: none; font-style: normal; font-size: 11px; line-height: 1;
  color: #fff; background: var(--brand);
  border-radius: 4px; padding: 3px 6px 2px; transform: translateY(-1px);
}
.c-list b { font-size: 14px; color: var(--brand); font-weight: 600; }
.c-list time { font-size: 12px; color: #aaa; }
.c-reply-btn {
  margin-left: auto;
  background: none; border: none; cursor: pointer;
  color: #98a2b3; font-size: 12px; padding: 0;
}
.c-reply-btn:hover { color: var(--brand); }
.c-list p { font-size: 14px; color: #444; margin-top: 0.3em; }
.c-reply { color: var(--brand); font-weight: 600; margin-right: 4px; }
/* 楼中楼：回复嵌套在被回复那条下面，浅色竖线分区，头像小一号 */
.c-list ul.c-children {
  list-style: none;
  margin: 0.7em 0 0.1em;
  padding: 0 0 0 12px;
  border-left: 2px solid #e8edf4;
}
.c-list .c-children li {
  border-top: 1px dashed #f1f3f6;
  padding: 0.7em 0 0.2em 36px;
  position: relative;
}
.c-list .c-children li:first-child { border-top: none; }
.c-list .c-children .c-avatar { width: 26px; height: 26px; font-size: 12px; top: 0.7em; }
.c-list .c-children b { font-size: 13px; }
/* 回复中的提示条 */
.c-replying {
  margin: 8px 0 2px; font-size: 13px; color: var(--brand);
  background: #eef3fb; border-radius: 6px; padding: 5px 10px;
  display: flex; align-items: center; gap: 6px;
}
.c-replying[hidden] { display: none; }
.c-replying b { font-weight: 600; }
.c-replying button {
  background: none; border: none; color: #889; cursor: pointer;
  font-size: 12px; text-decoration: underline; padding: 0; margin-left: auto;
}
.c-empty { color: #999; font-size: 13px; text-align: center; padding: 1.5em 0; }

.related { padding-bottom: 10px; }

.search-page-box input {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.55em 0.9em;
  font-size: 14px;
  outline: none;
}
.search-page-box input:focus { border-color: var(--brand); }

/* ---------- 页脚 ---------- */

.footer {
  width: 100%;
  background: #252d38;
  color: #888b98;
  margin-top: 14px;
}
.footer .main { padding: 2em 1em; }
.footer .intro { margin-bottom: 0.6em; font-size: 13px; line-height: 1.9; }
.footer small { color: #6e6f7d; font-size: 12px; }
.footer small .icp { padding-left: 1em; }
.footer a { color: #6e6f7d; }
.footer a:hover { color: #b6b9c6; }

/* ---------- 响应式 ---------- */

@media (max-width: 1200px) {
  #mainbox { width: 100%; }
  #sidebar { display: none; }
  .search-area { width: 40%; }
  .article-list .figure { width: 200px; height: 112px; }
  .article-list .content { margin-left: 0; }
}

@media (max-width: 760px) {
  body { padding-top: 60px; }
  .header, .h-wrap { height: 60px; }
  .logo-area > a { height: 60px; }
  .logo-mark { width: 34px; height: 34px; font-size: 17px; }
  .logo-text { font-size: 20px; }
  .pc-nav { display: none; }
  .search-button { width: 50px; height: 60px; line-height: 60px; }
  .search-area { top: 60px; left: 10px; right: 10px; width: auto; min-width: 0; }
  .m-nav-btn {
    display: block;
    float: right;
    width: 50px;
    height: 60px;
    cursor: pointer;
    position: relative;
  }
  .m-nav-btn i {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    margin: 4px auto;
    border-radius: 2px;
  }
  .m-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(22, 28, 38, 0.98);
    z-index: 89;
  }
  .m-nav.open { display: block; }
  .m-nav li a {
    display: block;
    height: 50px;
    line-height: 50px;
    padding: 0 6vw;
    color: #fff;
    font-size: 16px;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.1);
  }
  .m-nav li a.active { color: var(--brand); }

  #content { padding: 10px 7px 24px; }
  .banner-hero { height: auto; }
  .banner-hero img { height: auto; }
  .full-pst { padding: 14px; }
  .full-pst .img-list { width: 100%; margin: 0 0 12px; }
  .full-pst .img-list:last-child { margin-bottom: 0; }
  .full-pst .content { padding-top: 3px; }

  .article-list { padding: 3.5vw 4vw; gap: 4vw; }
  .article-list .figure { width: 34%; height: 19vw; }
  .article-list .content { margin-left: 0; padding-top: 2px; }
  .article-list .title { font-size: 16px; line-height: 1.6; }
  .article-list .intro { font-size: 13px; }
  .article-list .data { font-size: 12px; }
  .article-list .data .author { display: none; }

  .post-page { padding: 5vw 4vw; }
  .post-head h1 { font-size: 20px; }
  .sec p { font-size: 15px; }

  /* 文章详情页（fenxm 移动端规格） */
  .breadcrumb { padding: 10px 7px 6px; font-size: 13px; }
  .art-main { padding: 4vw; }
  .art-main .art-title { font-size: 22px; }
  .art-main .art-content { font-size: 16px; }
  .prev-next .post-prev,
  .prev-next .post-next { width: 46%; font-size: 14px; }
  .prev-next .prev,
  .prev-next .next { font-size: 13px; }
  .related-itemf .list { width: 100%; margin-right: 0; font-size: 14px; }

  .dl-lock { flex-direction: column-reverse; align-items: stretch; text-align: left; }
  .dl-qr { width: 100%; height: 90px; }
  .dl-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
  .dl-btn { width: 100%; justify-content: center; margin-right: 0; }
}

/* 侧栏日历挂件 */
.widget-calendar .cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.widget-calendar #cal-title { font-weight: 700; font-size: 14.5px; color: #333; }
.cal-nav {
  background: #fff;
  border: 1px solid #e4e8ef;
  border-radius: 6px;
  width: 26px;
  height: 26px;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
  color: #667;
  font-size: 15px;
  padding: 0;
  transition: all 0.2s;
}
.cal-nav:hover { color: var(--brand); border-color: var(--brand); }
.cal-grid { width: 100%; border-collapse: collapse; font-size: 12.5px; text-align: center; table-layout: fixed; }
.cal-grid th { color: #99a; font-weight: 400; padding: 5px 0; }
.cal-grid td { padding: 5px 0; color: #445; }
.cal-grid td.cal-has { background: rgba(43, 93, 168, 0.09); color: var(--brand); font-weight: 700; border-radius: 6px; }
.cal-grid td.cal-today { background: var(--brand); color: #fff; font-weight: 700; border-radius: 6px; }
.cal-note { font-size: 12px; color: #99a; margin-top: 8px; }

/* 侧栏最新评论 */
.cmt-list li { padding: 9px 0; border-bottom: 1px dashed #eef0f4; }
.cmt-list li:last-child { border-bottom: none; }
.cmt-list .cmt-post {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cmt-list .cmt-post:hover { color: var(--brand); }
.cmt-list .cmt-text {
  font-size: 13px;
  color: #667;
  margin: 4px 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cmt-list .cmt-meta { font-size: 12px; color: #9aa3b0; }
.cmt-list .cmt-empty { font-size: 13px; color: #99a; border: none; }
