/* 全局样式重置 */
* {
    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;
}

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

/* 日期信息样式 */
.date-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

/* 粉色透明数字样式 - 中间有透明横线，对准红色圈中的线条 */
.time-digit {
    /* 设置背景渐变，中间有一条约0.9厘米宽的完全透明横线，使用粉色 */
    background: linear-gradient(
        to bottom,
        rgba(255, 105, 180, 0.6) 0%,
        rgba(255, 105, 180, 0.6) 48.5%,
        rgba(0, 0, 0, 0) 48.5%,
        rgba(0, 0, 0, 0) 51.5%,
        rgba(255, 105, 180, 0.6) 51.5%,
        rgba(255, 105, 180, 0.6) 100%
    );
    /* 将背景应用到文字上 */
    -webkit-background-clip: text;
    background-clip: text;
    /* 文字颜色设为透明，只显示背景渐变 */
    color: transparent;
    /* 移除文字描边，添加微微发光效果 */
    -webkit-text-stroke: none;
    /* 添加粉色微微发光效果 */
    text-shadow: 0 0 5px rgba(255, 105, 180, 0.5);
    letter-spacing: 5px;
    /* 将数字再往上抬0.2毫米（约0.8像素，从9.4px调整为8.6px） */
    transform: translateY(8.6px);
}

/* 时间分隔符样式 - 与数字保持一致，使用粉色，移除闪烁动画 */
.time-separator {
    color: rgba(255, 105, 180, 0.6);
    /* 移除文字描边和阴影，与数字保持一致 */
    -webkit-text-stroke: none;
    text-shadow: none;
    /* 将分隔符与数字一起再往上抬0.2毫米（约0.8像素，从9.4px调整为8.6px） */
    transform: translateY(8.6px);
}

/* 自定义文字样式 */
.custom-text {
    color: rgba(255, 255, 255, 0.8);
    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.8);
}

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

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

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

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

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

@media (max-width: 768px) {
    .time-display {
        font-size: 6rem;
        gap: 10px;
    }
    
    .date-info {
        font-size: 1rem;
    }
    
    .custom-text {
        font-size: 1.2rem;
    }
}

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