/* =============================================
   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 --- */
.section {
  padding: 60px 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 --- */
.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 (模板自有具体类为准，移除 base 通配避免误伤 hero-badge/stat-label) --- */

/* --- 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"] [class*="item"],
{
  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 (模板自有 .stat-item .stat-num 为准，移除 base 通配避免覆盖深底图) --- */
[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;
  }
  .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_figma - Figma渐变风格 */
:root {
  --primary: #a259ff;
  --secondary: #1e1e1e;
  --accent: #ff7262;
  --bg: #fcfcfc;
  --text: #333333;
  --gray: #b3b3b3;
  --radius: 10px;
  --white: #ffffff;
  --dark: #1e1e1e;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', 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.6;
  font-size: 16px;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: #8a3ffc; }

img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* Header - Purple gradient */
.site-header {
  background: linear-gradient(135deg, #a259ff, #7b3ff2, #6c3ce0);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo a {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo a svg { width: 30px; height: 30px; }

.main-nav { display: flex; align-items: center; gap: 0; }

.main-nav a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.main-nav a:hover {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  text-decoration: none;
}

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 24px; height: 24px; stroke: #ffffff; }

.header-search { margin-left: 4px; }
.header-search button {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  transition: all 0.2s;
}
.header-search button:hover {
  background: rgba(255,255,255,0.25);
}
.header-search button svg { width: 14px; height: 14px; }

/* Hero - Purple/Pink gradient */
.hero {
  background: linear-gradient(135deg, #a259ff 0%, #ff7262 50%, #f24e1e 100%);
  color: #ffffff;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  top: -100px;
  left: -100px;
}

.hero::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  bottom: -50px;
  right: -50px;
}

.hero .container { position: relative; z-index: 1; }

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Hero 三屏轮播 - grid 叠放 */
.hero-slides { display: grid; width: 100%; }
.hero-slide { grid-area: 1/1; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s ease; }
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-slide-inner { max-width: 760px; margin: 0 auto; }
.hero-slide h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
/* Hero 轮播圆点 */
.hero-dots { display: flex; gap: 10px; justify-content: center; margin-top: 36px; }
.hero-dot { width: 32px; height: 4px; border: none; border-radius: 2px; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; transition: background .3s, width .3s; }
.hero-dot.active { background: #fff; width: 48px; }
.no-js .hero-slide { opacity: 1; visibility: visible; position: relative; }
.no-js .hero-slide:not(:first-child) { display: none; }
/* Stats 信任数字 - 独立卡片一行 */
.stats-section { background: linear-gradient(135deg, #1e1e1e, #2d2d2d); color: #fff; padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-item { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 28px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; }
.stat-icon { width: 56px; height: 56px; border-radius: 50%; background: #a259ff; border: 1px solid rgba(255,255,255,.35); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.stat-icon svg { color: #fff !important; }
.stat-item .stat-num { font-size: 2.5rem; font-weight: 800; line-height: 1.2; color: #fff !important; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.stat-item .stat-label { font-size: .95rem; color: rgba(255,255,255,.8); }

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
}

.btn-primary {
  background: #ffffff;
  color: #a259ff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  color: #a259ff;
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  border-color: #ffffff;
  background: rgba(255,255,255,0.1);
  color: #ffffff;
}

/* Section */
.section { padding: 80px 0; }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 34px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 10px;
}

.section-header p {
  font-size: 16px;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

/* Category Cards - Large rounded */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.cat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}

.cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s;
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(162,89,255,0.2);
  color: var(--text);
}

.cat-card:hover::before { opacity: 1; }

.cat-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 10px;
}

.cat-card p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.6;
}

/* News Section */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(162,89,255,0.12);
}

.news-card-body { padding: 24px; }

.news-card-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-card-body h3 a { color: var(--secondary); }
.news-card-body h3 a:hover { color: var(--primary); }

.news-card-meta {
  font-size: 13px;
  color: var(--gray);
  display: flex;
  gap: 14px;
  margin-bottom: 8px;
}

.news-card-body p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.5;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, #1e1e1e, #2d2d2d);
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
}

.cta h2 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta p {
  font-size: 17px;
  opacity: 0.75;
  margin-bottom: 32px;
}

.cta .btn-primary {
  background: linear-gradient(135deg, var(--primary), #7b3ff2);
  color: #ffffff;
}

.cta .btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 8px 24px rgba(162,89,255,0.3);
}

/* Breadcrumb */
.breadcrumb {
  background: var(--white);
  padding: 12px 0;
}

.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray);
}

.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: #ddd; }

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #1e1e1e, #2d2d2d);
  color: #ffffff;
  padding: 48px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 32px;
  font-weight: 700;
}

/* Content with Sidebar - Dark sidebar */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

.main-content { min-width: 0; }

/* Article List */
.article-list { display: flex; flex-direction: column; gap: 20px; }

.article-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.article-item:hover {
  box-shadow: 0 8px 28px rgba(162,89,255,0.1);
  transform: translateY(-2px);
}

.article-item h2 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.article-item h2 a { color: var(--secondary); }
.article-item h2 a:hover { color: var(--primary); }

.article-item .meta {
  font-size: 13px;
  color: var(--gray);
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
}

.article-item p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 10px;
}

