:root {
    --bg: #f2f5f8;
    --panel: #ffffff;
    --panel-soft: #f7fbff;
    --text: #1c2733;
    --muted: #667789;
    --line: #d8e1ea;
    --brand: #1f6fb2;
    --brand-dark: #16568c;
    --brand-soft: #eaf4ff;
    --green: #1d8f6f;
    --amber: #b86b00;
    --footer: #243447;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.62;
    overflow-x: clip;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

img {
    display: block;
    max-width: 100%;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -48px;
    z-index: 20;
    padding: 8px 12px;
    background: var(--text);
    color: #fff;
}

.skip-link:focus {
    top: 12px;
}

.site-shell {
    width: min(1000px, calc(100% - 24px));
    margin: 0 auto;
}

.site-header {
    background: var(--panel);
    border-bottom: 1px solid var(--line);
}

.brand-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    min-height: 76px;
}

.brand-block {
    display: grid;
    grid-template-columns: max-content;
    align-items: center;
    justify-content: start;
}

.brand-logo {
    display: block;
}

.brand-logo img {
    width: 220px;
    height: 55px;
    object-fit: contain;
}

.search-box {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.search-box > div {
    display: flex;
    min-width: 0;
    gap: 4px;
}

.search-box input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 40px;
    border: 1px solid #b8c8d8;
    border-radius: 3px;
    padding: 0 12px;
    background: #fff;
    color: var(--text);
    font-size: 0.96rem;
}

.search-box button,
.btn {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--brand-dark);
    border-radius: 3px;
    padding: 0 18px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.btn-secondary {
    border-color: #b8cfe2;
    background: #fff;
    color: var(--brand-dark);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 8px;
    min-height: 0;
    overflow-x: auto;
}

.main-nav a {
    flex: 0 0 auto;
    min-width: 84px;
    padding: 8px 13px;
    border-radius: 3px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    text-align: center;
    font-weight: 700;
}

.main-nav a:hover {
    background: var(--brand);
    color: #fff;
    text-decoration: none;
}

.home-intro,
.page-title {
    background: var(--panel);
    border-bottom: 1px solid var(--line);
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 24px;
    align-items: end;
    padding: 22px 0;
}

.breadcrumb {
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 0.88rem;
}

.breadcrumb a {
    color: var(--brand-dark);
}

.home-intro h1,
.page-title h1 {
    margin: 0 0 8px;
    font-size: 1.72rem;
    line-height: 1.25;
}

.home-intro p,
.page-title p {
    margin: 0;
    color: var(--muted);
}

.page-title {
    padding: 18px 24px 20px;
}

.detail-hero {
    background: #e7f2fb;
    border-bottom: 1px solid var(--line);
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    padding: 20px 0;
}

.detail-title {
    padding: 16px;
    border: 1px solid #c9deef;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.72);
}

.detail-title h1 {
    margin: 0 0 8px;
    font-size: 1.62rem;
    line-height: 1.28;
}

.detail-title p {
    margin: 0;
    color: #51677a;
}

.detail-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.detail-nav-after-forecast .detail-nav {
    margin-top: 0;
    margin-bottom: 12px;
}

.detail-nav a,
.link-cloud a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid #b8cfe2;
    border-radius: 3px;
    padding: 5px 12px;
    background: #fff;
    color: #23445f;
    font-weight: 700;
}

.detail-nav a:hover,
.link-cloud a:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
    text-decoration: none;
}

.forecast-page-tabs {
    display: inline-flex;
    max-width: 100%;
    margin-top: 16px;
    border: 1px solid #c5d6e5;
    border-radius: 4px;
    background: #f7fbff;
    overflow-x: auto;
}

.forecast-page-tabs a {
    flex: 0 0 auto;
    min-width: 72px;
    padding: 8px 16px;
    border-right: 1px solid #d8e5ef;
    color: #315b78;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.forecast-page-tabs a:last-child {
    border-right: 0;
}

.forecast-page-tabs a:hover {
    background: #e8f4ff;
    text-decoration: none;
}

.forecast-page-tabs a.active {
    background: #426c86;
    color: #fff;
}

.search-box {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--panel-soft);
}

.search-box label {
    flex: 0 0 auto;
    font-weight: 700;
    color: #34495e;
}

