/**
 * Tag 标签页面样式
 * 重新设计的卡片布局：一行6个，封面在上，标题在下，底部时间和浏览量
 *
 * @package GoodBase
 * @since 1.0.0
 */

/* Tag 页面容器 */
.tag-archive-page {
    padding: 1rem 0;
}

.tag-archive-page .page-header {
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(135deg, #f66600d1 0%, #f666003b 100%);
    padding: 20px 10px 10px 10px;
    border-radius: 8px;
}

.tag-archive-page .page-title {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 1rem 0;
    text-align: center;
}

.tag-archive-page .archive-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.5rem;
}

/* Tag 文章容器 - 一行6个 */
.tag-posts-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    margin-bottom: 2rem;
}

/* Tag 卡片样式 */
.tag-post-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tag-post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 封面图 */
.tag-post-item .post-thumbnail {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.tag-post-item .post-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

/* 标签徽章 */
.tag-post-item .post-thumbnail .post-tag-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 10;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    pointer-events: none;
    white-space: nowrap;
}

/* 热门标签样式 */
.tag-post-item .post-thumbnail .post-tag-badge.post-tag-hot {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

/* 独家标签样式 */
.tag-post-item .post-thumbnail .post-tag-badge.post-tag-exclusive {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

/* 推荐标签样式 */
.tag-post-item .post-thumbnail .post-tag-badge.post-tag-recommended {
    background: linear-gradient(135deg, #feca57 0%, #ff9ff3 100%);
}

/* 精品标签样式 */
.tag-post-item .post-thumbnail .post-tag-badge.post-tag-premium {
    background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
}

/* 收费/VIP徽章样式 */
.tag-post-item .post-thumbnail .post-price-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 11;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.tag-post-item .post-thumbnail .post-price-badge i {
    font-size: 10px;
}

.tag-post-item .post-thumbnail .post-price-badge.badge-price {
    background: linear-gradient(135deg, #f66600 0%, #ff8533 100%);
}

.tag-post-item .post-thumbnail .post-price-badge.badge-free {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.tag-post-item .post-thumbnail .post-price-badge.badge-vip {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
}

.tag-post-item .post-thumbnail .post-price-badge.badge-vip-trial {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.tag-post-item .post-thumbnail .post-price-badge.badge-vip-month {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
}

.tag-post-item .post-thumbnail .post-price-badge.badge-vip-quarter {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
}

.tag-post-item .post-thumbnail .post-price-badge.badge-vip-year {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

.tag-post-item .post-thumbnail .post-price-badge.badge-vip-lifetime {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
}

/* 分类徽章 - 底部渐变遮罩样式 */
.tag-post-item .post-thumbnail .post-category-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 20px 10px 8px 10px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
    pointer-events: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.tag-post-item .post-thumbnail .post-category-badge i {
    font-size: 10px;
    opacity: 0.9;
}

/* 无封面图样式 */
.tag-post-item .post-thumbnail .no-thumbnail {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    color: #bbb;
    font-size: 48px;
}

.tag-post-item .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tag-post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

/* 内容区域 */
.tag-post-item .post-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* 标题 */
.tag-post-item .post-title {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
}

.tag-post-item .post-title a {
    color: #333;
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tag-post-item .post-title a:hover {
    color: #f66600;
}

/* 元数据 - 底部左右分布 */
.tag-post-item .post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.tag-post-item .post-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tag-post-item .post-meta i {
    font-size: 11px;
}

.tag-post-item .post-date {
    flex: 1;
}

.tag-post-item .post-date i {
    color: #f66600;
}

.tag-post-item .post-views {
    flex: 1;
    justify-content: flex-end;
}

.tag-post-item .post-views i {
    color: #bbb;
}

/* 响应式布局 */
@media (min-width: 1400px) {
    .tag-posts-container {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .tag-posts-container {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .tag-posts-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .tag-posts-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .tag-posts-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .tag-post-item .post-thumbnail {
        height: 140px;
    }
    
    .tag-post-item .post-content {
        padding: 10px;
    }
    
    .tag-post-item .post-title {
        font-size: 13px;
    }
    
    .tag-post-item .post-meta {
        font-size: 11px;
    }
}

/* 分页样式 */
.tag-archive-page .pagination {
    margin-top: 2rem;
    text-align: center;
}

/* 无内容提示 */
.tag-archive-page .no-posts {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.tag-archive-page .no-posts h2 {
    font-size: 20px;
    color: #333;
    margin: 0 0 0.5rem 0;
}

.tag-archive-page .no-posts p {
    font-size: 14px;
    color: #666;
    margin: 0;
}
