@charset "UTF-8";
/*
Theme Name: Linkreate Plugin
Theme URI: https://linkreate.com
Author: Linkreate Team
Author URI: https://linkreate.com
Description: 专业WordPress AI自动写作与SEO优化工具官网主题
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: linkreate
Tags: 商业插件, AI写作, SEO优化, 响应式设计, 高级布局
*/

/* ==============================================
   基础变量定义（商业插件风格）
   ============================================== */
:root {
  /* 核心色彩系统 - 专业科技蓝 */
  --primary: #165DFF;
  --primary-light: #E8F3FF;
  --primary-dark: #0E42D2;
  --primary-20: rgba(22, 93, 255, 0.2);
  
  /* 文本颜色 */
  --text-primary: #1D2129;
  --text-secondary: #4E5969;
  --text-tertiary: #86909C;
  --text-light: #C9CDD4;
  
  /* 背景与边框 */
  --bg-light: #F7F8FA;
  --bg-white: #FFFFFF;
  --bg-gray: #F2F3F5;
  --border-color: #E5E6EB;
  --border-dark: #4E5969;
  
  /* 尺寸与间距 */
  --container-width: 1280px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  
  /* 字体与标题尺寸 */
  --theme-first-level-title: 1.5rem;
  --theme-secondary-level-title: 1.25rem;
  --theme-third-level-title: 1.1rem;
  --theme-fourth-level-title: 1rem;
  --theme-text: 0.9375rem;
  --theme-secondary: 0.875rem;
  --theme-text-mini: 0.8125rem;
  --theme-text-more-mini: 0.75rem;
  --theme-header-size: 1.15rem;
  
  /* 组件尺寸 */
  --header-height: 70px;
  --card-radius: 8px;
  --btn-radius: 4px;
  
  /* 阴影与过渡 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
  --transition: all 0.3s ease;
}

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

html {
  font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: var(--theme-text);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

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

img {
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style-position: inside;
}

/* ==============================================
   全局标题样式
   ============================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
  line-height: 1.3;
}

h1 {
  font-size: var(--theme-first-level-title);
  margin-top: 1.5rem;
}

h2 {
  font-size: var(--theme-secondary-level-title);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-top: 1.25rem;
}

h3 {
  font-size: var(--theme-third-level-title);
  margin-top: 1rem;
}

h4 {
  font-size: var(--theme-fourth-level-title);
}

/* ==============================================
   顶部导航栏
   ============================================== */
.main-header {
  display: flex;
  position: fixed;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--spacing-xl);
  top: 0;
  left: 0;
  height: var(--header-height);
  width: 100%;
  z-index: 100;
  box-sizing: border-box;
}

.main-header a {
  color: inherit;
  font-size: inherit;
  text-decoration: none;
}

.main-header .left {
  display: flex;
  align-items: center;
  height: 100%;
}

.main-header .left a.logo {
  height: 100%;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: var(--transition);
  padding: 0 var(--spacing-sm);
}

/* Logo文字样式 - 商业插件风格 */
.logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  margin-right: 12px;
  position: relative;
}

.logo-text::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-light);
  transition: var(--transition);
}

.logo:hover .logo-text {
  color: var(--primary-dark);
}

.logo:hover .logo-text::after {
  background-color: var(--primary);
}

/* 标题样式 */
.main-header .left a.logo .title {
  font-size: 0.875rem;
  display: inline-block;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 !important;
}

.main-header .daohang {
  cursor: pointer;
  display: none;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.main-header .right {
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.main-header .right .menu {
  list-style: none;
  height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
}

.main-header .right .menu .menu-item {
  display: flex;
  align-items: center;
  position: relative;
  margin-left: var(--spacing-lg);
  height: 100%;
  cursor: pointer;
  font-size: var(--theme-text);
  color: var(--text-secondary);
  white-space: nowrap;
  transition: var(--transition);
}

.main-header .right .menu .menu-item:hover {
  color: var(--primary);
}

.main-header .right .menu .menu-item:hover > .sub-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.main-header .right .menu .menu-item-has-children > a {
  font-family: "iconfont" !important;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  padding-right: 1rem;
}

.main-header .right .menu .menu-item-has-children > a:after {
  font-size: 10px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  transition: all 0.2s linear;
  content: "\e652";
}

.main-header .right .menu .menu-item-has-children:hover > a:after {
  transform: translateY(-50%) rotate(360deg);
}

.main-header .right .menu .menu-item .sub-menu {
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  position: absolute;
  background: var(--bg-white);
  box-shadow: var(--shadow-md);
  margin: 0;
  padding: 0.75rem 0;
  border-radius: var(--card-radius);
  transition: all 0.25s;
  top: 100%;
  left: 0;
  min-width: 200px;
  list-style: none;
  z-index: 101;
}

.main-header .right .menu .menu-item .sub-menu .menu-item {
  margin: 0;
  padding: 0.5rem 1.25rem;
  color: var(--text-secondary);
  height: auto;
  width: 100%;
}

.main-header .right .menu .menu-item .sub-menu .menu-item:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.main-header .right .menu .menu-item .sub-menu .sub-menu {
  top: 0;
  left: 100%;
}

/* 搜索框样式 */
.main-header .right .menu-left {
  display: flex;
  align-items: center;
  margin-right: var(--spacing-lg);
}

.main-header .right .menu-left .search-div {
  display: flex;
  align-items: center;
  height: 40px;
  position: relative;
}

.main-header .right .menu-left .search-div .search {
  height: 100%;
  width: 180px;
  border: 1px solid var(--border-color);
  outline: none;
  background-color: transparent;
  padding: 0 1rem 0 2.5rem;
  font-size: var(--theme-secondary);
  border-radius: 20px;
  color: var(--text-primary);
  transition: var(--transition);
}

.main-header .right .menu-left .search-div .search::placeholder {
  color: var(--text-tertiary);
}

.main-header .right .menu-left .search-div .search:focus,
.main-header .right .menu-left .search-div .search:hover {
  box-shadow: 0 0 0 2px var(--primary-20);
  border-color: var(--primary);
  width: 220px;
}

.main-header .right .menu-left .search-div .search-icon {
  left: 0.75rem;
  color: var(--text-tertiary);
}

/* ==============================================
   请输入密码样式
   ============================================== */
.password {
  width: 100%;
  height: 100vh;
  padding-top: calc(var(--header-height) + 4.5rem);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  background-color: var(--bg-white);
}

.password img {
  width: 25%;
  margin-bottom: 2rem;
  max-width: 200px;
}

.password p {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-secondary);
  font-size: var(--theme-secondary);
  width: 90%;
  max-width: 500px;
  flex-wrap: wrap;
  text-align: center;
  margin: 0 auto;
}

.password p input[type=password] {
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.75rem;
  margin-right: 0.5rem;
  border-radius: var(--btn-radius);
  outline: none;
  width: 100%;
  margin-bottom: 1rem;
  font-size: var(--theme-text);
}

.password p input[type=password]:hover,
.password p input[type=password]:focus {
  box-shadow: 0 0 0 2px var(--primary-20);
  border-color: var(--primary);
}

.password p input[type=password]::placeholder {
  color: var(--text-tertiary);
}

.password p input[type=submit] {
  background-color: var(--primary);
  border: none;
  color: white;
  border-radius: var(--btn-radius);
  padding: 0.5rem 1.5rem;
  cursor: pointer;
  font-size: var(--theme-text);
  transition: var(--transition);
  margin-top: 1rem;
}

.password p input[type=submit]:hover {
  background-color: var(--primary-dark);
}

/* ==============================================
   网页容器
   ============================================== */
.main-container {
  margin-top: calc(var(--header-height) + 1.5rem);
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--spacing-lg);
  box-sizing: border-box;
  margin-bottom: var(--spacing-2xl);
}

