/* =========================================
   全局变量 (Global Variables)
   ========================================= */
:root {
    /* 基础配色 */
    --primary: #0f6e6e;
    --primary-dark: #0a4f4f;
    --primary-light: #e0f2f1;
    --primary-soft: #b2dfdb;
    
    /* 文字颜色 */
    --text-main: #1e2a3a;
    --text-secondary: #2c3e4e;
    --text-light: #5a6e7c;
    --text-muted: #7f8c8d;
    
    /* 背景与边框 */
    --bg-body: #f5f7fb;
    --bg-card: #ffffff;
    --bg-alt: #f8fafc;
    --border: #e4e9f0;
    --border-light: #eef2f6;
    
    /* 功能色 */
    --accent-warning: #e67e22;
    --accent-danger: #e74c3c;
    --accent-success: #2ecc71;
    --accent-info: #3498db;
    
    /* 视觉样式 */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 4px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 10px 25px -5px rgba(15, 110, 110, 0.08);
    --shadow-card-hover: 0 20px 25px -12px rgba(0, 0, 0, 0.08);
    
    /* 过渡动画 */
    --transition-base: all 0.2s ease;
    --transition-slow: all 0.3s ease;
    
    /* 间距规范 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
}

/* =========================================
   全局重置 & 基础样式 (Reset & Base)
   ========================================= */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}
html { scroll-behavior: smooth; }
body {
    font-family: "Microsoft Yahei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}
a { 
    text-decoration: none; 
    color: inherit; 
    transition: var(--transition-base); 
}
a:hover { color: var(--primary); }
ul, ol { list-style: none; }
img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* =========================================
   导航栏 (Header & Nav)
   ========================================= */
header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}
.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    letter-spacing: -0.3px;
}
.logo span { 
    color: var(--text-main); 
    font-weight: 400; 
}
.menu { 
    display: flex; 
    gap: 32px; 
}
.menu a {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
}
.menu a:hover, .menu a.active { color: var(--primary); }
.menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}
.back-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* =========================================
   通用布局 & 内容区域 (Layout & Content)
   ========================================= */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    margin: 24px 0;
}
.content-area {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}
.breadcrumb, .breadcrumb-modern { 
    padding: 16px 0 20px; 
    font-size: 0.85rem; 
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 24px;
    overflow-x: auto;
    white-space: nowrap;
}
.breadcrumb a, .breadcrumb-modern a {
    color: var(--primary);
}
.breadcrumb a:hover, .breadcrumb-modern a:hover {
    text-decoration: underline;
}
.breadcrumb-modern .separator {
    margin: 0 6px;
    color: var(--text-muted);
}
.section-title {
    font-size: 24px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-weight: 600;
}

/* =========================================
   页面导航标签
   ========================================= */
.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}
.nav-tab {
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--bg-alt);
    transition: var(--transition-base);
}
.nav-tab:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}
.nav-tab.active {
    background: var(--primary);
    color: white;
}

/* =========================================
   通用侧边栏组件 (Sidebar Widgets)
   ========================================= */
.sidebar { 
    display: flex; 
    flex-direction: column; 
    gap: var(--spacing-md); 
}
.widget, .sidebar-widget {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
}
.sidebar-widget:last-child {
    margin-bottom: 0;
}
.widget-title, .sidebar-widget h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 600;
    color: var(--text-main);
}
.widget-title svg, .sidebar-widget h3 i { 
    width: 20px; 
    height: 20px; 
    color: var(--primary); 
}
.side-list li {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
}
.side-list li:last-child { 
    border: none; 
    margin: 0; 
    padding: 0; 
}
.side-link {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.4;
    transition: transform var(--transition-base);
}
.side-link:hover { 
    color: var(--primary); 
    transform: translateX(5px); 
}
.side-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
    display: block;
}
.hot-list { counter-reset: hot-counter; }
.hot-list li {
    position: relative;
    padding-left: 30px;
    border: none !important;
    margin-bottom: 12px;
}
.hot-list li::before {
    counter-increment: hot-counter;
    content: counter(hot-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    background: #f1f3f5;
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    line-height: 20px;
    border-radius: var(--radius-xs);
    transition: var(--transition-base);
}
.hot-list li:nth-child(1)::before { background: var(--accent-warning); color: white; }
.hot-list li:nth-child(2)::before { background: var(--accent-warning); color: white; opacity: 0.9; }
.hot-list li:nth-child(3)::before { background: var(--accent-warning); color: white; opacity: 0.8; }
.hot-list li:hover::before { 
    background: var(--primary); 
    color: white; 
}
.tags-cloud { 
    display: flex; 
    flex-wrap: wrap; 
    gap: var(--spacing-sm); 
}
.tag-item {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition-base);
}
.tag-item:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* 作者卡片 */
.author-card { text-align: center; }
.author-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto var(--spacing-md);
    border: 3px solid var(--primary-light);
}
.author-card h4 { 
    font-size: 1.1rem; 
    margin-bottom: var(--spacing-xs); 
    color: var(--text-main); 
}
.author-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}
.social-links { 
    display: flex; 
    justify-content: center; 
    gap: var(--spacing-sm); 
}
.social-icon {
    width: 32px;
    height: 32px;
    background: var(--bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-slow);
}
.social-icon:hover { 
    background: var(--primary); 
    color: white; 
}

