@charset "utf-8";
/* ==========================================================================
   产品详情内容样式（view_product.htm）
   ========================================================================== */

/* 详情区块容器 */
.pd-content {
    margin-top: 30px;
}

/* 详情标签栏 */
.pd-content-tab {
    background: var(--green);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    padding: 14px 30px;
    border-radius: 6px 6px 0 0;
}

/* 详情内容卡片 */
.pd-content article {
    background: #fff;
    padding: 40px 45px;
    border: 1px solid #e8e8e8;
    border-top: none;
    border-radius: 0 0 6px 6px;
    color: #444;
    font-size: 15px;
    line-height: 1.9;
}

/* 段落 */
.pd-content article p {
    margin: 0 0 14px;
    text-align: justify;
}

/* 小标题 */
.pd-content article h3 {
    position: relative;
    font-size: 20px;
    color: var(--green);
    font-weight: bold;
    padding: 0 0 12px 16px;
    margin: 34px 0 18px;
    letter-spacing: 1px;
}

.pd-content article h3:first-child {
    margin-top: 0;
}

.pd-content article h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 16px;
    width: 5px;
    border-radius: 3px;
    background: var(--green);
}

.pd-content article h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, var(--green) 80px, #e8e8e8 80px);
}

/* 性能特点列表 */
.pd-content article ul {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}

.pd-content article ul li {
    position: relative;
    padding: 6px 0 6px 30px;
    text-align: justify;
}

.pd-content article ul li::before {
    content: "\2714";
    position: absolute;
    left: 2px;
    top: 6px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: var(--green-pale);
    color: var(--green);
    font-size: 12px;
    border-radius: 50%;
}

/* 技术参数表格 */
.pd-content article table {
    width: 100%;
    border-collapse: collapse;
    margin: 6px 0 20px;
    font-size: 14px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 0 0 1px #e8e8e8;
}

.pd-content article table th {
    background: var(--green);
    color: #fff;
    font-weight: normal;
    padding: 12px 16px;
    text-align: left;
    letter-spacing: 1px;
}

.pd-content article table td {
    padding: 11px 16px;
    border-top: 1px solid #f0f0f0;
}

.pd-content article table tr:nth-child(even) td {
    background: #F4F7FA;
}

.pd-content article table tr:hover td {
    background: #EAF0F6;
}

.pd-content article table td:first-child {
    color: var(--green);
    font-weight: bold;
    width: 32%;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .pd-content article {
        padding: 22px 16px;
        font-size: 14px;
    }

    .pd-content article h3 {
        font-size: 17px;
    }

    .pd-content article table td:first-child {
        width: 38%;
    }
}
/* 产品参数（建议零售价/工艺/产地/生产周期） */
.pd-params {
  margin-bottom: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-section);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.pd-param-item {
  display: flex;
  align-items: baseline;
  font-size: 14px;
  line-height: 1.6;
}
.pd-param-label {
  color: var(--text-light);
  white-space: nowrap;
  margin-right: 8px;
}
.pd-param-value {
  color: var(--dark);
  font-weight: 600;
}
.pd-param-price .pd-param-value {
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
}
@media (max-width: 767px) {
  .pd-params { grid-template-columns: 1fr; gap: 8px; }
}
/* 产品副图（第2~5张，点击切换主图） */
.pd-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.pd-thumb {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  transition: all var(--transition);
}
.pd-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.pd-thumb:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
}
@media (max-width: 767px) {
  .pd-thumbs { grid-template-columns: repeat(4, 1fr); gap: 8px; }
}
/* 无副图时收起容器，去掉多余间距 */
.pd-thumbs:not(:has(.pd-thumb)) { margin-top: 0; }
/* 缩略图位于描述与翻页之间 */
.pd-thumbs { margin: 20px 0 24px; }
.pd-thumbs:not(:has(.pd-thumb)) { margin: 0; }
/* 四方格缩略图（2×2） */
.pd-thumbs { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 767px) {
  .pd-thumbs { grid-template-columns: repeat(2, 1fr); }
}
/* 2×2缩略图缩小 */
.pd-thumbs { max-width: 400px; gap: 10px; }
/* 进一步缩小缩略图，使右侧整体高度与左侧大图一致 */
.pd-thumbs { max-width: 240px; gap: 8px; margin: 16px 0 20px; }
.pd-thumbs:not(:has(.pd-thumb)) { margin: 0; }
