/* ========== 全局变量与重置 ========== */
:root {
  --primary: #ff7800;
  --primary-hover: #e06b00;
  --text: #333;
  --text-light: #666;
  --text-lighter: #999;
  --text-muted: #ccc;
  --bg: #fff;
  --bg-light: #f8f8f8;
  --bg-lighter: #f9f9f9;
  --border: #eee;
  --border-light: #f0f0f0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.05);
  --radius: 6px;
  --radius-sm: 4px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
  --header-height: 70px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

body {
  font-family: "Microsoft Yahei", sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== 通用工具类 ========== */
.primary-color {
  color: var(--primary);
}

.active-highlight {
  background-color: var(--primary) !important;
  color: var(--bg) !important;
}

.page-num-current {
  composes: active-highlight;
}

/* 通用链接悬停效果 */
a {
  transition: var(--transition);
}

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

/* ========== 顶部顶栏 ========== */
.top-bar {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-light);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
}

.top-phone {
  color: var(--primary);
  font-weight: bold;
}

.top-right {
  display: flex;
  gap: 20px;
}

.top-right a {
  color: var(--text-light);
}

/* ========== 头部导航 ========== */
.header {
  background: var(--bg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 999;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  padding: 1rem 0.8rem;
}

.logo img {
  height: 66px;
}

/* 导航列表 */
.nav-list {
  display: flex;
  gap: 30px;
}

.nav-item a {
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
}

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

/* 头部城市定位 */
.header-city {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  color: var(--primary);
  margin-left: 0;
  margin-right: 20px;
}

.header-city i {
  font-size: 18px;
}

/* 移动端汉堡菜单 */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1000;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text);
  transition: var(--transition);
}

