/* design_jade — 清雅风格 精细优化版 */

:root {
  --primary: #065f46;
  --primary-light: #047857;
  --accent: #34d399;
  --bg: #ecfdf5;
  --bg-alt: #ffffff;
  --text: #111827;
  --text-light: #6b7280;
  --gray: #9ca3af;
  --border: #d1fae5;
  --radius: 8px;
  --font-sans: 'PingFang SC','Microsoft YaHei','Helvetica Neue',Arial,sans-serif;
  --font-serif: 'Noto Serif SC','Source Han Serif SC','Georgia',serif;
  --transition: 0.3s ease;
  --shadow-sm: 0 1px 3px rgba(6,95,70,0.06);
  --shadow-md: 0 4px 16px rgba(6,95,70,0.08);
  --shadow-lg: 0 8px 30px rgba(6,95,70,0.12);
  --secondary: var(--primary, #2563eb);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
;}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -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; }

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

/* ====== Header ====== */
.site-header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.topbar {
  padding: 16px 0;
  background: rgba(255,255,255,0.05);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
}
.logo:hover { color: rgba(255,255,255,0.85); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
}

/* Main Nav */
.main-nav {
  background: var(--primary-light);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.main-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-list {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0;
}
.nav-list li { margin: 0; }
.nav-list a {
  display: block;
  padding: 14px 20px;
  color: rgba(255,255,255,0.9);
  font-size: 15px;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.nav-list a:hover { background: rgba(255,255,255,0.1); color: var(--accent); }

/* Search */
.search-form { display: flex; align-items: center; }
.search-form button {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 9px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
}
.search-form button:hover { background: rgba(255,255,255,0.15); }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .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; }
  .nav-list { flex-direction: column; width: 100%; }
  .nav-list a { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .search-form { padding: 12px 20px; width: 100%; }
  .search-form button { width: 100%; justify-content: center; }
}

/* ====== Hero Carousel ====== */
.hero-carousel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--primary-light), #0d9488);
}
.hero-track { position: relative; }

.hero-slide {
  display: none;
  padding: 80px 0 90px;
}
.hero-slide.active { display: block; }

/* 3-column grid */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 992px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero-col {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 36px 32px;
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}
.hero-col:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-4px);
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.hero-col h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.hero-col p {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 0;
}

.hero-btns {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-block;
  padding: 12px 28px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
  transition: all var(--transition);
  text-decoration: none;
}
.hero-btn:hover {
  background: rgba(255,255,255,0.35);
  transform: translateY(-2px);
  color: #fff;
}
.hero-btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
}
.hero-btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

/* Carousel Arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-arrow:hover { background: rgba(255,255,255,0.3); }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }

/* Carousel Dots */
.hero-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 0 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light), #0d9488);
}
.hero-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all var(--transition);
}
.hero-dots .dot.active {
  background: #fff;
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .hero-slide { padding: 50px 0 60px; }
  .hero-col { padding: 28px 24px; }
  .hero-arrow { width: 40px; height: 40px; font-size: 18px; }
  .hero-prev { left: 10px; }
  .hero-next { right: 10px; }
}

/* ====== Section ====== */
.section { padding: 64px 0; }
.section-alt { background: #fff; }

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--primary);
}
.section-header h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--primary);
  font-weight: 700;
}
.section-more {
  font-size: 14px;
  color: var(--gray);
  transition: color var(--transition);
  white-space: nowrap;
  font-weight: 500;
}
.section-more:hover { color: var(--accent); }

/* ====== Grid ====== */
.section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 992px) { .section-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .section-grid { grid-template-columns: 1fr; } }

/* ====== Card ====== */
.card {
  background: #fff;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card h3 { margin-bottom: 10px; }
.card h3 a {
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.5;
  font-weight: 600;
}
.card h3 a:hover { color: var(--primary); }
.card p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-date { font-size: 12px; color: var(--gray); }
.card-link {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.card-link:hover { color: var(--accent); }

/* ====== News Grid ====== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 768px) { .news-grid { grid-template-columns: 1fr; } }

.news-item {
  background: #fff;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.news-item:hover { box-shadow: var(--shadow-md); }
.news-item h3 { margin-bottom: 10px; }
.news-item h3 a {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
}
.news-item h3 a:hover { color: var(--primary); }
.news-item .meta {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
}
.news-item p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ====== CTA Section ====== */
.cta-section {
  background: linear-gradient(135deg, var(--primary), #0d9488);
  color: #fff;
  padding: 70px 0;
  text-align: center;
}
.cta-content h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 16px;
  color: #fff;
}
.cta-content p {
  font-size: 1.1rem;
  margin-bottom: 32px;
  opacity: 0.9;
}
.cta-btn {
  display: inline-block;
  padding: 16px 44px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
  transition: all var(--transition);
  text-decoration: none;
}
.cta-btn:hover {
  background: rgba(255,255,255,0.35);
  transform: translateY(-2px);
  color: #fff;
}

/* ====== Breadcrumb ====== */
.breadcrumb {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  font-size: 14px;
}
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; color: #d1d5db; }
.breadcrumb span:last-child { color: var(--text); }

/* ====== Page Header ====== */
.page-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 44px 0;
  text-align: center;
}
.page-header h1 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
}
@media (max-width: 768px) { .page-header { padding: 32px 0; } }

