/* ===== Tag Page Styles ===== */

/* ===== Section 1: Banner ===== */
.tag-banner {
    background: linear-gradient(135deg, #DC0000 0%, #8B0000 100%);
    background-image: url(../images/backgrounds/bg-banner-kline.webp);
    background-size: cover;
    background-position: center;
    min-height: 320px;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.tag-banner-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Breadcrumb */
.tag-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.tag-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

.tag-breadcrumb a:hover {
    color: #fff;
}

.tag-breadcrumb .separator {
    color: rgba(255, 255, 255, 0.5);
}

.tag-breadcrumb .current {
    color: #fff;
}

.tag-banner-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.tag-banner-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
    line-height: 1.5;
}

.tag-banner-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 24px;
}

.tag-banner-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 30px;
}

.tag-stat-item {
    text-align: center;
}

.tag-stat-number {
    font-size: 42px;
    font-weight: 700;
    display: block;
    line-height: 1.2;
}

.tag-stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

/* ===== Section 2: Main Content ===== */
.tag-main {
    padding: 50px 0 80px;
    background: #F5F5F5;
}

.tag-content-wrapper {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* Articles Main */
.tag-articles-main {
    flex: 1;
    min-width: 0;
}

.tag-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 20px 30px;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #eee;
}

.tag-section-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.tag-sort-options {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sort-label {
    font-size: 14px;
    color: #999;
}

.sort-option {
    font-size: 14px;
    color: #666;
    padding: 6px 16px;
    border-radius: 20px;
    transition: all 0.2s;
}

.sort-option:hover {
    color: #DC0000;
}

.sort-option.active {
    background: #DC0000;
    color: #fff;
}

/* Article List */
.tag-article-list {
    background: #fff;
    border-radius: 0 0 12px 12px;
}

.tag-article-item {
    display: flex;
    gap: 24px;
    padding: 24px 30px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
}

.tag-article-item:last-child {
    border-bottom: none;
}

.tag-article-item:hover {
    background: #fafafa;
}

.tag-article-item:hover .tag-article-title {
    color: #DC0000;
}

.tag-article-thumb {
    width: 220px;
    height: 145px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.tag-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.tag-article-item:hover .tag-article-thumb img {
    transform: scale(1.05);
}

.tag-article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tag-article-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.5;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-article-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.tag-article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.tag-article-info {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: #999;
}

.tag-article-info span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tag-article-info i {
    font-size: 14px;
}

.tag-article-column {
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
    padding: 4px 12px;
    border-radius: 4px;
}

/* No Articles */
.tag-no-articles {
    padding: 80px 30px;
    text-align: center;
}

.no-articles-icon {
    color: #ddd;
    margin-bottom: 20px;
}

.no-articles-text {
    font-size: 18px;
    color: #666;
    margin-bottom: 8px;
}

.no-articles-hint {
    font-size: 14px;
    color: #999;
}

/* Pagination */
.tag-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 40px 20px;
    background: #fff;
    margin-top: 20px;
    border-radius: 12px;
}

.page-btn {
    padding: 10px 20px;
    font-size: 14px;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: all 0.2s;
}

.page-btn:hover:not(.disabled) {
    border-color: #DC0000;
    color: #DC0000;
}

.page-btn.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: all 0.2s;
}

.page-num:hover {
    border-color: #DC0000;
    color: #DC0000;
}

.page-num.active {
    background: #DC0000;
    border-color: #DC0000;
    color: #fff;
}

.page-ellipsis {
    padding: 0 8px;
    color: #999;
}

/* Related Tags */
.tag-related-section {
    background: #fff;
    margin-top: 20px;
    border-radius: 12px;
    padding: 24px 30px;
}

.tag-related-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.tag-related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-related-item {
    display: inline-block;
    padding: 8px 18px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    transition: all 0.2s;
}

.tag-related-item:hover {
    background: #DC0000;
    color: #fff;
}

/* ===== Sidebar ===== */
.tag-sidebar {
    width: 380px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tag-sidebar-block {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
}

.tag-sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud-item {
    display: inline-block;
    padding: 6px 14px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    transition: all 0.2s;
}

.tag-cloud-item:hover,
.tag-cloud-item.active {
    background: #DC0000;
    color: #fff;
}

/* Recommend List */
.tag-recommend-list {
    list-style: none;
}

.tag-recommend-item {
    margin-bottom: 0;
}

.tag-recommend-item a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    transition: color 0.2s;
}

.tag-recommend-item:last-child a {
    border-bottom: none;
}

.tag-recommend-item a:hover {
    color: #DC0000;
}

.recommend-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #D4AF37;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}

.tag-recommend-item:nth-child(1) .recommend-num,
.tag-recommend-item:nth-child(2) .recommend-num,
.tag-recommend-item:nth-child(3) .recommend-num {
    background: #FF4444;
}

.recommend-title {
    flex: 1;
}

/* Ad Block */
.tag-ad-block {
    padding: 0;
    overflow: hidden;
}

.tag-ad-block img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Quick Entry */
.tag-quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.tag-quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #f9f9f9;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    transition: all 0.2s;
}

.tag-quick-link:hover {
    background: #fff5f5;
    color: #DC0000;
}

.quick-icon {
    font-size: 20px;
}

/* ===== Section 3: More Tags ===== */
.tag-more-section {
    padding: 60px 0 80px;
    background: #fff;
}

.tag-more-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.tag-more-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.tag-view-all {
    font-size: 14px;
    color: #666;
    transition: color 0.2s;
}

.tag-view-all:hover {
    color: #DC0000;
}

.tag-more-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-more-item {
    display: inline-block;
    padding: 10px 24px;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 14px;
    color: #666;
    transition: all 0.2s;
}