.section {
    padding: 20px 0;
}

.section-desc {
    margin-top: -2px;
    margin-bottom: 12px;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--brand);
}

.section-head h2,
.side-panel h2,
.notice-block h2,
.directory-panel h2,
.site-footer h2 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 2.2;
}

.section-head a {
    color: var(--brand-dark);
    font-size: 0.92rem;
    font-weight: 700;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 14px 0 0;
}

.stat-card {
    min-height: 82px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--panel);
}

.stat-card span,
.stat-card strong,
.stat-card em {
    display: block;
}

.stat-card span {
    color: var(--muted);
    font-size: 0.86rem;
}

.stat-card strong {
    margin: 2px 0;
    color: var(--brand-dark);
    font-size: 1.35rem;
}

.stat-card em {
    color: var(--muted);
    font-size: 0.84rem;
    font-style: normal;
}

.weather-digest-panel {
    padding-bottom: 0;
}

.weather-digest-panel .section-head span {
    color: var(--muted);
    font-size: 0.92rem;
}

.weather-digest-panel h3 {
    margin: 6px 0 10px;
    color: var(--brand-dark);
    font-size: 1rem;
}

.province-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 22px;
    align-items: center;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #eaf6ff;
}

.china-map-frame {
    display: grid;
    min-height: 430px;
    align-items: center;
    justify-items: center;
    overflow: hidden;
}

.china-map-frame img,
.china-map-svg {
    width: 100%;
    max-width: 590px;
    height: auto;
}

.china-map-svg {
    display: block;
}

.china-map-svg .map-province-link path {
    fill: #93cef2;
    stroke: #fff;
    stroke-width: 1.4;
    cursor: pointer;
    transition: fill 0.16s ease, filter 0.16s ease;
}

.china-map-svg .map-province-link:visited path {
    fill: #93cef2;
}

.china-map-svg .map-province-link:hover path,
.china-map-svg .map-province-link:focus path,
.china-map-svg .map-province-link path:hover {
    fill: #2095f2;
    filter: drop-shadow(0 2px 2px rgba(15, 91, 151, 0.16));
}

.china-map-svg text {
    fill: #0e2438;
    font-size: 14px;
    paint-order: stroke;
    stroke: rgba(233, 245, 255, 0.9);
    stroke-linejoin: round;
    stroke-width: 2px;
    pointer-events: none;
}

.province-group-list {
    align-self: stretch;
    padding: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.66);
}

.province-group {
    padding: 0 0 8px;
    border-bottom: 1px solid #deebf5;
}

.province-group + .province-group {
    margin-top: 8px;
}

.province-group:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.province-group h3 {
    display: inline-block;
    min-width: 100px;
    margin: 0 0 5px;
    padding: 1px 14px;
    border-radius: 4px;
    background: #d8ebfb;
    color: #2b3a48;
    font-size: 0.95rem;
    line-height: 1.45;
    text-align: center;
}

.province-group div,
.area-links {
    display: flex;
    gap: 5px 14px;
    flex-wrap: wrap;
}

.province-group a {
    color: #263747;
    font-weight: 700;
    line-height: 1.45;
}

.hot-link-list .hot-link-item {
    display: block;
    border: 1px solid #d6e2ee;
    border-radius: 3px;
    background: #fbfdff;
}

.side-panel {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--panel);
}

.side-panel h2 {
    margin-bottom: 8px;
    border-bottom: 1px solid var(--line);
    color: var(--brand-dark);
}

.hot-link-list {
    display: grid;
    gap: 8px;
}

.hot-link-list .hot-link-item {
    padding: 8px 10px;
}

.hot-link-list a,
.hot-link-list em {
    display: block;
}

.hot-link-list a {
    font-weight: 700;
}

.hot-link-list em {
    color: var(--muted);
    font-size: 0.84rem;
    font-style: normal;
}

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

.weather-card {
    display: block;
    min-height: 104px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--panel);
}

.weather-card-title {
    display: block;
}

.weather-card strong,
.weather-card > span,
.weather-card em {
    display: block;
}

.weather-card strong {
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.weather-card > span,
.muted {
    color: var(--muted);
    font-size: 0.9rem;
}

.weather-card em {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: var(--green);
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.35;
}

.current-panel {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--panel);
}

