/* ===================================
   软件视频集合页 样式
   =================================== */

/* ---------- 横幅 ---------- */
.videos-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #2563eb 100%);
    padding: 120px 0 50px;
}
.videos-banner-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    animation: videoIconBounce 2s ease-in-out infinite;
}
@keyframes videoIconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.videos-banner-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.vbs-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.vbs-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}
.vbs-label {
    font-size: .85rem;
    opacity: .7;
}
.vbs-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,.2);
}

/* ---------- 分类筛选条 ---------- */
.videos-filter-section {
    background: var(--bg-white);
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 68px;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}
.videos-filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.vft-btn {
    padding: 9px 20px;
    border: 1.5px solid var(--border);
    border-radius: 30px;
    background: var(--bg-white);
    color: var(--text-mid);
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--tr);
    white-space: nowrap;
}
.vft-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(37,99,235,.05);
}
.vft-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37,99,235,.3);
}

/* ---------- 主体布局 ---------- */
.videos-page-section {
    padding: 40px 0 80px;
    background: var(--bg-light);
    min-height: 60vh;
}
.videos-page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 36px;
    align-items: start;
}

/* ===================================
   精选主播放器
   =================================== */
.video-player-wrap {
    background: var(--bg-white);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
}
.video-player-header {
    padding: 24px 28px 16px;
    border-bottom: 1px solid var(--border);
}
.vp-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.vp-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
}
.video-player-box {
    position: relative;
    width: 100%;
    background: #000;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.main-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.video-player-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    cursor: pointer;
    transition: opacity .3s;
}
.video-player-placeholder.hidden {
    opacity: 0;
    pointer-events: none;
}
.vpp-inner {
    text-align: center;
    color: #fff;
}
.vpp-play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    margin: 0 auto 16px;
    transition: var(--tr);
    animation: playPulse 2s ease-in-out infinite;
}
.video-player-placeholder:hover .vpp-play-btn {
    background: rgba(37,99,235,.5);
    border-color: var(--primary-light);
    transform: scale(1.1);
}
@keyframes playPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.3); }
    50% { box-shadow: 0 0 0 20px rgba(255,255,255,0); }
}
.vpp-text {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.vpp-hint {
    font-size: .82rem;
    opacity: .6;
    margin-bottom: 2px;
}
.vpp-note {
    font-size: .78rem;
    opacity: .5;
}

/* 视频信息栏 */
.video-player-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 12px;
}
.vpi-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.vpi-meta {
    font-size: .85rem;
    color: var(--text-light);
}
.vpi-cat {
    font-size: .75rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(37,99,235,.1);
    padding: 3px 10px;
    border-radius: 20px;
}
.vpi-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.vpi-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--bg-white);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--tr);
    display: flex;
    align-items: center;
    justify-content: center;
}
.vpi-btn:hover {
    border-color: var(--accent);
    background: rgba(245,158,11,.08);
    transform: translateY(-2px);
}
.vpi-consult {
    font-size: .85rem;
    padding: 8px 20px !important;
}

/* 视频简介 */
.video-player-desc {
    padding: 20px 28px 28px;
}
.video-player-desc h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.video-player-desc p {
    font-size: .9rem;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 14px;
}
.vpd-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.vpd-tag {
    font-size: .78rem;
    color: var(--primary);
    background: rgba(37,99,235,.06);
    padding: 4px 12px;
    border-radius: 6px;
    transition: var(--tr);
    cursor: pointer;
}
.vpd-tag:hover {
    background: rgba(37,99,235,.15);
}

/* ===================================
   视频网格列表
   =================================== */
.videos-grid-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.vg-heading {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
}
.vg-count {
    font-size: .88rem;
    color: var(--text-light);
}

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

/* 视频卡片 */
.video-card {
    background: var(--bg-white);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--tr);
    display: flex;
    flex-direction: column;
}
.video-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

/* 缩略图 */
.vc-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.vc-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
    position: relative;
    transition: var(--tr);
}
.video-card:hover .vc-thumb-placeholder {
    transform: scale(1.05);
}
.vc-thumb-icon {
    font-size: 2.5rem;
    opacity: .5;
    transition: var(--tr);
}
.video-card:hover .vc-thumb-icon {
    opacity: .8;
    transform: scale(1.1);
}
.vc-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--tr);
    background: rgba(0,0,0,.3);
}
.video-card:hover .vc-play-overlay {
    opacity: 1;
}
.vc-play-overlay span {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(37,99,235,.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    border: 2px solid rgba(255,255,255,.4);
    transform: scale(.8);
    transition: var(--tr);
}
.video-card:hover .vc-play-overlay span {
    transform: scale(1);
}
.vc-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,.75);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    z-index: 2;
}
.vc-cat-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: .72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    color: #fff;
    z-index: 2;
    backdrop-filter: blur(8px);
}
.vc-cat-operation { background: rgba(37,99,235,.85); }
.vc-cat-function  { background: rgba(16,185,129,.85); }
.vc-cat-tips      { background: rgba(245,158,11,.85); }
.vc-cat-case      { background: rgba(124,58,237,.85); }

