/* ==========================================================
   曹县信息网 (www.cxinfo.com.cn) 主样式表
   视觉基调：匹配原Logo深蓝(#1565B0)与暖橙(#E4640D)，清爽政务与产业门户
   零外部字体/CDN依赖，严格适配 375px 移动端无横向滚动
   ========================================================== */

:root {
    --brand-blue: #155FA8;
    --brand-blue-dark: #0F467D;
    --brand-blue-soft: #EAF2FA;
    --brand-orange: #E4640D;
    --brand-orange-dark: #C85307;
    --brand-orange-soft: #FFF3E8;
    --ink: #162231;
    --ink-2: #435366;
    --ink-3: #6C7D92;
    --bg-page: #F4F6F9;
    --bg-card: #FFFFFF;
    --bg-tint: #EDF2F7;
    --border: #E2E8F0;
    --border-strong: #CBD5E1;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 3px rgba(15, 35, 65, 0.06);
    --shadow: 0 6px 20px rgba(15, 35, 65, 0.07);
    --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--bg-page);
    line-height: 1.65;
    overflow-x: clip;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

h1, h2, h3, h4, p, ul, ol, dl, figure {
    margin: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== 顶部导航 ==================== */
.site-header {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(15, 35, 65, 0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
}

.brand-logo {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}

.brand-logo img {
    height: 46px;
    width: auto;
    object-fit: contain;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
}

.nav-link {
    padding: 8px 11px;
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink-2);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--brand-blue);
    background: var(--brand-blue-soft);
}

.nav-link--accent {
    color: var(--brand-orange-dark);
    background: var(--brand-orange-soft);
    font-weight: 600;
}

.nav-link--accent:hover,
.nav-link--accent.is-active {
    background: var(--brand-orange);
    color: #FFFFFF;
}

.header-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: #F8FAFC;
    padding: 2px 4px 2px 12px;
    width: 196px;
    flex-shrink: 0;
}

.header-search:focus-within {
    border-color: var(--brand-blue);
    background: #FFFFFF;
}

.header-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    color: var(--ink);
    width: 100%;
    min-width: 0;
    font-family: inherit;
}

.header-search button {
    border: none;
    background: var(--brand-blue);
    color: #FFFFFF;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--border-strong);
    background: #FFFFFF;
    border-radius: var(--radius-sm);
    width: 40px;
    height: 40px;
    padding: 9px 8px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
}

/* ==================== 首页通栏公告 ==================== */
.announce-bar {
    background: linear-gradient(90deg, #0F467D 0%, #165FA8 68%, #1C72C3 100%);
    color: #FFFFFF;
    border-bottom: 2px solid var(--brand-orange);
}

.announce-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 14px;
}

.announce-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--brand-orange);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    flex-shrink: 0;
}

.announce-text {
    flex: 1;
    min-width: 0;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.announce-link {
    font-size: 13px;
    color: #FFE2C8;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.announce-link:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

/* ==================== 公共按钮与组件 ==================== */
.btn-primary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: inherit;
    white-space: nowrap;
}

.btn-primary {
    background: var(--brand-blue);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--brand-blue-dark);
}

.btn-outline {
    background: #FFFFFF;
    color: var(--brand-blue);
    border-color: var(--brand-blue);
}

.btn-outline:hover {
    background: var(--brand-blue-soft);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-inline {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-orange-dark);
}

.btn-inline:hover {
    color: var(--brand-blue);
}

.cat-pill {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 3px 10px;
    border-radius: 4px;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
}

.cat-pill-inline {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--ink-3);
}

.cat-text {
    font-weight: 600;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-chip {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--bg-tint);
    color: var(--ink-2);
    font-size: 12.5px;
}

.tag-chip:hover {
    background: var(--brand-blue);
    color: #FFFFFF;
}

/* ==================== 首页首屏 Hero ==================== */
.hero-section {
    padding: 24px 0 12px;
}

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

.hero-lead {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.hero-lead-media {
    position: relative;
    display: block;
    overflow: hidden;
    background: #0F2744;
    aspect-ratio: 16 / 9;
}

.hero-lead-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.hero-lead:hover .hero-lead-media img {
    transform: scale(1.02);
}

.hero-lead-body {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.hero-lead-title {
    font-size: 24px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--ink);
}

.hero-lead-title a:hover {
    color: var(--brand-blue);
}

.hero-lead-summary {
    color: var(--ink-2);
    font-size: 14.5px;
    line-height: 1.7;
}

.hero-side {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

.hero-side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--brand-blue);
}

