/*
Theme Name: 百儒林
Theme URI: http://192.168.50.210:8800
Author: 百儒林
Author URI: http://192.168.50.210:8800
Description: 百儒林资源分享主题，版式参照公开模板复刻并重写为 WordPress 主题，含资源付费下载、会员中心与在线支付界面。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lstk
Tags: resources, download, two-columns, custom-menu
*/

/* ==========================
   全局基础样式
   ========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "wenfeng-xwxxh", "LXGW WenKai Screen", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #ffffff;
  overflow-x: hidden; /* 禁止横向滚动，彻底解决超出问题 */
  padding-top: 40px;
}

/* 全局链接样式 */
a {
  color: #333333;
  text-decoration: none;
  transition: color 0.2s;
  word-wrap: break-word;
  word-break: break-all;
  overflow-wrap: break-word;
}

a:hover {
  color: #d9232e;
}

/* 容器通用样式 */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
}

/* 引用 */
blockquote {
  background: #f9f9f9;
  border-left: 4px solid #e5e5e5;
  border-right: 4px solid #e5e5e5;
  border-radius: 10px;
  margin: 1.5em 0;
  padding: 0.8em 15px;
}

/* ==========================
   顶部导航栏（全局）
   ========================== */
.site-header {
  background-color: #1a1a1acc;
  height: 40px;
  line-height: 40px;
  color: #fff;
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  width: 100%;
  margin: 0;
  box-shadow: 0 0 2px 2px #b1b1b1;
}

.site-header .container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
  width: 100%;
}

.site-title {
  font-size: 18px;
  font-weight: bold;
  margin-right: 20px;
}

.site-title a {
  color: #fff;
}

/* 顶部网站logo */
.site_title {
  float: left;
  height: 40px;
  width: 40px;
}

/* 汉堡按钮 */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  margin-left: auto;
}

.menu-toggle .bar {
  width: 22px;
  height: 2px;
  background: #fff;
}

/* ==========================
   主导航菜单（菜单1）
   ========================== */
.main-nav {
  margin-right: 0;
  margin-left: 20px;
  height: 40px;
  line-height: 40px;
}

/* 一级菜单 ul */
.main-nav .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

