﻿/* 服务商详情页样式 */
:root {
  --primary-color: #386e34;
  --primary-light: #ffead1;
  --primary-dark: #e06000;
  --secondary-color: #2c3e50;
  --text-color: #333333;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #666666;
  --white: #ffffff;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --transition: all 0.3s ease;
}

/* 全局样式 */
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: #f9f9f9;
}

.zf_container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 过渡动画 */
.wow {
  visibility: hidden;
}

/* 面包屑导航 */
.zf_breadcrumb {
  background-color: var(--white);
  padding: 15px 0;
  border-bottom: 1px solid var(--medium-gray);
  margin-bottom: 30px;
}

.zf_breadcrumb_container {
  display: flex;
  align-items: center;
}

.zf_breadcrumb_icon {
  width: 16px;
  height: 16px;
  margin-right: 10px;
}

.zf_breadcrumb_text {
  font-size: 14px;
  color: var(--dark-gray);
}

.zf_breadcrumb_text a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.zf_breadcrumb_text a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.zf_breadcrumb_text span {
  color: var(--secondary-color);
  font-weight: 500;
}

/* 服务商预览区 */
.zf_provider_preview {
  margin-bottom: 30px;
}

.zf_provider_card {
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 25px;
}

.zf_provider_header {
  margin-bottom: 25px;
  border-bottom: 1px solid var(--medium-gray);
  padding-bottom: 20px;
}

.zf_provider_title {
  font-size: 28px;
  color: var(--secondary-color);
  margin: 0;
  font-weight: 700;
}

.zf_provider_flex {
  display: flex;
  gap: 30px;
}

/* 左侧图片展示区 */
.zf_provider_gallery {
  width: 40%;
}

.zf_provider_main_image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #fff;
    height: 414px;
}

.zf_provider_main_image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}

.zf_provider_main_image:hover img {
  transform: scale(1.05);
}

.zf_provider_image_overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.zf_provider_main_image:hover .zf_provider_image_overlay {
  opacity: 1;
}

.zf_provider_zoom_icon {
  cursor: pointer;
  background-color: rgba(255, 122, 0, 0.8);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8);
  transition: var(--transition);
}

.zf_provider_main_image:hover .zf_provider_zoom_icon {
  transform: scale(1);
}

/* 右侧服务商信息 */
.zf_provider_info {
  width: 60%;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.zf_provider_info_section {
  margin-bottom: 5px;
}

.zf_provider_info_title {
  color: var(--secondary-color);
  font-size: 18px;
  margin: 0 0 15px 0;
  position: relative;
  padding-left: 12px;
  font-weight: 600;
}

.zf_provider_info_title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  height: 16px;
  width: 4px;
  background-color: var(--primary-color);
  border-radius: 4px;
}

.zf_provider_summary {
  color: var(--text-color);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  background-color: var(--light-gray);
  padding: 15px;
  border-radius: var(--radius);
  border-left: 3px solid var(--primary-color);
}

.zf_provider_info_list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.zf_provider_info_list li {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px dashed var(--medium-gray);
}

.zf_provider_info_list li:last-child {
  border-bottom: none;
}

.zf_provider_info_label {
  display: flex;
  align-items: center;
  width: 100px;
  color: var(--dark-gray);
  font-size: 14px;
}

.zf_provider_info_value {
  flex: 1;
  font-weight: 500;
  color: var(--secondary-color);
}

.zf_provider_icon {
  width: 16px;
  height: 16px;
  margin-right: 5px;
  background-size: contain;
  display: inline-block;
}

.zf_icon_contact {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23386e34'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
}

.zf_icon_phone {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23386e34'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
}

.zf_login_link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.zf_login_link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* 联系按钮 */
.zf_provider_contact_section {
  margin-top: 15px;
}

.zf_provider_call_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(56, 110, 52, 0.2);
  width: 100%;
}

.zf_provider_call_btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(56, 110, 52, 0.3);
  color: var(--white);
}

/* 详情内容区 */
.zf_provider_main {
  margin-bottom: 50px;
}

.zf_provider_section {
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 30px;
}

.zf_provider_section_header {
  padding: 15px 20px;
  background-color: var(--primary-color);
  position: relative;
}

.zf_provider_section_title {
  color: var(--white);
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.zf_provider_section_content {
  padding: 25px;
  color: var(--text-color);
  line-height: 1.8;
  font-size: 15px;
}

.zf_provider_section_content p {
  margin-bottom: 20px;
}

.zf_provider_section_content img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 15px 0;
}

.zf_provider_images {
  margin-top: 30px;
}

.zf_provider_full_image {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* 服务列表区域 */
.zf_service_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.zf_service_item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.zf_service_item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.zf_service_item_inner {
  background: var(--white);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.zf_service_image {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.zf_service_image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
    margin: -4px 0 0;
}

.zf_service_item:hover .zf_service_image img {
  transform: scale(1.1);
}

.zf_service_overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  opacity: 0;
  transition: var(--transition);
}

.zf_service_item:hover .zf_service_overlay {
  opacity: 1;
}

.zf_service_info {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.zf_service_title {
  font-size: 16px;
  margin: 0 0 15px 0;
  line-height: 1.4;
}

.zf_service_title a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition);
}

.zf_service_title a:hover {
  color: var(--primary-color);
}

.zf_service_actions {
  margin-top: auto;
}

.zf_service_btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: var(--light-gray);
  color: var(--primary-color);
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition);
}

.zf_service_btn:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* 空列表提示 */
.zf_empty_list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  color: var(--dark-gray);
}

.zf_empty_icon {
  font-size: 40px;
  margin-bottom: 15px;
  opacity: 0.6;
}

.zf_empty_text {
  font-size: 16px;
}

/* 相关服务商 */
.zf_related_list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.zf_related_item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.zf_related_image {
    background: #fff;
    position: relative;
}

.zf_related_image img {
    width: 100%;
    height: 272px;
    object-fit: contain;
    display: block;
    margin: 0;
}

.zf_related_overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.zf_related_info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  color: var(--white);
}

.zf_related_title {
  margin: 0 0 8px 0;
  font-size: 15px;
}

.zf_related_title a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.zf_related_title a:hover {
  color: var(--primary-light);
}

.zf_related_meta {
  font-size: 12px;
  opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .zf_provider_flex {
    flex-direction: column;
  }

  .zf_provider_gallery,
  .zf_provider_info {
    width: 100%;
  }

  .zf_service_grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .zf_related_list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .zf_provider_title {
    font-size: 22px;
  }

  .zf_service_grid {
    grid-template-columns: 1fr;
  }

  .zf_service_image {
    height: 200px;
  }

  .zf_related_list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .zf_provider_main_image img {
    height: 250px;
  }
}
