/* === 85_design_ivory — 象牙米·经典优雅 === */
:root {
  --primary: #57534e;
  --secondary: #f5f0e8;
  --accent: #d97706;
  --bg: #faf7f2;
  --bg-card: #ffffff;
  --bg-alt: #f5f0e8;
  --text: #44403c;
  --text-heading: #292524;
  --text-muted: #78716c;
  --text-light: #a8a29e;
  --border: #e7e0d5;
  --radius: 6px;
  --transition: 0.3s ease;
  --shadow: 0 2px 16px rgba(87,83,78,0.06);
  --overlay: rgba(87,83,78,0.6);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: "Georgia", "Noto Serif SC", "PingFang SC", "Microsoft YaHei", serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
}

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

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

/* ===== Header ===== */
.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;
  height: 64px;
}
.logo {
  font-size: 1.25rem; font-weight: 700;
  color: var(--primary);
  font-family: "Georgia", serif;
  letter-spacing: 1px;
}

.main-nav { display: flex; gap: 4px; align-items: center; }
.main-nav a {
  display: block; padding: 8px 16px; color: var(--text-muted);
  font-size: 0.9rem; font-family: -apple-system, "PingFang SC", sans-serif;
  border-radius: var(--radius); transition: var(--transition);
}
.main-nav a:hover { color: var(--accent); background: var(--bg); }
.main-nav a.active { color: var(--accent); font-weight: 600; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--primary); border-radius: 2px;
  transition: var(--transition);
}

/* ===== Section ===== */
.section { padding: 64px 0; }
.section-title {
  font-size: 2rem; text-align: center; margin-bottom: 16px;
  color: var(--text-heading); font-family: "Georgia", serif;
}
.section-subtitle {
  text-align: center; color: var(--text-muted); margin-bottom: 40px;
  font-size: 1rem; font-family: -apple-system, "PingFang SC", sans-serif;
}

/* ===== Hero (Layout A: left-right split) ===== */
.hero {
  background: linear-gradient(135deg, var(--bg) 55%, var(--secondary) 55%);
  padding: 80px 0;
  position: relative; overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-left { z-index: 1; }
.hero-left h1 {
  font-size: 2.75rem; font-weight: 800; color: var(--text-heading);
  margin-bottom: 16px; font-family: "Georgia", serif; line-height: 1.3;
}
.hero-left h1 span { color: var(--accent); }
.hero-left p {
  font-size: 1.125rem; color: var(--text-muted);
  margin-bottom: 32px; font-family: -apple-system, "PingFang SC", sans-serif;
  max-width: 480px;
}
.hero-left .hero-stats {
  display: flex; gap: 32px; margin-bottom: 32px;
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block; font-size: 1.75rem; color: var(--accent);
  font-family: "Georgia", serif;
}
.hero-stat span { font-size: 0.85rem; color: var(--text-muted); }

.hero-right {
  position: relative; z-index: 1;
}
.hero-frame {
  background: var(--bg-card); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  position: relative; min-height: 300px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.hero-frame::before {
  content: ''; position: absolute; inset: 12px;
  border: 1px dashed var(--border); border-radius: 4px;
  pointer-events: none;
}
.hero-frame-text {
  text-align: center; color: var(--text-muted);
  font-family: "Georgia", serif;
}
.hero-frame-text strong {
  display: block; font-size: 2rem; color: var(--primary);
  margin-bottom: 8px;
}
.hero-frame-text p { font-size: 0.9rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 12px 32px; border-radius: var(--radius);
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: var(--transition); border: none; text-decoration: none;
  font-family: -apple-system, "PingFang SC", sans-serif;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 16px rgba(217,119,6,0.25);
}
.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(217,119,6,0.35);
  transform: translateY(-2px); color: #fff;
}
.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ===== Advantages ===== */
.advantages { background: var(--bg-card); }
.advantages-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.advantage-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 24px;
  text-align: center; transition: var(--transition);
}
.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(87,83,78,0.1);
}
.advantage-icon {
  font-size: 2.5rem; margin-bottom: 16px; color: var(--accent);
}
.advantage-card h3 {
  font-size: 1.125rem; margin-bottom: 8px; color: var(--text-heading);
  font-family: "Georgia", serif;
}
.advantage-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ===== Tabs Categories ===== */
.categories { background: var(--secondary); }
.cat-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.cat-tab {
  padding: 10px 24px; background: var(--bg-card); color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 24px;
  font-size: 0.9rem; cursor: pointer; transition: var(--transition);
  font-family: -apple-system, "PingFang SC", sans-serif;
}
.cat-tab:hover { border-color: var(--accent); color: var(--accent); }
.cat-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.cat-tab-panel { display: none; }
.cat-tab-panel.active { display: block; }
.cat-panel-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.cat-panel-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: var(--transition); box-shadow: var(--shadow);
}
.cat-panel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(87,83,78,0.1);
}
.cat-panel-card h4 {
  font-size: 1.05rem; margin-bottom: 8px; color: var(--text-heading);
  font-family: "Georgia", serif;
}
.cat-panel-card h4 a { color: var(--text-heading); }
.cat-panel-card h4 a:hover { color: var(--accent); }
.cat-panel-card p {
  font-size: 0.875rem; color: var(--text-muted); margin-bottom: 12px;
  line-height: 1.6;
}
.cat-panel-card ul { display: flex; flex-direction: column; gap: 6px; }
.cat-panel-card ul a {
  font-size: 0.85rem; color: var(--text-muted);
  padding: 3px 0; border-bottom: 1px dashed var(--border);
  transition: var(--transition); font-family: -apple-system, sans-serif;
}
.cat-panel-card ul a:hover { color: var(--accent); padding-left: 4px; }

