/* ==============================================
   bjweather.com 重新设计样式表 v3.0 — 全国版
   设计风格：现代天气站卡片式设计
   配色方案：主色 #1565C0（深蓝） + #FF6F00（橙色高亮） + #E3F2FD（浅蓝背景）
   响应式：三档断点（768px / 640px / 414px）
   依赖：纯CSS，无外部图片/图标
   ============================================== */

/* ===== CSS Variables ===== */
:root {
    --primary: #1565C0;
    --primary-dark: #0D47A1;
    --primary-light: #1976D2;
    --accent: #FF6F00;
    --accent-light: #FF8F00;
    --bg-light: #E3F2FD;
    --bg-page: #F0F4F8;
    --card-bg: #FFFFFF;
    --text-primary: #1A237E;
    --text-secondary: #455A64;
    --text-muted: #78909C;
    --border-light: #E0E8F0;
    --shadow-sm: 0 2px 8px rgba(21, 101, 192, 0.08);
    --shadow-md: 0 4px 16px rgba(21, 101, 192, 0.12);
    --shadow-lg: 0 8px 32px rgba(21, 101, 192, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    background: var(--bg-page);
    color: var(--text-secondary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

/* ===== Utility ===== */
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Back to Top ===== */
.toTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.toTop::after {
    content: "\2191";
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.toTop:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ===== Header ===== */
.header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: #fff;
    position: relative;
    z-index: 100;
}

.header .mid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    gap: 16px;
}

.header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.logo::before {
    content: "\2600\FE0F";
    font-size: 32px;
    line-height: 1;
}

.site-info {
    flex: 1;
}

.site-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.site-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
}

.mid_search {
    flex-shrink: 0;
}

.search {
    display: flex;
}

.search .txt {
    padding: 9px 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 200px;
    outline: none;
    transition: var(--transition);
}

.search .txt::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search .txt::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search .txt:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.search .btn {
    padding: 9px 18px;
    background: var(--accent);
    color: #fff;
    border: 2px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.search .btn:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
}

/* Navigation */
.nav {
    background: var(--primary-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav .wrap {
    display: flex;
    flex-wrap: wrap;
}

.nav a {
    display: block;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.nav a:hover::after {
    transform: scaleX(1);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    padding: 14px 20px;
    margin-bottom: 8px;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb span {
    color: var(--text-secondary);
}

/* ===== Page Titles (H1/H2 shared) ===== */
h1, h2 {
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.section-title {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--accent);
    border-radius: 2px;
}

/* ===== Card Component ===== */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* ===== 1. Real-time Weather Card ===== */
.weather-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, #F8FBFF 100%);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 28px;
    margin-bottom: 24px;
    border-left: 5px solid var(--accent);
}

.weather-card h1 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.4;
}

.live-weather {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.weather-now {
    flex: 2;
    min-width: 280px;
}

.weather-now h2 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.weather-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.temp-block {
    text-align: center;
    min-width: 140px;
}

.temp-current {
    font-size: 56px;
    font-weight: 800;
    color: var(--accent);
    display: block;
    line-height: 1;
    letter-spacing: -2px;
}

.temp-current::after {
    content: "\00B0C";
    font-size: 24px;
    font-weight: 400;
    color: var(--text-muted);
    vertical-align: super;
}

.temp-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 6px;
    display: block;
}

.weather-detail {
    flex: 1;
    min-width: 180px;
}

.weather-detail p {
    margin: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.weather-detail strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* AQI Box */
.aqi-box {
    flex: 1;
    min-width: 200px;
    background: linear-gradient(135deg, #E8F5E9 0%, #F1F8E9 100%);
    border-radius: var(--radius-sm);
    padding: 20px;
    border: 1px solid #C8E6C9;
}

.aqi-box h2 {
    font-size: 15px;
    color: #2E7D32;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #A5D6A7;
}

.aqi-box p {
    margin: 6px 0;
    font-size: 14px;
}

.aqi-box a {
    color: #2E7D32;
    text-decoration: none;
}

.aqi-box a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* ===== 2. Today's Editor Pick ===== */
.editor-pick {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
}

.editor-pick h2 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
}

.editor-content {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-secondary);
}

.editor-content h3 {
    font-size: 17px;
    margin-bottom: 10px;
}

.editor-content h3 a {
    color: var(--text-primary);
    font-weight: 600;
}

.editor-content h3 a:hover {
    color: var(--accent);
}

.editor-content p {
    margin: 8px 0;
}

.editor-content a[href$=">>"] {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary);
    font-weight: 500;
}

.editor-content a[href$=">>"]:hover {
    color: var(--accent);
}

/* ===== 3. 24h Hourly Trend Table ===== */
.hourly-trend {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
}

.hourly-trend h2 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
}

.weather-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 12px 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.weather-table thead th {
    background: var(--primary);
    color: #fff;
    padding: 12px 14px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.weather-table thead th:first-child {
    border-radius: var(--radius-sm) 0 0 0;
}

.weather-table thead th:last-child {
    border-radius: 0 var(--radius-sm) 0 0;
}

.weather-table tbody tr {
    transition: var(--transition);
}

.weather-table tbody tr:nth-child(even) {
    background: #F5F9FF;
}

.weather-table tbody tr:hover {
    background: var(--bg-light);
}

.weather-table tbody td {
    padding: 12px 14px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.weather-table tbody tr:last-child td {
    border-bottom: none;
}

.weather-table tbody td:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.table-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
    padding: 8px 12px;
    background: #FFF8E1;
    border-radius: 6px;
    border-left: 3px solid var(--accent);
}

/* ===== 4. 15-Day Forecast ===== */
.forecast-15d {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
}

.forecast-15d h2 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.forecast-item {
    padding: 12px 8px;
    background: linear-gradient(135deg, #F8FBFF 0%, #F0F8FF 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    text-align: center;
    transition: var(--transition);
}

.forecast-item:hover {
    background: var(--bg-light);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.12);
}

.forecast-item a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.5;
    display: block;
}

.forecast-item a:hover {
    color: var(--primary);
}

.more-link {
    display: block;
    text-align: right;
    margin-top: 14px;
    font-size: 13px;
}

.more-link a {
    color: var(--primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.more-link a:hover {
    color: var(--accent);
}

/* ===== 5. Air Quality ===== */
.air-quality {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
}

.air-quality h2 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
}

.air-quality .aqi-item {
    margin: 8px 0;
    padding: 6px 0;
}

.air-quality .aqi-item a {
    color: var(--text-secondary);
    font-size: 14px;
    display: inline-block;
    padding: 4px 0;
}

.air-quality .aqi-item a:hover {
    color: var(--primary);
}

/* ===== 6. District Entry ===== */
.district-entry {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
}

.district-entry h2 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
}

.district-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.district-list a {
    display: inline-block;
    padding: 8px 18px;
    background: var(--bg-light);
    border-radius: 20px;
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
}

.district-list a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.25);
}

