/*!
 * 华建净网站主题样式 - 优化版
 * 版本: 2.0
 * 更新日期: 2026-06-29
 */

/* ==================== 1. 变量定义 ==================== */
:root {
  /* 主色调 - 森林绿系（专业/环保/洁净） */
  --primary: #2E7D32;
  --primary-dark: #1B5E20;
  --primary-light: #43A047;
  --primary-bg: #E8F5E9;

  /* 强调色 - 活力橙 */
  --accent: #FF6F00;
  --accent-light: #FFA726;
  --accent-dark: #E65100;

  /* 中性色 */
  --text-dark: #212121;
  --text-main: #424242;
  --text-secondary: #757575;
  --text-light: #9E9E9E;

  /* 背景色 */
  --bg-page: #FAFAFA;
  --bg-card: #FFFFFF;
  --bg-section: #F5F5F5;
  --bg-dark: #263238;

  /* 功能色 */
  --success: #4CAF50;
  --warning: #FFC107;
  --danger: #F44336;
  --info: #2196F3;

  /* 边框与阴影 */
  --border: #E0E0E0;
  --border-light: #EEEEEE;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50px;

  /* 间距 */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 60px;

  /* 过渡动画 */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ==================== 2. 全局重置 ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-main);
  background-color: var(--bg-page);
  letter-spacing: 0.3px;
}

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

/* ==================== 3. 链接样式 ==================== */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ==================== 4. 标题字体 ==================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
}

h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 1.875rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 500;
}

h5 {
  font-size: 1.125rem;
  font-weight: 500;
}

h6 {
  font-size: 1rem;
  font-weight: 500;
}

/* 页面主标题 */
.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: var(--space-sm);
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
}

/* ==================== 5. 按钮样式 ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
  gap: 8px;
}

.btn:hover {
  transform: translateY(-2px);
}

/* 主按钮 - 橙色渐变 */
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 111, 53, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  box-shadow: 0 8px 25px rgba(255, 111, 53, 0.45);
  color: #fff;
}

/* 次要按钮 - 边框样式 */
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}

/* 幽灵按钮 */
.btn-outline {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(5px);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
  border-color: #fff;
}

/* 按钮尺寸 */
.btn-sm {
  padding: 8px 20px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 17px;
}

/* 移动端按钮 */
@media (max-width: 768px) {
  .btn {
    padding: 14px 32px;
    font-size: 16px;
  }
  .btn-lg {
    padding: 16px 40px;
  }
}

/* ==================== 6. 卡片样式 ==================== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-header {
  padding: var(--space-md) var(--space-md) 0;
  background: linear-gradient(135deg, var(--primary-bg) 0%, transparent 100%);
}

.card-body {
  padding: var(--space-md);
}

.card-footer {
  padding: 0 var(--space-md) var(--space-md);
  border-top: 1px solid var(--border-light);
  margin-top: var(--space-md);
}

/* 列表卡片 */
.list-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.list-card:hover {
  box-shadow: var(--shadow-md);
}

/* 列表项卡片 */
.list-item-card {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
  background: #f8faf9;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  text-decoration: none;
  color: inherit;
}

.list-item-card:hover {
  background: var(--bg-card);
  border-color: var(--primary);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
}

.list-item-card .item-img {
  flex: 0 0 180px;
  height: 130px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #eee;
}

.list-item-card .item-img .bg-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-slow);
}

.list-item-card:hover .item-img .bg-img {
  transform: scale(1.08);
}

.list-item-card .item-body {
  flex: 1;
  min-width: 0;
}

.list-item-card .item-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.4;
  transition: color var(--transition-fast);
}

.list-item-card:hover .item-title {
  color: var(--primary);
}

.list-item-card .item-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 响应式列表卡片 */
@media (max-width: 768px) {
  .list-item-card {
    flex-direction: column;
    gap: var(--space-sm);
  }
  .list-item-card .item-img {
    flex: none;
    width: 100%;
    height: 200px;
  }
}

/* ==================== 7. 边栏样式 ==================== */
.sidebar-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-md);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.sidebar-card:hover {
  box-shadow: var(--shadow-md);
}

.sidebar-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 16px 20px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-header h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  color: #fff;
}

.sidebar-header .toggle-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  transition: transform var(--transition-normal);
}

.sidebar-header.active .toggle-icon {
  transform: translateY(-50%) rotate(180deg);
}

