/* =============================================
   Base UI Components — 追加到各模板 style.css 末尾
   使用 CSS 属性选择器匹配不同模板的类名变体
   主题色通过 CSS 变量继承（各模板自定义）
   ============================================= */

/* === Class Name Mapping Fixes === */
/* Many templates have HTML class mismatches: .header vs .site-header, .footer vs .site-footer, etc. */

/* Header: basic layout — use nowrap so logo + nav stay on one row */
.header { position: sticky; top: 0; z-index: 1000; }
.header .container { display: flex; align-items: center; justify-content: space-between; min-height: 60px; flex-wrap: nowrap; gap: 12px; }
header[class*="header"] { position: sticky; top: 0; z-index: 1000; }

/* Logo: keep on one line, truncate if absurdly long */
[class*="logo"] { flex-shrink: 0; max-width: 260px; }
[class*="logo"] a, [class*="logo-text"] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

/* Nav list items: nowrap on desktop so items never wrap to a new row */
.main-nav > ul, .nav-list { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; flex-wrap: nowrap; align-items: center; }
.main-nav > ul > li, .nav-list > li { position: relative; flex-shrink: 0; }
.main-nav > ul > li > a, .nav-list > li > a { 
  display: block; padding: 10px 14px; white-space: nowrap;
  text-decoration: none; font-size: 14px; transition: background 0.3s ease, color 0.3s ease;
}
.main-nav > ul > li > a:hover, .nav-list > li > a:hover { opacity: 0.8; }