/* ===== 7. Topic Entry ===== */
.topic-entry {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
}

.topic-entry h2 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
}

.topic-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.topic-item {
    padding: 16px;
    background: linear-gradient(135deg, #FFF3E0 0%, #FFF8E1 100%);
    border-radius: var(--radius-sm);
    text-align: center;
    transition: var(--transition);
    border: 1px solid #FFE0B2;
}

.topic-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 111, 0, 0.15);
    border-color: var(--accent);
}

.topic-item h3 {
    font-size: 14px;
    margin-bottom: 6px;
}

.topic-item a {
    color: #E65100;
    text-decoration: none;
    font-weight: 600;
}

.topic-item a:hover {
    color: var(--accent);
}

.topic-item p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===== 8. Latest News ===== */
.latest-news {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
}

.latest-news h2 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-col {
    background: #FAFBFD;
    border-radius: var(--radius-sm);
    padding: 18px;
    border: 1px solid var(--border-light);
}

.news-col h3 {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    font-weight: 600;
}

.news-col ul li {
    padding: 7px 0;
    border-bottom: 1px dashed var(--border-light);
}

.news-col ul li:last-child {
    border-bottom: none;
}

.news-col ul li a {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    display: block;
    transition: var(--transition);
}

.news-col ul li a:hover {
    color: var(--primary);
    padding-left: 4px;
}

/* ===== 9. Hot News ===== */
.hot-news {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
}

.hot-news h2 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
}

.hot-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 20px;
}

.hot-list li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hot-list li::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.hot-list li a {
    color: var(--text-secondary);
    font-size: 13px;
    flex: 1;
}