/* ========== 热门城市 ========== */
.hot-city {
  background: var(--bg);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.hot-city .container {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 14px;
}

.city-title {
  color: var(--primary);
  font-weight: bold;
}

.city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.city-list a {
  color: var(--text);
}

/* ========== 三栏布局：服务+轮播+公告 ========== */
.service-banner-section {
  padding: 20px 0;
  background: var(--bg);
}

.service-wrap {
  display: flex;
  gap: 15px;
  align-items: stretch;
}

/* 左侧服务 */
.service-left {
  width: 240px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 490px;
  transition: max-height 0.4s ease;
  position: relative;
}

.service-left.expanded {
  max-height: 1000px;
}

.service-expand-btn {
  position: sticky;
  bottom: 0;
  width: 100%;
  height: 36px;
  line-height: 36px;
  text-align: center;
  background: var(--bg);
  border-top: 1px solid var(--border);
  color: var(--primary);
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  z-index: 10;
}

.service-expand-btn:hover {
  background: #fafafa;
}

.service-item-box h3 {
  color: var(--text);
  font-weight: bold;
  font-size: 16px;
  padding: 12px 15px;
  border-bottom: 1px solid #f5f5f5;
  margin: 0;
}

.service-item-box ul {
  padding: 10px 15px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.service-item-box li a {
  color: #555;
  font-size: 14px;
}

/* 中间轮播 */
.banner-middle {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.banner-top-ad {
  display: flex;
  gap: 10px;
  height: 140px;
}

.banner-top-ad a {
  flex: 1;
}

.banner-top-ad img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
}

.swiper {
  height: 340px;
  width: 100%;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.swiper-wrapper {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.swiper-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 右侧公告 */
.info-right {
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.right-ad {
  height: 100px;
}

.right-ad img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
}

.notice-box {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.notice-title {
  color: var(--primary);
  font-weight: bold;
  margin-bottom: 12px;
  font-size: 16px;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 8px;
}

.notice-box ul {
  flex: 1;
}

.notice-box li {
  margin-bottom: 10px;
}

.notice-box li a {
  color: var(--text);
  font-size: 14px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== 服务展示(TAB切换) ========== */
.case-show {
  padding: 50px 0;
  background: var(--bg-lighter);
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.section-title {
  font-size: 26px;
  color: var(--text);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 50px;
  height: 3px;
  background: var(--primary);
}

/* TAB导航 */
.tab-nav {
  display: flex;
  gap: 20px;
}

.tab-item {
  padding: 6px 18px;
  border: 1px solid var(--border);
  border-radius: 30px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-light);
  transition: var(--transition);
}

.tab-item.active {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}

.tab-content {
  display: none;
}

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

/* 案例网格 */
.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.case {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.case img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.case p {
  padding: 12px;
  text-align: center;
  font-size: 14px;
  color: var(--text);
}

/* ========== 新闻资讯 ========== */


/* ========== 底部 ========== */
.footer {
  background: var(--text);
  color: var(--bg);
  padding: 50px 0 20px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  padding-bottom: 30px;
  border-bottom: 1px solid #444;
  margin-bottom: 20px;
}

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--primary);
}

.footer-col ul li {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-col ul li a {
  color: var(--text-muted);
}

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

/* 底部二维码 */
.footer-qrcode .qrcode-wrap {
  display: flex;
  gap: 20px;
}

.qrcode-item {
  text-align: center;
}

.qrcode-item img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  margin-bottom: 5px;
}

.qrcode-item p {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-bottom,.footer-bottom a{
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}
/* ========== 右侧悬浮栏 ========== */
.float-sidebar {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.float-item {
  position: relative;
  width: 60px;
  height: 60px;
  color: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.float-item:first-child {
  border-radius: 8px 8px 0 0;
}

.float-item:last-child {
  border-radius: 0 0 8px 8px;
}

.float-item i {
  font-size: 24px;
  margin-bottom: 2px;
}

.float-item span {
  font-size: 12px;
  line-height: 1.2;
}

.float-wechat {
  background: #07c160;
}

.float-phone {
  background: var(--primary);
}

.float-top {
  background: var(--text-light);
}

/* 悬浮弹出层 */
.float-popup {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  width: 140px;
  background: var(--bg);
  color: var(--text);
  padding: 10px;
  border-radius: var(--radius);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.float-popup img {
  width: 100px;
  height: 100px;
  margin: 0 auto 5px;
}

.float-item:hover .float-popup {
  opacity: 1;
  visibility: visible;
}

/* ========== 华东地区城市列表页 ========== */
.city-section {
  padding: 40px 0;
  background: var(--bg);
}

/* 面包屑导航 */
.breadcrumb,
.city-breadcrumb {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.breadcrumb a,
.city-breadcrumb a {
  color: var(--text-light);
}

.breadcrumb .active,
.city-breadcrumb .active {
  color: var(--primary);
  font-weight: 500;
}

/* 城市容器 */
.city-container {
  background: var(--bg);
  padding: 25px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.city-row {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  line-height: 1.8;
  flex-wrap: wrap;
  gap: 8px;
}

.city-row:last-child {
  margin-bottom: 0;
}

.province-name {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary);
  min-width: 60px;
  flex-shrink: 0;
}

.city-row .city-list {
  gap: 18px;
}

.city-row .city-list a {
  font-size: 16px;
  color: var(--text);
  white-space: nowrap;
}

/* ========== 服务列表页 ========== */
.service-list-section {
  padding: 30px 0;
  background: var(--bg-lighter);
}

/* 筛选栏 */
.filter-bar {
  background: var(--bg);
  padding: 15px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.filter-label {
  font-size: 14px;
  color: var(--text);
  margin-right: 8px;
}

.filter-select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
}

/* 通用可点击标签列表(地区/类别) */
.area-list,
.type-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.area-list a,
.type-list a {
  padding: 6px 12px;
  font-size: 14px;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.area-list a:hover,
.area-list a.active,
.type-list a:hover,
.type-list a.active {
  background: var(--primary);
  color: var(--bg);
}

/* 列表+边栏容器 */
.list-wrap {
  display: flex;
  gap: 20px;
}

/* 左侧服务列表 */
.service-list {
  flex: 1;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-md);
}



/* 分页 */
.pagination {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.pagination a {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  transition: var(--transition);
}

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

.page-total {
  font-size: 13px;
  color: var(--text-lighter);
  margin-left: 10px;
}

/* 右侧边栏 */
.sidebar {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-module {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.module-title {
  background: var(--primary);
  color: var(--bg);
  padding: 12px 15px;
  font-size: 15px;
  font-weight: 500;
}

.module-content {
  padding: 15px;
}

.recommend-item {
  display: block;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  color: var(--text);
  font-size: 14px;
}

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

.news-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

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

.news-list a {
  color: var(--text);
  font-size: 14px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-list a:hover,
.recommend-item:hover {
  color: var(--primary);
}

/* ========= slider样式 ========== */
.slideshow {
  height: 400px;
  object-fit: cover;
}

/* ========== 响应式设计 ========== */
@media (max-width: 992px) {
  .service-wrap {
    flex-direction: column;
  }

  .service-left,
  .info-right,
  .banner-middle {
    width: 100%;
  }

  .notice-box {
    height: auto;
    min-height: 340px;
  }

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

  .footer-top {
    flex-wrap: wrap;
    gap: 30px;
  }

  .footer-col {
    width: 48%;
  }

  .list-wrap {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .item-thumb {
    width: 140px;
  }

  .item-thumb img {
    height: 100px;
  }
}

@media (max-width: 768px) {
  .nav-list {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 999;
  }

  .nav-list.show {
    display: flex;
  }

  .nav-item {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
  }

  .menu-toggle {
    display: flex;
  }

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

  .footer-col {
    width: 100%;
  }

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

  .item-thumb {
    width: 100%;
  }

  .item-thumb img {
    height: 160px;
  }

  .item-action {
    width: 100%;
    justify-content: flex-start;
    margin-top: 10px;
  }

  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .city-container {
    padding: 15px 20px;
  }

  .province-name {
    font-size: 18px;
    min-width: 50px;
  }

  .city-row .city-list {
    gap: 12px;
  }

  .city-row .city-list a {
    font-size: 14px;
  }
}


/* 主容器 —— 服务模块 */
.service-module {
  overflow: hidden;
  transition: all 0.2s;
}

/* ========= 上半部分：左侧标题 + 右侧横向列表 ========= */
.service-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid #eef2f8;
  padding-bottom: 1rem;
}

/* 左侧 “服务项目” 大标 */
.title-section {
  flex-shrink: 0;
}

.title-label {
  font-size: 26px;
  letter-spacing: -0.01em;
  background-clip: text;
  -webkit-background-clip: text;
  position: relative;
  display: inline-block;
}

.title-label::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--primary);
  border-radius: 8px;
}

/* 右侧横向滚动列表 (支持悬浮延时切换) */
.service-nav {
  flex: 0 0 auto;
  min-width: 200px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: thin;
  padding-bottom: 6px;
  display: flex;
  gap: 0.65rem;
  flex-wrap: nowrap;
  align-items: center;
  margin-left: auto;
}

.service-nav::-webkit-scrollbar {
  height: 5px;
}

.service-nav::-webkit-scrollbar-track {
  background: #e9edf2;
  border-radius: 10px;
}

.service-nav::-webkit-scrollbar-thumb {
  background: #b9c6d4;
  border-radius: 10px;
}

/* 横向列表项样式 */
.service-nav .nav-item {
  display: inline-flex;
  padding: 0.5rem 1.3rem;
  background: #f8fafc;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #2c3e4e;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid #e2eaf1;
  white-space: nowrap;
  user-select: none;
}

/* 当前激活样式 (高亮当前分类) */
.service-nav .nav-item.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 6px 12px rgba(44, 140, 110, 0.18);
}

/* ========= 下方：8个图片+文字 4x2 网格布局，图片铺满卡片 ========= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1.2rem;
}

/* 图文卡片 — 图片完全铺满卡片区域 */
.service-card {
  position: relative;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.25s;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  background: #eef2f5;
  opacity: 0;
  transform: translateY(20px);
  animation: cardFadeInUp 0.4s ease forwards;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -12px rgba(0, 0, 0, 0.2);
}

/* 逐个出现动画 */
@keyframes cardFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* 为每个卡片设置不同的延迟 (最多8个) */
.service-card:nth-child(1) {
  animation-delay: 0s;
}

.service-card:nth-child(2) {
  animation-delay: 0.05s;
}

.service-card:nth-child(3) {
  animation-delay: 0.1s;
}

.service-card:nth-child(4) {
  animation-delay: 0.15s;
}

.service-card:nth-child(5) {
  animation-delay: 0.2s;
}

.service-card:nth-child(6) {
  animation-delay: 0.25s;
}

.service-card:nth-child(7) {
  animation-delay: 0.3s;
}

.service-card:nth-child(8) {
  animation-delay: 0.35s;
}

/* 图片铺满卡片 */
.card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.service-card:hover .card-img img {
  transform: scale(1.03);
}

/* 文字标题层：半透明深色底衬 */
.card-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.3) 60%, transparent);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 0.75rem 0.9rem;
  text-align: center;
  letter-spacing: 0.3px;
  z-index: 2;
  line-height: 1.3;
  transition: background 0.2s;
}

/* 响应式 */
@media (max-width: 950px) {
  .service-module {
    padding: 1.5rem;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .title-label {
    font-size: 1.7rem;
  }
}

@media (max-width: 550px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .service-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-nav {
    width: 100%;
    margin-left: 0;
  }

  .card-title {
    font-size: 0.85rem;
    padding: 0.7rem 0.5rem 0.6rem;
  }
}

.module-footnote {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: #8d9db0;
  border-top: 1px solid #eef2f8;
  padding-top: 1.2rem;
}