/* 左侧文章导航 */
#space {
  display: flex;
  min-width: 240px;
  max-width: 240px;
  margin: 0 var(--spacing-lg) 0 0;
}

#space #navigator {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  background-color: var(--bg-white);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  min-height: 300px;
  width: 100%;
  padding: var(--spacing-md);
  overflow: hidden;
}

#space #navigator .main-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--theme-third-level-title);
  width: 100%;
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--spacing-md);
}

#space #navigator .scroll {
  height: calc(100vh - var(--header-height) - 8rem);
  overflow-y: auto;
  padding-right: var(--spacing-sm);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#space #navigator .scroll::-webkit-scrollbar {
  display: none;
}

#space #navigator .scroll ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#space #navigator .scroll li {
  margin-bottom: 0.25rem;
}

#space #navigator .scroll li .first-index,
#space #navigator .scroll li .secondary-index,
#space #navigator .scroll li .third-index {
  display: flex;
  align-items: center;
  padding: 0.5rem var(--spacing-sm);
  border-radius: var(--btn-radius);
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
}

#space #navigator .scroll li .first-index:hover,
#space #navigator .scroll li .secondary-index:hover,
#space #navigator .scroll li .third-index:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

#space #navigator .scroll li .first-index.active,
#space #navigator .scroll li .secondary-index.active,
#space #navigator .scroll li .third-index.active {
  background-color: var(--primary);
  color: white;
}

#space #navigator .scroll .first li div {
  font-size: var(--theme-text);
  font-weight: 500;
}

#space #navigator .scroll .first .secondary li div {
  font-size: var(--theme-secondary);
  padding-left: 1rem;
}

/* 主内容区域 */
.main-main {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: auto;
  padding: 0;
  /* 确保主容器背景为白色（如果需要覆盖父级背景） */
  background-color: #ffffff;
}

.main-content {
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 2.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* 核心：统一白色背景 */
  background-color: #ffffff;
  /* 可选：添加边框强化容器感（根据整体风格决定） */
  border: 1px solid #f0f0f0;
}

/* 补充：如果有其他内容容器，也保持一致 */
.i-article, .category-post-card, .div-info {
  background-color: #ffffff;
}/* ==============================================
   分类文章统计区域样式
   匹配.non-result结构
   ============================================== */
/* 容器样式 - 基础优化 */
.non-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  background-color: var(--bg-white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  /* 防止内容溢出容器 */
  overflow: hidden;
  box-sizing: border-box;
}

/* 分类信息区域 - 确保内容块完整 */
.non-result .in {
  font-size: 1rem;
  color: var(--text-secondary);
  /* 作为容器内部的主要内容块 */
  display: block;
}

/* 分类名称样式 - 优化换行逻辑 */
.non-result .belong {
  display: inline-flex;
  align-items: center;
  /* 允许子元素换行 */
  flex-wrap: wrap;
  gap: 0.5rem; /* 使用gap替代margin，更灵活 */
}

.non-result .belong span:first-child {
  /* 固定"所属分类："文字不换行 */
  white-space: nowrap;
}

.non-result .belong span:last-child {
  color: var(--primary);
  font-weight: 500;
  padding: 0.15rem 0.6rem;
  background-color: var(--primary-light);
  border-radius: 4px;
  font-size: 0.9rem;
  /* 分类标签自适应宽度 */
  white-space: nowrap;
}

/* 文章数量统计区域 - 独立块级处理 */
.non-result .number {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  /* 确保图标和文字不分离 */
  white-space: nowrap;
}