/* ===== News (3-col) ===== */
.news { background: var(--bg-card); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: var(--transition);
}
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(87,83,78,0.08);
}
.news-card-tag {
  display: inline-block; font-size: 0.75rem; color: var(--accent);
  background: rgba(217,119,6,0.1); padding: 2px 10px;
  border-radius: 12px; margin-bottom: 10px;
  font-family: -apple-system, sans-serif;
}
.news-card h3 {
  font-size: 1rem; margin-bottom: 8px; line-height: 1.5;
  font-family: "Georgia", serif;
}
.news-card h3 a { color: var(--text-heading); }
.news-card h3 a:hover { color: var(--accent); }
.news-card p {
  font-size: 0.875rem; color: var(--text-muted);
  margin-bottom: 12px; line-height: 1.6;
}
.news-card time {
  font-size: 0.8rem; color: var(--text-light);
}
.news-more { text-align: center; margin-top: 32px; }

/* ===== CTA ===== */
.cta-section {
  background: var(--primary); padding: 80px 0; text-align: center;
  color: #fff;
}
.cta-section h2 {
  font-size: 2rem; margin-bottom: 16px; font-family: "Georgia", serif;
}
.cta-section p {
  opacity: 0.9; margin-bottom: 32px; max-width: 560px;
  margin-left: auto; margin-right: auto;
}
.cta-section .btn-primary { background: var(--accent); }

/* ===== Breadcrumb ===== */
.breadcrumb {
  padding: 12px 0; font-size: 0.875rem; color: var(--text-muted);
  font-family: -apple-system, "PingFang SC", sans-serif;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 8px; color: var(--border); }

/* ===== Page Header ===== */
.page-header {
  background: var(--primary); color: #fff;
  padding: 48px 0; text-align: center;
}
.page-header h1 { font-size: 2rem; font-family: "Georgia", serif; }
.page-header p { opacity: 0.9; margin-top: 8px; }

/* ===== Content with Sidebar ===== */
.content-with-sidebar {
  display: grid; grid-template-columns: 1fr 320px; gap: 32px;
  padding: 40px 0;
}
.main-content { min-width: 0; }
.sidebar { display: flex; flex-direction: column; gap: 24px; }

