/* styles.css */

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
}

h2 {
    text-align: center;
    color: #000;
    padding-bottom: 20px;
    padding-top: 20px;
    background-color: #fff;
    margin: 0;
    margin-bottom: 10px;
}

/* 视频容器在小屏幕上自适应 */
#video-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 10px;
    max-width: 800px;
    margin: 0 auto 20px auto;
    min-height: 85vh;
}

.video-item {
    max-width: 800px;
    font-size: 12px;
    margin: 0 auto;
    background-color: #fafafa;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
}

iframe {
    width: 100%;
    /* 宽度占满父容器 */
    border: none;
    /* 去掉边框 */
    min-height: 300px;

}

/* 浮动按钮样式 */
.upload-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s;
}

.upload-button:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}

.upload-button:active {
    transform: scale(0.9);
}

.button-text {
    transition: transform 0.3s;
}

.upload-button:hover .button-text {
    transform: scale(1.2);
}

/* 弹窗样式 */
.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-container.hidden {
    display: none;
}

.popup {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    width: 300px;
    text-align: center;
}

.popup h3 {
    margin-top: -10px;
    margin-bottom: 20px;
}

.popup input {
    background-color: #fff;
    background-image: none;
    border-radius: 4px;
    border: 1px solid #dcdfe6;
    box-sizing: border-box;
    color: #606266;
    display: inline-block;
    font-size: inherit;
    height: 35px;
    line-height: 35px;
    outline: none;
    padding: 0 15px;
    transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
    width: 100%;
    margin-bottom: 20px;
}

.popup-buttons button {
    padding: 10px 15px;
    margin: 0 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    outline: none;
}

.popup-buttons #confirmButton {
    background-color: #007bff;
    color: white;
}

.popup-buttons #cancelButton {
    background-color: #ccc;
    color: black;
}