.non-result .number .iconfont {
  color: var(--primary);
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

.non-result .number span {
  font-weight: 500;
  color: var(--text-primary);
}

/* ==============================================
   移动端布局重构（核心优化）
   ============================================== */
@media (max-width: 767px) {
  .non-result {
    flex-direction: column; /* 纵向排列 */
    align-items: stretch; /* 子元素拉伸填满宽度 */
    gap: 1rem; /* 增大元素间距，避免拥挤 */
    padding: 1rem;
  }

  /* 分类信息区域占满整行 */
  .non-result .in {
    font-size: 0.95rem;
    width: 100%;
  }

  /* 数量统计区域与分类信息左对齐 */
  .non-result .number {
    font-size: 0.9rem;
    justify-content: flex-start; /* 强制左对齐 */
    margin: 0; /* 清除默认外边距 */
    padding-top: 0.25rem; /* 轻微上 padding 分隔内容 */
  }
}

@media (max-width: 480px) {
  .non-result {
    padding: 0.75rem 0.85rem; /* 更小内边距适配小屏 */
    gap: 0.75rem;
  }

  .non-result .belong {
    flex-direction: row; /* 恢复横向排列，更紧凑 */
    align-items: center;
    gap: 0.35rem; /* 缩小间距 */
  }

  .non-result .belong span:last-child {
    font-size: 0.85rem;
    padding: 0.1rem 0.5rem; /* 缩小标签内边距 */
  }

  .non-result .number {
    font-size: 0.85rem;
  }
}

/* 面包屑导航 */
.breadcrumb {
  border-bottom: 1px solid var(--border-color);
  font-size: var(--theme-text-mini);
  color: var(--text-tertiary);
  padding: 0 0 var(--spacing-md) 0;
  margin-bottom: var(--spacing-lg);
}

.breadcrumb a {
  color: inherit;
  font-size: inherit;
}

.breadcrumb a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* 文章信息 */
.article-info ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 var(--spacing-lg) 0;
  padding: 0;
  color: var(--text-tertiary);
  font-size: var(--theme-text-mini);
}

.article-info ul li {
  padding: 0 var(--spacing-sm);
  border-right: 1px solid var(--border-color);
  margin-bottom: 0.5rem;
}

.article-info ul li:first-child {
  padding-left: 0;
}

.article-info ul li:last-child {
  border-right: none;
}

.article-info ul li .iconfont {
  margin-right: 0.25rem;
}

/* 文章内容容器 */ .main-article { margin-bottom: var(--spacing-xl); line-height: 1.7; color: var(--text-primary); }
/* 段落样式优化 /
.main-article p {
font-size: 1.05rem;
line-height: 1.8;
margin-bottom: 1.8rem; / 增加段落间距，提升可读性 /
padding: 0;
letter-spacing: 0.01em; / 微调字间距，增强阅读流畅度 */
}

/* 一级标题样式（h2） /
.main-article h2 {
font-size: 1.75rem;
font-weight: 600;
margin-top: 3rem; / 增大与上方内容的距离 */
margin-bottom: 1.5rem;
padding-bottom: 0.8rem;
border-bottom: 2px solid var (--primary-light);
color: var (--text-primary);
position: relative;
}

.main-article h2::after {
content: "";
position: absolute;
bottom: -2px;
left: 0;
width: 65px;
height: 2px;
background-color: var(--primary);
transition: width 0.3s ease;
}

.main-article h2:hover::after {
width: 100px; /* hover 时下划线延长，增强交互感 */
}

/* 二级标题样式（h3） /
.main-article h3 {
font-size: 1.45rem;
font-weight: 600;
margin-top: 2.5rem;
margin-bottom: 1.25rem;
color: var(--text-primary);
padding-left: 0.75rem;
border-left: 3px solid var(--primary); / 左侧标识，强化层级 */
}

/* 三级标题样式（h4） */
.main-article h4 {
font-size: 1.2rem;
font-weight: 600;
margin-top: 2rem;
margin-bottom: 1rem;
color: var (--text-primary);
}

/* ==============================================
文章内容中 HTML 元素的渲染样式
============================================== */

/* 基础文本元素 */
.main-article strong {
font-weight: 600;
color: var (--text-primary);
padding: 0 0.15rem;
}

.main-article em {
font-style: italic;
color: var(--text-secondary);
position: relative;
}

.main-article em::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 1px;
background-color: var(--text-tertiary);
}

.main-article mark {
background-color: rgba(255, 220, 0, 0.2);
padding: 0 0.3rem;
border-radius: 3px;
color: var(--text-primary);
font-weight: 500;
}

.main-article del {
color: var(--text-tertiary);
text-decoration: line-through;
}

.main-article ins {
color: var(--primary);
text-decoration: none;
border-bottom: 2px solid var(--primary-light);
}
/* 上下篇导航链接颜色设置（纯黑色） */
.footer-nav .to a {
  color: #000;
}

/* 上下篇文字标签颜色（与链接保持一致的黑色系） */
.footer-nav .to .text {
  color: #000;
}

/* 可选：悬停状态保持黑色系（略浅以区分） */
.footer-nav .to a:hover {
  color: #333;
}
/* 链接样式 */
.main-article a {
text-decoration: none;
position: relative;
padding: 0 0.15rem;
}

.main-article a::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 1px;
transform: scaleX(0);
transform-origin: bottom right;
transition: transform 0.3s ease;
}

.main-article a:hover {
}

.main-article a:hover::after {
transform: scaleX(1);
transform-origin: bottom left;
}

/* 列表样式 */
.main-article ul {
list-style-type: none;
padding-left: 1.8rem;
margin-bottom: 1.8rem;
}

.main-article ul li {
position: relative;
padding-left: 1rem;
margin-bottom: 0.8rem;
}

.main-article ul li::before {
content: "・";
position: absolute;
left: 0;
color: var (--primary);
font-weight: bold;
font-size: 1.25rem;
line-height: 1;
top: 0.3rem; /* 垂直居中对齐 */
}

.main-article ol {
list-style-type: none;
counter-reset: item;
padding-left: 1.8rem;
margin-bottom: 1.8rem;
}

.main-article ol li {
position: relative;
padding-left: 1.2rem;
margin-bottom: 0.8rem;
counter-increment: item;
}

.main-article ol li::before {
content: counter(item) ".";
position: absolute;
left: 0;
color: var(--primary);
font-weight: 600;
}

/* 表格样式增强 */
.main-article table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
margin: 1.8rem 0;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 8px rgba (0, 0, 0, 0.05);
}

.main-article table thead {
background-color: var(--bg-gray);
}

.main-article table th,
.main-article table td {
padding: 0.9rem 1.25rem;
text-align: left;
border-bottom: 1px solid var(--border-color);
}

