/* design_brutalist — 基于实际 HTML 结构的精确 CSS */

:root {
  --primary: #171717;
  --secondary: #404040;
  --accent: #ef4444;
  --bg: #fafafa;
  --text: #171717;
  --gray: #737373;
  --border: #262626;
  --radius: 0px;
  --font: 'Space Grotesk','Inter','PingFang SC','Microsoft YaHei',sans-serif;
  --transition: 0.2s ease;
  --text-light: #94a3b8;
;}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

/* ====== Container ====== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 992px) { .container { padding: 0 20px; } }
@media (max-width: 768px) { .container { padding: 0 16px; } }

/* ====== Topbar (header.html) ====== */
.topbar {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 10px 0;
  font-size: 13px;
  border-bottom: 2px solid rgba(255,255,255,0.1);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-left {
  display: flex;
  gap: 20px;
}

/* ====== Header (header.html) ====== */
.header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--accent);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}
.logo {
  flex-shrink: 0;
  max-width: 300px;
  text-decoration: none;
}
.logo h1 {
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.logo:hover { color: rgba(255,255,255,0.85); }

/* Nav Toggle (header.html) */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid #fff;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: var(--transition);
}

/* Main Nav (header.html) — nav > ul has NO class */
.main-nav {
  background: var(--secondary);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.main-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0;
  flex-wrap: nowrap;
}
.main-nav li { margin: 0; }
.main-nav a {
  display: block;
  padding: 14px 18px;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  border-left: 1px solid rgba(255,255,255,0.05);
}
.main-nav a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.main-nav li:first-child > a { border-left: none; }
/* Submenu */
.main-nav li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  z-index: 300;
  padding: 8px 0;
  background: var(--secondary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.main-nav li:hover > ul { display: block; }
.main-nav li ul a {
  padding: 8px 18px;
  border-left: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Search Toggle (header.html) */
.search-toggle {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.search-toggle:hover { opacity: 0.85; }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
  .main-nav.active { max-height: 500px; }
  .main-nav .container { flex-direction: column; }
  .main-nav ul { flex-direction: column; width: 100%; }
  .main-nav a {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    border-left: none;
  }
  .main-nav li ul { position: static; box-shadow: none; padding-left: 20px; }
}

/* ====== Hero (home.html) ====== */
.hero {
  background: var(--primary);
  color: #fff;
  padding: 80px 0;
  text-align: center;
  border-bottom: 4px solid var(--accent);
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 16px;
  line-height: 1.1;
  color: #fff;
}
.hero-tagline {
  font-size: 1.2rem;
  margin-bottom: 36px;
  opacity: 0.8;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-asymmetric { display: none; }

/* Buttons (home.html) */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: #fff;
  border-color: #fff;
  color: var(--primary);
}
.btn-lg {
  padding: 18px 40px;
  font-size: 15px;
}

@media (max-width: 768px) {
  .hero { padding: 50px 0; }
  .hero-content h1 { font-size: 2rem; }
  .hero-tagline { font-size: 1rem; }
}

/* ====== Section (all pages) ====== */
.section {
  padding: 64px 0;
}

/* Section Title (home.html) */
.section-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  border-bottom: 3px solid var(--primary);
  padding-bottom: 12px;
}

/* Section Header (home.html) */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--primary);
}
.section-header h2 {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary);
  text-transform: uppercase;
  margin: 0;
}
.section-more {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.section-more:hover { color: var(--accent); }

/* ====== Grids (home.html) ====== */
.brutal-grid,
.brutal-news,
.brutal-latest {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 992px) {
  .brutal-grid, .brutal-news, .brutal-latest { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .brutal-grid, .brutal-news, .brutal-latest { grid-template-columns: 1fr; }
}

/* ====== Cat Card (home.html) ====== */
.cat-card {
  display: block;
  background: #fff;
  border: 2px solid var(--border);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}
.cat-card:hover {
  background: var(--primary);
  color: #fff;
  transform: translate(-4px, -4px);
  box-shadow: 4px 4px 0 var(--accent);
}
.cat-card h3 {
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: var(--primary);
}
.cat-card:hover h3 { color: #fff; }
.cat-card p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.cat-card:hover p { color: rgba(255,255,255,0.8); }
.cat-arrow {
  font-size: 18px;
  font-weight: 900;
  color: var(--accent);
}
.cat-card:hover .cat-arrow { color: #fff; }

/* ====== News Card (home.html) ====== */
.news-card {
  display: block;
  background: #fff;
  border: 2px solid var(--border);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}
.news-card:hover {
  border-color: var(--accent);
  transform: translate(-2px, -2px);
  box-shadow: 2px 2px 0 var(--accent);
}
.news-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--text);
}
.news-card:hover h3 { color: var(--accent); }
.news-card .date {
  font-size: 12px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ====== Latest Card (home.html) ====== */
.latest-card {
  background: #fff;
  border: 2px solid var(--border);
  padding: 28px;
  transition: all var(--transition);
}
.latest-card:hover {
  border-color: var(--accent);
  transform: translate(-2px, -2px);
  box-shadow: 2px 2px 0 var(--accent);
}
.latest-card h3 { margin-bottom: 10px; }
.latest-card h3 a {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}
.latest-card h3 a:hover { color: var(--accent); }
.latest-card .meta {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.latest-card p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ====== CTA (home.html) ====== */
.section-cta {
  background: var(--primary);
  padding: 72px 0;
  border-top: 4px solid var(--accent);
}
.cta-box {
  text-align: center;
}
.cta-box h2 {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.cta-box p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
}

/* ====== Breadcrumb (list/detail/about/contact/search/sitemap/page/county/tag) ====== */
.breadcrumb {
  background: #fff;
  border-bottom: 2px solid var(--border);
  padding: 14px 0;
  font-size: 13px;
}
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; color: var(--gray); }
.breadcrumb span:last-child { color: var(--text); font-weight: 600; }

/* ====== Page Header (list/detail/about/contact/search/sitemap/page/county/tag) ====== */
.page-header {
  background: var(--primary);
  color: #fff;
  padding: 48px 0;
  text-align: center;
  border-bottom: 4px solid var(--accent);
}
.page-header h1 {
  font-size: 2rem;
  text-transform: uppercase;
}
.page-header .meta {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-top: 12px;
  display: flex;
  gap: 16px;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
@media (max-width: 768px) { .page-header { padding: 36px 0; } }

/* ====== Content Layout ====== */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
}
.content-full {
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 992px) { .content-with-sidebar { grid-template-columns: 1fr; } }
.main-content { min-height: 400px; }

/* ====== Article List (list.html, search.html, tag.html) ====== */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.article-item {
  background: #fff;
  border: 2px solid var(--border);
  padding: 28px;
  transition: all var(--transition);
}
.article-item:hover {
  border-color: var(--accent);
  transform: translate(-2px, -2px);
  box-shadow: 2px 2px 0 var(--accent);
}
.article-item h2 { margin-bottom: 10px; }
.article-item h2 a {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}
.article-item h2 a:hover { color: var(--accent); }
.article-item .meta {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.article-item p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.article-item .more {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.article-item .more:hover { text-decoration: underline; }

/* ====== Pagination (list.html, search.html, tag.html) ====== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}
.pagination a {
  padding: 10px 16px;
  background: #fff;
  border: 2px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  text-decoration: none;
}
.pagination a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.pagination a.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ====== Sidebar (list/detail/contact/tag) ====== */
.sidebar .widget {
  background: #fff;
  border: 2px solid var(--border);
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar .widget h4 {
  font-size: 1rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--primary);
  text-transform: uppercase;
}
.side-nav { list-style: none; }
.side-nav li { margin-bottom: 4px; }
.side-nav a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
  transition: all var(--transition);
  text-decoration: none;
}
.side-nav a:hover { background: var(--bg); color: var(--accent); }
.side-nav ul { margin-left: 16px; }
.side-nav ul a { font-size: 13px; color: var(--gray); }

.hot-list { list-style: none; }
.hot-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.hot-list li:last-child { border-bottom: none; }
.hot-list .num {
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hot-list a { font-size: 14px; color: var(--text); line-height: 1.5; text-decoration: none; }
.hot-list a:hover { color: var(--accent); }

/* ====== Article Content (detail.html) ====== */
.article-content {
  background: #fff;
  border: 2px solid var(--border);
  padding: 36px;
  line-height: 1.8;
  font-size: 15px;
}
.article-content h2, .article-content h3 {
  margin-top: 28px;
  margin-bottom: 14px;
  color: var(--primary);
}
.article-content p { margin-bottom: 18px; }
.article-content ul, .article-content ol { margin-bottom: 18px; padding-left: 24px; }
.article-content li { margin-bottom: 8px; }
.article-content img { max-width: 100%; height: auto; border: 2px solid var(--border); }

/* ====== Prev Next (detail.html) ====== */
.prev-next {
  display: flex;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 2px solid var(--border);
  gap: 24px;
}
.prev-next a {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  text-decoration: none;
  padding: 14px 18px;
  border: 2px solid var(--border);
  transition: all var(--transition);
}
.prev-next a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.prev-next .next { text-align: right; }

/* ====== Page Content (about.html, page.html) ====== */
.page-content {
  background: #fff;
  border: 2px solid var(--border);
  padding: 36px;
  line-height: 1.8;
  font-size: 15px;
}
.page-content h2, .page-content h3 {
  margin-top: 28px;
  margin-bottom: 14px;
  color: var(--primary);
}
.page-content p { margin-bottom: 18px; }
.page-content ul, .page-content ol { margin-bottom: 18px; padding-left: 24px; }
.page-content li { margin-bottom: 8px; }
.page-content img { max-width: 100%; height: auto; border: 2px solid var(--border); }

/* ====== Contact (contact.html) ====== */
.contact-info h3,
.contact-form h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--primary);
  text-transform: uppercase;
}
.contact-info ul { list-style: none; }
.contact-info li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.6;
}
.contact-info li strong { color: var(--text); }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font);
  transition: border-color var(--transition);
  background: #fff;
  color: var(--text);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form .btn {
  margin-top: 8px;
}

/* ====== Search (search.html) ====== */
.search-box {
  background: #fff;
  border: 2px solid var(--border);
  padding: 24px;
  margin-bottom: 24px;
}
.search-results .search-info {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 20px;
}

/* ====== Sitemap (sitemap.html) ====== */
.sitemap-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 768px) { .sitemap-list { grid-template-columns: 1fr; } }
.sitemap-group {
  background: #fff;
  border: 2px solid var(--border);
  padding: 24px;
}
.sitemap-group h2 {
  margin-bottom: 14px;
}
.sitemap-group h2 a {
  font-size: 1.1rem;
  color: var(--primary);
  text-decoration: none;
}
.sitemap-group h2 a:hover { color: var(--accent); }
.sitemap-group ul { list-style: none; }
.sitemap-group li { margin-bottom: 6px; }
.sitemap-group li a {
  font-size: 14px;
  color: var(--text);
  padding: 4px 0;
  display: inline-block;
  text-decoration: none;
}
.sitemap-group li a:hover { color: var(--accent); }

