/* ============================================================
   style-classic.css ?经典商务风格 (Professional Classic Template)
   Template: professional_classing
   Primary: #1e40af | Secondary: #1e3a5f | Accent: #f59e0b
   ============================================================ */

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}
html { font-size: 14px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica,
    Arial, sans-serif;
  font-size: 14px; line-height: 1.6;
  color: #1e293b; background: #f5f7fa; min-height: 100vh;
}
a { color: #1e40af; text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: #f59e0b; }
img { max-width: 100%; height: auto; vertical-align: middle; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: #1e293b; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: .875rem; }
p { margin-bottom: .75rem; }
input, textarea, select, button {
  font-family: inherit; font-size: inherit; line-height: inherit;
}
.container {
  max-width: 1200px; margin: 0 auto; padding: 0 15px;
}
.clearfix::after { content: ""; display: table; clear: both; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ===== Top Bar ===== */
.topbar {
  background: #1e3a5f; color: #fff; font-size: .8125rem;
  line-height: 36px; border-bottom: 2px solid #1e40af;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
}
.topbar-left span { margin-right: 18px; display: inline-block; }
.topbar-left i, .topbar-left .icon { margin-right: 4px; }
.topbar-right a {
  color: rgba(255,255,255,.8); margin-left: 14px;
  transition: color .2s;
}
.topbar-right a:hover { color: #f59e0b; }

/* ===== Header ===== */
.header {
  background: #fff; position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.logo { display: flex; align-items: center; }
.logo img { height: 42px; margin-right: 10px; }
.logo-text { font-size: 1.375rem; font-weight: 700; color: #1e3a5f; }
.logo-text span { color: #f59e0b; }
.nav { display: flex; align-items: center; }
.nav > li { position: relative; }
.nav > li > a {
  display: block; padding: 0 18px; line-height: 70px;
  font-size: .9375rem; color: #1e293b; font-weight: 500;
  transition: color .2s; white-space: nowrap;
}
.nav > li > a:hover, .nav > li > a.active {
  color: #1e40af;
}
.nav > li > a.active::after {
  content: ""; position: absolute; bottom: 0; left: 18px; right: 18px;
  height: 3px; background: #1e40af; border-radius: 2px 2px 0 0;
}
.nav .has-dropdown > a::after {
  content: ""; display: inline-block; width: 0; height: 0;
  margin-left: 5px; vertical-align: middle;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 200px;
  background: #fff; border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0,0,0,.1); opacity: 0;
  visibility: hidden; transform: translateY(6px);
  transition: all .25s ease; z-index: 999; border-top: 3px solid #1e40af;
}
.nav > li:hover .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown li a {
  display: block; padding: 10px 18px; color: #475569;
  font-size: .875rem; border-bottom: 1px solid #f1f5f9;
  transition: all .2s;
}
.dropdown li:last-child a { border-bottom: 0; }
.dropdown li a:hover {
  background: #eff6ff; color: #1e40af; padding-left: 24px;
}

/* ===== Mobile Hamburger ===== */
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  align-items: center; width: 36px; height: 36px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: #1e293b;
  border-radius: 2px; transition: all .3s; margin: 3px 0;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px,-6px); }

/* ===== Breadcrumbs ===== */
.breadcrumb-wrap {
  background: #fff; border-bottom: 1px solid #e2e8f0; padding: 12px 0;
}
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; font-size: .8125rem; color: #64748b; }
.breadcrumb a { color: #64748b; }
.breadcrumb a:hover { color: #1e40af; }
.breadcrumb li + li::before {
  content: "/"; margin: 0 10px; color: #cbd5e1;
}
.breadcrumb li:last-child { color: #1e293b; font-weight: 500; }

/* ===== Hero / Banner ===== */
.hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 60%, #2563eb 100%);
  color: #fff; padding: 60px 0; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; top: -50%; right: -20%;
  width: 500px; height: 500px; border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.hero .container { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.hero-content { max-width: 600px; }
.hero-content h2 { font-size: 2.125rem; color: #fff; margin-bottom: 16px; }
.hero-content p { font-size: 1.0625rem; color: rgba(255,255,255,.85); margin-bottom: 28px; line-height: 1.8; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-btns .btn { padding: 12px 32px; font-size: .9375rem; border-radius: 4px; }
.hero-btns .btn-primary { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.hero-btns .btn-primary:hover { background: #d97706; border-color: #d97706; }
.hero-btns .btn-outline { background: transparent; border: 2px solid rgba(255,255,255,.7); color: #fff; }
.hero-btns .btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.hero-img { flex-shrink: 0; margin-left: 40px; }
.hero-img img { max-height: 200px; }
.hero-sm { padding: 40px 0; }
.hero-sm .hero-content h2 { font-size: 1.5rem; }
.hero-sm .hero-content p { font-size: .9375rem; margin-bottom: 0; }

/* ===== Services Grid (2x2 table-like) ===== */
.services-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: #e2e8f0; border: 1px solid #e2e8f0; border-radius: 6px;
  overflow: hidden;
}
.service-item {
  background: #fff; padding: 28px 24px;
  display: flex; align-items: flex-start; transition: box-shadow .25s;
}
.service-item:hover { box-shadow: inset 0 0 0 2px #1e40af; position: relative; z-index: 1; }
.service-icon {
  width: 52px; height: 52px; flex-shrink: 0; margin-right: 16px;
  background: #eff6ff; border-radius: 8px; display: flex;
  align-items: center; justify-content: center; font-size: 1.5rem; color: #1e40af;
}
.service-body h4 { font-size: 1.0625rem; margin-bottom: 6px; color: #1e293b; }
.service-body p { font-size: .875rem; color: #64748b; margin-bottom: 8px; line-height: 1.6; }
.service-body .more-link { font-size: .8125rem; color: #1e40af; font-weight: 500; }

/* ===== Features (4-column) ===== */
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.feature-box {
  background: #fff; border-radius: 6px; padding: 32px 20px;
  text-align: center; border: 1px solid #e2e8f0;
  transition: transform .25s, box-shadow .25s;
}
.feature-box:hover {
  transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.feature-num {
  width: 56px; height: 56px; line-height: 56px; margin: 0 auto 14px;
  border-radius: 50%; background: #eff6ff; color: #1e40af;
  font-size: 1.375rem; font-weight: 700;
}
.feature-box h4 { font-size: 1.0625rem; margin-bottom: 8px; }
.feature-box p { font-size: .875rem; color: #64748b; margin-bottom: 0; }

/* ===== News Section (70/30 split) ===== */
.news-split {
  display: grid; grid-template-columns: 1fr 340px; gap: 30px;
}
.news-list { display: flex; flex-direction: column; gap: 1px; background: #e2e8f0; border-radius: 6px; overflow: hidden; }
.news-item {
  display: flex; align-items: stretch; background: #fff; transition: background .2s;
}
.news-item:hover { background: #f8fafc; }
.news-date {
  width: 70px; flex-shrink: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: #eff6ff; border-right: 2px solid #1e40af;
}
.news-date .day { font-size: 1.5rem; font-weight: 700; color: #1e40af; line-height: 1; }
.news-date .mon { font-size: .75rem; color: #64748b; margin-top: 2px; }
.news-date.hot { background: #fef3c7; border-right-color: #f59e0b; }
.news-date.hot .day { color: #d97706; }
.news-body { flex: 1; padding: 14px 20px; display: flex; flex-direction: column; justify-content: center; }
.news-body h4 { font-size: .9375rem; font-weight: 500; margin-bottom: 4px; }
.news-body h4 a { color: #1e293b; }
.news-body h4 a:hover { color: #1e40af; }
.news-body .meta { font-size: .75rem; color: #94a3b8; }
.news-more {
  display: block; text-align: center; padding: 14px; font-size: .8125rem;
  background: #fff; border-top: 1px solid #e2e8f0; color: #1e40af;
  transition: background .2s;
}
.news-more:hover { background: #f1f5f9; }

/* ===== Sidebar ===== */
.sidebar { min-width: 0; }
.sidebar-panel {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 6px;
  margin-bottom: 20px; overflow: hidden;
}
.sidebar-panel:last-child { margin-bottom: 0; }
.sidebar-title {
  padding: 14px 18px; font-size: 1rem; font-weight: 600; color: #1e293b;
  border-bottom: 1px solid #e2e8f0; position: relative;
  background: #f8fafc;
}
.sidebar-title::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: #1e40af; border-radius: 0 2px 2px 0;
}
.sidebar-body { padding: 12px 0; }

/* Category tree */
.cate-tree li { border-bottom: 1px solid #f1f5f9; }
.cate-tree li:last-child { border-bottom: 0; }
.cate-tree a {
  display: flex; justify-content: space-between; padding: 10px 18px;
  font-size: .875rem; color: #475569; transition: all .2s;
}
.cate-tree a:hover, .cate-tree a.active { color: #1e40af; background: #eff6ff; }
.cate-tree .count { color: #94a3b8; font-size: .8125rem; }
.cate-tree .has-child > a::before {
  content: "?; margin-right: 6px; color: #94a3b8; font-weight: 700;
}
.cate-tree .children { padding-left: 20px; display: none; }
.cate-tree .open > .children { display: block; }

/* Hot news sidebar */
.hot-news-list { }
.hot-news-item {
  display: flex; align-items: flex-start; padding: 10px 18px;
  border-bottom: 1px dashed #f1f5f9;
}
.hot-news-item:last-child { border-bottom: 0; }
.hot-news-item .rank {
  width: 20px; height: 20px; line-height: 20px; text-align: center;
  border-radius: 4px; font-size: .75rem; font-weight: 700;
  margin-right: 10px; margin-top: 2px; flex-shrink: 0;
  background: #e2e8f0; color: #64748b;
}
.hot-news-item .rank.top1 { background: #f59e0b; color: #fff; }
.hot-news-item .rank.top2 { background: #94a3b8; color: #fff; }
.hot-news-item .rank.top3 { background: #cbd5e1; color: #fff; }
.hot-news-item a { font-size: .8125rem; color: #475569; line-height: 1.5; }
.hot-news-item a:hover { color: #1e40af; }

/* Contact box sidebar */
.contact-box { padding: 18px; }
.contact-box p { font-size: .8125rem; color: #475569; margin-bottom: 6px; }
.contact-box p:last-child { margin-bottom: 0; }
.contact-box .label { color: #94a3b8; display: inline-block; min-width: 56px; }
.contact-box .tel { font-size: 1.25rem; color: #1e40af; font-weight: 700; }
.contact-box .qr { text-align: center; margin-top: 12px; }
.contact-box .qr img { width: 100px; height: 100px; }

/* ===== Partner Section ===== */
.partner-section { background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; padding: 30px; }
.partners-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; align-items: center;
}
.partner-item {
  display: flex; align-items: center; justify-content: center;
  height: 60px; filter: grayscale(100%); opacity: .55;
  transition: all .3s;
}
.partner-item:hover {
  filter: grayscale(0); opacity: 1;
}
.partner-item img { max-height: 44px; max-width: 100%; }

/* ===== City Links Section ===== */
.city-links { background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; padding: 24px 30px; }
.city-links h3 { font-size: .9375rem; margin-bottom: 14px; }
.city-links-list { display: flex; flex-wrap: wrap; gap: 4px; }
.city-links-list a {
  padding: 4px 14px; font-size: .8125rem; color: #475569;
  border: 1px solid #e2e8f0; border-radius: 4px; transition: all .2s;
}
.city-links-list a:hover {
  color: #1e40af; border-color: #1e40af; background: #eff6ff;
}

/* ===== Footer ===== */
.footer {
  background: #0f2440; color: rgba(255,255,255,.7); font-size: .8125rem;
}
.footer-main { padding: 40px 0; }
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
}
.footer-col h4 {
  color: #fff; font-size: .9375rem; margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 2px solid rgba(255,255,255,.12);
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.6); transition: color .2s; }
.footer-col ul li a:hover { color: #f59e0b; }
.footer-col p { margin-bottom: 6px; color: rgba(255,255,255,.55); }
.footer-col .tel { font-size: 1.125rem; color: #f59e0b; font-weight: 700; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0;
  text-align: center; color: rgba(255,255,255,.4); font-size: .75rem;
}
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: #f59e0b; }

/* ===== Floating Back-to-Top ===== */
.back-top {
  position: fixed; right: 30px; bottom: 60px; z-index: 999;
  width: 42px; height: 42px; line-height: 42px; text-align: center;
  background: rgba(30,64,175,.85); color: #fff; border-radius: 6px;
  font-size: 1.125rem; cursor: pointer; opacity: 0; visibility: hidden;
  transition: all .3s; border: none;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: #1e40af; transform: translateY(-2px); }

/* ===== Section Common ===== */
.section { padding: 40px 0; }
.section-title {
  text-align: center; margin-bottom: 30px;
}
.section-title h2 {
  font-size: 1.5rem; color: #1e293b; position: relative;
  display: inline-block; padding-bottom: 12px;
}
.section-title h2::after {
  content: ""; position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%); width: 50px; height: 3px;
  background: #1e40af; border-radius: 2px;
}
.section-title p { color: #64748b; margin-top: 8px; font-size: .875rem; }
.section-bg { background: #fff; }

/* ===== List Page (article list + sidebar) ===== */
.content-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 30px; padding: 30px 0; }
.article-list { }
.article-item {
  display: flex; background: #fff; border-radius: 6px; overflow: hidden;
  margin-bottom: 16px; border: 1px solid #e2e8f0; transition: box-shadow .25s;
}
.article-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.article-item .thumb {
  width: 220px; flex-shrink: 0; overflow: hidden;
}
.article-item .thumb img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .3s;
}
.article-item:hover .thumb img { transform: scale(1.06); }
.article-item .info { padding: 18px 22px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.article-item .info h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.article-item .info h3 a { color: #1e293b; }
.article-item .info h3 a:hover { color: #1e40af; }
.article-item .info p { font-size: .8125rem; color: #64748b; margin-bottom: 10px; line-height: 1.6; }
.article-item .info .meta { font-size: .75rem; color: #94a3b8; }
.article-item .info .meta span { margin-right: 16px; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 24px; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border: 1px solid #e2e8f0; border-radius: 4px;
  font-size: .8125rem; color: #475569; background: #fff;
  transition: all .2s;
}
.pagination a:hover { border-color: #1e40af; color: #1e40af; }
.pagination .current {
  background: #1e40af; color: #fff; border-color: #1e40af;
}
.pagination .disabled {
  color: #cbd5e1; cursor: not-allowed; background: #f8fafc;
}

/* ===== Detail Page ===== */
.detail-wrap { padding: 30px 0; }
.detail-main { background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; padding: 30px; }
.detail-header { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #e2e8f0; }
.detail-header h1 { font-size: 1.375rem; margin-bottom: 10px; }
.detail-meta { font-size: .8125rem; color: #94a3b8; }
.detail-meta span { margin-right: 20px; }
.detail-body { font-size: .9375rem; line-height: 1.9; color: #334155; }
.detail-body h2, .detail-body h3, .detail-body h4 { margin-top: 24px; margin-bottom: 12px; }
.detail-body p { margin-bottom: 16px; }
.detail-body img { margin: 16px 0; border-radius: 4px; }
.detail-body ul, .detail-body ol { margin-bottom: 16px; padding-left: 24px; }
.detail-body ul { list-style: disc; }
.detail-body ol { list-style: decimal; }
.detail-body table { border: 1px solid #e2e8f0; margin: 16px 0; }
.detail-body th, .detail-body td { padding: 10px 14px; border: 1px solid #e2e8f0; text-align: left; }
.detail-body th { background: #f8fafc; font-weight: 600; }
.detail-tags { margin-top: 24px; padding-top: 16px; border-top: 1px solid #e2e8f0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.detail-tags .label { font-size: .8125rem; color: #64748b; margin-right: 4px; }
.detail-tags a {
  display: inline-block; padding: 4px 12px; font-size: .75rem;
  border: 1px solid #e2e8f0; border-radius: 4px; color: #475569;
  transition: all .2s;
}
.detail-tags a:hover { border-color: #1e40af; color: #1e40af; background: #eff6ff; }
.detail-nav {
  display: flex; justify-content: space-between; margin-top: 24px;
  padding-top: 16px; border-top: 1px solid #e2e8f0; font-size: .875rem;
}
.detail-nav a { color: #475569; max-width: 45%; }
.detail-nav a:hover { color: #1e40af; }
.detail-nav .prev::before { content: "?"; }
.detail-nav .next::after { content: " ?; }

/* ===== Search Page ===== */
.search-wrap { padding: 30px 0; }
.search-box { max-width: 600px; margin: 0 auto 30px; display: flex; gap: 0; }
.search-box input[type="text"] {
  flex: 1; height: 44px; padding: 0 16px; border: 2px solid #e2e8f0;
  border-right: 0; border-radius: 6px 0 0 6px; outline: none;
  font-size: .9375rem; transition: border-color .2s;
}
.search-box input[type="text"]:focus { border-color: #1e40af; }
.search-box button {
  width: 80px; background: #1e40af; color: #fff; border: none;
  border-radius: 0 6px 6px 0; font-size: .9375rem; cursor: pointer;
  transition: background .2s;
}
.search-box button:hover { background: #1e3a5f; }
.search-result-count { font-size: .8125rem; color: #64748b; margin-bottom: 16px; }
.search-result-item {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 6px;
  padding: 18px 22px; margin-bottom: 12px; transition: box-shadow .2s;
}
.search-result-item:hover { box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.search-result-item h4 { font-size: 1rem; margin-bottom: 6px; }
.search-result-item h4 a { color: #1e293b; }
.search-result-item h4 a:hover { color: #1e40af; }
.search-result-item p { font-size: .8125rem; color: #64748b; margin-bottom: 6px; }
.search-result-item .url { font-size: .75rem; color: #1e40af; }
.search-highlight { color: #f59e0b; font-weight: 600; }

/* ===== About / Contact / Page (with sidebar) ===== */
.page-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 30px; padding: 30px 0; }
.page-main { background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; padding: 30px; }
.page-main h1 { margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid #e2e8f0; }

/* Contact form */
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .full { grid-column: 1 / -1; }
.contact-info { margin-bottom: 24px; }
.contact-info p { font-size: .875rem; color: #475569; margin-bottom: 8px; }
.contact-info .icon { display: inline-block; width: 20px; text-align: center; margin-right: 6px; color: #1e40af; }

/* ===== Sitemap ===== */
.sitemap { padding: 30px 0; }
.sitemap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sitemap-col { background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; padding: 20px; }
.sitemap-col h4 { font-size: 1rem; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #1e40af; }
.sitemap-col ul li { margin-bottom: 6px; }
.sitemap-col ul li a { font-size: .8125rem; color: #475569; }
.sitemap-col ul li a:hover { color: #1e40af; }
.sitemap-col ul ul { padding-left: 16px; margin-top: 4px; }

/* ===== Form Controls ===== */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: .875rem; font-weight: 500;
  color: #334155; margin-bottom: 6px;
}
.form-control {
  display: block; width: 100%; height: 42px; padding: 0 14px;
  font-size: .875rem; color: #1e293b;
  background: #fff; border: 1px solid #cbd5e1; border-radius: 4px;
  outline: none; transition: border-color .2s;
}
.form-control:focus { border-color: #1e40af; box-shadow: 0 0 0 3px rgba(30,64,175,.12); }
textarea.form-control { height: auto; min-height: 100px; padding: 12px 14px; resize: vertical; }
select.form-control { appearance: auto; }
.form-control.error { border-color: #ef4444; }
.form-tip { font-size: .75rem; color: #94a3b8; margin-top: 4px; }
.form-control::placeholder { color: #94a3b8; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 10px 28px; font-size: .875rem;
  font-weight: 500; line-height: 1.5; text-align: center;
  border: 1px solid transparent; border-radius: 4px; cursor: pointer;
  transition: all .25s; user-select: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: #1e40af; border-color: #1e40af; color: #fff; }
.btn-primary:hover { background: #1e3a5f; border-color: #1e3a5f; color: #fff; }
.btn-secondary { background: #f1f5f9; border-color: #e2e8f0; color: #475569; }
.btn-secondary:hover { background: #e2e8f0; color: #1e293b; }
.btn-accent { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.btn-accent:hover { background: #d97706; border-color: #d97706; color: #fff; }
.btn-outline-primary { background: transparent; border-color: #1e40af; color: #1e40af; }
.btn-outline-primary:hover { background: #1e40af; color: #fff; }
.btn-outline-accent { background: transparent; border-color: #f59e0b; color: #f59e0b; }
.btn-outline-accent:hover { background: #f59e0b; color: #fff; }
.btn-sm { padding: 6px 16px; font-size: .8125rem; }
.btn-lg { padding: 14px 36px; font-size: 1rem; }
.btn-block { display: block; width: 100%; }
.btn:disabled, .btn.disabled { opacity: .55; pointer-events: none; }

/* ===== Card ===== */
.card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 6px;
  overflow: hidden; transition: box-shadow .25s;
}
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.card-header {
  padding: 14px 20px; font-weight: 600; font-size: .9375rem;
  border-bottom: 1px solid #e2e8f0; background: #f8fafc;
}
.card-body { padding: 20px; }
.card-body p:last-child { margin-bottom: 0; }

/* ===== Table ===== */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  padding: 10px 14px; border: 1px solid #e2e8f0; text-align: left; font-size: .875rem;
}
.table th { background: #f8fafc; font-weight: 600; color: #1e293b; }
.table td { color: #475569; }
.table-striped tbody tr:nth-child(odd) { background: #f8fafc; }
.table-bordered { border: 1px solid #e2e8f0; }
.table-hover tbody tr:hover { background: #eff6ff; }

/* ===== Badge ===== */
.badge {
  display: inline-block; padding: 2px 10px; font-size: .75rem;
  font-weight: 600; line-height: 1.5; border-radius: 50px; text-align: center;
}
.badge-primary { background: #eff6ff; color: #1e40af; }
.badge-accent { background: #fef3c7; color: #d97706; }
.badge-success { background: #ecfdf5; color: #059669; }
.badge-warning { background: #fffbeb; color: #d97706; }
.badge-danger { background: #fef2f2; color: #dc2626; }
.badge-info { background: #ecfeff; color: #0891b2; }
.badge-gray { background: #f1f5f9; color: #64748b; }

/* ===== Toggle Switch ===== */
.switch { position: relative; display: inline-block; width: 48px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background: #cbd5e1; transition: .3s; border-radius: 26px;
}
.slider::before {
  content: ""; position: absolute; height: 20px; width: 20px;
  left: 3px; bottom: 3px; background: #fff; transition: .3s;
  border-radius: 50%;
}
.switch input:checked + .slider { background: #1e40af; }
.switch input:checked + .slider::before { transform: translateX(22px); }
.switch input:focus + .slider { box-shadow: 0 0 1px #1e40af; }

/* ===== Highlight / Tags ===== */
.highlight { background: #fef3c7; padding: 0 4px; border-radius: 2px; }
.tag {
  display: inline-block; padding: 2px 10px; font-size: .75rem;
  border: 1px solid #e2e8f0; border-radius: 4px; color: #475569;
  transition: all .2s;
}
.tag:hover { border-color: #1e40af; color: #1e40af; background: #eff6ff; }

/* ===== Drop Cap ===== */
.dropcap::first-letter {
  float: left; font-size: 3rem; line-height: 1; font-weight: 700;
  color: #1e40af; margin-right: 8px; margin-top: 2px;
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: #94a3b8; }
.text-primary { color: #1e40af; }
.text-accent { color: #f59e0b; }
.text-sm { font-size: .8125rem; }
.text-xs { font-size: .75rem; }
.text-lg { font-size: 1.0625rem; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 24px; }
.mt-6 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 24px; }
.mb-6 { margin-bottom: 32px; }
.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-5 { padding: 24px; }
.pt-3 { padding-top: 12px; }
.pb-3 { padding-bottom: 12px; }

/* Icon sizes */
.icon-xs { font-size: .75rem; width: 16px; text-align: center; }
.icon-s { font-size: 1rem; width: 20px; text-align: center; }
.icon-m { font-size: 1.375rem; width: 28px; text-align: center; }
.icon-l { font-size: 1.75rem; width: 36px; text-align: center; }

/* Row/Col grid system */
.row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.col-1 { flex: 0 0 8.33333%; max-width: 8.33333%; padding: 0 12px; }
.col-2 { flex: 0 0 16.66667%; max-width: 16.66667%; padding: 0 12px; }
.col-3 { flex: 0 0 25%; max-width: 25%; padding: 0 12px; }
.col-4 { flex: 0 0 33.33333%; max-width: 33.33333%; padding: 0 12px; }
.col-5 { flex: 0 0 41.66667%; max-width: 41.66667%; padding: 0 12px; }
.col-6 { flex: 0 0 50%; max-width: 50%; padding: 0 12px; }
.col-7 { flex: 0 0 58.33333%; max-width: 58.33333%; padding: 0 12px; }
.col-8 { flex: 0 0 66.66667%; max-width: 66.66667%; padding: 0 12px; }
.col-9 { flex: 0 0 75%; max-width: 75%; padding: 0 12px; }
.col-10 { flex: 0 0 83.33333%; max-width: 83.33333%; padding: 0 12px; }
.col-11 { flex: 0 0 91.66667%; max-width: 91.66667%; padding: 0 12px; }
.col-12 { flex: 0 0 100%; max-width: 100%; padding: 0 12px; }

/* Visibility */
.hidden { display: none !important; }
.visible { display: block !important; }
.show-desktop { display: block; }
.show-mobile { display: none; }

/* ===== Responsive ===== */

/* Tablet: 1024px breakpoint */
@media (max-width: 1024px) {
  .container { max-width: 100%; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(4, 1fr); }
  .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
  .news-split { grid-template-columns: 1fr; }
  .content-wrap { grid-template-columns: 1fr; }
  .page-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content { max-width: 100%; }
  .hero-img { display: none; }
  .news-split .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
  .news-split .sidebar .sidebar-panel { margin-bottom: 0; }

  .nav > li > a { padding: 0 12px; font-size: .875rem; }
  .article-item .thumb { width: 180px; }
}

/* Mobile: 768px breakpoint */
@media (max-width: 768px) {
  html { font-size: 13px; }
  .section { padding: 28px 0; }
  .breadcrumb-wrap { display: none; }

  /* Header / Mobile nav */
  .hamburger { display: flex; }
  .nav {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    background: #fff; border-top: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0,0,0,.1); flex-direction: column;
    max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav > li { border-bottom: 1px solid #f1f5f9; }
  .nav > li > a { line-height: 44px; padding: 0 16px; }
  .nav > li > a.active::after { display: none; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-top: 0;
    display: none; min-width: auto;
  }
  .nav > li.open-dropdown > .dropdown { display: block; }
  .dropdown li a { padding: 10px 16px 10px 28px; }
  .nav .has-dropdown > a::after { float: right; margin-top: 18px; }

  /* Grid adjustments */
  .services-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .sitemap-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .news-split .sidebar { grid-template-columns: 1fr; }
  .page-wrap { grid-template-columns: 1fr; }
  .content-wrap { grid-template-columns: 1fr; }

  /* Hero */
  .hero { padding: 40px 0; text-align: center; }
  .hero-content h2 { font-size: 1.5rem; }
  .hero-btns { justify-content: center; }
  .hero-img { display: none; }

  /* Article list */
  .article-item { flex-direction: column; }
  .article-item .thumb { width: 100%; height: 180px; }
  .article-item .info h3 { font-size: .9375rem; }

  /* Detail */
  .detail-main { padding: 20px; }
  .detail-header h1 { font-size: 1.125rem; }

  /* Contact form */
  .contact-form { grid-template-columns: 1fr; }

  /* Sidebar on list/detail */
  .sidebar { margin-top: 20px; }

  /* Footer */
  .footer-main { padding: 28px 0; }

  /* Partner */
  .partners-grid { gap: 12px; }

  /* Buttons */
  .hero-btns .btn { padding: 10px 24px; font-size: .875rem; }

  /* Pagination */
  .pagination { flex-wrap: wrap; }

  /* City links */
  .city-links-list { gap: 2px; }
  .city-links-list a { padding: 4px 10px; font-size: .75rem; }

  /* Back to top */
  .back-top { right: 16px; bottom: 30px; width: 38px; height: 38px; line-height: 38px; }

  /* Show/hide */
  .show-desktop { display: none; }
  .show-mobile { display: block; }

  /* Topbar */
  .topbar-left span { margin-right: 10px; }
  .topbar-right a { margin-left: 10px; }
}

/* Small mobile: 480px breakpoint */
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .search-box { flex-direction: column; gap: 8px; }
  .search-box input[type="text"] { border-radius: 4px; border-right: 2px solid #e2e8f0; }
  .search-box button { width: 100%; border-radius: 4px; height: 42px; }
  .back-top { right: 12px; bottom: 20px; width: 34px; height: 34px; line-height: 34px; font-size: .875rem; }
}

/* Print */
@media print {
  .header, .footer, .sidebar, .back-top, .breadcrumb-wrap,
  .topbar, .partner-section, .city-links, .hero,
  .detail-nav, .detail-tags, .search-box { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .container { max-width: 100%; }
  .content-wrap, .page-wrap, .detail-wrap { padding: 0; }
  .page-main, .detail-main { border: 0; padding: 0; box-shadow: none; }
  a { color: #000; text-decoration: underline; }
}


/* ===== Nav Crowding Fix ===== */
@media (max-width: 1200px) {
  .header-nav > li > a,
  .nav a,
  .nav-menu a,
  .pd-nav a {
    padding: 6px 10px !important;
    font-size: 0.8125rem !important;
  }
}

@media (max-width: 992px) {
  .header-nav,
  .nav,
  .nav-menu,
  .pd-nav {
    gap: 2px !important;
  }
  .header-nav > li > a,
  .nav a,
  .nav-menu a,
  .pd-nav a {
    padding: 5px 8px !important;
    font-size: 0.75rem !important;
  }
}

@media (max-width: 768px) {
  .header-nav,
  .nav,
  .nav-menu,
  .pd-nav {
    flex-wrap: wrap !important;
  }
}

/* === Auto-fixed missing selectors === */
:root { --color-primary: #1e40af;
  --text-light: #94a3b8;
  --text: #1e293b;
  --primary: #2563eb;
  --bg: #f8fafc;
;}
.news-layout { display: flex; flex-wrap: wrap; gap: 2rem; }
.news-main { flex: 1; min-width: 0; }
.feature-item { padding: 2rem; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.06); text-align: center; }
.header-search { margin-left: auto; display: flex; align-items: center; }
.search-input { padding: .5rem .75rem; border: 1px solid #e5e7eb; border-radius: 4px; font-size: .875rem; outline: none; }
.search-input:focus { border-color: var(--color-primary); }
.search-btn { background: none; border: none; cursor: pointer; padding: .5rem; color: #6b7280; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; font-size: 1.25rem; color: #1e293b; }
.top-bar-sep { margin: 0 .5rem; color: rgba(255,255,255,.5); }
.btn-outline-light { background: transparent; border: 2px solid rgba(255,255,255,.7); color: #fff; padding: .5rem 1.25rem; border-radius: 4px; display: inline-block; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.section-more { float: right; font-size: .875rem; color: var(--color-primary); }
.section-title-left { text-align: left; }
.footer-inner { padding: 3rem 0; }
.footer-bottom-inner { padding: 1rem 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-contact li { margin-bottom: .5rem; }
.header .logo-text{font-size:20px;font-weight:700;color:#1e3a5f;display:block;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:300px}
.sidebar-hot-list { list-style: none; padding: 8px 18px; margin: 0; }
.sidebar-hot-list li { padding: .5rem 0; display: flex; align-items: center; gap: .5rem; }
.sidebar-hot-list li + li { border-top: 1px solid #f3f4f6; }
.hot-num { width: 1.5rem; height: 1.5rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: .75rem; background: #e5e7eb; color: #6b7280; flex-shrink: 0; }
.hot-num-top { background: var(--color-primary); color: #fff; }
.sidebar-contact { padding: 12px 18px; }
.sidebar-contact p { margin-bottom: .5rem; }
.news-content { flex: 1; }
.news-excerpt { color: #6b7280; font-size: .875rem; margin-top: .25rem; }
.news-meta { display: flex; gap: 1rem; margin-top: .5rem; color: #9ca3af; font-size: .8125rem; }
.news-date-day { font-size: 1.5rem; font-weight: 700; display: block; line-height: 1.2; }
.news-date-month { font-size: .75rem; color: #6b7280; }
.service-link { display: inline-flex; align-items: center; gap: .25rem; margin-top: .75rem; color: var(--color-primary); font-size: .875rem; }
.hero-inner { display: flex; align-items: center; }
.icon-svg { width: 1em; height: 1em; vertical-align: middle; fill: currentColor; }

/* ===== Page Header / Breadcrumb ===== */
.page-header { background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 60%, #2563eb 100%); color: #fff; padding: 40px 0; }
.page-header .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.page-header h2 { font-size: 1.5rem; color: #fff; margin: 0; }
.breadcrumb { font-size: .875rem; color: rgba(255,255,255,.75); }
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { margin: 0 .35rem; color: rgba(255,255,255,.4); }

/* ===== Content Layout (list/detail) ===== */
.content-layout { display: flex; gap: 2rem; padding: 2rem 0; align-items: flex-start; }
.content-main { flex: 1; min-width: 0; }

/* ===== News Item (list) ===== */
.news-item { display: flex; gap: 1.25rem; padding: 1.25rem; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.06); margin-bottom: 1rem; }
.news-date { text-align: center; min-width: 60px; padding: .5rem; background: #f8fafc; border-radius: 6px; align-self: flex-start; }

/* ===== Pagination ===== */
.pagination { display: flex; align-items: center; justify-content: center; gap: .35rem; padding: 1.5rem 0; margin-top: 1rem; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; height: 2rem; padding: 0 .5rem; border: 1px solid #e5e7eb; border-radius: 4px; font-size: .875rem; color: #374151; background: #fff; transition: all .2s; }
.pagination a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.page-current { background: var(--color-primary) !important; color: #fff !important; border-color: var(--color-primary) !important; }
.page-prev, .page-next { font-size: .875rem; }
.empty-state { text-align: center; padding: 4rem 2rem; color: #9ca3af; }

/* ===== Sidebar Category Tree ===== */
.sidebar-cat-tree { list-style: none; padding: 0; margin: 0; }
.sidebar-cat-tree > li { border-bottom: 1px solid #f3f4f6; }
.sidebar-cat-tree > li > a { display: block; padding: .6rem .75rem; color: #374151; font-weight: 500; }
.sidebar-cat-tree > li > a:hover { color: var(--color-primary); }
.sidebar-cat-children { list-style: none; padding: 0 0 .25rem 1.25rem; margin: 0; }
.sidebar-cat-children li a { display: block; padding: .3rem .5rem; color: #6b7280; font-size: .875rem; }
.sidebar-cat-children li a:hover { color: var(--color-primary); }

/* ===== Detail Article ===== */
.detail-article { background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.06); padding: 2rem; }
.detail-header { border-bottom: 1px solid #e5e7eb; padding-bottom: 1rem; margin-bottom: 1.5rem; }
.detail-header h1 { font-size: 1.5rem; margin-bottom: .75rem; }
.detail-meta { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; color: #9ca3af; font-size: .8125rem; }
.detail-body { line-height: 1.8; }
.detail-body p { margin-bottom: 1rem; }
.detail-tags { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #e5e7eb; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.tag-label { font-size: .875rem; color: #6b7280; }
.tag-item { display: inline-block; padding: .2rem .6rem; background: #f1f5f9; border-radius: 4px; font-size: .8125rem; color: #475569; }
.tag-item:hover { background: var(--color-primary); color: #fff; }
.detail-nav { display: flex; justify-content: space-between; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #e5e7eb; gap: 1rem; }
.detail-prev, .detail-next { max-width: 45%; font-size: .875rem; }
.detail-prev a, .detail-next a { color: var(--color-primary); }
.detail-prev a:hover, .detail-next a:hover { text-decoration: underline; }
.detail-prev span, .detail-next span { color: #6b7280; }
.detail-next { text-align: right; }
.related-section { margin-top: 1.5rem; }
.related-title { font-size: 1.125rem; margin-bottom: .75rem; padding-bottom: .5rem; border-bottom: 2px solid var(--color-primary); }
.related-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.related-list li { padding: .5rem 0; }
.related-list li a { color: #374151; font-size: .875rem; }
.related-list li a:hover { color: var(--color-primary); }

/* ===== Topbar Right ===== */
.topbar-right { display: flex; gap: 1rem; }

/* ===== Mobile Nav ===== */
#mainNav.active { display: block !important; }
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .header-search { display: none; }
  .news-layout { flex-direction: column; }
  .content-layout { flex-direction: column; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.1); z-index: 100; }
  .nav ul { flex-direction: column; }
  .nav li { border-bottom: 1px solid #f3f4f6; }
  .nav > ul > li > a { display: block; padding: .75rem 1rem; }
  .header { position: relative; }
  .partners-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .detail-nav { flex-direction: column; }
  .detail-prev, .detail-next { max-width: 100%; }
  .related-list { grid-template-columns: 1fr; }
  .news-item { flex-direction: column; }
  .news-date { align-self: auto; display: flex; gap: .25rem; align-items: baseline; }
}

/* ===== Hero Override ===== */
.hero { background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 60%, #2563eb 100%); color: #fff; padding: 60px 0; position: relative; overflow: hidden; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }


/* ========== 内容区样式补?(auto-added) ========== */

/* 段落间距 */
.article-content p,
.article-text p,
.article-body p,
.detail-body p,
.article-detail .content p,
.page-content p {
  margin-bottom: 16px;
  line-height: 1.8;
}

/* 标题样式 */
.article-content h2,
.article-text h2,
.article-body h2,
.detail-body h2,
.article-detail .content h2,
.page-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 28px 0 14px;
  line-height: 1.4;
}

.article-content h3,
.article-text h3,
.article-body h3,
.detail-body h3,
.article-detail .content h3,
.page-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 10px;
  line-height: 1.4;
}

.article-content h4,
.article-text h4,
.article-body h4,
.detail-body h4,
.article-detail .content h4,
.page-content h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 16px 0 8px;
}

/* 列表样式 */
.article-content ul,
.article-text ul,
.article-body ul,
.detail-body ul,
.article-detail .content ul,
.page-content ul {
  list-style: disc;
  margin: 0 0 16px 24px;
}

.article-content ol,
.article-text ol,
.article-body ol,
.detail-body ol,
.article-detail .content ol,
.page-content ol {
  list-style: decimal;
  margin: 0 0 16px 24px;
}

.article-content li,
.article-text li,
.article-body li,
.detail-body li,
.article-detail .content li,
.page-content li {
  margin-bottom: 6px;
  line-height: 1.7;
}

/* 图片样式 */
.article-content img,
.article-text img,
.article-body img,
.detail-body img,
.article-detail .content img,
.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 16px 0;
}

/* 链接样式 */
.article-content a,
.article-text a,
.article-body a,
.detail-body a,
.article-detail .content a,
.page-content a {
  color: var(--primary, #2563eb);
  text-decoration: underline;
}

/* 引用?*/
.article-content blockquote,
.article-text blockquote,
.article-body blockquote,
.detail-body blockquote,
.article-detail .content blockquote,
.page-content blockquote {
  border-left: 4px solid var(--primary, #2563eb);
  padding: 12px 20px;
  margin: 16px 0;
  background: var(--bg, #f9fafb);
  font-style: italic;
}

/* 代码?*/
.article-content code,
.article-text code,
.article-body code,
.detail-body code,
.article-detail .content code,
.page-content code {
  background: var(--bg, #f3f4f6);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}

.article-content pre,
.article-text pre,
.article-body pre,
.detail-body pre,
.article-detail .content pre,
.page-content pre {
  background: #1f2937;
  color: #f9fafb;
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 16px 0;
}

.article-content pre code,
.article-text pre code,
.article-body pre code,
.detail-body pre code,
.article-detail .content pre code,
.page-content pre code {
  background: none;
  padding: 0;
}

/* 表格样式 */
.article-content table,
.article-text table,
.article-body table,
.detail-body table,
.article-detail .content table,
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.article-content th,
.article-text th,
.article-body th,
.detail-body th,
.article-detail .content th,
.page-content th {
  background: var(--bg, #f3f4f6);
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  border: 1px solid var(--border, #e5e7eb);
}

.article-content td,
.article-text td,
.article-body td,
.detail-body td,
.article-detail .content td,
.page-content td {
  padding: 10px 12px;
  border: 1px solid var(--border, #e5e7eb);
}

/* ========== 品牌标语防溢?========== */
.brand-tagline,
[class*="brand-tagline"] {
  max-width: 300px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  color: var(--text-light, #6b7280);
  letter-spacing: 0.5px;
}

/* ========== 导航响应式修?========== */
@media (max-width: 768px) {
  .brand-tagline,
  [class*="brand-tagline"] {
    max-width: 200px;
    font-size: 11px;
  }
}



/* 一级栏?- 醒目样式 */
.sidebar-cats > li > a,
.side-nav > li > a,
.sidebar-widget .side-nav > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  background: #f9fafb;
  border-radius: 6px;
  margin-bottom: 8px;
  border-left: 3px solid var(--primary, #2563eb);
  transition: all 0.2s;
}

.sidebar-cats > li > a:hover,
.side-nav > li > a:hover,
.sidebar-widget .side-nav > li > a:hover {
  background: var(--primary, #2563eb);
  color: #fff;
  padding-left: 18px;
}

/* 二级栏目 - 三列网格 */
.sidebar-cats > li > ul,
.sidebar-cats > li > .sidebar-subcats,
.side-nav > li > ul,
.sidebar-widget .side-nav > li > ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 8px;
  padding: 8px 10px;
  margin: 0 0 8px 0;
  list-style: none;
}

.sidebar-cats > li > ul > li,
.sidebar-cats > li > .sidebar-subcats > li,
.side-nav > li > ul > li,
.sidebar-widget .side-nav > li > ul > li {
  margin: 0;
}

.sidebar-cats > li > ul > li > a,
.sidebar-cats > li > .sidebar-subcats > li > a,
.side-nav > li > ul > li > a,
.sidebar-widget .side-nav > li > ul > li > a {
  display: block;
  padding: 5px 8px;
  font-size: 13px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 4px;
  transition: all 0.2s;
}

.sidebar-cats > li > ul > li > a:hover,
.sidebar-cats > li > .sidebar-subcats > li > a:hover,
.side-nav > li > ul > li > a:hover,
.sidebar-widget .side-nav > li > ul > li > a:hover {
  color: var(--primary, #2563eb);
  background: #eff6ff;
}

/* 响应式：小屏幕改为两?*/
@media (max-width: 992px) {
  .sidebar-cats > li > ul,
  .sidebar-cats > li > .sidebar-subcats,
  .side-nav > li > ul,
  .sidebar-widget .side-nav > li > ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .sidebar-cats > li > ul,
  .sidebar-cats > li > .sidebar-subcats,
  .side-nav > li > ul,
  .sidebar-widget .side-nav > li > ul {
    grid-template-columns: 1fr;
  }
}

/* ========== 侧栏分类优化 (auto-added) ========== */

/* 一级栏?- 醒目样式，颜色跟随主?*/
.sidebar-cats > li > a,
.side-nav > li > a,
.sidebar-widget .side-nav > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #1f2937);
  background: var(--bg, #f9fafb);
  border-radius: 6px;
  margin-bottom: 6px;
  border-left: 3px solid var(--primary, #2563eb);
  transition: all 0.2s;
}

.sidebar-cats > li > a:hover,
.side-nav > li > a:hover,
.sidebar-widget .side-nav > li > a:hover {
  background: var(--primary, #2563eb);
  color: #fff;
  padding-left: 16px;
}

/* 二级栏目 - 自适应布局，处理长名称 */
.sidebar-cats > li > ul,
.sidebar-cats > li > .sidebar-subcats,
.side-nav > li > ul,
.sidebar-widget .side-nav > li > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  margin: 0 0 6px 0;
  list-style: none;
}

.sidebar-cats > li > ul > li,
.sidebar-cats > li > .sidebar-subcats > li,
.side-nav > li > ul > li,
.sidebar-widget .side-nav > li > ul > li {
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
}

.sidebar-cats > li > ul > li > a,
.sidebar-cats > li > .sidebar-subcats > li > a,
.side-nav > li > ul > li > a,
.sidebar-widget .side-nav > li > ul > li > a {
  display: block;
  padding: 4px 10px;
  font-size: 13px;
  color: var(--text-light, #6b7280);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
  border-radius: 4px;
  border: 1px solid var(--border, #e5e7eb);
  transition: all 0.2s;
}

.sidebar-cats > li > ul > li > a:hover,
.sidebar-cats > li > .sidebar-subcats > li > a:hover,
.side-nav > li > ul > li > a:hover,
.sidebar-widget .side-nav > li > ul > li > a:hover {
  color: var(--primary, #2563eb);
  border-color: var(--primary, #2563eb);
  background: rgba(37, 99, 235, 0.05);
}

/* 响应?*/
@media (max-width: 768px) {
  .sidebar-cats > li > ul > li > a,
  .sidebar-cats > li > .sidebar-subcats > li > a,
  .side-nav > li > ul > li > a,
  .sidebar-widget .side-nav > li > ul > li > a {
    max-width: 100px;
    font-size: 12px;
  }
}
