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

body, html {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #2c3e50;
    font-family: sans-serif;
    color: white;
    overflow: hidden;
}

.container {
    text-align: center;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* 添加居中对齐 */
}

.clock {
    font-size: 8vw;
    min-width: 300px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.date {
    font-size: 2.0vw;
    margin-bottom: 5px;
}

.time-zone {
    font-size: 1.5vw;
    margin-bottom: 20px;
}

.time-warning {
    font-size: 1.2vw;
    height: 20px;
    margin-bottom: 10px;
}

.progress-container {
    position: relative;
    width: 80vw;
    max-width: 800px;
    height: 30px; /* 固定高度 */
    margin: 0 auto 20px;
    display: none; /* 默认隐藏 */
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: background 0.01s linear;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 添加阴影提高美观性 */
}

.static-progress-marker {
    position: absolute;
    top: 50%;
    height: 12px;
    width: 12px;
    background-color: #ff4d4d;
    border-radius: 50%; /* 改为圆形 */
    transform: translate(-50%, -50%); /* 调整定位 */
}

.progress-marker-label {
    position: absolute;
    top: auto;
    bottom: -20px; /* 改为底部定位 */
    left: 0;
    transform: translateX(-50%);
    font-size: 10px;
    color: #ff4d4d;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5); /* 添加文字阴影 */
}

.progress-indicator {
    position: absolute;
    top: -2px;
    width: 4px;
    height: 12px;
    background-color: #fff;
    border-radius: 2px;
    transform: translateX(-50%);
    z-index: 10;
    transition: left 0.05s ease-out; /* 添加平滑过渡效果 */
    box-shadow: 0 1px 3px rgba(0,0,0,0.3); /* 添加阴影 */
}

.progress-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.icp {
    position: fixed;
    bottom: 15px;
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #bdc3c7;
    padding: 5px 0;
}

.icp a {
    color: #bdc3c7;
    text-decoration: none;
    user-select: text;
}

.icp a:hover {
    color: #4285f4;
}

body.red-background {
    background-color: #ff4d4d;
}

@media (max-width: 768px) {
    .clock {
        font-size: 12vw;
    }
    .date {
        font-size: 2.8vw;
    }
    .time-zone {
        font-size: 2.0vw;
    }
    .time-warning {
        font-size: 1.6vw;
    }
    .progress-container {
        width: 90vw; /* 移动端更宽 */
        height: 25px; /* 移动端稍矮 */
    }
    .progress-bar {
        height: 6px; /* 移动端更细 */
    }
    .progress-marker-label {
        font-size: 8px; /* 移动端字体更小 */
        bottom: -18px;
    }
}

@media (max-width: 480px) {
    .clock {
        font-size: 18vw;
    }
    .date {
        font-size: 4.0vw;
    }
    .time-zone {
        font-size: 2.8vw;
    }
    .time-warning {
        font-size: 2.2vw;
    }
    .progress-container {
        width: 95vw;
        height: 22px;
    }
    .progress-bar {
        height: 5px;
    }
    .progress-marker-label {
        font-size: 7px;
        bottom: -16px;
    }
}