.widget {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.widget h4 {
  font-size: 1.05rem; color: var(--text-heading);
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-family: "Georgia", serif;
}

.side-nav a {
  display: block; padding: 8px 0; font-size: 0.9rem;
  color: var(--text-muted); border-bottom: 1px solid var(--border);
  transition: var(--transition); font-family: -apple-system, sans-serif;
}
.side-nav a:hover { color: var(--accent); padding-left: 4px; }
.side-nav a:last-child { border-bottom: none; }

.hot-list li { margin-bottom: 10px; }
.hot-list a {
  font-size: 0.9rem; color: var(--text-muted);
  display: block; line-height: 1.5;
  transition: var(--transition);
}
.hot-list a:hover { color: var(--accent); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  font-size: 0.8rem; padding: 4px 12px;
  background: var(--secondary); color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 20px;
  transition: var(--transition);
}
.tag-cloud a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===== Article List (Variant A: standard cards) ===== */
.article-list { display: flex; flex-direction: column; gap: 20px; }
.article-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: var(--transition); box-shadow: var(--shadow);
}
.article-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(87,83,78,0.1);
}
.article-item-cat {
  display: inline-block; font-size: 0.75rem; color: var(--accent);
  background: rgba(217,119,6,0.08); padding: 2px 10px;
  border-radius: 12px; margin-bottom: 8px;
  font-family: -apple-system, sans-serif;
}
.article-item h3 {
  font-size: 1.1rem; margin-bottom: 8px; line-height: 1.5;
}
.article-item h3 a { color: var(--text-heading); }
.article-item h3 a:hover { color: var(--accent); }
.article-item p {
  font-size: 0.875rem; color: var(--text-muted);
  margin-bottom: 12px; line-height: 1.6;
}
.article-item .meta {
  display: flex; gap: 16px; font-size: 0.8rem;
  color: var(--text-light);
}
.article-item .meta span {
  display: flex; align-items: center; gap: 4px;
}

/* ===== Pagination ===== */
.pagination {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 32px;
}
.pagination a,.pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 8px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.9rem; transition: var(--transition);
}
.pagination a { color: var(--text-muted); }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination span.active {
  background: var(--accent); color: #fff;
  border-color: var(--accent);
}

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

/* ===== Detail (Variant B: full-width reading) ===== */
.detail-article {
  max-width: 720px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px;
  box-shadow: var(--shadow);
}
.detail-article h1 {
  font-size: 1.75rem; color: var(--text-heading);
  margin-bottom: 16px; line-height: 1.4;
  font-family: "Georgia", serif;
}
.detail-article .meta {
  display: flex; flex-wrap: wrap; gap: 20px;
  font-size: 0.85rem; color: var(--text-light);
  margin-bottom: 28px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  font-family: -apple-system, sans-serif;
}
.detail-article .meta span {
  display: flex; align-items: center; gap: 4px;
}
.article-body {
  color: var(--text); font-size: 1.05rem; line-height: 1.9;
}
.article-body p { margin-bottom: 20px; }
.article-body h2,.article-body h3 {
  color: var(--text-heading); margin: 32px 0 16px;
  font-family: "Georgia", serif;
}
.article-body img { border-radius: var(--radius); margin: 20px 0; }
.article-body blockquote {
  border-left: 3px solid var(--accent); padding: 16px 24px;
  margin: 20px 0; background: var(--bg);
  color: var(--text-muted); font-style: italic;
}
.article-tags {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--border);
}
.article-tags span { font-size: 0.85rem; color: var(--text-muted); }
.article-tags a {
  font-size: 0.8rem; padding: 4px 12px;
  background: var(--secondary); color: var(--text-muted);
  border-radius: 20px; transition: var(--transition);
}
.article-tags a:hover { background: var(--accent); color: #fff; }

.article-nav {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 28px; max-width: 720px; margin-left: auto; margin-right: auto;
}
.article-nav > div { flex: 1; min-width: 0; }
.article-nav .prev,.article-nav .next {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
}
.article-nav span {
  display: block; font-size: 0.8rem; color: var(--text-muted);
  margin-bottom: 4px;
}
.article-nav a {
  font-size: 0.9rem; color: var(--text-heading);
  display: block; line-height: 1.4;
}
.article-nav a:hover { color: var(--accent); }
.article-nav .next { text-align: right; }

.related {
  margin-top: 32px; max-width: 720px; margin-left: auto; margin-right: auto;
}
.related h4 {
  font-size: 1.1rem; color: var(--text-heading);
  margin-bottom: 16px; font-family: "Georgia", serif;
}
.related-list { display: flex; flex-direction: column; gap: 10px; }
.related-list a {
  font-size: 0.9rem; color: var(--text-muted);
  padding: 10px 16px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: var(--transition);
}
.related-list a:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Contact ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  display: flex; gap: 16px; align-items: flex-start;
  box-shadow: var(--shadow);
}
.contact-item-icon {
  font-size: 1.5rem; color: var(--accent); flex-shrink: 0;
}
.contact-item h4 { font-size: 1rem; color: var(--text-heading); margin-bottom: 4px; font-family: "Georgia", serif; }
.contact-item p { font-size: 0.9rem; color: var(--text-muted); }

