/* 视频页面专用样式 */

/* 页面头部 */
.page-header {
    background: linear-gradient(120deg, rgba(138, 20, 23, 0.95), rgba(179, 26, 29, 0.88));
    color: white;
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 60%),
                radial-gradient(circle at 75% 30%, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0) 55%);
    opacity: 0.9;
}

.page-title {
    font-size: 3.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    letter-spacing: 0.12em;
}

.page-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    letter-spacing: 0.06em;
}

.breadcrumb {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.18);
    padding: 0.6rem 1.8rem;
    border-radius: 999px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

/* 分类导航 */
.category-nav {
    background: #fff;
    padding: 2.2rem 0;
    border-bottom: 1px solid rgba(179, 26, 29, 0.12);
    position: sticky;
    top: 78px;
    z-index: 100;
    box-shadow: 0 18px 40px rgba(47, 28, 25, 0.08);
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-tab {
    padding: 12px 26px;
    border: 1px solid transparent;
    background: rgba(179, 26, 29, 0.08);
    color: var(--primary-dark);
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

.category-tab:hover {
    background: rgba(179, 26, 29, 0.12);
    transform: translateY(-2px);
}

.category-tab.active {
    background: linear-gradient(135deg, rgba(138, 20, 23, 0.95), rgba(179, 26, 29, 0.85));
    color: white;
    box-shadow: 0 18px 35px rgba(179, 26, 29, 0.2);
}

/* 视频展示区域 */
.videos-section {
    padding: 4.5rem 0;
    background: var(--secondary-color);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* 视频卡片 */
.video-card {
    background: var(--surface-color);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.35s ease;
    position: relative;
    border: var(--card-border);
}

.video-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 32px 60px rgba(47, 28, 25, 0.2);
}

.video-card.hidden {
    display: none;
}

.video-thumbnail {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, rgba(138, 20, 23, 0.92), rgba(179, 26, 29, 0.85));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

.video-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-thumbnail:hover::before {
    opacity: 1;
}

.video-placeholder {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.video-placeholder i {
    font-size: 2.5rem;
    color: white;
    transition: transform 0.3s ease;
}

.video-thumbnail:hover .video-placeholder i {
    transform: scale(1.2);
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

.video-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(179, 26, 29, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.video-info {
    padding: 2.2rem;
}

.video-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-description {
    color: var(--muted-text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--muted-text);
    flex-wrap: wrap;
}

.video-views, .video-likes, .video-date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(179, 26, 29, 0.08);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--primary-dark);
}

.video-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tag {
    background: rgba(179, 26, 29, 0.08);
    color: var(--primary-dark);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
}

.video-actions {
    display: flex;
    gap: 1rem;
}

.btn-play, .btn-detail {
    padding: 12px 20px;
    border: none;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-play {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(179, 26, 29, 0.28);
}

.btn-detail {
    background: rgba(179, 26, 29, 0.08);
    color: var(--primary-dark);
    border: 1px solid rgba(179, 26, 29, 0.25);
}

.btn-detail:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    transform: translateY(-2px);
    border-color: transparent;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 2% auto;
    padding: 0;
    border-radius: 26px;
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 40px 90px rgba(47, 28, 25, 0.25);
    border: 1px solid rgba(179, 26, 29, 0.12);
}

.video-modal {
    max-width: 1200px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: rgba(47, 28, 25, 0.4);
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 0;
}

/* 视频播放器样式 */
.video-player {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.video-container {
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder-large {
    text-align: center;
    color: white;
}

.video-placeholder-large i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.video-placeholder-large p {
    font-size: 1.2rem;
    opacity: 0.7;
}

.video-details {
    padding: 2.2rem;
}

.video-detail-title {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.video-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(179, 26, 29, 0.08);
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--primary-dark);
}

.meta-item i {
    color: var(--primary-color);
    width: 16px;
}

.video-detail-description h3 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.video-detail-description h3:first-child {
    margin-top: 0;
}

.video-detail-description p {
    color: var(--muted-text);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.video-detail-description ul {
    color: var(--muted-text);
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.video-detail-description li {
    margin-bottom: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .category-tabs {
        gap: 0.5rem;
    }
    
    .category-tab {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .video-player {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .video-container {
        aspect-ratio: 16/9;
    }
    
    .video-placeholder-large i {
        font-size: 3rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .video-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .category-tab {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .video-info {
        padding: 1.5rem;
    }
    
    .video-title {
        font-size: 1.1rem;
    }
    
    .video-description {
        font-size: 0.9rem;
    }
    
    .video-details {
        padding: 1.5rem;
    }
    
    .video-detail-title {
        font-size: 1.4rem;
    }
}

/* 动画效果 */
.video-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.video-card:nth-child(1) { animation-delay: 0.1s; }
.video-card:nth-child(2) { animation-delay: 0.2s; }
.video-card:nth-child(3) { animation-delay: 0.3s; }
.video-card:nth-child(4) { animation-delay: 0.4s; }
.video-card:nth-child(5) { animation-delay: 0.5s; }
.video-card:nth-child(6) { animation-delay: 0.6s; }
.video-card:nth-child(7) { animation-delay: 0.7s; }
.video-card:nth-child(8) { animation-delay: 0.8s; }
.video-card:nth-child(9) { animation-delay: 0.9s; }
.video-card:nth-child(10) { animation-delay: 1.0s; }
.video-card:nth-child(11) { animation-delay: 1.1s; }
.video-card:nth-child(12) { animation-delay: 1.2s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 视频统计样式 */
.videos-stats {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--surface-color);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    border: var(--card-border);
}

.videos-stats h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-item {
    background: rgba(179, 26, 29, 0.08);
    padding: 1rem;
    border-radius: 14px;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    color: var(--muted-text);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* 搜索框样式 */
.search-container {
    text-align: center;
    margin: 2rem 0;
}

.search-input {
    width: 100%;
    max-width: 500px;
    padding: 15px 25px;
    border: 1px solid rgba(179, 26, 29, 0.25);
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(179, 26, 29, 0.05);
}

.search-input:focus {
    box-shadow: 0 0 25px rgba(179, 26, 29, 0.18);
    transform: translateY(-2px);
}

.search-input::placeholder {
    color: #999;
} 