/* ===== 天气时钟卡片 ===== */

@font-face {
    font-family: 'DigitalClock';
    src: url('https://cdn.jsdelivr.net/npm/digital-7@1.0.2/digital-7.ttf') format('truetype');
    font-display: swap;
}

.card-weather-clock {
    padding: 18px 20px 14px;
    text-align: center;
    overflow: hidden;
}

/* 城市名 */
.weather-city {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* 时间 */
.weather-time {
    font-family: 'DigitalClock', 'UnidreamLED', 'Courier New', monospace;
    font-size: 42px;
    letter-spacing: 3px;
    line-height: 1.2;
    color: #2c3e50;
    margin: 4px 0;
}

/* 日期 */
.weather-date {
    font-size: 0.78em;
    color: #888;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

/* 天气信息行 */
.weather-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 0.88em;
    color: #555;
}

.weather-icon {
    font-size: 1.6em;
    line-height: 1;
}

.weather-desc {
    font-weight: 500;
    min-width: 2.5em;
}

.weather-temp {
    font-family: 'DigitalClock', 'UnidreamLED', monospace;
    font-size: 1.2em;
    color: #2c3e50;
    font-weight: 600;
}

/* 底部详情行 */
.weather-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
    font-size: 0.75em;
    color: #999;
}

.weather-details span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* 加载/错误状态 */
.weather-loading {
    color: #bbb;
    font-size: 0.8em;
    padding: 4px 0;
}

/* ===== 暗色模式 ===== */
[data-theme="dark"] .weather-time {
    color: #e0e0e0;
}
[data-theme="dark"] .weather-date {
    color: #aaa;
}
[data-theme="dark"] .weather-info {
    color: #ccc;
}
[data-theme="dark"] .weather-temp {
    color: #e0e0e0;
}
[data-theme="dark"] .weather-details {
    color: #999;
}
[data-theme="dark"] .weather-city {
    color: #aaa;
}

/* ===== 响应式 ===== */
@media screen and (max-width: 900px) {
    .weather-time {
        font-size: 34px;
    }
    .weather-info {
        gap: 10px;
    }
}
