/* 清除默认边距，设置背景 */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center;     /* 垂直居中 */
    background-color: #0f172a; /* 深蓝色背景，更有科技感 */
    color: #f8fafc;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.clock-container {
    text-align: center;
}

/* “北京时间”标签 */
.label {
    font-size: 1.2rem;
    color: #94a3b8;
    letter-spacing: 0.2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* 时钟主数字 */
#clock {
    font-size: 8rem; /* 超大字体 */
    font-weight: 700;
    font-variant-numeric: tabular-nums; /* 防止数字切换时发生抖动 */
    text-shadow: 0 0 30px rgba(56, 189, 248, 0.4); /* 淡淡的发光效果 */
    margin: 10px 0;
}

/* 日期显示 */
#date {
    font-size: 1.5rem;
    color: #64748b;
    margin-top: 10px;
}

/* 响应式：针对手机缩小字体 */
@media (max-width: 600px) {
    #clock { font-size: 4rem; }
    .label { font-size: 0.9rem; }
    #date { font-size: 1.1rem; }
}