/* 全局重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft Yahei", "PingFang SC", sans-serif;
    background-color: #f8f9fa;
    padding: 0 10px;
}

/* 顶部留白占位 */
.top-spacing {
    height: 10px;
}

/* 视频模块容器 */
.guidang {
    overflow: hidden;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    background: #fff;
    margin: 15px auto;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 提示文案样式 */
.video-tips {
    background: #f2f5f9;
    padding: 20px;
    font-size: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.video-tips p {
    text-align: center;
    line-height: 1.8;
    margin: 0;
}

.video-tips strong {
    font-size: 16px;
    color: #333;
}

.tips-small {
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

.tips-highlight {
    color: #b700ff;
    font-weight: 600;
}

/* 按钮区域样式 */
.btn-group {
    height: auto;
    padding: 15px 10px;
    text-align: center;
    margin-bottom: 10px;
}

.btn-control {
    background: #007bf5;
    color: #fff;
    font-size: 16px;
    border: none;
    height: 44px;
    padding: 0 25px;
    margin: 0 8px;
    border-radius: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.btn-control:hover {
    background: #0068d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,245,0.2);
}

.btn-control:active {
    transform: translateY(0);
}

.btn-switch.off {
    background: #909399;
}

.btn-switch.off:hover {
    background: #7d8086;
}

/* 视频容器与加载状态 */
.video-container {
    position: relative;
    width: 100%;
    margin: 10px 0;
}

.loading-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 16px;
    z-index: 1;
    display: none;
}

#player {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
    background: #000;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .guidang {
        padding: 15px;
        margin: 10px auto;
    }

    .video-tips {
        padding: 15px;
        font-size: 14px;
    }

    .btn-control {
        font-size: 14px;
        height: 40px;
        padding: 0 20px;
        margin: 0 5px;
    }

    .top-spacing {
        height: 50px;
    }
}