/* 标签列表页面样式 */

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.breadcrumb-wrapper {
    background: #f5f5f5;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb {
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #1890ff;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* 主内容区 */
.label-page {
    background: #fff;
    padding: 30px 0 50px;
}

.main-content {
    display: flex;
    gap: 30px;
}

.label-list-section {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* 字母导航 */
.letter-nav {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.letter-link {
    display: inline-block;
    min-width: 50px;
    padding: 8px 16px;
    text-align: center;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
}

.letter-link.active {
    color: #fff;
    font-weight: 600;
    background: #1890ff;
    border-color: #1890ff;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

.letter-link:hover {
    background: #e6f7ff;
    color: #1890ff;
    border-color: #1890ff;
    transform: translateY(-2px);
}

/* 标签容器 */
.tags-container {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 30px;
    min-height: 400px;
}

.tags-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px 20px;
}

.tag-item {
    padding: 0;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tag-item:hover {
    background: #fff;
    border-color: #1890ff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.15);
}

.tag-item a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 15px 18px;
    font-weight: 500;
}

.tag-item:hover a {
    color: #1890ff;
}

.tag-item .tag-name {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

.tag-item .tag-stats {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #999;
}

.tag-item .view-count,
.tag-item .article-count {
    display: inline-block;
}

.tag-item:hover .tag-stats {
    color: #666;
}

/* 分页 */
.pagination {
    margin-top: 40px;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #e8e8e8;
}

.pagination .page-link {
    padding: 8px 16px;
    background: #fff;
    color: #666;
    text-decoration: none;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
}

.pagination .page-info {
    padding: 8px 16px;
    color: #666;
    font-size: 14px;
}

.no-tags {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-tags p {
    font-size: 16px;
}

/* 底部热门标签 - 已移除 */

/* 侧边栏 */
.sidebar-widget {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s ease;
}

.sidebar-widget:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.widget-title {
    font-size: 18px;
    color: #333;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    /* border-bottom: 2px solid #1890ff; */
    position: relative;
}

/* 问题列表 */
.question-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.question-list li {
    margin-bottom: 15px;
}

.question-list li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    line-height: 1.7;
    transition: color 0.3s ease;
}

.question-list li a:hover {
    color: #1890ff;
}

.question-list .icon {
    color: #1890ff;
    margin-right: 10px;
    font-size: 10px;
    flex-shrink: 0;
    margin-top: 5px;
}

.question-list .empty {
    text-align: center;
    color: #999;
    padding: 30px 0;
    font-size: 14px;
}

/* 咨询列表 */
.consult-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.consult-list li {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.consult-list li:last-child {
    border-bottom: none;
}

.consult-list li:hover {
    background: #fafafa;
    margin: 0 -10px;
    padding: 15px 10px;
    border-radius: 4px;
}

.consult-list li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.consult-list li a:hover {
    color: #1890ff;
}

.consult-list .meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

.consult-list .region {
    color: #666;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 3px;
}

.consult-list .time {
    color: #999;
}

.consult-list .empty {
    text-align: center;
    color: #999;
    padding: 30px 0;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .tags-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .tags-grid {
        grid-template-columns: 1fr;
    }
    
    .letter-nav {
        padding: 15px;
    }
    
    .letter-link {
        line-height: 26px;
        font-size: 12px;
    }
    
    .letter-header {
        font-size: 24px;
    }
}
