@charset "utf-8";
/**
 * 仿 weibomingzi.com 图片频道全套前端模板样式
 * 特点: 经典橙黄SEO流量站配色、响应式移动端自适应、高转化率结构、无冗余外链依赖
 */

:root {
  --primary-color: #fc8d21;
  --primary-hover: #ff7700;
  --primary-light: #fff5eb;
  --text-main: #333333;
  --text-muted: #888888;
  --text-light: #aaaaaa;
  --border-color: #eaeaea;
  --border-light: #f1f1f1;
  --bg-page: #ffffff;
  --bg-subtle: #f9f9f9;
  --container-max-width: 1200px;
}

/* 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  color: var(--text-main);
  background-color: var(--bg-page);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

body, p, ul, ol, li, dl, dt, dd, h1, h2, h3, h4, h5, h6, form, input, textarea, button, select {
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.35;
}

ul, ol, li {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

em, i {
  font-style: normal;
}

a {
  color: #222222;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

/* 常用辅助类 */
.bgf { background-color: #ffffff; }
.tc { text-align: center; }
.tl { text-align: left; }
.tr { text-align: right; }
.mt1 { margin-top: 10px; }
.mt2 { margin-top: 20px; }
.mt3 { margin-top: 30px; }
.mb1 { margin-bottom: 10px; }
.mb2 { margin-bottom: 20px; }
.pb2 { padding-bottom: 20px; }
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* 容器定义 */
.container {
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.main {
  max-width: var(--container-max-width);
  margin: 15px auto 40px;
  padding: 0 15px;
}

/* ===================================================
   顶部 Header 导航与搜索区
   =================================================== */
.head {
  width: 100%;
  background: #ffffff;
  border-bottom: 2px solid var(--primary-color);
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.headbox {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: relative;
}

/* 品牌 LOGO */
.headbox .logo {
  flex-shrink: 0;
  margin-right: 20px;
}

.headbox .logo a {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.5px;
  text-decoration: none;
}

.headbox .logo a svg {
  margin-right: 8px;
  fill: var(--primary-color);
}

.headbox .logo a span.sub {
  font-size: 13px;
  color: #999;
  font-weight: normal;
  margin-left: 6px;
  border-left: 1px solid #ddd;
  padding-left: 6px;
}

/* 导航栏 */
.menu-wrap {
  display: flex;
  align-items: center;
  flex: 1;
}

.menu {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.menu > li {
  position: relative;
}

.menu > li > a {
  display: block;
  font-size: 17px;
  font-weight: 600;
  padding: 0 18px;
  height: 60px;
  line-height: 60px;
  color: #222222;
  position: relative;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.menu > li > a:hover,
.menu > li.active > a {
  color: #ffffff;
  background-color: var(--primary-color);
}

/* Hot 徽章 */
.menu .icon-hot {
  display: inline-block;
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  height: 14px;
  padding: 0 4px;
  border-radius: 7px;
  position: absolute;
  top: 10px;
  right: 4px;
  animation: pulse-hot 1.8s infinite;
}

@keyframes pulse-hot {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* 二级下拉菜单 */
.menu .ol {
  position: absolute;
  top: 60px;
  left: 0;
  min-width: 140px;
  background: #ffffff;
  border-top: 2px solid var(--primary-color);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  display: none;
  z-index: 9999;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}

.menu li:hover .ol {
  display: block;
  animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.menu .ol li a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  color: #444;
  background: #ffffff;
  border-bottom: 1px solid #f4f4f4;
  white-space: nowrap;
  transition: all 0.2s;
}

.menu .ol li a:hover {
  background: var(--primary-color);
  color: #ffffff;
  padding-left: 22px;
}

/* 顶部搜索框 */
.sch {
  flex-shrink: 0;
  margin-left: 20px;
}

.sch form {
  display: flex;
  align-items: center;
}

.sch input.txt {
  width: 190px;
  height: 36px;
  line-height: 36px;
  font-size: 13px;
  color: #444;
  padding: 0 12px;
  border: 1px solid #e0e0e0;
  border-right: none;
  border-radius: 4px 0 0 4px;
  outline: none;
  transition: all 0.2s;
}

.sch input.txt:focus {
  border-color: var(--primary-color);
  width: 220px;
}

.sch button.tsb,
.sch input.tsb {
  height: 36px;
  line-height: 36px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--primary-color);
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background-color 0.2s;
}

.sch button.tsb:hover,
.sch input.tsb:hover {
  background-color: var(--primary-hover);
}

/* 移动端菜单按钮 (默认隐藏) */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #333;
}

/* ===================================================
   广告位 / 推广位模块 (v1, v2 占位插槽)
   =================================================== */
.ad-slot {
  max-width: var(--container-max-width);
  margin: 15px auto;
  text-align: center;
  overflow: hidden;
  position: relative;
}

/* 默认隐藏未投放的广告位（新站有流量后再开启） */
.ad-slot.ad-hidden,
.ad-slot:empty {
  display: none !important;
}

.ad-slot.ad-header {
  margin-top: 15px;
  margin-bottom: 10px;
}

.ad-slot-placeholder {
  background: linear-gradient(90deg, #fff9f2 0%, #fff2e0 100%);
  border: 1px dashed #fcd19c;
  color: #d87a17;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ===================================================
   频道首页 / 聚合页模块样式
   =================================================== */
/* 栏目区块标题 */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
  margin-top: 25px;
  margin-bottom: 18px;
  position: relative;
}

.section-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 70px;
  height: 2px;
  background-color: var(--primary-color);
}

.section-header h2,
.section-header .section-title {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-header .section-title i {
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--primary-color);
  border-radius: 2px;
}

.section-header .section-links {
  display: flex;
  gap: 15px;
  font-size: 14px;
}

.section-header .section-links a {
  color: #666;
}

.section-header .section-links a:hover {
  color: var(--primary-hover);
}

.section-header .more-link {
  font-size: 13px;
  color: #999;
}

.section-header .more-link:hover {
  color: var(--primary-hover);
}

/* 图片栅格流 .tulist */
.tulist {
  margin: 0;
  width: 100%;
}

.tulist ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}

.tulist li {
  background: #ffffff;
  border-radius: 6px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.tulist li:hover {
  border-bottom: 2px solid var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.tulist li a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #333;
}

.tulist .img-wrap {
  position: relative;
  width: 100%;
  padding-top: 68%; /* 保持 3:2 或经典手抄报比例 */
  background-color: #f2f2f2;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
}

.tulist .img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tulist li:hover .img-wrap img {
  transform: scale(1.06);
}

/* 原站高度类兼容 */
.h120 { height: 130px; }
.h150 { height: 160px; }

.tulist li h3,
.tulist li span.title-txt {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  padding: 10px 10px 12px;
  height: 52px;
  color: #333333;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-all;
  transition: color 0.2s;
}

.tulist li:hover h3,
.tulist li:hover span.title-txt {
  color: var(--primary-hover);
}

.tulist .item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 10px;
  font-size: 12px;
  color: var(--text-light);
  border-top: 1px dotted #f0f0f0;
}

/* ===================================================
   双栏布局: 列表页 & 详情页 (.leftbox + .sidebox)
   =================================================== */
.main-two-column {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  max-width: var(--container-max-width);
  margin: 15px auto 40px;
  padding: 0 15px;
}

.leftbox {
  flex: 1;
  min-width: 0; /* 防止子元素溢出 flex 布局 */
  background: #ffffff;
}

.sidebox {
  width: 340px;
  flex-shrink: 0;
}

/* 面包屑导航 .crumb */
.crumb {
  font-size: 13px;
  color: #888888;
  height: 42px;
  line-height: 42px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
}

.crumb a {
  color: #555555;
}

.crumb a:hover {
  color: var(--primary-hover);
}

.crumb em {
  color: #cccccc;
  margin: 0 8px;
}

.crumb span.current {
  color: #999999;
}

/* 列表页内栅格 */
.leftbox .tulist ul {
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* 分页条 .page */
.page {
  text-align: center;
  margin: 35px 0 20px;
  user-select: none;
}

.page a,
.page span {
  display: inline-block;
  min-width: 36px;
  height: 36px;
  line-height: 34px;
  padding: 0 14px;
  margin: 0 4px;
  font-size: 14px;
  color: #555555;
  background: #fbfbfb;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  vertical-align: middle;
  transition: all 0.2s;
}

.page a:hover {
  color: #ffffff;
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.page span.current,
.page span.on {
  color: #ffffff;
  background: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 600;
}

.page span.disabled {
  color: #cccccc;
  cursor: not-allowed;
  background: #f7f7f7;
  border-color: #eaeaea;
}

.page span.page-total {
  background: transparent;
  border: none;
  color: #888888;
  font-size: 13px;
  padding: 0 8px;
  margin-right: 6px;
  min-width: auto;
}

.page span.ellipsis {
  background: transparent;
  border: none;
  color: #999999;
  min-width: 16px;
  padding: 0 2px;
}

/* ===================================================
   详情页模块样式 (Title, cinfo, content, tags)
   =================================================== */
.article-header {
  text-align: center;
  padding: 15px 0 10px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 25px;
}

.article-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
  margin-bottom: 12px;
}

.cinfo {
  font-size: 13px;
  color: #999999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.cinfo em {
  color: #e0e0e0;
}

.cinfo span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 文章导读 / 简介框 (.article-intro) */
.article-intro {
  background: #fdfaf6;
  border: 1px solid #fae8d2;
  border-left: 4px solid var(--primary-color);
  border-radius: 4px;
  padding: 12px 18px;
  margin: 18px auto 25px;
  max-width: 760px;
  font-size: 14px;
  line-height: 1.7;
  color: #555555;
  text-align: justify;
}

.article-intro strong.intro-tag {
  color: var(--primary-color);
  font-weight: 700;
  margin-right: 6px;
}

/* 正文多图内容分页条 (.article-pagination) */
.article-pagination {
  text-align: center;
  margin: 25px auto 30px;
  padding: 15px 0;
  border-top: 1px dashed #eaeaea;
  border-bottom: 1px dashed #eaeaea;
  user-select: none;
}

.article-pagination .page-info {
  display: inline-block;
  font-size: 13px;
  color: #888888;
  margin-right: 12px;
  vertical-align: middle;
}

.article-pagination a,
.article-pagination span.page-btn {
  display: inline-block;
  min-width: 36px;
  height: 36px;
  line-height: 34px;
  padding: 0 12px;
  margin: 0 3px;
  font-size: 14px;
  color: #555555;
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  vertical-align: middle;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.article-pagination a:hover,
.article-pagination span.page-btn:hover {
  color: #ffffff;
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.article-pagination span.current {
  color: #ffffff;
  background: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: bold;
}

/* 详情页图文正文流 */
.content.tp,
.content.tp_tc {
  font-size: 16px;
  line-height: 1.8;
  color: #333333;
  text-align: center;
}

/* 核心对齐：所有正文段落及下方小标题居中对齐 */
.content.tp p,
.content.tp_tc p {
  text-align: center !important;
  margin: 18px auto 28px;
  max-width: 820px;
  font-size: 15px;
  color: #444444;
  line-height: 1.8;
}

/* 核心对齐：所有正文图片居中对齐并添加细腻阴影与圆角 */
.content.tp img,
.content.tp_tc img,
.content.tp p img,
.content.tp_tc p img {
  display: block !important;
  margin: 0 auto 12px auto !important;
  max-width: 100% !important;
  height: auto !important;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.content.tp img:hover,
.content.tp_tc img:hover {
  transform: scale(1.012);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.content.tp .pic-item {
  margin: 25px auto 35px;
  text-align: center;
  max-width: 760px;
}

.content.tp .pic-item img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  border-radius: 6px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.06);
  cursor: zoom-in;
  transition: transform 0.25s ease;
}

.content.tp .pic-item img:hover {
  transform: scale(1.015);
}

.content.tp .pic-item .caption {
  margin-top: 10px;
  font-size: 15px;
  color: #555555;
  font-weight: 500;
  line-height: 1.6;
}

/* 交互操作栏 (一键打印 / 复制文字 / 查看大图) */
.article-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 18px auto 25px;
  padding: 10px 15px;
  background: #faf8f5;
  border-radius: 6px;
  border: 1px solid #f2e9dc;
  max-width: 760px;
}

.toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.toolbar-btn:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: #fffaf4;
}

.toolbar-btn.primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
}

.toolbar-btn.primary:hover {
  background: #e67d17;
  border-color: #e67d17;
  color: #ffffff;
}

/* 深度 SEO 增强模块 1: 【手抄报推荐抄写文字与内容文案】 */
.article-text-guide {
  margin: 35px 0 25px;
  background: #ffffff;
  border: 1px solid #fae2c6;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(252, 141, 33, 0.05);
}

.text-guide-header {
  background: linear-gradient(90deg, #fff3e3 0%, #fffbf5 100%);
  padding: 12px 18px;
  border-bottom: 1px solid #f9dec0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.text-guide-header h3 {
  font-size: 16px;
  color: #c96808;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.text-guide-body {
  padding: 18px;
  font-size: 14px;
  line-height: 1.8;
  color: #444444;
  text-align: left;
}

.text-guide-body p {
  text-align: left !important;
  margin-bottom: 12px !important;
}

.text-guide-body ul,
.text-guide-body ol {
  margin: 10px 0 15px 20px;
  color: #555;
}

.text-guide-body li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* 深度 SEO 增强模块 2: 【常见问题解答 (FAQ)】 */
.article-faq-section {
  margin: 30px 0;
  background: #fafafa;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 20px;
}

.faq-title {
  font-size: 17px;
  color: #222;
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--primary-color);
  border-radius: 2px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 14px 16px;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: #fcd19c;
}

.faq-question {
  font-size: 15px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-question i {
  color: var(--primary-color);
  font-style: normal;
  font-weight: 700;
}

.faq-answer {
  font-size: 13.5px;
  line-height: 1.7;
  color: #666666;
  text-align: left !important;
  padding-left: 20px;
  margin: 0 !important;
}

/* 深度 SEO 增强模块 3: 【相关精选图集网状内链 (6卡片)】 */
.related-posts-section {
  margin: 35px 0 20px;
}

.related-posts-header {
  font-size: 17px;
  font-weight: 700;
  color: #222;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 640px) {
  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.related-post-card {
  background: #ffffff;
  border: 1px solid #ebebeb;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.related-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.related-post-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.related-post-card .thumb-wrap {
  aspect-ratio: 4/3;
  background: #f7f7f7;
  overflow: hidden;
}

.related-post-card .thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.related-post-card:hover .thumb-wrap img {
  transform: scale(1.05);
}

.related-post-card h4 {
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #333;
  margin: 0;
  height: 48px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 提示卡片 */
.content-tips {
  background: #fffbf5;
  border: 1px solid #fce8cc;
  border-radius: 6px;
  padding: 14px 18px;
  margin: 25px 0;
  font-size: 13px;
  color: #8c6339;
  line-height: 1.6;
}

/* 上下篇翻页组件 */
.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 30px 0;
  padding: 18px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.post-navigation a {
  color: #555;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 48%;
}

.post-navigation a:hover {
  color: var(--primary-hover);
}

.post-navigation a strong {
  color: #999;
  font-weight: normal;
  margin-right: 4px;
}

/* 相关标签 */
.related-tags {
  margin: 25px 0 15px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.related-tags .tag-label {
  font-size: 13px;
  color: #888;
  font-weight: 600;
  margin-right: 4px;
}

.related-tags a {
  display: inline-block;
  padding: 4px 12px;
  font-size: 13px;
  color: #555;
  background: #f6f6f6;
  border-radius: 14px;
  border: 1px solid #ededed;
  transition: all 0.2s;
}

.related-tags a:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* ===================================================
   侧边栏模块 (.sidebox)
   =================================================== */
.side-card {
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  margin-bottom: 25px;
  overflow: hidden;
}

.side-card .card-title {
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 700;
  color: #222;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.side-card .card-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  background-color: var(--primary-color);
  border-radius: 0 2px 2px 0;
}

/* 侧边两图推荐 .tu2 */
.tu2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 15px;
}

.tu2 li {
  overflow: hidden;
  border-radius: 4px;
}

.tu2 li a {
  display: block;
  text-decoration: none;
}

.tu2 .img-box {
  width: 100%;
  height: 95px;
  background-color: #f0f0f0;
  overflow: hidden;
  border-radius: 4px;
}

.tu2 .img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tu2 li:hover .img-box img {
  transform: scale(1.08);
}

.tu2 h3 {
  font-size: 12px;
  color: #444;
  text-align: center;
  line-height: 1.4;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tu2 li:hover h3 {
  color: var(--primary-hover);
}

/* 侧边文字排行榜 .txt */
.txt-rank {
  padding: 10px 15px;
}

.txt-rank li {
  display: flex;
  align-items: center;
  height: 42px;
  border-bottom: 1px dotted #e8e8e8;
  font-size: 14px;
  position: relative;
}

.txt-rank li:last-child {
  border-bottom: none;
}

.txt-rank .nub {
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background-color: #cccccc;
  border-radius: 4px;
  margin-right: 10px;
  flex-shrink: 0;
}

.txt-rank .n1 { background-color: #ff3b30; }
.txt-rank .n2 { background-color: #ff9500; }
.txt-rank .n3 { background-color: #ffcc00; color: #444; }

.txt-rank a {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #333333;
}

.txt-rank a:hover {
  color: var(--primary-hover);
}

.txt-rank em.views {
  font-size: 12px;
  color: #bbbbbb;
  margin-left: 10px;
  flex-shrink: 0;
  font-family: Georgia, serif;
}

/* ===================================================
   底部 Footer 样式
   =================================================== */
.foot {
  clear: both;
  background-color: #1f2226;
  color: #8c939d;
  font-size: 13px;
  line-height: 1.8;
  padding: 35px 0 25px;
  border-top: 3px solid var(--primary-color);
}

.foot-inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 15px;
  text-align: center;
}

.foot-links {
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.foot-links a {
  color: #adb5bd;
  transition: color 0.2s;
}

.foot-links a:hover {
  color: var(--primary-color);
}

.foot p {
  margin: 4px 0;
  color: #7b828a;
}

.foot p a {
  color: #9aa1a9;
}

.foot p a:hover {
  color: var(--primary-color);
}

/* ===================================================
   大图 Lightbox 弹窗 (自研原生无依赖交互)
   =================================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-modal img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.4);
}

/* 回到顶部悬浮按钮 */
.back-to-top {
  position: fixed;
  right: 25px;
  bottom: 35px;
  width: 42px;
  height: 42px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  transition: all 0.2s;
  color: var(--primary-color);
}

.back-to-top:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

/* ===================================================
   响应式移动端适配 (@media queries)
   =================================================== */
@media screen and (max-width: 1024px) {
  .tulist ul {
    grid-template-columns: repeat(3, 1fr);
  }
  .sidebox {
    width: 300px;
  }
}

@media screen and (max-width: 820px) {
  /* 布局单栏化 */
  .main-two-column {
    flex-direction: column;
    gap: 25px;
  }
  .leftbox, .sidebox {
    width: 100%;
  }
  .leftbox .tulist ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 640px) {
  /* 移动端顶部 Header 优化 */
  .headbox {
    height: 52px;
    padding: 0 10px;
  }
  
  .headbox .logo a {
    font-size: 19px;
  }
  
  .headbox .logo a span.sub {
    display: none;
  }

  /* 汉堡按钮 */
  .mobile-toggle {
    display: block;
    margin-left: 10px;
  }

  /* 移动端搜索框微调 */
  .sch {
    margin-left: auto;
  }
  
  .sch input.txt {
    width: 110px;
    height: 32px;
    font-size: 12px;
  }
  
  .sch input.txt:focus {
    width: 140px;
  }
  
  .sch button.tsb,
  .sch input.tsb {
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  /* 移动端导航抽屉 */
  .menu-wrap {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-top: 1px solid #f0f0f0;
    flex-direction: column;
    padding: 8px 0;
  }

  .menu-wrap.open {
    display: flex;
  }

  .menu {
    flex-direction: column;
    width: 100%;
  }

  .menu > li {
    width: 100%;
  }

  .menu > li > a {
    height: 44px;
    line-height: 44px;
    padding: 0 20px;
    font-size: 15px;
    border-bottom: 1px solid #f7f7f7;
  }

  .menu .ol {
    position: static;
    box-shadow: none;
    border-top: none;
    background: #fafafa;
    display: block; /* 移动端直接展开或点击展开 */
  }

  .menu .ol li a {
    padding-left: 36px;
    height: 38px;
    line-height: 38px;
    font-size: 13px;
  }

  /* 图片网格两列 */
  .tulist ul {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  .tulist li h3,
  .tulist li span.title-txt {
    font-size: 13px;
    height: 42px;
    padding: 6px 6px;
    -webkit-line-clamp: 2;
  }

  .article-header h1 {
    font-size: 19px;
  }

  .post-navigation {
    flex-direction: column;
    gap: 8px;
  }

  .post-navigation a {
    max-width: 100%;
  }

  .page a, .page span {
    padding: 0 10px;
    min-width: 32px;
    height: 32px;
    line-height: 30px;
    font-size: 13px;
    margin: 0 2px;
  }
}

/* ========================================================
   Zonepic 高清大图展示页专有样式 (100% 对标 weibomingzi.com)
   ======================================================== */
.zonepic-main {
  max-width: 1200px;
  margin: 16px auto 30px;
  padding: 0 15px;
}

.zonepic-box {
  background: #fff;
  border-radius: 8px;
  padding: 28px 24px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.zonepic-box .title h1 {
  font-size: 24px;
  color: #222;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 14px;
}

.zonepic-box .cinfo {
  font-size: 14px;
  color: #d35400;
  background: #fdf6ec;
  border: 1px solid #faeccb;
  padding: 10px 18px;
  border-radius: 6px;
  display: inline-block;
  margin: 0 auto 24px;
  max-width: 720px;
  width: 95%;
  box-sizing: border-box;
}

.zonepic-box .viewimg {
  margin: 20px auto 30px;
  text-align: center;
  max-width: 1000px;
}

.zonepic-box .viewimg img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  display: inline-block;
}

.zonepic-box .tulist {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px dashed #e8e8e8;
  text-align: left;
}

.zonepic-box .tulist-head {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 16px;
  border-left: 4px solid #ff5722;
  padding-left: 10px;
}

.zonepic-box .tulist ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.zonepic-box .tulist li {
  background: #fafafa;
  border: 1px solid #ebebeb;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zonepic-box .tulist li:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.zonepic-box .tulist li a {
  text-decoration: none;
  color: #333;
  display: block;
}

.zonepic-box .tulist li .t-thumb {
  width: 100%;
  height: 140px;
  overflow: hidden;
  background: #f0f0f0;
}

.zonepic-box .tulist li .t-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.zonepic-box .tulist li:hover .t-thumb img {
  transform: scale(1.05);
}

.zonepic-box .tulist li h3 {
  font-size: 13px;
  line-height: 1.4;
  height: 36px;
  overflow: hidden;
  margin: 8px 10px;
  text-align: center;
  font-weight: normal;
  color: #444;
}

/* 详情页正文大图悬停手势 */
#articleContent img {
  cursor: zoom-in;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#articleContent img:hover {
  opacity: 0.95;
}

@media (max-width: 768px) {
  .zonepic-box {
    padding: 16px 12px;
  }
  .zonepic-box .title h1 {
    font-size: 18px;
  }
  .zonepic-box .tulist ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .zonepic-box .tulist li .t-thumb {
    height: 110px;
  }
}
