/**
 * 欢迎页专用样式
 */

/* 设置欢迎页面特有的背景 */
body {
    background-color: #000; /* 为欢迎页面专门设置黑色背景 */
}

/* 视频容器 */
.video-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.control-buttons {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    gap: 15px;
    z-index: 100;
}

.skip-button, .sound-button {
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: 2px solid #fff;
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sound-button {
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
}

.skip-button:hover, .sound-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.sound-icon {
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.sound-on {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z'/%3E%3C/svg%3E");
}

.sound-off {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z'/%3E%3C/svg%3E");
}

.loading-indicator {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-size: 14px;
}

.progress-bar {
    width: 80%;
    max-width: 400px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 10px auto;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0;
    background-color: #1989fa;
    transition: width 0.3s ease;
}

/* 播放提示覆盖层 */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 50;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-prompt {
    text-align: center;
    color: #fff;
    background-color: #accf30;
    padding: 15px 30px;
    border-radius: 25px;
    border: none;
    max-width: 200px;
    margin-bottom: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.play-prompt:hover {
    background-color: #accf30;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.play-icon {
    display: none;
}

.play-text {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 0;
    color: #000;
}

.play-subtitle {
    display: none;
}

/* 微信环境特殊处理 */
.wechat-env .play-overlay {
    background-color: rgba(0, 0, 0, 0.9);
}

.wechat-env .play-prompt {
    background-color: #07c160;
}

.wechat-env .play-prompt:hover {
    background-color: #06ad56;
}