.main-article table th {
font-weight: 600;
color: var(--text-primary);
position: relative;
}

.main-article table th:not(:last-child)::after {
content: "";
position: absolute;
right: 0;
top: 20%;
height: 60%;
width: 1px;
background-color: var(--border-color);
}

.main-article table tr:last-child td {
border-bottom: none;
}

.main-article table tr:hover td {
background-color: var(--primary-light);
transition: background-color 0.2s ease;
}

/* 表单元素 */
.main-article form {
background-color: var (--bg-gray);
padding: 1.5rem;
border-radius: 8px;
margin: 1.8rem 0;
}

.main-article input[type="text"],
.main-article input[type="email"],
.main-article input[type="url"],
.main-article input[type="password"],
.main-article input[type="number"],
.main-article input[type="date"],
.main-article textarea,
.main-article select {
width: 100%;
padding: 0.75rem;
margin-bottom: 1rem;
border: 1px solid var(--border-color);
border-radius: 4px;
font-size: 1rem;
transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.main-article input:focus,
.main-article textarea:focus,
.main-article select:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 2px var(--primary-20);
}

.main-article input[type="submit"],
.main-article button {
background-color: var(--primary);
color: white;
border: none;
padding: 0.75rem 1.5rem;
border-radius: 4px;
cursor: pointer;
font-size: 1rem;
transition: background-color 0.3s ease;
}

.main-article input[type="submit"]:hover,
.main-article button:hover {
background-color: var(--primary-dark);
}
/* 移动端表格固定宽度滚动方案 */
@media (max-width: 767px) {
  /* 父容器确保不滚动且提供边界 */
  .main-article {
    width: 100%;
    overflow-x: hidden; /* 禁止父容器滚动 */
    padding: 0 1rem;
    box-sizing: border-box;
  }

  /* 表格固定宽度并允许内部滚动 */
  .main-article table {
    display: block !important;
    width: 100% !important; /* 表格宽度等于父容器 */
    max-width: 100% !important; /* 严格限制表格宽度不超过父容器 */
    overflow-x: auto !important; /* 内容超出时表格内部滚动 */
    -webkit-overflow-scrolling: touch !important;
    margin: 1.5rem 0 !important;
    box-sizing: border-box !important;
  }

  /* 表格内容容器设置实际宽度（大于表格宽度以触发滚动） */
  .main-article table thead,
  .main-article table tbody {
    display: block !important;
    width: max-content !important; /* 内容实际宽度，确保超出表格宽度 */
  }

  /* 单元格样式保持内容完整 */
  .main-article table th,
  .main-article table td {
    white-space: nowrap !important; /* 内容不换行 */
    padding: 0.8rem 1rem !important;
    font-size: 0.9rem !important;
  }
}

/* 极小屏幕适配 */
@media (max-width: 480px) {
  .main-article {
    padding: 0 0.75rem;
  }

  .main-article table th,
  .main-article table td {
    padding: 0.7rem 0.8rem !important;
    font-size: 0.85rem !important;
  }
}

/* 引用块样式增强 */
.main-article blockquote {
border-left: 4px solid var (--primary);
padding: 1.5rem 1.75rem;
margin: 1.8rem 0;
background-color: var (--primary-light);
border-radius: 0 4px 4px 0;
position: relative;
font-style: italic;
}

.main-article blockquote::before {
content: "\201C";
font-size: 4rem;
color: rgba(22, 93, 255, 0.2);
position: absolute;
top: -15px;
left: 10px;
font-family: Georgia, serif;
line-height: 1;
}

/* 水平分隔线 */
.main-article hr {
border: none;
height: 1px;
background-color: var (--border-color);
margin: 2.5rem 0;
position: relative;
}

.main-article hr::after {
content: "❦";
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
background-color: var(--bg-white);
color: var(--primary);
padding: 0 1rem;
font-size: 1rem;
}

/* 媒体元素 */
.main-article figure {
margin: 2rem 0;
}

.main-article figcaption {
text-align: center;
font-size: 0.9rem;
color: var(--text-tertiary);
margin-top: 0.75rem;
}

.main-article audio,
.main-article video {
width: 100%;
margin: 1.8rem 0;
border-radius: 4px;
}

/* 定义列表 */
.main-article dl {
margin: 1.8rem 0;
}

.main-article dt {
font-weight: 600;
margin-top: 1rem;
color: var(--text-primary);
}

.main-article dd {
margin-left: 1.5rem;
margin-top: 0.5rem;
color: var(--text-secondary);
}

/* 响应式调整 */
@media (max-width: 767px) {
.main-article p {
font-size: 1rem;
margin-bottom: 1.5rem;
line-height: 1.7;
}

.main-article h2 {
font-size: 1.5rem;
margin-top: 2.5rem;
margin-bottom: 1.25rem;
}

.main-article h3 {
font-size: 1.3rem;
padding-left: 0.5rem;
}

.main-article h4 {
font-size: 1.15rem;
}

.main-article pre {
padding: 1rem;
font-size: 0.85rem;
}

.main-article table {
font-size: 0.9rem;
}

.main-article table th,
.main-article table td {
padding: 0.75rem 0.5rem;
}

.main-article blockquote {
padding: 1.25rem;
font-size: 0.95rem;
}

.main-article blockquote::before {
font-size: 3.5rem;
top: -10px;
}
}
}

.main-article em {
  font-style: italic;
  color: var(--text-secondary);
}

.main-article mark {
  background-color: rgba(255, 220, 0, 0.3);
  padding: 0 0.25rem;
  border-radius: 2px;
}

.main-article del {
  color: var(--text-tertiary);
  text-decoration: line-through;
}

.main-article ins {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 2px solid var(--primary-light);
}

/* 链接样式 */
.main-article a {
  text-decoration: none;
  position: relative;
  padding: 0 2px;
}

.main-article a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

.main-article a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* 列表样式 */
.main-article ul {
  list-style-type: none;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.main-article ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.main-article ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.25rem;
  line-height: 1;
}

.main-article ol {
  list-style-type: none;
  counter-reset: item;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.main-article ol li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  counter-increment: item;
}

