﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.video-container {
    width: 100%;
    background-color: #e4edc7;
    border-radius: 8px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
    padding-left: 20px;
}

.tab-bar {
    display: flex;
    border-bottom: 1px solid #ebeef5;
}

.tab-item {
    padding: 18px 32px;
    font-size: 16px;
    color: #606266;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

    .tab-item.active {
        color: #ffffff;
        /*background-color: #3b6ee9;*/
        background-color: #569056;
    }

    .tab-item:hover:not(.active) {
        color: #3b6ee9;
    }

.search-bar {
    display: flex;
    align-items: center;
    padding: 24px;
    gap: 16px;
}

.search-input {
    flex: 1;
    width: 400px;
    max-width: 400px;
    padding: 12px 16px 12px 40px;
    border: 1px solid #606266;
    border-radius: 8px;
    font-size: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23909399' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat left 12px center;
}

.search-btn {
    padding: 12px 28px;
    /*background-color: #3b6ee9;*/
    background-color: #569056;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
}

.sort-text {
    margin-left: auto;
    font-size: 14px;
    color: #606266;
}

.video-table {
    width: 100%;
    border-collapse: collapse;
}

    .video-table th {
        text-align: left;
        padding: 12px 24px;
        color: #909399;
        font-size: 14px;
        background-color: #fafafa;
        font-weight: normal;
    }

    .video-table td {
        padding: 18px 24px;
        border-bottom: 1px solid #f5f7fa;
        font-size: 15px;
    }

.video-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.play-icon {
    width: 18px;
    height: 18px;
    border: 2px solid #3b6ee9;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

    .play-icon::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 55%;
        transform: translate(-50%, -50%);
        border-top: 5px solid transparent;
        border-bottom: 5px solid transparent;
        border-left: 8px solid #3b6ee9;
    }

    .play-icon.hot {
        border-color: #e64343;
    }

        .play-icon.hot::after {
            border-left-color: #e64343;
        }

.hot-tag {
    background-color: #fde2e2;
    color: #e64343;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

.hot-title {
    color: #e64343;
    font-weight: 500;
}

.update-time, .video-duration, .source-text {
    color: #909399;
}

.play-btn, .detail-btn {
    color: #3b6ee9;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

    .play-btn.hot {
        color: #e64343 !important;
        font-weight: 500;
    }

/* 分享图标 */
.share-icon {
    font-size: 17px;
    color: #909399;
    cursor: pointer;
    user-select: none;
}

    .share-icon:hover {
        color: #3b6ee9;
    }

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    gap: 8px;
    border-top: 0px solid #f5f7fa;
}

.page-item {
    height: 32px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #909399;
    border-radius: 16px;
    font-size: 14px;
    color: #606266;
    cursor: pointer;
}

    .page-item.active {
        background-color: #569056;
        color: #fff;
        border-color: #3b6ee9;
    }

    /* 鼠标按下时 */
.pagination a:visited {
    height: 32px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ebeef5;
    border-radius: 16px;
    font-size: 14px;
    color: #606266;
    cursor: pointer;
    background-color: #3b6ee9;
    color: #fff;
    border-color: #3b6ee9;
}

.page-item.disabled {
    color: #c0c4cc;
    cursor: not-allowed;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }

/* 弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-box {
    background: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    padding: 24px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
}

.modal-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 16px;
}

.modal-content {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.video-placeholder {
    width: 100%;
    height: 300px;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.modal-play-icon {
    width: 80px;
    height: 80px;
    border: 4px solid #fff;
    border-radius: 50%;
    margin-bottom: 20px;
    position: relative;
}

    .modal-play-icon::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 55%;
        transform: translate(-50%,-50%);
        border-top: 20px solid transparent;
        border-bottom: 20px solid transparent;
        border-left: 30px solid #fff;
    }

/* 分享弹窗 */
#shareModal .modal-content {
    text-align: center;
    padding: 20px 0;
}

.share-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}

.share-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #606266;
}

    .share-item:hover {
        color: #3b6ee9;
    }
