/* 子页面通用样式 */
.subpage {
    background: var(--black);
    min-height: 100vh;
}

/* 页面头部 */
.page-header {
    padding: 140px 40px 50px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* 页面头部背景流动效果 */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 60% 40% at 20% 30%, rgba(0, 255, 208, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 50% 60% at 80% 70%, rgba(255, 0, 160, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 40% 40% at 50% 50%, rgba(147, 112, 219, 0.05) 0%, transparent 50%);
    animation: header-blob-flow 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes header-blob-flow {
    0%, 100% {
        background-position: 0% 0%, 100% 100%, 50% 50%;
    }
    33% {
        background-position: 80% 20%, 20% 80%, 80% 20%;
    }
    66% {
        background-position: 50% 100%, 50% 0%, 20% 80%;
    }
}

.page-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.page-title .title-en {
    background: linear-gradient(135deg, var(--cyan), var(--magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-title .title-cn {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* HUD 装饰 - 标题下方 */
.page-header-hud {
    position: absolute;
    bottom: 20px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-header-hud .hud-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 208, 0.5));
}

.page-header-hud .hud-corner {
    width: 12px;
    height: 12px;
    border-right: 1px solid rgba(0, 255, 208, 0.4);
    border-bottom: 1px solid rgba(0, 255, 208, 0.4);
}

.page-header-hud .hud-dots {
    display: flex;
    gap: 4px;
}

.page-header-hud .hud-dots span {
    width: 3px;
    height: 3px;
    background: rgba(0, 255, 208, 0.6);
    border-radius: 50%;
    animation: hud-dot-pulse 1.5s infinite;
}

.page-header-hud .hud-dots span:nth-child(2) { animation-delay: 0.2s; }
.page-header-hud .hud-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes hud-dot-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* 筛选标签 */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 25px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 20px;
    font-family: inherit;
}

.filter-tab:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--cyan), var(--magenta));
    border-color: transparent;
    color: var(--black);
    font-weight: 500;
}

/* 视频网格区域 */
.video-grid-section {
    padding: 60px 40px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

/* 视频卡片 */
.video-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    background: var(--dark-gray);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

/* 卡片 HUD 角标 - hover 时显示 */
.video-thumbnail::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--cyan);
    border-right: 2px solid var(--cyan);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.video-card:hover .video-thumbnail::before {
    opacity: 1;
}

.video-thumbnail::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--magenta);
    border-left: 2px solid var(--magenta);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.video-card:hover .video-thumbnail::after {
    opacity: 1;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    background: linear-gradient(135deg, rgba(0, 255, 208, 0.1), rgba(255, 0, 160, 0.1));
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--cyan), var(--magenta));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--black);
    padding-left: 5px;
    transition: transform 0.3s ease;
}

.video-card:hover .play-icon {
    transform: scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.video-info-card {
    padding: 15px;
}

.video-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.video-card:hover {
    box-shadow: 0 10px 30px rgba(0, 255, 208, 0.15);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.page-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-family: inherit;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--cyan);
    color: var(--cyan);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 10px;
}

.page-num {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-family: inherit;
}

.page-num:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

.page-num.active {
    background: linear-gradient(135deg, var(--cyan), var(--magenta));
    border-color: transparent;
    color: var(--black);
    font-weight: 500;
}

/* 视频弹窗 */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: var(--dark-gray);
    border-radius: 12px;
    overflow: hidden;
    z-index: 2001;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 2002;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--magenta);
}

.modal-video-container {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--black);
}

.modal-video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-info {
    padding: 25px;
}

.modal-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--white);
}

.modal-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* 响应式 */
@media (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 100px 20px 30px;
    }

    .filter-tabs {
        gap: 10px;
    }

    .filter-tab {
        padding: 8px 18px;
        font-size: 13px;
    }

    .video-grid-section {
        padding: 40px 20px;
    }

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

    .pagination {
        flex-wrap: wrap;
        gap: 10px;
    }

    .page-btn {
        padding: 8px 15px;
        font-size: 13px;
    }

    .page-num {
        width: 35px;
        height: 35px;
    }

    .modal-content {
        width: 95%;
    }

    .modal-info {
        padding: 20px;
    }

    .modal-info h3 {
        font-size: 18px;
    }
}

/* 超小屏 (≤480px) */
@media (max-width: 480px) {
    .page-header {
        padding: 80px 16px 20px;
    }

    .page-header h1 {
        font-size: 22px;
        letter-spacing: 3px;
    }

    .page-header p {
        font-size: 12px;
    }

    .filter-tabs {
        gap: 8px;
        flex-wrap: wrap;
    }

    .filter-tab {
        padding: 6px 14px;
        font-size: 12px;
    }

    .video-grid-section {
        padding: 30px 16px;
    }

    .video-card-info {
        padding: 12px;
    }

    .video-card-info h3 {
        font-size: 13px;
    }

    .page-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .page-num {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

/* 隐藏类 */
.hidden {
    display: none !important;
}
