
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.module-item-container {
    display: flex;
    gap: 20px;
    padding: 10px 10px;
    grid-template-columns: repeat(5, 1fr);
    flex-wrap: wrap
}

.module-item {
    background: white;
    flex: 0 0 calc(20% - 20px);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: black;
}

.module-item-title {
    width: 100%;
    font-size: 25px;
    font-weight: 600;
    padding-bottom: 10px;
    text-align: center;
    white-space: nowrap; /* 强制不换行 */
    overflow: hidden; /* 隐藏溢出内容 */
    text-overflow: ellipsis; /* 溢出显示省略号 */
}

.module-item.active {
    /* 蓝色加粗底部边框 */
    border-bottom: 4px solid #006FBF;
    color: #006FBF;
}

.module-item-title.active {
    color: #006FBF;
}

.module-item-hint {
    font-size: 12px;
    font-weight: 400;
    height: 50px;
    width: 100%;
    color: #D2D2D2;
    text-align: left;
    justify-items: left;
    padding: 0;
    margin: 0 auto;
}

.app-video-hr {
    border: 0;
    height: 2px;
    margin: 3px 0;
    background-color: #EDEDED;
}


.module-item-secondary-container {
    display: flex;
    gap: 20px;
    padding: 10px 10px;
    grid-template-columns: repeat(5, 1fr);
    flex-wrap: wrap
}

