/* ============================================================
   product_detail.css - 产品详情页样式
   前缀标识: zs
============================================================ */

/* ============================================================
   产品详情Banner
============================================================ */
.zs-pd-banner {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.zs-pd-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.zs-pd-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* 文案左对齐：左边距与页面内容区（max-width 1400px + 30px 内边距）对齐 */
  padding: 0 30px 0 max(30px, calc(50% - 670px));
  text-align: left;
}

.zs-pd-banner-title {
  font-size: 40px;
  font-weight: 400;
  color: #ffffff;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
  letter-spacing: 2px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   面包屑导航
============================================================ */
.zs-breadcrumb {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 30px;
}

.zs-breadcrumb ul {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.zs-breadcrumb li {
  font-size: 13px;
  color: #999999;
}

.zs-breadcrumb li a {
  color: #666666;
  transition: color 0.3s ease;
}

.zs-breadcrumb li a:hover {
  color: #5B4A9E;
}

.zs-breadcrumb li span.zs-bc-sep {
  margin: 0 2px;
  color: #cccccc;
}

.zs-breadcrumb li.zs-bc-current {
  color: #333333;
  font-weight: 500;
}

/* ============================================================
   产品详情主区域 - 左图右信息
============================================================ */
.zs-pd-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 30px 50px;
  display: flex;
  gap: 50px;
}

/* 左侧图片 */
.zs-pd-gallery {
  width: 50%;
  flex-shrink: 0;
}

.zs-pd-gallery-main {
  width: 100%;
  border: 1px solid #eeeeee;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #fafafa;
}

.zs-pd-gallery-main img {
  width: 100%;
  height: auto;
  display: block;
}

.zs-pd-gallery-thumbs {
  display: flex;
  gap: 10px;
}

.zs-pd-thumb {
  width: 80px;
  height: 80px;
  border: 2px solid #eeeeee;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s ease;
  flex-shrink: 0;
}

.zs-pd-thumb:hover,
.zs-pd-thumb.zs-thumb-active {
  border-color: #5B4A9E;
}

.zs-pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 右侧产品信息 */
.zs-pd-info {
  flex: 1;
}

.zs-pd-info-name {
  font-size: 28px;
  font-weight: 700;
  color: #1e1440;
  margin-bottom: 12px;
  line-height: 1.3;
}

.zs-pd-info-summary {
  font-size: 15px;
  color: #666666;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* 特色列表 */
.zs-pd-features {
  margin-bottom: 30px;
}

.zs-pd-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: #444444;
  line-height: 1.5;
  border-bottom: 1px solid #f5f5f5;
}

.zs-pd-features li:last-child {
  border-bottom: none;
}

.zs-pd-features li::before {
  content: "✓";
  color: #5B4A9E;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* 操作按钮 */
.zs-pd-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.zs-pd-btn-inquiry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: #5B4A9E;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.zs-pd-btn-inquiry:hover {
  background: #4a3b8a;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(91, 74, 158, 0.3);
}

.zs-pd-btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: #ffffff;
  color: #5B4A9E;
  border: 2px solid #5B4A9E;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.zs-pd-btn-contact:hover {
  background: #f5f3fa;
  transform: translateY(-2px);
}

/* ============================================================
   Specification 通栏标题条
============================================================ */
.zs-pd-spec-bar {
  width: 100%;
  background: #f0f0f0;
  margin-bottom: 30px;
}

.zs-pd-spec-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

.zs-pd-spec-label {
  display: inline-block;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: #5B4A9E;
  border-radius: 4px;
}

/* ============================================================
   Tab切换区 - 内容介绍/技术规格/相关资源
============================================================ */
.zs-pd-tabs {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px 50px;
}

.zs-pd-tab-nav {
  display: flex;
  border-bottom: 2px solid #eeeeee;
  margin-bottom: 30px;
}

.zs-pd-tab-btn {
  padding: 14px 30px;
  font-size: 15px;
  font-weight: 500;
  color: #666666;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
  font-family: inherit;
}

.zs-pd-tab-btn:hover {
  color: #333333;
}

.zs-pd-tab-btn.zs-pd-tab-active {
  color: #5B4A9E;
  font-weight: 600;
}

.zs-pd-tab-btn.zs-pd-tab-active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #5B4A9E;
}

/* Tab内容 */
.zs-pd-tab-panel {
  display: none;
}

.zs-pd-tab-panel.zs-pd-panel-active {
  display: block;
}

/* 产品描述 */
.zs-pd-desc {
  font-size: 14px;
  color: #555555;
  line-height: 1.8;
}

.zs-pd-desc p {
  margin-bottom: 16px;
}

.zs-pd-desc h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e1440;
  margin: 24px 0 12px;
}

/* 技术规格表格 */
.zs-pd-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.zs-pd-spec-table th,
.zs-pd-spec-table td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid #eeeeee;
}

.zs-pd-spec-table th {
  background: #f8f6ff;
  color: #1e1440;
  font-weight: 600;
  white-space: nowrap;
  width: 200px;
}

.zs-pd-spec-table tr:nth-child(even) td {
  background: #fafafa;
}

/* 相关资源 */
.zs-pd-resources {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.zs-pd-resource-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #f8f8fa;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.zs-pd-resource-item:hover {
  background: #f0eef5;
}

