/* 首页特定样式 */
.nav-icons {
  display: flex;
  background-color: var(--bg-white);
  padding: 15px 0;
  margin-top: 10px;
  margin-bottom: 10px;
  justify-content: space-around;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20%;
}
.nav-icon {
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  margin-bottom: 5px;
  font-size: 20px;
  color: white;
  box-shadow: var(--shadow-sm);
}
.nav-item:nth-child(1) .nav-icon {
  background: linear-gradient(135deg, #ff9966 0%, #ff5e62 100%);
}
.nav-item:nth-child(2) .nav-icon {
  background: linear-gradient(135deg, #5b86e5 0%, #36d1dc 100%);
}
.nav-item:nth-child(3) .nav-icon {
  background: linear-gradient(135deg, #c86dd7 0%, #3023ae 100%);
}
.nav-item:nth-child(4) .nav-icon {
  background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
}
.nav-item:nth-child(5) .nav-icon {
  background: linear-gradient(135deg, #f9d423 0%, #ff4e50 100%);
}
.nav-text {
  font-size: 12px;
  color: var(--text-secondary);
}
.technician-list {
  display: flex;
  flex-wrap: wrap;
  background-color: var(--bg-white);
  padding: 10px;
}
.technician-item {
  width: 50%;
  padding: 5px;
  margin-bottom: 10px;
}
.technician-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: white;
  height: 100%;
  transition: transform 0.2s;
}
.technician-card:active {
  transform: scale(0.98);
}
.technician-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
@media (max-width: 480px) {
  .technician-img {
    height: 160px;
  }
}
.quality-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #9d50bb 0%, #6e48aa 100%);
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.online-status {
  position: absolute;
  top: 133px;
  right: 10px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #4caf50;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.online-status.certified {
  color: #ff5722;
}
.online-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #4caf50;
  margin-right: 4px;
  display: inline-block;
}
.online-status.certified .dot {
  background-color: #4caf50;
}
.technician-info {
  padding: 10px;
  background-color: white;
}
.technician-name {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.star-rating {
  display: inline-flex;
  margin-left: 5px;
  color: #ffd700;
}
.star-rating .fa-star {
  font-size: 12px;
  margin-right: 1px;
}
.star-rating .fa-star.empty {
  color: #e0e0e0;
}
.technician-location {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #666;
  margin-bottom: 5px;
}
.technician-location i {
  margin-right: 4px;
  color: #888;
}
.technician-info-extra {
  display: flex;
  flex-wrap: wrap;
  margin-top: 5px;
  font-size: 12px;
  color: var(--text-secondary);
}
.technician-info-extra span {
  display: flex;
  align-items: center;
  margin-right: 15px;
  margin-bottom: 5px;
}
.technician-info-extra i {
  margin-right: 5px;
  color: var(--primary-color);
}
.technician-tags {
  display: flex;
  flex-wrap: wrap;
  margin-top: 5px;
}
.tag {
  background-color: rgba(106, 17, 203, 0.1);
  color: var(--primary-color);
  padding: 2px 8px;
  border-radius: 20px;
  margin-right: 5px;
  margin-bottom: 5px;
  font-size: 12px;
}
.certification-tag {
  background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 5px;
  font-size: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.certification-tag.uncertified {
  background: linear-gradient(135deg, #757f9a 0%, #d7dde8 100%);
}

/* 首页区块标题样式 */
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  font-size: 16px;
  font-weight: bold;
  color: var(--text-primary);
}

.section-title .more {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: normal;
} 

.price-tag {
  display: inline-block;
  margin-left: 10px;
  color: #ff6b6b;
  font-weight: bold;
  font-size: 15px;
}

.star-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stars-container {
  display: inline-flex;
}

.technician-list {
  padding-bottom: 60px;
  /* 为底部导航留出空间 */
}

.technician-item {
  margin-bottom: 15px;
}

.technician-tags {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 60px;
  /* 根据标签高度调整 */
}

.tag {
  display: inline-block;
  margin-right: 5px;
  margin-bottom: 5px;
}