/* 目录导航 */
.toc-list li { margin-bottom: var(--spacing-sm); }
.toc-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: block;
    padding: 6px 0;
    border-left: 2px solid transparent;
    padding-left: var(--spacing-sm);
    transition: var(--transition-base);
}
.toc-link:hover { 
    color: var(--primary); 
    border-left-color: var(--primary); 
}
.toc-link.level-2 { 
    font-weight: 600; 
    color: var(--text-main); 
}
.toc-link.level-3 { 
    font-size: 0.85rem; 
    padding-left: var(--spacing-md); 
    color: var(--text-light); 
}

/* =========================================
   首页特有样式 (Home Page)
   ========================================= */
.hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius);
    padding: 48px 40px;
    color: white;
    text-align: center;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
    margin-top: 16px;
}
.hero h1 { 
    font-size: 1.8rem; 
    margin-bottom: 12px; 
    font-weight: 700;
}
.hero p {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 550px;
    margin: 0 auto;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--border);
}
.section-header .section-title {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin: 0;
    border-bottom: none;
}
.section-header .section-title::before {
    content: '';
    display: block;
    width: 6px;
    height: 24px;
    background: var(--primary);
    border-radius: var(--radius-xs);
}

/* 文章卡片 */
.post-card, .list-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: var(--spacing-xl);
    margin-bottom: 28px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
}
.list-item {
    padding: 24px;
    margin-bottom: var(--spacing-md);
    gap: var(--spacing-sm);
}
.post-card:hover, .list-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-soft);
}
.post-meta, .list-meta, .article-meta-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.post-meta, .list-meta { margin-bottom: 12px; }
.post-tag, .list-tag, .tag-pill {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 500;
    border-radius: var(--radius-xs);
    padding: 4px 10px;
    font-size: 0.75rem;
}
.list-tag { padding: 2px 8px; }
.tag-pill {
    border-radius: 20px;
    padding: 4px 12px;
}
.post-date { 
    display: flex; 
    align-items: center; 
    gap: var(--spacing-xs); 
}
.post-title, .list-title, .article-list-title {
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 12px;
}
.post-title { font-size: 1.5rem; }
.list-title { font-size: 1.3rem; }
.article-list-title {
    font-size: 1rem;
    font-weight: 600;
}
.post-excerpt, .list-excerpt {
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-excerpt { margin-bottom: var(--spacing-lg); }
.list-excerpt {
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
}
.post-footer, .list-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-light);
    padding-top: var(--spacing-md);
}
.author-info { 
    display: flex; 
    align-items: center; 
    gap: var(--spacing-sm); 
    font-size: 0.85rem; 
    font-weight: 500; 
}
.author-avatar, .avatar { 
    width: 32px; 
    height: 32px; 
    background: var(--primary-soft); 
    border-radius: 50%; 
    background-size: cover; 
}
.avatar { width: 36px; height: 36px; }
.read-more-btn, .read-link {
    color: var(--primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}
.read-more-btn { font-size: 0.9rem; }
.read-link { font-size: 0.85rem; }

/* =========================================
   列表页特有样式 (List Page)
   ========================================= */
.page-header { margin-bottom: var(--spacing-xl); }
.page-title { 
    font-size: 2rem; 
    font-weight: 700; 
    color: var(--text-main); 
    margin-bottom: var(--spacing-sm); 
}
.page-desc { color: var(--text-secondary); }
.filter-bar {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: 28px;
    overflow-x: auto;
    padding-bottom: var(--spacing-xs);
}
.filter-btn {
    padding: 8px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition-base);
}
.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.pagination { 
    display: flex; 
    justify-content: center; 
    gap: var(--spacing-sm); 
    margin-top: var(--spacing-xl); 
}
.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-base);
}
.page-btn.active { 
    background: var(--primary); 
    color: white; 
    border-color: var(--primary); 
}
.page-btn:hover:not(.active) { 
    background: var(--primary-light); 
    color: var(--primary); 
}

