/* ==========================================================================
   县域新闻 - 前台样式
   视觉参考：现代资讯门户（白底、蓝色主导航、内容卡片 + 侧栏、深色页脚）
   ========================================================================== */

:root {
    --primary: #1e6fff;
    --primary-dark: #0f56d9;
    --primary-deep: #0b3fa8;
    --primary-soft: #eef4ff;
    --primary-line: #dbe7ff;
    --accent: #ff4d3a;
    --accent-dark: #e83b29;
    --navy: #10233d;
    --text: #1f2329;
    --text-soft: #43516a;
    --muted: #7d8899;
    --muted-light: #a0abba;
    --line: #eef1f6;
    --bg: #f4f7fb;
    --white: #ffffff;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 6px 24px rgba(23, 58, 122, 0.06);
    --shadow-hover: 0 12px 32px rgba(23, 58, 122, 0.12);
}

* {
    box-sizing: border-box;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 14px/1.7 "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

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

img {
    border: 0;
    max-width: 100%;
}

ul,
ol,
dl,
dd {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

button,
input {
    font-family: inherit;
}

:focus-visible {
    outline: 2px solid rgba(30, 111, 255, 0.45);
    outline-offset: 2px;
}

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

/* ---------- 顶部信息条 ---------- */
.topbar {
    background: #f8fafd;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
}

.topbar-inner {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.topbar-right a:hover {
    color: var(--primary);
}

.topbar-right .sep {
    color: #d3dce8;
}

/* ---------- 头部 ---------- */
.site-header {
    background: var(--white);
}

.header-inner {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 18px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: none;
}

.brand img {
    height: 48px;
    width: auto;
    max-width: 210px;
    display: block;
}

.header-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 9px;
    flex: 1;
    max-width: 460px;
}

.search-box {
    display: flex;
    width: 100%;
    height: 44px;
    border: 1px solid #dbe4f2;
    border-radius: 999px;
    overflow: hidden;
    background: #f6f9fe;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30, 111, 255, 0.1);
    background: #fff;
}

.search-box input[type="text"],
.search-box input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 20px;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: var(--text);
}

.search-box input::placeholder {
    color: #a8b3c3;
}

.search-box button {
    flex: none;
    width: 96px;
    border: 0;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
}

.search-box button:hover {
    background: var(--primary-dark);
}

.header-note {
    font-size: 12px;
    color: #a3aebd;
    letter-spacing: 3px;
}

/* ---------- 主导航 ---------- */
.main-nav {
    background: linear-gradient(90deg, #1e6fff 0%, #2f7bff 55%, #1e6fff 100%);
    box-shadow: 0 6px 18px rgba(30, 111, 255, 0.18);
    position: relative;
    z-index: 40;
}

.nav-inner {
    display: flex;
    align-items: center;
}

.nav-toggle {
    display: none;
    width: 100%;
    height: 48px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 15px;
    letter-spacing: 1px;
    cursor: pointer;
    align-items: center;
    gap: 8px;
}

.nav-toggle::before {
    content: "";
    width: 16px;
    height: 2px;
    background: #fff;
    box-shadow: 0 5px 0 #fff, 0 -5px 0 #fff;
}

.nav-list {
    display: flex;
    height: 48px;
}

.nav-list > li {
    position: relative;
    display: flex;
}

.nav-list > li > a {
    display: flex;
    align-items: center;
    padding: 0 26px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.94);
    letter-spacing: 0.5px;
    position: relative;
}

.nav-list > li > a::after {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: transparent;
    transition: background-color 0.2s ease;
}

.nav-list > li:hover > a,
.nav-list > li.active > a {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.nav-list > li.active > a::after {
    background: #fff;
}

.sub-nav {
    position: absolute;
    top: 48px;
    left: 0;
    min-width: 156px;
    padding: 8px 0;
    background: #fff;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 14px 30px rgba(15, 42, 90, 0.16);
    border-top: 3px solid var(--primary);
    display: none;
    z-index: 50;
}

.nav-list > li:hover .sub-nav {
    display: block;
}

.sub-nav a {
    display: block;
    padding: 8px 20px;
    font-size: 13px;
    color: #526179;
    white-space: nowrap;
}

.sub-nav a:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

/* ---------- 布局 ---------- */
.layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding-bottom: 12px;
}

.main-col {
    flex: 1;
    min-width: 0;
}

.side-col {
    width: 296px;
    flex: none;
}

/* ---------- 通用面板 ---------- */
.panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0 24px 24px;
    margin-bottom: 20px;
}

.panel-hd {
    height: 54px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px;
}