/* Submenu: layout only */
.main-nav li ul, .nav-list li ul, .subnav {
  display: none; position: absolute; top: 100%; left: 0;
  min-width: 160px; z-index: 300; padding: 8px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.main-nav li:hover > ul, .nav-list li:hover > ul { display: block; }
.main-nav li ul a, .nav-list li ul a { padding: 8px 18px; display: block; white-space: nowrap; text-decoration: none; }
.main-nav li ul a:hover, .nav-list li ul a:hover { opacity: 0.8; }

/* Nav toggle (hamburger) */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; border-radius: 2px; transition: 0.3s; }
@media (max-width: 992px) {
  .header .container { flex-wrap: nowrap; }
}
@media (max-width: 768px) {
  .header .container { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .main-nav { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; width: 100%; }
  .main-nav.active { max-height: 90vh; overflow-y: auto; }
  .main-nav > ul { flex-direction: column; width: 100%; flex-wrap: wrap; }
  .main-nav > ul > li > a { padding: 12px 16px; border-bottom: 1px solid rgba(128,128,128,0.1); }
  .main-nav li ul { position: static; box-shadow: none; padding-left: 16px; }
}

/* Footer: layout only, colors from template CSS */
.footer { padding: 50px 0 0; }
.footer .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
footer[class*="footer"] .footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(128,128,128,0.2); }
@media(max-width:992px){ footer[class*="footer"] .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:768px){ footer[class*="footer"] .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { font-family: var(--font-serif, inherit); color: #fff; font-size: 1rem; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 14px; transition: color 0.3s ease; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom { text-align: center; padding: 20px 0; font-size: 13px; }
.footer-bottom a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* --- Buttons --- */
[class*="btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  line-height: 1.4;
}
[class*="btn"][class*="primary"],
[class*="btn-primary"] {
  background: var(--primary, #2563eb);
  color: #fff;
}
[class*="btn"][class*="primary"]:hover,
[class*="btn-primary"]:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
[class*="btn"][class*="outline"],
[class*="btn-outline"] {
  background: transparent;
  color: var(--primary, #2563eb);
  border: 2px solid var(--primary, #2563eb);
}
[class*="btn"][class*="outline"]:hover,
[class*="btn-outline"]:hover {
  background: var(--primary, #2563eb);
  color: #fff;
}
[class*="btn"][class*="white"],
[class*="btn-white"] {
  background: #fff;
  color: var(--primary, #2563eb);
}
[class*="btn"][class*="white"]:hover,
[class*="btn-white"]:hover {
  background: rgba(255,255,255,0.85);
}
[class*="btn"][class*="lg"],
[class*="btn-lg"] {
  padding: 16px 36px;
  font-size: 1.05rem;
}
[class*="btn"][class*="sm"],
[class*="btn-sm"] {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* --- Cards --- */
[class*="card"] {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
[class*="card"]:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
[class*="card"] a {
  text-decoration: none;
  color: inherit;
}
[class*="card"] h3,
[class*="card"] h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text, #1e293b);
}
[class*="card"] p {
  color: var(--gray, #64748b);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* --- Grids --- */
[class*="grid"] {
  display: grid;
  gap: 24px;
}

/* --- Section / Page Sections --- */
[class*="section"] {
  padding: 80px 0;
}
[class*="section"][class*="alt"],
[class*="section"][class*="dark"],
[class*="section-bg-dark"],
[class*="section"][class*="gray"],
[class*="section"][class*="grey"] {
  background: var(--gray-100, #f1f5f9);
}
[class*="section-header"] {
  text-align: center;
  margin-bottom: 48px;
}
[class*="section-title"] {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text, #0f172a);
  margin-bottom: 8px;
}
[class*="section-subtitle"],
[class*="section-desc"],
[class*="section-header"] p {
  color: var(--gray, #64748b);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}
[class*="section-more"] {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary, #2563eb);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}
[class*="section-more"]:hover {
  opacity: 0.8;
}

/* --- Hero --- */
[class*="hero"] {
  padding: 100px 0 80px;
  background: var(--primary, #2563eb);
  color: #fff;
  position: relative;
  overflow: hidden;
}
[class*="hero"] h1,
[class*="hero"] [class*="title"] {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #fff;
}
[class*="hero"] p {
  font-size: 1.1rem;
  opacity: 0.85;
  line-height: 1.7;
  margin-bottom: 32px;
  color: rgba(255,255,255,0.85);
}
[class*="hero-badge"] {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-bottom: 24px;
}
[class*="hero-actions"] {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Tags / Labels / Badges --- */
[class*="tag"],
[class*="label"],
[class*="badge"] {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--primary-light, #dbeafe);
  color: var(--primary, #2563eb);
  text-decoration: none;
}

/* --- Meta / Info lines --- */
[class*="meta"] {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--gray, #94a3b8);
}
[class*="meta"] span {
  white-space: nowrap;
}

/* --- Links with arrows --- */
[class*="link"]:not([class*="nav"]):not([class*="footer"]) {
  color: var(--primary, #2563eb);
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.3s;
}
[class*="link"]:not([class*="nav"]):not([class*="footer"]):hover {
  opacity: 0.8;
}

/* --- News / Article items --- */
[class*="news"] article,
[class*="news"] [class*="item"],
[class*="article"] {
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100, #f1f5f9);
}
[class*="news"] h3,
[class*="news"] h3 a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text, #1e293b);
  text-decoration: none;
}
[class*="news"] h3 a:hover {
  color: var(--primary, #2563eb);
}

/* --- Category / Feature icons --- */
[class*="icon"] {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- Empty state --- */
[class*="empty"] {
  text-align: center;
  padding: 40px 0;
  color: var(--gray, #94a3b8);
  font-size: 0.95rem;
}

/* --- Stats counter --- */
[class*="stat"] [class*="number"],
[class*="stat"] [class*="num"] {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary, #2563eb);
  line-height: 1;
}
[class*="stat"] [class*="label"] {
  font-size: 0.9rem;
  color: var(--gray, #64748b);
  margin-top: 4px;
}

/* --- CTA --- */
[class*="cta"] {
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(135deg, var(--primary, #2563eb), var(--secondary, #0891b2));
  color: #fff;
  border-radius: 16px;
}
[class*="cta"] h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
[class*="cta"] p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 28px;
  color: rgba(255,255,255,0.85);
}

/* --- Partner / client logos --- */
[class*="partner"],
[class*="client"] {
  opacity: 0.6;
  transition: opacity 0.3s;
}
[class*="partner"]:hover,
[class*="client"]:hover {
  opacity: 1;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  [class*="grid"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  [class*="hero"] h1 {
    font-size: 2rem;
  }
  [class*="section-title"] {
    font-size: 1.6rem;
  }
}
@media (max-width: 768px) {
  [class*="grid"] {
    grid-template-columns: 1fr !important;
  }
  [class*="hero"] {
    padding: 60px 0;
  }
  [class*="hero"] h1 {
    font-size: 1.65rem;
  }
  [class*="section"] {
    padding: 48px 0;
  }
  [class*="btn"] {
    padding: 10px 22px;
  }
  [class*="cta"] {
    padding: 48px 16px;
  }
}


/* design_github - GitHub开发者暗色风格 */
:root {
  --primary: #24292f;
  --secondary: #57606a;
  --accent: #0969da;
  --bg: #ffffff;
  --text: #1f2328;
  --gray: #d0d7de;
  --radius: 6px;
  --white: #ffffff;
  --light: #f6f8fa;
  --red: #cf222e;
  --green: #1a7f37;
  --orange: #bf8700;
  --purple: #8250df;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', Helvetica, Arial, sans-serif;
  --text-light: #94a3b8;
  --font-serif: Georgia, "Times New Roman", serif;
  --gray-100: #f1f5f9;
  --primary-light: color-mix(in srgb, var(--primary, #2563eb) 12%, white);
;}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  font-size: 14px;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* Header - Dark GitHub style */
.site-header {
  background: var(--primary);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo a {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo a:hover { color: #d0d7de; text-decoration: none; }

.logo a svg { width: 28px; height: 28px; }

.main-nav { display: flex; align-items: center; gap: 0; }

.main-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
  transition: color 0.15s;
}

.main-nav a:hover {
  color: #d0d7de;
  text-decoration: none;
}

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 22px; height: 22px; stroke: #ffffff; }

.header-search { margin-left: 4px; }
.header-search button {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 6px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  transition: all 0.15s;
}
.header-search button:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
}
.header-search button svg { width: 15px; height: 15px; }

/* Hero - Dark code section */
.hero {
  background: #0d1117;
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
  border-bottom: 1px solid #30363d;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.hero h1 .code-bracket { color: #7ee787; }
.hero h1 .code-fn { color: #d2a8ff; }
.hero h1 .code-param { color: #ffa657; }

.hero p {
  font-size: 16px;
  color: #8b949e;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
}

.btn-primary {
  background: #238636;
  color: #ffffff;
  border-color: rgba(240,246,252,0.1);
}

.btn-primary:hover {
  background: #2ea043;
  color: #ffffff;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: #c9d1d9;
  border-color: #30363d;
}

.btn-outline:hover {
  background: #30363d;
  color: #f0f6fc;
  text-decoration: none;
}

/* Section */
.section { padding: 64px 0; }

.section-header { margin-bottom: 36px; }

.section-header h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.section-header p {
  font-size: 14px;
  color: var(--secondary);
}

/* Category Cards - Border only */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cat-card {
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.15s;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.cat-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-color: #8b949e;
  text-decoration: none;
  color: var(--text);
}

.cat-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.cat-card-header .state {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.state-open { background: #dafbe1; color: var(--green); }
.state-progress { background: #fff8c5; color: var(--orange); }
.state-done { background: #ddf4ff; color: var(--accent); }
.state-closed { background: #ffebe9; color: var(--red); }

.cat-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
}

.cat-card p {
  font-size: 13px;
  color: var(--secondary);
  line-height: 1.5;
  margin-top: 6px;
}

/* News Section */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.news-card {
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.15s;
}

.news-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-color: #8b949e;
}

.news-card-body h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
}

.news-card-body h3 a { color: var(--text); }
.news-card-body h3 a:hover { color: var(--accent); text-decoration: underline; }

.news-card-meta {
  font-size: 12px;
  color: var(--secondary);
  display: flex;
  gap: 12px;
  margin-bottom: 6px;
}

.news-card-body p {
  font-size: 13px;
  color: var(--secondary);
  line-height: 1.5;
}

/* CTA */
.cta {
  background: #0d1117;
  color: #ffffff;
  text-align: center;
  padding: 64px 0;
  border-top: 1px solid #30363d;
}

.cta h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 12px;
}

.cta p {
  font-size: 15px;
  color: #8b949e;
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto; margin-right: auto;
}

.cta .btn-primary { background: #238636; }
.cta .btn-primary:hover { background: #2ea043; }

/* Breadcrumb */
.breadcrumb {
  background: var(--light);
  border-bottom: 1px solid var(--gray);
  padding: 10px 0;
}

.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--secondary);
}

.breadcrumb a { color: var(--secondary); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: #8b949e; }

/* Page Header */
.page-header {
  background: var(--light);
  border-bottom: 1px solid var(--gray);
  padding: 32px 0;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 600;
}

/* Content with Sidebar */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}

.main-content { min-width: 0; }

/* Article List - compact with labels */
.article-list {
  border: 1px solid var(--gray);
  border-radius: var(--radius);
}

.article-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray);
  transition: background 0.1s;
}

.article-item:last-child { border-bottom: none; }

.article-item:hover { background: var(--light); }

.article-item h2 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.article-item h2 a { color: var(--text); }
.article-item h2 a:hover { color: var(--accent); text-decoration: underline; }

.article-item .meta {
  font-size: 12px;
  color: var(--secondary);
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 4px;
}

.article-item .state-label {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.article-item p {
  font-size: 13px;
  color: var(--secondary);
  line-height: 1.5;
}

.article-item .more {
  font-size: 12px;
  color: var(--accent);
}

/* Sidebar */
.sidebar { position: sticky; top: 76px; }

.widget {
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.widget h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray);
}

.side-nav { list-style: none; }
.side-nav > li { margin-bottom: 2px; }
.side-nav > li > a {
  display: block;
  padding: 5px 8px;
  font-size: 13px;
  color: var(--text);
  border-radius: var(--radius);
  white-space: nowrap;
}
.side-nav > li > a:hover { background: var(--light); text-decoration: none; color: var(--accent); }

.side-nav li ul { list-style: none; padding-left: 14px; margin-top: 2px; }
.side-nav li ul li a {
  display: block;
  padding: 4px 8px;
  font-size: 12px;
  color: var(--secondary);
  border-radius: var(--radius);
}
.side-nav li ul li a:hover { color: var(--accent); background: var(--light); text-decoration: none; }

.hot-list { list-style: none; }
.hot-list li {
  display: flex;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid #f0f0f0;
}

.hot-list li:last-child { border-bottom: none; }

.hot-list .num {
  font-size: 12px;
  color: var(--secondary);
  min-width: 16px;
  flex-shrink: 0;
  font-weight: 600;
}

.hot-list li:nth-child(1) .num { color: var(--red); }
.hot-list li:nth-child(2) .num { color: var(--orange); }
.hot-list li:nth-child(3) .num { color: var(--purple); }

.hot-list li a { font-size: 13px; color: var(--text); }
.hot-list li a:hover { color: var(--accent); text-decoration: underline; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 28px 0;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--accent);
  transition: all 0.15s;
}

.pagination a:hover { background: var(--light); text-decoration: none; }
.pagination a.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Detail */
.detail-header {
  background: var(--light);
  border-bottom: 1px solid var(--gray);
  padding: 32px 0;
}

.detail-header h1 { font-size: 26px; font-weight: 600; margin-bottom: 8px; }

.detail-meta {
  font-size: 12px;
  color: var(--secondary);
  display: flex;
  gap: 14px;
}

.detail-content { padding: 32px 0; }

.article-body {
  font-size: 15px;
  line-height: 1.7;
}

.article-body h2 { font-size: 20px; margin: 28px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--gray); }
.article-body h3 { font-size: 17px; margin: 20px 0 10px; }
.article-body p { margin-bottom: 12px; }
.article-body img { margin: 16px 0; border-radius: var(--radius); }
.article-body ul, .article-body ol { margin: 12px 0; padding-left: 24px; }
.article-body li { margin-bottom: 4px; }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 16px;
  margin: 16px 0;
  color: var(--secondary);
}

.article-body code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.article-body pre {
  background: #0d1117;
  color: #c9d1d9;
  padding: 16px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 16px 0;
  font-size: 13px;
  line-height: 1.5;
}

.article-body pre code { background: none; padding: 0; color: inherit; }

.article-tags {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--gray);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.article-tags span {
  display: inline-block;
  padding: 2px 8px;
  background: var(--light);
  border-radius: 12px;
  font-size: 12px;
  color: var(--secondary);
  border: 1px solid var(--gray);
}

.article-near {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--gray);
}

.article-near a { font-size: 13px; }

/* Page */
.page-content { padding: 32px 0; }
.page-content h2 { font-size: 20px; margin: 20px 0 10px; }
.page-content p { margin-bottom: 12px; }

/* Search */
.search-form-wrap {
  padding: 24px;
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.search-form { display: flex; gap: 8px; }

.search-form input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.search-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(9,105,218,0.15); }

.search-form button {
  padding: 8px 16px;
  background: #238636;
  color: #fff;
  border: 1px solid rgba(240,246,252,0.1);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.search-form button:hover { background: #2ea043; }

.search-info { font-size: 13px; color: var(--secondary); margin-bottom: 16px; }

/* Sitemap */
.sitemap-list { list-style: none; columns: 3; column-gap: 32px; }
.sitemap-list li { margin-bottom: 8px; break-inside: avoid; }
.sitemap-list a { font-size: 13px; }

/* About */
.about-section { padding: 48px 0; }
.about-section h2 { font-size: 22px; margin-bottom: 14px; }
.about-section p { font-size: 14px; line-height: 1.7; margin-bottom: 12px; }

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.about-feature {
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.about-feature svg { width: 40px; height: 40px; margin-bottom: 10px; }
.about-feature h3 { font-size: 15px; margin-bottom: 4px; }
.about-feature p { font-size: 13px; color: var(--secondary); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-info h2 { font-size: 22px; margin-bottom: 12px; }
.contact-info p { color: var(--secondary); margin-bottom: 20px; line-height: 1.7; font-size: 14px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--secondary);
}

.contact-item svg { width: 16px; height: 16px; flex-shrink: 0; }

.contact-form { border: 1px solid var(--gray); border-radius: var(--radius); padding: 20px; }

.contact-form .form-group { margin-bottom: 12px; }

.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(9,105,218,0.15); }

.contact-form textarea { min-height: 100px; resize: vertical; }

.contact-form button {
  padding: 8px 16px;
  background: #238636;
  color: #fff;
  border: 1px solid rgba(240,246,252,0.1);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.contact-form button:hover { background: #2ea043; }

/* Empty */
.empty { text-align: center; padding: 48px 20px; color: var(--secondary); }
.empty p { font-size: 14px; }

/* Float top */
.float-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 38px;
  height: 38px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  border: 1px solid var(--gray);
}

.float-top:hover { background: #30363d; }
.float-top svg { width: 16px; height: 16px; }

/* Footer */
.site-footer {
  background: #0d1117;
  color: #8b949e;
  padding: 48px 0 0;
  border-top: 1px solid #30363d;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
}

.footer-col h4 {
  color: #e6edf3;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-col p { font-size: 12px; line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a { color: #8b949e; font-size: 12px; }
.footer-col ul li a:hover { color: #e6edf3; text-decoration: underline; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid #21262d;
  font-size: 11px;
  color: #484f58;
}

.footer-bottom a { color: #8b949e; }
.footer-bottom a:hover { color: #e6edf3; }

/* Responsive */
@media (max-width: 992px) {
  .cat-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-features { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0; right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 12px;
    border-top: 1px solid #30363d;
  }
  .main-nav.active { display: flex; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 14px; }
  .sitemap-list { columns: 1; }
  .about-features { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .search-form { flex-direction: column; }
}

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

/* ===== 悬浮客服 ===== */
.zfkf-float{position:fixed;right:20px;bottom:120px;z-index:9999;display:flex;flex-direction:column;gap:10px}
.zfkf-item{position:relative;width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;text-decoration:none;box-shadow:0 4px 14px rgba(0,0,0,.18);transition:all .25s;cursor:pointer}
.zfkf-item:hover{transform:scale(1.08);color:#fff}
.zfkf-phone{background:#2563eb}
.zfkf-wechat{background:#07c160}
.zfkf-consult{background:#f59e0b}
.zfkf-top{background:#334155}
.zfkf-tip{position:absolute;right:calc(100% + 12px);top:50%;transform:translateY(-50%);white-space:nowrap;background:rgba(0,0,0,.78);color:#fff;font-size:12px;padding:5px 10px;border-radius:6px;opacity:0;pointer-events:none;transition:opacity .2s;z-index:10001}
.zfkf-item:hover .zfkf-tip{opacity:1}
.zfkf-wechat-mask{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:10000;display:none;align-items:center;justify-content:center}
.zfkf-wechat-mask.zfkf-show{display:flex}
.zfkf-wechat-box{background:#fff;border-radius:12px;padding:24px;text-align:center;position:relative;max-width:80vw}
.zfkf-wechat-box img{width:180px;height:180px;object-fit:contain;border:1px solid #eee;border-radius:8px}
.zfkf-wechat-noimg{width:180px;height:80px;display:flex;align-items:center;justify-content:center;background:#f6f7f9;border-radius:8px;font-size:16px;color:#07c160;font-weight:600}
.zfkf-wechat-box p{margin:12px 0 0;font-size:14px;color:#333}
.zfkf-wechat-close{position:absolute;top:8px;right:12px;font-size:22px;color:#999;cursor:pointer;line-height:1}
@media (max-width:768px){.zfkf-float{right:10px;bottom:100px}.zfkf-item{width:42px;height:42px}.zfkf-tip{display:none}}