.hot-list li a:hover {
    color: var(--primary);
}

/* ===== 10. Data Source ===== */
.data-source {
    background: #F5F5F5;
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid var(--border-light);
}

.data-source h2 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.data-source p {
    margin: 4px 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 40px 0 30px;
    margin-top: 10px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    padding: 4px 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-links a:last-child {
    border-right: none;
}

.footer-links a:hover {
    color: #fff;
}

.footer .info p {
    font-size: 12px;
    line-height: 1.8;
    margin: 4px 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer .info strong {
    color: rgba(255, 255, 255, 0.9);
}

.footer .copyright {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 12px;
    text-align: center;
}

.footer .copyright a {
    color: rgba(255, 255, 255, 0.8);
}

.footer .copyright a:hover {
    color: #fff;
}

.footer .beian {
    text-align: center;
    margin-top: 8px;
}

.footer .beian a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

/* ==============================================
   List Page (Category) Styles
   ============================================== */

/* Category Header */
.category-header {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 28px;
    margin-bottom: 24px;
    text-align: center;
    border-bottom: 4px solid var(--primary);
}

.category-header h1 {
    font-size: 24px;
    color: var(--text-primary);
}

.category-desc {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 20px 24px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    border-left: 4px solid var(--accent);
}

/* Today Focus */
.today-focus {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
}

.today-focus h2 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
}

.focus-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.focus-item {
    padding: 16px;
    background: linear-gradient(135deg, #F8FBFF 0%, #F0F8FF 100%);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.focus-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.focus-item h3 {
    font-size: 15px;
    margin-bottom: 8px;
}

.focus-item h3 a {
    color: var(--text-primary);
    font-weight: 600;
}

.focus-item h3 a:hover {
    color: var(--accent);
}

.focus-item p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Content area left/right */
.content-area {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.content-area .left {
    flex: 1;
    min-width: 0;
}

.content-area .right {
    width: 300px;
    flex-shrink: 0;
}

/* Article List */
.article-list {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

.article-list h2 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
}

.article-list ul li {
    padding: 18px 0;
    border-bottom: 1px solid var(--border-light);
}

.article-list ul li:last-child {
    border-bottom: none;
}

.article-list ul li h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.article-list ul li h3 a {
    color: var(--text-primary);
    font-weight: 600;
    display: block;
    transition: var(--transition);
}

.article-list ul li h3 a:hover {
    color: var(--primary);
}

.article-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.article-meta .time::before {
    content: "\1F550 ";
}

.article-meta .source::before {
    content: "\1F4F0 ";
}

/* Pagination */
.pagination {
    margin-top: 24px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--card-bg);
    transition: var(--transition);
    text-decoration: none;
}

.pagination a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination span {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Sidebar */
.content-area .right > div {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    margin-bottom: 20px;
}

.content-area .right h2 {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.content-area .right ul li {
    padding: 7px 0;
    border-bottom: 1px dashed var(--border-light);
}

.content-area .right ul li:last-child {
    border-bottom: none;
}

.content-area .right ul li a {
    color: var(--text-secondary);
    font-size: 13px;
    display: block;
}

.content-area .right ul li a:hover {
    color: var(--primary);
    padding-left: 3px;
}

/* Page footer info */
.page-footer-info {
    font-size: 12px;
    color: var(--text-muted);
    padding: 16px;
    text-align: center;
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

/* ==============================================
   Article Page Styles
   ============================================== */

.article-page .article-header {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 28px;
    margin-bottom: 24px;
    text-align: center;
}

.article-page .article-header h1 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 14px;
    line-height: 1.35;
}

.article-page .article-header .article-meta {
    justify-content: center;
    font-size: 13px;
}

.article-page .article-header .article-meta .author::before {
    content: "\270D\FE0F ";
}

.article-page .article-header .article-meta .source::before {
    content: "\1F4F0 ";
}

/* Article Abstract */
.article-abstract {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFFDE7 100%);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 24px;
    border-left: 4px solid var(--accent);
}

.article-abstract h2 {
    font-size: 15px;
    color: var(--accent);
    margin-bottom: 8px;
}

.article-abstract p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Article Body */
.article-page .text {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 28px;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-secondary);
}

.article-page .text h2,
.article-page .text h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.article-page .text h2 {
    font-size: 20px;
}

.article-page .text h3 {
    font-size: 17px;
}

.article-page .text p {
    margin: 10px 0;
}

.article-page .text img {
    border-radius: var(--radius-sm);
    margin: 16px 0;
}

.article-page .text a {
    color: var(--primary);
    text-decoration: underline;
}

/* Data Source Box */
.data-source-box {
    background: #F5F5F5;
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid var(--border-light);
}

.data-source-box h2 {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.data-source-box p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Related Articles */
.related-articles {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
}

.related-articles h2 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
}

.related-articles ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.related-articles ul li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-light);
}