.main-article ol li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 600;
}

/* 表格样式增强 */
.main-article table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0 2rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.main-article table thead {
  background-color: var(--bg-gray);
}

.main-article table th,
.main-article table td {
  padding: 0.9rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.main-article table th {
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
}

.main-article table th:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background-color: var(--border-color);
}

.main-article table tr:last-child td {
  border-bottom: none;
}

.main-article table tr:hover td {
  background-color: var(--primary-light);
  transition: background-color 0.2s ease;
}

/* 表单元素 */
.main-article form {
  background-color: var(--bg-gray);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.main-article input[type="text"],
.main-article input[type="email"],
.main-article input[type="url"],
.main-article input[type="password"],
.main-article input[type="number"],
.main-article input[type="date"],
.main-article textarea,
.main-article select {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.main-article input:focus,
.main-article textarea:focus,
.main-article select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-20);
}

.main-article input[type="submit"],
.main-article button {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.main-article input[type="submit"]:hover,
.main-article button:hover {
  background-color: var(--primary-dark);
}

/* 引用块样式增强 */
.main-article blockquote {
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  background-color: var(--primary-light);
  border-radius: 0 4px 4px 0;
  position: relative;
}

.main-article blockquote::before {
  content: "\201C";
  font-size: 4rem;
  color: rgba(22, 93, 255, 0.2);
  position: absolute;
  top: -10px;
  left: 10px;
  font-family: Georgia, serif;
  line-height: 1;
}

/* 水平分隔线 */
.main-article hr {
  border: none;
  height: 1px;
  background-color: var(--border-color);
  margin: 2rem 0;
  position: relative;
}

.main-article hr::after {
  content: "❦";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--bg-white);
  color: var(--primary);
  padding: 0 1rem;
  font-size: 1rem;
}

/* 媒体元素 */
.main-article figure {
  margin: 2rem 0;
}

.main-article figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-tertiary);
  margin-top: 0.75rem;
}

.main-article audio,
.main-article video {
  width: 100%;
  margin: 1.5rem 0;
  border-radius: 4px;
}

/* 定义列表 */
.main-article dl {
  margin: 1.5rem 0;
}

.main-article dt {
  font-weight: 600;
  margin-top: 1rem;
  color: var(--text-primary);
}

.main-article dd {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
  color: var(--text-secondary);
}

/* 响应式调整 */
@media (max-width: 767px) {
  .main-article pre {
    padding: 1rem;
    font-size: 0.85rem;
  }
  
  .main-article table {
    font-size: 0.9rem;
  }
  
  .main-article table th,
  .main-article table td {
    padding: 0.75rem 0.5rem;
  }
  
  .main-article blockquote {
    padding: 1rem;
    font-size: 0.95rem;
  }
}
/* ==============================================
   特定文章列表项布局样式
   匹配提供的<i-article>结构
   ============================================== */

/* 文章列表项容器 */
.i-article {
  display: flex;
  flex-direction: row;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
  background-color: var(--bg-white);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  align-items: center;
}

.i-article:last-child {
  margin-bottom: 0;
}

.i-article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

/* 文章摘要区域 */
.i-article-summary {
  flex: 1;
  padding-right: 1.5rem;
}

/* 文章标题 */
.i-article-title {
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
  line-height: 1.4;
  font-weight: 600;
}

.i-article-title a {
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.i-article:hover .i-article-title a {
  color: var(--primary);
  text-decoration: none;
}

/* 文章摘要文本 */
.i-article-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 文章信息区域 */
.i-article-info ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  color: var(--text-tertiary);
  font-size: 0.85rem;
  gap: 0.5rem 1.25rem;
}

.i-article-info ul li {
  display: flex;
  align-items: center;
  padding: 0;
  border-right: 1px solid var(--border-color);
  padding-right: 1.25rem;
  margin: 0;
}

.i-article-info ul li:last-child {
  border-right: none;
  padding-right: 0;
}

.i-article-info ul li a {
  color: var(--text-tertiary);
  transition: color 0.3s ease;
}

.i-article-info ul li a:hover {
  color: var(--primary);
}

.i-article-info .iconfont {
  margin-right: 0.35rem;
  font-size: 0.9rem;
  color: var(--primary);
}

/* 分类标签样式 */
.i-article-info .category {
  background-color: var(--primary-light);
  padding: 0.15rem 0.75rem;
  border-radius: 4px;
  margin-right: 0.5rem;
}

.i-article-info .category a {
  color: var(--primary);
  font-weight: 500;
}