.detail-hero-grid .current-panel {
    grid-template-columns: 310px minmax(0, 1fr);
    height: 100%;
    box-shadow: 0 10px 24px rgba(29, 82, 126, 0.08);
}

.mobile-current-first {
    display: none;
}

.current-panel-stale {
    border-color: #e0b66f;
}

.current-main {
    container-type: inline-size;
    padding: 18px;
    border-radius: 4px;
    background: linear-gradient(145deg, #e8f5ff 0%, #f7fbff 58%, #eef8f1 100%);
    border: 1px solid #bfd8ee;
}

.current-warning {
    margin-top: 10px;
    color: var(--amber);
    font-weight: 700;
}

.weather-symbol {
    position: relative;
    display: block;
    width: 46px;
    height: 46px;
    margin: 2px 0 8px;
    border-radius: 50%;
    background: #f6bd3d;
    box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.34);
}

.weather-symbol::before,
.weather-symbol::after {
    content: "";
    position: absolute;
    display: block;
}

.weather-symbol-cloud,
.weather-symbol-cloud-sun,
.weather-symbol-rain,
.weather-symbol-snow,
.weather-symbol-thunder,
.weather-symbol-fog {
    background: #dbe7f1;
    box-shadow: none;
}

.weather-symbol-cloud-sun::before {
    width: 24px;
    height: 24px;
    right: -2px;
    top: -3px;
    border-radius: 50%;
    background: #f6bd3d;
}

.weather-symbol-cloud::after,
.weather-symbol-cloud-sun::after,
.weather-symbol-rain::after,
.weather-symbol-snow::after,
.weather-symbol-thunder::after {
    left: 6px;
    right: 4px;
    bottom: 9px;
    height: 19px;
    border-radius: 12px;
    background: #7fa8c8;
    box-shadow: 10px -12px 0 0 #9fbdd4, 22px -6px 0 0 #89abc5;
}

.weather-symbol-rain {
    background: #ecf6ff;
}

.weather-symbol-rain::before {
    left: 12px;
    bottom: -3px;
    width: 4px;
    height: 14px;
    border-radius: 2px;
    background: #2d8bd8;
    box-shadow: 11px 0 0 #2d8bd8, 22px 0 0 #2d8bd8;
}

.weather-symbol-snow {
    background: #f4fbff;
}

.weather-symbol-snow::before {
    left: 10px;
    bottom: -2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6aa7cf;
    box-shadow: 11px 0 0 #6aa7cf, 22px 0 0 #6aa7cf;
}

.weather-symbol-thunder {
    background: #eef6ff;
}

.weather-symbol-thunder::before {
    left: 18px;
    bottom: -6px;
    width: 12px;
    height: 20px;
    background: #f3aa20;
    clip-path: polygon(42% 0, 100% 0, 62% 42%, 100% 42%, 24% 100%, 42% 56%, 0 56%);
}

.weather-symbol-fog {
    background: #edf4f8;
}

.weather-symbol-fog::before,
.weather-symbol-fog::after {
    left: 7px;
    width: 32px;
    height: 4px;
    border-radius: 999px;
    background: #8da9b9;
    box-shadow: 0 9px 0 #a9bcc7;
}

.weather-symbol-fog::before {
    top: 15px;
}

.weather-symbol-fog::after {
    top: 26px;
}

.weather-mini-icon {
    position: relative;
    display: inline-block;
    flex: 0 0 38px;
    width: 38px;
    height: 28px;
    vertical-align: -8px;
}

.weather-mini-icon::before,
.weather-mini-icon::after {
    content: "";
    position: absolute;
    display: block;
}

.weather-mini-icon.weather-symbol-sun {
    border-radius: 50%;
    background: #f3b237;
    box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.38);
}

.weather-mini-icon.weather-symbol-cloud,
.weather-mini-icon.weather-symbol-cloud-sun,
.weather-mini-icon.weather-symbol-rain,
.weather-mini-icon.weather-symbol-snow,
.weather-mini-icon.weather-symbol-thunder {
    border-radius: 50%;
    background: #edf6ff;
}

.weather-mini-icon.weather-symbol-cloud-sun::before {
    width: 12px;
    height: 12px;
    right: 1px;
    top: 2px;
    border-radius: 50%;
    background: #f3b237;
}