/* =========================================
   内容页特有样式 (Article Page)
   ========================================= */
.article-container {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border-light);
}
.article-header { 
    padding: 48px; 
    border-bottom: 1px solid var(--border); 
}
.article-tags { 
    display: flex; 
    gap: var(--spacing-sm); 
    margin-bottom: var(--spacing-lg); 
}
.article-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: var(--spacing-lg);
}
.article-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    color: var(--text-muted);
    font-size: 0.9rem;
}
.author-block { 
    display: flex; 
    align-items: center; 
    gap: var(--spacing-sm); 
    color: var(--text-secondary); 
    font-weight: 500; 
}
.article-content { 
    padding: 48px; 
    font-size: 1.1rem; 
    color: var(--text-secondary); 
    line-height: 1.75; 
}
.article-content p { 
    margin-bottom: 28px; 
    text-align: justify; 
}
.article-content h2 {
    font-size: 1.6rem;
    color: var(--text-main);
    margin: 52px 0 24px;
    font-weight: 700;
    border-left: 5px solid var(--primary);
    padding-left: 18px;
    scroll-margin-top: 100px;
}
.article-content h3 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin: 40px 0 16px;
    font-weight: 600;
}
.article-content ul, .article-content ol { 
    margin-bottom: 28px; 
    padding-left: 28px; 
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 8px; }
.article-content a.internal-link {
    color: var(--primary) !important;
    text-decoration: underline !important;
    font-weight: 500 !important;
}
.abstract-box {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 20px 28px;
    margin-bottom: 32px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
figure { 
    margin: 40px 0; 
    text-align: center; 
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    margin: 0 auto;
}
figcaption {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
blockquote {
    margin: 32px 0;
    padding: 20px 32px;
    background: var(--bg-alt);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
code {
    background: var(--bg-alt);
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    font-family: "Consolas", monospace;
    font-size: 0.85em;
    color: var(--accent-danger);
}
pre {
    background: #1e2a3a;
    color: #e2e8f0;
    padding: 20px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 28px 0;
}
pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}
.article-footer {
    padding: 32px 48px;
    background: var(--bg-alt);
    border-top: 1px solid var(--border-light);
}
.footer-tags { 
    margin-bottom: var(--spacing-xl); 
    display: flex; 
    gap: var(--spacing-sm); 
    flex-wrap: wrap; 
}
.footer-tag {
    color: var(--text-secondary);
    font-size: 0.85rem;
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 30px;
    transition: var(--transition-base);
}
.footer-tag:hover { 
    border-color: var(--primary); 
    color: var(--primary); 
}
.post-nav { 
    display: flex; 
    justify-content: space-between; 
    gap: var(--spacing-lg); 
}
.nav-item { flex: 1; }
.nav-item.next { text-align: right; }
.nav-label { 
    font-size: 0.8rem; 
    color: var(--text-muted); 
    margin-bottom: var(--spacing-xs); 
}
.nav-title { 
    font-weight: 600; 
    color: var(--text-main); 
}

/* =========================================
   天气模块样式 (Weather Module)
   ========================================= */
.weather-header { margin-bottom: 28px; }

/* 当前天气卡片 */
.current-weather-card {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
.current-weather-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}
.cw-top { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    margin-bottom: 24px; 
    flex-wrap: wrap; 
    gap: 16px; 
    position: relative; 
    z-index: 1; 
}
.cw-location h1 { 
    font-size: 1.8rem; 
    margin: 0 0 6px; 
    font-weight: 700;
}
.cw-location p { 
    margin: 0; 
    opacity: 0.85; 
    font-size: 0.85rem; 
}
.cw-update { 
    font-size: 0.7rem; 
    opacity: 0.75; 
    background: rgba(255,255,255,0.2); 
    padding: 4px 12px; 
    border-radius: 30px; 
}
.cw-main { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin: 20px 0; 
    flex-wrap: wrap; 
    gap: 20px; 
    position: relative; 
    z-index: 1; 
}
.cw-temp-box { display: flex; flex-direction: column; }
.cw-temp { font-size: 3.5rem; font-weight: 800; line-height: 1; }
.cw-desc { font-size: 1rem; opacity: 0.9; margin-top: 8px; }
.cw-icon-large { font-size: 4rem; opacity: 0.95; }
.cw-details { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 16px; 
    margin-top: 24px; 
    padding-top: 20px; 
    border-top: 1px solid rgba(255,255,255,0.2); 
    position: relative; 
    z-index: 1; 
}
.cw-item { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; }
.cw-item i { width: 20px; font-size: 1rem; }

/* 逐小时预报 */
.hourly-section { margin-bottom: 32px; }
.hourly-outer-wrap { margin: 20px 0; padding: 0; }
.hourly-scroll-container {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.hourly-scroll-container::-webkit-scrollbar { height: 6px; }
.hourly-scroll-container::-webkit-scrollbar-track { background: var(--border-light); border-radius: 3px; }
.hourly-scroll-container::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
.hour-item {
    width: 85px;
    float: left;
    margin: 4px;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 14px 8px;
}
.hour-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}
.h-time { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; font-weight: 500; }
.h-icon { font-size: 1.6rem; margin: 8px 0; }
.h-temp { font-weight: 700; color: var(--text-main); font-size: 1.1rem; }
.h-wind { font-size: 0.7rem; color: var(--text-light); margin-top: 6px; }

/* 7天预报 */
.forecast-list {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
}
.forecast-row-header {
    display: grid;
    grid-template-columns: 100px 90px 1fr 110px 90px 80px;
    background: linear-gradient(135deg, var(--bg-alt), #fff);
    padding: 14px 20px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}
.forecast-row {
    display: grid;
    grid-template-columns: 100px 90px 1fr 110px 90px 80px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
    transition: var(--transition-base);
}
.forecast-row:last-child { border-bottom: none; }
.forecast-row:hover { background: var(--bg-alt); transform: translateX(2px); }
.f-date { font-weight: 600; color: var(--text-main); }
.f-aqi {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
    background: #f1f5f9;
    color: #475569;
}
.f-aqi.good { background: #dcfce7; color: #166534; }
.f-aqi.mod { background: #fef9c3; color: #854d0e; }
.f-aqi.bad { background: #fee2e2; color: #991b1b; }
.f-weather { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.f-weather i { font-size: 1.1rem; }
.f-weather span { font-size: 0.85rem; color: var(--text-secondary); }
.f-temp { font-weight: 700; color: var(--text-main); }
.f-wind { font-size: 0.85rem; color: var(--text-secondary); }

/* 生活指数 */
.index-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); 
    gap: 20px; 
    margin-bottom: 20px; 
}
.index-card { 
    background: var(--bg-card); 
    border: 1px solid var(--border-light); 
    border-radius: var(--radius); 
    padding: 20px; 
    transition: var(--transition-slow); 
}
.index-card:hover { 
    transform: translateY(-3px); 
    box-shadow: var(--shadow-hover); 
    border-color: var(--primary-light); 
}
.idx-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.idx-icon { 
    width: 44px; 
    height: 44px; 
    background: var(--primary-light); 
    border-radius: var(--radius-sm); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--primary); 
    font-size: 1.2rem; 
}
.idx-title { font-weight: 600; color: var(--text-main); font-size: 1rem; flex: 1; }
.idx-level { 
    font-size: 0.7rem; 
    font-weight: 600; 
    color: var(--primary); 
    background: var(--primary-light); 
    padding: 4px 10px; 
    border-radius: 20px; 
}
.idx-detail { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }

/* 日出日落 */
.sunrise-card, .sun-moon-widget {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    margin-bottom: var(--spacing-xl);
}
.sunrise-flex, .sun-info {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}
.sun-item, .sun-info-item { flex: 1; text-align: center; }
.sun-icon, .sm-icon { font-size: 2rem; margin-bottom: 8px; }
.sun-icon.sun, .sm-icon.sun { color: #f59e0b; }
.sun-icon.moon, .sm-icon.moon { color: #6366f1; }
.sun-label, .sm-label, .sun-info-label { 
    font-size: 0.75rem; 
    color: var(--text-muted); 
    margin-bottom: 6px; 
}
.sun-time, .sm-time, .sun-info-value { 
    font-size: 1.1rem; 
    font-weight: 700; 
    color: var(--text-main); 
}

/* 预警样式 */
.alert-card {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 14px 16px;
    border-radius: var(--radius);
}
.alert-card i { color: #ef4444; margin-right: 8px; }
.alert-card p { margin: 0; font-size: 0.85rem; color: #991b1b; line-height: 1.5; }
.no-alert-card {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    padding: 14px 16px;
    border-radius: var(--radius);
}
.no-alert-card i { color: #22c55e; margin-right: 8px; }
.no-alert-card p { margin: 0; font-size: 0.85rem; color: #166534; }

/* =========================================
   功能模块样式 (Functional Modules)
   ========================================= */
.search-wrapper {
    margin-bottom: 32px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}
.search-box { 
    margin: 0;
    display: flex; 
    gap: 12px; 
    flex-wrap: wrap;
}
.search-input { 
    flex: 1; 
    padding: 14px 20px; 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    font-size: 1rem;
    min-width: 200px;
    transition: var(--transition-base);
}
.search-input:focus { 
    border-color: var(--primary); 
    box-shadow: 0 0 0 3px var(--primary-light); 
    outline: none;
}
.search-btn { 
    padding: 0 28px; 
    background: var(--primary); 
    color: white; 
    border: none; 
    border-radius: var(--radius); 
    cursor: pointer; 
    font-weight: 500; 
    transition: var(--transition-base); 
    white-space: nowrap;
}
.search-btn:hover { 
    background: var(--primary-dark); 
    transform: translateY(-1px); 
}

/* 横向日历 */
.week-calendar-wrapper {
    overflow-x: auto;
    padding-bottom: var(--spacing-xs);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.week-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    min-width: 600px;
}
.day-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 14px 8px;
    text-align: center;
    transition: var(--transition-slow);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.day-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-soft);
}
.day-card.today {
    background: var(--primary-light);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 12px rgba(15, 110, 110, 0.1);
}
.day-name { font-size: 0.9rem; font-weight: 600; color: var(--text-main); margin-bottom: 4px; }
.day-date { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 8px; }
.day-icon { font-size: 1.8rem; margin: 6px 0; color: var(--primary); }
.day-icon.rain { color: var(--accent-info); }
.day-icon.sun { color: var(--accent-warning); }
.day-icon.cloud { color: var(--text-muted); }
.day-temp-range { font-size: 1rem; font-weight: 600; color: var(--text-main); margin-top: auto; }
.day-temp-low { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }
.day-condition { font-size: 0.7rem; color: var(--text-secondary); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }

/* 区域省份 & 城市 */
.region-group { margin-bottom: 28px; }
.region-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding-left: var(--spacing-xs);
    border-left: 4px solid var(--primary);
}
.region-cards {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.region-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.region-card:hover {
    box-shadow: var(--shadow-hover);
}
.region-header {
    background: var(--bg-alt);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.region-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
    border-left: none;
    padding-left: 0;
}
.region-title i {
    color: var(--primary);
    font-size: 1.2rem;
}
.region-badge {
    font-size: 0.75rem;
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 30px;
}
.province-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 12px;
    padding: 20px 24px;
}
.province-link {
    display: block;
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    border-radius: 40px;
    padding: 8px 6px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s;
}
.province-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}
.full-city-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--primary);
    margin-top: 8px;
    font-weight: 500;
}
.full-city-link:hover {
    text-decoration: underline;
}
.hot-city-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}
.hot-city-item {
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    border-radius: 40px;
    padding: 8px 18px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.hot-city-item i {
    color: var(--primary);
    font-size: 0.8rem;
}
.hot-city-item:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}
.hot-city-item:hover i {
    color: white;
}

/* 城市网格 */
.city-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--spacing-lg); 
}
.city-card { 
    background: var(--bg-card); 
    border: 1px solid var(--border-light); 
    border-radius: var(--radius); 
    padding: var(--spacing-lg); 
    text-align: center; 
    transition: var(--transition-slow); 
    position: relative; 
    overflow: hidden; 
}
.city-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform var(--transition-slow);
}
.city-card:hover { 
    transform: translateY(-4px); 
    box-shadow: var(--shadow-hover); 
    border-color: var(--primary-soft);
}
.city-card:hover::before { transform: scaleX(1); }
.city-icon-wrapper {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: var(--transition-base);
}
.city-card:hover .city-icon-wrapper { background: var(--primary); }
.city-icon { font-size: 1.4rem; color: var(--primary); transition: var(--transition-base); }
.city-card:hover .city-icon { color: white; }
.city-name { font-weight: 600; font-size: 1rem; color: var(--text-main); }