.sidebar-body {
  padding: 8px 0;
}

/* 导航项 */
.nav-item {
  display: block;
  padding: 12px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all var(--transition-normal);
  font-size: 14px;
  background: transparent;
}

.nav-item:hover {
  background: var(--primary-bg);
  color: var(--primary);
  border-left-color: var(--primary);
  padding-left: 25px;
  text-decoration: none;
}

.nav-item.active {
  background: var(--primary-bg);
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}

.nav-item .nav-icon {
  font-size: 10px;
  color: var(--primary);
  margin-right: 8px;
}

/* ==================== 8. 轮播样式 ==================== */
.carousel {
  position: relative;
}

.carousel-inner {
  overflow: hidden;
}

.carousel .item {
  position: relative;
}

.carousel .item img {
  width: 100%;
  display: block;
}

/* 轮播指示器 */
.carousel-indicators {
  bottom: 20px;
  margin: 0;
}

.carousel-indicators li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 2px solid transparent;
  margin: 0 5px;
  transition: all var(--transition-normal);
}

.carousel-indicators li.active {
  background: #fff;
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* 轮播控制按钮 */
.carousel-control {
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(46, 125, 50, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--transition-normal);
}

.carousel:hover .carousel-control {
  opacity: 1;
}

.carousel-control:hover {
  background: var(--primary);
}

.carousel-control .glyphicon {
  font-size: 20px;
  color: #fff;
}

/* 轮播文字区域 */
.carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  bottom: auto;
  width: 90%;
  max-width: 700px;
  text-align: center;
  padding: 30px 40px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  text-shadow: none;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.carousel-caption h1, .carousel-caption h2 {
  color: var(--primary);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.carousel-caption p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.6;
}

.carousel-caption .btn {
  margin-top: var(--space-md);
}

/* 移动端轮播 */
@media (max-width: 768px) {
  .carousel-caption {
    padding: 20px 25px;
    width: 95%;
  }
  .carousel-caption h1, .carousel-caption h2 {
    font-size: 1.25rem;
  }
  .carousel-caption p {
    font-size: 14px;
  }
  .carousel-control {
    display: none !important;
  }
}

/* ==================== 9. 分页样式 ==================== */
.pagebar {
  padding: var(--space-md) 0 var(--space-lg);
  text-align: center;
}

.pagebar a,
.pagebar b {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 3px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.pagebar a {
  color: var(--text-secondary);
  background: var(--bg-section);
  border: 1px solid var(--border);
}

.pagebar a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  text-decoration: none;
}

.pagebar b {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
}

/* ==================== 10. 文章内容样式 ==================== */
.article-content {
  font-size: 17px;
  line-height: 2;
  text-align: justify;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

.article-content p {
  margin-bottom: 1.5em;
  text-indent: 2em;
}

.article-content h2 {
  margin-top: 2em;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 2px solid var(--primary-bg);
}

.article-content h3 {
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  color: var(--primary);
}

.article-content img {
  border-radius: var(--radius-md);
  margin: var(--space-md) auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5em;
  padding-left: 2em;
}

.article-content li {
  margin-bottom: 0.5em;
}

/* 文章卡片头部 */
.article-header {
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  border-bottom: 1px solid var(--border-light);
}

.article-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: var(--space-sm);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  color: var(--text-light);
  font-size: 14px;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: var(--space-md);
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb .sep {
  color: #ccc;
}

.breadcrumb .current {
  color: var(--text-secondary);
}

/* 响应式文章 */
@media (max-width: 768px) {
  .article-content {
    font-size: 16px;
  }
  .article-header {
    padding: var(--space-md);
  }
  .article-title {
    font-size: 1.5rem;
  }
}

/* ==================== 11. 悬浮客服栏 ==================== */
.suspend_nav {
  position: fixed;
  right: 15px;
  bottom: 80px;
  width: 54px;
  background: var(--bg-card);
  border-radius: 27px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 1000;
  overflow: visible;
}

.suspend_nav .list {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
  border-bottom: 1px solid var(--border-light);
}

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

.suspend_nav .list:hover {
  background: var(--bg-section);
}

.suspend_nav .list img {
  width: 24px;
  height: 24px;
}

/* 悬浮项悬停效果 */
.suspend_nav li {
  position: relative;
}

.suspend_nav li:hover .popup,
.suspend_nav li:hover .weixin {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.suspend_nav .popup,
.suspend_nav .weixin {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: var(--bg-card);
  padding: 15px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.suspend_nav .popup p {
  margin: 0 0 5px;
  font-size: 13px;
  color: var(--text-secondary);
}

.suspend_nav .popup h5 {
  margin: 0;
  font-size: 18px;
  color: var(--accent);
}

.suspend_nav .weixin img {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-sm);
}

.suspend_nav .weixin p {
  text-align: center;
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}

/* 返回顶部按钮 */
.suspend_nav .top {
  background: var(--primary);
  border-radius: 27px 27px 0 0;
}

.suspend_nav .top:hover {
  background: var(--primary-dark);
}

/* 移动端隐藏 */
@media (max-width: 768px) {
  .suspend_nav {
    display: none !important;
  }
}

/* ==================== 12. CTA 区域 ==================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: var(--space-xl) 0;
  margin: var(--space-lg) 0;
}

.cta-box {
  text-align: center;
  color: #fff;
}

.cta-box h3 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--space-sm);
}

.cta-box p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: var(--space-md);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.cta-btn {
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-normal);
}

.cta-btn-primary {
  background: #fff;
  color: var(--primary);
}

.cta-btn-primary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.cta-btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}

.cta-btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: #fff;
}

/* ==================== 13. 联系信息样式 ==================== */
.contact-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
}

.contact-phone {
  text-align: center;
  padding: var(--space-md);
  border-bottom: 1px dashed var(--border);
  margin-bottom: var(--space-md);
}

.contact-phone p {
  color: var(--text-light);
  font-size: 12px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.contact-phone h4 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.contact-phone h4 a {
  color: var(--accent);
  text-decoration: none;
}

.contact-info p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 2;
  margin: 0;
  padding: 0;
}

.contact-info strong {
  color: var(--text-dark);
  font-weight: 500;
}

/* ==================== 14. 辅助类 ==================== */
/* 文本颜色 */
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-muted { color: var(--text-light) !important; }

/* 背景颜色 */
.bg-primary { background-color: var(--primary) !important; }
.bg-primary-light { background-color: var(--primary-bg) !important; }
.bg-accent { background-color: var(--accent) !important; }
.bg-dark { background-color: var(--bg-dark) !important; }

/* 间距 */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--space-xs) !important; }
.mt-2 { margin-top: var(--space-sm) !important; }
.mt-3 { margin-top: var(--space-md) !important; }
.mt-4 { margin-top: var(--space-lg) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--space-xs) !important; }
.mb-2 { margin-bottom: var(--space-sm) !important; }
.mb-3 { margin-bottom: var(--space-md) !important; }
.mb-4 { margin-bottom: var(--space-lg) !important; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: var(--space-xs) !important; }
.pt-2 { padding-top: var(--space-sm) !important; }
.pt-3 { padding-top: var(--space-md) !important; }
.pt-4 { padding-top: var(--space-lg) !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: var(--space-xs) !important; }
.pb-2 { padding-bottom: var(--space-sm) !important; }
.pb-3 { padding-bottom: var(--space-md) !important; }
.pb-4 { padding-bottom: var(--space-lg) !important; }

/* 圆角 */
.rounded-sm { border-radius: var(--radius-sm) !important; }
.rounded-md { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-full { border-radius: var(--radius-full) !important; }

/* 阴影 */
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

/* 文字对齐 */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

/* Flex */
.d-flex { display: flex !important; }
.align-center { align-items: center !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.flex-wrap { flex-wrap: wrap !important; }
.gap-1 { gap: var(--space-xs) !important; }
.gap-2 { gap: var(--space-sm) !important; }
.gap-3 { gap: var(--space-md) !important; }

/* 显示 */
.hidden { display: none !important; }
.visible { visibility: visible !important; }
.invisible { visibility: hidden !important; }

/* 动画 */
.fade-in {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 图片悬浮效果 */
.img-hover-zoom {
  overflow: hidden;
}

.img-hover-zoom img {
  transition: transform var(--transition-slow);
}

.img-hover-zoom:hover img {
  transform: scale(1.08);
}

/* 装饰线 */
.decorative-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
  margin: 15px 0;
}

.decorative-line.center {
  margin-left: auto;
  margin-right: auto;
}