/* ===== 产品详情页（product detail）===== */
.pd-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px 20px 64px;
}

/* 面包屑 */
.pd-crumb {
    font-size: 13px;
    color: #999;
    margin-bottom: 18px;
}
.pd-crumb a { color: #666; text-decoration: none; }
.pd-crumb a:hover { color: #000; text-decoration: underline; }
.pd-sep { margin: 0 8px; color: #ccc; }

/* 主图：宽度满容器，高度随宽度（原图比例），完整呈现不裁切 */
.pd-hero {
    width: 100%;
    background: #f5f5f5;
    border-radius: 6px;
    overflow: hidden;
}
.pd-hero picture {
    display: block;
    width: 100%;
}
.pd-hero img {
    display: block;
    width: 100%;
    height: auto;
}

/* 标题区 */
.pd-head {
    padding: 34px 0 26px;
    border-bottom: 1px solid #ececec;
    margin-bottom: 30px;
}
.pd-genre {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 2px;
    color: #fff;
    background: #1a1a1a;
    border-radius: 999px;
    padding: 4px 14px;
    margin-bottom: 14px;
}
.pd-title {
    font-size: 30px;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.3;
    color: #1a1a1a;
}
.pd-client {
    font-size: 14px;
    color: #888;
    margin: 0;
}

/* 描述 */
.pd-desc {
    max-width: 860px;
    font-size: 15px;
    line-height: 1.9;
    color: #333;
    margin-bottom: 42px;
}
.pd-desc h2, .pd-desc h3, .pd-desc h4 { margin: 1.4em 0 .6em; color: #1a1a1a; line-height: 1.4; }
.pd-desc h2 { font-size: 22px; }
.pd-desc h3 { font-size: 18px; }
.pd-desc p { margin: 0 0 1em; }
.pd-desc ul, .pd-desc ol { margin: 0 0 1em; padding-left: 1.4em; }
.pd-desc li { margin: .3em 0; }
.pd-desc a { color: #1a1a1a; }
.pd-desc blockquote {
    margin: 1em 0;
    padding: 10px 18px;
    border-left: 3px solid #1a1a1a;
    background: #fafafa;
    color: #555;
}
.pd-desc img { max-width: 100%; height: auto; border-radius: 4px; }
.pd-desc hr { border: none; border-top: 1px solid #ececec; margin: 1.6em 0; }

/* 图集网格 */
.pd-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
@media (max-width: 900px) {
    .pd-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
.pd-gitem {
    display: block;
    position: relative;
    background: #f5f5f5;
    border-radius: 6px;
    overflow: hidden;
    cursor: zoom-in;
    aspect-ratio: 4 / 3;
}
.pd-gitem img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease, opacity .3s ease;
    opacity: 0;
}
.pd-gitem img.pd-loaded { opacity: 1; }
.pd-gitem:hover img { transform: scale(1.04); }
.pd-gitem::after {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    transition: background .25s ease;
    pointer-events: none;
}
.pd-gitem:hover::after { background: rgba(0, 0, 0, .06); }

/* PDF 下载区（仅登录用户渲染） */
.pd-pdf {
    margin-top: 48px;
    border: 1px solid #ececec;
    border-radius: 8px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fafafa;
}
.pd-pdf-ic {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    background: #d33;
    border-radius: 4px;
    padding: 5px 8px;
}
.pd-pdf-txt { font-size: 14px; color: #444; flex: 1; }
.pd-pdf-btn {
    appearance: none;
    border: 1px solid #1a1a1a;
    background: #1a1a1a;
    color: #fff;
    font-size: 14px;
    padding: 9px 22px;
    border-radius: 999px;
    cursor: pointer;
    transition: opacity .2s ease;
}
.pd-pdf-btn:hover { opacity: .82; }
.pd-pdf-btn:disabled { opacity: .5; cursor: wait; }

/* ===== 灯箱 ===== */
.pd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(12, 12, 12, .94);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity .22s ease;
}
.pd-lightbox.pd-open { display: flex; opacity: 1; }
.pd-lb-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.pd-lb-img {
    max-width: 92vw;
    max-height: 86vh;
    transform: scale(1);
    transition: transform .18s ease;
    cursor: zoom-in;
    user-select: none;
    -webkit-user-select: none;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .5);
}
.pd-lb-img.pd-zoomed { cursor: zoom-out; }
.pd-lb-cap {
    position: absolute;
    bottom: 18px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, .85);
    font-size: 13px;
    padding: 0 60px;
}
.pd-lb-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}
.pd-lb-btn:hover { background: rgba(255, 255, 255, .28); }
.pd-lb-prev { left: 16px; }
.pd-lb-next { right: 16px; }
.pd-lb-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pd-lb-close:hover { background: rgba(255, 255, 255, .28); }
.pd-lb-count {
    position: absolute;
    top: 20px;
    left: 20px;
    color: rgba(255, 255, 255, .6);
    font-size: 13px;
}
@media (max-width: 640px) {
    .pd-wrap { padding: 18px 14px 48px; }
    .pd-title { font-size: 24px; }
    .pd-pdf { flex-wrap: wrap; }
    .pd-pdf-btn { width: 100%; }
    .pd-lb-btn { width: 38px; height: 38px; }
    .pd-lb-cap { padding: 0 52px; bottom: 12px; }
}