.zs-pd-resource-icon {
  width: 40px;
  height: 40px;
  background: #5B4A9E;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.zs-pd-resource-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.zs-pd-resource-info {
  flex: 1;
}

.zs-pd-resource-info strong {
  display: block;
  font-size: 14px;
  color: #333333;
  margin-bottom: 2px;
}

.zs-pd-resource-info span {
  font-size: 12px;
  color: #999999;
}

/* ============================================================
   底部 - Tag/上一个下一个/咨询表单/相关推荐
============================================================ */
.zs-pd-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px 60px;
}

/* Tag标签 */
.zs-pd-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.zs-pd-tag {
  padding: 6px 16px;
  background: #f5f5f5;
  color: #666666;
  font-size: 12px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.zs-pd-tag:hover {
  background: #5B4A9E;
  color: #ffffff;
}

/* 上一个/下一个 */
.zs-pd-pager {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
  margin-bottom: 40px;
}

.zs-pd-pager a {
  font-size: 14px;
  color: #666666;
  transition: color 0.3s ease;
}

.zs-pd-pager a:hover {
  color: #5B4A9E;
}

/* 咨询表单 */
.zs-pd-inquiry-form {
  background: #f8f6ff;
  border-radius: 10px;
  padding: 40px;
  margin-bottom: 50px;
}

.zs-pd-inquiry-form h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1e1440;
  margin-bottom: 24px;
  text-align: center;
}

.zs-pd-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.zs-pd-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.zs-pd-form-field.zs-pd-form-full {
  grid-column: 1 / -1;
}

.zs-pd-form-field label {
  font-size: 13px;
  font-weight: 600;
  color: #333333;
}

.zs-pd-form-field label .zs-required {
  color: #e74c3c;
}

.zs-pd-form-field input,
.zs-pd-form-field select,
.zs-pd-form-field textarea {
  padding: 10px 14px;
  border: 1px solid #dddddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  color: #333333;
  outline: none;
  transition: border-color 0.3s ease;
  background: #ffffff;
}

.zs-pd-form-field input:focus,
.zs-pd-form-field select:focus,
.zs-pd-form-field textarea:focus {
  border-color: #5B4A9E;
}

.zs-pd-form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.zs-pd-form-submit {
  text-align: center;
  margin-top: 20px;
}

.zs-pd-form-submit button {
  padding: 14px 60px;
  background: #5B4A9E;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.zs-pd-form-submit button:hover {
  background: #4a3b8a;
  box-shadow: 0 4px 16px rgba(91, 74, 158, 0.3);
}

/* 相关推荐 */
.zs-pd-related {
  margin-bottom: 40px;
}

.zs-pd-related h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1e1440;
  margin-bottom: 24px;
}

.zs-pd-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.zs-pd-related-card {
  text-align: center;
  transition: transform 0.3s ease;
}

.zs-pd-related-card:hover {
  transform: translateY(-4px);
}

.zs-pd-related-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.zs-pd-related-card-img {
  border: 1px solid #eeeeee;
  border-radius: 4px;
  overflow: hidden;
  background: #fafafa;
  margin-bottom: 10px;
}

.zs-pd-related-card-img img {
  width: 100%;
  height: auto;
  display: block;
}

.zs-pd-related-card h4 {
  font-size: 14px;
  font-weight: 500;
  color: #333333;
}

.zs-pd-related-card:hover h4 {
  color: #5B4A9E;
}

/* ============================================================
   响应式
============================================================ */
@media screen and (max-width: 1024px) {
  .zs-pd-main {
    gap: 30px;
  }

  .zs-pd-info-name {
    font-size: 24px;
  }

  .zs-pd-related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .zs-pd-banner {
    height: 200px;
  }

  .zs-pd-banner-title {
    font-size: 28px;
  }

  .zs-pd-main {
    flex-direction: column;
    padding: 20px 16px 30px;
    gap: 24px;
  }

  .zs-pd-gallery {
    width: 100%;
  }

  .zs-pd-info-name {
    font-size: 22px;
  }

  .zs-pd-tabs {
    padding: 0 16px 30px;
  }

  .zs-pd-tab-btn {
    padding: 12px 16px;
    font-size: 14px;
  }

  .zs-pd-spec-table th {
    width: 120px;
  }

  .zs-pd-bottom {
    padding: 0 16px 40px;
  }

  .zs-pd-inquiry-form {
    padding: 24px 16px;
  }

  .zs-pd-form-grid {
    grid-template-columns: 1fr;
  }

  .zs-pd-related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .zs-pd-pager {
    flex-direction: column;
    gap: 10px;
  }
}

@media screen and (max-width: 480px) {
  .zs-pd-banner {
    height: 160px;
  }

  .zs-pd-banner-title {
    font-size: 22px;
  }

  .zs-pd-info-name {
    font-size: 20px;
  }

  .zs-pd-actions {
    flex-direction: column;
  }

  .zs-pd-btn-inquiry,
  .zs-pd-btn-contact {
    width: 100%;
    justify-content: center;
  }

  .zs-pd-thumb {
    width: 60px;
    height: 60px;
  }
}

/* zs-pd-banner 文案左对齐（小屏左边距） */
@media screen and (max-width: 768px) {
  .zs-pd-banner-overlay {
    padding: 0 16px;
  }
}
