/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 禁止文字选择 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 视频背景样式 */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 支持高分辨率显示 */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* 音乐播放弹窗样式 */
.music-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 280px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    overflow: hidden;
    animation: slideIn 0.5s ease-out;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
}

.popup-title {
    font-size: 1.1rem;
    font-weight: bold;
}

.close-btn {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.popup-content {
    padding: 20px;
    text-align: center;
}

.music-status {
    font-size: 1rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

.pause-btn {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

.pause-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.6);
}

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

.pause-btn.playing .pause-icon::before {
    content: '▶';
}

.pause-icon {
    font-size: 1.1rem;
}

/* 隐藏弹窗 */
.music-popup.hidden {
    display: none;
}

/* 主要内容容器 */
.container {
    width: 100%;
    text-align: center;
    padding: 20px;
    z-index: 1;
}

/* 日期信息样式 - 改为粉色 */
.date-info {
    color: rgba(255, 105, 180, 0.6);
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: bold;
}

/* 时间显示区域样式 */
.time-display {
    font-size: 15rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

/* 粉色半透明数字样式 - 半透明效果，能看到背景画面 */
.time-digit {
    color: rgba(255, 105, 180, 0.4);
    -webkit-text-stroke: 1px rgba(255, 105, 180, 0.6);
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
    letter-spacing: 5px;
    transform: translateY(8.6px);
}

/* 时间分隔符样式 - 与数字保持一致，使用粉色 */
.time-separator {
    color: rgba(255, 105, 180, 0.4);
    -webkit-text-stroke: 1px rgba(255, 105, 180, 0.6);
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
    transform: translateY(8.6px);
}

/* 自定义文字样式 */
.custom-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.custom-text span {
    position: relative;
    padding: 0 20px;
}

.custom-text span::before,
.custom-text span::after {
    content: '·';
    position: absolute;
    top: 0;
    color: rgba(255, 255, 255, 0.6);
}

.custom-text span::before {
    left: 0;
}

.custom-text span::after {
    right: 0;
}

/* 数字闪烁动画 - 用于秒、分、小时数字 */
@keyframes blink {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.2;
    }
}

/* 闪烁类 - 用于触发动画 */
.blink {
    animation: blink 0.5s ease-in-out;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .time-display {
        font-size: 10rem;
    }
    
    .music-popup {
        width: 260px;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 768px) {
    .time-display {
        font-size: 6rem;
        gap: 10px;
    }
    
    .date-info {
        font-size: 1.2rem;
    }
    
    .custom-text {
        font-size: 1.2rem;
    }
    
    .music-popup {
        width: 240px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        top: 10px;
    }
    
    .music-popup.hidden {
        display: none;
    }
    
    @keyframes slideIn {
        from {
            transform: translateX(-50%) translateY(-100%);
            opacity: 0;
        }
        to {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }
    }
}

@media (max-width: 480px) {
    .time-display {
        font-size: 4rem;
        gap: 5px;
    }
    
    .date-info {
        font-size: 1rem;
    }
    
    .custom-text {
        font-size: 1rem;
    }
    
    .music-popup {
        width: 90%;
        max-width: 280px;
    }
}
