body {
	font-family:Arial,sans-serif;
	background-color:#f5f5f5;
}
body.modal-open {
	opacity:1;
}
.container {
	max-width:1600px;
	margin:0 auto;
	padding:10px 0px;
}
/* 容器样式 */
        .image-text-container {
	/* 相对定位，让文字可以绝对定位在图片上方 */
            position:relative;
	/* 确保容器宽度不超过图片 */
            max-width:100%;
	/* 居中显示 */
}
/* 图片样式 */
        .image-text-container img {
	/* 图片宽度100%适应容器 */
            width:100%;
	/* 高度自动保持比例 */
            height:auto;
	/* 确保图片显示完整 */
            display:block;
}
/* 文字容器样式 */
        .text-overlay {
	/* 绝对定位在图片上方 */
            position:absolute;
	/* 覆盖整个图片 */
            top:0;
	left:0;
	right:0;
	bottom:0;
	/* 背景半透明黑色，增强文字可读性 */
            background-color:rgba(0,0,0,0.5);
	/* 文字居中 */
            display:flex;
	flex-direction:column;
	justify-content:center;
	align-items:center;
	/* 白色文字 */
            color:white;
	/* 文字间距 */
            padding:20px;
	text-align:center;
}
/* 标题样式 */
        .text-overlay h2 {
	font-size:clamp(1.5rem,5vw,2.5rem);
	margin-bottom:10px;
}
/* 内容文字样式 */
        .text-overlay p {
	font-size:clamp(1rem,3vw,1.25rem);
	max-width:80%;
}
/* 响应式调整 - 小屏幕设备 */
        @media (max-width:768px) {
	.image-text-container {
	margin:0px;
	border-radius:0px;
}
.text-overlay {
	padding:15px;
}
.text-overlay p {
	max-width:90%;
}
}/* 响应式调整 - 超小屏幕设备 */
        @media (max-width:480px) {
	.text-overlay {
	padding:10px;
}
}
             .video-container {
            max-width: 1600px; /* 最大宽度1600px */
            margin: 0 auto;
            gap: 20px;
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr)); /* 默认一排四个 */
            padding: 0 10px;
        }

        .video-card {
            background-color: #fff;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
            position: relative;
            height: 100%; /* 确保卡片高度一致 */
            display: flex;
            flex-direction: column;
        }

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

        .video-link {
            text-decoration: none;
            color: inherit;
            display: block;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .video-wrapper {
            position: relative;
            padding-top: 56.25%; /* 16:9 标准视频比例 */
            background-color: #000;
            flex: 0 0 auto; /* 保持视频区域比例 */
        }

        /* 视频封面图样式 */
        .video-thumbnail {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover; /* 保持比例并覆盖整个容器 */
            z-index: 5;
            transition: opacity 0.3s ease;
        }

        video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* 视频播放时隐藏封面图 */
        video:not(:paused) ~ .video-thumbnail {
            opacity: 0;
        }

        /* 播放按钮样式 - 确保不变形 */
        .play-button {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            /* 使用固定尺寸配合相对比例，确保不变形 */
            width: 70px;
            height: 70px;
            min-width: 50px;
            min-height: 50px;
            max-width: 80px;
            max-height: 80px;
            background-color: rgba(255, 255, 255, 0.9);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10; /* 确保按钮在封面图上方 */
            transition: all 0.2s ease;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
            cursor: pointer;
        }

        .play-button::after {
            content: '';
            position: relative;
            left: 3px; /* 三角形视觉居中调整 */
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 14px 0 14px 24px;
            border-color: transparent transparent transparent #000;
        }

        .video-card:hover .play-button {
            transform: translate(-50%, -50%) scale(1.08);
            background-color: white;
            box-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
        }

        video:not(:paused) ~ .play-button {
            opacity: 0;
            pointer-events: block;
        }

        .video-info {
            padding: 16px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .video-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 8px;
            color: #333;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .video-title:hover {
            color: #0066cc;
            text-decoration: none;
        }

        /* 视频描述样式 - 响应式设计 */
        .desc-container {
            position: relative;
            font-size: 14px;
            color: #666;
            line-height: 1.5;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
            flex: 1;
        }

        /* 截断的描述文本 */
        .truncated-desc {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            flex: 1;
            min-width: 0;
        }

        /* 完整描述文本 - 默认隐藏 */
        .full-desc {
            display: none;
            margin: 0;
            animation: fadeIn 0.2s ease;
            width: 100%;
        }

        /* 展开/收起按钮 - 英文显示 */
        .toggle-desc-btn {
            background: none;
            border: 1px solid #0066cc;
            color: #0066cc;
            font-size: 13px;
            cursor: pointer;
            padding: 2px 8px;
            border-radius: 4px;
            display: flex;
            align-items: center;
            gap: 4px;
            margin-left: auto;
            transition: all 0.2s ease;
        }

        .toggle-desc-btn:hover {
            background-color: #f0f7ff;
            color: #004999;
            border-color: #004999;
        }

        /* 淡入动画 */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        /* 视频弹窗样式 */
        .video-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            padding: 40px 20px;
            box-sizing: border-box;
        }

        .video-modal.active {
            display: flex;
        }

        /* 弹窗容器 */
        .modal-container {
            position: relative;
            width: 100%;
            max-width: 1000px;
        }

        .modal-content {
            position: relative;
            width: 100%;
            max-height: 85vh;
            aspect-ratio: 16 / 9;
            z-index: 1001;
            border: 2px solid #2a2a2a;
            border-radius: 4px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
            overflow: hidden;
        }

        /* 关闭按钮样式 */
        .close-modal {
            position: absolute;
            top: -30px;
            right: 0;
            color: white;
            font-size: 28px;
            cursor: pointer;
            background-color: #2a2a2a;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s ease, background-color 0.2s ease;
            z-index: 1002;
            padding: 0;
            margin: 0;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
        }

        .close-modal:hover {
            transform: scale(1.1);
            background-color: #ff4d4d;
        }

        .modal-video {
            width: 100%;
            height: 100%;
            object-fit: contain;
            background-color: #000;
        }

        /* 响应式调整 - 确保在各种设备上正确显示 */
        /* 大屏幕设备 (> 1600px) - 保持最大宽度 */
        @media (min-width: 1601px) {
            .video-container {
                padding: 0;
            }
        }

        /* 中等屏幕设备 (768px - 1024px) - 一排显示2个 */
        @media (max-width: 1024px) {
            .video-container {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        /* 平板设备 (576px - 767px) - 一排显示2个，调整按钮大小 */
        @media (max-width: 767px) {
            .video-container {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 15px;
            }
            
            .play-button {
                width: 60px;
                height: 60px;
            }
            
            .play-button::after {
                border-width: 12px 0 12px 20px;
            }
        }

        /* 手机设备 (<= 575px) - 一排显示1个 */
        @media (max-width: 575px) {
            .video-container {
                grid-template-columns: 1fr;
                gap: 15px;
                padding: 0 8px;
            }
            
            .video-title {
                font-size: 16px;
            }
            
            .desc-container {
                font-size: 13px;
                gap: 4px;
            }
            
            .toggle-desc-btn {
                font-size: 12px;
                padding: 1px 6px;
            }
            
            .play-button {
                width: 50px;
                height: 50px;
            }
            
            .play-button::after {
                border-width: 10px 0 10px 18px;
                left: 2px;
            }
            
            .close-modal {
                top: -15px;
                right: -15px;
                font-size: 24px;
                width: 38px;
                height: 38px;
            }
            
            .video-modal {
                padding: 10px;
            }
            
            .modal-content {
                max-height: 60vh;
                border-width: 3px;
            }
        }

        /* 电脑端 (> 1024px) - 悬停显示完整描述，隐藏按钮 */
        @media (min-width: 1025px) {
            .toggle-desc-btn {
                display: none;
            }
            
            .desc-container:hover .truncated-desc {
                display: none;
            }
            
            .desc-container:hover .full-desc {
                display: block;
            }
        }