/* ==========================================================================
   服务区域样式
   ========================================================================== */

#service-index-placeholder {
  /* margin-top: 48px; */
  width: 1500px;
  position: relative;
}

/* 中屏幕响应式样式 - 1200px-1366px */
@media (min-width: 1200px) and (max-width: 1366px) {
  #service-index-placeholder {
    width: 1080px; /* 调整为1080px */
  }
}

/* 标题图片样式 */
.service-title-img {
  width: 174px;
  height: 79px;
  margin: 64px auto;
}

/* 服务列表 */
.service-list {
  width: 100%;
  display: flex;
  justify-content: space-between;
  position: relative;
  flex-wrap: nowrap;
  column-gap: 4.41px;
}


/* ==========================================================================
   服务卡片样式
   ========================================================================== */

/* 卡片容器 */
.service-card-wrapper {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  margin: 0;
  flex: 0 0 auto;
}

/* 卡片基础样式 */
.service-card {
  /* 布局 */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-shrink: 0;
  text-align: left;
  
  /* 尺寸 */
  width: 297.36px;
  height: 350px;
  padding: 16px 21.36px 16px 16px;
  
  /* 外观 */
  background: #4da3e2; /* 默认颜色 */
  color: #fff;
  border-radius: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  font-size: 16px;
  line-height: 24px;
  
  /* 交互 */
  cursor: pointer;
  overflow: visible;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.service-card:not(:hover):not(.active) {
  filter: none;
}

.service-card:hover, 
.service-card.active {
  z-index: 10;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

/* 卡片内容 */
.service-img {
  display: block;
  width: 260px;
  margin-bottom: 10px;
}
.service-img img {
  width: 260px;
  height: 138px;
}

.service-desc {
  width: 100%;
  font-size: 12px;
  text-align: left;
  white-space: pre-wrap;
  opacity: 0.9;
  margin-bottom: 0;
}

/* 服务行 */
.service-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex: 0 0 auto;
}

.service-panel-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  padding: 10px 24px;
  z-index: 2;
}

/* ==========================================================================
   子菜单样式
   ========================================================================== */

.service-submenu {
  display: flex;
  align-items: center;
  width: 0;
  height: 270px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 4px 0 24px rgba(0,0,0,0.08);
  transition: width 0.3s ease, padding 0.3s ease;
  position: relative;
}

.service-submenu.active {
  width: 297.36px;
  height: 350px;

  padding: 0px 10px 0 26px;
  margin-left: -16px;
  background-position: center center;
  background-size: cover;
}

.menu-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 10px;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.menu-grid-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 297.36px;
  height: 350px;
  background-color: rgba(0, 0, 0, 0.6);
}

/* 菜单项 */
.menu-item {

  width: 160px;
  height: 32px;
  padding: 0 52px;

  padding: 3px 5px;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-item:hover {
  background: #edf2f7;
  transform: translateY(-1px);
  color: #222;
}

@media (max-width: 1200px) {
  #service-index-placeholder {
    width: 100%;
    overflow-x: auto;
  }

  .service-title-img {
    width: 114.84px;
    height: 52.14px;
    margin: 64px auto 16px;
  } 
}

/* ==========================================================================
   移动端样式
   ========================================================================== */

/* 移动端响应式设计 - 768px以下 */
@media (max-width: 1200px) {
  #service-index-placeholder {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .service-title-img {
    width: 120px;
    height: 55px;
    margin: 32px auto;
  }

  /* 移动端服务列表：垂直布局 */
  .service-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: visible;
    width: 100%;
  }

  /* 移动端服务行：垂直布局 */
  .service-row {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    position: relative;
  }

  /* 移动端卡片容器 */
  .service-card-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: -14px;
  }

  /* 移动端卡片样式 */
  .service-card {
    width: 95%;
    height: fit-content !important;
    padding: 16px;
    border-radius: 8px 8px 0 0;
    margin: 0 auto;
    margin-bottom: 12px;
    display: flex;
    flex-shrink: 0;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
  }

  .service-img {
    width: 120px;

  }

  .service-img img {
    width: 120px;
    /* max-width: 200px; */
    height: auto;
    /* aspect-ratio: 260/138; */
  }

  .service-desc {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.95;
    margin-left: -40px;
    text-align: justify;
    height: fit-content;
  }

  /* 移动端子菜单：一直展开状态 */
  .service-submenu {
    display: block !important;
    width: 95% !important;
    height: auto !important;
    padding: 16px !important;
    margin: 0 auto !important;
    overflow: visible;
    background-color: #f8f9fa80 !important;
    border-radius:  0 0 8px 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    position: relative !important;
    opacity: 1;
    transform: none;
  }

  /* 移动端遮罩层显示 */
  .menu-grid-mask {
    width: 100% !important;
    height: 100% !important;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: block !important;
    z-index: 1;
    border-radius:  0 0 8px 8px;
  }

  /* 移动端菜单网格 */
  .menu-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding: 0;
    width: 100%;
  }

  /* 移动端菜单项 */
  .menu-item {
    width: auto;
    height: auto;
    min-width: 80px;
    padding: 8px 12px;
    background: #ffffffa0;
    color: #333;
    font-size: 13px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
  }

  .menu-item:hover {
    background: #f0f0f0;
    color: #000;
    transform: none;
  }

  /* 移动端面板内层 */
  .service-panel-inner {
    padding: 8px 16px;
  }
}

/* 超小屏幕优化 - 480px以下
@media (max-width: 480px) {
  .service-card {
    padding: 16px 12px;
    min-height: 180px;
  }

  .service-title-img {
    width: 100px;
    height: 45px;
    margin: 24px auto;
  }

  .service-desc {
    font-size: 13px;
  }

  .service-submenu {
    padding: 12px !important;
  }

  .menu-item {
    font-size: 12px;
    padding: 6px 10px;
    min-width: 70px;
  }

  .service-list {
    gap: 12px;
  }
} */