.weather-mini-icon.weather-symbol-cloud::after,
.weather-mini-icon.weather-symbol-cloud-sun::after,
.weather-mini-icon.weather-symbol-rain::after,
.weather-mini-icon.weather-symbol-snow::after,
.weather-mini-icon.weather-symbol-thunder::after {
    left: 3px;
    right: 2px;
    bottom: 5px;
    height: 9px;
    border-radius: 10px;
    background: #7ea5c3;
    box-shadow: 7px -6px 0 #a2bed5, 14px -3px 0 #89abc5;
}

.weather-mini-icon.weather-symbol-rain::before {
    left: 7px;
    bottom: -1px;
    width: 2px;
    height: 7px;
    border-radius: 2px;
    background: #2d8bd8;
    box-shadow: 6px 0 0 #2d8bd8, 12px 0 0 #2d8bd8;
}

.weather-mini-icon.weather-symbol-snow::before {
    left: 6px;
    bottom: 0;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #6aa7cf;
    box-shadow: 6px 0 0 #6aa7cf, 12px 0 0 #6aa7cf;
}

.weather-mini-icon.weather-symbol-thunder::before {
    left: 9px;
    bottom: -2px;
    width: 6px;
    height: 10px;
    background: #f3aa20;
    clip-path: polygon(42% 0, 100% 0, 62% 42%, 100% 42%, 24% 100%, 42% 56%, 0 56%);
}

.weather-mini-icon.weather-symbol-fog::before,
.weather-mini-icon.weather-symbol-fog::after {
    left: 3px;
    width: 18px;
    height: 3px;
    border-radius: 999px;
    background: #8da9b9;
    box-shadow: 0 7px 0 #a9bcc7;
}

.weather-mini-icon.weather-symbol-fog::before {
    top: 5px;
}

.weather-mini-icon.weather-symbol-fog::after {
    top: 14px;
}

.current-main span,
.current-main strong,
.current-main em {
    display: block;
}

.current-kicker {
    color: var(--brand-dark);
    font-weight: 700;
}

.current-primary {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: end;
    margin: 10px 0 4px;
}

.current-main .current-temperature {
    display: flex;
    align-items: flex-start;
    min-width: 0;
    max-width: 100%;
    color: #123d63;
    font-size: clamp(52px, 6vw, 76px);
    font-size: clamp(52px, 24cqw, 76px);
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
}

.current-temperature .current-temperature-value {
    display: inline;
}

.current-main .current-temperature small {
    display: block;
    flex: 0 0 auto;
    margin-left: 2px;
    margin-top: 0.1em;
    color: #315f80;
    font-size: 0.36em;
    font-weight: 800;
    line-height: 1;
}

.current-weather-text {
    color: var(--green);
    font-size: 1.18rem;
    font-style: normal;
    font-weight: 700;
}

.current-context {
    margin: 10px 0 0;
    color: var(--muted);
}

.current-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.current-metrics div {
    min-height: 78px;
    padding: 12px;
    border: 1px solid #dce6ef;
    border-radius: 4px;
    background: #fbfdff;
}

.current-metrics dt {
    color: var(--muted);
    font-size: 0.86rem;
}

.current-metrics dd {
    margin: 5px 0 0;
    font-weight: 700;
}

.life-grid,
.forecast-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.life-card,
.forecast-summary div {
    min-height: 96px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--panel);
}

.life-card span,
.forecast-summary span {
    display: block;
    color: var(--muted);
    font-size: 0.86rem;
}

.life-card strong,
.forecast-summary strong {
    display: block;
    margin: 3px 0 5px;
    color: #174d7c;
    font-size: 1.05rem;
}

.life-card p,
.summary-text {
    margin: 0;
    color: #536678;
    font-size: 0.92rem;
}

.summary-text {
    margin: 10px 0 12px;
}

.period-section .section-head {
    border-bottom-color: #426c86;
}

.period-stat-grid,
.period-segment-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.period-stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.period-segment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.period-stat-card,
.period-segment,
.period-explainer {
    border: 1px solid #d6e4ef;
    border-radius: 4px;
    background: #fbfdff;
}

.period-stat-card {
    min-height: 112px;
    padding: 13px 14px;
}