/* ====== Content with Sidebar ====== */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
}
@media (max-width: 992px) { .content-with-sidebar { grid-template-columns: 1fr; } }
.main-content { min-height: 400px; }

/* ====== Article List ====== */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.article-item {
  background: #fff;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.article-item:hover { box-shadow: var(--shadow-md); }
.article-item h2 { margin-bottom: 10px; }
.article-item h2 a {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
}
.article-item h2 a:hover { color: var(--primary); }
.article-item .meta {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
}
.article-item p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 14px;
  line-height: 1.7;
}
.article-item .more {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
}
.article-item .more:hover { text-decoration: underline; }

/* ====== Pagination ====== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}
.pagination a {
  padding: 9px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  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 ====== */
.sidebar .widget {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.sidebar .widget h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}
.side-nav { list-style: none; }
.side-nav li { margin-bottom: 4px; }
.side-nav a {
  display: block;
  padding: 9px 12px;
  font-size: 14px;
  color: var(--text);
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.side-nav a:hover { background: var(--bg); color: var(--primary); }
.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(--accent);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  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(--primary); }

/* ====== Detail ====== */
.detail {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.detail-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.detail-header h1 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  margin-bottom: 14px;
  line-height: 1.4;
}
.detail-header .meta {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 14px;
  display: flex;
  gap: 16px;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a {
  padding: 5px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--primary);
  transition: all var(--transition);
  text-decoration: none;
}
.tags a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.body {
  line-height: 1.9;
  font-size: 15px;
  color: var(--text);
}
.body h2, .body h3 { margin-top: 28px; margin-bottom: 14px; color: var(--primary); }
.body p { margin-bottom: 18px; }
.body ul, .body ol { margin-bottom: 18px; padding-left: 26px; }
.body li { margin-bottom: 8px; }

.article-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  gap: 24px;
}
.article-nav div { flex: 1; }
.article-nav span { display: block; font-size: 12px; color: var(--gray); margin-bottom: 6px; }
.article-nav a { font-size: 14px; color: var(--text); line-height: 1.5; text-decoration: none; }
.article-nav a:hover { color: var(--primary); }
.article-nav .next { text-align: right; }

.related { margin-top: 36px; }
.related h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 768px) { .related-grid { grid-template-columns: 1fr; } }
.related-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.related-item:hover { box-shadow: var(--shadow-md); }
.related-item h4 { font-size: 14px; color: var(--text); margin-bottom: 10px; line-height: 1.5; }
.related-item h4:hover { color: var(--primary); }
.related-item span { font-size: 12px; color: var(--gray); }

/* ====== Empty ====== */
.empty {
  text-align: center;
  padding: 64px 24px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.empty p { color: var(--gray); font-size: 1rem; }

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

/* ====== Contact ====== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
@media (max-width: 768px) { .contact-wrapper { grid-template-columns: 1fr; } }
.contact-info h2, .contact-form h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-item svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.contact-item h4 { font-size: 14px; color: var(--text); margin-bottom: 4px; }
.contact-item p { font-size: 14px; color: var(--gray); }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-sans);
  transition: border-color var(--transition);
  background: #fff;
  color: var(--text);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-btn {
  padding: 14px 36px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.form-btn:hover { background: var(--secondary); }

/* ====== Footer ====== */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  padding: 54px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 992px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 {
  font-family: var(--font-serif);
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col p { font-size: 14px; margin-bottom: 8px; line-height: 1.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: var(--accent); }
.footer-bottom {
  text-align: center;
  padding: 22px 0;
  font-size: 13px;
}
.footer-bottom a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

/* ====== Float Top ====== */
.float-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: var(--shadow-md);
  transition: background var(--transition), transform var(--transition);
}
.float-top:hover { background: var(--secondary); 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;
  }
}