/* ===== content-hub.css - 超创游乐资讯页面专属样式 v1 ===== */
/* 风格统一：对齐全局CSS变量、字体、间距、圆角、动效 */

/* ============ 页面标题区 ============ */
.content-hero {
    height: 60vh;
    min-height: 420px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.content-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(30,42,58,0.5) 0%, rgba(30,42,58,0.75) 100%);
    z-index: 1;
}

.content-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 0 40px;
}

.content-hero-label {
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    font-family: var(--font-en);
    color: var(--accent);
    margin-bottom: 24px;
}

.content-hero-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 4px;
    margin-bottom: 24px;
}

.content-hero-subtitle {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

/* ============ 筛选区域 ============ */
.content-filter-section {
    padding: 80px 0 40px;
    background: var(--bg-warm);
}

.content-filter-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
}

.content-filter-bar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* 搜索框 */
.content-search-block {
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-input-wrapper svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    stroke: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    font-family: var(--font-cn), var(--font-en);
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    letter-spacing: 0.5px;
}

.search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}

.search-input::placeholder {
    color: var(--text-dim);
}

/* 筛选标签 */
.content-filter-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.filter-block-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-family: var(--font-en), var(--font-cn);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-block-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

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

.filter-tag {
    padding: 10px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    letter-spacing: 1px;
    font-family: var(--font-cn), var(--font-en);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    user-select: none;
}

.filter-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,107,53,0.12);
}

.filter-tag.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(255,107,53,0.25);
}

.filter-tag.active:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    color: white;
}

/* 筛选状态栏 */
.filter-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.filter-status-bar strong {
    color: var(--accent);
    font-weight: 600;
}

.filter-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    font-family: var(--font-en), var(--font-cn);
    letter-spacing: 1px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-reset-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-reset-btn svg {
    width: 14px;
    height: 14px;
}

/* ============ 文章网格区域 ============ */
.articles-section {
    padding: 40px 0 120px;
    background: var(--bg-warm);
    min-height: 400px;
}

.articles-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ============ 文章卡片 ============ */
.article-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: white;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(40px);
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.article-card.hidden,
.article-card.hidden-card {
    display: none;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px var(--shadow-hover);
}

/* 卡片图片 */
.article-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-warm-soft);
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* hover 遮罩 + 阅读按钮 */
.card-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 42, 58, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
}

.article-card:hover .card-hover-overlay {
    opacity: 1;
}

.card-hover-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--accent);
    color: white;
    font-family: var(--font-en);
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-radius: 100px;
    transform: translateY(12px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    pointer-events: none;
}

.article-card:hover .card-hover-btn {
    transform: translateY(0);
}

.card-hover-btn svg {
    width: 16px;
    height: 16px;
}

/* 卡片内容 */
.article-card-content {
    padding: 24px;
    background: white;
}

.article-card-tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: var(--font-en);
    border-radius: 4px;
    font-weight: 500;
    background: rgba(255, 107, 53, 0.12);
    color: var(--accent);
    margin-bottom: 12px;
}

.article-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 1px;
    line-height: 1.4;
}

.article-card-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    font-family: var(--font-en);
}

.article-card-meta-sep {
    width: 1px;
    height: 12px;
    background: var(--border);
}

/* ============ 加载更多 ============ */
.load-more-wrap {
    text-align: center;
    margin-top: 60px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 40px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-en);
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.load-more-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255,107,53,0.1);
}

.load-more-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.4s ease;
}

.load-more-btn:hover svg {
    transform: translateY(2px);
}

.load-more-wrap.hidden {
    display: none;
}

/* ============ 无结果提示 ============ */
.no-results {
    text-align: center;
    padding: 100px 20px;
    display: none;
}

.no-results.active {
    display: block;
}

.no-results-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    color: var(--text-dim);
}

.no-results-icon svg {
    width: 100%;
    height: 100%;
}

.no-results h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.no-results p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.8;
}

/* ============ 响应式适配 ============ */
@media (max-width: 1200px) {
    .content-filter-section .container,
    .articles-section .container {
        padding: 0 40px;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .content-hero {
        height: 50vh;
        min-height: 320px;
    }

    .content-hero-title {
        font-size: clamp(28px, 8vw, 36px);
    }

    .content-filter-section .container,
    .articles-section .container {
        padding: 0 24px;
    }

    .content-filter-section {
        padding: 40px 0 24px;
    }

    .content-filter-bar {
        gap: 24px;
    }

    /* 移动端：标签横向滚动 */
    .filter-tags {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 4px;
        gap: 8px;
    }

    .filter-tags::-webkit-scrollbar {
        display: none;
    }

    .filter-tag {
        padding: 8px 16px;
        font-size: 12px;
        flex-shrink: 0;
    }

    .filter-status-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .articles-section {
        padding: 24px 0 80px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-card-image {
        aspect-ratio: 16 / 9;
    }

    .article-card-content {
        padding: 20px;
    }

    .article-card-title {
        font-size: 16px;
    }

    .load-more-wrap {
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .filter-tag {
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 6px;
    }

    .article-card-title {
        font-size: 15px;
    }

    .search-input {
        padding: 12px 12px 12px 44px;
        font-size: 14px;
    }
}

/* ============ 卡片入场动画 ============ */
@keyframes cardAppear {
    from { opacity: 0; transform: translateY(40px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