/* 卡片正文 */
.vc-body {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.vc-title {
    font-size: .98rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--tr);
}
.video-card:hover .vc-title {
    color: var(--primary);
}
.vc-desc {
    font-size: .84rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.vc-meta {
    display: flex;
    gap: 14px;
    font-size: .78rem;
    color: var(--text-light);
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

/* 空状态 */
.videos-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}
.ve-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}
.videos-empty p {
    font-size: 1rem;
}

/* ===================================
   右侧边栏
   =================================== */
.videos-sidebar {
    position: sticky;
    top: 140px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 热门视频列表 */
.vs-hot-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.vs-hot-item {
    display: flex;
    gap: 12px;
    padding: 10px 8px;
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: var(--tr);
    align-items: flex-start;
}
.vs-hot-item:hover {
    background: rgba(37,99,235,.05);
}
.vsh-rank {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--border);
    color: var(--text-light);
    font-size: .8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.vs-hot-item:nth-child(1) .vsh-rank { background: linear-gradient(135deg, #ef4444, #f97316); color: #fff; }
.vs-hot-item:nth-child(2) .vsh-rank { background: linear-gradient(135deg, #f59e0b, #eab308); color: #fff; }
.vs-hot-item:nth-child(3) .vsh-rank { background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff; }
.vsh-info {
    flex: 1;
    min-width: 0;
}
.vsh-title {
    font-size: .86rem;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 4px;
    transition: var(--tr);
}
.vs-hot-item:hover .vsh-title {
    color: var(--primary);
}
.vsh-meta {
    font-size: .76rem;
    color: var(--text-light);
}

/* 分类统计 */
.vs-cat-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.vscs-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.vscs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.vscs-name {
    font-size: .85rem;
    color: var(--text-mid);
    font-weight: 500;
}
.vscs-count {
    font-size: .78rem;
    color: var(--text-light);
    font-weight: 600;
}
.vscs-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}
.vscs-fill {
    height: 100%;
    border-radius: 3px;
    transition: width .8s ease;
}

/* 咨询入口 */
.vs-consult-block {
    text-align: center;
    background: linear-gradient(135deg, rgba(37,99,235,.05), rgba(124,58,237,.05));
}
.vs-consult-text {
    font-size: .95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}
.vs-consult-sub {
    font-size: .82rem;
    color: var(--text-light);
    margin-bottom: 16px;
}
.vs-consult-btn {
    width: 100%;
    text-align: center;
}

/* ===================================
   响应式
   =================================== */
@media (max-width: 1024px) {
    .videos-page-layout {
        grid-template-columns: 1fr;
    }
    .videos-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .vs-consult-block {
        grid-column: 1 / -1;
    }
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .videos-banner {
        padding: 100px 0 36px;
    }
    .videos-banner-icon {
        font-size: 2.2rem;
    }
    .videos-banner h1 {
        font-size: 1.8rem;
    }
    .vbs-num {
        font-size: 1.4rem;
    }
    .vbs-divider {
        display: none;
    }

    .videos-filter-section {
        top: 60px;
        padding: 14px 0;
    }
    .videos-filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }
    .vft-btn {
        padding: 7px 16px;
        font-size: .85rem;
        flex-shrink: 0;
    }

    .video-player-header {
        padding: 18px 16px 12px;
    }
    .vp-title {
        font-size: 1.15rem;
    }
    .video-player-info {
        padding: 12px 16px;
    }
    .vpi-left {
        gap: 10px;
    }
    .vpi-meta {
        font-size: .78rem;
    }
    .vpi-consult {
        font-size: .8rem;
        padding: 7px 16px !important;
    }
    .video-player-desc {
        padding: 16px;
    }

    .videos-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .vc-title {
        font-size: .92rem;
    }

    .videos-sidebar {
        grid-template-columns: 1fr;
    }

    .vg-heading {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .videos-banner-stats {
        gap: 16px;
    }
    .vbs-num {
        font-size: 1.2rem;
    }
    .vpp-play-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    .vpp-text {
        font-size: 1rem;
    }
}
