/* 天气组件样式 */
#weather-widget {
    display: flex;
    align-items: center;
    padding: 0 8px;
    user-select: none;
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
}

.weather-icon {
    font-size: 1rem;
    color: #f59e0b;
}

.weather-temp {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bs-body-color, #334155);
}

.weather-city {
    font-size: 0.7rem;
    color: var(--bs-secondary-color, #64748b);
}

[data-bs-theme="dark"] .weather-temp {
    color: #e0e0e0;
}

[data-bs-theme="dark"] .weather-city {
    color: #a0a0a0;
}

/* 城市选择面板 */
.weather-city-panel {
    position: fixed;
    top: 60px;
    right: 16px;
    width: 200px;
    background: var(--bs-body-bg, #fff);
    border: 1px solid var(--bs-border-color, #e2e8f0);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
    z-index: 1100;
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.weather-city-panel.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.weather-city-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--bs-border-color, #e2e8f0);
    font-weight: 600;
    font-size: 0.9rem;
}

.weather-city-close {
    background: none;
    border: none;
    color: var(--bs-secondary-color, #94a3b8);
    cursor: pointer;
    font-size: 0.9rem;
}

.weather-city-list {
    padding: 6px;
    max-height: 240px;
    overflow-y: auto;
}

.weather-city-item {
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.15s;
}

.weather-city-item:hover {
    background: var(--bs-tertiary-bg, #f1f5f9);
    color: #3b82f6;
}

[data-bs-theme="dark"] .weather-city-panel {
    background: #2d2d2d;
    border-color: #404040;
}

[data-bs-theme="dark"] .weather-city-header {
    border-color: #404040;
}

[data-bs-theme="dark"] .weather-city-item:hover {
    background: #3a3a3a;
}

@media (max-width: 768px) {
    #weather-widget {
        display: none;
    }
}