.panel-hd h3 {
    position: relative;
    padding-left: 13px;
    font-size: 17px;
    line-height: 22px;
    color: var(--navy);
    font-weight: 700;
}

.panel-hd h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 4px;
    border-radius: 2px;
    background: var(--primary);
}

.hd-en {
    margin-left: 10px;
    font-size: 10px;
    letter-spacing: 2px;
    color: #b5c1d1;
    text-transform: uppercase;
}

.hd-more {
    margin-left: auto;
    font-size: 12px;
    color: var(--muted);
}

.hd-more:hover {
    color: var(--primary);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
    padding: 18px 0 14px;
    font-size: 12px;
    color: #93a0b3;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #6b7a90;
}

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

.breadcrumb .current {
    color: #43516a;
}

/* ---------- 栏目头部 ---------- */
.channel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 0 20px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
}

.channel-eyebrow {
    display: block;
    font-size: 11px;
    letter-spacing: 2.5px;
    color: var(--primary);
    font-weight: 700;
}

.channel-head h1 {
    margin-top: 8px;
    font-size: 28px;
    line-height: 1.3;
    color: var(--navy);
    letter-spacing: 0.5px;
}

.channel-head p {
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted);
}

.channel-count {
    flex: none;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

/* ---------- 分类筛选 ---------- */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 2px 0 18px;
}

.filter-chips a {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: #f4f7fc;
    color: #5b6b82;
    font-size: 13px;
}

.filter-chips a:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.filter-chips a.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 14px rgba(30, 111, 255, 0.28);
}

.sub-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
}

.sub-tabs a {
    padding: 9px 18px;
    font-size: 13px;
    color: #5b6b82;
    border-bottom: 2px solid transparent;
}

.sub-tabs a.active,
.sub-tabs a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ---------- 目录头条 ---------- */
.directory-lead {
    display: flex;
    gap: 22px;
    padding: 18px;
    margin-bottom: 6px;
    background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
    border: 1px solid var(--primary-line);
    border-radius: var(--radius);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.directory-lead:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
}

.directory-lead-thumb {
    flex: none;
    width: 300px;
    height: 186px;
    border-radius: 10px;
    overflow: hidden;
    background: #e8eef7;
}

.directory-lead-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.directory-lead:hover .directory-lead-thumb img {
    transform: scale(1.04);
}

.directory-lead-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.lead-badge {
    align-self: flex-start;
    padding: 2px 10px;
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    letter-spacing: 1px;
}