.related-articles ul li a {
    color: var(--text-secondary);
    font-size: 13px;
}

.related-articles ul li a:hover {
    color: var(--primary);
}

/* District Weather (inside article page) */
.district-weather {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
}

.district-weather h2 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
}

.district-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.district-links a {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-light);
    border-radius: 20px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
}

.district-links a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Topic Entry (inside article page) */
.topic-entry-box {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
}

.topic-entry-box h2 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
}

.topic-entry-box ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.topic-entry-box ul li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-light);
}

.topic-entry-box ul li a {
    color: var(--text-secondary);
    font-size: 13px;
}

.topic-entry-box ul li a:hover {
    color: var(--accent);
}

/* ===== Breadcrumb (list/article pages) ===== */
.cur {
    font-size: 13px;
    color: var(--text-muted);
    padding: 14px 0;
    margin-bottom: 8px;
}

.cur a {
    color: var(--primary);
}

.cur a:hover {
    color: var(--accent);
}

/* ===== Page Styles ===== */
.listpage {
    margin-bottom: 24px;
}

/* ==============================================
   NATIONAL PORTAL — NEW STYLES v3.0
   全国天气门户新增样式
   ============================================== */

/* ===== City Selector ===== */
.city-selector {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 14px 20px;
    margin-bottom: 8px;
}

.city-selector-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.city-label {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
}

.city-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.city-quick-links a {
    display: inline-block;
    padding: 5px 14px;
    font-size: 13px;
    color: var(--text-secondary);
    background: #F5F9FF;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.city-quick-links a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.city-quick-links a.hot {
    color: var(--primary);
    font-weight: 600;
    background: var(--bg-light);
}

.city-quick-links a.hot:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ===== National Overview ===== */
.national-overview h1 {
    font-size: 22px;
    margin-bottom: 16px;
}

.national-live {
    flex-direction: column;
}

.national-now {
    flex: 1;
    min-width: auto;
}

.national-now h2 {
    font-size: 16px;
    margin-bottom: 10px;
}

.overview-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding: 10px 14px;
    background: #FFF8E1;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
}

