/* RiPro主题样式 - 基于ripro.rizhuti.com风格 */

/* 变量定义 */
:root {
  /* 主色调 - 深蓝调 */
  --primary-color: #2c5aa0;
  --secondary-color: #f8b500;
  --accent-color: #ff6b6b;
  
  /* 文本颜色 */
  --text-primary: #333;
  --text-secondary: #666;
  --text-muted: #999;
  
  /* 背景颜色 */
  --bg-light: #f8f9fa;
  --bg-white: #fff;
  --bg-dark: #222;
  
  /* 边框颜色 */
  --border-color: #eaeaea;
  --border-dark: #ddd;
  
  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  
  /* 圆角 */
  --border-radius: 8px;
  --border-radius-lg: 12px;
  
  /* 间距 */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
}

/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 导航栏样式 */
.navbar {
  background: var(--bg-white);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  width: 100%;
  height: 70px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.navbar.hidden {
  transform: translateY(-100%);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0 2rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  position: relative;
}

.navbar-brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* logo左对齐 */
  height: 100%;
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-image {
  height: 40px;
  max-width: 120px;
  object-fit: contain;
}

.navbar-menu {
  display: flex;
  justify-content: flex-end; /* 导航菜单右对齐 */
  align-items: center;
  height: 100%;
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

/* 更高优先级的选择器 */
.navbar .navbar-menu {
  justify-content: flex-end !important;
}

.navbar .nav-links {
  justify-content: flex-end !important;
}

.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem; /* 增加导航菜单项之间的间距 */
  align-items: center;
  height: 100%;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem; /* 增加导航菜单项之间的间距 */
  align-items: center;
  height: 100%;
  justify-content: flex-end; /* 导航菜单右对齐 */
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  margin-left: auto; /* 推动右侧按钮到最右边 */
}

.navbar-search {
  position: relative;
  width: 250px;
}

.td-search {
  width: 100%;
}

.td-search__input {
  width: 100%;
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.9rem;
  background: var(--bg-light);
  transition: all 0.3s ease;
}

.td-search__input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.td-search__icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: all 0.3s ease-in-out;
}

/* 移动端菜单 */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--bg-white);
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 1001;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-content {
  position: relative;
  padding: 2rem 1rem;
  padding-top: 4rem;
}

.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1.2rem;
}

.mobile-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-item {
  margin-bottom: 1rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.mobile-nav-link:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
}

