@charset "UTF-8";
/* ========== 微信公众号原版图文样式 1:1复刻 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 页面背景：公众号浅灰白背景 */
body {
  background-color: #f7f8fa;
  /* 微信默认字体：系统无衬线字体 */
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #333333; /* 正文深灰色，不是纯黑#000，和公众号一致 */
}

/* 文章容器：公众号固定阅读宽度770px，居中白底 */
.wrap {
  max-width: 770px;
  margin: 40px auto;
  background: #ffffff;
  padding: 40px 50px;
  min-height: 100vh;
}

/* 返回首页按钮 */
.back-home {
  margin-bottom: 24px;
}
.back-home a {
  color: #007aff;
  text-decoration: none;
  font-size: 15px;
}
.back-home a:hover {
  text-decoration: underline;
}

/* 公众号头部区域（头像、公众号名称） */
.mp-header {
  text-align: center;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
  margin-bottom: 35px;
}
.mp-header .avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
}
.mp-header h1 {
  font-size: 24px;
  color: #222;
  margin-top: 12px;
  font-weight: 500;
}
.mp-header .desc {
  font-size: 14px;
  color: #888;
  margin-top: 6px;
}

/* 文章大标题 公众号默认字号30px */
.art-title {
  font-size: 30px;
  line-height: 1.4;
  text-align: center;
  color: #222;
  font-weight: 600;
  margin-bottom: 20px;
}

/* 发布时间、来源等元信息 */
.art-meta {
  text-align: center;
  font-size: 14px;
  color: #999;
  margin-bottom: 36px;
}

/* ========== 核心：正文完全复刻公众号排版 ========== */
.art-content p {
  font-size: 17px; /* 微信公众号默认正文字号 */
  line-height: 1.8; /* 行间距1.8，和公众号完全一致 */
  color: #333;
  margin-bottom: 18px;
  text-indent: 2em; /* 首行自动缩进2字符，不用手动空格 */
}

/* 公众号内图片样式：居中、圆角、上下边距 */
.art-content img {
  max-width: 100%;
  display: block;
  margin: 25px auto;
  border-radius: 4px;
}

/* 公众号标题层级：二级、三级标题适配 */
.art-content h2 {
  font-size: 22px;
  margin: 30px 0 15px;
  color: #222;
  text-indent: 0;
}
.art-content h3 {
  font-size: 19px;
  margin: 26px 0 12px;
  color: #333;
  text-indent: 0;
}

/* 公众号引用块样式 */
.art-content blockquote {
  border-left: 4px solid #ddd;
  padding: 12px 16px;
  background-color: #f8f8f8;
  margin: 20px 0;
  color: #666;
}

/* 超链接颜色（公众号蓝色链接） */
.art-content a {
  color: #007aff;
  text-decoration: none;
}
.art-content a:hover {
  text-decoration: underline;
}

/* 首页文章列表卡片样式 */
.list-box {
  margin-top: 50px;
}
.art-card {
  padding: 22px;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 16px;
  transition: 0.2s;
}
.art-card:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.art-card a {
  text-decoration: none;
  color: #333;
}
.art-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.art-card .source {
  font-size: 14px;
  color: #999;
}

/* 页脚版权及备案 */
/* 底部版权栏，全新独立类，无样式冲突 */
.page-copyright {
  margin-top: 70px;
  padding: 20px 0;
  border-top: 1px solid #eee;
  text-align: center;
  font-size: 14px;
  color: #666;
}
/* 版权内链接 */
.page-copyright a {
  color: #0066cc;
  text-decoration: none;
}
.page-copyright a:hover {
  text-decoration: underline;
}
/* 内部小警徽仅垂直居中，无多余限制 */
.page-copyright img {
  vertical-align: middle;
}

/* 移动端自适应，和公众号手机端排版对齐 */
@media (max-width: 768px) {
  .wrap {
    margin: 15px;
    padding: 25px 20px;
  }
  .art-title {
    font-size: 24px;
  }
  .art-content p {
    font-size: 16px;
  }
}

/* 公众号关注模块样式 */
.wx-follow {
    margin: 50px auto 40px;
    /* 上下内边距、左右小幅留白，不会宽出很多 */
    padding: 26px 30px;
    background-color: #f7f8fa;
    border-radius: 12px;
    text-align: center;
    /* 卡片宽度 = 二维码344px + 左右内边距各30px，刚好贴合 */
    max-width: 404px;
}

.wx-follow h4 {
    font-size: 16px;
    color: #222;
    margin-bottom: 16px;
    font-weight: 500;
}

.wx-follow .qrcode-img {
    width: 160px;
    height: 160px;
    border: 4px solid #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 12px;
}


/* 智能对齐分页导航 */
.article-nav {
    display: flex;
    align-items: center;
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* 上一篇：自动靠左 */
.nav-prev {
    margin-right: auto;
}

/* 下一篇：自动靠右 */
.nav-next {
    margin-left: auto;
}

/* 通用链接样式 */
.article-nav a {
    text-decoration: none;
    color: #333;
    padding: 12px 24px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.article-nav a:hover {
    background-color: #f7f8fa;
    border-color: #ccc;
}

/* 移动端自适应，上下堆叠 */
@media (max-width: 640px) {
    .article-nav {
        flex-direction: column;
        gap: 16px;
        align-items: stretch; /* 让按钮撑满宽度 */
    }
    
    .nav-prev, .nav-next {
        margin: 0; /* 重置margin，避免影响堆叠布局 */
        text-align: center;
    }
}



/*首页单行样式*/
/* 1.隐藏折叠箭头、复选框 */
.single-article-wrap .fold-input,
.single-article-wrap .folder-title::before {
    display: none;
}

/* 2.取消标题鼠标点击小手 */
.single-article-wrap .folder-title {
    cursor: default;
}

/* 3.强制清除链接默认紫色和下划线 */
body .single-article-wrap .folder-title a {
    color: inherit !important;
    text-decoration: none !important;
}

/* 鼠标悬浮不加下划线（先关闭，测试有没有横线） */
body .single-article-wrap .folder-title a:hover {
    text-decoration: none !important;
}