/* ==========================================================================
   CM Weather - 天气浮窗（左下角，全平台统一样式）
   ========================================================================== */

/* 左下角悬浮按钮 */
.cm-weather-fab {
    position: fixed;
    left: 18px;
    bottom: 78px;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(22, 27, 34, 0.88);
    color: #e6edf3;
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cm-weather-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); }
.cm-weather-fab:active { transform: scale(0.96); }
.cm-weather-fab .cm-weather-fab-emoji { font-size: 1.25rem; line-height: 1; }
.cm-weather-fab .cm-weather-fab-temp { font-weight: 700; letter-spacing: -0.01em; }

/* 浮窗面板 */
.cm-weather-panel {
    position: fixed;
    left: 18px;
    bottom: 124px;
    z-index: 9999;
    width: 300px;
    max-width: calc(100vw - 36px);
    background: linear-gradient(160deg, #1b2838 0%, #0f1a24 100%);
    color: #e6edf3;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    padding: 20px 18px 16px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(.2, .9, .3, 1.15);
}
.cm-weather-panel.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
.cm-weather-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #8f98a0;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: color .15s, background .15s;
}
.cm-weather-close:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.cm-weather-loc { font-size: 0.8rem; color: #8f98a0; margin-bottom: 8px; letter-spacing: .01em; }
.cm-weather-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.cm-weather-emoji { font-size: 3rem; line-height: 1; }
.cm-weather-temp { font-size: 2.9rem; font-weight: 700; letter-spacing: -.03em; color: #fff; }
.cm-weather-temp i { font-style: normal; font-size: 1.3rem; color: #8f98a0; margin-left: 2px; font-weight: 500; }
.cm-weather-cond { font-size: 1rem; color: #c7d5e0; margin-top: 2px; }
.cm-weather-meta {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
    font-size: 0.76rem;
    color: #8f98a0;
    flex-wrap: wrap;
}
.cm-weather-loading { padding: 24px 10px; color: #8f98a0; font-size: 0.9rem; }

@media (max-width: 480px) {
    .cm-weather-fab { left: 12px; bottom: 72px; padding: 7px 12px; }
    .cm-weather-panel { left: 12px; bottom: 118px; width: 270px; padding: 18px 14px 14px; }
    .cm-weather-emoji { font-size: 2.6rem; }
    .cm-weather-temp { font-size: 2.4rem; }
}