/* 附近城市 */
.nearby-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.nearby-cities a {
    background: var(--bg-alt);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition-base);
}
.nearby-cities a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}
.nearby-cities span { display: none; }

/* 城市介绍 */
.city-intro-img {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 16px;
}
.city-intro-text {
    line-height: 1.7;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.city-intro-link {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
}
.city-intro-link:hover { text-decoration: underline; }

/* 文章迷你列表 */
.article-mini-list { 
    display: flex; 
    flex-direction: column; 
    gap: var(--spacing-md); 
}
.article-mini-item { 
    display: flex; 
    gap: var(--spacing-md); 
    align-items: flex-start; 
    padding-bottom: var(--spacing-md); 
    border-bottom: 1px solid var(--border-light); 
    transition: var(--transition-base); 
}
.article-mini-item:last-child { border: none; padding: 0; }
.article-mini-item:hover .article-thumb { transform: scale(1.02); }
.article-thumb { 
    width: 80px; 
    height: 60px; 
    background: var(--border); 
    border-radius: var(--radius-xs); 
    flex-shrink: 0; 
    background-size: cover; 
    background-position: center; 
    transition: transform var(--transition-slow); 
}
.article-info h4 { 
    font-size: 0.9rem; 
    font-weight: 600; 
    color: var(--text-main); 
    margin-bottom: var(--spacing-xs); 
    line-height: 1.4; 
}

/* 文章网格列表 */
.article-list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}
.article-list-item {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
    transition: background-color var(--transition-base);
}
.article-list-item:last-child { border-bottom: none; }
.article-list-item:hover {
    background-color: var(--bg-alt);
    border-radius: var(--radius);
}
.article-list-date { font-size: 0.75rem; color: var(--text-muted); }

