/* ======================================================
   V3.7 分类概览页面样式 — /categories/ 首页
   ====================================================== */

/* 概览页容器 */
.categories-container {
    padding: 24px;
    background: #fff;
    border-radius: 8px;
    min-height: 400px;
}

.categories-container .page-title {
    font-size: 26px;
    font-weight: 700;
    color: #2C3E50;
    margin: 0 0 8px 0;
}

.categories-container .page-description {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0 0 24px 0;
}

/* 分类网格 */
.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* 分类卡片 */
.category-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px 24px;
    transition: box-shadow 0.2s;
}

.category-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.category-card .category-title {
    font-size: 20px;
    font-weight: 600;
    color: #2C3E50;
    margin: 0 0 6px 0;
}

.category-card .category-title .category-icon {
    margin-right: 6px;
}

.category-card .category-description {
    font-size: 13px;
    color: #95a5a6;
    margin: 0 0 14px 0;
}

.category-card .category-posts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-card .category-post-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
}

.category-card .category-post-item a {
    flex: 1;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-card .category-post-item a:hover {
    color: #8E44AD;
}

.category-card .category-post-item .post-date {
    font-size: 12px;
    color: #bbb;
    flex-shrink: 0;
}

.category-card .category-post-item .reading-time {
    font-size: 11px;
    color: #ddd;
    flex-shrink: 0;
}

/* 概览页底部 */
.category-card .category-more {
    display: inline-block;
    margin-top: 12px;
    color: #8E44AD;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.category-card .category-more:hover {
    text-decoration: underline;
}

/* ======================================================
   V3.7 分类页面样式 — 单分类文章列表卡片
   用于 /categories/<name>/ 页面中间栏
   ====================================================== */

/* 单分类页面容器 */
.category-single {
    padding: 24px;
    background: #fff;
    border-radius: 8px;
    min-height: 400px;
}

.category-single .page-title {
    font-size: 26px;
    font-weight: 700;
    color: #2C3E50;
    margin: 0 0 8px 0;
}

.category-single .page-description {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0 0 16px 0;
}

.category-stats {
    font-size: 13px;
    color: #95a5a6;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

/* 文章卡片列表 */
.category-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 文章卡片 — 四行结构 */
.article-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 20px 24px;
    transition: box-shadow 0.2s;
}

.article-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 第一行：文章标题 */
.article-card .article-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.article-card .article-title a {
    color: #2C3E50;
    text-decoration: none;
}

.article-card .article-title a:hover {
    color: #8E44AD;
}

/* 第二行：元信息 */
.article-card .article-meta {
    font-size: 13px;
    color: #95a5a6;
    margin-bottom: 10px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.article-card .article-meta time {
    color: #7f8c8d;
}

.article-card .reading-time {
    color: #bdc3c7;
    font-size: 12px;
}

/* 第三行：分类 + 标签 */
.article-card .category-tags {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.article-card .category-tags .category-label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.article-card .category-tags .tag-label {
    background: #f0eef8;
    color: #8E44AD;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
}

/* 第四行：摘要 + 阅读全文 */
.article-card .article-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.article-card .read-more-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.article-card .read-more-btn:hover {
    opacity: 0.9;
}

/* 空分类友好提示 */
.empty-category-message {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 2px dashed #ddd;
}

.empty-category-message p {
    font-size: 18px;
    color: #999;
    margin: 0 0 20px 0;
}

.empty-category-message .back-to-categories {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.empty-category-message .back-to-categories:hover {
    opacity: 0.9;
}

/* 概览页空分类 */
.category-empty {
    font-size: 13px;
    color: #bbb;
    padding: 8px 0;
    font-style: italic;
}

/* 概览页卡片底部分类元信息 */
.category-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

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

.category-card-empty {
    opacity: 0.85;
    border-color: #e0e0e0 !important;
}

.category-card-empty .category-title {
    color: #aaa !important;
}