.period-stat-card span,
.period-stat-card strong,
.period-stat-card p,
.period-segment span,
.period-segment strong,
.period-segment p {
    display: block;
}

.period-stat-card span,
.period-segment span {
    color: var(--muted);
    font-size: 0.86rem;
}

.period-stat-card strong,
.period-segment strong {
    margin: 4px 0 6px;
    color: #174d7c;
    font-size: 1rem;
}

.period-stat-card p,
.period-segment p,
.period-explainer p {
    margin: 0;
    color: #536678;
    font-size: 0.92rem;
}

.period-segment {
    padding: 14px;
    background: #eef7ff;
}

.period-explainer {
    margin: 10px 0 12px;
    padding: 13px 14px;
    background: #f7fbff;
}

.period-explainer h3 {
    margin: 0 0 5px;
    color: #173f61;
    font-size: 1rem;
}

.period-focus-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 10px 0 12px;
}

.period-focus-list article,
.weather-distribution {
    border: 1px solid #d4e4ef;
    border-radius: 4px;
    background: #f7fbff;
}

.period-focus-list article {
    min-height: 126px;
    padding: 13px 14px;
}

.period-focus-list h3,
.weather-distribution h3 {
    margin: 0 0 7px;
    color: #173f61;
    font-size: 1rem;
}

.period-focus-list strong {
    display: block;
    margin-bottom: 6px;
    color: #0d6a9d;
    font-size: 0.96rem;
    line-height: 1.45;
}

.period-focus-list p {
    margin: 0;
    color: #536678;
    font-size: 0.9rem;
}

.weather-distribution {
    margin: 10px 0 12px;
    padding: 13px 14px;
}

.weather-distribution ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.weather-distribution li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid #dbe9f3;
    background: #fff;
    color: #3f5669;
}

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

.weather-distribution span b {
    font: inherit;
}

.weather-distribution strong {
    color: #174d7c;
    white-space: nowrap;
}

.anchor-target {
    position: relative;
    top: -10px;
    display: block;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.forecast-range-title {
    margin: 0 0 12px;
    color: #24384a;
    font-size: 1rem;
    font-weight: 700;
}

.weather-trend-panel {
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid #d7e8f6;
    border-radius: 4px;
    background: #e9f5ff;
}

.trend-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.trend-panel-head h3 {
    margin: 0;
    color: #163f61;
    font-size: 1rem;
}

.trend-panel-head span {
    color: #557189;
    font-size: 0.88rem;
}

.trend-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(116px, 1fr);
    overflow-x: auto;
    border: 1px solid #d3e2ef;
    border-radius: 4px;
    background: #f5fbff;
}

.trend-day {
    min-height: 126px;
    padding: 11px 12px;
    border-right: 1px solid #dbe8f2;
}

.trend-day:last-child {
    border-right: 0;
}

.trend-day span,
.trend-day strong,
.trend-day em,
.trend-day small {
    display: block;
}

.trend-day span,
.trend-day small {
    color: #60788d;
    font-size: 0.82rem;
}

.trend-day strong {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    column-gap: 6px;
    margin: 8px 0 5px;
    color: #1a4d75;
    line-height: 1.35;
}

.trend-day strong b {
    font: inherit;
    min-width: 0;
}

.trend-day em {
    color: #0c6ed0;
    font-style: normal;
    font-weight: 700;
}

.hourly-trend-panel {
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid #d7e8f6;
    border-radius: 4px;
    background: #e9f5ff;
}

.hourly-trend-scroll {
    overflow-x: auto;
    border: 1px solid #d3e2ef;
    border-radius: 4px;
    background: #f5fbff;
}

.hourly-chart {
    position: relative;
    min-width: 720px;
    height: 238px;
}

.hourly-slot,
.hourly-wind {
    position: absolute;
    width: 68px;
    margin-left: -34px;
    text-align: center;
}

.hourly-slot {
    top: 14px;
}

.hourly-slot span {
    display: block;
    color: #21364a;
    font-weight: 700;
}

.hourly-slot .weather-mini-icon {
    display: block;
    margin: 8px auto 0;
}

.hourly-line-svg {
    position: absolute;
    left: 0;
    top: 72px;
    width: 100%;
    height: 126px;
    overflow: visible;
}