.contact-form {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow);
}
.contact-form h4 { font-size: 1.125rem; color: var(--text-heading); margin-bottom: 20px; font-family: "Georgia", serif; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 0.875rem; color: var(--text-muted);
  margin-bottom: 6px;
}
.form-group input,.form-group textarea {
  width: 100%; padding: 10px 14px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-size: 0.9rem; font-family: inherit; transition: var(--transition);
}
.form-group input:focus,.form-group textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 8px rgba(217,119,6,0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }

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

/* ===== Sitemap ===== */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.sitemap-col h4 {
  font-size: 1.05rem; color: var(--text-heading);
  margin-bottom: 12px; font-family: "Georgia", serif;
}
.sitemap-col ul { display: flex; flex-direction: column; gap: 6px; }
.sitemap-col a { font-size: 0.88rem; color: var(--text-muted); }
.sitemap-col a:hover { color: var(--accent); }

/* ===== County ===== */
.county-intro {
  background: var(--primary); border-radius: var(--radius);
  padding: 24px; margin-bottom: 24px; color: #fff;
}
.county-intro h2 { margin-bottom: 8px; font-family: "Georgia", serif; }
.county-intro p { opacity: 0.9; }

/* ===== Page ===== */
.page-content {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow);
}
.page-content h1,.page-content h2,.page-content h3 { color: var(--text-heading); font-family: "Georgia", serif; }
.page-content p { color: var(--text); margin-bottom: 16px; line-height: 1.85; }

/* ===== Footer ===== */
.footer {
  background: var(--primary); padding-top: 56px;
  color: rgba(255,255,255,0.8);
}
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.footer-col h4 {
  font-size: 1.05rem; color: #fff;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-family: "Georgia", serif;
}
.footer-col p { font-size: 0.875rem; margin-bottom: 6px; line-height: 1.6; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 0.875rem; color: rgba(255,255,255,0.65); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center; padding: 24px 0; margin-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem; color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--accent); }

.float-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 999;
  width: 44px; height: 44px; display: none; align-items: center;
  justify-content: center;
  background: var(--accent); color: #fff;
  border: none; border-radius: 50%; font-size: 1.25rem;
  cursor: pointer; transition: var(--transition);
  box-shadow: 0 4px 16px rgba(217,119,6,0.25);
}
.float-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(217,119,6,0.35);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-left p { max-width: 100%; }
  .hero-left .hero-stats { justify-content: center; }
  .hero-right { display: none; }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-panel-grid { grid-template-columns: repeat(2, 1fr); }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .main-nav {
    display: none; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-card); border-bottom: 1px solid var(--border);
    padding: 16px 24px; gap: 4px;
  }
  .main-nav.active { display: flex; }
  .nav-toggle { display: flex; }
  .advantages-grid { grid-template-columns: 1fr 1fr; }
  .cat-panel-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .detail-article { padding: 24px; }
  .detail-article h1 { font-size: 1.4rem; }
  .hero-left h1 { font-size: 2rem; }
  .article-nav { flex-direction: column; }
}
@media (max-width: 576px) {
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
  .hero { padding: 48px 0; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .advantages-grid { grid-template-columns: 1fr; }
  .cat-tabs { gap: 4px; }
  .cat-tab { padding: 8px 14px; font-size: 0.8rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer { padding-top: 40px; }
  .detail-article { padding: 20px; }
  .sitemap-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.5rem; }
}

/* === AUTO-ADDED for missing classes === */
.hero-buttons{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;margin-top:24px}


/* === 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;
  }
}