/* ===== 变量 ===== */
:root {
  --primary: #C8102E;
  --primary-dark: #8B0000;
  --primary-light: #FF6B6B;
  --primary-bg: #FFF5F5;
  --text-dark: #1a1a1a;
  --text-gray: #666;
  --border: #e0e0e0;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(200, 16, 46, 0.15);
}

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

body {
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* ===== 导航 ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  z-index: 1000;
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  display: flex;
  align-items: center;
  height: 70px;
  gap: 15px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s;
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

.logo-name {
  font-size: 18px;
  font-weight: bold;
  color: var(--primary);
  white-space: nowrap; 
  overflow: hidden;    
  text-overflow: ellipsis; 
  max-width: 200px;
}

.logo-sub {
  font-size: 11px;
  color: var(--text-gray);
}

.nav-menu {
  display: flex;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.nav-menu a {
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.3s;
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
  background: var(--primary-bg);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-phone {
  font-size: 13px;
  color: var(--primary);
  font-weight: bold;
}

.btn-consult {
  background: var(--primary);
  color: white;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 13px;
  transition: background 0.3s;
  white-space: nowrap;
}

.btn-consult:hover {
  background: var(--primary-dark);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* ===== 按钮 ===== */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 12px 30px;
  border-radius: 4px;
  font-size: 15px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-block;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 10px 28px;
  border-radius: 4px;
  font-size: 15px;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* ===== 页面标题区 ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 130px 0 60px;
  text-align: center;
}

.page-hero h1 {
  font-size: 36px;
  margin-bottom: 15px;
}

.page-hero p {
  font-size: 16px;
  opacity: 0.9;
}

/* ===== 区块标题 ===== */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 32px;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.section-title h2 span {
  color: var(--primary);
}

.section-title p {
  color: var(--text-gray);
  font-size: 16px;
}

.divider {
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 15px auto;
}

/* ===== 卡片 ===== */
.card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
}

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

/* ===== 网格 ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* ===== 首页轮播 ===== */
.hero-slider {
  position: relative;
  height: calc(100vh - 70px);
  min-height: 600px;
  max-height: 850px;
  overflow: hidden;
  margin-top: 70px;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

/* 轮播图图片 */
.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 遮罩层 - 增强文字可读性 */
.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.7) 100%);
  z-index: 3;
  pointer-events: none;
}

/* 轮播图内容 */
.slide-content {
  position: relative;
  z-index: 4;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 20px;
}

.slide-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  line-height: 1.3;
}

.slide-content p {
  font-size: 20px;
  margin-bottom: 35px;
  opacity: 0.95;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

/* 圆点位置 */
.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

/* 箭头位置 */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.arrow-prev {
  left: 30px;
}

.arrow-next {
  right: 30px;
}


.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: white;
}

/* ===== 数字统计 ===== */
.stats {
  background: var(--primary);
  color: white;
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.stat-item {
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-size: 48px;
  font-weight: bold;
  display: block;
}

.stat-label {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 5px;
}

/* ===== 产品卡片 ===== */
.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  cursor: pointer;
}

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

.product-card .product-img {
  height: 240px;
  background: linear-gradient(135deg, var(--primary-bg), #fff);
  display: flex;
  align-items: center;
  overflow: hidden;
  justify-content: center;
  background-color: #fff;
}
.product-card .product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background-color: #fff!important;
  transition: transform 0.3s ease;
}
/* 让 a 标签占满父容器 */
.product-img a {
  display: block;
  width: 100%;
  height: 100%;
}

.product-card .product-info {
  padding: 20px;
}

.product-card .product-name {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
}

.product-card .product-desc {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 12px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2; 
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 54px;
  flex-shrink: 0; 
}

.product-card .product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.product-tag {
  display: inline-block;
  background: var(--primary-bg);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
}

/* ===== 服务/优势卡片 ===== */
.service-card {
  background: white;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
}

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

.service-card .icon {
  width: 70px;
  height: 70px;
  background: var(--primary-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
}

.service-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.7;
}

/* ===== 新闻列表 ===== */
.news-item {
  display: flex;
  gap: 25px;
  padding: 25px 0;
  border-bottom: 1px solid var(--border);
}

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

.news-img {
  width: 220px;
  height: 140px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-bg), #ffe);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
}

.news-img img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
}

.news-content {
  flex: 1;
}

.news-tag {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 2px 10px;
  border-radius: 3px;
  font-size: 12px;
  margin-bottom: 8px;
}

.news-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.news-title a:hover {
  color: var(--primary);
}

.news-excerpt {
  color: var(--text-gray);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 10px;
}

.news-meta {
  font-size: 12px;
  color: #999;
}

/* ===== 团队/案例卡片 ===== */
.team-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.3s;
}

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

