/**
 *Copyright (C), 2025, GOSUN CL
 *file: list.css
 *brief: 视评图说主题
 *Theme URI: https://faq7777.com
 *author: 视评图说
 *date: 2025年7月7日
 *version: 7.7.0
 */

/* 个人修复：定义全局主题色变量 */
:root {
  --spt-primary: #007bff;
  --spt-border: #ddd;
  --spt-text: #333;
  --spt-text-light: #666;
  --spt-text-gray: #999;
  --spt-bg: #fff;
  --spt-bg-hover: #f5f5f5;
}

/* 个人修复：添加全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 列表页模块样式 */

/* 主容器 */
#wrapper {
  position: relative;
  min-height: 600px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 文章列表 */
#content {
  margin-bottom: 30px;
}

/* 文章项 */
.post-item {
  margin-bottom: 25px;
  padding: 20px;
  background-color: var(--spt-bg);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 文章标题 */
.post-item h2 {
  margin: 0 0 15px;
  font-size: 20px;
  font-weight: normal;
}

.post-item h2 a {
  color: var(--spt-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-item h2 a:hover {
  color: var(--spt-primary);
}

/* 文章摘要 */
.post-item .excerpt {
  margin: 0 0 15px;
  color: var(--spt-text-light);
  line-height: 1.6;
}

/* 文章元信息 */
.post-item .meta {
  color: var(--spt-text-gray);
  font-size: 14px;
  margin-bottom: 15px;
}

/* 文章缩略图 */
.post-item .thumbnail {
  margin-bottom: 15px;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 16/9;
}

/* 个人修复：优化缩略图图片约束 */
.post-item .thumbnail img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-item:hover .thumbnail img {
  transform: scale(1.05);
}

/* 分页 */
.pagination {
  margin-top: 30px;
  text-align: center;
}

.pagination ul {
  display: inline-block;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination li {
  display: inline;
  margin: 0 5px;
}

.pagination a {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--spt-bg);
  border: 1px solid var(--spt-border);
  border-radius: 4px;
  color: var(--spt-text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background-color: var(--spt-primary);
  color: var(--spt-bg);
  border-color: var(--spt-primary);
}

/* 个人修复：优化分页样式 */
.pagination .current {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--spt-primary);
  border: 1px solid var(--spt-primary);
  border-radius: 4px;
  color: var(--spt-bg);
  cursor: default;
}

.pagination .disabled {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--spt-bg-hover);
  border: 1px solid var(--spt-border);
  border-radius: 4px;
  color: var(--spt-text-gray);
  cursor: not-allowed;
  transition: none;
}

/* 侧边栏 */
#sidebar {
  margin-top: 20px;
}

/* 小工具 */
.widget {
  margin-bottom: 30px;
  padding: 20px;
  background-color: rgba(255,255,255,0.8);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

/* 个人修复：优化小工具悬浮效果 */
.widget:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.widget h3 {
  margin: 0 0 15px;
  font-size: 16px;
  font-weight: normal;
  color: var(--spt-text);
  border-bottom: 2px solid var(--spt-primary);
  padding-bottom: 10px;
}

/* 个人修复：合并响应式规则，精简代码 */
@media (max-width: 1024px) {
  #wrapper {
    max-width: 100%;
    padding: 0 15px;
  }

  .post-item {
    padding: 18px;
  }

  .post-item h2 {
    font-size: 19px;
  }
}

@media (max-width: 768px) {
  .post-item {
    padding: 15px;
  }

  .post-item h2 {
    font-size: 18px;
  }

  .widget {
    padding: 15px;
  }

  .pagination a,
  .pagination .current,
  .pagination .disabled {
    padding: 6px 12px;
    font-size: 14px;
  }
}
