/* 标签详情页样式 */

body.tag-detail-page {
    background: radial-gradient(circle at top left, #f0f4ff 0%, #f7f8fc 40%, #eef1f8 100%);
    padding-top: 80px;
}

.tag-detail-main {
    padding: 30px 0 50px;
}

/* 面包屑导航 */
.tag-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb-item {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item:hover {
    color: #764ba2;
}

.breadcrumb-separator {
    color: #94a3b8;
}

.breadcrumb-separator i {
    font-size: 12px;
}

.breadcrumb-current {
    color: #0f172a;
    font-size: 14px;
    font-weight: 500;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 标签标题区域 */
.tag-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    color: #fff;
    text-align: center;
}

.tag-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.tag-title i {
    font-size: 28px;
    opacity: 0.9;
}

.tag-count {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* 内容列表 */
.tag-content-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.tag-content-item {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.tag-content-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.content-item-link {
    display: flex;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    padding: 20px;
}

.content-item-thumb {
    flex-shrink: 0;
    width: 200px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.content-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tag-content-item:hover .content-item-thumb img {
    transform: scale(1.05);
}

.content-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    color: #667eea;
}

.content-item-placeholder i {
    font-size: 48px;
}

.content-item-type {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    background: rgba(102, 126, 234, 0.9);
    color: #fff;
    font-size: 12px;
    border-radius: 12px;
    z-index: 2;
}

.content-item-body {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.content-item-title {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 12px 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.tag-content-item:hover .content-item-title {
    color: #667eea;
}

.content-item-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 15px 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: #94a3b8;
    margin-top: auto;
}

.content-item-meta i {
    font-size: 14px;
    margin-right: 4px;
}

.content-item-date {
    display: flex;
    align-items: center;
}

.content-item-click {
    display: flex;
    align-items: center;
}

.tag-content-empty {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.tag-content-empty i {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 15px;
}

.tag-content-empty p {
    font-size: 14px;
    margin: 0;
}

/* 分页 */
.tag-pagination {
    margin-top: 40px;
    text-align: center;
    padding: 20px 0;
}

.pagination-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-list li {
    display: inline-block;
}

.pagination-link {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 38px;
    text-align: center;
    line-height: 1.5;
}

.pagination-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pagination-current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
    cursor: default;
}

.pagination-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-disabled:hover {
    background: #fff;
    border-color: #e2e8f0;
    color: #64748b;
    transform: none;
    box-shadow: none;
}

.pagination-ellipsis {
    display: inline-block;
    padding: 8px 5px;
    color: #94a3b8;
    font-size: 14px;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .tag-header {
        padding: 20px;
    }

    .tag-title {
        font-size: 24px;
        flex-direction: column;
        gap: 8px;
    }

    .content-item-link {
        flex-direction: column;
        gap: 15px;
    }

    .content-item-thumb {
        width: 100%;
        height: 180px;
    }

    .content-item-title {
        font-size: 18px;
    }
}

