/* 浏览器样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333333;
  background: #f5f7fa;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

/* 服务商列表页面样式 */
.zh_fws_page {
  background: #f5f7fa;
  min-height: 100vh;
}

.zh_page_header {
  background: linear-gradient(135deg, #333333 0%, #4a4a4a 100%);
  color: white;
  padding: 60px 0 40px;
  position: relative;
  overflow: hidden;
}

.zh_page_header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover;
  opacity: 0.1;
  z-index: 1;
}

.zh_page_header_content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.zh_page_title {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 15px;
}

.zh_page_subtitle {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 30px;
}

.zh_breadcrumb {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  border-radius: 8px;
  display: inline-block;
}

.zh_breadcrumb a {
  color: #0093ff;
  margin-right: 8px;
}

.zh_breadcrumb span {
  margin: 0 8px;
  opacity: 0.7;
}

.zh_container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.zh_main_content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.zh_providers_section {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 20px rgba(0, 76, 190, 0.08);
  border: 1px solid #e5e5e5;
}

.zh_section_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #004cbe;
}

.zh_section_title {
  font-size: 24px;
  font-weight: 600;
  color: #333333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.zh_filter_tabs {
  display: flex;
  gap: 10px;
}

.zh_filter_tab {
  padding: 8px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
}

.zh_filter_tab.active,
.zh_filter_tab:hover {
  background: #004cbe;
  color: white;
  border-color: #004cbe;
}

.zh_providers_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
}

.zh_provider_card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 76, 190, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e5e5e5;
}

.zh_provider_card:hover {
  box-shadow: 0 8px 30px rgba(0, 76, 190, 0.15);
  transform: translateY(-2px);
  border-color: #004cbe;
}

.zh_provider_header {
  background: linear-gradient(135deg, #333333 0%, #4a4a4a 100%);
  color: white;
  padding: 20px;
  position: relative;
}

.zh_provider_info {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.zh_provider_avatar {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zh_provider_avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.zh_provider_details h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.zh_provider_meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 14px;
  opacity: 0.9;
}

.zh_provider_meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.zh_verified_badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #4CAF50;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.zh_provider_body {
  padding: 20px;
}

.zh_provider_description {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.zh_specialties {
  margin-bottom: 20px;
}

.zh_specialties_title {
  font-size: 14px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 10px;
}

.zh_specialties_tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zh_specialty_tag {
  background: #F3E5F5;
  color: #7B1FA2;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.zh_provider_works {
  margin-bottom: 20px;
}

.zh_works_title {
  font-size: 14px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.zh_works_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.zh_work_item {
  border-radius: 8px;
  overflow: hidden;
  background: #f5f7fa;
  transition: all 0.3s;
  border: 1px solid #e5e5e5;
}

.zh_work_item:hover {
  transform: scale(1.02);
  border-color: #004cbe;
}

.zh_work_image {
  width: 100%;
  height: 80px;
  object-fit: contain;
  background: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zh_work_title {
  padding: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #333333;
  text-align: center;
  line-height: 1.3;
  height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zh_provider_contact {
  background: #f5f7fa;
  border-radius: 8px;
  padding: 15px;
  margin-top: 15px;
  border: 1px solid #e5e5e5;
}

.zh_contact_row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.zh_contact_row:last-child {
  margin-bottom: 0;
}

.zh_contact_label {
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
}

.zh_contact_value {
  font-size: 14px;
  font-weight: 500;
  color: #333333;
}

.zh_contact_btn {
  background: #004cbe;
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  width: 100%;
  margin-top: 10px;
}

.zh_contact_btn:hover {
  background: #0093ff;
  transform: translateY(-1px);
}

.zh_sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.zh_sidebar_widget {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 15px rgba(0, 76, 190, 0.08);
  border: 1px solid #e5e5e5;
}

.zh_widget_title {
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #004cbe;
  display: flex;
  align-items: center;
  gap: 8px;
}

.zh_hot_products_grid {
  display: grid;
  gap: 15px;
}

.zh_hot_product_item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  transition: all 0.3s;
  border: 1px solid #e5e5e5;
}

.zh_hot_product_item:hover {
  background: #f5f7fa;
  box-shadow: 0 2px 8px rgba(0, 76, 190, 0.1);
  border-color: #004cbe;
}

.zh_hot_product_image {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zh_hot_product_image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.zh_hot_product_info h4 {
  font-size: 14px;
  font-weight: 500;
  color: #333333;
  margin-bottom: 5px;
  line-height: 1.3;
}

.zh_hot_product_meta {
  font-size: 12px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
}

.zh_stats_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.zh_stat_item {
  text-align: center;
  padding: 20px;
  background: #f5f7fa;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
}

.zh_stat_number {
  font-size: 24px;
  font-weight: 600;
  color: #004cbe;
  margin-bottom: 5px;
}

.zh_stat_label {
  font-size: 14px;
  color: #666;
}

.zh_pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
  gap: 10px;
}

.zh_pagination a,
.zh_pagination span {
  padding: 10px 15px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  color: #666;
  font-weight: 500;
  transition: all 0.3s;
}

.zh_pagination a:hover {
  background: #004cbe;
  color: white;
  border-color: #004cbe;
}

.zh_pagination .current {
  background: #004cbe;
  color: white;
  border-color: #004cbe;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .zh_main_content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .zh_sidebar {
    grid-row: 1;
  }
}

@media (max-width: 768px) {
  .zh_page_title {
    font-size: 28px;
  }
  
  .zh_page_subtitle {
    font-size: 16px;
  }
  
  .zh_providers_grid {
    grid-template-columns: 1fr;
  }
  
  .zh_provider_header {
    padding: 15px;
  }
  
  .zh_provider_body {
    padding: 15px;
  }
  
  .zh_works_grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .zh_stats_grid {
    grid-template-columns: 1fr;
  }
  
  .zh_main_content {
    padding: 0 15px;
  }
  
  .zh_container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .zh_provider_info {
    flex-direction: column;
    text-align: center;
  }
  
  .zh_provider_meta {
    justify-content: center;
  }
  
  .zh_works_grid {
    grid-template-columns: 1fr;
  }
  
  .zh_filter_tabs {
    flex-wrap: wrap;
  }
  
  .zh_contact_row {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }
}

/* 动画效果 */
.zh_provider_card {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.zh_provider_card:nth-child(1) { animation-delay: 0.1s; }
.zh_provider_card:nth-child(2) { animation-delay: 0.2s; }
.zh_provider_card:nth-child(3) { animation-delay: 0.3s; }
.zh_provider_card:nth-child(4) { animation-delay: 0.4s; }
.zh_provider_card:nth-child(5) { animation-delay: 0.5s; }
.zh_provider_card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
