/* ============================================================
   tag-style.css - 标签聚合页面样式
   主色调：暖橙色系 (#e8783a)
   差异化设计，区别于竞品蓝色系
   ============================================================ */

/* 页面头部 Hero */
.tag-hero {
    background: linear-gradient(135deg, #e8783a 0%, #f0a060 100%);
    color: #fff;
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.tag-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 280px;
    height: 280px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.tag-hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: 10%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.tag-hero .container {
    position: relative;
    z-index: 1;
}

/* 面包屑 */
.tag-breadcrumb {
    margin-bottom: 20px;
}

.tag-breadcrumb .breadcrumb {
    background: rgba(255,255,255,0.15);
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-flex;
    margin: 0;
}

.tag-breadcrumb .breadcrumb-item {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
}

.tag-breadcrumb .breadcrumb-item a {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    transition: opacity 0.2s;
}

.tag-breadcrumb .breadcrumb-item a:hover {
    opacity: 0.85;
}

.tag-breadcrumb .breadcrumb-item.active {
    color: #fff;
}

.tag-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.7);
    content: '>';
    padding: 0 8px;
}

/* 标签标题 */
.tag-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.tag-hero h1 .tag-hash {
    font-size: 1.4rem;
    opacity: 0.8;
    margin-right: 4px;
}

.tag-hero .tag-desc {
    font-size: 1.05rem;
    opacity: 0.95;
    margin: 0;
}

.tag-hero .tag-stat {
    margin-top: 16px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.tag-hero .tag-stat-item {
    background: rgba(255,255,255,0.15);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.88rem;
    backdrop-filter: blur(4px);
}

.tag-hero .tag-stat-item strong {
    font-size: 1.1rem;
    margin-right: 4px;
}

/* 搜索结果区 */
.tag-content-section {
    padding: 40px 0 60px;
    background: #fafafa;
}

/* 文章列表项 */
.tag-article-item {
    background: #fff;
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 16px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;
}

.tag-article-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(135deg, #e8783a, #f0a060);
    border-radius: 0 3px 3px 0;
    transition: height 0.3s ease;
}

.tag-article-item:hover {
    box-shadow: 0 6px 24px rgba(232,120,58,0.1);
    border-color: rgba(232,120,58,0.18);
    transform: translateX(4px);
}

.tag-article-item:hover::before {
    height: 60%;
}

.tag-article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.tag-article-category {
    display: inline-block;
    background: linear-gradient(135deg, #FFF8F3, #FFF0E6);
    color: #e8783a;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.tag-article-category:hover {
    background: linear-gradient(135deg, #e8783a, #f0a060);
    color: #fff;
}

.tag-article-date {
    color: #aaa;
    font-size: 0.85rem;
}

.tag-article-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.5;
}

.tag-article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.tag-article-title a:hover {
    color: #e8783a;
}

.tag-article-summary {
    color: #777;
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0;
}

/* 分页 */
.tag-pagination {
    margin-top: 32px;
}

.tag-pagination .pagination {
    justify-content: center;
    gap: 6px;
}

.tag-pagination .page-item .page-link {
    border: 1px solid #eee;
    color: #666;
    border-radius: 8px !important;
    padding: 8px 16px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.tag-pagination .page-item .page-link:hover {
    background: #FFF8F3;
    color: #e8783a;
    border-color: rgba(232,120,58,0.3);
}

.tag-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #e8783a, #f0a060);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(232,120,58,0.25);
}

.tag-pagination .page-item.disabled .page-link {
    color: #ccc;
    background: #f9f9f9;
}

/* 空状态 */
.tag-empty {
    background: #fff;
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.06);
}

.tag-empty-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFF8F3, #FFF0E6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2.5rem;
    color: #e8783a;
}

.tag-empty h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 8px;
}

.tag-empty p {
    color: #999;
    margin-bottom: 24px;
}

.tag-empty .tag-empty-suggest {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px dashed #eee;
}

.tag-empty .tag-empty-suggest h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 16px;
}

.tag-empty .suggest-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tag-empty .suggest-links a {
    display: inline-block;
    padding: 6px 16px;
    background: #f8f8f8;
    color: #666;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
}

.tag-empty .suggest-links a:hover {
    background: linear-gradient(135deg, #e8783a, #f0a060);
    color: #fff;
}

/* 侧边栏 */
.tag-sidebar-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px 24px 20px;
    border: 1px solid rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

.tag-sidebar-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 4px solid #e8783a;
    color: #333;
}

/* 热门标签云 */
.tag-cloud-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud-item {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #FFF8F3, #FFF0E6);
    color: #e8783a;
    border-radius: 30px;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid rgba(232,120,58,0.12);
}

.tag-cloud-item:hover {
    background: linear-gradient(135deg, #e8783a, #f0a060);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
}

/* 热门文章排行 */
.tag-popular-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px dashed #f0f0f0;
    text-decoration: none;
    transition: all 0.2s;
}

.tag-popular-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tag-popular-item:hover .tag-popular-title {
    color: #e8783a;
}

.tag-popular-rank {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #eee;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0;
    margin-top: 3px;
}

.tag-popular-item:nth-child(1) .tag-popular-rank {
    background: linear-gradient(135deg, #e8783a, #f0a060);
    color: #fff;
}

.tag-popular-item:nth-child(2) .tag-popular-rank {
    background: linear-gradient(135deg, #ff9558, #ffb37a);
    color: #fff;
}

.tag-popular-item:nth-child(3) .tag-popular-rank {
    background: linear-gradient(135deg, #ffc078, #ffd699);
    color: #fff;
}

.tag-popular-title {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

/* 响应式 */
@media (max-width: 768px) {
    .tag-hero { padding: 36px 0; }
    .tag-hero h1 { font-size: 1.5rem; }
    .tag-hero::before { width: 180px; height: 180px; }
    .tag-hero::after { width: 140px; height: 140px; }
    .tag-hero .tag-stat { gap: 10px; }
    .tag-hero .tag-stat-item { padding: 4px 12px; font-size: 0.82rem; }
    .tag-content-section { padding: 24px 0 40px; }
    .tag-article-item { padding: 18px 18px; }
    .tag-empty { padding: 40px 20px; }
    .tag-pagination .page-item .page-link { padding: 6px 12px; }
}
