/* ===== 80_design_lava - 熔岩红黑·激情张扬 ===== */
:root {
  --primary: #dc2626;
  --primary-dark: #b91c1c;
  --secondary: #f97316;
  --bg: #18181b;
  --bg-card: #1a1a2e;
  --bg-elevated: #22223a;
  --text: #f1f5f9;
  --text-light: #a1a1aa;
  --text-muted: #71717a;
  --border: #27272a;
  --radius: 8px;
  --radius-sm: 4px;
  --transition: 0.25s ease;
  --shadow: 0 2px 12px rgba(0,0,0,0.4);
  --glow: 0 0 20px rgba(220,38,38,0.3);
}

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

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--secondary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }

/* ===== Header ===== */
.header, .site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; max-width: 1200px; margin: 0 auto; height: 64px;
}
.logo { font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.logo a { color: inherit; }
.main-nav { display: flex; gap: 4px; align-items: center; }
.main-nav a {
  display: block; padding: 8px 12px; color: var(--text-light); font-size: 0.9rem;
  font-weight: 500; border-radius: var(--radius-sm); transition: all var(--transition);
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--secondary); background: rgba(249,115,22,0.08);
}
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text-light); border-radius: 2px; transition: var(--transition); }

/* ===== Hero (Layout B) ===== */
.hero {
  background: linear-gradient(135deg, var(--bg-card) 0%, #0f0f23 50%, var(--bg) 100%);
  padding: 96px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(220,38,38,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 { font-size: 3rem; font-weight: 800; color: var(--text); line-height: 1.2; margin-bottom: 16px; position: relative; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.15rem; color: var(--text-light); max-width: 640px; margin: 0 auto 40px; position: relative; }
.hero-stats { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; position: relative; }
.hero-stats div { text-align: center; }
.hero-stats strong { display: block; font-size: 2rem; font-weight: 800; color: var(--secondary); }
.hero-stats span { display: block; font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }
.hero-btn { display: inline-block; padding: 14px 32px; font-size: 1rem; font-weight: 600; border-radius: var(--radius); transition: all var(--transition); }
.hero-btn-primary {
  background: linear-gradient(135deg, var(--primary), #ef4444);
  color: #fff; box-shadow: var(--glow);
}
.hero-btn-primary:hover { box-shadow: 0 0 30px rgba(220,38,38,0.5); transform: translateY(-2px); color: #fff; }
.hero-btn-secondary {
  background: transparent; color: var(--text-light);
  border: 1px solid var(--border);
}
.hero-btn-secondary:hover { border-color: var(--secondary); color: var(--secondary); }

/* ===== Section Title ===== */
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: 2rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.section-title p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== Business Advantages ===== */
.advantages { background: var(--bg-card); }
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.adv-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 24px; text-align: center;
  transition: all var(--transition);
}
.adv-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--glow); }
.adv-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  margin-bottom: 20px; font-size: 1.5rem; color: #fff;
}
.adv-card h3 { font-size: 1.1rem; color: var(--text); margin-bottom: 8px; }
.adv-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ===== Service Categories ===== */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
.service-card:hover { border-color: var(--primary); border-left-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.service-card h3 { font-size: 1.1rem; color: var(--text); margin-bottom: 6px; }
.service-card h3 a { color: inherit; }
.service-card h3 a:hover { color: var(--secondary); }
.service-card .sc-desc { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 12px; }
.service-card .sc-links { display: flex; flex-wrap: wrap; gap: 6px; }
.service-card .sc-links a {
  font-size: 0.78rem; color: var(--text-light); padding: 3px 8px;
  background: var(--bg-elevated); border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.service-card .sc-links a:hover { color: var(--secondary); background: rgba(249,115,22,0.1); }

/* ===== Latest News (2 column dark cards) ===== */
.news { background: var(--bg-card); }
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.news-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: all var(--transition);
}
.news-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.news-card .nc-cat { display: inline-block; font-size: 0.78rem; color: var(--secondary); font-weight: 600; margin-bottom: 8px; }
.news-card h3 { font-size: 1.05rem; line-height: 1.5; margin-bottom: 8px; }
.news-card h3 a { color: var(--text); }
.news-card h3 a:hover { color: var(--secondary); }
.news-card .nc-desc { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.6; }
.news-card .nc-meta { font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, var(--primary), #ef4444, var(--secondary));
  text-align: center; padding: 72px 0;
}
.cta h2 { font-size: 2rem; color: #fff; margin-bottom: 8px; }
.cta p { color: rgba(255,255,255,0.85); margin-bottom: 24px; }
.cta .hero-btn-primary {
  background: #fff; color: var(--primary);
  box-shadow: none;
}
.cta .hero-btn-primary:hover { background: #fafafa; transform: translateY(-2px); }

/* ===== Breadcrumb ===== */
.breadcrumb { padding: 12px 0; font-size: 0.88rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--secondary); }
.breadcrumb .sep { margin: 0 8px; color: var(--text-muted); }

/* ===== Page Header ===== */
.page-header { padding: 48px 0 32px; text-align: center; }
.page-header h1 { font-size: 2rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.page-header p { color: var(--text-muted); max-width: 640px; margin: 0 auto; }

/* ===== Content Layout ===== */
.content-with-sidebar { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; padding-bottom: 48px; }
.main-content { min-width: 0; }
.sidebar { min-width: 0; }
.widget {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 24px;
}
.widget h3 { font-size: 1.05rem; color: var(--text); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.side-nav a {
  display: block; padding: 8px 0; color: var(--text-light); font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.04); transition: color var(--transition);
}
.side-nav a:hover { color: var(--secondary); }
.hot-list li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.hot-list li:last-child { border-bottom: none; }
.hot-list a { font-size: 0.9rem; color: var(--text-light); }
.hot-list a:hover { color: var(--secondary); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  display: inline-block; padding: 4px 12px; font-size: 0.8rem;
  color: var(--text-light); background: var(--bg-elevated);
  border-radius: var(--radius-sm); transition: all var(--transition);
}
.tag-cloud a:hover { color: #fff; background: var(--primary); }

/* ===== List Page (Variant D) ===== */
.article-list .article-item {
  display: flex; gap: 24px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; margin-bottom: 20px; transition: all var(--transition);
}
.article-list .article-item:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.article-item .ai-thumb {
  flex-shrink: 0; width: 240px; height: 160px;
  background: linear-gradient(135deg, var(--bg-elevated), #2a2a3e);
  border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.ai-thumb-inner { font-size: 2rem; color: var(--text-muted); }
.article-item .ai-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.article-item .ai-cat { display: inline-block; font-size: 0.78rem; color: var(--secondary); font-weight: 600; margin-bottom: 4px; }
.article-item h3 { font-size: 1.2rem; line-height: 1.5; margin-bottom: 8px; }
.article-item h3 a { color: var(--text); }
.article-item h3 a:hover { color: var(--secondary); }
.article-item .ai-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; flex: 1; margin-bottom: 12px; }
.article-item .meta { display: flex; gap: 16px; font-size: 0.8rem; color: var(--text-muted); align-items: center; flex-wrap: wrap; }
.article-item .meta span { display: inline-flex; align-items: center; gap: 4px; }

/* ===== Detail Page (Variant A - Dark) ===== */
.detail-article { padding-bottom: 48px; }
.detail-article h1 { font-size: 1.75rem; color: var(--text); line-height: 1.4; margin-bottom: 16px; }
.detail-article .meta { display: flex; gap: 16px; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; align-items: center; }
.detail-article .meta span { display: inline-flex; align-items: center; gap: 4px; }
.article-body { font-size: 1rem; line-height: 1.85; color: var(--text-light); }
.article-body h2 { font-size: 1.4rem; color: var(--text); margin: 32px 0 16px; }
.article-body h3 { font-size: 1.15rem; color: var(--text); margin: 24px 0 12px; }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { margin-bottom: 16px; padding-left: 24px; }
.article-body li { margin-bottom: 6px; }
.article-body img { border-radius: var(--radius); margin: 16px 0; }
.article-body a { color: var(--secondary); }
.article-body blockquote {
  border-left: 3px solid var(--primary); padding: 12px 20px;
  margin: 16px 0; background: rgba(220,38,38,0.05); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-light);
}
.article-tags { margin: 32px 0 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.article-tags span { font-size: 0.88rem; color: var(--text-muted); }
.article-tags a {
  font-size: 0.82rem; padding: 4px 12px; background: var(--bg-elevated);
  color: var(--text-light); border-radius: var(--radius-sm); transition: all var(--transition);
}
.article-tags a:hover { background: var(--primary); color: #fff; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.article-nav a { display: block; padding: 16px; background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); transition: all var(--transition); }
.article-nav a:hover { border-color: var(--primary); }
.article-nav .prev span, .article-nav .next span { display: block; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 4px; }
.article-nav .prev a, .article-nav .next a { font-size: 0.9rem; color: var(--text-light); }

/* ===== Pagination ===== */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 24px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-block; padding: 8px 16px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--text-light);
  background: var(--bg-card); transition: all var(--transition);
}
.pagination a:hover { border-color: var(--primary); color: var(--secondary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== Empty ===== */
.empty { text-align: center; padding: 64px 0; color: var(--text-muted); }

/* ===== Contact Layout ===== */
.contact-grid, .contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.contact-item .ci-icon {
  flex-shrink: 0; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff;
  border-radius: 50%; font-size: 1.1rem;
}
.contact-item .ci-text h3 { font-size: 1rem; color: var(--text); margin-bottom: 4px; }
.contact-item .ci-text p { color: var(--text-light); font-size: 0.9rem; }
.contact-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.contact-form h3 { font-size: 1.2rem; color: var(--text); margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.9rem; color: var(--text-light); margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px; font-size: 0.95rem; color: var(--text);
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-sm); transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group button {
  padding: 12px 32px; background: linear-gradient(135deg, var(--primary), #ef4444);
  color: #fff; border: none; border-radius: var(--radius); font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
}
.form-group button:hover { transform: translateY(-2px); box-shadow: var(--glow); }

/* ===== Search ===== */
.search-form { margin-bottom: 32px; display: flex; gap: 8px; }
.search-form input {
  flex: 1; padding: 12px 16px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 0.95rem;
}
.search-form input:focus { outline: none; border-color: var(--primary); }
.search-form button {
  padding: 12px 24px; background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius); font-size: 0.95rem; cursor: pointer;
  transition: var(--transition);
}
.search-form button:hover { background: #ef4444; }

/* ===== Sitemap ===== */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sitemap-col { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.sitemap-col h3 { font-size: 1rem; color: var(--secondary); margin-bottom: 12px; }
.sitemap-col a { display: block; font-size: 0.88rem; color: var(--text-light); padding: 4px 0; }
.sitemap-col a:hover { color: var(--secondary); }

/* ===== County / Tag ===== */
.county-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.county-grid a {
  display: block; padding: 16px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); text-align: center; color: var(--text-light);
  transition: all var(--transition);
}
.county-grid a:hover { border-color: var(--primary); color: var(--secondary); }

/* ===== About ===== */
.about-content { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.about-content h2 { color: var(--text); margin: 24px 0 12px; }
.about-content h2:first-child { margin-top: 0; }
.about-content p { color: var(--text-light); line-height: 1.8; margin-bottom: 16px; }

/* ===== Footer ===== */
.footer, .site-footer { background: #0f0f1a; border-top: 1px solid var(--border); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; }
.footer-col h4 { font-size: 1rem; color: var(--text); margin-bottom: 16px; }
.footer-col p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }
.footer-col a { display: block; font-size: 0.88rem; color: var(--text-muted); padding: 4px 0; transition: color var(--transition); }
.footer-col a:hover { color: var(--secondary); }
.footer-bottom { text-align: center; padding: 20px 0; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-muted); }
.footer-bottom a { color: var(--text-light); }

/* ===== Float Top ===== */
.float-top {
  position: fixed; bottom: 40px; right: 24px; width: 48px; height: 48px;
  background: var(--primary); color: #fff; border: none; border-radius: 50%;
  display: none; align-items: center; justify-content: center; cursor: pointer;
  z-index: 999; font-size: 1.2rem; box-shadow: var(--glow);
  transition: all var(--transition);
}
.float-top:hover { background: var(--secondary); transform: translateY(-2px); }

/* ===== Related Articles ===== */
.related-list li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.related-list li:last-child { border-bottom: none; }
.related-list a { font-size: 0.9rem; color: var(--text-light); }
.related-list a:hover { color: var(--secondary); }

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid, .contact-layout { grid-template-columns: 1fr; }
  .article-item { flex-direction: column; }
  .article-item .ai-thumb { width: 100%; height: 200px; }
  .hero h1 { font-size: 2.2rem; }
  .county-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-card); flex-direction: column; padding: 8px; border-bottom: 1px solid var(--border); }
  .main-nav.active { display: flex; }
  .adv-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 48px 0; }
  .hero { padding: 64px 0; }
  .hero h1 { font-size: 1.8rem; }
  .hero-stats { gap: 16px; }
  .hero-stats strong { font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .sitemap-grid { grid-template-columns: 1fr; }
  .article-nav { grid-template-columns: 1fr; }
  .detail-article h1 { font-size: 1.4rem; }
}

@media (max-width: 576px) {
  .container { padding: 0 16px; }
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 1.5rem; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .adv-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .county-grid { grid-template-columns: 1fr; }
  .pagination a, .pagination span { padding: 6px 12px; font-size: 0.85rem; }
  .cta { padding: 48px 0; }
  .cta h2 { font-size: 1.5rem; }
}

/* === AUTO-ADDED for missing classes === */
.contact-info{display:flex;flex-direction:column;gap:16px}
.contact-info-item{display:flex;gap:14px;align-items:flex-start;background:var(--bg-white);padding:16px 20px;border-radius:var(--radius);border:1px solid var(--border)}


/* === footer-col-* semantic variants (auto-added) === */
.footer-col-services,
.footer-col-about,
.footer-col-links,
.footer-col-contact { /* inherits .footer-col base style */ }


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