.hero-side-head h2 {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
}

.hero-side-head a {
    font-size: 13px;
    color: var(--brand-blue);
    font-weight: 500;
}

.hero-side-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-side-item {
    display: flex;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border);
}

.hero-side-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.hero-side-num {
    font-size: 20px;
    font-weight: 800;
    color: var(--brand-orange);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    flex-shrink: 0;
    width: 28px;
}

.hero-side-info {
    min-width: 0;
}

.hero-side-info h3 {
    font-size: 15.5px;
    line-height: 1.4;
    margin: 4px 0 4px;
    font-weight: 600;
}

.hero-side-info h3 a:hover {
    color: var(--brand-blue);
}

.hero-side-info p {
    font-size: 13px;
    color: var(--ink-3);
    line-height: 1.5;
}

.metrics-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    background: var(--bg-tint);
    border-radius: var(--radius);
    padding: 12px;
}

.metric-item {
    background: #FFFFFF;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    border: 1px solid var(--border);
}

.metric-val {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--brand-blue);
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
}

.metric-label {
    font-size: 12px;
    color: var(--ink-3);
}

/* ==================== 快捷入口网格 ==================== */
.section-compact {
    padding: 12px 0 18px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.quick-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

.quick-card:hover {
    border-color: var(--brand-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.quick-card--highlight {
    background: linear-gradient(135deg, #FFF7EF 0%, #FFFFFF 100%);
    border-color: #F4C49B;
}

.quick-card strong {
    display: block;
    font-size: 14px;
    color: var(--ink);
    line-height: 1.3;
}

.quick-card span {
    display: block;
    font-size: 11.5px;
    color: var(--ink-3);
    margin-top: 2px;
}

.quick-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.qi-red { background: #B83B2A; }
.qi-blue { background: #155FA8; }
.qi-green { background: #1E7E57; }
.qi-amber { background: #C97A10; }
.qi-teal { background: #0E7C86; }
.qi-orange { background: #E4640D; }

/* ==================== 常规区块与双栏布局 ==================== */
.section-block {
    padding: 28px 0 36px;
}

.section-tinted {
    background: var(--bg-tint);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    position: relative;
    padding-left: 12px;
}

.section-header h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 2px;
    background: var(--brand-orange);
}

.section-sub {
    font-size: 13.5px;
    color: var(--ink-3);
    margin-top: 4px;
}

.content-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pill-btn {
    border: 1px solid var(--border-strong);
    background: #FFFFFF;
    color: var(--ink-2);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    display: inline-block;
}

.pill-btn:hover,
.pill-btn.is-active {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #FFFFFF;
}

/* ==================== 文章卡片网格 ==================== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.article-card.is-hidden {
    display: none;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--border-strong);
}

.card-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #143356;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 15px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.card-title {
    font-size: 16px;
    line-height: 1.42;
    font-weight: 650;
}

.card-title a:hover {
    color: var(--brand-blue);
}

.card-summary {
    font-size: 13.5px;
    color: var(--ink-2);
    line-height: 1.6;
    flex: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--ink-3);
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

/* ==================== 侧边栏组件 ==================== */
.side-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.widget-promo {
    background: linear-gradient(160deg, #0F355E 0%, #155FA8 100%);
    color: #FFFFFF;
    border-color: transparent;
}

.widget-badge {
    display: inline-block;
    background: var(--brand-orange);
    color: #FFFFFF;
    font-size: 11.5px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.widget-promo h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.widget-promo p {
    font-size: 13.5px;
    color: #DCE9F7;
    margin-bottom: 14px;
}

.widget-promo .btn-primary {
    background: var(--brand-orange);
}

.widget-promo .btn-primary:hover {
    background: var(--brand-orange-dark);
}

.widget-promo .btn-outline {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.45);
    color: #FFFFFF;
}

.promo-list {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.promo-list a {
    display: block;
    font-size: 13.5px;
    color: #FFFFFF;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
}

.promo-list a:hover {
    background: rgba(255, 255, 255, 0.22);
}

.widget-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.widget-head h3 {
    font-size: 16px;
    font-weight: 700;
}

.widget-head a {
    font-size: 13px;
    color: var(--brand-blue);
}

.rank-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rank-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.rank-idx {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: var(--bg-tint);
    color: var(--ink-2);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.rank-idx.is-top {
    background: var(--brand-orange);
    color: #FFFFFF;
}

.rank-info {
    min-width: 0;
}

.rank-info a {
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.42;
}

.rank-info a:hover {
    color: var(--brand-blue);
}

.rank-info span {
    display: block;
    font-size: 12px;
    color: var(--ink-3);
    margin-top: 2px;
}

.hotline-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hotline-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border);
}

.hotline-list li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.hotline-list strong {
    display: block;
    font-size: 13.5px;
    color: var(--ink);
}

.hotline-list span {
    font-size: 12px;
    color: var(--ink-3);
}

.hotline-num {
    font-weight: 700;
    color: var(--brand-blue) !important;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.stack-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ==================== 频道深度矩阵 ==================== */
.channel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.channel-box {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.channel-box-head {
    padding: 16px 18px 12px;
    border-top: 3px solid var(--brand-blue);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.channel-box-head h3 {
    font-size: 17px;
    font-weight: 700;
}

.channel-box-head p {
    font-size: 12.5px;
    color: var(--ink-3);
    margin-top: 2px;
}

.more-link {
    font-size: 12.5px;
    color: var(--brand-blue);
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 500;
}

.channel-list {
    list-style: none;
    padding: 10px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.channel-list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
    align-items: baseline;
}

.channel-list a {
    color: var(--ink);
    line-height: 1.45;
    min-width: 0;
}

.channel-list a:hover {
    color: var(--brand-blue);
}

.channel-list span {
    font-size: 12px;
    color: var(--ink-3);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ==================== 镇街卡片 ==================== */
.town-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.town-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.town-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.town-card h3 {
    font-size: 17px;
    color: var(--ink);
}

.zip-tag {
    font-size: 12px;
    background: var(--brand-blue-soft);
    color: var(--brand-blue);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.town-industry {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--brand-orange-dark);
    margin-bottom: 6px;
}

.town-card p {
    font-size: 13.5px;
    color: var(--ink-2);
    line-height: 1.6;
}

.town-hl {
    font-weight: 500;
    color: var(--ink) !important;
    margin-bottom: 4px;
}

/* ==================== 内页横幅、列表与正文 ==================== */
.page-banner {
    background: #FFFFFF;
    border-bottom: 3px solid var(--brand-blue);
    padding: 24px 0 26px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-3);
    margin-bottom: 10px;
}

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

.page-banner h1 {
    font-size: 26px;
    font-weight: 750;
    color: var(--ink);
    margin-bottom: 6px;
}

.page-banner p {
    font-size: 14.5px;
    color: var(--ink-2);
    max-width: 760px;
}

.banner-flex {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.banner-stat {
    font-size: 13.5px;
    color: var(--ink-3);
    background: var(--bg-tint);
    padding: 6px 14px;
    border-radius: 999px;
}

.article-list-rows {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.row-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 18px;
    box-shadow: var(--shadow-sm);
}

.row-card-thumb {
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #143356;
}

.row-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.row-card-body h2 {
    font-size: 18.5px;
    line-height: 1.4;
    margin: 6px 0 8px;
}

.row-card-body h2 a:hover {
    color: var(--brand-blue);
}

.row-card-body p {
    font-size: 14px;
    color: var(--ink-2);
    margin-bottom: 10px;
}

.side-cat-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.side-cat-list a {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--ink-2);
}

.side-cat-list a:hover,
.side-cat-list a.is-active {
    background: var(--brand-blue-soft);
    color: var(--brand-blue);
    font-weight: 600;
}

.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border-strong);
    background: #FFFFFF;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.page-btn.is-active,
.page-btn:hover {
    background: var(--brand-blue);
    color: #FFFFFF;
    border-color: var(--brand-blue);
}

/* ==================== 文章详情页 ==================== */
.article-detail {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    box-shadow: var(--shadow-sm);
}

.article-header h1 {
    font-size: 27px;
    line-height: 1.35;
    color: var(--ink);
    margin-bottom: 10px;
}

.article-subtitle {
    font-size: 15.5px;
    color: var(--ink-2);
    margin-bottom: 12px;
}

.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: var(--ink-3);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.article-summary-box {
    margin: 18px 0;
    padding: 14px 18px;
    background: var(--brand-blue-soft);
    border-left: 4px solid var(--brand-blue);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 14.5px;
    color: var(--ink);
}

.article-cover {
    margin: 20px 0 24px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.article-cover img {
    width: 100%;
    height: auto;
}

.article-prose {
    font-size: 16px;
    line-height: 1.85;
    color: #1F2D3D;
}

.article-prose h2 {
    font-size: 20px;
    margin: 26px 0 12px;
    padding-left: 10px;
    border-left: 4px solid var(--brand-orange);
    color: var(--ink);
}

.article-prose h3 {
    font-size: 17px;
    margin: 20px 0 8px;
    color: var(--brand-blue-dark);
}

.article-prose p {
    margin-bottom: 16px;
}

.article-prose ul,
.article-prose ol {
    margin: 0 0 18px;
    padding-left: 22px;
}

.article-prose li {
    margin-bottom: 8px;
}

.article-prose blockquote {
    margin: 18px 0;
    padding: 14px 18px;
    background: #FFF9F2;
    border-left: 4px solid var(--brand-orange);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--ink-2);
}

.article-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.article-notice {
    margin-top: 18px;
    padding: 12px 16px;
    background: var(--bg-page);
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    color: var(--ink-3);
}

.related-block {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.related-block h2 {
    font-size: 18px;
    margin-bottom: 14px;
}

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

.related-card {
    display: flex;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    align-items: center;
}

.related-card:hover {
    border-color: var(--brand-blue);
    background: var(--brand-blue-soft);
}

.related-card img {
    width: 96px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.related-card h3 {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.related-card span {
    font-size: 12px;
    color: var(--ink-3);
}

/* ==================== 便民黄页 ==================== */
.dir-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.dir-search-box {
    flex: 1;
    max-width: 340px;
    min-width: 220px;
}

.dir-search-box input {
    width: 100%;
    padding: 9px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 13.5px;
    outline: none;
    font-family: inherit;
}

.dir-search-box input:focus {
    border-color: var(--brand-blue);
}

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

.dir-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dir-card.is-hidden {
    display: none;
}

.dir-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.dir-tag {
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-blue);
    background: var(--brand-blue-soft);
    padding: 2px 9px;
    border-radius: 4px;
}

.dir-dist {
    font-size: 12px;
    color: var(--ink-3);
}

.dir-card h3 {
    font-size: 16.5px;
    color: var(--ink);
}

.dir-desc {
    font-size: 13.5px;
    color: var(--ink-2);
    flex: 1;
}

.dir-meta {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
}

.dir-meta > div {
    display: flex;
    gap: 8px;
}

.dir-meta dt {
    color: var(--ink-3);
    width: 64px;
    flex-shrink: 0;
}

.dir-meta dd {
    margin: 0;
    color: var(--ink);
    min-width: 0;
    word-break: break-word;
}

.dir-phone {
    font-weight: 700;
    color: var(--brand-orange-dark) !important;
    font-variant-numeric: tabular-nums;
}

/* ==================== AI 工具箱 ==================== */
.tool-anchor-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.tool-anchor-nav a {
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--brand-blue-soft);
    color: var(--brand-blue);
    font-size: 13.5px;
    font-weight: 600;
}

.tool-anchor-nav a:hover {
    background: var(--brand-blue);
    color: #FFFFFF;
}

.tools-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tool-panel {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 84px;
}

.tool-panel-head {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.tool-badge {
    display: inline-block;
    background: var(--brand-orange-soft);
    color: var(--brand-orange-dark);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.tool-panel-head h2 {
    font-size: 20px;
    margin-bottom: 6px;
}

.tool-panel-head p {
    font-size: 14px;
    color: var(--ink-2);
}

.tool-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.tool-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tool-form label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink-2);
}

.tool-form input,
.tool-form select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--ink);
    background: #FFFFFF;
    font-family: inherit;
    outline: none;
}

.tool-form input:focus,
.tool-form select:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(21, 95, 168, 0.12);
}

.form-row-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.tool-result-card {
    background: #F8FAFC;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
}

.tool-result-card h3 {
    font-size: 15.5px;
    margin-bottom: 12px;
    color: var(--ink);
}

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

.result-head-row h3 {
    margin-bottom: 0;
}

.result-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.kpi-box {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.kpi-box span {
    display: block;
    font-size: 12px;
    color: var(--ink-3);
    margin-bottom: 4px;
}

.kpi-box strong {
    font-size: 19px;
    font-weight: 800;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.kpi-accent {
    color: var(--brand-orange-dark) !important;
}

.result-tip {
    font-size: 13.5px;
    color: var(--ink-2);
    line-height: 1.65;
    background: #FFFFFF;
    border-left: 3px solid var(--brand-blue);
    padding: 10px 12px;
    border-radius: 4px;
}

.script-output {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: var(--font-sans);
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--ink);
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    max-height: 360px;
    overflow-y: auto;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 580px;
}

.info-table th,
.info-table td {
    padding: 12px 14px;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.info-table th {
    background: var(--brand-blue-soft);
    color: var(--brand-blue-dark);
    font-weight: 700;
}

.info-table tr:nth-child(even) td {
    background: #FAFCFE;
}

/* ==================== 搜索与关于页 ==================== */
.search-big-form {
    display: flex;
    gap: 10px;
    max-width: 640px;
    margin: 14px 0 12px;
}

.search-big-form input {
    flex: 1;
    min-width: 0;
    padding: 11px 16px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    outline: none;
}

.search-big-form input:focus {
    border-color: var(--brand-blue);
}

.hot-kw-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-3);
}

.search-stat {
    margin-bottom: 18px;
    font-size: 15px;
    color: var(--ink-2);
}

.search-dir-block {
    margin-bottom: 24px;
}

.search-dir-block h2 {
    font-size: 18px;
    margin-bottom: 12px;
}

.empty-box {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    text-align: center;
}

.empty-box h1,
.empty-box h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.empty-box p {
    color: var(--ink-2);
    font-size: 14.5px;
}

.empty-box a {
    color: var(--brand-blue);
    font-weight: 600;
}

.notfound-code {
    font-size: 56px;
    font-weight: 800;
    color: var(--brand-orange);
    line-height: 1;
    margin-bottom: 10px;
}

.notfound-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.notfound-actions .btn-primary {
    color: #FFFFFF;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.about-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 30px;
}

.about-card h2 {
    font-size: 19px;
    margin: 22px 0 10px;
    padding-left: 10px;
    border-left: 4px solid var(--brand-orange);
}

.about-card h2:first-child {
    margin-top: 0;
}

.about-card p,
.about-card li {
    font-size: 15px;
    color: var(--ink-2);
    line-height: 1.8;
    margin-bottom: 10px;
}

.about-card ul {
    padding-left: 20px;
}

.about-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.fact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    font-size: 14px;
}

.fact-list > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border);
}

.fact-list dt {
    color: var(--ink-3);
}

.fact-list dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
}

.fact-list a {
    color: var(--brand-blue);
}

/* ==================== 页脚 ==================== */
.site-footer {
    background: #0F2138;
    color: #B8C7D9;
    margin-top: 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 0.8fr;
    gap: 28px;
    padding: 38px 20px 30px;
}

.footer-brand-title {
    font-size: 20px;
    font-weight: 750;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.footer-desc {
    font-size: 13.5px;
    line-height: 1.7;
    color: #9FB3C9;
    margin-bottom: 14px;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-badges span {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: #E2ECF7;
}

.footer-col h3 {
    font-size: 15px;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13.5px;
}

.footer-col a:hover {
    color: #FFB273;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 0;
    font-size: 13px;
    color: #8CA2BA;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-beian a {
    color: #DCE9F7;
}

.footer-beian a:hover {
    color: #FFB273;
    text-decoration: underline;
}

/* ==================== 响应式适配（含 375px 移动端零横向滚动） ==================== */
@media (max-width: 1120px) {
    .header-search {
        display: none;
    }
    .quick-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .hero-grid,
    .content-with-sidebar,
    .about-grid,
    .tool-grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }
    .channel-grid,
    .town-grid,
    .dir-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .nav-toggle {
        display: flex;
    }
    .primary-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 68px;
        background: #FFFFFF;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        padding: 12px 16px 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    .primary-nav.is-open {
        display: flex;
    }
    .nav-link {
        padding: 10px 12px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 14px;
    }
    .brand-logo img {
        height: 40px;
    }
    .announce-inner {
        flex-wrap: wrap;
        gap: 6px 10px;
        font-size: 13px;
    }
    .announce-link {
        display: none;
    }
    .hero-lead-body {
        padding: 16px;
    }
    .hero-lead-title {
        font-size: 20px;
    }
    .quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .article-grid,
    .channel-grid,
    .town-grid,
    .dir-grid,
    .related-grid,
    .footer-grid,
    .form-row-2,
    .form-row-3 {
        grid-template-columns: minmax(0, 1fr);
    }
    .row-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
    .article-detail {
        padding: 18px 16px;
    }
    .article-header h1 {
        font-size: 22px;
    }
    .tool-panel {
        padding: 18px 14px;
    }
    .search-big-form {
        flex-direction: column;
    }
    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
