.ms-video-section {
    padding: 40px 0;
}

.ms-video-category {
    margin-bottom: 50px;
}

.ms-video-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-orange);
}

.ms-video-category-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.ms-video-category-more {
    font-size: 14px;
    color: #ffffff;
    font-weight: 600;
    transition: var(--transition);
}

.ms-video-category-more:hover {
    color: #e36622;
}

.ms-video-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.ms-video-item {
    width: 25%;
    padding: 0 15px;
    margin-bottom: 30px;
    transition: var(--transition);
}

.ms-video-item:hover {
    transform: translateY(-5px);
}

.ms-video-thumb {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.ms-video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.ms-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.ms-video-play {
    width: 60px;
    height: 60px;
    background: var(--primary-orange);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    transform: scale(0.8);
}

.ms-video-play:hover {
    background: #e36622;
    transform: scale(0.9);
}

.ms-video-play::before {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 4px;
}

.ms-video-thumb:hover .ms-video-overlay {
    opacity: 1;
}

.ms-video-thumb:hover img {
    transform: scale(1.05);
}

.ms-video-title {
    margin-top: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
    text-align: center;
}

/* YouTube视频悬浮框样式 */
.ms-video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ms-video-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.ms-video-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
}

.ms-video-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.ms-video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.ms-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .ms-video-item {
        width: 33.333%;
    }
}

@media (max-width: 768px) {
    .ms-video-item {
        width: 50%;
    }
    
    .ms-video-category-title {
        font-size: 20px;
    }
    
    .ms-video-title {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .ms-video-item {
        width: 50%;
    }
    
    .ms-video-section {
        padding: 20px 0;
    }
    
    .ms-video-category-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ms-video-category-more {
        margin-top: 10px;
    }
    
    .ms-video-modal-content {
        margin: 10px;
    }
	.ms-video-title {
        font-size: 13px;
        line-height: 1.3;
    }
}