.article-item .more {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

/* Dark Sidebar */
.sidebar { position: sticky; top: 84px; }

.widget {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.widget h4 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.side-nav { list-style: none; }
.side-nav > li { margin-bottom: 3px; }
.side-nav > li > a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.2s;
}
.side-nav > li > a:hover {
  background: rgba(162,89,255,0.2);
  color: var(--primary);
  text-decoration: none;
}

.side-nav li ul { list-style: none; padding-left: 14px; margin-top: 2px; }
.side-nav li ul li a {
  display: block;
  padding: 6px 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  border-radius: 8px;
  transition: all 0.2s;
}
.side-nav li ul li a:hover {
  background: rgba(162,89,255,0.15);
  color: var(--primary);
  text-decoration: none;
}

.hot-list { list-style: none; }
.hot-list li {
  display: flex;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hot-list li:last-child { border-bottom: none; }

.hot-list .num {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  min-width: 20px;
  flex-shrink: 0;
}

.hot-list li a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}
.hot-list li a:hover { color: var(--primary); text-decoration: none; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 36px 0;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.pagination a:hover { color: var(--primary); box-shadow: 0 4px 12px rgba(162,89,255,0.15); text-decoration: none; }
.pagination a.active { background: linear-gradient(135deg, var(--primary), #7b3ff2); color: #ffffff; }

/* Detail */
.detail-header {
  background: linear-gradient(135deg, #1e1e1e, #2d2d2d);
  color: #ffffff;
  padding: 48px 0;
}

.detail-header h1 { font-size: 30px; font-weight: 700; margin-bottom: 10px; }

.detail-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  display: flex;
  gap: 18px;
}

.detail-content { padding: 40px 0; }

.article-body {
  font-size: 16px;
  line-height: 1.8;
}

.article-body h2 { font-size: 24px; margin: 32px 0 14px; }
.article-body h3 { font-size: 20px; margin: 24px 0 10px; }
.article-body p { margin-bottom: 14px; }
.article-body img { margin: 20px 0; border-radius: var(--radius); }
.article-body ul, .article-body ol { margin: 14px 0; padding-left: 24px; }
.article-body li { margin-bottom: 6px; }
.article-body blockquote {
  border-left: 4px solid var(--primary);
  background: linear-gradient(90deg, rgba(162,89,255,0.05), transparent);
  padding: 14px 20px;
  margin: 20px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-body code {
  background: #f0f0f0;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--accent);
}

.article-body pre {
  background: var(--dark);
  color: #e0e0e0;
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 20px 0;
  font-size: 14px;
}

.article-body pre code { background: none; padding: 0; color: inherit; }

.article-tags {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.article-tags span {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(162,89,255,0.08), rgba(255,114,98,0.08));
  border-radius: 50px;
  font-size: 13px;
  color: var(--primary);
}

.article-near {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.article-near a { font-size: 14px; color: var(--primary); }

/* Page */
.page-content { padding: 40px 0; }
.page-content h2 { font-size: 22px; margin: 24px 0 10px; }
.page-content p { margin-bottom: 14px; }

/* Search */
.search-form-wrap {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  margin-bottom: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.search-form { display: flex; gap: 12px; }

.search-form input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid #eee;
  border-radius: 50px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.search-form input:focus { border-color: var(--primary); }

.search-form button {
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--primary), #7b3ff2);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.search-form button:hover { opacity: 0.9; }

.search-info { font-size: 14px; color: var(--gray); margin-bottom: 20px; }

/* Sitemap */
.sitemap-list { list-style: none; columns: 3; column-gap: 40px; }
.sitemap-list li { margin-bottom: 10px; break-inside: avoid; }
.sitemap-list a { font-size: 14px; }

/* About */
.about-section { padding: 60px 0; }
.about-section h2 { font-size: 26px; margin-bottom: 16px; }
.about-section p { font-size: 15px; line-height: 1.8; color: var(--gray); margin-bottom: 14px; }

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 36px 0;
}

.about-feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.about-feature:hover {
  box-shadow: 0 8px 28px rgba(162,89,255,0.12);
  transform: translateY(-4px);
}

.about-feature svg { width: 48px; height: 48px; margin-bottom: 14px; }
.about-feature h3 { font-size: 16px; margin-bottom: 6px; }
.about-feature p { font-size: 13px; color: var(--gray); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info h2 { font-size: 26px; margin-bottom: 14px; }
.contact-info p { color: var(--gray); margin-bottom: 24px; line-height: 1.8; font-size: 15px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--gray);
}

.contact-item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--primary); }

.contact-form {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.contact-form .form-group { margin-bottom: 16px; }

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--secondary);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #eee;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--primary); }

.contact-form textarea { min-height: 120px; resize: vertical; }

.contact-form button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), #7b3ff2);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.contact-form button:hover { opacity: 0.9; }

/* Empty */
.empty { text-align: center; padding: 60px 20px; color: var(--gray); }
.empty p { font-size: 16px; }

/* Float top */
.float-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), #7b3ff2);
  color: #ffffff;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  box-shadow: 0 4px 16px rgba(162,89,255,0.3);
}

.float-top:hover { transform: scale(1.1); }
.float-top svg { width: 20px; height: 20px; }

/* Footer */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.footer-col p { font-size: 13px; line-height: 1.8; }

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.5); font-size: 13px; }
.footer-col ul li a:hover { color: var(--primary); text-decoration: none; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: var(--primary); }

/* 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; }
  .hero h1 { font-size: 36px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: linear-gradient(135deg, #a259ff, #7b3ff2);
    flex-direction: column;
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .main-nav.active { display: flex; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .section { padding: 48px 0; }
  .sitemap-list { columns: 1; }
  .about-features { grid-template-columns: 1fr; }
  .detail-header h1 { font-size: 22px; }
  .search-form { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}

/* ========== 内容区样式补丁 (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:#666;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}}