/* ====== County (county.html) ====== */
.county-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 992px) { .county-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .county-grid { grid-template-columns: 1fr; } }
.county-card {
  display: block;
  background: #fff;
  border: 2px solid var(--border);
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}
.county-card:hover {
  border-color: var(--accent);
  transform: translate(-2px, -2px);
  box-shadow: 2px 2px 0 var(--accent);
  color: var(--accent);
}
.county-card .count {
  display: block;
  font-size: 12px;
  color: var(--gray);
  margin-top: 8px;
}

/* ====== Tag Cloud (tag.html) ====== */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-item {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg);
  border: 2px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: all var(--transition);
}
.tag-item:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ====== Empty State (list/search/county/tag) ====== */
.empty {
  text-align: center;
  padding: 64px 24px;
  background: #fff;
  border: 2px solid var(--border);
}
.empty p { color: var(--gray); font-size: 1rem; }

/* ====== Footer (footer.html) ====== */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  padding: 54px 0 0;
  border-top: 4px solid var(--accent);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 992px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h3,
.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,0.15);
  text-transform: uppercase;
}
.footer-col p {
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: color var(--transition);
  text-decoration: none;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  text-align: center;
  padding: 22px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.footer-bottom a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ====== Float Top ====== */
.float-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--accent);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  font-size: 20px;
  font-weight: 900;
  transition: all var(--transition);
}
.float-top:hover {
  background: var(--accent);
  transform: translateY(-3px);
}


/* ========== 内容区样式补丁 (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 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 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 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;
  }
}