.weather-container {
    position: fixed;
    top: 20px;
    left: 20px;
    margin: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: fit-content;
}

.weather-container.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.weather-container:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.weather-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.weather-icon {
    font-size: 1.3em;
}

.weather-temp {
    font-size: 1.1em;
    font-weight: 700;
}

.weather-detail {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    opacity: 0.9;
    line-height: 1.3;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    padding-left: 12px;
}

.weather-desc {
    font-weight: 500;
}

.weather-location {
    font-size: 0.9em;
    opacity: 0.8;
}

.weather-loading, .weather-error {
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 24h 预报模态框已由 Tailwind 替代，仅保留关键动画 */
.weather-forecast-overlay.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.weather-forecast-overlay.active .weather-forecast-modal {
    transform: scale(1) !important;
}

