/* 归档页、分类页、标签页、作者页、搜索页样式 */

/* 确保网站页脚不受影响 */
#colophon.site-footer,
.site-footer#colophon {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
}

/* 页面标题区域 */
.archive-header,
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 60px 20px;
    margin-bottom: 40px;
    text-align: center;
    border-radius: 0 0 12px 12px;
}

.archive-title,
.page-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.archive-description,
.page-description {
    font-size: 18px;
    opacity: 0.9;
    margin-top: 10px;
}

/* 文章列表容器 */
.archive .post-list,
.search .post-list,
.author .post-list {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 文章卡片 */
.post-item {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 文章标题 */
.post-item .entry-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-item .entry-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-item .entry-title a:hover {
    color: #667eea;
}

/* 文章元信息 */
.post-item .entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.post-item .entry-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.post-item .entry-meta a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-item .entry-meta a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* 文章缩略图 */
.post-item .post-thumbnail {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.post-item .post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

/* 文章摘要 */
.post-item .entry-content {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}

.post-item .entry-content p {
    margin-bottom: 15px;
}

/* 阅读更多链接 */
.post-item .read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.post-item .read-more:hover {
    color: #764ba2;
    gap: 10px;
}

.post-item .read-more::after {
    content: "→";
    transition: transform 0.3s ease;
}

.post-item .read-more:hover::after {
    transform: translateX(5px);
}

/* 无文章提示 */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 18px;
}

/* 分页样式 */
.pagination {
    margin-top: 60px;
    text-align: center;
    padding: 0 20px;
}

.pagination .nav-links {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #fff;
}

.pagination .page-numbers:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.pagination .page-numbers.current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
}

.pagination .page-numbers.dots {
    border: none;
    cursor: default;
}

.pagination .page-numbers.dots:hover {
    transform: none;
    box-shadow: none;
}

/* 作者信息卡片 */
.author-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 3px solid #667eea;
}

.author-details h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.author-description {
    color: #666;
    line-height: 1.7;
    margin-top: 10px;
}

/* 搜索表单 */
.search-form {
    max-width: 600px;
    margin: 0 auto 40px;
    display: flex;
    gap: 10px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: #667eea;
}

.search-form input[type="submit"] {
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .archive-header,
    .page-header {
        padding: 40px 15px;
    }

    .archive-title,
    .page-title {
        font-size: 28px;
    }

    .archive-description,
    .page-description {
        font-size: 16px;
    }

    .post-item {
        padding: 20px;
    }

    .post-item .entry-title {
        font-size: 22px;
    }

    .post-item .entry-content {
        font-size: 15px;
    }

    .author-info {
        flex-direction: column;
        text-align: center;
    }

    .author-avatar {
        margin: 0 auto;
    }

    .search-form {
        flex-direction: column;
    }

    .search-form input[type="submit"] {
        width: 100%;
    }
}

