/* 产品详情页样式：与产品中心（site-products.css）同一视觉体系，pd- 前缀。
   布局：上半部分媒体区（主视图 + 缩略图切换）与信息区并排，
   下半部分规格、富文本描述、标签与相关产品依次纵向排列。 */

.pd-head {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 96px minmax(0, 1fr);
    gap: 22px;
    margin-bottom: 34px;
}

/* 主视图：图片与视频同窗切换，仅激活项可见。 */
.pd-stage {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 1px solid #e5e9f0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}
.pd-stage__image,
.pd-stage__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    display: none;
}
.pd-stage__image.is-active,
.pd-stage__video.is-active { display: block; }
.pd-stage__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #98a2b3;
}

/* 缩略图切换区：纵向排列，激活项主题青描边。 */
.pd-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 480px;
    overflow-y: auto;
}
.pd-thumb {
    width: 96px;
    height: 76px;
    padding: 0;
    border: 2px solid #e5e9f0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb.is-active { border-color: var(--site-primary); }
.pd-thumb__video { color: var(--site-primary); font-size: 12px; font-weight: 700; }

/* 信息区：标题、简介属性表、询价按钮组。 */
.pd-info { display: flex; flex-direction: column; }
.pd-info__name {
    margin: 0 0 16px;
    color: #152039;
    font-size: 22px;
    font-weight: 650;
    line-height: 1.4;
}
.pd-attrs { margin: 0 0 20px; }
.pd-attrs__row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed #edf0f4;
    font-size: 13px;
}
.pd-attrs__row dt { color: #8a96a9; }
.pd-attrs__row dd { margin: 0; color: #344054; word-break: break-word; }
.pd-info__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }
/* inline-flex + 居中：Contact Now 从无行为的 <button> 改为跳联系页的 <a> 后，
   按钮与链接共用同一视觉规格，文字均水平垂直居中。 */
.pd-cta {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 168px;
    height: 42px;
    padding: 0 22px;
    border: 2px solid var(--site-primary);
    border-radius: 36px;
    background: var(--site-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}
.pd-cta:hover { background: var(--site-primary-mid); border-color: var(--site-primary-mid); }
.pd-cta--ghost { background: #fff; color: var(--site-primary); }
.pd-cta--ghost:hover { background: var(--site-primary); color: #fff; }

/* 下半部分分区标题，与产品中心分组标题行同风格。 */
.pd-section__head { margin: 8px 0 16px; }
.pd-section__head h2 {
    margin: 0;
    color: #152039;
    font-size: 18px;
    font-weight: 650;
}
.pd-specs { margin-bottom: 34px; }
.pd-desc { margin-bottom: 34px; }
.pd-desc__body {
    color: #344054;
    font-size: 14px;
    line-height: 1.8;
    word-break: break-word;
}
/* 富文本内容：表格与图片自适应容器，超宽不撑破布局。 */
.pd-desc__body img { max-width: 100%; height: auto; }
.pd-desc__body table { max-width: 100%; border-collapse: collapse; }
.pd-desc__body table td,
.pd-desc__body table th { border: 1px solid #e5e9f0; padding: 8px 12px; }

/* 标签：胶囊链接，点击进入搜索结果页。 */
.pd-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
}
.pd-tags__label { color: #8a96a9; font-size: 13px; }
.pd-tag {
    padding: 6px 14px;
    border: 1px solid #dce5f2;
    border-radius: 20px;
    background: #fbfdff;
    color: #475467;
    font-size: 12px;
    text-decoration: none;
}
.pd-tag:hover { border-color: var(--site-primary); color: var(--site-primary); }

.pd-related { margin-bottom: 10px; }

/* RTL：属性行标签与内容互换方向，按钮组保持视觉顺序。 */
.public-header--rtl ~ main .pd-attrs__row { direction: rtl; }

/* 无媒体产品：单列布局——空状态占位 + 信息区通栏。
   放在媒体查询之后：同特异性下后声明胜出，覆盖 ≤1100 / ≤700 的两列/单列轨道。 */
.pd-head--no-media { grid-template-columns: minmax(0, 1fr); }
.pd-head--no-media .pd-stage__empty {
    border: 1px solid #e5e9f0;
    border-radius: 8px;
    aspect-ratio: 16 / 9;
}

/* 平板与手机：媒体区与信息区改为纵向堆叠，缩略图改横向滚动。 */
@media (max-width: 1100px) {
    .pd-head { grid-template-columns: minmax(0, 1fr) 96px; }
    .pd-info { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
    .pd-head { grid-template-columns: minmax(0, 1fr); }
    .pd-thumbs {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        padding-bottom: 6px;
    }
    .pd-thumb { flex: 0 0 88px; width: 88px; height: 70px; }
    .pd-attrs__row { grid-template-columns: 120px minmax(0, 1fr); }
    .pd-cta { min-width: 140px; }
}
