/* ==================== Tabs ==================== */
.pd-tabs-wrap {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}
.pd-tabs {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #eee;
    background: #fafbfc;
}
.pd-tab {
    position: relative;
    padding: 14px 28px;
    font-size: 15px;
    color: #666;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.pd-tab:hover {
    color: #1d78bd;
}
.pd-tab.active {
    color: #1d78bd;
    font-weight: 600;
    background: #fff;
}
.pd-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: #1d78bd;
}
.pd-panel {
    display: none;
    padding: 28px 32px 40px;
}
.pd-panel.active {
    display: block;
}

/* ==================== Rich text (API HTML) ==================== */
/* 内容由后台 HTML 自带样式，这里只保留布局，不设置任何颜色/背景/字号 */
.pd-rich {
    line-height: 1.8;
}
.pd-rich img {
    max-width: 100%;
    height: auto;
    margin: 12px auto;
}
.pd-rich .pd-video {
    position: relative;
    max-width: 860px;
    margin: 0 auto 28px;
    border-radius: 4px;
    overflow: hidden;
}
.pd-rich .pd-video img {
    width: 100%;
    margin: 0;
    display: block;
    opacity: 0.9;
}
.pd-rich .pd-video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    transition: var(--transition);
}
.pd-rich .pd-video-play:hover {
    background: rgba(29, 120, 189, 0.85);
    border-color: #fff;
}
.pd-rich h3,
.pd-rich .pd-block-title {
    margin: 28px 0 14px;
    padding: 10px 16px;
    line-height: 1.4;
}
.pd-rich p {
    margin-bottom: 12px;
}
.pd-rich ol,
.pd-rich ul {
    margin: 0 0 16px 1.2em;
    padding: 0;
    list-style: decimal;
}
.pd-rich ul {
    list-style: disc;
}
.pd-rich li {
    margin-bottom: 8px;
    line-height: 1.75;
}
.pd-rich .pd-img-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 20px 0 28px;
}
.pd-rich .pd-img-row figure {
    text-align: center;
    margin: 0;
}
.pd-rich .pd-img-row img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    margin: 0 0 8px;
}
.pd-rich .pd-img-row figcaption {
    font-size: 13px;
}
.pd-rich table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 24px;
}
.pd-rich table th,
.pd-rich table td {
    border: 1px solid #e0e0e0;
    padding: 10px 12px;
    text-align: left;
    vertical-align: middle;
}

/* ==================== Spec table (API HTML) ==================== */
.pd-spec {
    overflow-x: auto;
}
.pd-spec table {
    width: 100%;
    border-collapse: collapse;
}
.pd-spec th,
.pd-spec td {
    border: 1px solid #e5e5e5;
    padding: 14px 16px;
    text-align: left;
    vertical-align: middle;
}
.pd-spec .spec-group {
    width: 120px;
    text-align: center;
}
.pd-spec .spec-key {
    width: 220px;
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .pd-summary {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        padding: 20px;
    }
    .pd-gallery-main {
        height: 300px;
    }
    .pd-rich .pd-img-row {
        grid-template-columns: 1fr;
    }
    .pd-rich .pd-img-row img {
        height: 200px;
    }
}
@media (max-width: 768px) {
    .pd-summary {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .pd-gallery-main {
        height: 260px;
    }
    .pd-title {
        font-size: 22px;
    }
    .pd-panel {
        padding: 20px 16px 28px;
    }
    .pd-tab {
        padding: 12px 16px;
        font-size: 14px;
    }
    .pd-spec .spec-group {
        width: 80px;
    }
    .pd-spec .spec-key {
        width: 140px;
    }
}
@media (max-width: 480px) {
    .pd-gallery-thumbs {
        gap: 8px;
    }
    .pd-thumbs-track {
        gap: 8px;
    }
    .pd-thumb-button {
        flex-basis: calc((100% - 16px) / 3);
    }
    .pd-thumb-arrow {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    .pd-consult {
        width: 100%;
    }
}
