









.wx-page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 18px 0 48px;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}



.wx-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.wx-citybox {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.wx-pin { font-size: 18px; }

.wx-city {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #1f2d3d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

.wx-citybox.is-loading .wx-city { opacity: .55; }

.wx-city-src {
    font-size: 12px;
    color: #98a6ad;
    white-space: nowrap;
}

.wx-fetching {
    font-size: 12px;
    color: #4a6ee0;
    animation: wx-blink 1s ease-in-out infinite;
}

@keyframes wx-blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.wx-searchbox {
    position: relative;
    display: flex;
    gap: 8px;
    flex: 0 1 520px;
    min-width: 260px;
}

.wx-search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #dfe4ea;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.wx-search-input:focus {
    border-color: #4a6ee0;
    box-shadow: 0 0 0 3px rgba(74, 110, 224, .12);
}

.wx-btn {
    height: 40px;
    padding: 0 16px;
    border: 1px solid #dfe4ea;
    border-radius: 8px;
    background: #fff;
    color: #4a5568;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all .18s;
}

.wx-btn:hover { border-color: #4a6ee0; color: #4a6ee0; background: #f7f9ff; }
.wx-btn:active { transform: scale(.97); }
.wx-btn:disabled { opacity: .6; cursor: not-allowed; }

.wx-btn-primary {
    background: #4a6ee0 !important;
    border-color: #4a6ee0 !important;
    color: #fff !important;
}

.wx-btn-primary:hover { background: #3b5bd0 !important; }


.wx-suggest {
    position: absolute;
    top: 46px;
    left: 0;
    right: 0;
    z-index: 60;
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(31, 45, 61, .12);
    max-height: 320px;
    overflow-y: auto;
    padding: 4px;
}

.wx-suggest-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    width: 100%;
    padding: 9px 10px;
    border: none;
    background: transparent;
    border-radius: 7px;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    color: #333;
}

.wx-suggest-item:hover { background: #f2f5ff; }
.wx-suggest-name { font-weight: 600; color: #1f2d3d; white-space: nowrap; }
.wx-suggest-meta { color: #98a6ad; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wx-suggest-loading, .wx-suggest-empty { padding: 12px; color: #98a6ad; font-size: 13px; text-align: center; }



.wx-now {
    background: #fff;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 2px 14px rgba(31, 45, 61, .07);
    border-top: 4px solid var(--wx-accent, #4a6ee0);
}

.wx-now-main {
    display: flex;
    align-items: center;
    gap: 18px;
}

.wx-now-icon { font-size: 62px; line-height: 1; }

.wx-now-temp {
    display: flex;
    align-items: flex-start;
    color: var(--wx-accent, #4a6ee0);
}

.wx-temp-value { font-size: 62px; font-weight: 700; line-height: 1; letter-spacing: -2px; }
.wx-temp-unit { font-size: 22px; font-weight: 600; margin-top: 6px; }

.wx-now-desc { min-width: 0; }
.wx-now-text { font-size: 20px; font-weight: 600; color: #1f2d3d; }
.wx-now-feels { font-size: 13px; color: #5a6b7b; }
.wx-now-time { font-size: 12px; color: #98a6ad; }

.wx-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 10px 14px;
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px dashed #eaeef4;
}

.wx-metric { margin: 0; }
.wx-metric dt { font-size: 12px; color: #98a6ad; font-weight: 400; }
.wx-metric dd { margin: 2px 0 0; font-size: 16px; font-weight: 600; color: #1f2d3d; }
.wx-metric-tip { font-size: 11px; color: #a9b4c0; display: block; }

.wx-summary {
    margin: 14px 0 0;
    padding: 13px 16px;
    background: #f4f7ff;
    border-left: 3px solid #4a6ee0;
    border-radius: 0 8px 8px 0;
    color: #3a4a5e;
    font-size: 14px;
    line-height: 1.75;
}



.wx-tabs {
    display: flex;
    gap: 8px;
    margin: 20px 0 14px;
}

.wx-tab {
    padding: 9px 22px;
    border: 1px solid #dfe4ea;
    background: #fff;
    border-radius: 999px;
    font-size: 14px;
    color: #5a6b7b;
    cursor: pointer;
    transition: all .18s;
}

.wx-tab:hover { border-color: #4a6ee0; color: #4a6ee0; }

.wx-tab.is-active {
    background: #4a6ee0;
    border-color: #4a6ee0;
    color: #fff !important;
    font-weight: 600;
}

.wx-panel { display: none; }
.wx-panel.is-active { display: block; }

.wx-panel-note, .wx-seg-note {
    margin: 12px 0 0;
    font-size: 12px;
    color: #98a6ad;
    line-height: 1.7;
}

.wx-panel-empty, .wx-loading {
    padding: 28px 16px;
    text-align: center;
    color: #98a6ad;
    background: #fff;
    border-radius: 12px;
    font-size: 14px;
}

.wx-panel-error {
    padding: 24px 16px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    color: #d64545;
}

.wx-panel-error p { margin: 0 0 12px; }



.wx-hourly-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-radius: 12px;
    padding: 10px 0 4px;
    box-shadow: 0 2px 12px rgba(31, 45, 61, .06);
}

.wx-hourly-inner { position: relative; }

.wx-chart { display: block; }
.wx-chart-label { font-size: 11px; fill: #5a6b7b; font-weight: 600; }

.wx-hour-row { display: flex; }

.wx-hour {
    flex: 0 0 74px;
    width: 74px;
    text-align: center;
    padding: 6px 0 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s;
}

.wx-hour:hover { background: #f4f7ff; }
.wx-hour.is-now { background: #eef3ff; }

.wx-hour-time { font-size: 12px; color: #98a6ad; }
.wx-hour-icon { font-size: 20px; line-height: 1.5; }
.wx-hour-temp { font-size: 15px; font-weight: 600; color: #1f2d3d; }
.wx-hour-pop { font-size: 11px; color: #b6c2cf; height: 17px; }
.wx-hour-pop.is-wet { color: #4a90d9; }
.wx-hour-wind { font-size: 11px; color: #b6c2cf; }

.wx-hour-detail {
    margin-top: 8px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(31, 45, 61, .06);
    display: none;
}

.wx-hour-detail.is-open { display: block; }
.wx-hour-detail-head { font-weight: 600; color: #1f2d3d; margin-bottom: 8px; }

.wx-hour-detail-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 4px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wx-hour-detail-list li { color: #5a6b7b; font-size: 13px; }
.wx-hour-detail-list b { color: #1f2d3d; }


.wx-hourly-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.wx-hourly-table th, .wx-hourly-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #eef2f7; white-space: nowrap; }
.wx-hourly-table th { color: #98a6ad; font-weight: 500; background: #fafbfd; }
.wx-hourly-table tr.is-now td { background: #f4f7ff; font-weight: 600; }



.wx-daily {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(31, 45, 61, .06);
    overflow: hidden;
}

.wx-day {
    display: grid;
    grid-template-columns: 78px 1fr 74px minmax(120px, 1.5fr) 96px 56px;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border-bottom: 1px solid #f2f5f9;
    transition: background .15s;
}

.wx-day:last-child { border-bottom: none; }
.wx-day:hover { background: #fafbff; }
.wx-day.is-today { background: #f4f7ff; }
.wx-day.is-ens { background: #fffdf7; }
.wx-day.is-ens:hover { background: #fff9ec; }

.wx-day-date { display: flex; flex-direction: column; line-height: 1.35; }
.wx-day-date b { font-size: 14px; color: #1f2d3d; }
.wx-day-date span { font-size: 11px; color: #98a6ad; }

.wx-day-weather { display: flex; align-items: center; gap: 7px; min-width: 0; }
.wx-ico { font-size: 19px; line-height: 1; }
.wx-day-text { font-size: 13px; color: #40506a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.wx-day-pop { text-align: center; }
.wx-pop { font-size: 12px; color: #4a90d9; white-space: nowrap; }


.wx-day-bar { min-width: 0; }
.wx-bar-track {
    position: relative;
    display: block;
    height: 7px;
    background: #f0f3f8;
    border-radius: 4px;
    overflow: visible;
}

.wx-bar-fill {
    position: absolute;
    top: 0;
    height: 7px;
    border-radius: 4px;
    background: linear-gradient(90deg, #6fb1e8, #f6a623);
}

.wx-bar-fill.is-ens {
    background: linear-gradient(90deg, #b9c6da, #d8c9a8);
    opacity: .75;
}


.wx-bar-ens {
    position: absolute;
    top: -2px;
    height: 11px;
    border: 1px dashed #c9a227;
    border-radius: 5px;
    background: rgba(246, 166, 35, .12);
}

.wx-day-temp { display: flex; justify-content: flex-end; gap: 8px; font-size: 14px; white-space: nowrap; }
.wx-tmin { color: #7b93b5; }
.wx-tmax { color: #e8743b; font-weight: 600; }

.wx-day-spread { font-size: 11px; color: #c9a227; text-align: right; }


.wx-seg-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 8px;
    font-size: 13px;
    color: #5a6b7b;
}

.wx-seg-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.wx-seg-badge.is-fc { background: #e8f0ff; color: #3b5bd0; }
.wx-seg-badge.is-ens { background: #fff4e0; color: #b8860b; }



.wx-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2d3d;
    margin: 24px 0 10px;
}

.wx-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
    gap: 10px;
}

.wx-index {
    background: #fff;
    border-radius: 12px;
    padding: 13px 14px;
    box-shadow: 0 2px 10px rgba(31, 45, 61, .06);
    border-left: 3px solid var(--wx-index-color, #4a6ee0);
}

.wx-index-head { display: flex; align-items: center; gap: 6px; }
.wx-index-icon { font-size: 16px; }
.wx-index-name { font-size: 12px; color: #98a6ad; }
.wx-index-level { font-size: 17px; font-weight: 700; color: var(--wx-index-color, #4a6ee0); margin-top: 3px; }
.wx-index-tip { font-size: 12px; color: #6b7a8d; line-height: 1.6; }

.wx-air {
    display: flex;
    align-items: center;
    gap: 22px;
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 2px 10px rgba(31, 45, 61, .06);
    flex-wrap: wrap;
}

.wx-air-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 92px;
    color: var(--wx-air-color, #2eb872);
}

.wx-air-aqi { font-size: 40px; font-weight: 700; line-height: 1; }
.wx-air-label { font-size: 14px; font-weight: 600; margin-top: 2px; }
.wx-air-unit { font-size: 11px; color: #98a6ad; }
.wx-air-detail { flex: 1 1 260px; min-width: 0; }
.wx-air-tip { margin: 0 0 8px; font-size: 13px; color: #5a6b7b; }

.wx-air-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: #6b7a8d;
}

.wx-air-list b { color: #1f2d3d; }



.wx-hotcities { margin-top: 8px; }

.wx-city-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.wx-city-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 999px;
    font-size: 13px;
    color: #5a6b7b;
    text-decoration: none;
    transition: all .18s;
}

.wx-city-tag:hover { border-color: #4a6ee0; color: #4a6ee0; background: #f7f9ff; }
.wx-city-tag.is-active { background: #4a6ee0; border-color: #4a6ee0; color: #fff; }

.wx-about { margin-top: 24px; }

.wx-about-list {
    margin: 0;
    padding: 16px 20px 16px 34px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(31, 45, 61, .05);
    font-size: 13px;
    color: #5a6b7b;
    line-height: 1.9;
}

.wx-about-list li { margin-bottom: 4px; }
.wx-about-list b { color: #1f2d3d; }
.wx-about-list a { color: #4a6ee0; text-decoration: none; }
.wx-about-list a:hover { text-decoration: underline; }



.wx-empty {
    background: #fff;
    border-radius: 14px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 2px 14px rgba(31, 45, 61, .07);
}

.wx-empty-icon { font-size: 46px; }
.wx-empty-text { color: #d64545; margin: 10px 0 14px; font-size: 15px; }
.wx-empty-hint { margin-top: 14px; font-size: 13px; color: #98a6ad; }
.wx-empty-hint a { color: #4a6ee0; text-decoration: none; margin: 0 2px; }

.wx-toast {
    position: fixed;
    left: 50%;
    bottom: 38px;
    transform: translate(-50%, 12px);
    background: rgba(31, 45, 61, .93);
    color: #fff;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 13px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s, transform .22s;
    max-width: 82vw;
    text-align: center;
}

.wx-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
