/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #f8f8f8;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.zt-breadcrumb a {
    color: #ffe7c0;
}
/* 夜间模式样式 */
body.night-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.night-mode .zt-card {
    background: #2d2d2d;
    color: #e0e0e0;
}

body.night-mode .zt-article-item {
    background: #2d2d2d;
    color: #e0e0e0;
}

body.night-mode .zt-article-title a {
    color: #e0e0e0;
}

body.night-mode .zt-article-title a:hover {
    color: #ff8a00;
}

body.night-mode .zt-article-desc {
    color: #b0b0b0;
}

body.night-mode .zt-widget {
    background: #2d2d2d;
}

body.night-mode .zt-sidebar-list a {
    color: #b0b0b0;
}

body.night-mode .zt-sidebar-list a:hover {
    color: #ff8a00;
}

body.night-mode .zt-tag-item {
    background: #3d3d3d;
    color: #b0b0b0;
}

body.night-mode .zt-count {
    background: #2d2d2d;
    color: #ff8a00;
}

/* 主容器 */
.zt-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 10px;
}

/* 主要内容区 */
.zt-main {
    display: flex;
    flex-wrap: wrap;
    margin: 15px 0;
}

/* 左侧内容区 */
.zt-content {
    flex: 1;
    min-width: 0;
    margin-right: 15px;
}

/* 右侧边栏 */
.zt-sidebar {
    width: 280px;
}

/* 卡片式设计 */
.zt-card {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* 标签页标题 */
.zt-tag-header {
    background: linear-gradient(to right, #ff8a00, #ff5252);
    color: white;
    padding: 15px 20px;
    margin-bottom: 0;
}

.zt-tag-header h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.zt-tag-header p {
    margin: 8px 0 0;
    opacity: 0.9;
    font-size: 13px;
}

.zt-breadcrumb {
    font-size: 12px;
    margin-top: 10px;
    color: rgba(255,255,255,0.8);
}

/* 文章数量统计 */
.zt-count {
    padding: 10px 15px;
    background: #fff;
    font-size: 13px;
    color: #ff8a00;
    font-weight: 600;
    border-radius: 4px;
    margin: 10px 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* 文章列表 */
.zt-article-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 15px;
}

.zt-article-item {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.zt-article-item:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.zt-article-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.zt-article-body {
    padding: 12px;
}

.zt-article-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
}

.zt-article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.zt-article-title a:hover {
    color: #ff8a00;
}

.zt-article-desc {
    color: #666;
    font-size: 12px;
    margin-bottom: 10px;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.3s ease;
}

.zt-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 11px;
    color: #999;
}

.zt-article-meta span {
    margin-right: 10px;
    margin-bottom: 5px;
}

/* 修复分页样式 - 确保对齐和活动状态 */
.zt-pagination {
    display: flex;
    justify-content: center;
    padding: 15px 0;
}

.zt-pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.zt-pagination li {
    margin: 2px;
}

.zt-pagination a, 
.zt-pagination .current, 
.zt-pagination b {
    display: block;
    padding: 6px 12px;
    background: #fff;
    border-radius: 3px;
    color: #666;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    font-size: 13px;
    min-width: 36px;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.zt-pagination a:hover, 
.zt-pagination .current, 
.zt-pagination b {
    background: #ff8a00;
    color: #fff;
    border-color: #ff8a00;
}

body.night-mode .zt-pagination a,
body.night-mode .zt-pagination .current,
body.night-mode .zt-pagination b {
    background: #3d3d3d;
    color: #e0e0e0;
    border-color: #555;
}

body.night-mode .zt-pagination a:hover,
body.night-mode .zt-pagination .current,
body.night-mode .zt-pagination b {
    background: #ff8a00;
    color: #fff;
    border-color: #ff8a00;
}

/* 侧边栏小部件 */
.zt-widget {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 15px;
    padding: 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.zt-widget-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ff8a00;
    color: #333;
    transition: color 0.3s ease;
}

body.night-mode .zt-widget-title {
    color: #e0e0e0;
}

/* 热门标签 */
.zt-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.zt-tag-item {
    background: #f5f5f5;
    color: #666;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.zt-tag-item:hover {
    background: #ff8a00;
    color: #fff;
}

/* 文章列表 */
.zt-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.zt-sidebar-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    transition: border-color 0.3s ease;
}

body.night-mode .zt-sidebar-list li {
    border-bottom: 1px dashed #555;
}

.zt-sidebar-list a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
    display: block;
}

.zt-sidebar-list a:hover {
    color: #ff8a00;
    padding-left: 5px;
}

/* 侧边栏图片 */
.zt-sidebar-img {
    width: 100%;
    height: auto;
    border-radius: 3px;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.zt-sidebar-img:hover {
    transform: scale(1.02);
}

/* 关注我们 */
.zt-follow {
    text-align: center;
}

.zt-follow p {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

body.night-mode .zt-follow p {
    color: #b0b0b0;
}

.zt-follow img {
    max-width: 100%;
    height: auto;
    border-radius: 3px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .zt-article-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .zt-main {
        flex-direction: column;
    }
    
    .zt-content {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .zt-sidebar {
        width: 100%;
    }
    
    .zt-article-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .zt-article-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .zt-container {
        padding: 0 8px;
    }
}

@media (max-width: 480px) {
    .zt-article-list {
        grid-template-columns: 1fr;
    }
    
    .zt-tag-header {
        padding: 12px 15px;
    }
    
    .zt-tag-header h1 {
        font-size: 18px;
    }
}