/* 地区面包屑 */
.location-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-card);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}
.location-breadcrumb h2 { margin: 0; font-size: 1.3rem; color: var(--text-main); }
.location-breadcrumb span { color: var(--text-secondary); font-size: 0.85rem; }

/* 错误提示 */
.error-message {
    color: var(--accent-danger);
    background-color: #fff5f5;
    border: 1px solid #ffe0e0;
    padding: 1rem;
    border-radius: var(--radius);
    margin: var(--spacing-lg) 0;
    text-align: center;
}
.region-icon { font-size: 1.6rem; color: var(--primary); }

/* 健康养生/出行建议 */
.ai-badge {
    background: var(--bg-alt);
    padding: 12px 18px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-left: 3px solid var(--primary);
}
.advice-content { line-height: 1.75; font-size: 0.95rem; color: var(--text-secondary); }
.advice-section { margin-bottom: 32px; }
.advice-section h2 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.advice-section p { line-height: 1.75; color: var(--text-secondary); }
.summary-box {
    margin-top: 28px;
    padding: 18px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-left: 3px solid var(--primary);
}

/* =========================================
   页脚 (Footer)
   ========================================= */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: var(--spacing-xl) 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: auto;
}
.footer-links {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 20px;
    line-height: 1.6;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    border-top: 1px solid var(--border-light);
}
.footer-links a { margin: 0 8px; color: var(--text-muted); }
.footer-links a:hover { color: var(--primary); text-decoration: underline; }
.footer-links-title { margin-bottom: 8px; font-weight: 600; color: var(--text-secondary); }
.friendlinks, .friendlinks-section { 
    max-width: 1400px; 
    margin: 15px auto; 
    text-align: left; 
}
.friendlinks-section {
    margin: 40px auto 0;
    padding: 24px 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border-top: none;
    text-align: center;
}
.friendlinks-title {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.9rem;
}
.friendlinks-list, .friendlinks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
}
.friendlinks-list a, .friendlinks a { 
    color: var(--text-muted); 
    font-size: 0.85rem; 
    transition: color 0.2s; 
    line-height: 1.8; 
    margin: 5px 12px;
}
.friendlinks-list a:hover, .friendlinks a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* =========================================
   响应式适配 (Responsive)
   ========================================= */
