/* Home specific styles */
.mui-slider {
    min-height: 150px;
    background: #f1f5f9;
}
/* 优化图片加载显示逻辑，移除原本的 opacity: 0 延迟感 */
.mui-slider .mui-slider-group .mui-slider-item img {
    opacity: 1; /* 直接显示，不搞淡入动画，减少感知延迟 */
}

.sct-notice-bar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sct-notice-bar li {
    height: 25px;
    line-height: 25px;
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
}

/* 明星视频播放弹窗样式 */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container {
    width: 90%;
    max-width: 500px; /* 电脑端限制最大宽度，防止铺满全屏太丑 */
    position: relative;
    margin: 0 auto;
}

.video-title {
    color: #fff;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.8);
    background: linear-gradient(to bottom, #fff 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.close-video {
    position: absolute;
    top: 10px; /* 从原本的负值改回正值，放进视频容器内部 */
    right: 10px; /* 放在右侧内部 */
    color: #fff;
    font-size: 24px;
    width: 32px;
    height: 32px;
    line-height: 28px; /* 居中微调 */
    text-align: center;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5); /* 黑色半透明背景，确保在白色背景视频下也能看清 */
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    z-index: 10001;
    transition: all 0.3s;
}

/* 电脑端适配：当宽度大于 768px 时 */
@media screen and (min-width: 768px) {
    .close-video {
        top: -40px; /* 电脑端屏幕大，可以继续放外面，更好看 */
        right: -40px;
        width: 40px;
        height: 40px;
        line-height: 36px;
        font-size: 30px;
    }
}

.close-video:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

#adv-video {
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    background: #000;
    display: block;
}

.video-wrapper {
    position: relative;
    width: 100%;
    min-height: 200px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    color: #fff;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 悬浮气泡挂件样式 */
.video-pendant-bubble {
    position: fixed;
    right: 15px;
    bottom: 85px;
    z-index: 9999;
    width: 65px;
    height: 65px;
    cursor: pointer;
}

.bubble-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.4);
    border: 2px solid #f7d6a1;
}

.star-head-img {
    width: 75%;
    height: 75%;
    border-radius: 50%;
    background: #fff;
    object-fit: contain; /* 改为 contain 确保 LOGO 显示完整 */
    padding: 2px; /* 增加一点内边距，让 LOGO 更精致 */
    z-index: 2;
}

.unread-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ff3b30;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    border: 2px solid #fff;
    z-index: 4;
    box-shadow: 0 2px 5px rgba(255, 59, 48, 0.4);
}

.message-pop {
    position: absolute;
    right: 70px; /* 弹窗在头像左侧 */
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: #1e3a8a;
    font-size: 12px;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 12px 12px 0 12px;
    white-space: nowrap;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #3b82f6;
    animation: message-slide 4s infinite;
}

/* 消息气泡淡入淡出动画 */
@keyframes message-slide {
    0%, 10% { opacity: 0; transform: translateY(-50%) translateX(10px); }
    20%, 80% { opacity: 1; transform: translateY(-50%) translateX(0); }
    90%, 100% { opacity: 0; transform: translateY(-50%) translateX(10px); }
}

/* 呼吸波纹动画 */
.wave-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.4);
    animation: wave-anim 2s infinite;
    z-index: 1;
}

@keyframes wave-anim {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* 挂件整体浮动动画 */
@keyframes bubble-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.video-pendant-bubble {
    animation: bubble-float 3s ease-in-out infinite;
}