.team-card .avatar {
  width: 120px;
  height: 120px;
  /* background: linear-gradient(135deg, var(--primary), var(--primary-light)); */
  border-radius: 50%;
  margin: 30px auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
}

.team-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  object-position: center;
  transition: transform 0.3s ease;
}

.team-card h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.team-card .position {
  color: var(--primary);
  font-size: 13px;
  margin-bottom: 10px;
}

.team-card p {
  font-size: 13px;
  color: var(--text-gray);
  padding: 0 20px 20px;
  line-height: 1.7;
}

/* ===== 流程步骤 ===== */
.process-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.process-step {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
}

.step-text {
  font-size: 15px;
  font-weight: 500;
}

.step-arrow {
  font-size: 20px;
  color: var(--primary);
}

/* ===== 时间轴 ===== */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 5px;
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid white;
}

.timeline-year {
  color: var(--primary);
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 5px;
}

.timeline-text {
  font-size: 14px;
  color: var(--text-gray);
}

/* ===== 表单 ===== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  padding: 15px 0;
  font-size: 13px;
  color: var(--text-gray);
  margin-top: 70px;
}

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

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

.breadcrumb span {
  margin: 0 8px;
}

/* ===== 分页 ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
}

.page-btn:hover,
.page-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ===== Tab切换 ===== */
.tab-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 25px;
  border: 2px solid var(--border);
  border-radius: 30px;
  background: white;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tab-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ===== 筛选标签 ===== */
.filter-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: white;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ===== 悬浮客服 ===== */
.float-service {
  position: fixed;
  right: 20px;
  bottom: 100px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-btn {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 3px 15px rgba(200, 16, 46, 0.4);
  transition: transform 0.3s;
}

.float-btn:hover {
  transform: scale(1.1);
}

/* ===== 返回顶部 ===== */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 3px 15px rgba(200, 16, 46, 0.4);
  opacity: 0;
  transition: all 0.3s;
  z-index: 999;
  pointer-events: none;
}

.back-top.show {
  opacity: 1;
  pointer-events: all;
}

/* ===== 底部 ===== */
.footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 60px 0 0;
}

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