.module-secondary-item {
    flex: 0 0 calc(20% - 20px);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.module-secondary-title {
    width: 100%;
    font-size: 18px;
    font-weight: 400;
    padding-bottom: 10px;
    background-color: #808080; /* 灰色 */
    opacity: 0.5; /* 整个div半透明 */
    text-align: center;
    white-space: nowrap; /* 强制不换行 */
    overflow: hidden; /* 隐藏溢出内容 */
    text-overflow: ellipsis; /* 溢出显示省略号 */
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.primary-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px 40px;
}

.primary-item {
    background: white;
    flex: 0 0 calc(20% - 20px);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: black;
}

.primary-item.selected {
    border-bottom: 4px solid #006FBF;
    color: #006FBF;
}

.primary-item:hover {
    border-radius: 8px;
    border: 1px solid #0890f3;
}


.item-title {
    font-size: 25px;
    font-weight: 600;
}

.item-meta {
    height: 50px;
    font-size: 12px;
    font-weight: 400;
    color: #D2D2D2;

    text-align: left;
    justify-items: left;
    padding: 0;
    margin: 0 auto;
}

.secondary-list {
    display: grid;
    /*grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));*/
    grid-template-columns: repeat(5, 1fr); /* 强制每行 5 列 */
    gap: 20px 40px;
}

.secondary-item {
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    position: relative; /* 定位基准 */
    display: inline-block; /* 适应图片尺寸 */
    background-color: white;
}

.secondary-item:hover {
    border-radius: 8px;
    border: 2px solid #006FBF;
}

.secondary-title {
    font-size: 23px;
    font-weight: 400;
    text-align: center;
    width: calc(100% - 20px);
    padding-top: 8px;
    height: 60px;
    position: absolute;
    bottom: 12px; /* 距底部距离 */
    background-color: rgba(0, 0, 0, 0.4); /* 半透明灰背景 */
    color: white;
    border-radius: 0 0 6px 6px;
    align-self: end;
    z-index: 10; /* 确保文字在图片上方 */
}

.secondary-img {
    width: 100%;
}

.status-indicator {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.video-bg {
    width: 90%;
    height: 90%;
    display: grid;
    margin: 0 auto;
    padding: 0;
    justify-items: center;
    align-items: center;
    text-align: center;
    border-radius: 10px;
    background: rgb(20, 20, 20, 0.8);
}

.no-data-1 {
    width: 100%;
    height: 100%;
    display: grid;
    margin: 0 auto;
    padding: 20px;
    justify-items: center;
    align-items: center;
    text-align: center;
    font-size: 20px;
    color: white;
    font-style: italic;
    background: rgb(107, 107, 107, 0.2);
    border-radius: 10px;
}

.no-data {
    width: 90%;
    height: 85%;
    display: grid;
    margin: 0 auto;
    padding: 20px;
    justify-items: center;
    align-items: center;
    text-align: center;
    font-size: 30px;
    color: white;
    font-style: italic;
    background: rgb(107, 107, 107, 0.6);
    border-radius: 20px;
}

.loading {
    display: flex;
    justify-content: center;
    padding: 30px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}


.video-close-btn {
    position: absolute;
    top: calc(15% - 90px);
    right: 10%;
    width: 36px;
    height: 36px;
    color: white;
    border-radius: 50%;
    font-size: 24px;
    text-align: center;
    line-height: 36px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.app-video {
    width: 60%;
}


/* 关键：弹窗激活时锁定body滚动 */
body.modal-open {
    overflow: hidden;
    width: 100%;
    position: fixed; /* 防止iOS跳动 */
}


/* 弹窗样式 */
.video-modal-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;

    touch-action: none; /* 禁用触摸滚动 */
    overscroll-behavior: none; /* 阻止边界回弹 */

    transition: all 0.3s ease-out;
    backdrop-filter: blur(5px);
}

.video-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}





.video-modal-content-preview {
    position: relative;
    width: 100%;
    height: 75%;
    max-height: 640px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    transition: transform 0.4s ease-out;
}

.video-modal-left-preview {
    flex:3;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
}

.video-modal-left-preview video {
    height: 100%;
    width: 100%;
    border-radius: 15px;
}

.video-modal-right-preview {
    flex: 1;
    gap: 20px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-modal-right-preview::-webkit-scrollbar {
    width: 8px;
}

.video-modal-right-preview::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.video-modal-right-preview::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}


.video-modal-right-item-preview {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    margin-left: 6px;
    margin-bottom: 10px;
    background: rgba(120,120,120,0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}


.video-modal-right-item-preview img {
    max-width: 160px;
    min-width: 160px;
    height: auto;
    width: auto;
    overflow: hidden;
    scale: inherit;
}

.video-modal-right-item-preview:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.video-modal-right-item-preview.active {
    background: rgba(255, 255, 255, 0.2);
    border-left: 4px solid #006FBE;
}

.thumbnail {
    width: 160px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-modal-right-item-preview:hover .thumbnail img {
    transform: scale(1.05);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(80,80,80,0.6);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal-right-item-preview:hover .play-icon {
    opacity: 1;
}

.play-icon i {
    color: white;
    font-size: 14px;
    margin-left: 3px;
}

.duration {
    position: absolute;
    bottom: 5px;
    right: 5px;
    color: white;
    background: rgba(80,80,80,0.8);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.video-details {
    flex: 1;
}

.video-details-h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta-small {
    display: flex;
    color: white;
    font-size: 0.85rem;
    gap: 15px;
}



.video-modal-content {
    position: relative;
    width: 95%;
    height: 85%;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: 10px 10px 10px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    transition: transform 0.4s ease-out;
}


.video-modal-left {
    flex:3;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
}

.video-modal-left video {
    height: 100%;
    width: 100%;
    border-radius: 15px;
}

.video-modal-right {
    flex: 1;
    height: 100%;
    max-width:500px;
    padding: 20px;
    margin-left: 10px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

    display: -webkit-box;
    -webkit-line-clamp: 2;
    text-align: left;
    -webkit-box-orient: vertical;

}


.video-item-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
}


/* 自定义滚动条样式（仅支持Webkit内核浏览器） */
.video-modal-right::-webkit-scrollbar {
    width: 8px; /* 滚动条宽度 */
}

.video-modal-right::-webkit-scrollbar-thumb {
    background: rgba(26, 89, 128, 0.6); /* 滑块颜色 */
    border-radius: 4px; /* 滑块圆角 */
}

.video-modal-right::-webkit-scrollbar-track {
    background: #f1f1f1; /* 轨道背景 */
}


.video-modal-right-item {
    flex: 1;
    display: flex;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
}

.video-modal-right-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.video-modal-right-item.active {
    background: rgba(255, 255, 255, 0.2);
    border-left: 4px solid #006FBE;
}

.video-modal-right-item img {
    width: 150px;
    height: 90px;
    margin-right: 10px;
    object-fit: cover;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.video-modal-right-item:hover img {
    transform: scale(1.02);
}


.video-hot-container {
    display: flex; /* 启用Flex布局 */
    justify-content: space-between; /* 图片均匀分布，两端对齐 */
    gap: 10px; /* 图片间距 */
    height: 500px;
    overflow: hidden;;
}

.video-hot-container img {
    flex: 1; /* 图片等分容器宽度 */
    max-width: 100%; /* 防止图片溢出 */
    height: 500px; /* 保持比例 */
}


@media (max-width: 768px) {

    .video-modal-content-preview {
        grid-template-columns: repeat(1, 1fr);
    }

    .module-item-container {
        grid-template-columns: repeat(1, 1fr);
    }

    .module-item {
        flex: 0 0 calc(100% - 20px);
    }

    .module-item-hint {
        font-size: 14px;
    }

    .primary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /*.secondary-list {*/
    /*    grid-template-columns: 1fr;*/
    /*}*/
    .secondary-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 10px;
    }

    .video-modal-content {
        width: 98%;
        height: 98%;
        display: grid;
    }

    .video-modal-left {
        width: 98%;
        flex: 1;
    }

    .video-modal-left video {
        border-radius: 2px;
        object-fit: cover;
    }

    .video-modal-right {
        padding: 2px;
        border-radius: 2px;
    }

    .video-item-title {
        font-size: 18px;
        font-weight: 400;
        color: white;
    }


}