/* 缩略图区域 */
.i-article-thumb {
  flex: 0 0 200px;
  height: 140px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.i-article-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.i-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.i-article:hover .i-article-thumb img {
  transform: scale(1.08);
}

/* 响应式调整 */
@media (max-width: 992px) {
  .i-article-thumb {
    flex: 0 0 180px;
    height: 120px;
  }
}

@media (max-width: 767px) {
  .i-article {
    flex-direction: column;
    padding: 1rem;
  }
  
  .i-article-summary {
    padding-right: 0;
    margin-bottom: 1rem;
    width: 100%;
  }
  
  .i-article-thumb {
    flex: 0 0 160px;
    width: 100%;
  }
  
  .i-article-title {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
  }
  
  .i-article-info ul {
    gap: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .i-article-info ul li {
    padding-right: 0.75rem;
  }
}
/* 适配手机设备（575px及以下，覆盖更多小屏设备） */
@media (max-width: 575px) {
  .i-article-info ul {
    display: flex;
    flex-wrap: wrap; /* 允许换行 */
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
    gap: 0.5rem 0; /* 控制项之间的垂直间距 */
  }
  
  .i-article-info ul li {
    border-right: none;
    padding: 0 0.5rem;
    width: 50%; /* 每行固定显示2个 */
    margin: 0;
    box-sizing: border-box;
    /* 确保内容在项内正确排列 */
    display: flex;
    align-items: center;
    min-height: 1.5rem; /* 避免内容过短时高度不一致 */
  }
  
  /* 处理内容过长的情况 */
  .i-article-info ul li * {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%; /* 防止内容溢出列表项 */
  }
  
  .i-article-thumb {
    height: 140px;
    width: 100%;
    object-fit: cover;
  }
}
/* ==============================================
   特定分页结构样式
   匹配提供的.pagination > .page-numbers结构
   ============================================== */

/* 分页容器 */
.pagination {
  margin: 3rem 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

/* 页码列表容器 */
.pagination .page-numbers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 页码项通用样式 */
.pagination .page-numbers li {
  margin: 0;
  padding: 0;
}

/* 页码链接和当前页码样式 */
.pagination .page-numbers a,
.pagination .page-numbers span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

/* 普通页码链接 */
.pagination .page-numbers a {
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  background-color: var(--bg-white);
}

/* 页码悬停效果 */
.pagination .page-numbers a:hover {
  color: var(--primary);
  border-color: var(--primary);
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

/* 当前页码样式 */
.pagination .page-numbers span.current {
  color: white;
  background-color: var(--primary);
  border: 1px solid var(--primary);
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(22, 93, 255, 0.2);
}

/* 省略号样式 */
.pagination .page-numbers span.dots {
  color: var(--text-tertiary);
  border: none;
  background: transparent;
  padding: 0 0.5rem;
  cursor: default;
}

/* 处理大页码（如1,007）的显示 */
.pagination .page-numbers a[href*="1007"] {
  min-width: 50px;
}

/* 响应式调整 */
@media (max-width: 767px) {
  .pagination {
    margin: 2rem 0;
  }
  
  .pagination .page-numbers a,
  .pagination .page-numbers span {
    min-width: 36px;
    height: 36px;
    font-size: 0.9rem;
    padding: 0 0.5rem;
  }
  
  /* 在小屏幕上隐藏部分页码，只保留关键导航元素 */
  .pagination .page-numbers li:not(:first-child):not(:last-child):not(:nth-child(2)):not(:nth-last-child(2)) {
    display: none;
  }
  
  /* 确保省略号始终显示 */
  .pagination .page-numbers li:has(span.dots) {
    display: block;
  }
}

@media (max-width: 480px) {
  .pagination .page-numbers {
    gap: 0.25rem;
  }
}

.main-article ul,
.main-article ol {
  margin: 0 0 var(--spacing-md) 0;
  padding-left: var(--spacing-lg);
}

.main-article ul li,
.main-article ol li {
  margin-bottom: 0.5rem;
}

.main-article a {
  color: var(--primary);
  text-decoration: underline;
}

.main-article a:hover {
  color: var(--primary-dark);
}

/* 代码样式 */
.main-article code.code {
  background-color: var(--bg-gray);
  margin: 0 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--btn-radius);
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 0.875rem;
}

/* 提示框样式 */
.main-article .custom-container {
  border-radius: var(--btn-radius);
  margin: 0 0 var(--spacing-lg) 0;
  padding: var(--spacing-md);
  border-left: 4px solid transparent;
}

.main-article .custom-container .title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.main-article .custom-container .title .iconfont {
  margin-right: 0.5rem;
}

.main-article .success {
  border-left-color: var(--success);
  background-color: rgba(82, 196, 26, 0.1);
}

.main-article .success .title {
  color: var(--success);
}

.main-article .alert {
  border-left-color: var(--warning);
  background-color: rgba(250, 173, 20, 0.1);
}

.main-article .alert .title {
  color: var(--warning);
}

.main-article .error {
  border-left-color: var(--danger);
  background-color: rgba(255, 77, 79, 0.1);
}

.main-article .error .title {
  color: var(--danger);
}

/* 图片样式 */
.main-article .container-image {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto var(--spacing-lg) auto;
}

.main-article .container-image img {
  cursor: pointer;
  border-radius: var(--btn-radius);
  max-width: 100%;
  box-shadow: var(--shadow-sm);
}

.main-article .container-image .image-info {
  font-size: var(--theme-text-mini);
  color: var(--text-tertiary);
  margin-top: 0.5rem;
  text-align: center;
}

/* 表格样式 */
.main-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--spacing-lg) 0;
}

.main-article table tr:hover {
  background-color: var(--bg-gray);
}

.main-article table tr td,
.main-article table tr th {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  text-align: left;
}

.main-article table tr th {
  background-color: var(--bg-gray);
  font-weight: 600;
}

/* 文章底部 */
footer {
  padding: var(--spacing-xl) 0 0 0;
  width: 100%;
  border-top: 1px solid var(--border-color);
}

.footer-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--spacing-xl);
}

.footer-nav .to {
  display: flex;
  flex-direction: column;
  width: 48%;
}

.footer-nav .to .text {
  font-size: var(--theme-text-mini);
  color: var(--text-tertiary);
}

.footer-nav .to a {
  font-size: var(--theme-text);
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
}

.footer-nav .to a .iconfont {
  margin-right: 0.5rem;
}

.footer-nav .to a:hover {
  text-decoration: underline;
}

.footer-nav .right {
  align-items: flex-end;
}

.footer-nav .right a {
  text-align: right;
  justify-content: flex-end;
}

/* 标签 */
.label {
  margin: var(--spacing-lg) 0;
}

.label ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.label ul li {
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: var(--theme-text-mini);
  transition: var(--transition);
}

.label ul li:hover {
  background-color: var(--primary);
  color: white;
}

/* 右侧边栏 */
#fixed {
  min-width: 280px;
  padding: 0;
  margin: 0 0 0 var(--spacing-lg);
}

#fixed .main-right {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

