/*
Theme Name: 51数据集合
Theme URI: https://51jh.net
Author: 51jh Team
Description: 51数据集合站 - 各行业真实数据集合查询平台
Version: 2.0.0
Requires PHP: 8.0
License: GPL v2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 51jh
Tags: data, query, search, responsive, custom-post-types
*/

:root {
    --primary: #2e75b6;
    --primary-dark: #1e5a8e;
    --primary-light: #4a9fd8;
    --accent: #e74c3c;
    --bg: #f5f7fa;
    --bg-white: #ffffff;
    --text: #333333;
    --text-secondary: #999999;
    --text-light: #666666;
    --border: #e8ecf0;
    --border-light: #f0f2f5;
    --shadow: 0 2px 8px rgba(0,0,0,.04);
    --shadow-hover: 0 8px 24px rgba(0,0,0,.1);
    --radius-card: 12px;
    --radius-widget: 8px;
    --radius-search: 50px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --transition: all .25s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font); font-size: 15px; line-height: 1.6;
    color: var(--text); background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.3; color: var(--text); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === Navbar === */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--bg-white); box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 64px; }
.site-logo { display: flex; align-items: center; }
.site-logo a { display: flex; align-items: center; }
.site-logo a:hover { opacity: 0.9; }
.logo-banner { height: 48px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav > a, .main-nav > .nav-dropdown > a { color: var(--text); font-size: 15px; font-weight: 500; padding: 8px 0; position: relative; }
.main-nav > a:hover, .main-nav > .nav-dropdown > a:hover { color: var(--primary); }
.main-nav > a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--primary); transition: width .3s; }
.main-nav > a:hover::after { width: 100%; }
.nav-dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--bg-white); border-radius: var(--radius-widget); box-shadow: var(--shadow-hover); min-width: 180px; padding: 8px 0; z-index: 100; }
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 10px 20px; color: var(--text); font-size: 14px; white-space: nowrap; }
.dropdown-menu a:hover { background: var(--bg); color: var(--primary); }
.header-search { display: flex; align-items: center; background: var(--bg); border-radius: var(--radius-search); padding: 6px 14px; width: 260px; border: 1px solid var(--border); transition: var(--transition); }
.header-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(46,117,182,.1); }
.header-search input[type="text"] { border: none; background: none; outline: none; flex: 1; font-size: 14px; color: var(--text); padding: 4px 0; }
.header-search input[type="text"]::placeholder { color: var(--text-secondary); }
.header-search button { background: none; border: none; cursor: pointer; font-size: 16px; color: var(--text-secondary); padding: 4px; }
.header-search button:hover { color: var(--primary); }
.header-auth { display: flex; align-items: center; gap: 12px; }
.btn-login, .btn-register { padding: 8px 20px; border-radius: var(--radius-search); font-size: 14px; font-weight: 500; cursor: pointer; transition: var(--transition); text-decoration: none; display: inline-block; }
.btn-login { color: var(--primary); border: 1px solid var(--primary); background: transparent; }
.btn-login:hover { background: var(--primary); color: #fff; }
.btn-register { color: #fff; background: var(--primary); border: 1px solid var(--primary); }
.btn-register:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

/* === Page Tabs === */
.page-tabs { background: linear-gradient(135deg, #1a2a4a 0%, #2e3f6e 100%); padding: 0 20px; }
.page-tabs .container { display: flex; gap: 0; overflow-x: auto; }
.page-tabs a { display: inline-block; padding: 14px 24px; color: rgba(255,255,255,.7); font-size: 14px; font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; transition: var(--transition); }
.page-tabs a:hover, .page-tabs a.active { color: #fff; border-bottom-color: #fff; }

/* === Hero Section === */
.hero, .hero-section { background: linear-gradient(135deg, var(--primary) 0%, #1a5276 60%, #154360 100%); padding: 60px 20px 80px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 500px; height: 500px; background: rgba(255,255,255,.03); border-radius: 50%; }
.hero::after { content: ''; position: absolute; bottom: -30%; left: -10%; width: 400px; height: 400px; background: rgba(255,255,255,.02); border-radius: 50%; }
.hero-title { font-size: 32px; font-weight: 700; margin-bottom: 12px; position: relative; z-index: 1; }
.hero-subtitle { font-size: 16px; color: rgba(255,255,255,.85); margin-bottom: 32px !important; position: relative; z-index: 1; }
.hero-search { max-width: 640px; margin: 0 auto; display: flex; background: #fff; border-radius: var(--radius-search); overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.15); position: relative; z-index: 1; }
.hero-search input[type="text"] { flex: 1; border: none; padding: 0 24px; font-size: 16px; outline: none; color: var(--text); background: transparent; height: 48px; line-height: 48px; box-sizing: border-box; }
.hero-search input[type="text"]::placeholder { color: var(--text-secondary); }
.hero-search button { background: var(--primary); color: #fff; border: none; padding: 0 36px; font-size: 16px; font-weight: 600; cursor: pointer; transition: var(--transition); white-space: nowrap; height: 48px; line-height: 48px; box-sizing: border-box; }
.hero-search button:hover { background: var(--primary-dark); }
.hero-tags { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; position: relative; z-index: 1; }
.hero-tags a { display: inline-block; padding: 6px 16px; background: rgba(255,255,255,.15); color: rgba(255,255,255,.9); border-radius: var(--radius-search); font-size: 13px; transition: var(--transition); }
.hero-tags a:hover { background: rgba(255,255,255,.25); color: #fff; }

/* === Stats Bar === */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1200px; margin: -40px auto 0; padding: 0 20px; position: relative; z-index: 2; }
.stat-card { background: var(--bg-white); border-radius: var(--radius-card); padding: 24px 20px; text-align: center; box-shadow: var(--shadow); transition: var(--transition); position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--primary); }
.stat-card:nth-child(2)::before { background: var(--accent); }
.stat-card:nth-child(3)::before { background: #27ae60; }
.stat-card:nth-child(4)::before { background: #f39c12; }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.stat-icon { font-size: 28px; margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--text-secondary); }

/* === Section Common === */
.section { padding: 48px 0; }
.section-title { font-size: 22px; font-weight: 700; margin-bottom: 24px !important; display: flex; align-items: center; gap: 10px; color: var(--text); }
.section-title::before { content: ''; width: 4px; height: 22px; background: var(--primary); border-radius: 2px; flex-shrink: 0; }

/* === Category Grid (6 columns) === */
.cat-grid, .industry-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat-card, .industry-card { background: var(--bg-white); border-radius: var(--radius-card); padding: 24px 16px; text-align: center; box-shadow: var(--shadow); transition: var(--transition); text-decoration: none; display: block; }
.cat-card:hover, .industry-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.cat-icon, .industry-icon { font-size: 40px; margin-bottom: 12px; display: block; }
.cat-name, .industry-name { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.cat-count, .industry-count { font-size: 13px; color: var(--text-secondary); }
.industry-card-wrapper { position: relative; }
.industry-subcategories { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.subcategory-tag { font-size: 12px; color: var(--text-secondary); background: var(--bg-gray); padding: 4px 10px; border-radius: 12px; text-decoration: none; transition: var(--transition); }
.subcategory-tag:hover { background: var(--primary); color: white; }

/* === Hot Data Grid (5 columns) === */
.hot-data-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.data-card { background: var(--bg-white); border-radius: var(--radius-card); padding: 20px; box-shadow: var(--shadow); transition: var(--transition); cursor: pointer; text-decoration: none; display: block; border-left: 4px solid var(--primary); position: relative; }
.data-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.data-card-title { font-size: 14px; color: var(--text-light); margin-bottom: 10px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.data-card-value { font-size: 22px; font-weight: 700; color: var(--primary); }
.data-card-unit { font-size: 13px; color: var(--text-secondary); margin-left: 4px; font-weight: 400; }
.badge-hot, .badge-new { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; line-height: 1.4; }
.badge-hot { background: var(--accent); color: #fff; }
.badge-new { background: #27ae60; color: #fff; }

/* === Latest Updates List === */
.latest-list { background: var(--bg-white); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow); }
.latest-item { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--border-light); transition: var(--transition); text-decoration: none; color: inherit; }
.latest-item:last-child { border-bottom: none; }
.latest-item:hover { background: var(--bg); }
.latest-item::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-right: 14px; flex-shrink: 0; }
.latest-item:nth-child(2)::before { background: var(--accent); }
.latest-item:nth-child(3)::before { background: #27ae60; }
.latest-item:nth-child(4)::before { background: #f39c12; }
.latest-item:nth-child(5)::before { background: #9b59b6; }
.latest-item-title { font-size: 15px; color: var(--text); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.latest-item-date { font-size: 13px; color: var(--text-secondary); white-space: nowrap; margin-left: 16px; }

/* === City Compare Page === */
.compare-header { background: var(--bg-white); border-radius: var(--radius-card); padding: 32px; margin-bottom: 24px !important; box-shadow: var(--shadow); text-align: center; }
.compare-header h1 { font-size: 24px; margin-bottom: 8px; }
.compare-header p { color: var(--text-secondary); font-size: 14px; }
.city-selector { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 24px 0; flex-wrap: wrap; }
.city-btn { padding: 10px 24px; border-radius: var(--radius-search); border: 2px solid var(--border); background: var(--bg-white); color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; transition: var(--transition); }
.city-btn:hover, .city-btn.active { border-color: var(--primary); color: var(--primary); background: rgba(46,117,182,.05); }
.city-btn.active { background: var(--primary); color: #fff; }
.vs-text { font-size: 18px; font-weight: 700; color: var(--accent); }
.compare-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px !important; }
.summary-card { background: var(--bg-white); border-radius: var(--radius-card); padding: 24px; text-align: center; box-shadow: var(--shadow); }
.summary-card .label { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.summary-card .value { font-size: 24px; font-weight: 700; color: var(--primary); }
.compare-table { background: var(--bg-white); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 24px !important; }
.compare-table table { width: 100%; border-collapse: collapse; }
.compare-table thead th { padding: 14px 20px; text-align: left; font-size: 13px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .5px; background: var(--bg); border-bottom: 1px solid var(--border); }
.compare-table tbody td { padding: 14px 20px; font-size: 14px; border-bottom: 1px solid var(--border-light); color: var(--text); }
.compare-table tbody tr:hover { background: rgba(46,117,182,.02); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.diff-up, .diff-down, .diff-same { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: var(--radius-search); font-size: 12px; font-weight: 600; }
.diff-up { background: rgba(231,76,60,.1); color: var(--accent); }
.diff-down { background: rgba(39,174,96,.1); color: #27ae60; }
.diff-same { background: rgba(153,153,153,.1); color: var(--text-secondary); }
.bar-wrap { width: 100%; height: 8px; background: var(--border-light); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.bar { height: 100%; border-radius: 4px; transition: width .6s ease; background: var(--primary); }
.bar.accent { background: var(--accent); }
.bar.green { background: #27ae60; }
.bar.orange { background: #f39c12; }

/* === Data Detail Page === */
.data-detail { background: var(--bg-white); border-radius: var(--radius-card); padding: 36px; margin: 24px 0; box-shadow: var(--shadow); }
.data-breadcrumb, .breadcrumb { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }
.breadcrumb a, .data-breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover, .data-breadcrumb a:hover { color: var(--primary); }
.data-title { font-size: 26px; font-weight: 700; margin-bottom: 24px !important; line-height: 1.3; color: var(--text); }
.detail-value-box, .data-value-box { background: linear-gradient(135deg, var(--primary) 0%, #1a5276 100%); border-radius: var(--radius-card); padding: 40px; text-align: center; color: #fff; margin-bottom: 28px; }
.data-value-main, .detail-value-box .value { font-size: 48px; font-weight: 700; margin-bottom: 8px; letter-spacing: 1px; }
.data-value-unit, .detail-value-box .unit { font-size: 18px; opacity: .9; }
.detail-meta, .data-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.data-meta-item { background: var(--bg); border-radius: var(--radius-widget); padding: 16px; }
.data-meta-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.data-meta-value { font-size: 15px; font-weight: 600; color: var(--text); }
.data-meta-value a { color: var(--primary); }
.interpretation, .data-description { background: #fffbe6; border: 1px solid #ffe58f; border-radius: var(--radius-card); padding: 24px; margin-bottom: 28px; }
.interpretation h3, .data-description h3 { font-size: 17px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; color: var(--text); }
.interpretation p, .data-description p, .data-content { color: var(--text-light); line-height: 1.8; font-size: 15px; }
.data-content p { margin-bottom: 12px; }
.data-content p:last-child { margin-bottom: 0; }
.chart-area { background: var(--bg-white); border-radius: var(--radius-card); padding: 24px; margin-bottom: 28px; box-shadow: var(--shadow); min-height: 300px; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 14px; }
.data-tags { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-light); font-size: 14px; }
.data-tags strong { color: var(--text-secondary); margin-right: 8px; }
.tag-link { display: inline-block; padding: 4px 14px; background: var(--bg); color: var(--text-light); border-radius: var(--radius-search); font-size: 13px; margin: 4px 4px 4px 0; transition: var(--transition); }
.tag-link:hover { background: var(--primary); color: #fff; }

/* === Search Results Page === */
.page-header { padding: 24px 0 8px; }
.page-title { font-size: 24px; font-weight: 700; color: var(--text); }
.page-description { color: var(--text-secondary); font-size: 15px; margin-top: 8px; }
.archive-header { padding: 24px 0 8px; }
.archive-count { font-size: 14px; color: var(--text-secondary); margin-top: 8px; }
.search-results-container { display: flex; flex-direction: column; gap: 16px; margin: 24px 0; }
.search-result-item, .result-card { background: var(--bg-white); border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow); transition: var(--transition); display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.search-result-item:hover { box-shadow: var(--shadow-hover); }
.result-content { flex: 1; }
.result-title { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.result-title a { color: var(--text); }
.result-title a:hover { color: var(--primary); }
.result-value { font-size: 24px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.result-unit { font-size: 14px; color: var(--text-secondary); font-weight: 400; margin-left: 4px; }
.result-excerpt { font-size: 14px; color: var(--text-light); line-height: 1.6; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.result-meta { display: flex; gap: 16px; font-size: 13px; color: var(--text-secondary); }
.result-source, .result-date { display: inline-flex; align-items: center; gap: 4px; }
.no-results { text-align: center; padding: 60px 20px; color: var(--text-secondary); font-size: 16px; }
.no-results .hero-search { margin-top: 24px; }

/* === Data List (Archive/Taxonomy) === */
.data-list { display: flex; flex-direction: column; margin: 24px 0; background: var(--bg-white); border-radius: var(--radius-card); box-shadow: var(--shadow); overflow: hidden; }
.data-list-item { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border-light); transition: var(--transition); text-decoration: none; color: inherit; }
.data-list-item:last-child { border-bottom: none; }
.data-list-item:hover { background: var(--bg); }
.data-list-info { flex: 1; }
.data-list-title { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.data-list-meta { display: flex; gap: 16px; font-size: 13px; color: var(--text-secondary); }
.data-list-value { font-size: 22px; font-weight: 700; color: var(--primary); white-space: nowrap; margin-left: 20px; }
.data-list-unit { font-size: 13px; color: var(--text-secondary); font-weight: 400; margin-left: 4px; }

/* === Sidebar Widgets === */
.widget { background: var(--bg-white); border-radius: var(--radius-card); padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px; }
.widget-title { font-size: 18px; font-weight: 600; margin-bottom: 16px; color: var(--text); border-bottom: 2px solid var(--primary); padding-bottom: 8px; }
.widget ul { list-style: none; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var(--border-light); }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--text); text-decoration: none; transition: var(--transition); }
.widget ul li a:hover { color: var(--primary); }

/* === Pagination === */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 40px 0; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 12px; border-radius: var(--radius-widget); font-size: 14px; font-weight: 500; color: var(--text); background: var(--bg-white); border: 1px solid var(--border); transition: var(--transition); text-decoration: none; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); background: rgba(46,117,182,.05); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .dots { border: none; background: none; color: var(--text-secondary); }

/* === Detail Page === */
.detail-breadcrumb { background: var(--bg-white); padding: 12px 20px; border-bottom: 1px solid var(--border); max-width: 1200px; margin: 0 auto; }
.detail-breadcrumb a, .detail-breadcrumb span { font-size: 13px; color: var(--text-secondary); }
.detail-breadcrumb a { color: var(--primary); }
.detail-breadcrumb .separator { margin: 0 8px; color: var(--text-secondary); }
.detail-main { max-width: 1200px; margin: 24px auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.detail-content { background: var(--bg-white); border-radius: var(--radius-card); padding: 32px 48px 32px 48px; box-shadow: var(--shadow); }
.detail-title { font-size: 26px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.detail-subtitle { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px !important; }
.detail-value-box { background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 16px; padding: 36px; text-align: center; margin-bottom: 28px; }
.detail-value { font-size: 48px; font-weight: 800; color: #fff; }
.detail-value-label { font-size: 14px; color: rgba(255,255,255,.7); margin-top: 8px; }
.detail-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 28px; }
.meta-item { background: var(--bg); border-radius: var(--radius-widget); padding: 14px; }
.meta-item .label { font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; }
.meta-item .val { font-size: 14px; font-weight: 600; color: var(--text); }
.meta-item .stars { color: #f39c12; font-size: 16px; }
.detail-section { margin-bottom: 28px; }
.detail-section h3 { font-size: 18px; color: var(--text); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.interpretation { background: #fffbf0; border-radius: var(--radius-widget); padding: 24px; border-left: 4px solid #f39c12; }
.interpretation p { font-size: 15px; color: var(--text-light); line-height: 1.8; }
.interpretation .warn { margin-top: 16px; padding: 12px 16px; background: rgba(231,76,60,.08); border-radius: var(--radius-widget); font-size: 13px; color: var(--accent); }
.chart-area { background: var(--bg); border-radius: var(--radius-widget); padding: 24px; border: 2px dashed var(--border); }
.chart-title { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; text-align: center; }
.chart-bars { display: flex; align-items: flex-end; justify-content: center; gap: 16px; height: 180px; padding: 20px 0; }
.chart-bar { width: 40px; background: linear-gradient(180deg, var(--primary), var(--primary-light)); border-radius: 6px 6px 0 0; position: relative; transition: height .6s ease; }
.chart-bar .cv { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--text); white-space: nowrap; font-weight: 600; }
.chart-bar .cl { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--text-secondary); white-space: nowrap; }

/* ===== 历史趋势图表 (tc) ===== */
.tc{background:#fff;border-radius:14px;padding:24px;box-shadow:0 2px 16px rgba(0,0,0,.06)}
.tc-top{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}
.tc-top-left{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.tc-title{font-size:16px;font-weight:700;color:#1e293b}
.tc-badge{display:inline-flex;align-items:center;gap:3px;font-size:12px;font-weight:600;padding:3px 10px;border-radius:20px}
.tc-badge.up{color:#059669;background:#ecfdf5}
.tc-badge.dn{color:#dc2626;background:#fef2f2}
.tc-badge.flat{color:#6b7280;background:#f3f4f6}
.tc-unit{font-size:12px;color:#94a3b8;background:#f8fafc;padding:4px 12px;border-radius:8px;white-space:nowrap}
.tc-chart{display:flex;gap:0;height:200px;margin-bottom:8px}
.tc-yaxis{display:flex;flex-direction:column;justify-content:space-between;padding:0 10px 26px 0;min-width:48px;text-align:right}
.tc-yaxis span{font-size:10px;color:#94a3b8;line-height:1}
.tc-bars-area{flex:1;position:relative;display:flex;flex-direction:column;min-height:0}
.tc-grid{position:absolute;top:0;left:0;right:0;bottom:26px;display:flex;flex-direction:column;justify-content:space-between;pointer-events:none;z-index:1}
.tc-grid-line{width:100%;height:1px;background:#f1f5f9}
.tc-bars{flex:1;display:flex;align-items:flex-end;justify-content:space-around;padding:0 4px;position:relative;z-index:2;min-height:120px}
.tc-col{display:flex;flex-direction:column;align-items:center;flex:1;max-width:72px;min-height:120px}
.tc-val{font-size:11px;font-weight:700;color:#475569;margin-bottom:4px;white-space:nowrap}
.tc-bar-outer{width:100%;height:120px;display:flex;align-items:flex-end;justify-content:center;padding:0 6px}
.tc-bar{width:100%;max-width:36px;border-radius:6px 6px 2px 2px;position:relative;transition:height .7s cubic-bezier(.34,1.56,.64,1);cursor:pointer}
.tc-bar.tc-up{background:linear-gradient(180deg,#6366f1 0%,#818cf8 100%);box-shadow:0 2px 8px rgba(99,102,241,.25)}
.tc-bar.tc-dn{background:linear-gradient(180deg,#f43f5e 0%,#fb7185 100%);box-shadow:0 2px 8px rgba(244,63,94,.25)}
.tc-bar.tc-flat{background:linear-gradient(180deg,#06b6d4 0%,#67e8f9 100%);box-shadow:0 2px 8px rgba(6,182,212,.25)}
.tc-bar::after{content:'';position:absolute;top:0;left:0;right:0;height:40%;background:linear-gradient(180deg,rgba(255,255,255,.25) 0%,transparent 100%);border-radius:6px 6px 0 0;pointer-events:none}
.tc-bar:hover{filter:brightness(1.12);transform:scaleX(1.08)}
.tc-lbl{margin-top:6px;font-size:11px;color:#64748b;font-weight:500}
.tc-bottom{display:flex;justify-content:space-between;align-items:center;padding-top:14px;border-top:1px solid #f1f5f9;font-size:11px;color:#94a3b8}
/* 悬停效果 */
.tc-col:hover .tc-bar{filter:brightness(1.1);transform:scaleX(1.05)}
.tc-col:hover .tc-val{color:#1e293b;font-weight:800}
.tc-val{transition:all .2s ease}
.detail-sidebar { display: flex; flex-direction: column; gap: 16px; }
.detail-comments-full { grid-column: 1 / -1; }
.widget { background: var(--bg-white); border-radius: var(--radius-card); padding: 20px; box-shadow: var(--shadow); }
.widget h4 { font-size: 15px; color: var(--text); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.widget-list { list-style: none; }
.widget-list li { padding: 10px 0; border-bottom: 1px solid var(--border-light); font-size: 14px; }
.widget-list li:last-child { border-bottom: none; }
.widget-list li a { color: var(--text); transition: var(--transition); }
.widget-list li a:hover { color: var(--primary); }

/* === Search Results === */
.search-page-header { background: var(--bg-white); padding: 40px 20px 24px; border-bottom: 1px solid var(--border); }
.search-tags { max-width: 800px; margin: 16px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.search-tags a { display: inline-block; padding: 6px 16px; background: #f3f4f6; color: #4b5563; border-radius: 20px; font-size: 13px; transition: var(--transition); }
.search-tags a:hover { background: var(--primary); color: #fff; }
.search-wrap { max-width: 800px; margin: 0 auto; display: flex; }
.search-wrap input { flex: 1; padding: 14px 20px; border: 2px solid var(--primary); border-radius: var(--radius-widget) 0 0 var(--radius-widget); font-size: 15px; outline: none; }
.search-wrap button { padding: 14px 28px; background: var(--primary); color: #fff; border: none; border-radius: 0 var(--radius-widget) var(--radius-widget) 0; font-size: 15px; cursor: pointer; transition: var(--transition); }
.search-wrap button:hover { background: var(--primary-dark); }
.search-filters { max-width: 1200px; margin: 20px auto; padding: 0 20px; display: flex; gap: 12px; flex-wrap: wrap; }
.filter-btn { padding: 8px 18px; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-search); font-size: 13px; color: var(--text); cursor: pointer; transition: var(--transition); }
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.search-results-container { max-width: 1200px; margin: 20px auto; padding: 0 20px; }
.result-card { background: var(--bg-white); border-radius: var(--radius-card); padding: 24px; margin-bottom: 16px; display: flex; gap: 24px; box-shadow: var(--shadow); transition: var(--transition); cursor: pointer; }
.result-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.result-main { flex: 1; }
.result-main h3 { font-size: 17px; color: var(--text); margin-bottom: 8px; }
.result-main .desc { font-size: 14px; color: var(--text-light); margin-bottom: 10px; }
.result-main .tags { display: flex; gap: 8px; }
.result-main .tags span { background: rgba(46,117,182,.1); color: var(--primary); padding: 4px 10px; border-radius: 4px; font-size: 12px; }
.result-value { text-align: right; min-width: 140px; }
.result-value .num { font-size: 28px; font-weight: 800; color: var(--primary); }
.result-value .unit { font-size: 13px; color: var(--text-secondary); }
.result-value .rel { font-size: 13px; color: #f39c12; margin-top: 6px; }

/* === Footer === */
.site-footer { background: #1a2332; color: rgba(255,255,255,.6); padding: 48px 20px 24px; margin-top: 60px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col p { font-size: 14px; line-height: 1.8; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,.6); font-size: 14px; transition: var(--transition); }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { max-width: 1200px; margin: 24px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); text-align: center; font-size: 13px; }

/* === Pagination === */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 32px 0; }
.pagination a, .pagination span { padding: 10px 16px; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-widget); font-size: 14px; color: var(--text); transition: var(--transition); }
.pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* === Responsive === */
@media (max-width: 1024px) {
    .cat-grid, .industry-grid { grid-template-columns: repeat(4, 1fr); }
    .hot-data-grid { grid-template-columns: repeat(3, 1fr); }
    .detail-main { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hero-title { font-size: 24px; }
    .hero-subtitle { font-size: 14px; }
    .hero-search { max-width: 100%; flex-direction: row; height: 44px; }
    .hero-search input[type="text"] { flex: 1; min-width: 0; padding: 0 16px; font-size: 14px; height: 44px; line-height: 44px; }
    .hero-search button { padding: 0 20px; font-size: 14px; height: 44px; line-height: 44px; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .cat-grid, .industry-grid { grid-template-columns: repeat(3, 1fr); }
    .hot-data-grid { grid-template-columns: repeat(2, 1fr); }
    .main-nav { display: none; }
    .header-search { width: 180px; }
    .compare-summary { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .detail-value { font-size: 36px; }
    .detail-meta { grid-template-columns: 1fr; }
    /* 趋势图表移动端适配 */
    .tc{padding:16px 12px}
    .tc-top{flex-direction:column;gap:8px}
    .tc-title{font-size:14px}
    .tc-chart{height:160px}
    .tc-yaxis{min-width:36px;padding-right:6px}
    .tc-yaxis span{font-size:9px}
    .tc-val{font-size:9px}
    .tc-bar-outer{padding:0 3px}
    .tc-bar{max-width:28px}
    .tc-lbl{font-size:10px;margin-top:4px}
    .tc-bottom{flex-direction:column;gap:4px;align-items:flex-start}
}
@media (max-width: 480px) {
    .cat-grid, .industry-grid { grid-template-columns: repeat(2, 1fr); }
    .hot-data-grid { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: 1fr; }
    .hero-search { flex-direction: row; border-radius: var(--radius-card); height: 44px; }
    .hero-search input { border-radius: var(--radius-card) 0 0 var(--radius-card); padding: 0 16px; height: 44px; line-height: 44px; }
    .hero-search button { border-radius: 0 var(--radius-card) var(--radius-card) 0; padding: 0 16px; font-size: 14px; height: 44px; line-height: 44px; }
    .result-card { flex-direction: column; }
    .result-value { text-align: left; }
}

/* === WordPress Core === */
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }
.screen-reader-text:focus { background-color: #f1f1f1; border-radius: 3px; box-shadow: 0 0 2px 2px rgba(0,0,0,.6); clip: auto !important; color: #21759b; display: block; font-size: 14px; font-weight: 700; height: auto; left: 5px; line-height: normal; padding: 15px 23px 14px; text-decoration: none; top: 5px; width: auto; z-index: 100000; }
.wp-block-image img { max-width: 100%; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--text-secondary); text-align: center; padding: 8px 0; }
.alignleft { float: left; margin-right: 16px; }
.alignright { float: right; margin-left: 16px; }
.aligncenter { display: block; margin: 0 auto; }
.sticky { display: block; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 16px 0; border-bottom: 1px solid var(--border-light); }
.comment-list .comment:last-child { border-bottom: none; }
.comment-author { font-weight: 600; margin-bottom: 4px; }
.comment-meta { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.comment-content { font-size: 14px; line-height: 1.7; }
/* === Footer === */
.site-footer, .footer { background: #1a1a2e; color: #8a8aa0; padding: 48px 20px 24px; margin-top: 48px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-bottom: 32px !important; }
.footer-col h4 { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.footer-col a { display: block; color: #8a8aa0; font-size: 14px; padding: 4px 0; transition: var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 24px !important; flex-wrap: wrap; }
.footer-links a { color: #8a8aa0; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-copyright { text-align: center; font-size: 14px; color: #666; }

/* === Accessibility === */
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }
.screen-reader-text:focus { background-color: #f1f1f1; border-radius: 3px; box-shadow: 0 0 2px 2px rgba(0,0,0,.6); clip: auto !important; color: #21759b; display: block; font-size: 14px; font-weight: 700; height: auto; left: 5px; line-height: normal; padding: 15px 23px 14px; text-decoration: none; top: 5px; width: auto; z-index: 100000; }
#wpadminbar { position: fixed !important; }

/* === WordPress Block Styles === */
.wp-block-image { margin: 20px 0; }
.wp-block-image img { max-width: 100%; height: auto; }
.wp-block-image figcaption { font-size: 14px; color: var(--text-secondary); text-align: center; margin-top: 8px; }
.wp-block-quote { border-left: 4px solid var(--primary); padding: 16px 24px; margin: 24px 0; background: var(--bg); border-radius: 0 var(--radius-widget) var(--radius-widget) 0; }
.wp-block-quote p { font-size: 16px; line-height: 1.8; color: var(--text); }
.wp-block-quote cite { display: block; font-size: 14px; color: var(--text-secondary); margin-top: 8px; font-style: italic; }
.wp-block-code { background: #282c34; color: #abb2bf; padding: 16px; border-radius: var(--radius-widget); overflow-x: auto; font-family: 'Courier New', monospace; font-size: 14px; line-height: 1.6; }
.wp-block-table { margin: 20px 0; overflow-x: auto; }
.wp-block-table table { width: 100%; border-collapse: collapse; }
.wp-block-table th, .wp-block-table td { padding: 12px; border: 1px solid var(--border); text-align: left; }
.wp-block-table th { background: var(--bg); font-weight: 600; }
.wp-block-separator { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.wp-block-button { margin: 20px 0; }
.wp-block-button__link { display: inline-block; padding: 12px 24px; background: var(--primary); color: #fff; border-radius: var(--radius-widget); text-decoration: none; font-weight: 500; transition: var(--transition); }
.wp-block-button__link:hover { background: var(--primary-dark); }
.alignleft { float: left; margin-right: 20px; }
.alignright { float: right; margin-left: 20px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { max-width: 1200px; margin-left: -100px; margin-right: -100px; }
.alignfull { max-width: 100vw; width: 100vw; margin-left: calc(-50vw + 50%); }

/* === Responsive Design === */
@media (max-width: 1200px) {
  .container { max-width: 100%; padding: 0 20px; }
}

@media (max-width: 992px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .hot-data-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .compare-summary { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  body { font-size: 14px; }
  .container { padding: 0 16px; }
  
  /* Header */
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 16px; }
  .header-search { width: 100%; order: 3; margin-top: 12px; }
  .header-auth { order: 2; }
  
  /* Hero */
  .hero, .hero-section { padding: 40px 16px 60px; }
  .hero-title { font-size: 24px; }
  .hero-subtitle { font-size: 14px; }
  
  /* Stats */
  .stats-bar { margin-top: -30px; gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-value { font-size: 20px; }
  .stat-label { font-size: 12px; }
  
  /* Grids */
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hot-data-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .data-card { padding: 16px; }
  .data-card-value { font-size: 20px; }
  
  /* Detail */
  .data-detail { padding: 16px; }
  .data-title { font-size: 20px; }
  .detail-content { padding: 16px; overflow-x: hidden; }
  .detail-title { font-size: 20px; word-break: break-word; }
  .detail-subtitle { font-size: 13px; word-break: break-word; }
  .detail-breadcrumb { padding: 10px 12px; font-size: 13px; word-break: break-all; overflow-x: hidden; }
  .detail-value-box, .data-value-box { padding: 20px 12px; }
  .detail-value { font-size: 30px; word-break: break-all; }
  .detail-value-unit { font-size: 15px; }
  .data-value-main { font-size: 30px; word-break: break-all; }
  .data-value-unit { font-size: 15px; }
  .detail-meta, .data-meta { grid-template-columns: 1fr; gap: 8px; }
  .meta-item { padding: 10px 12px; overflow: hidden; }
  .meta-item .val { font-size: 14px; word-break: break-word; overflow-wrap: break-word; }
  .detail-section h3 { font-size: 16px; }
  .chart-area { padding: 16px 8px; overflow: hidden; }
  .chart-bars { gap: 6px; height: 130px; padding: 16px 0; flex-wrap: nowrap; overflow: hidden; }
  .chart-bar { width: 28px; min-width: 0; flex-shrink: 1; }
  .chart-bar .cv { font-size: 10px; }
  .chart-bar .cl { font-size: 9px; }
  .detail-main { padding: 0 10px; gap: 12px; }
  .entry-content { font-size: 14px; word-break: break-word; overflow-wrap: break-word; overflow-x: hidden; }
  .entry-content img { max-width: 100%; height: auto; }
  .detail-section { overflow: hidden; }
  
  /* Compare */
  .city-selector { flex-direction: column; }
  .city-btn { width: 100%; }
  .compare-table { overflow-x: auto; }
  .compare-table table { min-width: 600px; }
  
  /* Footer */
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 12px; }
  
  /* Header */
  .site-logo { font-size: 20px; }
  .main-nav { gap: 12px; font-size: 13px; }
  .btn-login, .btn-register { padding: 6px 12px; font-size: 13px; }
  
  /* Hero */
  .hero, .hero-section { padding: 32px 12px 48px; }
  .hero-title { font-size: 20px; }
  .hero-subtitle { font-size: 13px; }
  .hero-search { height: 40px; }
  .hero-search input { padding: 0 16px; font-size: 14px; height: 40px; line-height: 40px; }
  .hero-search button { padding: 0 16px; font-size: 14px; height: 40px; line-height: 40px; }
  
  /* Stats */
  .stats-bar { grid-template-columns: 1fr; }
  .stat-card { padding: 12px; }
  .stat-value { font-size: 18px; }
  
  /* Grids */
  .cat-grid { grid-template-columns: 1fr; }
  .hot-data-grid { grid-template-columns: 1fr; }
  .cat-card, .data-card { padding: 12px; }
  .cat-icon { font-size: 32px; }
  .data-card-value { font-size: 18px; }
  
  /* Detail */
  .data-detail { padding: 16px; }
  .data-title { font-size: 18px; }
  .data-value-main { font-size: 28px; }
  .data-value-unit { font-size: 14px; }
  .detail-content { padding: 16px 12px; }
  .detail-title { font-size: 18px; }
  .detail-value { font-size: 26px; }
  .detail-value-box, .data-value-box { padding: 20px 12px; }
  .meta-item .val { font-size: 13px; }
  .chart-bars { gap: 6px; height: 120px; }
  .chart-bar { width: 24px; }
  .chart-bar .cv { font-size: 10px; top: -18px; }
  .chart-bar .cl { font-size: 9px; bottom: -18px; }
  
  /* List */
  .data-list-item { padding: 12px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .data-list-value { font-size: 18px; margin-left: 0; margin-top: 4px; }
  
  /* Pagination */
  .pagination { gap: 4px; }
  .pagination a, .pagination span { min-width: 32px; height: 32px; padding: 0 8px; font-size: 13px; }
}

/* ========================================
   现代化页面UI样式
   ======================================== */

/* === Page Hero === */
.page-hero {
    position: relative;
    padding: 80px 20px 100px;
    text-align: center;
    overflow: hidden;
    background: var(--hero-color, #667eea);
}
.page-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--hero-color, #667eea) 0%, color-mix(in srgb, var(--hero-color, #667eea) 70%, #000) 100%);
    opacity: 0.95;
}
.page-hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}
.page-hero-bg::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}
.page-hero-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.page-hero-title {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.page-hero-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin: 0;
    font-weight: 400;
}

/* === Page Body === */
.page-body {
    padding: 60px 0 80px;
    background: var(--bg);
    margin-top: -40px;
    position: relative;
    z-index: 3;
}
.page-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    align-items: start;
}

/* === Page Article === */
.page-main {
    min-width: 0;
}

/* === Tables === */

/* === Code === */

/* === Sidebar === */
.page-sidebar {
    position: relative;
}
.sidebar-sticky {
    position: sticky;
    top: 80px;
}
.sidebar-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}
.sidebar-icon {
    font-size: 20px;
}
.sidebar-header h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}
.sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar-nav li {
    margin-bottom: 4px;
}
.sidebar-nav a {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    border-left: 2px solid transparent;
}
.sidebar-nav a:hover {
    background: rgba(46,117,182,0.05);
    color: var(--primary);
}
.sidebar-nav a.active {
    background: rgba(46,117,182,0.08);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 500;
}
.sidebar-nav .toc-h3 a {
    padding-left: 24px;
    font-size: 13px;
}
.sidebar-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar-links li {
    margin-bottom: 8px;
}
.sidebar-links a {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    background: var(--bg);
}
.sidebar-links a:hover {
    background: rgba(46,117,182,0.08);
    color: var(--primary);
    transform: translateX(4px);
}

/* === Responsive === */
@media (max-width: 1024px) {
    .page-layout {
        grid-template-columns: 1fr;
    }
    .page-sidebar {
        display: none;
    }
    
}
@media (max-width: 768px) {
    .page-hero {
        padding: 60px 20px 80px;
    }
    .page-hero-title {
        font-size: 32px;
    }
    .page-hero-desc {
        font-size: 16px;
    }
    .page-hero-icon {
        font-size: 44px;
    }

}

/* === 内容排版优化 === */


/* ========================================
   页面内容排版优化 - 更大间距
   ======================================== */


/* 首段引言 */

/* H2 标题 */


/* H3 标题 */



/* ========================================
   页面内容排版优化 - 大间距设计
   ======================================== */

.page-article {
    font-size: 16px;
    line-height: 2;
}

.page-article > p:first-of-type {
    font-size: 18px;
    color: #444;
    padding: 28px 32px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06), rgba(118, 75, 162, 0.06));
    border-radius: 12px;
    border-left: 4px solid #667eea;
    margin-bottom: 56px;
    line-height: 1.9;
}

.page-article h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 72px 0 32px !important;
    padding: 24px 0 24px 28px;
    position: relative;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.08), transparent);
    border-radius: 8px;
}

.page-article h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 40px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 4px;
}

.page-article h3 {
    font-size: 22px;
    font-weight: 600;
    color: #34495e;
    margin: 56px 0 28px !important;
    padding-left: 24px;
    position: relative;
}

.page-article h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.page-article p {
    font-size: 16px;
    line-height: 2;
    color: #555;
    margin-bottom: 32px !important;
}

.page-article ul,
.page-article ol {
    margin: 36px 0 40px;
    padding-left: 0;
    list-style: none;
}

.page-article li {
    margin-bottom: 24px !important;
    padding-left: 40px;
    position: relative;
    color: #555;
    line-height: 1.9;
}

.page-article ul li::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 13px;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
}

.page-article ol {
    counter-reset: item;
}

.page-article ol li {
    counter-increment: item;
}

.page-article ol li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
}

.page-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 48px 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.page-article thead {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.page-article thead th {
    padding: 22px 28px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: white;
}

.page-article tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
}

.page-article tbody tr:hover {
    background: rgba(102, 126, 234, 0.04);
    transform: translateX(4px);
}

.page-article tbody tr:last-child {
    border-bottom: none;
}

.page-article tbody td {
    padding: 22px 28px;
    font-size: 15px;
    color: #555;
    line-height: 1.8;
}

.page-article pre {
    background: #1e293b;
    border-radius: 12px;
    padding: 28px 32px;
    margin: 40px 0;
    overflow-x: auto;
    position: relative;
}

.page-article pre::before {
    content: 'CODE';
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    font-weight: 600;
    letter-spacing: 1px;
}

.page-article pre code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.9;
    color: #e2e8f0;
    background: none;
    padding: 0;
}

.page-article code {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 4px 12px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 14px;
    font-weight: 500;
}

.page-article strong {
    color: #2c3e50;
    font-weight: 600;
}

.page-article a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px dashed rgba(102, 126, 234, 0.3);
    transition: all 0.2s;
}

.page-article a:hover {
    color: #764ba2;
    border-bottom-style: solid;
}

@media (max-width: 768px) {
    .page-article h2 {
        font-size: 24px;
        margin: 56px 0 24px;
    }
    .page-article h3 {
        font-size: 20px;
        margin: 44px 0 20px;
    }
    .page-article p {
        font-size: 15px;
        margin-bottom: 24px !important;
    }
}

/* ========== 数据解读栏 ========== */
.data-insight-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #dee2e6;
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.insight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.insight-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.insight-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.insight-body {
    flex: 1;
}

.insight-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.insight-text {
    font-size: 14px;
    color: #212529;
    font-weight: 500;
    line-height: 1.5;
}

.insight-detail {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    border-left: 4px solid #0d6efd;
}

.insight-detail-title {
    font-size: 16px;
    font-weight: 600;
    color: #0d6efd;
    margin-bottom: 12px;
}

.insight-detail p {
    color: #495057;
    line-height: 1.8;
    margin: 0;
}

.insight-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #dee2e6;
    font-size: 12px;
    color: #6c757d;
}

@media (max-width: 768px) {
    .data-insight-box {
        padding: 16px;
    }
    
    .insight-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .insight-item {
        padding: 12px;
    }
    
    .insight-footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
