/* 首页布局样式 */
.index-section {
    margin-bottom: 2rem;
}

/* 栏目标题样式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #2c3e50;
    margin: 0;
}

.section-link {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.section-link:hover {
    color: #3498db;
}

/* 文章列表样式 */
.article-list {
    margin-bottom: 1rem;
}

.article-item {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.article-item:hover {
    background-color: #f8f9fa;
}

.article-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.article-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

.article-excerpt {
    color: #4a4a4a;
    margin-top: 0.5rem;
    line-height: 1.5;
}

/* 图片文章样式 */
.article-with-image {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.article-image {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .container-padding {
        padding: 0 15px !important;
    }

    .article-with-image {
        flex-direction: column;
    }

    .article-image {
        width: 100%;
        height: 150px;
    }

    .article-title {
        font-size: 1rem;
    }

    .article-excerpt {
        font-size: 0.9rem;
    }
}

/* 栅格系统优化 */
.row {
    margin-right: -10px;
    margin-left: -10px;
}

.col-md-4 {
    padding-right: 10px;
    padding-left: 10px;
}

/* 文章卡片样式 */
.article-card {
    height: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 截断文本 */
.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 自定义间距 */
.custom-gap {
    gap: 1.5rem;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.article-item {
    animation: fadeIn 0.5s ease-out;
}

/* 调整主容器的上边距 */
.main-container {
  width: 100%;
  max-width: 100%;
  padding: 20px 15px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* 内容区域容器 - 控制最大宽度但保持响应式 */
.main-container .featured-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 调整头条区域的内边距 - 确保不影响宽度，统一间距 */
.featured-section {
  margin-bottom: 1.5rem !important;
  padding: 0;
  background: none;
  border-radius: 0;
  width: 100%;
  box-sizing: border-box;
}

/* 内容网格布局 - 统一间距 */
.content-grid {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* 确保三列的间距和宽度一致 */
.content-grid > .row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  margin-left: calc(var(--bs-gutter-x) * -0.5) !important;
  margin-right: calc(var(--bs-gutter-x) * -0.5) !important;
  display: flex !important;
  flex-wrap: wrap !important;
}

/* 重置全局样式对content-grid内列的影响，确保宽度一致 */
.content-grid > .row > .col-md-8,
.content-grid > .row > .col-md-4 {
  padding-left: calc(var(--bs-gutter-x) * 0.5) !important;
  padding-right: calc(var(--bs-gutter-x) * 0.5) !important;
  box-sizing: border-box !important;
  position: relative;
}

/* 确保列宽精确，使用Bootstrap标准比例但考虑间距 */
@media (min-width: 768px) {
  .content-grid > .row > .col-md-8 {
    flex: 0 0 auto;
    width: 66.66666667% !important;
    max-width: 66.66666667% !important;
  }

  .content-grid > .row > .col-md-4 {
    flex: 0 0 auto;
    width: 33.33333333% !important;
    max-width: 33.33333333% !important;
  }
}

.row.g-4 {
  --bs-gutter-x: 15px;
  --bs-gutter-y: 15px;
}

/* 大卡片样式（书评和观点） */
.feature-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 0;
}

.feature-item {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.feature-item h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-item h4 a {
  color: #333;
  text-decoration: none;
}

.feature-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* 简单列表样式（文艺、译林、文史） */
.list-section {
  margin-bottom: 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eee;
}

.section-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.simple-list {
  display: flex;
  flex-direction: column;
}

.simple-item {
  padding: 8px 0;
  border-bottom: 1px dotted #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.simple-item a {
  flex: 1;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  margin-right: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 图文列表样式（论文和书库） */
.media-section {
  margin-bottom: 20px;
}

.media-grid {
  display: flex;
  flex-direction: column;
}

.media-item {
  display: flex;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px dotted #eee;
  gap: 12px;
}

.media-img {
  width: 60px;
  height: 45px;
  border-radius: 4px;
  overflow: hidden;
}

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

.media-content {
  flex: 1;
}

.media-content a {
  display: block;
  color: #333;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  text-decoration: none;
}

/* 通用样式 */
.more-link {
  color: #999;
  font-size: 13px;
  text-decoration: none;
}

.meta {
  color: #999;
  font-size: 12px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .feature-card {
    margin-bottom: 15px;
  }
  
  .media-img {
    width: 50px;
    height: 38px;
  }
}

/* 统一三列的宽度和间距 */
.book-section.featured-content-wrapper,
.book-library-section,
.content-grid {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* 统一三列之间的间距 */
.featured-section {
  margin-bottom: 1.5rem !important;
}

.book-library-section {
  margin-bottom: 1.5rem !important;
  margin-top: 0 !important;
}

.content-grid {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* 统一内容宽度包装器 - 确保内部内容宽度一致 */
.featured-content-wrapper {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

/* 确保内部row使用统一的间距 */
.book-section.featured-content-wrapper .row,
.book-library-section .row,
.content-grid > .row {
  --bs-gutter-x: 1.5rem;
  margin-left: calc(var(--bs-gutter-x) * -0.5);
  margin-right: calc(var(--bs-gutter-x) * -0.5);
  width: calc(100% + var(--bs-gutter-x));
}

/* 确保内部列使用统一的padding */
.book-section.featured-content-wrapper [class*="col-"],
.book-library-section [class*="col-"],
.content-grid [class*="col-"] {
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  padding-right: calc(var(--bs-gutter-x) * 0.5);
}

/* 新书和书讯板块样式 - 确保宽度与其他列一致 */
.book-section {
  display: flex;
  gap: 0;
  height: 360px;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

/* 确保book-section.featured-content-wrapper使用与其他两列相同的宽度和间距 */
.book-section.featured-content-wrapper {
  --bs-gutter-x: 1.5rem;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* 确保book-section内的列使用统一的间距 */
.book-section.featured-content-wrapper > [class*="col-"] {
  padding-left: calc(var(--bs-gutter-x) * 0.5) !important;
  padding-right: calc(var(--bs-gutter-x) * 0.5) !important;
  box-sizing: border-box !important;
}

.new-book {
  flex: 0 0 60%;
}

.main-feature {
  height: 100%;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.main-feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.main-feature .feature-img {
  transition: transform 0.3s ease;
}

.main-feature:hover .feature-img {
  transform: scale(1.05);
}

.feature-img {
  width: 200px;
  height: 330px;
  object-fit: contain;
  flex-shrink: 0;
}

.feature-content {
  flex-grow: 1;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  justify-content: flex-start;
  overflow-y: auto;
}

.feature-category {
  display: inline;
  position: relative;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  z-index: 1;
  width: fit-content;
  padding: 3px 10px;
  border-radius: 3px;
  background: #1e88e5;
  box-shadow: 0 2px 4px rgba(30, 136, 229, 0.2);
}

.feature-title {
  font-size: 20px;
  margin: 12px 0;
  line-height: 1.4;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-weight: 700;
}

.feature-details {
  margin: 10px 0;
  padding: 10px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: auto;
}

.feature-detail-item {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.5;
}

.feature-detail-item:last-child {
  margin-bottom: 0;
}

.feature-detail-item .detail-label {
  color: #999;
  min-width: 70px;
  font-weight: 500;
}

.feature-detail-item .detail-value {
  color: #333;
  flex: 1;
}

.feature-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 10px;
  margin-top: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
  text-align: justify;
  text-justify: inter-ideograph;
}

.feature-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #999;
  font-size: 13px;
  padding-bottom: 10px;
}


/* 其他板块的样式... */

/* 修改新书标题样式 */
.feature-title a {
  color: #333;
  text-decoration: none;
  font-weight: 700; /* 加粗 */
  transition: color 0.2s ease;
}

.feature-title a:hover {
  color: #1e88e5; /* 鼠标悬停时变蓝色 */
}

/* 修改书讯列表样式 */
.news-item .item-title {
  font-weight: 700; /* 加粗标题 */
  transition: color 0.2s ease;
}

.news-link:hover .item-title {
  color: #1e88e5; /* 鼠标悬停时标题变蓝色 */
}

.news-link:hover .item-meta {
  color: #999; /* 鼠标悬停时作者保持原色 */
}

/* 确保作者信息不变色 */
.news-link .item-meta {
  color: #999;
}

/* 调整整体间距 - 已在上方统一设置 */

.row.g-4 {
  --bs-gutter-x: 15px;
  --bs-gutter-y: 15px;
}

/* 调整卡片内边距 */
.content-card, .list-card, .media-card {
  padding: 12px;
  margin-bottom: 0;
}

/* 调整标题区域 */
.card-header {
  margin-bottom: 12px;
  padding-bottom: 8px;
}

/* 调整主要内容项 */
.main-item {
  margin-bottom: 12px;
  padding-bottom: 12px;
}

.main-item h4 {
  margin-bottom: 6px;
}

/* 调整列表间距 */
.sub-list, .list-content {
  gap: 8px;
}

.sub-item, .list-item {
  padding: 6px 0;
  list-style: none; /* 移除列表项前面的点 */
}

/* 调整媒体列表 */
.media-list {
  gap: 12px;
}

.media-item {
  padding: 8px;
}

/* 文艺、译林、文史的列表样式优化 */
.list-card {
  padding: 12px;
}

.list-content {
  padding: 0;
}

.list-item {
  padding: 6px 0;
}

.list-item a {
  margin-bottom: 2px;
}

/* 论文和书库部分优化 */
.media-card {
  padding: 12px;
}

.media-list {
  padding: 0;
}

.media-item {
  margin-bottom: 0;
}

/* 调整书库部分 */
.book-section {
  padding: 12px;
}

.book-list {
  gap: 12px;
}

/* 调整内容显示 */
.item-excerpt {
  margin-bottom: 8px;
  -webkit-line-clamp: 2;
}

/* 调整标题大小 */
.card-header h3 {
  font-size: 15px;
}

/* 调整列表项标题 */
.sub-item a, .list-item a {
  font-size: 13px;
  line-height: 1.4;
}

/* 调整信息样式 */
.item-info {
  font-size: 12px;
  margin-top: 2px;
}

/* 优化响应式布局 */
@media (max-width: 768px) {
  .content-grid {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  
  /* 确保响应式下三列间距也一致 */
  .featured-section {
    margin-bottom: 1.5rem !important;
  }
  
  .book-library-section {
    margin-bottom: 1.5rem !important;
  }
  
  .row.g-4 {
    --bs-gutter-x: 10px;
    --bs-gutter-y: 10px;
  }
}

/* 添加首条内容的样式 */
.first-item {
  padding: 0 0 12px 0;
  margin-bottom: 12px;
  border-bottom: 1px solid #eee;
  min-height: 90px; /* 确保最小高度，容纳两行内容 */
  display: flex;
  flex-direction: column;
}

.first-item .first-title {
  display: block;
  color: #333;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  text-decoration: none;
  line-height: 1.4;
}

.first-excerpt {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin: 0 0 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 限制为两行 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: justify;
  text-justify: inter-ideograph;
  height: 40px; /* 固定高度确保两行 */
  min-height: 40px;
  max-height: 40px; /* 限制最大高度 */
}

/* 确保所有板块的首条内容保持一致的高度 */
.content-section .first-excerpt {
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  margin-bottom: 6px;
  overflow: hidden;
}

/* 调整其他列表项的样式 */
.list-item {
  padding: 6px 0;
  border-bottom: 1px dotted #eee;
  list-style: none; /* 移除列表项前面的点 */
}

.list-item:last-child {
  border-bottom: none;
}

/* 调整内容板块样式 */


.content-section:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* 调整section-header样式以匹配modern-card */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.section-header h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: #333;
  position: relative;
  padding-left: 12px;
}

.section-header h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background: #1e88e5;
  border-radius: 2px;
}

/* 调整列表内容样式 */
.list-content {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none; /* 移除列表项前面的点 */
}

/* 修改列表项样式 */
.list-item {
  padding: 3px 0;
  border-bottom: 1px dotted #eee;
  list-style: none; /* 移除列表项前面的点 */
}

/* 移除最后一个列表项的特殊样式，让它保持边框 */
.list-item:last-child {
  padding-bottom: 3px; /* 保持与其他项目相同的内边距 */
  border-bottom: 1px dotted #eee; /* 保持底部边框 */
}

/* 调整首条内容的样式 */
.first-item {
  padding: 0 0 6px 0;
  margin-bottom: 6px;
  border-bottom: 1px solid #eee;
  min-height: 85px;
}

/* 调整列表项间距 */
.sub-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.list-item {
  padding: 3px 0;
  border-bottom: 1px dotted #eee;
  list-style: none; /* 移除列表项前面的点 */
}

.list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* 调整列表项内部间距 */
.list-item a {
  margin-bottom: 2px;
}

.item-info {
  font-size: 12px;
  line-height: 1.2;
}




/* 调整内容间距 */
.main-content {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.main-content h4 {
  font-size: 15px;
  margin-bottom: 6px;
}

.content-excerpt {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: justify;
}

.sub-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.list-item {
  padding: 4px 0;
  border-bottom: 1px dotted #eee;
  gap: 2px;
  list-style: none; /* 移除列表项前面的点 */
}



.section-header {
  margin-bottom: 12px;
}

/* 添加问答板块样式 */
.qa-section {
  margin-bottom: 15px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 12px;
}

.qa-content {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 10px 12px;
  transition: all 0.3s ease;
}

.qa-content:hover {
  background: #f0f2f5;
}

.qa-header {
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 0;
}

.qa-title {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin: 0;
  line-height: 1.4;
  flex: 1;
}

.toggle-icon {
  font-size: 18px;
  color: #1e88e5;
  transform: rotate(90deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-top: 2px;
}

.qa-answer {
  display: none;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.answer-content {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  text-align: justify;
  margin-bottom: 8px;
  padding: 0;
}

.answer-meta {
  font-size: 12px;
  color: #888;
  padding-top: 6px;
  margin-top: 6px;
  border-top: 1px dashed rgba(0,0,0,0.08);
}

/* 展开状态 */
.qa-section.expanded .toggle-icon {
  transform: rotate(-90deg);
}

.qa-section.expanded .qa-content {
  background: #f0f2f5;
}

/* 添加过渡动画 */
.qa-answer {
  transition: all 0.3s ease-in-out;
}

/* section-header样式 */
.qa-section .section-header {
  margin-bottom: 10px;
  padding-bottom: 8px;
}

.qa-section .section-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  position: relative;
  padding-left: 12px;
}

.qa-section .section-header h3:before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background: #1e88e5;
  border-radius: 2px;
}

/* 调整内容板块的间距 */
.content-section {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px;
  height: auto;
  margin: 0;
}

/* 调整问答板块间距 */
.qa-section {
  margin-bottom: 12px;
  padding: 10px;
}

/* 调整行间距 */
.row.g-3 {
  --bs-gutter-x: 12px;
  --bs-gutter-y: 12px;
}

.mt-3 {
  margin-top: 12px !important;
}

/* 调整列表内容间距 */
.list-content {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* 调整最后一个列表项的样式 */
.list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* 调整问答内容区域 */
.qa-content {
  padding: 8px 10px;
  margin: 0;
}

/* 调整section-header的间距 */
.section-header {
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #eee;
}

/* 调整首条内容的间距 */
.first-item {
  padding: 0 0 6px 0;
  margin-bottom: 6px;
  border-bottom: 1px solid #eee;
  min-height: 85px;
}

.first-title {
  margin-bottom: 4px;
}

.first-excerpt {
  margin: 0 0 4px 0;
  height: 38px;
  min-height: 38px;
  max-height: 38px;
}

/* 调整列表项间距 */
.list-item {
  padding: 3px 0;
  border-bottom: 1px dotted #eee;
  list-style: none; /* 移除列表项前面的点 */
}

.list-item a {
  margin-bottom: 1px;
}

/* 调整右侧栏间距 */


/* 调整书库列表间距 */
.book-list {
  gap: 8px;
}

.book-item {
  padding: 8px;
  gap: 8px;
}

/* 调整通讯列表间距 */
.news-list {
  gap: 6px;
}

.news-item {
  padding: 8px;
}

/* 调整问答板块样式 */
.content-section.qa-section {
  margin: 0;
}

/* 调整行间距 */
.row.g-3 {
  --bs-gutter-y: 12px;
}

.mt-3 {
  margin-top: 12px !important;
}

/* 调整问答内容区域 */
.qa-content {
  padding: 8px 10px;
  margin: 0;
}

/* 调整section-header的间距 */
.qa-section .section-header {
  margin-bottom: 8px;
  padding-bottom: 6px;
}

/* 修改新书和书讯的响应式布局 */
@media (max-width: 768px) {
  .featured-content-wrapper {
    margin: 0 -15px;
    padding-left: 1rem;
    padding-right: 1rem;
    width: calc(100% + 30px);
  }
  
  .book-section {
    flex-direction: column;
    height: auto;
    gap: 15px;
    padding: 10px;
  }

  .new-book {
    flex: none;
    width: 100%;
  }

  .main-feature {
    flex-direction: column;
    align-items: center;
    padding: 12px;
    gap: 15px;
    height: auto;
  }

  .feature-img {
    width: 160px;
    height: 220px;
    margin: 0 auto;
  }

  .feature-content {
    width: 100%;
    height: auto;
    text-align: center;
  }

  .feature-category {
    display: inline-block;
    margin: 0 auto;
  }

  .feature-title {
    font-size: 18px;
    margin: 10px 0;
  }

  .feature-desc {
    text-align: left;
    margin: 10px 0;
    -webkit-line-clamp: 3;
  }

  .feature-meta {
    justify-content: center;
    padding-bottom: 0;
  }

  /* 书讯列表响应式调整 */
  .news-list {
    flex: none;
    width: 100%;
  }

  .news-items {
    max-height: none;
  }

  .news-item {
    padding: 8px 12px;
  }

  .item-title {
    font-size: 14px;
  }

  .item-meta {
    font-size: 12px;
  }
}

/* 针对更小屏幕的优化 */
@media (max-width: 480px) {
  .feature-img {
    width: 140px;
    height: 190px;
  }

  .feature-title {
    font-size: 16px;
  }

  .feature-desc {
    font-size: 13px;
    -webkit-line-clamp: 3;
  }

  .news-header {
    padding: 10px 12px;
  }
}

/* 左列内容样式 */
.content-section {
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

/* 修改列表项标题样式 */
.list-item a {
  color: #333 !important; /* 强制使用黑色 */
  font-weight: 700; /* 加粗 */
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 2px;
}

/* 修改书库图片尺寸 */
.book-cover {
  width: 45px; /* 减小宽度 */
  height: 60px; /* 减小高度 */
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

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

/* 调整书库列表项布局 */
.book-item {
  padding: 8px;
  gap: 8px;
  display: flex;
  align-items: center;
}

.book-info {
  flex: 1;
}

.book-info a {
  color: #333 !important; /* 强制使用黑色 */
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}

/* 修改通讯板块的样式 */
.news-item a {
  color: #333 !important; /* 强制使用黑色 */
  font-weight: 700; /* 加粗 */
  font-size: 14px;
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}



/* 添加书评、观点、译林、文艺的悬停效果 */
/* 首条内容的悬停效果 */
.first-item .first-title {
  transition: color 0.2s ease;
}

.first-item .first-title:hover {
  color: #1e88e5;
}

/* 列表项的悬停效果 */
.list-item a {
  color: #333 !important;
  font-weight: 700;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 2px;
  transition: color 0.2s ease;
}

.list-item a:hover {
  color: #1e88e5 !important;
}

/* 确保所有板块的链接悬停效果一致 */
.content-section .first-title:hover,
.content-section .list-item a:hover,


/* 修改书讯卡片标题样式 */
.card-title {
    font-size: 14px;
    line-height: 1.4;
    height: 20px; /* 设置固定高度 */
    overflow: hidden;
    margin-bottom: 8px;
}

.card-title a {
    color: #333 !important;
    font-weight: 700;
    text-decoration: none;
    display: block;
    white-space: nowrap; /* 强制一行显示 */
    overflow: hidden;
    text-overflow: ellipsis; /* 超出部分显示省略号 */
}

.card-title a:hover {
    color: #1e88e5 !important;
} 