/* 作者信息 */
.author {
  background-color: var(--bg-white);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.author .author-beijin img {
  width: 100%;
  height: 80px;
  object-fit: cover;
}

.author .offset {
  padding: var(--spacing-md);
  position: relative;
}

.author .offset .author-avatar {
  position: absolute;
  top: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  border: 4px solid var(--bg-white);
  overflow: hidden;
}

.author .offset .author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author .offset .author-info {
  margin-top: 2rem;
  text-align: center;
}

.author .offset .author-info .nickname {
  font-weight: 600;
  font-size: var(--theme-text);
  margin-bottom: 0.5rem;
}

.author .offset .author-self {
  margin-top: var(--spacing-sm);
  font-size: var(--theme-secondary);
  color: var(--text-secondary);
  text-align: center;
}

.author .statistic {
  display: flex;
  justify-content: space-around;
  padding: var(--spacing-md) 0;
  border-top: 1px solid var(--border-color);
  margin-top: var(--spacing-sm);
}

.author .statistic .item {
  text-align: center;
}

.author .statistic .item .bottom {
  font-weight: 600;
  font-size: var(--theme-text);
  color: var(--text-primary);
}

.author .statistic .item .top {
  font-size: var(--theme-text-mini);
  color: var(--text-tertiary);
}

/* 近期文章 */
.div-info {
  background-color: var(--bg-white);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-md);
}

.div-info .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--theme-third-level-title);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--spacing-md);
  font-weight: 600;
}

.recent .ul,
.update .ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent .ul li,
.update .ul li {
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
}

.recent .ul li:last-child,
.update .ul li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.recent .ul li a,
.update .ul li a {
  display: flex;
  color: var(--text-primary);
}

.recent .ul li a:hover .caption,
.update .ul li a:hover .caption {
  color: var(--primary);
}

.recent .ul li a .thumnbnail,
.update .ul li a .thumnbnail {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: var(--btn-radius);
  overflow: hidden;
  margin-right: var(--spacing-sm);
}

.recent .ul li a .thumnbnail img,
.update .ul li a .thumnbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.recent .ul li a:hover .thumnbnail img,
.update .ul li a:hover .thumnbnail img {
  transform: scale(1.1);
}

.recent .ul li a .article,
.update .ul li a .article {
  flex: 1;
  min-width: 0;
}

.recent .ul li a .article .caption,
.update .ul li a .article .caption {
  font-size: var(--theme-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.recent .ul li a .article .datetime,
.update .ul li a .article .datetime {
  font-size: var(--theme-text-more-mini);
  color: var(--text-tertiary);
}

/* 热门标签 */
.hot-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hot-tags a {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--bg-gray);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 20px;
  font-size: var(--theme-text-mini);
  transition: var(--transition);
}

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

/* 相关文章 */
.related-posts {
  margin-top: var(--spacing-xl);
  border-top: 1px solid var(--border-color);
  padding-top: var(--spacing-xl);
}

.related-posts .header {
  margin-bottom: var(--spacing-lg);
}

.related-post-item {
  display: flex;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.related-post-item:hover .caption {
  color: var(--primary);
}

.related-post-item img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--btn-radius);
  margin-right: var(--spacing-sm);
  flex-shrink: 0;
}

.related-post-item .caption {
  font-size: var(--theme-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 评论区 */
.comment-form {
  margin-top: var(--spacing-xl);
}

.comment-form .comment-header {
  margin-bottom: var(--spacing-lg);
}

.comment-form .comment-header .comment-person {
  display: flex;
  align-items: center;
}

.comment-form .comment-header .comment-person .comment-avatar img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
}

.comment-form .comment-header .comment-person .comment-info {
  margin-left: var(--spacing-sm);
}

.comment-form .comment-form-main .comment-textarea .comment-content {
  width: 100%;
  min-height: 120px;
  border: 1px solid var(--border-color);
  border-radius: var(--btn-radius);
  padding: var(--spacing-md);
  font-size: var(--theme-text);
  resize: vertical;
  margin-bottom: var(--spacing-md);
  transition: var(--transition);
}

.comment-form .comment-form-main .comment-textarea .comment-content:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-20);
}

.comment-form .comment-form-main .comment-container {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.comment-form .comment-form-main .comment-container input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--btn-radius);
  font-size: var(--theme-text);
  transition: var(--transition);
}

.comment-form .comment-form-main .comment-container input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-20);
}

.comment-form .comment-form-footer button {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--btn-radius);
  padding: 0.6rem 1.5rem;
  font-size: var(--theme-text);
  cursor: pointer;
  transition: var(--transition);
}

.comment-form .comment-form-footer button:hover {
  background-color: var(--primary-dark);
}

/* 评论列表 */
.comment_list {
  margin-top: var(--spacing-xl);
}

.comment_list ul {
  list-style: none;
  padding: 0;
}

.comment_list li .comment-body {
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--border-color);
}

.comment_list li:last-child .comment-body {
  border-bottom: none;
}

.comment_list li .comment-body .comment-author {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.comment_list li .comment-body .comment-author .avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  margin-right: var(--spacing-sm);
}

.comment_list li .comment-body .comment-author .url {
  font-weight: 600;
}

.comment_list li .comment-body .comment-content {
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.comment_list li .comment-body .comment-meta {
  font-size: var(--theme-text-mini);
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
}

.comment_list li .comment-body .reply {
  margin-left: var(--spacing-md);
  color: var(--primary);
  cursor: pointer;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  margin: var(--spacing-xl) 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 0.25rem;
  border-radius: var(--btn-radius);
  text-decoration: none;
  font-size: var(--theme-text);
  transition: var(--transition);
}

.pagination a {
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.pagination a:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.pagination span.current {
  background-color: var(--primary);
  color: white;
  border: 1px solid var(--primary);
}

/* 推荐文章 */
.recommend {
  margin-bottom: var(--spacing-xl);
  background-color: var(--bg-white);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-lg);
}

.recommend .header {
  margin-bottom: var(--spacing-lg);
}

.recommend .list {
  width: 100%;
  overflow: hidden;
}

.recommend .list .swiper-slide {
  width: calc(25% - 12px);
  display: inline-block;
  margin: 0 6px;
  border-radius: var(--card-radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
}

.recommend .list .swiper-slide:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.recommend .list .swiper-slide a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--text-primary);
}

.recommend .list .swiper-slide a .thumnbnail {
  width: 100%;
  height: 120px;
  overflow: hidden;
}

.recommend .list .swiper-slide a .thumnbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.recommend .list .swiper-slide a:hover .thumnbnail img {
  transform: scale(1.1);
}

