/* ============================================================
   专栏页样式
   ============================================================ */

/* ---------------------------------------- */
/* 加载中状态
/* ---------------------------------------- */
.column-loader {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
}

/* ---------------------------------------- */
/* 空状态
/* ---------------------------------------- */
.column-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: var(--text-secondary);
    text-align: center;
}

.column-empty i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 20px;
}

.column-empty p {
    font-size: 1rem;
    margin-bottom: 20px;
}

/* ---------------------------------------- */
/* 加载更多按钮
/* ---------------------------------------- */
.column-load-more {
    padding: 12px 40px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s;
    min-width: 160px;
}

.column-load-more:hover:not(:disabled) {
    background: var(--primary-dark, #007a67);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 147, 128, 0.3);
}

.column-load-more:disabled,
.column-load-more.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-reset {
    padding: 8px 24px;
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-reset:hover {
    background: var(--primary);
    color: #fff;
}

/* 视频播放图标 */
.video-play-icon {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(0, 147, 128, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    z-index: 3;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.video-play-icon.small {
    width: 50px;
    height: 50px;
    font-size: 0.85rem;
    background: rgba(0, 147, 128, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.article-card:hover .video-play-icon {
    transform: translate(-50%, -50%) scale(1.12);
    background: var(--primary);
    box-shadow: 0 8px 32px rgba(0, 147, 128, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

/* 文章列表区域 */
.column-articles {
    padding: 60px 0;
    background: var(--bg-primary);
}

.article-page .article-list-head {
    padding: 0 40px 18px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.article-page .article-list-title {
    font-size: 1.4rem;
    color: #fff;
    margin: 0;
}

.article-page .article-list-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

/* 文章（无封面）卡片 */
.article-page .articles-grid {
    grid-template-columns: repeat(2, 1fr);
}

.article-page .text-article-card {
    padding: 22px 22px 18px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: block;
    text-decoration: none;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.article-page .text-article-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--primary);
    opacity: 0.9;
}

.article-page .text-article-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.article-page .text-article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.article-page .text-article-category {
    font-size: 0.75rem;
    color: var(--primary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.article-page .text-article-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.article-page .text-article-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    line-height: 1.45;
    color: #333;
    margin: 0 0 12px;
}

.article-page .text-article-excerpt  {
    margin: 0;
    font-size: 0.95rem;
    color: #5a6a7a;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.8em * 3);
}

.article-page .text-article-footer {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
}

.article-page .text-article-more {
    font-size: 0.9rem;
    color: var(--primary);
}

/* 视频专区 */
.article-video-zone {
    padding: 50px 0 0;
    background: var(--bg-primary);
}

.video-zone-head {
    padding: 0 40px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
}

.video-zone-head::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 40px;
    right: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.video-zone-title {
    font-family: 'Noto Serif SC', 'Playfair Display', serif;
    font-size: 1.35rem;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.video-zone-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 22px;
    background: var(--primary);
    border-radius: 2px;
}

.video-zone-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    padding: 32px 40px;
}

.video-grid .article-card {
    width: 100%;
}

.article-video-zone .article-card {
    border-radius: 12px;
    position: relative;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: #1a1a1f;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.article-video-zone .article-image {
    height: 100%;
    aspect-ratio: auto;
    position: relative;
    overflow: hidden;
}

.article-video-zone .article-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.15) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    transition: opacity 0.4s ease;
}

.article-video-zone .article-card:hover .article-image::after {
    opacity: 0.6;
}

.article-video-zone .article-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 12px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 2;
}

.article-video-zone .article-title {
    font-family: 'Noto Serif SC', 'Playfair Display', serif;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.5;
    color: #fff;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-video-zone .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 0;
}

.article-video-zone .article-category {
    font-size: 0.65rem;
    color: var(--primary-light);
    background: rgba(0, 147, 128, 0.15);
    padding: 2px 8px;
    border-radius: 2px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-video-zone .article-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* 视频时长标签 */
.article-video-zone .article-duration {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 3;
    font-family: 'Space Grotesk', monospace;
    letter-spacing: 0.02em;
}

/* 文章卡片样式 */
.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.4s ease;
    text-decoration: none;
    display: block;
}

.article-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.article-image {
    position: relative;
    aspect-ratio: 16/10;
    height: 220px;
    overflow: hidden;
    background: #0f0f0f;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
    transition: all 0.4s ease;
}

@supports not (aspect-ratio: 1 / 1) {
    .article-image::before {
        content: none;
        display: none;
        padding-top: 0;
    }

    .article-image img {
        position: static;
    }

    .article-video-zone .article-image::before {
        display: none;
        padding-top: 0;
    }
}

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

.article-info {
    padding: 24px 28px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.article-category {
    font-size: 0.7rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.article-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.article-duration {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-duration i {
    color: var(--primary);
}

.article-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.article-card:hover .article-title {
    color: var(--primary);
}

.article-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 分页样式 */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination .page-btn,
.pagination .page-num {
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-btn:hover,
.pagination .page-num:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .page-num.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    font-weight: 600;
}

.pagination .page-ellipsis {
    color: var(--text-secondary);
    padding: 0 8px;
}

/* 响应式 */
@media (max-width: 992px) {
    .column-articles {
        padding: 40px 0;
    }

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

    .article-page .article-list-head {
        padding: 0 20px 14px;
    }

    .article-image {
        height: 200px;
    }

    .video-zone-head {
        padding: 0 20px 14px;
    }

    .video-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
        padding: 24px 20px;
    }
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .column-articles {
        padding: 30px 0;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 12px;
    }

    .article-page .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-page .article-list-head {
        padding: 0 12px 12px;
        flex-direction: column;
        align-items: flex-start;
    }

    .article-image {
        height: 210px;
    }

    .video-zone-head {
        padding: 0 12px 12px;
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 16px 12px;
    }

    .article-video-zone .article-title {
        font-size: 0.9rem;
    }

    .article-info {
        padding: 18px 20px;
    }

    .pagination .page-btn,
    .pagination .page-num {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}

/* 视频弹窗 */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    z-index: 1;
}

.video-modal-content video {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.video-modal-close:hover {
    opacity: 1;
}

@media (max-width: 576px) {
    .video-modal-content {
        width: 95%;
    }
}