@media (max-width: 1024px) {
    .main-grid { grid-template-columns: 1fr; }
    .sidebar { grid-template-columns: 1fr 1fr; gap: var(--spacing-lg); }
    .article-content, .article-header, .article-footer { padding: var(--spacing-xl); }
    .forecast-row-header, .forecast-row {
        grid-template-columns: 90px 80px 1fr 100px 80px 70px;
        padding: 12px 16px;
        gap: 8px;
    }
    .index-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

@media (max-width: 768px) {
    .nav-inner { flex-direction: column; height: auto; padding: 15px 0; gap: var(--spacing-md); }
    .menu { display: none; flex-direction: column; width: 100%; gap: var(--spacing-sm); margin-top: var(--spacing-md); }
    .menu-toggle { display: block; position: absolute; top: 20px; right: 20px; }
    .menu a { margin-left: 0; padding: var(--spacing-sm); border-bottom: 1px solid var(--border); }
    .sidebar { grid-template-columns: 1fr; }
    .container { padding: 0 var(--spacing-sm); }
    .week-calendar-grid { grid-template-columns: repeat(7, 1fr); min-width: 100%; }
    .province-grid { grid-template-columns: repeat(3, 1fr); padding: 16px; gap: 10px; }
    .hero { padding: 32px 20px; }
    .hero h1 { font-size: 1.4rem; }
    .post-card, .list-item { padding: var(--spacing-lg); }
    .post-title, .list-title { font-size: 1.2rem; }
    .article-title { font-size: 1.5rem; }
    .post-nav { flex-direction: column; gap: var(--spacing-lg); }
    .nav-item.next { text-align: left; }
    .breadcrumb { white-space: normal; word-break: break-all; }
    .content-area { padding: 20px; }
    .section-title { font-size: 1.3rem; }
    .advice-section h2 { font-size: 1.1rem; }
    
    /* 天气响应式 */
    .forecast-row-header { display: none; }
    .forecast-row { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
    .f-date { font-size: 1rem; padding-bottom: 6px; border-bottom: 1px dashed var(--border-light); }
    .nav-tabs { overflow-x: auto; flex-wrap: nowrap; gap: 6px; }
    .nav-tab { white-space: nowrap; padding: 6px 16px; font-size: 0.8rem; }
    .search-box { flex-direction: column; }
    .search-btn { padding: 12px; }
    .cw-main { flex-direction: column; text-align: center; }
    .cw-temp { font-size: 2.8rem; }
    .cw-icon-large { font-size: 3rem; }
    .cw-details { grid-template-columns: 1fr; }
    .hour-item { width: 75px; padding: 10px 6px; }
    .h-icon { font-size: 1.3rem; }
    .index-grid { grid-template-columns: 1fr; }

    /* 区域卡片响应式 */
    .region-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .city-grid { grid-template-columns: repeat(2, 1fr); }
    .article-content { padding: var(--spacing-md); font-size: 1rem; }
    .article-header, .article-footer { padding: var(--spacing-md); }
}

@media (max-width: 480px) {
    .cw-location h1 { font-size: 1.4rem; }
    .current-weather-card { padding: 20px; }
    .province-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) {
    .article-list-grid { grid-template-columns: 1fr 1fr; }
}

/* =========================================
   深色模式适配
   ========================================= */
@media (prefers-color-scheme: dark) {
    :root {
        --primary: #5d9b9b;
        --primary-dark: #4a7c7c;
        --primary-light: #2c4f4f;
        --primary-soft: #3d6b6b;
        --text-main: #eef2f5;
        --text-secondary: #cfdfe8;
        --text-light: #9bb4c2;
        --text-muted: #7f9aab;
        --bg-body: #0f1a1f;
        --bg-card: #1a2a2f;
        --bg-alt: #142228;
        --border: #2a4048;
        --border-light: #253a42;
    }
    .article-content { color: var(--text-secondary); }
    pre { background: #0c181f; border: 1px solid var(--border); }
    .forecast-row-header { background: linear-gradient(135deg, #1e293b, #0f172a); }
    .f-aqi { background: #334155; color: #cbd5e1; }
    .sunrise-card { background: linear-gradient(135deg, #2d2a1f, #2a241a); }
    .alert-card { background: #2d1f1f; }
    .no-alert-card { background: #1f2a1f; }
}