.region-weather-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.region-item {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 12px 10px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.region-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.region-name {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.region-temp {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

.region-cond {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.national-aqi-summary {
    flex: 1;
    min-width: auto;
    margin-top: 8px;
}

.national-aqi-summary p {
    margin: 6px 0;
    font-size: 13px;
}

.aqi-grade {
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px !important;
}

.aqi-grade.good {
    background: #E8F5E9;
    color: #2E7D32;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.tag.good { background: #E8F5E9; color: #2E7D32; }
.tag.mild { background: #FFF3E0; color: #E65100; }
.tag.moderate { background: #FFF8E1; color: #F57F17; }

/* ===== Hot Cities ===== */
.hot-cities {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
}

.hot-cities h2 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
}

.hot-cities-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.city-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 10px;
    background: linear-gradient(135deg, #F8FBFF 0%, #F0F8FF 100%);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    text-decoration: none;
    transition: var(--transition);
}

.city-card:hover {
    background: var(--bg-light);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(21, 101, 192, 0.15);
}

.city-card .city-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.city-card .city-temp {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 2px;
}

.city-card .city-temp::after {
    content: "\00B0";
    font-size: 14px;
}

.city-card .city-weather {
    font-size: 12px;
    color: var(--text-muted);
}

/* National AQI Grid */
.national-aqi-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.aqi-city-item {
    padding: 10px;
    background: linear-gradient(135deg, #F8FBFF 0%, #F0F8FF 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    text-align: center;
    transition: var(--transition);
}

.aqi-city-item:hover {
    border-color: var(--primary);
    background: var(--bg-light);
}

.aqi-city-item a {
    color: var(--text-secondary);
    font-size: 13px;
    display: block;
}

.aqi-city-item a:hover {
    color: var(--primary);
}

/* ===== AI Analysis ===== */
.ai-analysis {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
}

.ai-analysis h2 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
}

.ai-analysis-content {
    padding: 10px 0;
}

.ai-badge {
    display: inline-block;
    padding: 3px 12px;
    background: linear-gradient(135deg, #1565C0, #1976D2);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.ai-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 16px;
    padding: 14px 18px;
    background: #F5F9FF;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
}

.ai-text strong {
    color: var(--text-primary);
}

.ai-analysis .editor-content {
    margin-top: 12px;
    padding: 14px;
    background: #FAFBFD;
    border-radius: var(--radius-sm);
}

/* ===== Rainfall Trend ===== */
.rainfall-trend {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
}

.rainfall-trend h2 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
}

.rainfall-map-placeholder {
    padding: 10px 0;
}

.rainfall-region-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.rain-region {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #F5F9FF;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.rain-region:hover {
    border-color: var(--primary);
}

.rr-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.rr-status {
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 12px;
}

.rr-status.dry { background: #E8F5E9; color: #2E7D32; }
.rr-status.light { background: #E3F2FD; color: #1565C0; }
.rr-status.moderate { background: #FFF3E0; color: #E65100; }
.rr-status.heavy { background: #FFEBEE; color: #C62828; }

.rainfall-note {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    padding: 10px 14px;
    background: #FFF8E1;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
}

/* ===== Forecast Access ===== */
.national-forecast {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
}

.national-forecast h2 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
}

.forecast-access-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.forecast-access-card {
    padding: 20px;
    background: linear-gradient(135deg, #F8FBFF 0%, #F0F8FF 100%);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    text-align: center;
    transition: var(--transition);
}

.forecast-access-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.forecast-access-card h3 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-weight: 700;
}

.forecast-access-card p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.access-btn {
    display: inline-block;
    padding: 6px 18px;
    background: var(--primary);
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
}

.access-btn:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}

/* ===== Travel Weather ===== */
.travel-weather {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
}

.travel-weather h2 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
}

.travel-index-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.travel-card {
    padding: 18px;
    background: linear-gradient(135deg, #FFF3E0 0%, #FFF8E1 100%);
    border-radius: var(--radius-sm);
    border: 1px solid #FFE0B2;
    text-align: center;
    transition: var(--transition);
}

.travel-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 111, 0, 0.12);
    border-color: var(--accent);
}

.travel-card h3 {
    font-size: 15px;
    color: #E65100;
    margin-bottom: 6px;
    font-weight: 600;
}

.travel-card p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.travel-card a {
    color: var(--primary);
    font-size: 12px;
    font-weight: 500;
}

.travel-card a:hover {
    color: var(--accent);
}

/* ===== Weather Warning ===== */
.weather-warning {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
}

.weather-warning h2 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
}

.warning-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.warning-level {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.warning-level.red { background: #FFEBEE; color: #C62828; border: 1px solid #EF9A9A; }
.warning-level.orange { background: #FFF3E0; color: #E65100; border: 1px solid #FFCC80; }
.warning-level.yellow { background: #FFF8E1; color: #F57F17; border: 1px solid #FFE082; }
.warning-level.blue { background: #E3F2FD; color: #1565C0; border: 1px solid #90CAF9; }

.warning-list {
    margin: 10px 0;
}

.warning-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-light);
}

.warning-item:last-child {
    border-bottom: none;
}

.warning-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.warning-tag.red { background: #FFEBEE; color: #C62828; }
.warning-tag.orange { background: #FFF3E0; color: #E65100; }
.warning-tag.yellow { background: #FFF8E1; color: #F57F17; }
.warning-tag.blue { background: #E3F2FD; color: #1565C0; }

.warning-item a {
    flex: 1;
    font-size: 13px;
    color: var(--text-secondary);
}

.warning-item a:hover {
    color: var(--primary);
}

.warning-time {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ===== City Weather Header (list page) ===== */
.city-weather-header {
    background: linear-gradient(135deg, var(--card-bg) 0%, #F8FBFF 100%);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 24px;
    margin-bottom: 24px;
    border-left: 5px solid var(--accent);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.city-weather-main {
    flex: 2;
    min-width: 280px;
}

.city-weather-main h1 {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.city-temp-display {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
}

.city-weather-now {
    text-align: center;
    min-width: 120px;
}

.city-temp-big {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    display: inline-block;
}

.city-temp-unit {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-muted);
    vertical-align: super;
    margin-left: 2px;
}

.city-weather-detail {
    flex: 1;
    min-width: 160px;
}

.city-weather-detail p {
    margin: 6px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.city-weather-detail strong {
    color: var(--text-primary);
    font-weight: 600;
}

.city-aqi-card {
    flex: 1;
    min-width: 200px;
    background: linear-gradient(135deg, #E8F5E9 0%, #F1F8E9 100%);
    border-radius: var(--radius-sm);
    padding: 18px;
    border: 1px solid #C8E6C9;
}

.city-aqi-card h2 {
    font-size: 15px;
    color: #2E7D32;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #A5D6A7;
}

.city-aqi-card p {
    margin: 5px 0;
    font-size: 13px;
}

.city-aqi-card a {
    color: #2E7D32;
}

.city-aqi-card a:hover {
    color: var(--accent);
}

/* ===== Rainfall Forecast (city page) ===== */
.rainfall-forecast {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
}

.rainfall-forecast h2 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
}

.rainfall-info p {
    margin: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.rain-chance {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
}

.rain-chance.low { background: #E8F5E9; color: #2E7D32; }
.rain-chance.medium { background: #FFF8E1; color: #F57F17; }
.rain-chance.high { background: #FFEBEE; color: #C62828; }

.rainfall-item {
    margin: 6px 0;
}

.rainfall-item a {
    color: var(--text-secondary);
    font-size: 13px;
}

.rainfall-item a:hover {
    color: var(--primary);
}

/* ===== AI Interpretation ===== */
.ai-interpretation {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
    border-left: 4px solid var(--primary);
}

.ai-interpretation h2 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
}

.ai-interpretation .ai-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 10px;
}

/* ===== Life Index ===== */
.life-index {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
}

.life-index h2 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
}

.life-index-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.life-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 10px;
    background: #F5F9FF;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    text-align: center;
    transition: var(--transition);
}

.life-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.life-icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.life-name {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.life-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.life-item.comfort {
    background: #E8F5E9;
    border-color: #C8E6C9;
}

.life-item.comfort .life-value {
    color: #2E7D32;
}

/* ===== City Switch Bar (article page) ===== */
.city-switch-bar {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 20px 24px;
    margin-bottom: 24px;
}

.city-switch-bar h2 {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.city-switch-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.city-switch-links a {
    display: inline-block;
    padding: 5px 14px;
    font-size: 13px;
    color: var(--text-secondary);
    background: #F5F9FF;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.city-switch-links a:hover {
    background: var(--primary);
    color: #fff;
}

/* ==============================================
   Responsive: Three Breakpoints
   ============================================== */

/* Tablet: 768px */
@media (max-width: 768px) {
    .wrap {
        padding: 0 16px;
    }

    .header .mid {
        flex-direction: column;
        text-align: center;
        padding: 14px 16px;
    }

    .header .logo {
        justify-content: center;
    }

    .mid_search {
        width: 100%;
    }

    .search {
        justify-content: center;
    }

    .search .txt {
        width: 180px;
    }

    .nav .wrap {
        justify-content: center;
    }

    .nav a {
        padding: 10px 14px;
        font-size: 13px;
    }

    .nav a::after {
        left: 14px;
        right: 14px;
    }

    .weather-card {
        padding: 20px;
    }

    .temp-current {
        font-size: 48px;
    }

    .forecast-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .news-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hot-list {
        grid-template-columns: 1fr;
    }

    .content-area {
        flex-direction: column;
    }

    .content-area .right {
        width: 100%;
    }

    .focus-items {
        grid-template-columns: 1fr;
    }

    .related-articles ul {
        grid-template-columns: 1fr;
    }

    .topic-entry-box ul {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-links a {
        padding: 4px 8px;
        font-size: 12px;
    }

    .toTop {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    /* National responsive */
    .region-weather-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hot-cities-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .national-aqi-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

    .rainfall-region-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .life-index-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .city-weather-header {
        flex-direction: column;
    }
}

/* Mobile: 640px */
@media (max-width: 640px) {
    .wrap {
        padding: 0 12px;
    }

    .nav .wrap {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nav .wrap::-webkit-scrollbar {
        display: none;
    }

    .nav a {
        padding: 10px 12px;
        font-size: 12px;
    }

    .weather-card h1 {
        font-size: 17px;
    }

    .live-weather {
        flex-direction: column;
    }

    .temp-current {
        font-size: 42px;
    }

    .weather-info {
        flex-direction: column;
    }

    .weather-table {
        font-size: 13px;
    }

    .weather-table thead th,
    .weather-table tbody td {
        padding: 10px 8px;
    }

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

    .topic-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .district-list {
        gap: 8px;
    }

    .district-list a {
        padding: 6px 14px;
        font-size: 13px;
    }

    .section-title {
        font-size: 16px;
    }

    .article-page .article-header h1 {
        font-size: 20px;
    }

    .article-page .text {
        padding: 20px;
        font-size: 14px;
    }

    .category-header h1 {
        font-size: 20px;
    }

    .focus-items {
        grid-template-columns: 1fr;
    }

    /* National responsive */
    .region-weather-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

    .travel-index-grid {
        grid-template-columns: 1fr 1fr;
    }

    .rainfall-region-list {
        grid-template-columns: 1fr;
    }

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

    .city-temp-big {
        font-size: 40px;
    }

    .city-weather-main h1 {
        font-size: 18px;
    }

    .national-forecast h2,
    .weather-warning h2 {
        font-size: 16px;
    }
}

/* Small Mobile: 414px */
@media (max-width: 414px) {
    .wrap {
        padding: 0 10px;
    }

    .weather-card {
        padding: 16px;
    }

    .weather-card h1 {
        font-size: 15px;
        margin-bottom: 14px;
    }

    .temp-current {
        font-size: 36px;
    }

    .temp-block {
        min-width: 100px;
    }

    .weather-detail p {
        font-size: 13px;
    }

    .aqi-box {
        padding: 14px;
    }

    .forecast-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .forecast-item {
        padding: 10px 6px;
    }

    .forecast-item a {
        font-size: 12px;
    }

    .topic-list {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .topic-item {
        padding: 12px;
    }

    .district-list a {
        padding: 5px 12px;
        font-size: 12px;
    }

    .card,
    .weather-card,
    .editor-pick,
    .hourly-trend,
    .forecast-15d,
    .air-quality,
    .district-entry,
    .topic-entry,
    .latest-news,
    .hot-news {
        padding: 16px;
        margin-bottom: 16px;
    }

    .article-page .article-header {
        padding: 20px;
    }

    .article-page .article-header h1 {
        font-size: 17px;
    }

    .article-list ul li {
        padding: 14px 0;
    }

    .article-list ul li h3 {
        font-size: 14px;
    }

    .weather-table {
        font-size: 12px;
    }

    .weather-table thead th,
    .weather-table tbody td {
        padding: 8px 5px;
    }

    .search .txt {
        width: 140px;
    }

    .footer {
        padding: 24px 0 20px;
    }

    .footer .info p {
        font-size: 11px;
    }

    .toTop {
        bottom: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
    }

    .toTop::after {
        font-size: 18px;
    }

    /* National responsive */
    .region-weather-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .region-temp {
        font-size: 16px;
    }

    .hot-cities-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .city-card {
        padding: 14px 8px;
    }

    .city-card .city-temp {
        font-size: 18px;
    }

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

    .forecast-access-grid {
        grid-template-columns: 1fr;
    }

    .travel-index-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .life-index-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .life-item {
        padding: 12px 8px;
    }

    .city-weather-main h1 {
        font-size: 16px;
    }

    .city-temp-big {
        font-size: 34px;
    }

    .city-aqi-card {
        padding: 14px;
    }

    .warning-item {
        flex-wrap: wrap;
    }

    .warning-item a {
        width: 100%;
        order: 3;
        padding-left: 0;
    }

    .warning-time {
        width: 100%;
        text-align: right;
        order: 4;
    }

    .ai-text {
        font-size: 13px;
        padding: 10px 14px;
    }

    .city-selector {
        padding: 10px 16px;
    }

    .city-quick-links a {
        padding: 4px 10px;
        font-size: 12px;
    }

    .rain-region {
        padding: 10px 12px;
    }
}
