/* ============================================================
   70KA礼品网 - 标签详情页样式
   适用场景：标签详情、文章列表、侧边栏
   ============================================================ */

/* ---------- 全局重置 & 基础 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    font-size: 13px;
    color: #95a5a6;
}
.breadcrumb a {
    color: #000000;
    text-decoration: none;
}
.breadcrumb span {
    margin: 0 8px;
    color: #000000;
}

/* ---------- 容器 ---------- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 24px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: start;
}

/* ---------- 主内容 ---------- */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title-bar {
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #3498db 0%, #2980b9 100%);
    border-radius: 2px;
}

.section-title h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2d3d;
}

.section-desc {
    font-size: 13px;
    color: #8a96a3;
    margin-left: 12px;
}

/* ---------- 标签信息头 ---------- */
.tag-header {
    background: linear-gradient(135deg, #f8fbff 0%, #eef5fc 100%);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid #dce8f3;
    margin-bottom: 20px;
}

.tag-info {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.tag-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.tag-icon svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.tag-content {
    flex: 1;
    min-width: 280px;
}

.tag-label {
    display: inline-block;
    padding: 4px 12px;
    background: #3498db;
    color: #fff;
    font-size: 12px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.tag-content h1 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.tag-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 16px;
}

.tag-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tag-article-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    font-size: 14px;
    border-radius: 20px;
    font-weight: 500;
}

.tag-article-count .count-num {
    font-size: 18px;
    font-weight: 700;
}

/* ---------- 文章列表 ---------- */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fafbfc;
    border-radius: 12px;
    border: 1px solid #eef1f5;
    transition: all 0.3s;
    text-decoration: none;
}

.article-item:hover {
    background: #fff;
    border-color: #bcd4ea;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.08);
    transform: translateY(-2px);
}

.article-image {
    width: 160px;
    height: 100px;
    border-radius: 8px;
    background: #e0e0e0;
    overflow: hidden;
    flex-shrink: 0;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.4;
}

.article-item:hover .article-title {
    color: #3498db;
}

.article-desc {
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #95a5a6;
    margin-top: 12px;
}

/* ---------- 分页 ---------- */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    /* 清除列表默认样式 */
    list-style: none !important;
    padding: 0 !important;
    flex-wrap: wrap;
}

.pagination li {
    list-style: none !important;
    display: inline-block;
    margin: 0;
    padding: 0;
}

.pagination li a {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
    background: #f5f7fa;
    color: #555;
    border: 1px solid #eef1f5;
    min-width: 36px;
    text-align: center;
}

.pagination li a:hover {
    background: #3498db !important;
    color: #fff !important;
    border-color: #3498db !important;
}

/* 当前页码（高亮蓝色） */
.pagination li.active a {
    background: #3498db !important;
    color: #fff !important;
    border-color: #3498db !important;
    cursor: default;
}
/*结束*/
/* ---------- 侧边栏 ---------- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: #3498db;
    border-radius: 2px;
}

/* ---------- 相关标签 ---------- */
.related-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.related-tag {
    padding: 6px 14px;
    background: #f5f7fa;
    border-radius: 16px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s;
}

.related-tag:hover {
    background: #3498db;
    color: #fff;
}

/* ---------- 热门文章 ---------- */
.hot-articles {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hot-article-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s;
}

.hot-article-item:hover {
    background: #f5f7fa;
}

.hot-article-image {
    width: 60px;
    height: 40px;
    border-radius: 6px;
    background: #e0e0e0;
    overflow: hidden;
    flex-shrink: 0;
}

.hot-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hot-article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hot-article-title {
    font-size: 13px;
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-article-item:hover .hot-article-title {
    color: #3498db;
}

.hot-article-date {
    font-size: 11px;
    color: #95a5a6;
    margin-top: 4px;
}

/* ---------- 底部热门标签 ---------- */
.hot-tags-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

.hot-tags-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.hot-tags-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.hot-tags-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, #3498db 0%, #2980b9 100%);
    border-radius: 2px;
}

.hot-tags-more {
    font-size: 13px;
    color: #3498db;
    text-decoration: none;
}

.hot-tags-more:hover {
    text-decoration: underline;
}

.hot-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hot-tag-item {
    padding: 8px 16px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0fa 100%);
    border-radius: 20px;
    border: 1px solid #d8e2ec;
    font-size: 13px;
    color: #3498db;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}

.hot-tag-item:hover {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* ---------- 页脚 ---------- */
.footer {
    background: #2c3e50;
    color: #bdc3c7;
    padding: 32px 24px 16px;
    margin-top: 40px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 24px;
}

.footer-brand h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #3498db;
}

.footer-brand p {
    font-size: 12px;
    color: #bdc3c7;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 14px;
    margin-bottom: 12px;
    color: #fff;
    font-weight: 600;
}

.footer-col a {
    display: block;
    font-size: 12px;
    color: #bdc3c7;
    margin-bottom: 6px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #3498db;
}

.footer-bottom {
    max-width: 1280px;
    margin: 24px auto 0;
    padding-top: 16px;
    border-top: 1px solid #34495e;
    text-align: center;
    font-size: 12px;
    color: #7f8c8d;
}

.footer-bottom a[style*="color: #3498db"] {
    color: #3498db;
    text-decoration: none;
}
.footer-bottom a[style*="color: #7f8c8d"] {
    color: #7f8c8d;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-section {
        flex: 1;
        min-width: 250px;
    }

    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .breadcrumb {
        padding: 12px 16px;
        font-size: 12px;
    }

    .container {
        padding: 16px;
    }

    .section {
        padding: 20px;
    }

    .section-title h2 {
        font-size: 18px;
    }

    .article-item {
        flex-direction: column;
    }

    .article-image {
        width: 100%;
        height: 160px;
    }

    .sidebar {
        flex-direction: column;
    }

    .sidebar-section {
        min-width: 100%;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .tag-header {
        padding: 24px;
    }

    .tag-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .tag-content h1 {
        font-size: 20px;
    }

    .hot-tags-section {
        padding: 20px;
    }

    .hot-tag-item {
        padding: 6px 14px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 12px;
    }

    .section {
        padding: 16px;
    }

    .section-title h2 {
        font-size: 16px;
    }

    .tag-header {
        padding: 20px;
    }

    .tag-info {
        flex-direction: column;
    }

    .tag-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .tag-content h1 {
        font-size: 18px;
    }

    .tag-meta {
        gap: 10px;
        flex-wrap: wrap;
    }

    .hot-tags-section {
        padding: 16px;
    }

    .hot-tags-list {
        gap: 8px;
    }

    .hot-tag-item {
        padding: 5px 12px;
        font-size: 12px;
    }
}

/*/新增tag标签*/