.hourly-grid line {
    stroke: #d8e6f1;
    stroke-width: 1;
}

.hourly-line-svg polyline {
    fill: none;
    stroke: #4f73d9;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hourly-points circle {
    fill: #f5fbff;
    stroke: #4f73d9;
    stroke-width: 3;
}

.hourly-temp-labels text {
    fill: #20364b;
    font-size: 13px;
    font-weight: 700;
    text-anchor: middle;
}

.hourly-wind {
    top: 174px;
    color: #21364a;
    line-height: 1.35;
}

.hourly-wind strong,
.hourly-wind span {
    display: block;
    font-size: 0.82rem;
}

.hourly-wind span {
    margin-top: 3px;
}

.forecast-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.forecast-tabs span {
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--panel);
    color: var(--muted);
    font-weight: 700;
}

.forecast-tabs .active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.forecast-card-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(118px, 1fr);
    gap: 8px;
    margin-bottom: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.forecast-day {
    min-width: 118px;
    padding: 11px 10px;
    border: 1px solid #d7e5ef;
    border-radius: 4px;
    background: #fbfdff;
}

.forecast-day span,
.forecast-day strong,
.forecast-day em,
.forecast-day small {
    display: block;
}

.forecast-day span,
.forecast-day small {
    color: var(--muted);
    font-size: 0.82rem;
}

.forecast-day strong {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    column-gap: 6px;
    margin: 4px 0;
    color: #174d7c;
    line-height: 1.35;
}

.forecast-day strong b {
    font: inherit;
    min-width: 0;
}

.forecast-day em {
    color: var(--green);
    font-size: 0.88rem;
    font-style: normal;
    font-weight: 700;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--panel);
}

table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
}

th,
td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    background: #eef6ff;
    color: #244b70;
}

.weather-cell {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    column-gap: 6px;
    line-height: 1.35;
}

.weather-cell span {
    min-width: 0;
}

tr:last-child td {
    border-bottom: 0;
}

.notice,
.notice-block {
    margin: 12px 0 0;
    padding: 13px 14px;
    border: 1px solid #f0d9aa;
    border-left: 4px solid var(--amber);
    border-radius: 4px;
    background: #fff9ed;
    color: #5c4730;
}

.notice-block p {
    margin: 8px 0 0;
}

.link-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-list details {
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--panel);
}

.faq-list summary {
    cursor: pointer;
    padding: 12px 14px;
    color: #174d7c;
    font-weight: 700;
}

.faq-list p {
    margin: 0;
    padding: 0 14px 14px;
    color: #4d6072;
}

.directory-panel {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--panel);
}

.directory-panel h2 {
    margin-bottom: 10px;
    border-bottom: 1px solid var(--line);
    color: var(--brand-dark);
}

.directory-panel h2 + .card-grid,
.directory-panel h2 + .area-list {
    margin-bottom: 18px;
}

.directory-summary {
    display: grid;
    gap: 4px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid #cfe0ef;
    border-radius: 4px;
    background: var(--panel-soft);
}

.directory-summary strong {
    color: var(--brand-dark);
}

.directory-summary span {
    color: var(--muted);
    font-size: 0.92rem;
}

.directory-insight {
    margin-bottom: 18px;
}

.time-link-strip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 0 0 18px;
    padding: 10px 12px;
    border: 1px solid #d6e4ef;
    border-radius: 4px;
    background: #fbfdff;
}

.time-link-strip strong {
    color: var(--brand-dark);
    white-space: nowrap;
}

.time-link-strip span {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
}

.time-link-strip a {
    color: #23445f;
    font-weight: 700;
}

.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.friend-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--panel);
}

.friend-link-list a {
    color: #23445f;
    font-weight: 700;
}

.directory-jump {
    display: grid;
    gap: 8px;
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #d7e4ef;
    border-radius: 4px;
    background: #fbfdff;
}

.directory-jump strong {
    color: var(--brand-dark);
}

.directory-jump div {
    display: flex;
    gap: 7px 12px;
    flex-wrap: wrap;
}

.directory-jump a {
    color: #244b70;
    font-weight: 700;
}

.area-list {
    display: grid;
    gap: 14px;
}