.tag-more-item:hover {
    background: #DC0000;
    color: #fff;
    transform: translateY(-2px);
}

.tag-more-item.current {
    background: #DC0000;
    color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
    /* Banner Mobile */
    .tag-banner {
        min-height: auto;
        display: block;
        overflow: hidden;
        padding: 20vw 0 8vw;
    }

    .tag-breadcrumb {
        font-size: 3vw;
        margin-bottom: 4vw;
        gap: 2vw;
    }

    .tag-banner-title {
        font-size: 7vw;
        margin-bottom: 3vw;
    }

    .tag-banner-subtitle {
        font-size: 4vw;
        margin-bottom: 3vw;
    }

    .tag-banner-desc {
        font-size: 3.5vw;
        margin-bottom: 4vw;
    }

    .tag-banner-stats {
        gap: 10vw;
        margin-top: 5vw;
    }

    .tag-stat-number {
        font-size: 8vw;
    }

    .tag-stat-label {
        font-size: 3vw;
        margin-top: 1vw;
    }

    /* Main Content Mobile */
    .tag-main {
        padding: 5vw 0 10vw;
    }

    .tag-content-wrapper {
        flex-direction: column;
        gap: 5vw;
    }

    .tag-articles-main {
        width: 100%;
    }

    .tag-section-header {
        padding: 4vw;
        border-radius: 3vw 3vw 0 0;
        flex-direction: column;
        gap: 3vw;
        align-items: flex-start;
    }

    .tag-section-title {
        font-size: 4.5vw;
    }

    .tag-sort-options {
        gap: 3vw;
    }

    .sort-label {
        font-size: 3vw;
    }

    .sort-option {
        font-size: 3vw;
        padding: 1.5vw 4vw;
    }

    /* Article List Mobile */
    .tag-article-list {
        border-radius: 0 0 3vw 3vw;
    }

    .tag-article-item {
        flex-direction: column;
        gap: 3vw;
        padding: 4vw;
    }

    .tag-article-thumb {
        width: 100%;
        height: 50vw;
        border-radius: 2vw;
    }

    .tag-article-title {
        font-size: 4vw;
        margin-bottom: 2vw;
    }

    .tag-article-excerpt {
        font-size: 3.2vw;
        margin-bottom: 2vw;
    }

    .tag-article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 2vw;
    }

    .tag-article-info {
        gap: 4vw;
        font-size: 2.8vw;
    }

    .tag-article-column {
        font-size: 2.6vw;
        padding: 1vw 3vw;
    }

    /* No Articles Mobile */
    .tag-no-articles {
        padding: 10vw 4vw;
    }

    .no-articles-icon svg {
        width: 15vw;
        height: 15vw;
    }

    .no-articles-text {
        font-size: 4vw;
    }

    .no-articles-hint {
        font-size: 3vw;
    }

    /* Pagination Mobile */
    .tag-pagination {
        padding: 5vw 4vw;
        margin-top: 4vw;
        border-radius: 3vw;
        flex-wrap: wrap;
    }

    .page-btn {
        padding: 2vw 4vw;
        font-size: 3vw;
        border-radius: 1.5vw;
    }

    .page-numbers {
        gap: 1.5vw;
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 3vw;
    }

    .page-num {
        width: 9vw;
        height: 9vw;
        font-size: 3.2vw;
        border-radius: 1.5vw;
    }

    .page-ellipsis {
        font-size: 3vw;
    }

    /* Related Tags Mobile */
    .tag-related-section {
        margin-top: 4vw;
        border-radius: 3vw;
        padding: 4vw;
    }

    .tag-related-header h3 {
        font-size: 4vw;
        margin-bottom: 4vw;
        padding-bottom: 3vw;
    }

    .tag-related-list {
        gap: 2vw;
    }

    .tag-related-item {
        padding: 2vw 4vw;
        font-size: 3vw;
    }

    /* Sidebar Mobile */
    .tag-sidebar {
        width: 100%;
        gap: 4vw;
    }

    .tag-sidebar-block {
        border-radius: 3vw;
        padding: 4vw;
    }

    .tag-sidebar-title {
        font-size: 4vw;
        margin-bottom: 4vw;
        padding-bottom: 3vw;
    }

    /* Tag Cloud Mobile */
    .tag-cloud {
        gap: 2vw;
    }

    .tag-cloud-item {
        padding: 1.5vw 3vw;
        font-size: 3vw;
    }

    /* Recommend Mobile */
    .tag-recommend-item a {
        padding: 3vw 0;
        font-size: 3.2vw;
        gap: 3vw;
    }

    .recommend-num {
        width: 5vw;
        height: 5vw;
        font-size: 2.8vw;
    }

    /* Ad Block Mobile */
    .tag-ad-block {
        border-radius: 3vw;
    }

    .tag-ad-block img {
        border-radius: 3vw;
    }

    /* Quick Entry Mobile */
    .tag-quick-links {
        gap: 2vw;
    }

    .tag-quick-link {
        padding: 3vw;
        font-size: 3vw;
        border-radius: 2vw;
        gap: 2vw;
    }

    .quick-icon {
        font-size: 5vw;
    }

    /* More Tags Mobile */
    .tag-more-section {
        padding: 8vw 0 10vw;
    }

    .tag-more-header {
        margin-bottom: 5vw;
    }

    .tag-more-header h3 {
        font-size: 5vw;
    }

    .tag-view-all {
        font-size: 3vw;
    }

    .tag-more-grid {
        gap: 2vw;
    }

    .tag-more-item {
        padding: 2.5vw 5vw;
        font-size: 3vw;
        border-radius: 1.5vw;
    }
}