/* 响应式调整 */
@media (max-width: 992px) {
  .navbar-nav {
    gap: 0.8rem; /* 在较小屏幕上进一步减小导航菜单间距 */
  }
  
  .navbar-nav .nav-link {
    padding: 0.3rem 0.6rem; /* 在较小屏幕上进一步减小导航链接内边距 */
  }
  
  .navbar-search {
    width: 180px;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .navbar-container {
    padding: 0 1rem;
  }
  
  .navbar-search {
    display: none;
  }
  
  .navbar-brand {
    flex: 1;
    justify-content: flex-start;
  }
  
  .mobile-menu {
    width: 100%;
  }
  
  .navbar-content {
    padding: 0;
  }
  
  .navbar-actions {
    flex-shrink: 0;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
}
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1100;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.navbar-brand .logo {
  text-decoration: none;
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.logo-image {
  height: 40px;
}

.navbar-menu {
  display: flex;
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 1rem; /* 减小导航菜单项之间的间距 */
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-item {
  white-space: nowrap;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
  padding: 0.4rem 0.8rem; /* 减小导航链接的内边距 */
  border-radius: 4px;
}

.nav-link:hover {
  color: var(--primary-color);
  background-color: rgba(44, 90, 160, 0.1);
  transform: translateY(-1px);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  margin-left: auto; /* 推动右侧按钮到最右边 */
}

.search-toggle {
  cursor: pointer;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.search-toggle:hover {
  color: var(--primary-color);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 2px 0;
  transition: 0.3s;
}

/* 移动端菜单 */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%; /* 从右侧滑入 */
  width: 80%;
  max-width: 300px;
  height: 100%;
  background: var(--bg-white);
  z-index: 1200; /* 确保高于导航栏 */
  transition: right 0.3s ease;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.mobile-menu-close:hover {
  background: var(--bg-light);
}

.mobile-menu-content {
  padding: 4rem 1.5rem 2rem;
  height: 100%;
  overflow-y: auto;
}

.mobile-nav {
  list-style: none;
}

.mobile-nav-item {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.mobile-nav-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.mobile-nav-link {
  display: block;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.mobile-nav-link:hover {
  color: var(--primary-color);
  padding-left: 0.5rem;
}

/* 导航栏隐藏效果 */
.navbar {
  transition: transform 0.3s ease;
}

.navbar.navbar-hidden {
  transform: translateY(-100%);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .navbar-nav {
    display: none;
  }
  
  .navbar-menu {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .navbar {
    padding: 0.8rem 0;
    height: 60px;
  }
  
  .navbar .container {
    height: 100%;
  }
  
  /* 确保移动菜单不受导航栏隐藏效果影响 */
  .mobile-menu {
    top: 0;
  }
}

/* 更小屏幕 */
@media (max-width: 480px) {
  .mobile-menu-toggle {
    width: 30px;
    height: 30px;
  }
  
  .mobile-menu-toggle span {
    width: 20px;
    height: 2px;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 70px; /* 桌面端导航栏高度 */
}

/* 移动端调整 */
@media (max-width: 768px) {
  body {
    padding-top: 60px; /* 移动端导航栏高度 */
  }
}

/* 链接样式 */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

/* 容器样式 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

@media (min-width: 1200px) {
  .container {
    padding: 0;
  }
}

/* Hero Banner 样式 */
.hero-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1e3a8a 100%);
  color: white;
  padding: 1rem 0; /* 减少顶部内边距 */
  margin-bottom: 1rem;
  /* 移除margin-top，因为已经在body中设置了padding-top */
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.main-image {
  max-width: 280px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* PC端广告模块样式 */
@media (min-width: 769px) {
  .hero-image img.main-image,
  .main-image {
    max-width: 240px !important; /* 调整为240px */
  }
}

.hero-slogans {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 1rem;
}

.slogan-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 1rem !important;
  line-height: 1.7 !important;
  margin-bottom: 0.3rem !important;
  width: 100%;
  justify-content: flex-start;
}

.slogan-item i {
  font-size: 0.45rem !important;
  margin-right: 0.3rem;
  color: #f8b500;
}

@media (max-width: 768px) {
  .hero-banner {
    margin-top: 0 !important; /* 去掉移动端广告模块顶部空白 */
    padding-top: 0.5rem !important; /* 减少顶部内边距 */
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  
  .hero-image {
    order: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem auto 1rem auto;
    width: 100%;
  }
  
  .hero-image img, .main-image {
    max-width: 240px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .main-image {
    max-width: 144px; /* 240px的60% */
  }
  
  .hero-text {
    order: 2;
    text-align: center;
  }
  
  .hero-badge {
    align-self: center;
    margin-bottom: 0.8rem;
    font-size: 1.3rem !important;
    padding: 0.4rem 0.8rem !important;
  }
  
  .hero-slogans {
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
  }
  
  .slogan-item {
    font-size: 1rem !important;
    line-height: 1.7 !important;
    margin-bottom: 0.3rem !important;
  }
  
  .slogan-item i {
    font-size: 0.45rem !important;
    margin-right: 0.3rem !important;
  }
  
  .search-box {
    justify-content: center;
    margin-bottom: 1rem;
    margin-top: 0.7rem;
  }
  
  .popular-tags {
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.3rem;
    overflow-x: auto;
    padding-bottom: 0.3rem;
    margin-top: 0.7rem;
  }
  
  .tags-label {
    margin-right: 0.5rem;
    margin-bottom: 0rem;
    font-size: 0.75rem !important;
    white-space: nowrap;
  }
  
  .tag {
    font-size: 0.75rem !important;
    padding: 0.2rem 0.4rem !important;
    margin: 0 0.1rem !important;
  }
}

.hero-image img {
  width: 65% !important;
  max-width: 400px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badge {
  background: var(--secondary-color);
  color: #333;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 1.7rem !important;
  font-weight: 600;
  display: inline-block;
  width: fit-content;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.hero-slogans {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.slogan-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 1rem !important;
  line-height: 1.7 !important;
}

.slogan-item i {
  color: var(--secondary-color);
  font-size: 1.1rem;
}

.search-box {
  margin-top: 1rem;
}

/* 移动端热门搜索间距调整 */
@media (max-width: 768px) {
  .popular-tags {
    margin-top: 0.7rem;
    gap: 0.5rem;
  }
  
  .tag {
    margin: 0;
    padding: 0.25rem 0.6rem;
    white-space: nowrap;
  }
}

.search-form {
  display: flex;
  max-width: 400px;
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.search-input {
  flex: 1;
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  outline: none;
}

.search-btn {
  background: var(--secondary-color);
  border: none;
  padding: 1rem 1.5rem;
  color: #333;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-btn:hover {
  background: #e6a400;
}

.popular-tags {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.tags-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.tag {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  transition: background 0.3s ease;
}

.tag:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 最新推荐区域 */
.latest-section {
  padding: 3rem 0;
  background: var(--bg-light);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.view-all {
  color: var(--primary-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.view-all:hover {
  color: var(--secondary-color);
}

/* 文章卡片样式 */
.article-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.article-image {
  height: 200px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
  transform: scale(1.05);
}

.article-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-date {
  color: var(--text-muted);
}

.article-tag {
  background: var(--primary-color);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
}

.article-title {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.article-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.article-title a:hover {
  color: var(--primary-color);
}

.article-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.article-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.read-more {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.read-more:hover {
  color: var(--secondary-color);
}

/* 文章模块样式 */
.article-module {
  padding: 3rem 0;
  background: white;
}

.article-module:nth-child(even) {
  background: var(--bg-light);
}

.module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.module-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  position: relative;
  padding-left: 1rem;
}

.module-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1.5rem;
  background: var(--primary-color);
  border-radius: 2px;
}

/* 文章网格布局 - 4列布局显示20篇文章 */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* 响应式布局：平板上显示2列 */
@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 响应式布局：手机上显示1列 */
@media (max-width: 480px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .card-image {
    height: 180px;
  }
  
  .card-content {
    padding: 1rem;
  }
  
  .card-title {
    font-size: 1rem;
  }
  
  .card-meta {
    font-size: 0.8rem;
  }
}

/* RiPro风格的列表页标题区域 */
.page-hero {
  background: linear-gradient(135deg, #2c5aa0, #1a3d6f);
  color: white;
  padding: 5rem 0;
  margin-bottom: 0;
}

.page-header {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.page-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.page-description {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

/* RiPro风格的筛选导航 */
.filter-nav {
  background: #f8f9fa;
  border-bottom: 1px solid #eaeaea;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.filter-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.filter-tabs {
  display: flex;
  overflow-x: auto;
  padding: 1rem 0;
  scrollbar-width: none; /* Firefox */
}

/* 移动端和PC端的导航标签 */
.mobile-tabs {
  display: none !important;
}

.desktop-tabs {
  display: flex;
}

/* 移动端样式 */
@media (max-width: 768px) {
  .mobile-tabs {
    display: flex !important;
  }
  
  .desktop-tabs {
    display: none !important;
  }
}

.filter-tabs::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.filter-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  color: #666;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 0;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

/* 移动端导航标签样式 */
@media (max-width: 768px) {
  .filter-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    margin-right: 2px;
    text-decoration: none;
    color: #666;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-bottom: none;
    min-width: 60px;
  }
  
  .filter-tab i {
    margin-bottom: 5px;
    font-size: 16px;
  }
  
  .filter-tab span {
    font-size: 12px;
    line-height: 1.2;
  }
  
  .filter-tab.active {
    background: var(--primary-color);
    color: #fff;
    border-bottom: none;
  }
  
  .filter-tab:hover:not(.active) {
    background: #f5f5f5;
    color: var(--primary-color);
    border-bottom: none;
  }
}

.filter-tab:hover {
  color: #2c5aa0;
  background: rgba(44, 90, 160, 0.05);
}

.filter-tab.active {
  color: #2c5aa0;
  border-bottom: 3px solid #2c5aa0;
}

.filter-tab i {
  font-size: 1rem;
}

.filter-options {
  display: flex;
  gap: 1rem;
}

.filter-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  background: white;
  border: 1px solid #eaeaea;
  border-radius: 4px;
  color: #666;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dropdown-toggle:hover {
  border-color: #2c5aa0;
  color: #2c5aa0;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #eaeaea;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 150px;
  z-index: 1000;
  display: none;
}

.filter-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 0.7rem 1rem;
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item.active {
  background: #f8f9fa;
  color: #2c5aa0;
}

/* RiPro风格的内容区域 */
.content-area {
  padding: 3rem 0;
}

.list-header {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.list-info h2.list-title {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.list-count {
  font-size: 1rem;
  color: #666;
  margin: 0.5rem 0 0 0;
}

.count-number {
  color: #2c5aa0;
  font-weight: 600;
}

/* RiPro风格的文章卡片 */
.article-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-image {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .card-image img {
  transform: scale(1.05);
}

.card-image.placeholder {
  background: linear-gradient(45deg, #f5f5f5, #eaeaea);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image.placeholder i {
  font-size: 2.5rem;
  color: #ccc;
}

.vip-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #ff9500, #ff6200);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(255, 98, 0, 0.3);
}

.card-content {
  padding: 1.5rem;
}

.card-category {
  color: #2c5aa0;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
}

.card-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.5rem 0;
  height: 4.2rem; /* 增加高度确保完全显示三行文本 */
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}

.card-title a {
  color: #333;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 4.2rem; /* 增加最大高度确保完全显示 */
  line-height: 1.4;
  transition: color 0.3s ease;
  box-sizing: border-box;
}

.card-title a:hover {
  color: #2c5aa0;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.card-date {
  font-size: 0.85rem;
  color: #999;
}

.card-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: #999;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.stat i {
  font-size: 0.9rem;
}

/* 无文章提示 */
.no-articles {
  text-align: center;
  padding: 4rem 0;
  color: #666;
}

.no-articles-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #ccc;
}

.no-articles h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.no-articles p {
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* 文章页面样式 - 参考RiTheme设计 */

/* 文章标题区域 */
.article-header {
  background: #f8f9fa;
  padding: 2rem 0;
  border-bottom: 1px solid #eaeaea;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #666;
}

.article-breadcrumb a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.article-breadcrumb a:hover {
  color: #2c5aa0;
}

.article-breadcrumb .current {
  color: #2c5aa0;
  font-weight: 500;
}

.article-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: #666;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  width: 100%;
}

.tag {
  background: rgba(44, 90, 160, 0.1);
  color: #2c5aa0;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* 文章内容两列布局 */
.article-content-wrapper {
  background: #fff;
  padding: 2rem 0;
}

.article-layout {
  display: flex;
  gap: 2rem;
}

.article-main {
  flex: 3; /* 75% */
  max-width: calc(75% - 1rem);
}

.article-sidebar {
  flex: 1; /* 25% */
  position: sticky;
  top: 80px;
  height: fit-content;
}

/* 文章正文样式 - 参考RiTheme */
.article-featured-image {
  margin-bottom: 2rem;
  border-radius: 8px;
  overflow: hidden;
}

.article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.article-featured-image:hover img {
  transform: scale(1.02);
}

.article-body {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 2rem;
  text-align: left; /* 正文文本左对齐 */
}

.article-body h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eaeaea;
  color: #2c5aa0;
  text-align: left; /* 标题左对齐 */
}

.article-body h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #333;
  text-align: left; /* 子标题左对齐 */
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: block;
  margin-left: auto;
  margin-right: auto; /* 图片居中对齐 */
}

.article-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid #2c5aa0;
  background-color: #f8f9fa;
  font-style: italic;
}

.article-body code {
  font-family: 'Consolas', 'Monaco', monospace;
  background-color: #f5f5f5;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.article-body pre {
  background-color: #f5f5f5;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.article-body pre code {
  background: none;
  padding: 0;
}

/* 文章底部信息 */
.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  margin-top: 2rem;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.share-label {
  font-weight: 500;
  margin-right: 0.5rem;
}

.share-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid #eaeaea;
  border-radius: 50%;
  color: #666;
  transition: all 0.3s ease;
  text-decoration: none;
}

.share-btn:hover {
  color: #2c5aa0;
  border-color: #2c5aa0;
}

.vip-notice {
  background: linear-gradient(135deg, #ff9500, #ff6200);
  color: white;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vip-notice a {
  color: white;
  font-weight: 600;
  text-decoration: underline;
}

/* 相似文章 */
.related-articles {
  margin-top: 3rem;
}

.related-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.related-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-image {
  height: 160px;
  overflow: hidden;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-card:hover .related-image img {
  transform: scale(1.05);
}

.related-image.placeholder {
  background: linear-gradient(45deg, #f5f5f5, #eaeaea);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

.related-content {
  padding: 1rem;
}

.related-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.related-title a {
  color: #333;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-title a:hover {
  color: #2c5aa0;
}

.related-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #999;
}

/* 侧边栏样式 */
.sidebar-section {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.sidebar-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  background: #f8f9fa;
  border-bottom: 1px solid #eaeaea;
}

.toggle-icon {
  font-size: 0.8rem;
  color: #666;
  transition: transform 0.3s ease;
}

/* 分类导航下拉 */
.category-dropdown {
  max-height: 400px;
  overflow-y: auto;
}

.category-item {
  display: block;
  padding: 0.8rem 1.2rem;
  color: #666;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
}

.category-item:hover {
  background: #f8f9fa;
  color: #2c5aa0;
  padding-left: 1.5rem;
}

.category-item.active {
  background: #f0f7ff;
  color: #2c5aa0;
  font-weight: 500;
}

/* 最新文章 */
.latest-articles {
  /* 移除高度限制，允许所有文章显示 */
}

.latest-item {
  display: flex;
  gap: 0.8rem;
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
}

.latest-item:hover {
  background: #f8f9fa;
}

.latest-item:last-child {
  border-bottom: none;
}

.latest-image {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.latest-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.latest-image.placeholder {
  background: linear-gradient(45deg, #f5f5f5, #eaeaea);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

.latest-content {
  flex: 1;
}

.latest-title {
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0 0 0.3rem 0;
}

.latest-title a {
  color: #333;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-title a:hover {
  color: #2c5aa0;
}

.latest-date {
  font-size: 0.8rem;
  color: #999;
}

/* 二维码 */
.qr-code {
  padding: 1.2rem;
  text-align: center;
}

.qr-code img {
  width: 150px;
  height: auto; /* 自动按比例调整高度 */
  border-radius: 8px;
  margin-bottom: 0.8rem;
  max-width: 100%; /* 确保在小屏幕上不会溢出 */
}

.qr-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

/* 关于我们页面样式 */
.td-cover-block .text-center {
  text-align: center;
}

.td-box {
  text-align: left; /* 整体内容左对齐 */
}

.td-box img {
  display: block;
  margin: 0 auto; /* 图片居中 */
  max-width: 200px; /* 限制二维码大小 */
  height: auto;
}

.td-box h1 {
  text-align: center; /* 标题居中 */
  margin-bottom: 2rem;
}

/* 针对关于我们页面的特定样式 */
#td-block-1 {
  text-align: left; /* 内容左对齐 */
  max-width: 800px;
  margin: 0 auto; /* 容器居中 */
  padding: 0 20px;
}

#td-block-1 img {
  margin: 0 auto 2rem; /* 图片居中并添加下方间距 */
  display: block;
}

#td-block-1 p {
  margin-bottom: 1.5rem; /* 段落间距 */
  line-height: 1.6;
}

/* 广告位样式 */
.article-ad-container {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  border: 1px solid #eaeaea;
}

.ad-banner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ad-content {
  text-align: center;
}

.ad-image {
  display: inline-block;
}

.ad-image a {
  display: block;
  text-decoration: none;
}

.ad-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ad-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 侧边栏广告位样式 */
.sidebar-ad-container {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #eaeaea;
}

.sidebar-ad {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-ad .ad-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-ad img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.ad-text {
  text-align: center;
}

.ad-text h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: #333;
}

.ad-text p {
  margin: 0 0 1rem 0;
  color: #666;
  line-height: 1.5;
}

.ad-btn {
  display: inline-block;
  padding: 8px 16px;
  background: #2c5aa0;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.ad-btn:hover {
  background: #1e3d72;
}

/* 侧边栏广告位样式 */
.sidebar-ad-container {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #eaeaea;
}

.sidebar-ad {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-ad .ad-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-ad img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.ad-text {
  text-align: center;
}

.ad-text h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: #333;
}

.ad-text p {
  margin: 0 0 1rem 0;
  color: #666;
  line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .article-layout {
    flex-direction: column;
  }
  
  .article-main, .article-sidebar {
    max-width: 100%;
  }
  
  .article-sidebar {
    position: static;
    margin-top: 2rem;
  }
  
  .related-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  
  /* 移动端广告位适配 */
  .ad-content {
    flex-direction: column;
    text-align: center;
  }
  
  .ad-image img {
    width: 100% !important;
    height: auto;
  }
  
  .sidebar-ad img {
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 2.2rem;
  }
  
  .page-description {
    font-size: 1rem;
  }
  
  .filter-nav .container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .filter-tabs {
    width: 100%;
    padding-bottom: 0;
  }
  
  .filter-options {
    width: 100%;
    margin-top: 0.5rem;
  }
  
  .list-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .list-info {
    margin-bottom: 1rem;
  }
  
  .article-title {
    font-size: 2rem;
  }
  
  .article-meta {
    gap: 1rem;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
  
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* 文章卡片样式 - 优化RiPro风格 */
.article-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.article-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
  transform: scale(1.05);
}

.article-image.placeholder {
  background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-image.placeholder i {
  font-size: 2rem;
  color: #999;
}

.vip-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #ff9500, #ff6200);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
}

.article-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.8rem 0;
}

.article-title a {
  color: var(--text-primary);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-title a:hover {
  color: var(--primary-color);
}

.article-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.article-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* 列表页面头部样式优化 */
.list-page .module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.module-stats {
  display: flex;
  gap: 1rem;
}

.stats-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .list-hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .list-hero-title {
    font-size: 2rem;
  }
  
  .list-hero-subtitle {
    font-size: 1rem;
  }
  
  .nav-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.8rem;
  }
  
  .nav-item {
    padding: 0.6rem 1rem;
  }
}

/* 列表页样式 */
.list-page-header {
  background: linear-gradient(135deg, var(--primary-color), #4178bc);
  color: white;
  padding: 3rem 0;
  margin-bottom: 0;
}

.list-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.list-description {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.list-page-content {
  padding-bottom: 3rem;
}

.list-content {
  margin-bottom: 2rem;
}

/* 主题及分类介绍栏 */
.category-intro {
  background: white;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
}

.category-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.category-icon {
  width: 60px;
  height: 60px;
  background: rgba(44, 90, 160, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.category-info {
  flex: 1;
}

.category-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}

.category-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.category-stats {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.stat-item i {
  color: var(--primary-color);
  font-size: 1rem;
}

.stat-item strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* 分类导航 */
.categories-nav {
  background: var(--bg-light);
  padding: 1.5rem 0;
  position: sticky;
  top: 60px;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

.categories-menu {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 0.5rem 0;
}

.categories-menu::-webkit-scrollbar {
  height: 4px;
}

.categories-menu::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.categories-menu::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 2px;
}

.category-nav-item {
  padding: 0.8rem 1.5rem;
  background: white;
  border-radius: 30px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-nav-item:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(44, 90, 160, 0.2);
}

.category-nav-item.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* RiPro风格分页组件 */
.ripro-pagination {
  margin-top: 2rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.ripro-pagination .pagination {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: transparent;
  border-radius: 4px;
}

.ripro-pagination .page-item {
  margin: 0;
}

.ripro-pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid #eaeaea;
  background: #fff;
  color: #666;
  transition: all 0.3s ease;
  padding: 0 12px;
}

.ripro-pagination .page-link:hover {
  background: #007cba;
  color: #fff;
  border-color: #007cba;
}

.ripro-pagination .page-item.active .page-link {
  background: #007cba;
  color: #fff;
  border-color: #007cba;
}

.ripro-pagination .page-item.disabled .page-link {
  color: #ccc;
  cursor: not-allowed;
}

.ripro-pagination .page-item.disabled .page-link:hover {
  background: #fff;
  color: #ccc;
  border-color: #eaeaea;
}

/* 列表页4列布局 - 每行4个卡片，共5行显示20篇文章 - RiPro风格 */
.list-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* 卡片容器 - RiPro瀑布流风格 */
.list-grid .article-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 响应式布局：大屏幕显示4列 */
@media (min-width: 1200px) {
  .list-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 中等屏幕显示3列 */
@media (max-width: 1199px) and (min-width: 992px) {
  .list-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 平板显示2列 */
@media (max-width: 991px) and (min-width: 768px) {
  .list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 手机横屏显示2列 */
@media (max-width: 767px) and (min-width: 576px) {
  .list-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* 手机竖屏显示1列 */
@media (max-width: 575px) {
  .list-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* 列表页统计信息 */
.list-stats {
  background: var(--bg-light);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary-color);
}

.stats-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.stats-content i {
  color: var(--primary-color);
  font-size: 1rem;
}

.stats-content strong {
  color: var(--primary-color);
  font-weight: 600;
}

.divider {
  color: var(--border-color);
  opacity: 0.5;
}

.list-stats p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.list-stats strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* 列表页卡片特定样式 */
.list-grid .article-card {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

/* 删除重复的列表页卡片样式 - 使用上面优化的版本 */

/* RiPro风格文章统计 */
.list-grid .article-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: #999;
}

.list-grid .stat {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.list-grid .stat i {
  color: #999;
  font-size: 0.8rem;
}

/* VIP标识样式 */
.vip-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #ff9500, #ff6200);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(255, 149, 0, 0.3);
  z-index: 2;
}

/* RiPro风格查看更多按钮 */
.list-grid .read-more {
  color: #007cba;
  font-weight: 500;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.3s ease;
}

.list-grid .read-more:hover {
  color: #005a87;
}

/* 无文章提示 */
.no-articles {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 2rem;
  background: var(--bg-light);
  border-radius: var(--border-radius-lg);
  border: 2px dashed var(--border-color);
}

.no-articles i {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.no-articles h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.no-articles p {
  color: var(--text-secondary);
  margin: 0;
}

/* 文章模块中的文章卡片样式 */
.article-module .article-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-module .article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.article-module .article-image {
  height: 160px;
  overflow: hidden;
  position: relative;
}

.article-module .article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-module .article-image.placeholder {
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.article-module .article-image.placeholder i {
  font-size: 2rem;
}

.article-module .article-card:hover .article-image img {
  transform: scale(1.05);
}

.article-module .article-content {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.article-module .article-meta {
  display: flex;
  gap: 0.8rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.article-module .article-date {
  color: var(--text-muted);
}

.article-module .article-tag {
  background: var(--primary-color);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  font-size: 0.65rem;
}

.article-module .article-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.article-module .article-title a {
  color: var(--text-primary);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-module .article-title a:hover {
  color: var(--primary-color);
}

.article-module .article-excerpt {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.4;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-module .article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.article-module .article-date {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.article-module .read-more {
  color: var(--primary-color);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.3s ease;
  text-decoration: none;
}

.article-module .read-more:hover {
  color: var(--secondary-color);
}

.article-module .no-articles {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  background: var(--bg-light);
  border-radius: var(--border-radius);
}

/* 主页布局 */
.home-page main {
  padding-bottom: 1rem;
  /* 移除margin-top，因为已经在body中设置了padding-top */
}

/* 移动端调整 */
@media (max-width: 768px) {
  .home-page main {
    /* 移除margin-top，因为已经在body中设置了padding-top */
  }
}

/* 移动端添加底部内边距，避免被固定导航栏遮挡 */
@media (max-width: 767.98px) {
  .home-page main {
    padding-bottom: 70px;
  }
}

/* 最新文章卡片样式 - 增强视觉效果 */
.latest-articles .bg-light-subtle {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #e9ecef;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.latest-articles .bg-light-subtle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.latest-articles .bg-light-subtle:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.latest-articles .bg-light-subtle:hover::before {
  transform: scaleX(1);
}

/* 最新文章卡片内部布局优化 */
.latest-articles .flex-shrink-0 img {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.latest-articles .h5 a {
  color: #2c3e50;
  font-weight: 600;
  transition: color 0.3s ease;
}

.latest-articles .h5 a:hover {
  color: var(--primary-color);
}

/* 日期和查看详情布局 */
.latest-articles .d-flex.justify-content-between {
  margin-top: 0.5rem;
}

.latest-articles .text-muted.small {
  font-weight: 500;
  color: #6c757d;
}

.latest-articles .text-primary.small {
  font-weight: 500;
  transition: all 0.3s ease;
}

.latest-articles .text-primary.small:hover {
  transform: translateX(3px);
}

.latest-articles .text-primary.small i {
  transition: transform 0.3s ease;
}

.latest-articles .text-primary.small:hover i {
  transform: translateX(3px);
}

/* 文章摘要样式 */
.latest-articles .text-muted.mb-0 {
  color: #6c757d;
  line-height: 1.5;
  font-size: 0.9rem;
}

/* 页脚样式 */
.site-footer .mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-around;
  z-index: 1000;
  padding: 8px 0;
}

.site-footer .mobile-bottom-nav .nav-item {
  flex: 1;
  text-align: center;
}

.site-footer .mobile-bottom-nav .nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.site-footer .mobile-bottom-nav .nav-link i {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.site-footer .mobile-bottom-nav .nav-link span {
  font-size: 0.75rem;
}

.site-footer .mobile-bottom-nav .nav-link:hover,
.site-footer .mobile-bottom-nav .nav-link:active {
  color: var(--primary-color);
}

/* 桌面端页脚内容 */
.site-footer .footer-main {
  background: var(--bg-dark);
  color: white;
  padding: 3rem 0 1rem;
}

.site-footer .footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer .footer-section .footer-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
  position: relative;
  padding-bottom: 0.5rem;
}

.site-footer .footer-section .footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
}

.site-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer .footer-links li {
  margin-bottom: 0.6rem;
}

.site-footer .footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer .footer-links a:hover {
  color: var(--primary-color);
}

.site-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .copyright p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.site-footer .footer-social {
  display: flex;
  gap: 1rem;
}

.site-footer .footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.site-footer .footer-social a:hover {
  background: var(--primary-color);
  color: white;
}

/* 回到顶部按钮 */
.site-footer .back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.site-footer .back-to-top:hover,
.site-footer .back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.site-footer .back-to-top:hover {
  transform: translateY(-5px);
}

.site-footer .back-to-top i {
  font-size: 1rem;
}

/* 分页样式 */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.page-item {
  margin: 0;
}

.page-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: white;
  color: var(--text-primary);
  text-decoration: none;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.page-link:hover {
  background: var(--bg-light);
  color: var(--primary-color);
}

.page-item.active .page-link {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.page-item:first-child .page-link {
  border-top-left-radius: var(--border-radius);
  border-bottom-left-radius: var(--border-radius);
}

.page-item:last-child .page-link {
  border-top-right-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
}

/* RiPro风格卡片样式 */
.list-grid .article-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* RiPro风格悬停效果 */
.list-grid .article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-color: #e6f7ff;
}

.list-grid .article-card:hover .article-image img {
  transform: scale(1.05);
}

/* RiPro风格图片区域 - 4:3宽高比 */
.list-grid .article-image {
  height: 0;
  padding-bottom: 75%; /* 4:3宽高比 */
  position: relative;
  overflow: hidden;
}

.list-grid .article-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* RiPro风格卡片内容区 */
.list-grid .article-content {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* RiPro风格标题 */
.list-grid .article-title {
  margin-bottom: 0.8rem;
}

.list-grid .article-title a {
  color: #333;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
  transition: color 0.3s ease;
}

.list-grid .article-title a:hover {
  color: #007cba;
}

/* RiPro风格元信息区域 */
.list-grid .article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-size: 0.8rem;
  color: #999;
}

.list-grid .article-tag {
  background: #007cba;
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 500;
}

.list-grid .article-date {
  color: #999;
}

/* 分页导航样式 */
.pagination-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2.5rem;
  margin-bottom: 2rem;
  gap: 0.5rem;
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: #fff;
  color: #666;
  border: 1px solid #eaeaea;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pagination-btn:hover {
  background: #2c5aa0;
  color: #fff;
  border-color: #2c5aa0;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(44, 90, 160, 0.2);
}

.pagination-btn-prev {
  margin-right: 0.5rem;
}

.pagination-btn-next {
  margin-left: 0.5rem;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pagination-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0;
  background: #fff;
  color: #666;
  border: 1px solid #eaeaea;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination-number:hover {
  background: #f8f9fa;
  color: #2c5aa0;
  border-color: #2c5aa0;
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.pagination-current {
  background: #2c5aa0;
  color: #fff;
  border-color: #2c5aa0;
}

.pagination-current:hover {
  background: #1e3d6f;
  border-color: #1e3d6f;
}

.pagination-ellipsis {
  color: #999;
  padding: 0 0.5rem;
  font-size: 0.9rem;
}

/* 移动端和PC端分页导航的显示控制 */
.mobile-pagination {
  display: none;
}

.desktop-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 响应式分页设计 */
@media (max-width: 768px) {
  .mobile-pagination {
    display: flex !important;
    justify-content: center;
    align-items: center;
  }
  
  .desktop-pagination {
    display: none !important;
  }
  
  .pagination-nav {
    flex-wrap: wrap;
    margin-top: 2rem;
  }
  
  .pagination-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 0.85rem;
  }
  
  .pagination-number {
    min-width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
  
  .pagination-numbers {
    gap: 0.3rem;
  }
  
  /* 隐藏重复的下一页和上一页按钮 */
  .pagination-btn:nth-of-type(n+3) {
    display: none !important;
  }
}

/* 移动端样式修正 - 使用更高优先级 */
@media (max-width: 768px) {
  /* 广告词字体大小 */
  body .hero-badge {
    font-size: 1.3rem !important;
    margin-bottom: 0.8rem;
    padding: 0.4rem 0.8rem !important;
    align-self: center;
  }
  
  /* 搜索框间距 */
  body .search-box {
    margin-top: 0.5rem !important;
    margin-bottom: 0.7rem !important;
    justify-content: center;
  }
  
  /* 热门标签样式 */
  body .popular-tags {
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding-bottom: 0.3rem !important;
    margin-top: 0rem !important;
    gap: 0.2rem !important;
  }
  
  body .tag {
    font-size: 0.7rem !important;
    padding: 0.15rem 0.35rem !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }
  
  body .tags-label {
    margin-right: 0.5rem;
    margin-bottom: 0rem;
    font-size: 0.75rem !important;
    white-space: nowrap;
  }
  
  /* 移动端文章卡片样式 - 只显示封面和标题 */
  body .article-card,
  .article-card {
    padding: 0;
    margin-bottom: 0.8rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  body .article-card .article-content,
  .article-card .card-content {
    padding: 0.8rem !important;
  }
  
  body .article-card .article-title,
  .article-card .card-title {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.1rem !important;
  }
  
  body .article-card .article-title a,
  .article-card .card-title a {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    max-height: 4.2rem !important;
    height: 4.2rem !important;
  }
  
  /* 隐藏不需要的元素 */
  body .article-card .article-excerpt,
  body .article-card .article-stats,
  body .article-card .article-meta,
  body .article-module .article-excerpt,
  body .article-module .article-stats,
  body .article-module .article-meta,
  .article-card .card-meta {
    display: none !important;
  }
  
  /* 日期格式调整 - 保持原有样式 */
  body .article-card .article-date,
  body .article-module .article-card .article-date {
    font-size: 0.8rem !important;
    color: #999 !important;
  }
  
  /* "更多"按钮只显示箭头 */
  body .article-card .read-more,
  body .article-module .article-card .read-more {
    font-size: 0 !important;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
  }
  
  body .article-card .read-more i,
  body .article-module .article-card .read-more i {
    font-size: 0 !important;
  }
  
  body .article-card .read-more i::after,
  body .article-module .article-card .read-more i::after {
    content: "→";
    font-size: 1rem;
    color: var(--primary-color);
    display: inline-block;
  }
  
  body .article-card .read-more span,
  body .article-module .article-card .read-more span {
    display: none;
  }
  
  /* 卡片底部调整 */
  body .article-card .article-footer,
  body .article-module .article-card .article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding: 0 0.8rem 0.8rem 0.8rem;
  }
  
  /* 移动端分类名称字体大小调整 */
  body .category-intro .category-name {
    font-size: 1.3rem !important;
  }
  
  /* 确保所有分类名称都使用这个字体大小 */
  body .category-name {
    font-size: 1.3rem !important;
  }
}





/* 分页样式 */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.page-item {
  margin: 0;
}

.page-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: white;
  color: var(--text-primary);
  text-decoration: none;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.page-link:hover {
  background: var(--bg-light);
  color: var(--primary-color);
}

.page-item.active .page-link {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.page-item:first-child .page-link {
  border-top-left-radius: var(--border-radius);
  border-bottom-left-radius: var(--border-radius);
}

.page-item:last-child .page-link {
  border-top-right-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
}

/* RiPro风格卡片样式 */
.list-grid .article-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* RiPro风格悬停效果 */
.list-grid .article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-color: #e6f7ff;
}

.list-grid .article-card:hover .article-image img {
  transform: scale(1.05);
}

/* RiPro风格图片区域 - 4:3宽高比 */
.list-grid .article-image {
  height: 0;
  padding-bottom: 75%; /* 4:3宽高比 */
  position: relative;
  overflow: hidden;
}

.list-grid .article-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* RiPro风格卡片内容区 */
.list-grid .article-content {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* RiPro风格标题 */
.list-grid .article-title {
  margin-bottom: 0.8rem;
}

.list-grid .article-title a {
  color: #333;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
  transition: color 0.3s ease;
}

.list-grid .article-title a:hover {
  color: #007cba;
}

/* RiPro风格元信息区域 */
.list-grid .article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-size: 0.8rem;
  color: #999;
}

.list-grid .article-tag {
  background: #007cba;
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 500;
}

.list-grid .article-date {
  color: #999;
}

/* 分页导航样式 */
.pagination-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2.5rem;
  margin-bottom: 2rem;
  gap: 0.5rem;
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: #fff;
  color: #666;
  border: 1px solid #eaeaea;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pagination-btn:hover {
  background: #2c5aa0;
  color: #fff;
  border-color: #2c5aa0;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(44, 90, 160, 0.2);
}

.pagination-btn-prev {
  margin-right: 0.5rem;
}

.pagination-btn-next {
  margin-left: 0.5rem;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pagination-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0;
  background: #fff;
  color: #666;
  border: 1px solid #eaeaea;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination-number:hover {
  background: #f8f9fa;
  color: #2c5aa0;
  border-color: #2c5aa0;
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.pagination-current {
  background: #2c5aa0;
  color: #fff;
  border-color: #2c5aa0;
}

.pagination-current:hover {
  background: #1e3d6f;
  border-color: #1e3d6f;
}

.pagination-ellipsis {
  color: #999;
  padding: 0 0.5rem;
  font-size: 0.9rem;
}

/* 移动端和PC端分页导航的显示控制 */
.mobile-pagination {
  display: none;
}

.desktop-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 响应式分页设计 */
@media (max-width: 768px) {
  .mobile-pagination {
    display: flex !important;
    justify-content: center;
    align-items: center;
  }
  
  .desktop-pagination {
    display: none !important;
  }
  
  .pagination-nav {
    flex-wrap: wrap;
    margin-top: 2rem;
  }
  
  .pagination-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 0.85rem;
  }
  
  .pagination-number {
    min-width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
  
  .pagination-numbers {
    gap: 0.3rem;
  }
  
  /* 隐藏重复的下一页和上一页按钮 */
  .pagination-btn:nth-of-type(n+3) {
    display: none !important;
  }
}

/* 移动端样式修正 - 使用更高优先级 */
@media (max-width: 768px) {
  /* 广告词字体大小 */
  body .hero-badge {
    font-size: 1.3rem !important;
    margin-bottom: 0.8rem;
    padding: 0.4rem 0.8rem !important;
    align-self: center;
  }
  
  /* 搜索框间距 */
  body .search-box {
    margin-top: 0.5rem !important;
    margin-bottom: 0.7rem !important;
    justify-content: center;
  }
  
  /* 热门标签样式 */
  body .popular-tags {
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding-bottom: 0.3rem !important;
    margin-top: 0rem !important;
    gap: 0.2rem !important;
  }
  
  body .tag {
    font-size: 0.7rem !important;
    padding: 0.15rem 0.35rem !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }
  
  body .tags-label {
    margin-right: 0.5rem;
    margin-bottom: 0rem;
    font-size: 0.75rem !important;
    white-space: nowrap;
  }
  
  /* 移动端文章卡片样式 - 只显示封面和标题 */
  body .article-card,
  .article-card {
    padding: 0;
    margin-bottom: 0.8rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  body .article-card .article-content,
  .article-card .card-content {
    padding: 0.8rem !important;
  }
  
  body .article-card .article-title,
  .article-card .card-title {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.1rem !important;
  }
  
  body .article-card .article-title a,
  .article-card .card-title a {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    max-height: 4.2rem !important;
    height: 4.2rem !important;
  }
  
  /* 隐藏不需要的元素 */
  body .article-card .article-excerpt,
  body .article-card .article-stats,
  body .article-card .article-meta,
  body .article-module .article-excerpt,
  body .article-module .article-stats,
  body .article-module .article-meta,
  .article-card .card-meta {
    display: none !important;
  }
  
  /* 日期格式调整 - 保持原有样式 */
  body .article-card .article-date,
  body .article-module .article-card .article-date {
    font-size: 0.8rem !important;
    color: #999 !important;
  }
  
  /* "更多"按钮只显示箭头 */
  body .article-card .read-more,
  body .article-module .article-card .read-more {
    font-size: 0 !important;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
  }
  
  body .article-card .read-more i,
  body .article-module .article-card .read-more i {
    font-size: 0 !important;
  }
  
  body .article-card .read-more i::after,
  body .article-module .article-card .read-more i::after {
    content: "→";
    font-size: 1rem;
    color: var(--primary-color);
    display: inline-block;
  }
  
  body .article-card .read-more span,
  body .article-module .article-card .read-more span {
    display: none;
  }
  
  /* 卡片底部调整 */
  body .article-card .article-footer,
  body .article-module .article-card .article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding: 0 0.8rem 0.8rem 0.8rem;
  }
  
  /* 移动端分类名称字体大小调整 */
  body .category-intro .category-name {
    font-size: 1.3rem !important;
  }
  
  /* 确保所有分类名称都使用这个字体大小 */
  body .category-name {
    font-size: 1.3rem !important;
  }
}