.area-group {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 10px 16px;
    align-items: start;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.area-group:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.area-group h3,
.sitemap-groups h2 {
    margin: 0;
    color: var(--brand-dark);
    font-size: 1rem;
    line-height: 1.8;
}

.area-links a {
    color: #273746;
    white-space: nowrap;
}

.scenic-area-list .area-links a {
    display: inline-flex;
    align-items: baseline;
}

.scenic-area-list .area-link-item {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    white-space: nowrap;
}

.scenic-area-list .area-links em {
    color: var(--muted);
    font-size: 0.78rem;
    font-style: normal;
}

.scenic-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.scenic-info-grid div {
    min-height: 74px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--panel);
}

.scenic-info-grid strong,
.scenic-info-grid span {
    display: block;
}

.scenic-info-grid strong {
    color: var(--muted);
    font-size: 0.86rem;
}

.scenic-info-grid span {
    margin-top: 5px;
    font-weight: 700;
}

.sitemap-groups {
    display: grid;
    gap: 20px;
}

.sitemap-groups section {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.sitemap-groups section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.prose {
    max-width: 860px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--panel);
}

.link-list {
    margin: 0;
    padding-left: 20px;
}

.site-footer {
    margin-top: 28px;
    padding: 30px 0 18px;
    background: var(--footer);
    color: #e8eef3;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.1fr 1.1fr 1.2fr;
    gap: 20px;
}

.site-footer h2 {
    margin-bottom: 8px;
    color: #fff;
}

.site-footer a,
.site-footer p {
    display: block;
    margin: 0 0 7px;
    color: #d0dae3;
    font-size: 0.92rem;
}

.footer-links {
    display: flex;
    gap: 7px 12px;
    flex-wrap: wrap;
}

.footer-bottom {
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: #bdc9d4;
    font-size: 0.88rem;
}

