/* ===================================================================
   feature-section.css (Video Fit Fix)
   =================================================================== */

/* Section container */
.warkai-flipper-section {
    padding: 0;
    margin-top: 20px;
    background-color: #000; /* 修改为黑色 */
    height: 300px;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    perspective: 1500px;
    cursor: pointer;
}

/* Flipper logic */
.warkai-flipper-section .flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.warkai-flipper-section.flipped .flipper {
    transform: rotateY(180deg);
}

/* Front and back faces */
.warkai-flipper-section .front,
.warkai-flipper-section .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.warkai-flipper-section .front {
    background-color: #000;
}

.warkai-flipper-section .back {
    background-color: #000;
    transform: rotateY(180deg);
}

.warkai-flipper-section .section-content {
    position: relative;
    z-index: 2;
}

.warkai-flipper-section .section-content h2 {
    font-size: 3em;
    margin-bottom: 10px;
}

.warkai-flipper-section .section-content p {
    font-size: 1.2em;
    color: #ccc;
}

.warkai-flipper-section .background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 使用 max-width 和 max-height 来控制视频大小，防止溢出 */
    max-width: 100%;
    max-height: 100%;
    /* 【关键修改】确保视频完整显示，而不是裁剪填充 */
    object-fit: contain;
    opacity: 0.7;
}