.footer h3 {
  color: white;
  font-size: 16px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.footer p {
  font-size: 14px;
  line-height: 2;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer ul a {
  font-size: 14px;
  color: #ccc;
  transition: color 0.3s;
}

.footer ul a:hover {
  color: var(--primary);
}

.qr-placeholder {
  width: 100px;
  height: 100px;
  background: #333;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #666;
  margin-top: 10px;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
}

.footer-bottom a {
  color: #ccc;
  margin: 0 8px;
}

.footer-bottom a:hover {
  color: var(--primary);
}

/* ===== 产品详情页 ===== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 40px 0;
}

.product-gallery .main-img {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, var(--primary-bg), #fff);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  margin-bottom: 15px;
}

.main-img img {
  width: 100%;
  height: 100%;
}

.product-info .product-title {
  font-size: 28px;
  margin-bottom: 10px;
}

.product-info .product-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.product-info .product-price {
  font-size: 24px;
  color: var(--primary);
  font-weight: bold;
  margin-bottom: 20px;
}

.product-info .product-desc {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 25px;
}

.product-info .product-specs {
  background: var(--primary-bg);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
}

.product-specs h4 {
  font-size: 15px;
  margin-bottom: 10px;
}

.product-specs ul {
  font-size: 14px;
  color: var(--text-gray);
}

.product-specs li {
  margin-bottom: 5px;
  padding-left: 15px;
  position: relative;
}

.product-specs li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* ===== 联系页 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 40px 0;
}

.contact-info {
  background: var(--primary-bg);
  padding: 30px;
  border-radius: 8px;
}

.contact-info h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 14px;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.contact-info .icon {
  font-size: 18px;
}

.map-placeholder {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, #eee, #ddd);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  margin-top: 30px;
}

/* ===== 加盟页 ===== */
.franchise-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.franchise-card {
  background: white;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  border-top: 4px solid var(--primary);
  transition: all 0.3s;
}

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

.franchise-card .icon {
  width: 60px;
  height: 60px;
  background: var(--primary-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 28px;
}

.franchise-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.franchise-card p {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.7;
}

/* ===== 资质卡片 ===== */
.cert-card {
  background: white;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
}

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

.cert-card .icon {
  width: 80px;
  height: 80px;
  background: var(--primary-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 36px;
}

.cert-card h4 {
  font-size: 14px;
}

/* ===== 文章页 ===== */
.article-header {
  text-align: center;
  padding: 40px 0 30px;
}

.article-header h1 {
  font-size: 28px;
  margin-bottom: 15px;
}

.article-meta {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 20px;
}

.article-body {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-dark);
}

.article-body p {
  margin-bottom: 20px;
}

.article-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 20px 0;
}

.prev-next {
  display: flex;
  justify-content: space-between;
  padding: 30px 0;
  border-top: 1px solid var(--border);
  margin-top: 30px;
}

.prev-next a {
  font-size: 14px;
  color: var(--primary);
}

.sidebar-news h3 {
  font-size: 18px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.sidebar-news li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.sidebar-news a {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.5;
}

.sidebar-news a:hover {
  color: var(--primary);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

/* 切换箭头 */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(17, 17, 17, 0.1);
  border: none;
  color: var(--primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.4);
}

.arrow-prev {
  left: 30px;
}

.arrow-next {
  right: 30px;
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .franchise-types {
    grid-template-columns: 1fr 1fr;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-slider {
    height: 400px;
    min-height: 350px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .gallery-grid img {
    height: 150px;
  }
  .logo {
    flex: 1;
  }
  .logo-name {
    max-width: 150px;
  }
  .hamburger {
    display: block;
    /* margin-left: auto;
    order: 99; */
  }

  .nav-menu,
  .nav-actions {
    display: none;
  }
  
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .slide-content h1 {
    font-size: 24px;
  }

  .slide-content p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
  }

  .arrow-prev {
    left: 10px;
  }

  .arrow-next {
    right: 10px;
  }

  .news-item {
    flex-direction: column;
  }

  .news-img {
    width: 100%;
  }

  .section {
    padding: 50px 0;
  }

  .section-title h2 {
    font-size: 24px;
  }

  .franchise-types {
    grid-template-columns: 1fr;
  }

  .process-steps {
    flex-direction: column;
    gap: 15px;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .tab-group {
    gap: 5px;
  }

  .tab-btn {
    padding: 8px 15px;
    font-size: 13px;
  }

  .contact-form {
    padding: 20px;
  }

  .logo-img {
    height: 40px;
  }

  .logo-name {
    font-size: 16px;
  }

  .logo-sub {
    font-size: 11px;
  }
}

@media (max-width: 480px) {

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .stat-num {
    font-size: 36px;
  }

  .logo-sub {
    display: none;
  }

  .nav-phone {
    display: none;
  }
}

/* ===== 微信弹窗 ===== */
.wechat-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}

.wechat-modal .modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  position: relative;
  max-width: 320px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wechat-modal .modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  border: none;
  background: none;
  cursor: pointer;
  color: #999;
  transition: color 0.3s;
}

.wechat-modal .modal-close:hover {
  color: var(--primary);
}

.wechat-modal img {
  width: 200px;
  height: 200px;
  margin: 15px auto;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.wechat-modal p {
  margin: 10px 0;
  font-size: 14px;
  color: var(--text-gray);
}

.wechat-modal .wechat-id {
  color: var(--primary);
  font-weight: bold;
  font-size: 13px;
}

.wechat-modal .copy-wechat {
  margin-top: 15px;
  padding: 10px 25px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.wechat-modal .copy-wechat:hover {
  background: var(--primary-dark);
}

/* 移动端适配 */
@media (max-width: 480px) {
  .wechat-modal .modal-content {
    padding: 20px;
    margin: 20px;
  }

  .wechat-modal img {
    width: 180px;
    height: 180px;
  }
}

/* 培训卡片 */
.training-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.training-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.training-img {
  height: 200px;
  overflow: hidden;
}

.training-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.training-card:hover .training-img img {
  transform: scale(1.1);
}

.training-info {
  padding: 20px;
}

.training-info h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
}

.training-meta {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  font-size: 13px;
  color: var(--primary);
}

/* 培训画廊 */
.training-gallery {
  margin-top: 30px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* 图片灯箱 */
.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.image-modal.show {
  display: flex;
}

.image-modal img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.image-modal .modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
  transition: transform 0.3s;
}

.image-modal .modal-close:hover {
  transform: scale(1.2);
}

.image-modal .modal-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 20px;
  border-radius: 20px;
}

/* 画廊图片样式优化 */
.gallery-grid img {
  cursor: zoom-in;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.product-detail-item {
  width: 100%;
  height: 100%;
}

.pager {
  margin: 40px 0;
  text-align: center;
}

/* 分页样式 */
.pagination {
  display: inline-flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination li {
  display: inline-block;
}

.pagination a,
.pagination span {
  display: inline-block;
  min-width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  background: #f5f5f5;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 14px;
}

/* 悬停效果 */
.pagination a:hover {
  background: #e3f2fd;
  color: #1976d2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.2);
}

/* 当前页激活状态 */
.pagination .active span {
  background: #C8102E;
  color: white;
  border-color: #C8102E;
}

/* 禁用状态 */
.pagination .disabled span {
  color: #ccc;
  background: #f9f9f9;
  cursor: not-allowed;
}

/* 上一页/下一页按钮 */
.pagination .prev a,
.pagination .next a {
  font-weight: bold;
  padding: 0 16px;
}

/* 点击效果 */
.pagination a:active {
  transform: scale(0.95);
}