/* ============================================================
   e-karwash 视频画廊样式（从 1.html 内联样式抽取为共享文件）
   ============================================================ */

.video-section {
    margin: 70px 0 60px;
}
.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}
.video-card {
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease, box-shadow 0.3s;
    cursor: pointer;
    border: 1px solid #e2e8f0;
}
.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 36px -12px rgba(0, 0, 0, 0.2);
}
.video-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background-color: #1a2f35;
    background-size: cover;
    background-position: center;
    transition: all 0.2s;
}
.play-icon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.play-icon-overlay svg {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s;
}
.video-card:hover .play-icon-overlay svg {
    transform: scale(1.05);
}
.video-info {
    padding: 18px 20px 22px;
}
.video-info h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0e3b3a;
}
.video-info p {
    color: #4a5b5e;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 空列表占位：虚线卡片，浮于浅底色带上 */
.video-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 70px 20px;
    color: #797979;
    font-size: 1.05rem;
    background: #ffffff;
    border: 2px dashed #cfd8dc;
    border-radius: 18px;
}

/* 模态框（视频弹窗） */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}
.modal-content {
    position: relative;
    width: 90%;
    max-width: 1100px;
    background: #000;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 45px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}
.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.close-modal {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 32px;
    font-weight: bold;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    transition: 0.2s;
}
.close-modal:hover {
    background: #c0392b;
    transform: scale(1.03);
}

/* 响应式 */
@media (max-width: 760px) {
    .section-title { font-size: 1.8rem; }
    .video-info h3 { font-size: 1.2rem; }
    .modal-content { width: 95%; }
    .close-modal { width: 38px; height: 38px; font-size: 28px; top: 8px; right: 12px; }
}
@media (max-width: 480px) {
    .video-grid { grid-template-columns: 1fr; }
}
