/* ========== 技术资讯列表页样式 - 目录风格 ========== */

/* ========== Banner ========== */
.tech-banner {
    padding: 4rem 0 3rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.tech-banner .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.tech-banner .banner-breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

.tech-banner .banner-breadcrumb a {
    color: #64748b;
    text-decoration: none;
}

.tech-banner .banner-breadcrumb a:hover {
    color: #06b6d4;
}

.tech-banner .banner-breadcrumb span {
    color: #ffffff;
}

.tech-banner .banner-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.tech-banner .banner-desc {
    font-size: 1rem;
    color: #64748b;
}

.tech-banner .gradient-text {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ========== 分类筛选 ========== */
.tech-categories {
    padding: 1.5rem 0;
    background: #0f172a;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.tech-categories .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.categories-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cat-link {
    padding: 0.5rem 1.25rem;
    background: #1e293b;
    border-radius: 40px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.cat-link:hover,
.cat-link.active {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: white;
}

.search-box form {
    display: flex;
    gap: 0.5rem;
}

.search-box input {
    padding: 0.5rem 1rem;
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 40px;
    color: #ffffff;
    width: 200px;
}

.search-box button {
    padding: 0.5rem 1rem;
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 40px;
    color: #94a3b8;
    cursor: pointer;
}

/* ========== 文章列表 - 目录风格 ========== */
.tech-archive {
    padding: 3rem 0 5rem;
    background: #0f172a;
}

.tech-archive .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.archive-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

/* 目录列表 */
.posts-directory {
    background: #1e293b;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.directory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #0f172a;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.directory-title {
    font-size: 1rem;
    font-weight: 600;
    color: #06b6d4;
}

.directory-count {
    font-size: 0.75rem;
    color: #64748b;
}

.directory-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.directory-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.3s;
}

.directory-item:hover {
    background: rgba(6,182,212,0.05);
}

.directory-item .item-date {
    flex-shrink: 0;
    width: 55px;
    font-size: 0.7rem;
    color: #64748b;
    font-family: monospace;
}

.directory-item .item-category {
    flex-shrink: 0;
    padding: 0.2rem 0.6rem;
    background: rgba(6,182,212,0.15);
    border-radius: 20px;
    font-size: 0.65rem;
    color: #06b6d4;
}

.directory-item .item-title {
    flex: 1;
}

.directory-item .item-title a {
    color: #f1f5f9;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    display: block;
}

.directory-item .item-title a:hover {
    color: #06b6d4;
}

.directory-item .item-views {
    flex-shrink: 0;
    font-size: 0.7rem;
    color: #64748b;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    background: #0f172a;
    border-radius: 8px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination .current {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: white;
}

.no-posts {
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

/* ========== 侧边栏 ========== */
.archive-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-widget {
    background: #1e293b;
    border-radius: 1rem;
    padding: 1.25rem;
}

.widget-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(6,182,212,0.3);
    color: #ffffff;
}

/* 热门文章 */
.popular-list {
    list-style: none;
}

.popular-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.popular-rank {
    width: 24px;
    height: 24px;
    background: rgba(6,182,212,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: #06b6d4;
}

.popular-rank.rank-1,
.popular-rank.rank-2,
.popular-rank.rank-3 {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: white;
}

.popular-list li a {
    flex: 1;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s;
}

.popular-list li a:hover {
    color: #06b6d4;
}

/* 分类云 */
.category-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-cloud a {
    padding: 0.25rem 0.75rem;
    background: #0f172a;
    border-radius: 20px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.7rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.category-cloud a:hover {
    background: #06b6d4;
    color: white;
}

.category-cloud .cat-count {
    font-size: 0.6rem;
    opacity: 0.7;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud a {
    padding: 0.25rem 0.75rem;
    background: #0f172a;
    border-radius: 20px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.7rem;
    transition: all 0.3s;
}

.tag-cloud a:hover {
    background: #06b6d4;
    color: white;
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
    .archive-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .tech-banner {
        padding: 2rem 0;
    }
    
    .tech-banner .container,
    .tech-categories .container,
    .tech-archive .container {
        padding: 0 1rem;
    }
    
    .tech-banner .banner-content h1 {
        font-size: 1.75rem;
    }
    
    .categories-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .directory-item {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .directory-item .item-date {
        width: auto;
        font-size: 0.65rem;
    }
    
    .directory-item .item-title {
        width: 100%;
        order: 1;
    }
    
    .directory-item .item-views {
        margin-left: auto;
    }
    
    .directory-header {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .directory-item {
        padding: 0.75rem 1rem;
    }
    
    .directory-item .item-title a {
        font-size: 0.85rem;
    }
    
    .sidebar-widget {
        padding: 1rem;
    }
}