/*!
 * modal-styles.css
 * 二维码弹窗及视频播放组件样式库
 *
 * 功能模块：
 * 1. 按钮组样式（主按钮/次级按钮）
 * 2. 二维码弹窗系统
 * 3. 视频封面及全屏播放器
 * 4. 响应式布局基础样式
 *
 * 维护说明：
 * - 所有颜色值需同步主题系统变量
 * - 弹窗z-index层级已预设为999-1000范围
 */

/* ================= 按钮组件 ================= */
/* 按钮容器（水平排列） */
.btnbox {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* 主按钮基础样式 */
.a_btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #1D87F3;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

/* 主按钮悬停状态 */
.a_btn:hover {
    background-color: #1770D0;
}

/* 次级按钮配色方案 */
.a_btn2 {
    background-color: #FF6B00;
}

/* 次级按钮悬停状态 */
.a_btn2:hover {
    background-color: #E05A00;
}

/* ================= 二维码弹窗系统 ================= */
/* 弹窗遮罩层 */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

/* 弹窗内容区域 */
.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    text-align: center;
    position: relative;
}

/* 关闭按钮定位 */
.close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

/* 二维码展示容器 */
#qrcodeContainer {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

/* 二维码图片尺寸控制 */
#qrcodeImage {
    width: 200px;
    height: 200px;
}

/* 弹窗标题样式 */
#modalTitle {
    color: #333;
    margin-bottom: 15px;
}

/* ================= 视频播放系统 ================= */
/* 视频封面容器（可点击区域） */
.pic.viddata {
    cursor: pointer;
    position: relative;
    display: inline-block;
    margin: 10px;
}

/* 视频封面图片样式 */
.video-cover {
    height: auto;
    border-radius: 5px;
    display: block; /* 默认显示封面 */
}

/* 全屏视频播放器容器 */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

/* 视频内容区域（响应式控制） */
.video-modal-content {
    position: relative;
    width: 80%;
    max-width: 800px;
}

/* 视频元素自适应规则 */
.modal-video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    border-radius: 5px;
}

/* 视频关闭按钮定位 */
.video-close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* 视频关闭按钮悬停状态 */
.video-close-btn:hover {
    color: #ccc;
}

/* 图片查看模态框样式 */
.image-viewer-modal {
    display: none;
    position: fixed;
    z-index: 9999; /* 确保在最上层 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    text-align: center;
    overflow: auto;
}

.image-viewer-content {
    max-width: 95%;
    max-height: 90vh;
    margin: 2% auto;
    display: block;
    animation: fadeIn 0.3s;
}

.image-close-btn {
    position: fixed;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.image-close-btn:hover {
    color: #ccc;
}

.image-caption {
    color: #fff;
    padding: 10px;
    text-align: center;
    font-size: 1.2em;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}