/* 基础样式 */
:root {
  --secondary-color: #f0f2f5;
  --text-color: #333;
  --text-light: #666;
  --border-color: #e8e8e8;
  --white: #fff;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f5f7fa;
}

/* 服务容器 */
.service-container {
  display: flex;
  max-width: 1200px;
  margin: 20px auto;
  gap: 20px;
  padding: 0 15px;
}

/* 服务菜单 */
.service-menu {
  width: 280px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 80px;
  height: auto;
  /* 改为自动高度 */
  min-height: 100%;
  /* 关键属性：最小高度100% */
  align-self: stretch;
  /* 关键属性：拉伸高度 */
}

.service-list {
  list-style: none;
}

.service-list li {
  margin-bottom: 8px;
}

.service-list a {
  display: block;
  padding: 12px 15px;
  color: var(--text-light);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 15px;
}

.service-list a:hover {
  background: var(--secondary-color);
  color: var(--primary);
}

.service-list a.active {
  background: var(--primary);
  color: var(--white);
  font-weight: 500;
}

/* 服务详情区域调整 */
.service-detail {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  min-height: 300px;
  /* 设置最小高度 */
}


.service-title {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
}

/* 内容区块 */
.section {
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--secondary-color);
}

.section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.section-title {
  font-size: 20px;
  color: var(--text-color);
  margin-bottom: 15px;
  font-weight: 600;
  position: relative;
  padding-left: 15px;
}

.section-title:before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  height: 18px;
  width: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.section-content {
  padding-left: 15px;
}

/* 流程步骤 */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.process-step {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 15px;
  background: var(--secondary-color);
  border-radius: 8px;
}

.step-number {
  background: var(--secondary);
  color: var(--white);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 500;
}

.step-content {
  flex: 1;
}

/* 列表样式 */
.feature-list {
  list-style: none;
}

.feature-list li {
  padding: 8px 0;
  position: relative;
  padding-left: 25px;
}

.feature-list li:before {
  content: "•";
  color: var(--primary);
  font-size: 20px;
  position: absolute;
  left: 5px;
  top: 3px;
}

/* 加载状态 */
.loading-text {
  color: var(--text-light);
  font-style: italic;
  padding: 10px 0;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .service-container {
    flex-direction: column;
    margin: 10px auto;
    gap: 15px;
  }

  .service-menu {
    width: 100%;
    position: static;
    padding: 15px;
  }

  .service-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
  }

  .service-list li {
    margin: 0;
  }

  .service-list a {
    padding: 10px;
    text-align: center;
    background: var(--secondary-color);
  }

  .service-list a.active {
    background: var(--primary);
  }

  .service-detail {
    padding: 20px;
  }

  .service-title {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .section-title {
    font-size: 18px;
  }
}

/* 小屏幕手机 */
@media (max-width: 480px) {
  .service-container {
    padding: 0 10px;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .service-detail {
    padding: 15px;
  }

  .service-title {
    font-size: 20px;
  }

  .section {
    margin-bottom: 25px;
    padding-bottom: 20px;
  }

}

/* 新增移动端Tab菜单样式 */
.mobile-tab-menu {
  display: none;
  /* 默认隐藏，只在移动端显示 */
  position: sticky;
  top: 0;
  z-index: 99;
  /* 低于导航菜单 */
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.tab-scroll-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 5px;
  /* 给滚动条留空间 */
  width: auto;
}

.tab-list {
  display: flex;
  list-style: none;
  padding: 0 10px;
  white-space: nowrap;
}

.tab-list li {
  flex: 0 0 auto;
  margin-right: 10px;
}

.tab-list a {
  display: block;
  padding: 8px 16px;
  background: var(--secondary-color);
  color: var(--text-light);
  border-radius: 16px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.tab-list a.active {
  background: var(--primary);
  color: var(--white);
  font-weight: 500;
}

/* 调整原有移动端样式 */
@media (max-width: 768px) {
  .mobile-tab-menu {
    display: block;
  }

  .service-menu {
    display: none;
    /* 隐藏侧边菜单 */
  }

  .service-container {
    margin-top: 0;
    /* 移除顶部间距 */
  }

  .service-detail {
    margin-top: 10px;
  }
}

/* 小屏幕调整 */
@media (max-width: 480px) {
  .tab-list a {
    padding: 6px 12px;
    font-size: 13px;
  }
}

/* 简约卡片样式 */
.card-process {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.process-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.process-card .step-number {
  background: var(--secondary);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-weight: bold;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .card-process {
    grid-template-columns: 1fr;
  }
}

.consult-card {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
}

.card-content {
  width: 260px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: block;
}

.card-header,
.card-body {
  padding: 15px;
}

.card-header {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
}

.card-header h3 {
  margin: 0;
  font-size: 16px;
  flex: 1;
}

.close-btn {
  cursor: pointer;
  font-size: 20px;
  display: none;
}

.card-body p {
  display: flex;
  align-items: center;
  margin: 0 0 10px;
}

.card-body i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.qrcode {
  text-align: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed #eee;
}

.qrcode img {
  width: 100px;
  margin-bottom: 5px;
}

.mobile-trigger {
  display: none;
  width: 50px;
  height: 50px;
  background: #1890ff;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  font-size: 20px;
  cursor: pointer;
}

.card-content {
  display: none;
  position: fixed;
  right: 15px;
  bottom: 70px;
}

.mobile-trigger {
  display: block;
}

.close-btn {
  display: block;
}

.card-content.show {
  display: block;
}