.directory-lead-body h2 {
    margin-top: 10px;
    font-size: 21px;
    line-height: 1.5;
    color: var(--navy);
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.directory-lead-body h2 a:hover {
    color: var(--primary);
}

.directory-lead-body p {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.directory-lead-body .news-meta {
    margin-top: auto;
    padding-top: 12px;
}

/* ---------- 新闻列表 ---------- */
.news-list li {
    display: flex;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid #f1f4f9;
}

.news-list li:last-child {
    border-bottom: 0;
    padding-bottom: 6px;
}

.news-thumb {
    flex: none;
    width: 200px;
    height: 126px;
    border-radius: 10px;
    overflow: hidden;
    background: #e8eef7;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.news-list li:hover .news-thumb img {
    transform: scale(1.05);
}

.news-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.news-body h3 {
    font-size: 18px;
    line-height: 1.55;
    color: var(--navy);
    font-weight: 700;
}

.news-body h3 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-body h3 a:hover {
    color: var(--primary);
}

.news-body p {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 12px;
    color: #97a3b4;
}

.news-meta a {
    color: var(--primary);
    font-weight: 700;
}

/* ---------- 侧栏 ---------- */
.side-panel {
    padding-bottom: 10px;
}

.rank-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed #eef1f6;
}

.rank-list li:last-child {
    border-bottom: 0;
}

.rank-no {
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 6px;
    background: #f1f5fb;
    color: #8494a8;
    font-size: 12px;
    line-height: 22px;
    text-align: center;
    font-weight: 700;
}

.rank-no.rank-top {
    background: linear-gradient(135deg, #1e6fff, #4f8dff);
    color: #fff;
}

.rank-list li:nth-child(2) .rank-no.rank-top {
    background: linear-gradient(135deg, #4f8dff, #7fabff);
}

.rank-list li:nth-child(3) .rank-no.rank-top {
    background: linear-gradient(135deg, #8fb6ff, #b3cdff);
}

.rank-body {
    min-width: 0;
    flex: 1;
}

.rank-body a {
    line-height: 1.55;
    font-size: 13.5px;
    color: #33415a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-body a:hover {
    color: var(--primary);
}

.rank-meta {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    color: #a4afbf;
}

.side-news li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed #eef1f6;
    font-size: 13px;
}

.side-news li:last-child {
    border-bottom: 0;
}

.side-news li a {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #33415a;
}

.side-news li a:hover {
    color: var(--primary);
}

.side-news li span {
    flex: none;
    font-size: 11px;
    color: #a4afbf;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    padding: 10px 0 6px;
}

.tag-cloud a {
    display: inline-block;
    padding: 5px 13px;
    border-radius: 999px;
    background: #f3f7ff;
    color: #4a6380;
    font-size: 12px;
}

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

/* ---------- 分页 ---------- */
.pager {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    padding: 24px 0 4px;
}

.pager-total {
    margin-right: auto;
    font-size: 12px;
    color: #9aa6b7;
}

.pager a,
.pager span.current,
.pager .pager-dots {
    display: inline-block;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    line-height: 32px;
    text-align: center;
    border: 1px solid #e6ebf3;
    border-radius: 8px;
    font-size: 13px;
    color: #52617a;
    background: #fff;
}

.pager a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pager span.current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 6px 14px rgba(30, 111, 255, 0.26);
}

.pager .pager-btn {
    padding: 0 14px;
}

.pager .pager-dots {
    border-color: transparent;
    background: transparent;
}

/* ---------- 新闻详情 ---------- */
.article {
    padding: 0 40px 40px;
}

.article-head {
    padding-top: 34px;
}

.article-cat {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.article h1 {
    margin-top: 14px;
    font-size: 32px;
    line-height: 1.55;
    color: var(--navy);
    letter-spacing: 0.3px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
    padding: 16px 0 18px;
    margin-top: 18px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    color: #8b96a8;
}

.article-summary {
    margin-top: 24px;
    padding: 18px 20px;
    background: var(--primary-soft);
    border: 1px solid var(--primary-line);
    border-radius: 10px;
    color: #42536b;
}

/* ---------- 拨打电话 ---------- */
.call-panel .call-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.call-shop-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
}

.call-panel .article-call-btn {
    width: 100%;
    justify-content: center;
}

.call-tip {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

.article-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(30, 111, 255, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.article-call-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(30, 111, 255, 0.34);
}

.article-call-btn .call-icon {
    font-size: 17px;
    line-height: 1;
}

.article-call-btn strong {
    margin-left: 6px;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.summary-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary);
}

.article-summary p {
    font-size: 15px;
    line-height: 1.9;
    color: #42536b;
}

.article-cover {
    margin-top: 24px;
    border-radius: 10px;
    overflow: hidden;
    background: #eef2f8;
}

.article-cover img {
    display: block;
    width: 100%;
}

.article-content {
    padding-top: 26px;
    font-size: 18px;
    line-height: 1.9;
    color: #2b3444;
    word-wrap: break-word;
}

.article-content p {
    margin: 0 0 22px;
    text-indent: 2em;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin: 30px 0 14px;
    color: var(--navy);
    line-height: 1.5;
}

.article-content h2 {
    font-size: 24px;
}

.article-content h3 {
    font-size: 20px;
}

.article-content h4 {
    font-size: 18px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 18px auto;
    border-radius: 8px;
}

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

.article-content blockquote {
    margin: 22px 0;
    padding: 16px 20px;
    background: #f5f8fd;
    border-left: 4px solid var(--primary);
    border-radius: 0 8px 8px 0;
    color: #4d5f77;
    font-size: 16px;
}

.article-content blockquote p {
    text-indent: 0;
    margin-bottom: 8px;
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

.article-content ul,
.article-content ol {
    margin: 0 0 22px;
    padding-left: 2em;
}

.article-content ul li {
    list-style: disc;
}

.article-content ol li {
    list-style: decimal;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.article-content th,
.article-content td {
    border: 1px solid #e6ebf3;
    padding: 10px 12px;
    font-size: 15px;
}

.article-content th {
    background: #f4f8fd;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
}

.article-tags a {
    padding: 4px 12px;
    border-radius: 999px;
    background: #f3f7ff;
    color: #4a6380;
}

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

.article-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.article-nav-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px 18px;
    font-size: 13px;
    min-width: 0;
}

.article-nav-item > span {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    color: #9aa6b7;
}

.article-nav-item a {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--navy);
    font-weight: 700;
}

.article-nav-item em {
    font-style: normal;
    color: #a7b2c1;
}

/* ---------- 相关阅读 ---------- */
.related-panel {
    padding-bottom: 20px;
}

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

.related-card {
    display: block;
    min-width: 0;
}

.related-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    background: #e8eef7;
    display: block;
    transition: transform 0.3s ease;
}

.related-card:hover img {
    transform: scale(1.03);
}

.related-card h4 {
    margin-top: 9px;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 400;
    color: #33415a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card span {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: #a4afbf;
}

/* ---------- 搜索页 ---------- */
.inline-search {
    display: flex;
    height: 38px;
    flex: none;
    border: 1px solid #dbe4f2;
    border-radius: 999px;
    overflow: hidden;
    background: #f6f9fe;
}

.inline-search input {
    width: 190px;
    padding: 0 14px;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 13px;
}

.inline-search button {
    padding: 0 18px;
    border: 0;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font-size: 13px;
}

/* ---------- 空状态 / 404 ---------- */
.empty-state {
    padding: 44px 16px;
    text-align: center;
    color: #9aa6b7;
    font-size: 13px;
    background: #f8fafd;
    border-radius: 10px;
}

.empty-item {
    color: #a7b2c1;
    font-size: 12px;
}

.error-page {
    max-width: 620px;
    margin: 60px auto;
    padding: 50px 40px;
    text-align: center;
}

.error-code {
    font-size: 78px;
    line-height: 1;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 6px;
    opacity: 0.9;
}

.error-page h1 {
    margin-top: 16px;
    font-size: 22px;
    color: var(--navy);
}

.error-page p {
    margin-top: 10px;
    color: var(--muted);
}

.error-actions {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn {
    display: inline-block;
    padding: 10px 26px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    border: 1px solid var(--primary);
    box-shadow: 0 8px 18px rgba(30, 111, 255, 0.24);
}

.btn:hover {
    background: var(--primary-dark);
    color: #fff;
}

.btn.ghost {
    background: #fff;
    color: var(--primary);
    border-color: var(--primary-line);
    box-shadow: none;
}

.btn.ghost:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

/* ---------- 页脚 ---------- */
.site-footer {
    margin-top: 36px;
    background: linear-gradient(180deg, #10233d 0%, #0a1729 100%);
    color: #a9bccb;
    font-size: 13px;
}

.footer-inner {
    display: flex;
    gap: 48px;
    padding: 48px 0 36px;
}

.footer-links {
    flex: 1;
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-links dt {
    margin-bottom: 10px;
    color: #fff;
    font-size: 14px;
}

.footer-links dd {
    font-size: 12px;
    line-height: 2.1;
}

.footer-links a {
    color: #a9bccb;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: #7b8ba1;
}

.footer-legal {
    padding: 16px 0 20px;
}

.footer-legal p {
    margin: 0 0 5px;
    line-height: 1.9;
}

.footer-legal p:last-child {
    margin-bottom: 0;
}

.footer-legal a {
    color: #a9bccb;
}

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

/* ---------- 回到顶部 ---------- */
.back-top {
    position: fixed;
    right: 26px;
    bottom: 30px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    font-size: 18px;
    line-height: 44px;
    box-shadow: 0 8px 24px rgba(15, 42, 90, 0.18);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    z-index: 60;
}

.back-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-top:hover {
    background: var(--primary);
    color: #fff;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1240px) {
    .container {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 1024px) {
    .layout {
        flex-direction: column;
    }

    .main-col,
    .side-col {
        width: 100%;
        min-width: 0;
    }

    .side-col {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
        align-items: start;
    }

    .side-col .panel {
        margin-bottom: 0;
    }
}

@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .nav-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-list {
        display: none;
        height: auto;
        flex-direction: column;
        padding-bottom: 8px;
    }

    .nav-list.is-open {
        display: flex;
    }

    .nav-list > li {
        display: block;
    }

    .nav-list > li > a {
        padding: 12px 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .nav-list > li > a::after {
        display: none;
    }

    .sub-nav {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        min-width: 0;
        padding: 8px;
        border-top: 0;
        border-radius: 0;
        background: rgba(255, 255, 255, 0.12);
        box-shadow: none;
    }

    .sub-nav a {
        padding: 5px 12px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.16);
        color: #fff;
        font-size: 12px;
    }

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

@media (max-width: 760px) {
    .topbar-date {
        display: none;
    }

    .topbar-inner {
        justify-content: flex-end;
        height: 32px;
    }

    .header-inner {
        min-height: 0;
        padding: 16px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .brand img {
        height: 42px;
        width: auto;
        max-width: 170px;
    }

    .header-side {
        width: 100%;
        max-width: none;
        align-items: stretch;
    }

    .header-note {
        display: none;
    }

    .breadcrumb {
        padding: 14px 0 10px;
        font-size: 11.5px;
        gap: 6px;
        line-height: 1.6;
    }

    .breadcrumb .current {
        flex-basis: 100%;
        color: #9aa6b7;
    }

    .channel-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 20px 0 16px;
    }

    .channel-head h1 {
        font-size: 20px;
        letter-spacing: 0;
    }

    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .panel {
        padding-left: 14px;
        padding-right: 14px;
    }

    .directory-lead {
        flex-direction: column;
        padding: 12px;
    }

    .directory-lead-thumb {
        width: 100%;
        height: 180px;
    }

    .directory-lead-body h2 {
        font-size: 18px;
    }

    .news-list li {
        gap: 12px;
        padding: 16px 0;
    }

    .news-thumb {
        width: 108px;
        height: 74px;
    }

    .news-body h3 {
        font-size: 15px;
    }

    .news-body p {
        display: none;
    }

    .news-meta {
        gap: 10px;
        padding-top: 7px;
        font-size: 11px;
    }

    .article {
        padding: 0 14px 22px;
    }

    .article-head {
        padding-top: 18px;
    }

    .article-cat {
        padding: 3px 10px;
        font-size: 11px;
    }

    .article h1 {
        margin-top: 8px;
        font-size: 20px;
        line-height: 1.5;
        letter-spacing: 0;
    }

    .article-meta {
        margin-top: 12px;
        padding: 12px 0 14px;
        gap: 6px 14px;
        font-size: 11.5px;
    }

    .article-summary {
        margin-top: 18px;
        padding: 12px 14px;
    }

    .article-summary p {
        font-size: 14px;
        line-height: 1.8;
    }

    .article-cover {
        margin-top: 16px;
    }

    .article-content {
        padding-top: 18px;
        font-size: 15.5px;
        line-height: 1.9;
    }

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

    .article-content h2 {
        margin: 22px 0 10px;
        font-size: 19px;
    }

    .article-content h3 {
        margin: 20px 0 10px;
        font-size: 17px;
    }

    .article-content h4 {
        font-size: 16px;
    }

    .article-content blockquote {
        margin: 18px 0;
        padding: 12px 14px;
        font-size: 14.5px;
    }

    .article-content th,
    .article-content td {
        padding: 8px;
        font-size: 13px;
    }

    .article-tags {
        margin-top: 22px;
        padding-top: 14px;
    }

    .article-nav,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .related-card img {
        height: 150px;
    }

    .article-nav-item {
        padding: 12px 14px;
    }

    .side-col {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-inner {
        flex-direction: column;
        gap: 26px;
        padding: 34px 0 26px;
    }

    .inline-search {
        width: 100%;
    }

    .inline-search input {
        flex: 1;
        width: auto;
    }

    .back-top {
        right: 16px;
        bottom: 20px;
        width: 40px;
        height: 40px;
        line-height: 40px;
    }
}

/* 小屏手机（≤400px）进一步收窄比例 */
@media (max-width: 400px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .panel,
    .article {
        padding-left: 12px;
        padding-right: 12px;
    }

    .brand img {
        height: 38px;
        width: auto;
        max-width: 150px;
    }

    .article h1 {
        font-size: 18.5px;
    }

    .article-content {
        font-size: 15px;
        line-height: 1.85;
    }

    .article-summary p {
        font-size: 13.5px;
    }

    .news-thumb {
        width: 96px;
        height: 68px;
    }

    .news-body h3 {
        font-size: 14.5px;
    }

    .channel-head h1 {
        font-size: 19px;
    }

    .directory-lead-body h2 {
        font-size: 17px;
    }
}

/* 手机端：拨打电话按钮悬浮在底部 */
@media (max-width: 760px) {
    body.has-call-bar {
        padding-bottom: 74px;
    }

    .call-panel {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 80;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
        border-radius: 0;
        background: #fff;
        box-shadow: 0 -8px 24px rgba(15, 45, 66, 0.14);
    }

    .call-panel .panel-hd,
    .call-tip {
        display: none;
    }

    .call-panel .call-card {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        min-width: 0;
        overflow: hidden;
    }

    .call-panel .call-text {
        white-space: nowrap;
    }

    .call-shop-name {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 13px;
        font-weight: 400;
        color: #52687a;
    }

    .call-panel .article-call-btn {
        width: auto;
        flex: none;
        padding: 9px 18px;
        box-shadow: none;
    }

    .call-panel .article-call-btn strong {
        font-size: 15px;
    }

    body.has-call-bar .back-top {
        bottom: 88px;
    }
}
