/**
 * 应用标签页面样式
 */

/* 标签页面样式优化 */
.app-tag-page {
    position: relative;
    z-index: 1;
}

/* 横幅样式优化 */
.tag-banner-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tag-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    height: 280px;
}

.tag-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s;
}

.tag-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
    z-index: 1;
}

.tag-banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    color: #fff;
    z-index: 2;
}

.banner-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.banner-inner {
    flex: 1;
}

.banner-tag-image {
    width: 120px;
    height: 120px;
    margin-left: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.tag-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tag-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tag-short-desc {
    margin-bottom: 1rem;
    max-width: 70%;
    opacity: 0.9;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.tag-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.tag-stat-item {
    display: flex;
    align-items: center;
}

.tag-stat-item i {
    margin-right: 0.5rem;
}

/* 卡片效果增强 */
.shadow-hover {
    transition: all 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-3px);
}

/* 标签信息卡片样式优化 */
.tag-info-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.tag-info-card .card-body {
    padding: 1.5rem;
}

.tag-info-card h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.tag-info-card .badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
}

.tag-description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    max-height: 6rem;
    overflow: hidden;
    position: relative;
}

.tag-meta {
    margin-top: 0.75rem;
}

/* 标签样式 */
.tag-item {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    background-color: #f8f9fa;
    color: #495057;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tag-item:hover {
    background-color: var(--bs-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(var(--bs-primary-rgb), 0.2);
}

.tag-count {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 50px;
    margin-left: 0.5rem;
    font-size: 0.75rem;
}

.tag-item:hover .tag-count {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 相关标签样式优化 */
.related-tags-section {
    background-color: rgba(0,0,0,0.02);
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05);
}

.section-title {
    display: flex;
    align-items: center;
    color: #444;
}

.section-title i {
    margin-right: 0.5rem;
}

/* 标签图片 */
.tag-image {
    overflow: hidden;
    position: relative;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

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

.tag-image:hover img {
    transform: scale(1.05);
}

/* 相关文章缩略图 */
.related-post-thumbnail {
    width: 80px;
    height: 60px;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

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

.list-group-item:hover .related-post-thumbnail img {
    transform: scale(1.1);
}

/* 文字修饰 */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-sm {
    font-size: 1rem;
}

.fs-13 {
    font-size: 0.8125rem;
}

.fs-14 {
    font-size: 0.875rem;
}

/* Loading状态 */
.loading-overlay {
    position: relative;
    min-height: 200px;
    opacity: 0.8;
    pointer-events: none;
}

.loading-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--bs-primary);
}

.loading-indicator i {
    font-size: 1rem;
}

/* 卡片标题栏样式优化 */
.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 1.25rem;
}

.card-header h2, 
.card-header h3 {
    display: flex;
    align-items: center;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.card-header h2 i, 
.card-header h3 i {
    margin-right: 0.5rem;
}

/* 应用列表卡片样式 */
.app-list-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

/* 相关文章卡片样式 */
.related-posts-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.related-posts-list .list-group-item {
    border-left: none;
    border-right: none;
    transition: all 0.2s;
}

.related-posts-list .list-group-item:first-child {
    border-top: none;
}

.related-posts-list .list-group-item:last-child {
    border-bottom: none;
}

.related-posts-list .list-group-item:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.03);
}

.related-post-title {
    color: #333;
    transition: color 0.2s;
}

.list-group-item:hover .related-post-title {
    color: var(--bs-primary);
}

/* 空内容状态 */
.empty-content {
    padding: 3rem 1rem;
    text-align: center;
    color: #6c757d;
}

/* 分页导航样式优化 */
.pagination-container .page-numbers {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-container .page-numbers li {
    margin: 0 3px;
}

.pagination-container .page-numbers a,
.pagination-container .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 6px;
    color: #495057;
    background-color: #f8f9fa;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.pagination-container .page-numbers a:hover {
    background-color: var(--bs-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(var(--bs-primary-rgb), 0.2);
}

.pagination-container .page-numbers .current {
    background-color: var(--bs-primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(var(--bs-primary-rgb), 0.2);
}

.pagination-container .page-numbers .dots {
    background: none;
}

/* 访问量统计样式 */
.tag-views-info {
    display: inline-flex;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.tag-views-info i {
    opacity: 0.7;
}

.views-total, .views-today {
    white-space: nowrap;
}

/* 标签中的访问量显示 */
.tag-item .tag-views {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 0.1rem 0.3rem;
    border-radius: 50px;
    margin-left: 0.3rem;
    font-size: 0.7rem;
    opacity: 0.8;
}

.tag-item:hover .tag-views {
    background-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

/* 热门标签排行样式 */
.popular-tags-section {
    background-color: rgba(0,0,0,0.02);
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05);
}

.popular-tags-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.popular-tag-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.6rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.2s;
    border: 1px solid rgba(0,0,0,0.05);
}

.popular-tag-item:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.popular-tag-item .rank {
    font-weight: bold;
    color: #999;
    margin-right: 0.5rem;
    min-width: 20px;
}

.popular-tag-item:nth-child(1) .rank { color: #FFD700; }
.popular-tag-item:nth-child(2) .rank { color: #C0C0C0; }
.popular-tag-item:nth-child(3) .rank { color: #CD7F32; }

.popular-tag-item a {
    color: #333;
    text-decoration: none;
    flex: 1;
    margin: 0 0.5rem;
}

.popular-tag-item a:hover {
    color: var(--bs-primary);
}

.popular-tag-item .views-count {
    opacity: 0.7;
    font-size: 0.75rem;
    color: #666;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tag-banner {
        height: auto;
        min-height: 220px;
    }
    
    .tag-banner-content {
        padding: 1.5rem;
    }
    
    .banner-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .banner-tag-image {
        display: none;
    }
    
    .tag-title {
        font-size: 1.5rem;
    }
    
    .tag-short-desc {
        max-width: 100%;
        font-size: 0.9rem;
    }
    
    .tag-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tag-meta {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .search-form {
        width: 100%;
    }
    
    .filter-list {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-list h5 {
        margin-bottom: 0.5rem;
    }
    
    .tag-info-card h1 {
        font-size: 1.5rem;
    }
    
    .related-tags-section {
        padding: 0.5rem;
    }
} 