.recommend .list .swiper-slide a .caption {
  font-size: var(--theme-text);
  padding: var(--spacing-sm);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recommend .list .swiper-slide a .detail {
  display: flex;
  justify-content: space-between;
  padding: 0 var(--spacing-sm) var(--spacing-sm);
  font-size: var(--theme-text-more-mini);
  color: var(--text-tertiary);
}

/* 首页文章列表 */
.index .main-content {
  padding: var(--spacing-xl);
}

.index .main-content .i-article {
  display: flex;
  padding: var(--spacing-lg) 0;
  border-bottom: 1px solid var(--border-color);
}

.index .main-content .i-article:last-child {
  border-bottom: none;
}

.index .main-content .i-article .i-article-thumb {
  width: 200px;
  flex-shrink: 0;
  margin-left: var(--spacing-lg);
  border-radius: var(--btn-radius);
  overflow: hidden;
}

.index .main-content .i-article .i-article-thumb a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.index .main-content .i-article .i-article-thumb a:hover img {
  transform: scale(1.1);
}

.index .main-content .i-article .i-article-summary {
  flex: 1;
}

.index .main-content .i-article .i-article-summary .i-article-title {
  font-size: var(--theme-secondary-level-title);
  margin-bottom: var(--spacing-sm);
}

.index .main-content .i-article .i-article-summary .i-article-title a {
  color: var(--text-primary);
}

.index .main-content .i-article .i-article-summary .i-article-title a:hover {
  color: var(--primary);
}

.index .main-content .i-article .i-article-summary .i-article-excerpt {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.index .main-content .i-article .i-article-summary .i-article-info {
  display: flex;
  justify-content: space-between;
  color: var(--text-tertiary);
  font-size: var(--theme-text-mini);
}

/* ==============================================
   悬浮工具
   ============================================== */
.fixed {
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 100;
  right: var(--spacing-md);
  bottom: 5rem;
}

.fixed button {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: var(--spacing-sm);
  transition: var(--transition);
  color: var(--text-secondary);
}

.fixed button:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.fixed .toTop {
  visibility: hidden;
  opacity: 0;
  transition: var(--transition);
}

.fixed .toTop.visible {
  visibility: visible;
  opacity: 1;
}

/* ==============================================
   页脚
   ============================================== */
.main-bottom {
  width: 100%;
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-color);
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-2xl);
}

.main-bottom .container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  text-align: center;
  color: var(--text-tertiary);
  font-size: var(--theme-text-mini);
}

.main-bottom a {
  color: var(--text-tertiary);
  margin: 0 0.5rem;
}

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

.main-bottom .copyright {
  margin-top: var(--spacing-md);
}

/* ==============================================
   响应式设计
   ============================================== */

/* 大屏设备 */
@media (min-width: 1200px) {
  .main-container {
    max-width: 1400px;
  }
}

/* 平板设备 */
@media (min-width: 768px) and (max-width: 1024px) {
  .main-container {
    flex-direction: column;
    padding: 0 var(--spacing-md);
  }
  
  #space,
  #fixed {
    display: none;
  }
  
  .main-main {
    max-width: 100%;
    width: 100%;
  }
  
  .main-header .right .menu-left .search-div .search {
    width: 140px;
  }
  
  .main-header .right .menu-left .search-div .search:focus {
    width: 180px;
  }
  
  .recommend .list .swiper-slide {
    width: calc(33.333% - 12px);
  }
}

/* 小屏平板和手机 */
@media (max-width: 767px) {
  :root {
    --header-height: 60px;
    --spacing-xl: 1.5rem;
    --spacing-2xl: 2rem;
  }
  
  .main-container {
    flex-direction: column;
    padding: 0 var(--spacing-sm);
    margin-top: calc(var(--header-height) + 1rem);
  }
  
  #space,
  #fixed {
    display: none;
  }
  
  .main-main {
    max-width: 100%;
    width: 100%;
  }
  
  .main-content {
    padding: var(--spacing-lg);
  }
  
  .main-header {
    padding: 0 var(--spacing-md);
  }
  
  .main-header .right {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--bg-white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: var(--header-height) var(--spacing-lg) var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: left 0.3s ease;
    z-index: 101;
  }
  
  .main-header .right.active {
    left: 0;
  }
  
  .main-header .right .menu-left {
    width: 100%;
    margin: 0 0 var(--spacing-lg) 0;
  }
  
  .main-header .right .menu-left .search-div .search {
    width: 100%;
  }
  
  .main-header .right .menu {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  
  .main-header .right .menu .menu-item {
    margin: 0;
    width: 100%;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
  }
  
  .main-header .daohang {
    display: block;
    z-index: 102;
  }
  
  /* 文章列表响应式 */
  .index .main-content .i-article {
    flex-direction: column;
  }
  
  .index .main-content .i-article .i-article-thumb {
    width: 100%;
    margin: 0 0 var(--spacing-md) 0;
    height: 180px;
  }
  
  /* 推荐文章响应式 */
  .recommend .list .swiper-slide {
    width: calc(50% - 12px);
  }
  
  /* 评论区响应式 */
  .comment-form .comment-form-main .comment-container {
    flex-direction: column;
  }
  
  /* 页脚导航响应式 */
  .footer-nav {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
  
  .footer-nav .to {
    width: 100%;
  }
  
  .footer-nav .right {
    align-items: flex-start;
  }
  
  .footer-nav .right a {
    text-align: left;
    justify-content: flex-start;
  }
}

/* 手机设备 */
@media (max-width: 480px) {
  .main-header .left a.logo .title {
    display: none;
  }
  
  .recommend .list .swiper-slide {
    width: 100%;
    margin: 0 0 var(--spacing-md) 0;
  }
  
  .article-info ul li {
    padding: 0 0.5rem 0 0;
    border-right: none;
    display: block;
    width: 50%;
    float: left;
  }
  
  .main-article h2 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
  }
  
  .main-article h3 {
    font-size: 1.1rem;
  }
}
    