/* 一级菜单项 li */
.main-nav .menu > li {
  position: relative;
  padding: 0 18px;
  height: 40px;
  display: flex;
  align-items: center;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

/* 一级菜单链接 a */
.main-nav .menu > li > a {
  color: #fff; /* 默认文字颜色 */
  font-size: 16px;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* 鼠标悬停：整li红色底色+白字 */
.main-nav .menu > li:hover {
  background-color: #d9232e; /* 红色底色 */
}

.main-nav .menu > li:hover > a {
  color: #fff !important; /* 白色文字 */
}

/* 当前页面：li 红色底色+白字（WordPress 自动加 current-menu-item） */
.main-nav .menu > li.current-menu-item,
.main-nav .menu > li.current-menu-ancestor {
  background-color: #d9232e;
}

.main-nav .menu > li.current-menu-item > a,
.main-nav .menu > li.current-menu-ancestor > a {
  color: #fff !important;
}

/* 二级菜单（下拉） */
.main-nav .menu .sub-menu {
  position: absolute;
  top: 40px;
  left: 0;
  min-width: 120px;
  background: #111111cc;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  display: none;
  z-index: 9999;
  box-shadow: 0 0 4px 1px #ff0000;
}

.main-nav .menu .sub-menu li {
  padding: 0 15px;
  line-height: 36px;
}

.main-nav .menu .sub-menu li a {
  color: #ccc;
  font-size: 16px;
  text-decoration: none;
}

.main-nav .menu .sub-menu li:hover {
  background-color: #d9232e;
}

.main-nav .menu .sub-menu li:hover a {
  color: #fff;
}

/* hover 显示二级菜单 */
.main-nav .menu > li:hover .sub-menu {
  display: block;
}

/* ==========================
   次导航菜单（菜单2）
   ========================== */
.secondary-nav {
  margin-left: auto;
  margin-right: 0;
  display: flex;
  align-items: center;
  height: 40px;
}

.secondary-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.secondary-menu > li {
  position: relative;
  padding: 0 18px;
  height: 40px;
  display: flex;
  align-items: center;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.secondary-menu > li > a {
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* hover 样式（同菜单1） */
.secondary-menu > li:hover {
  background-color: #d9232e;
}

.secondary-menu > li:hover > a {
  color: #fff !important;
}

/* 当前菜单高亮（同菜单1） */
.secondary-menu > li.current-menu-item,
.secondary-menu > li.current-menu-ancestor {
  background-color: #d9232e;
}

.secondary-menu > li.current-menu-item > a,
.secondary-menu > li.current-menu-ancestor > a {
  color: #fff !important;
}

/* 二级菜单样式（同菜单1） */
.secondary-menu .sub-menu {
  position: absolute;
  top: 40px;
  left: 0;
  min-width: 120px;
  background: #111111cc;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  display: none;
  z-index: 9999;
  box-shadow: 0 0 4px 1px #ff0000;
}

.secondary-menu .sub-menu li {
  padding: 0 15px;
  line-height: 36px;
}

.secondary-menu .sub-menu li a {
  color: #ccc;
  font-size: 16px;
  text-decoration: none;
}

.secondary-menu .sub-menu li:hover {
  background-color: #d9232e;
}

.secondary-menu .sub-menu li:hover a {
  color: #fff;
}

.secondary-menu > li:hover .sub-menu {
  display: block;
}

/* ==========================
   移动端搜索框
   ========================== */
.mobile-search-box {
  display: none;
  margin-left: auto !important; /* 居右，保留 */
}

.mobile-search-form {
  width: 180px;
  position: relative;
}

.mobile-search-input {
  width: 100%;
  height: 24px;
  padding: 0 10px 0 10px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  background: #fff;
  color: #333;
  outline: none;
}

.mobile-search-input::placeholder {
  color: #999;
}

.mobile-search-btn {
  position: absolute;
  right: 0;          /* 靠右 */
  left: auto;        /* 取消左定位 */
  top: 0;
  width: 24px;
  height: 42px;
  background: transparent;
  border: none;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ==========================
   内容布局（全局）
   ========================== */
.content-area {
  display: flex;
  gap: 30px;
  margin: 20px 0;
  width: 100%;
}

.main-content {
  flex: 1;
  min-width: 0;
  width: 100%;
  border-radius: 4px;
}

.sidebar {
  width: 300px;
  flex-shrink: 0;
}

/* ==========================
   文章列表
   ========================== */
.post-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}

.post-item {
  background: #fff;
  border-radius: 4px;
  padding: 15px;
  box-shadow: 0 0 4px 1px #eee;
  display: flex;
  gap: 15px;
  width: 100%;
}

.post-thumb {
  width: 72px;
  height: 60px;
  flex-shrink: 0;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.post-info {
  flex: 1;
  min-width: 0;
}

.post-meta {
  font-size: 13px;
  color: #ccc;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

/* 分类文字灰色（优先级高于全局链接） */
.post-meta .meta-category,
.post-meta .meta-category a,
.single .single-post-meta .meta-category {
  color: #999 !important;
}

.meta-category a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}

.post-title {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  box-sizing: border-box;
  max-width: 100% !important;
}

.post-excerpt {
  font-size: 13px;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 右侧阅读全文样式 */
.read-more-right {
  color: inherit !important;
  font-size: 13px !important;
  text-decoration: none !important;
  margin-left: 10px !important;
}

.read-more-right:hover {
  text-decoration: underline !important;
}

/* 强制文章列表容器不超出屏幕 */
.post-item,
.post-article,
.post-list li {
  max-width: 100% !important;
  overflow: hidden !important;
}

/* ==========================
   文章详情页
   ========================== */
.single .content-area {
  display: flex;
  gap: 20px;
  margin: 30px 0;
  width: 100%;
}

/* 隐藏原有main-content，改用single-main-content */
.single .main-content {
  display: none;
}

/* 左侧目录栏 */
.single-toc-wrapper {
  width: 210px;
  flex-shrink: 0;
  position: sticky;
  top: 60px; /* 避开顶部固定导航 */
  align-self: flex-start;
  box-shadow: 0 0 4px 1px #eee;
  background: #fff;
}

.single-toc {
  border-radius: 4px;
  padding: 15px;
}

.toc-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #d9232e;
  color: #333;
  text-align: center;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  padding: 6px 0;
  border-bottom: 1px dashed #f0f0f0;
  text-align: center;
}

.toc-list li a {
  font-size: 16px;
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}

.toc-list li a:hover {
  color: #d9232e;
  padding-left: 5px;
}

/* 目录上下按钮 */
.single .toc-buttons {
  border-radius: 4px;
  padding: 0 15px 15px 15px;
  margin-top: 10px;
}

.single .toc-btn {
  display: block;
  width: 100%;
  background: #f7f7f7;
  border: 1px solid #eee;
  color: #333;
  padding: 8px 0;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s;
}

.single .toc-btn:first-child {
  margin-bottom: 8px;
}

.single .toc-btn:hover {
  background: #d9232e;
  color: #fff;
  border-color: #d9232e;
}

/* 中间内容区 */
.single-main-content {
  width: 820px;
  flex-shrink: 0;
  background-color: #fff;
  border-radius: 4px;
  padding: 0;
  box-shadow: 0 0 4px 1px #eee;
}

/* 卡片基础 */
.single .single-card {
  background: #fff;
  border-radius: 4px;
  padding: 20px;
}

/* 标题 */
.single .single-post-title {
  font-size: 24px;
  margin: 15px 0 15px 0;
  color: #333;
  line-height: 1.4;
}

/* 文章Meta */
.single .single-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  font-size: 14px;
  color: #999;
  gap: 12px;
  margin: 0 0 20px;
  padding: 0 0 10px 0;
  border-bottom: 1px dashed #f0f0f0;
}

/* 正文样式 */
.single .single-post-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.single .single-post-content p {
  margin: 0 0 1.2em;
  line-height: 1.8;
}

.single .single-post-content p:last-child {
  margin-bottom: 0;
}

.entry_pic {
  text-align: center;
  padding: 10px 0 10px 0;
}

/* 正文标题样式 */
.single .single-post-content h2,
.single .comment-form-container h3 {
  font-size: 20px;
  color: #222;
  margin: 25px 0 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eee;
  position: relative;
}

.single .single-post-content h2::after,
.single .comment-form-container h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 80px;
  height: 2px;
  background: #d9232e;
}

/* 面包屑导航 */
.single .single-breadcrumb {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fafafa;
  padding: 10px;
}

.single .single-breadcrumb a {
  color: #666;
  text-decoration: none;
}

.single .single-breadcrumb a:hover {
  color: #007bff;
}

/* ==========================
   评论区
   ========================== */
.comments-area {
  background: #fff;
  padding: 0;
  border-radius: 4px;
  margin-top: 30px;
  max-width: 100%;
  margin: 20px 0;
}

/* 评论标题 */
.comments-count-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed #f0f0f0;
  padding: 20px 20px 10px 20px;
  margin-bottom: 15px;
}

.comments-count {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
}

/* 评论列表 - 清除所有marker */
.comment-list {
  list-style: none !important;
  padding: 0 20px !important;
  margin: 0 !important;
}

.comment-list li {
  list-style: none !important;
}

.comment-item {
  border-bottom: 1px dashed #eee;
  padding: 20px 0 10px 0;
}

/* 评论缩进 */
.comment-reply-indent {
  margin-left: 40px;
  background: #f9f9f9;
  padding: 10px;
  border-radius: 4px;
  border-bottom: none;
  border: 1px #eaeaea solid;
}

.comment-inner {
  display: flex;
  gap: 12px;
}

/* 评论头像 */
.comment-avatar img {
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: block;
}

/* 评论内容区 */
.comment-content-wrap {
  flex: 1;
}

.comment-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.comment-meta-left {
  display: flex;
  gap: 10px;
}

.comment-author-name {
  font-weight: bold;
  color: #333;
}

.comment-time {
  color: #999;
}

.comment-meta-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

.comment-reply-link {
  color: #d9232e !important;
  text-decoration: none;
  font-size: 13px;
}

.comment-floor {
  color: #666;
  font-size: 13px;
}

.comment-text {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
  color: #333;
}

/* 评论引用 */
.comment-quote {
  font-size: 12px;
  background-color: #ffe5e5;
  display: inline-block;
  padding: 2px 8px;
}

/* 评论表单 */
.comment-form-container {
  padding: 0 20px 0 20px;
  border-radius: 4px 4px 0 0;
}

.comment-form textarea,
.comment-form-comment textarea {
  width: 100%;
  min-height: 60px;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 4px;
  resize: vertical;
}

.comment-form .submit,
.submit-btn {
  background: #d9232e;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
  font-size: 14px;
}

.comment-form .submit:hover,
.submit-btn:hover {
  background: #c01f28;
}

/* 取消回复按钮 */
.cancel-reply-btn {
  display: none;
  background: #999;
  color: #fff !important;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 10px;
  text-decoration: none;
  font-size: 14px;
}

.cancel-reply-btn:hover {
  background: #777;
}

.form-submit {
  margin-top: 10px;
}

/* ==========================
   侧边栏
   ========================== */
.widget {
  background: #fff;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 10px;
  box-shadow: 0 0 4px 1px #eee;
}

.widget-title {
  font-size: 16px;
  border-bottom: 2px solid #d9232e;
  padding-bottom: 8px;
  margin-bottom: 15px;
  text-align: center;
}

/* 侧边栏固定区域 - 时钟+用户盒子 */
.sidebar-fixed-wrapper {
  position: sticky;
  top: 60px; /* 避开顶部固定导航 */
  align-self: flex-start;
  z-index: 999;
  margin-bottom: 10px;
}

/* 时钟/用户盒子 */
.widget-clock {
  text-align: center;
  margin-bottom: 10px;
  width: 100%;
  background-color: #fff;
  padding: 15px 0;
  border-radius: 4px;
}

.widget-user {
  text-align: center;
  width: 100%;
  background-color: #fff;
  padding: 15px 0;
  border-radius: 4px;
  font-size: 16px;
  margin-bottom: 0;
}

.widget-user p {
  margin: 0;
}

.widget-user a {
  text-decoration: none;
}

/* 注册链接红色 */
.widget-user .register-link {
  color: #ff0000;
}

/* 头像间距 */
.widget-user .avatar {
  margin-bottom: 5px;
}

/* 全局侧边栏小工具：去掉所有小圆点 */
.sidebar .widget ul {
  list-style: none !important;
  padding-left: 0 !important;
}

.sidebar .widget li {
  line-height: 28px;
  border-bottom: 1px dashed #ccc;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  font-size: 13px;
}

.sidebar .widget li::before {
  display: none !important;
}

/* 搜索盒子 - Vue 扁平极简风格 */
.widget-search {
  padding: 15px;
  border-radius: 4px;
  box-sizing: border-box;
}

.widget-search form {
  display: flex;
  gap: 6px;
}

.widget-search input[type="search"] {
  flex: 1;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #e4e7ed;
  border-radius: 4px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.widget-search input[type="search"]:focus {
  border-color: #d9232e;
}

.widget-search button {
  height: 34px;
  padding: 0 12px;
  background: #d9232e;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.widget-search button:hover {
  background: #c01f28;
}

/* ==========================
   分页样式
   ========================== */
.pagination {
  text-align: center;
  margin: 30px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  padding: 15px;
  margin: 0;
}

/* 页码通用按钮样式 */
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  color: #606266;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

/* 当前页样式（高亮） */
.pagination span.current {
  background: #d9232e;
  border-color: #d9232e;
  color: #fff;
  font-weight: 500;
}

/* 页码悬停效果 */
.pagination a:hover {
  border-color: #d9232e;
  color: #d9232e;
}

/* 页码不可用状态 */
.pagination span.dots,
.pagination span.prev.disabled,
.pagination span.next.disabled {
  border-color: #e4e7ed;
  color: #c0c4cc;
  cursor: not-allowed;
}

/* 页码上一页/下一页按钮 */
.pagination .prev,
.pagination .next {
  padding: 0 12px;
}

/* ==========================
   搜索结果页
   ========================== */
.search-post-list {
  display: grid;
  grid-template-columns: 1fr !important; /* 强制单列 */
  gap: 20px;
  width: 100%;
}

body.search-results .main-content {
  flex: 1;
  min-width: 0;
}

body.search-results .sidebar {
  width: 300px;
  flex-shrink: 0;
}

/* ==========================
   相关文章
   ========================== */
.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}

.related-list li {
  display: flex;
  align-items: center;
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 序号样式：红底白圆、数字居中 */
.rel-num {
  display: inline-flex;
  /*align-items: center;*/
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #d9232e;
  color: #fff;
  font-size: 12px;
  margin-right: 8px;
  flex-shrink: 0;
}

.related-list li a {
  color: #333;
  text-decoration: none;
}

.related-list li a:hover {
  color: #d9232e;
}

/* ==========================
   底部全局
   ========================== */
.site-footer {
  background: #333;
  padding: 30px 0;
  color: #999;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-left p {
  margin: 0;
  font-size: 14px;
  color: #fff;
}

/* ==========================
   友情链接：默认隐藏
   ========================== */
.friendlinks {
  display: none; /* 默认隐藏 */
  max-width: 75%;
}

.friendlinks p {
  margin: 0;
  line-height: 1.8;
}

.friendlinks span {
  font-size: 13px;
  color: #999;
  margin-right: 8px;
}

.friendlinks a,
.friendlinks a:link,
.friendlinks a:visited {
  color: #999 !important;
  text-decoration: none;
  font-size: 13px !important;
  margin-right: 12px;
}

.friendlinks a:hover {
  color: #fff !important;
}

/* ==========================
   仅在 ≥1400px 显示友情链接
   ========================== */
@media (min-width: 1400px) {
  .friendlinks {
    display: block; /* 大屏才显示 */
  }
}

/* 移动端适配：小屏幕时上下排列 */
@media (max-width: 768px) {
  .footer-inner {
    justify-content: center;
    text-align: center;
  }
  .friendlinks {
    max-width: 100%;
  }
}

/* ==========================
   移动端用户栏
   ========================== */
.mobile-user-bar {
  display: none; /* 默认隐藏 */
  background: #fff;
  border-radius: 4px;
  padding: 15px;
  margin: 20px 0;
  font-size: 14px;
  box-shadow: 0 0 4px 1px #eee;
}

.mobile-user-bar .container {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0;
  justify-content: center;
}

.mobile-user-bar .user-name {
  color: #333;
  font-weight: 500;
}

.mobile-user-bar .user-link {
  color: #d9232e;
  text-decoration: none;
}

.mobile-user-bar .user-link:hover {
  text-decoration: underline;
}

/* ==========================
   底部样式
   ========================== */
.site-footer {
  background: #333;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

/* ==========================
   响应式适配（按屏幕尺寸降序）
   ========================== */
/* 屏幕 < 1400px 适配 */
@media (max-width: 1400px) {
  /* 导航相关 */
  .main-nav {
    height: auto;
    position: absolute;
    top: 40px;
    right: 0;
    background: #000000d1;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    width: 80px;
  }

  .main-nav.active {
    max-height: 660px;
  }

  .main-nav .menu {
    flex-direction: column;
    padding: 10px 0;
    width: 100%;
  }

  .main-nav .menu > li {
    padding: 0 20px;
    line-height: 40px;
    border-bottom: 1px solid #222;
    width: 100%;
  }

  .main-nav .menu > li > a {
    color: #fff;
    display: block;
    width: 100%;
  }

  /* 移动端：二级分类展开为缩进列表 */
  .main-nav .sub-menu {
    display: block !important;
    position: static;
    background: transparent;
    box-shadow: none;
    padding: 0 0 0 12px;
    min-width: 0;
  }

  .main-nav .sub-menu li {
    line-height: 34px;
  }

  .main-nav .sub-menu li a {
    color: #bbb;
    font-size: 14px;
  }

  .secondary-menu .sub-menu {
    display: none !important;
  }

  /* 显示汉堡按钮 */
  .menu-toggle {
    display: flex;
  }

  /* 导航栏宽度 */
  .site-header {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  /* 显示移动端搜索框 */
  .mobile-search-box {
    display: flex;
    align-items: center;
    margin-right: 12px;
  }

  /* 隐藏侧边栏及固定区域 */
  .sidebar,
  .sidebar-fixed-wrapper {
    display: none !important;
  }

  /* 隐藏次导航 */
  .secondary-nav {
    display: none !important;
  }

  /* 文章列表改为1列 */
  .post-list {
    grid-template-columns: 1fr;
    width: 100%;
    padding: 0;
  }

  .post-item {
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 10px 0;
  }

  .post-meta {
    width: 100%;
    box-sizing: border-box;
  }

  /* 容器内边距 */
  .container {
    padding: 0 10px;
    width: 100%;
  }

  /* 显示移动端用户栏 */
  .mobile-user-bar {
    display: block;
    margin: 15px 10px;
    padding: 15px;
  }
}

/* 屏幕 < 1040px 适配（文章页目录） */
@media (max-width: 1040px) {
  .single-toc-wrapper {
    display: none !important;
  }
  
  .single-main-content {
    width: 100%;
    flex: 1;
  }
}

/* 屏幕 < 768px 适配（小屏手机） */
@media (max-width: 768px) {
  /* 文章详情页 */
  .single .content-area {
    flex-direction: column;
    gap: 0;
    margin: 15px 0;
  }

  .single .single-card {
    padding: 15px;
  }

  .single .single-post-title {
    font-size: 20px;
  }

  .single .single-post-meta {
    font-size: 13px;
    gap: 8px;
  }

  .single .single-post-content {
    font-size: 15px;
  }
  
  .single .single-post-content h2 {
    font-size: 17px !important;
    margin: 20px 0 12px !important;
  }

  .single .single-breadcrumb {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .single-main-content {
    width: 100%;
  }

  /* 文章列表缩略图 */
  .post-thumb {
    width: 48px;
    height: 48px;
  }

  .post-title {
    font-size: 15px;
  }

  .post-excerpt {
    font-size: 12px;
  }

  /* 搜索结果页 */
  body.search-results .content-area {
    flex-direction: column;
  }
  
  body.search-results .sidebar {
    width: 100%;
  }

  /* 相关文章单列 */
  .related-list {
    grid-template-columns: 1fr;
  }

  /* 移动端用户栏 */
  .mobile-user-bar {
    margin: 15px 10px;
    padding: 5px;
    box-shadow: 0 0 4px 1px #eee;
  }
}


/* 鼠标双色实心波纹 */
.mouse-ripple-wrap {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  left: 0;
  top: 0;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.ripple1 {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(30, 80, 200, 0.25);
  animation: mouseRipple 1.8s infinite linear;
}
.ripple2 {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(100, 160, 250, 0.2);
  animation: mouseRipple 1.8s infinite linear 0.5s;
}
@keyframes mouseRipple {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}


/* 文末提醒文字样式*/
.reminder-box {
    max-width: 100%;
    font-size: 13px;
    background: #eff8ff;
    text-align: left;
    padding: 5px 20px;
    margin: 20px 0;
    color: #008eff;
}
/* 文末提醒文字样式*/

/* B站视频自适应容器 16:9 80%宽度 */
.bilibili-video-container {
    position: relative;
    width: 80%;
    margin: 2rem auto; /* 上下间距 + 居中 */
    padding-top: 56.25%; /* 严格 16:9 比例 (9/16 = 0.5625) */
    overflow: hidden;
}

.bilibili-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 手机端自动变成 95% 宽度，更美观 */
@media (max-width: 768px) {
    .bilibili-video-container {
        width: 95%;
    }
}