@media (max-width: 860px) {
    .brand-row,
    .intro-grid,
    .detail-hero-grid,
    .home-layout,
    .province-board,
    .current-panel,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .brand-row {
        gap: 12px;
        padding: 14px 0;
    }

    .main-nav {
        justify-self: stretch;
        width: 100%;
    }

    .main-nav a {
        flex: 1 1 auto;
    }

    .intro-grid {
        align-items: start;
    }

    .stat-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .china-map-frame {
        min-height: 0;
    }

    .current-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .detail-hero-grid .current-panel {
        grid-template-columns: 1fr;
    }

    .current-metrics div {
        min-height: 70px;
        padding: 10px;
    }

    .life-grid,
    .forecast-summary,
    .period-stat-grid,
    .period-segment-grid,
    .period-focus-list,
    .weather-distribution ul,
    .scenic-info-grid,
    .time-link-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .time-link-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .site-shell {
        width: min(100% - 20px, 1000px);
    }

    .brand-row {
        gap: 8px;
        min-height: 0;
        padding: 10px 0;
    }

    .brand-block {
        justify-self: center;
    }

    .brand-logo img {
        width: 168px;
        height: 42px;
    }

    .main-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow: visible;
    }

    .main-nav a {
        min-width: 0;
        min-height: 38px;
        padding: 6px 4px;
        font-size: 0.92rem;
    }

    .home-intro h1,
    .page-title h1 {
        font-size: 1.42rem;
    }

    .page-title {
        padding: 16px 14px 18px;
    }

    .detail-title h1 {
        margin-bottom: 6px;
        font-size: 1.34rem;
        line-height: 1.18;
    }

    .detail-title p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        font-size: 0.92rem;
        line-height: 1.5;
    }

    .detail-hero-grid {
        gap: 10px;
        padding: 12px 0;
    }

    .desktop-current-panel {
        display: none;
    }

    .mobile-current-first {
        display: block;
        margin-top: 10px;
    }

    .mobile-current-first .current-panel {
        gap: 8px;
        padding: 10px;
        box-shadow: none;
    }

    .mobile-current-first .current-main {
        padding: 12px;
    }

    .mobile-current-first .current-kicker,
    .mobile-current-first .current-context {
        display: none;
    }

    .mobile-current-first .current-primary {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 10px;
        margin: 0 0 5px;
        align-items: end;
    }

    .mobile-current-first .weather-symbol {
        width: 42px;
        height: 42px;
        margin: 0 0 5px;
    }

    .mobile-current-first .weather-symbol-cloud::after,
    .mobile-current-first .weather-symbol-cloud-sun::after,
    .mobile-current-first .weather-symbol-rain::after,
    .mobile-current-first .weather-symbol-snow::after,
    .mobile-current-first .weather-symbol-thunder::after {
        left: 5px;
        right: 4px;
        bottom: 8px;
        height: 16px;
        box-shadow: 8px -10px 0 0 #9fbdd4, 18px -5px 0 0 #89abc5;
    }

    .mobile-current-first .weather-symbol-rain::before {
        left: 10px;
        bottom: -2px;
        height: 12px;
        box-shadow: 9px 0 0 #2d8bd8, 18px 0 0 #2d8bd8;
    }

    .mobile-current-first .current-temperature {
        margin: 0;
        font-size: clamp(4.15rem, 22vw, 5rem);
        line-height: 1;
    }

    .mobile-current-first .current-weather-text {
        font-size: 1.04rem;
        text-align: left;
    }

    .mobile-current-first .current-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .mobile-current-first .current-metrics div {
        min-height: 0;
        padding: 7px 8px;
    }

    .mobile-current-first .current-metrics div:nth-child(n+5) {
        display: none;
    }

    .mobile-current-first .current-metrics dt {
        font-size: 0.76rem;
    }

    .mobile-current-first .current-metrics dd {
        margin-top: 2px;
        font-size: 0.84rem;
    }

    .search-box {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .search-box > div {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .search-box label {
        flex: 0 0 auto;
    }

    .search-box button {
        width: 100%;
    }

    .stat-row,
    .life-grid,
    .forecast-summary,
    .period-stat-grid,
    .period-segment-grid,
    .period-focus-list,
    .weather-distribution ul,
    .scenic-info-grid {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .weather-card {
        min-height: 104px;
        padding: 10px;
    }

    .weather-card strong {
        display: -webkit-box;
        overflow: hidden;
        min-height: 2.6em;
        margin-bottom: 3px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        font-size: 0.98rem;
        line-height: 1.3;
    }

    .weather-card > span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.82rem;
    }

    .weather-card em {
        display: grid;
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 7px;
        align-items: center;
        margin-top: 7px;
        font-size: 0.82rem;
        line-height: 1.35;
    }

    .weather-card em span {
        display: block;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .weather-card .weather-mini-icon {
        width: 32px;
        height: 24px;
    }

    .weather-card .weather-mini-icon.weather-symbol-cloud-sun::before {
        width: 10px;
        height: 10px;
        right: 1px;
        top: 1px;
    }

    .weather-card .weather-mini-icon.weather-symbol-cloud::after,
    .weather-card .weather-mini-icon.weather-symbol-cloud-sun::after,
    .weather-card .weather-mini-icon.weather-symbol-rain::after,
    .weather-card .weather-mini-icon.weather-symbol-snow::after,
    .weather-card .weather-mini-icon.weather-symbol-thunder::after {
        left: 3px;
        right: 2px;
        bottom: 5px;
        height: 8px;
        box-shadow: 6px -5px 0 #a2bed5, 12px -3px 0 #89abc5;
    }

    .weather-card .weather-mini-icon.weather-symbol-rain::before {
        left: 6px;
        bottom: -1px;
        height: 6px;
        box-shadow: 5px 0 0 #2d8bd8, 10px 0 0 #2d8bd8;
    }

    .current-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .detail-nav a,
    .link-cloud a {
        flex: 1 1 auto;
        min-width: 88px;
        min-height: 32px;
        padding: 4px 8px;
        font-size: 0.86rem;
    }

    .forecast-page-tabs {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        width: 100%;
        margin-top: 10px;
    }

    .forecast-page-tabs a {
        min-width: 0;
        padding: 7px 4px;
        font-size: 0.84rem;
    }

    .province-board,
    .province-group-list,
    .detail-title,
    .directory-panel,
    .prose {
        padding: 12px;
    }

    .province-group div,
    .area-links {
        gap: 7px 14px;
    }

    .area-group {
        grid-template-columns: 1fr;
    }

    .area-links a {
        white-space: normal;
    }

    .scenic-area-list .area-link-item {
        white-space: normal;
    }
}

@media (max-width: 360px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}
