/* ============================================================
   冷月枫官网 · 产品页专用样式
   仅被 products.html / product_detail.html 引用，不改动全站 style.css
   主色 #1a5276 / #0066cc，强调色 #e74c3c
   ============================================================ */

/* ---------------- 产品列表 ---------------- */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 26px;
    margin-bottom: 40px;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eef1f4;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(26, 82, 118, .06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(26, 82, 118, .16);
}

.product-img {
    position: relative;
    height: 210px;
    padding: 12px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #fbfcfd, #f2f5f8);
    overflow: hidden;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(26, 82, 118, .9);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    padding: 5px 11px;
    border-radius: 20px;
    z-index: 1;
}

.product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 20px 20px;
}

.product-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a5276;
    margin: 0 0 6px;
    line-height: 1.45;
}

.product-model {
    font-size: 12.5px;
    color: #98a2ae;
    margin: 0 0 8px;
}

.product-desc {
    color: #6b7680;
    font-size: 13.5px;
    line-height: 1.75;
    margin: 0 0 14px;
    flex: 1;
    min-height: 47px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    color: #e74c3c;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .3px;
    margin: 0 0 14px;
}

.product-info .btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 10px 0;
    border-radius: 6px;
    font-size: 14px;
}

/* 分页按钮的禁用态 */
.pagination .page-btn.disabled { opacity: .45; pointer-events: none; }

/* ---------------- 产品详情 ---------------- */
.pd-loading,
.pd-empty { text-align: center; color: #98a2ae; padding: 60px 0; }

.pd-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 34px;
    background: #fff;
    border: 1px solid #eef1f4;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(26, 82, 118, .07);
    padding: 26px;
    margin: 26px 0 30px;
}

/* 图集轮播 */
.pd-gallery { min-width: 0; }

.pd-stage {
    position: relative;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #fbfcfd, #f2f5f8);
    border: 1px solid #eef1f4;
    border-radius: 10px;
    overflow: hidden;
    user-select: none;
    cursor: grab;
    touch-action: pan-y;
}

.pd-stage.dragging { cursor: grabbing; }

.pd-stage img {
    max-width: 92%;
    max-height: 92%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity .18s ease;
    pointer-events: none; /* 让拖拽事件落在 stage 上，不被图片拦走 */
}

.pd-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #1a5276;
    font-size: 20px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .14);
    opacity: 0;
    transition: opacity .2s ease, background .2s ease, color .2s ease;
}

.pd-stage:hover .pd-arrow { opacity: 1; }
.pd-arrow:hover { background: #1a5276; color: #fff; }
.pd-prev { left: 12px; }
.pd-next { right: 12px; }

.pd-counter {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: .5px;
}

.pd-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-behavior: smooth;
}

.pd-thumbs::-webkit-scrollbar { height: 6px; }
.pd-thumbs::-webkit-scrollbar-thumb { background: #cdd6df; border-radius: 3px; }

.pd-thumb {
    flex: 0 0 auto;
    width: 78px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #eef1f4;
    border-radius: 8px;
    background: #f8fafb;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .2s ease, transform .2s ease;
}

.pd-thumb img { max-width: 92%; max-height: 92%; object-fit: contain; }
.pd-thumb:hover { transform: translateY(-2px); }
.pd-thumb.active { border-color: #1a5276; }

.pd-hint { color: #a8b2bd; font-size: 12px; margin-top: 8px; }

/* ===== 详情页结构化板块 ===== */
.pd-section {
    background: #fff;
    border: 1px solid #eef1f4;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(26, 82, 118, .07);
    padding: 28px 32px;
    margin-bottom: 22px;
}
.pd-sec-title {
    font-size: 19px; color: #1a3a5c; margin: 0 0 18px;
    padding-bottom: 12px; border-bottom: 2px solid #eef3f8;
}
.pd-sec-title i { color: #185FA5; margin-right: 8px; font-size: 16px; }

/* 产品特征（右侧） */
.pd-highlights {
    background: #f5f9fd;
    border: 1px solid #dfeaf5;
    border-radius: 10px;
    padding: 14px 16px;
    margin: 12px 0;
}
.pd-highlights h4 { margin: 0 0 8px; font-size: 14px; color: #1a5276; }
.pd-highlights h4 i { margin-right: 5px; }
.pd-highlights ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.pd-highlights li { font-size: 13px; color: #3d4852; line-height: 1.55; padding-left: 2px; }
.pd-highlights li i { color: #185FA5; margin-right: 4px; }
.pd-highlights li strong { color: #1a3a5c; }
.pd-highlights p, .pd-highlights ul, .pd-highlights ol { margin: 0 0 6px; font-size: 13px; color: #3d4852; line-height: 1.65; }
.pd-highlights ul, .pd-highlights ol { padding-left: 18px; }
.pd-highlights p:last-child, .pd-highlights ul:last-child, .pd-highlights ol:last-child { margin-bottom: 0; }
.pd-overview ul, .pd-overview ol { margin: 0 0 12px; padding-left: 22px; color: #4a5560; font-size: 14.5px; line-height: 1.9; }
.pd-overview h1, .pd-overview h2, .pd-overview h3, .pd-overview h4 { color: #1a3a5c; margin: 14px 0 8px; font-size: 16px; }
.pd-overview img { max-width: 100%; border-radius: 8px; }

/* 产品概览 */
.pd-overview p { margin: 0 0 12px; color: #4a5560; font-size: 14.5px; line-height: 1.9; }

/* 主要特点（一行一条） */
.pd-feature-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.pd-feature-list li { color: #3d4852; font-size: 14.5px; line-height: 1.7; }
.pd-feature-list li i { color: #2e9e6b; margin-right: 7px; }

/* 主要参数（两列表格：项目 | 参数） */
.pd-params-table-wrap {
    border: 1px solid #e8edf3; border-radius: 10px; overflow: hidden;
}
.pd-params-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pd-params-table td {
    padding: 13px 18px; border-bottom: 1px solid #eef1f4;
    color: #4a5560; line-height: 1.7; vertical-align: top;
}
.pd-params-table tr:last-child td { border-bottom: 0; }
.pd-params-table tr:nth-child(odd) { background: #f8fafc; }
.pd-params-table td:first-child {
    width: 30%; color: #1a5276; font-weight: 600; white-space: nowrap;
}
.pd-params-table td:first-child i { color: #185FA5; margin-right: 8px; width: 16px; text-align: center; }

/* 效果图展示 */
.pd-effects { display: flex; flex-direction: column; gap: 22px; }
.pd-effect { margin: 0; text-align: center; }
.pd-effect img {
    max-width: 100%; border: 1px solid #e8edf3; border-radius: 10px;
    box-shadow: 0 6px 20px rgba(26, 82, 118, .1);
}
.pd-effect figcaption { margin-top: 8px; color: #8a94a0; font-size: 13px; }

/* 相关下载（样式与「资料下载」页完全一致） */
.dl-wrap { display: flex; flex-direction: column; gap: 16px; }
.dl-group {
    background: #fff; border: 1px solid #e8edf3; border-radius: 12px;
    padding: 18px 20px; box-shadow: 0 1px 3px rgba(20,60,110,.05);
    transition: box-shadow .2s, transform .2s;
}
.dl-group:hover { box-shadow: 0 4px 16px rgba(20,60,110,.10); transform: translateY(-1px); }
.dl-head { display: flex; align-items: center; gap: 14px; position: relative; }
.dl-icon {
    width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.dl-icon.cat-software { background: #e8f1fd; color: #185fa5; }
.dl-icon.cat-manual   { background: #fdf3e0; color: #b7791f; }
.dl-icon.cat-driver   { background: #f1eafd; color: #6b46c1; }
.dl-icon.cat-other    { background: #eef1f4; color: #7a8694; }
.dl-title { flex: 1; min-width: 0; }
.dl-title h3 { margin: 0 0 4px; font-size: 16px; color: #1a3a5c; }
.dl-meta { font-size: 12px; color: #8a94a0; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.dl-body { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.dl-ver { display: flex; align-items: center; gap: 8px; }
.dl-ver label { font-size: 13px; color: #5c6874; flex-shrink: 0; }
.dl-ver select {
    padding: 8px 12px; border: 1px solid #d4dce6; border-radius: 8px;
    background: #fff; color: #1f2937; font-size: 14px; min-width: 210px; cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}
.dl-ver select:focus { outline: none; border-color: #185FA5; box-shadow: 0 0 0 2px rgba(24,95,165,.15); }
.dl-ver select.is-latest { border-color: #16a34a; box-shadow: 0 0 0 2px rgba(22,163,74,.18); }
.dl-ver select option { color: #1f2937; }
.dl-ver select option.opt-latest { color: #0d9448; font-weight: 800; }
.dl-btn { margin-left: auto; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.dl-desc { margin: 12px 0 0; color: #6b7682; font-size: 13px; line-height: 1.6; }
.type-chip {
    display: inline-block; padding: 1px 8px; border-radius: 10px;
    background: #eef3f8; color: #51606f; font-size: 11px; font-weight: 600;
}
@media (max-width: 640px) {
    .dl-body { flex-direction: column; align-items: stretch; }
    .dl-btn { margin-left: 0; justify-content: center; }
    .dl-ver select { min-width: 0; width: 100%; }
}
.pd-dl-more { color: #8a94a0; font-size: 13px; margin: 14px 0 0; }
.pd-dl-more a { color: #185FA5; }
.pd-effect { margin: 0; }

/* 前台富文本板块默认字体：16px / 1.9 行距（未显式设置字号的内容按此显示） */
.pd-section .rich-content,
.pd-overview,
.pd-highlights {
    font-size: 16px;
    font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", sans-serif;
    line-height: 1.9;
    color: #1f2937;
}
.pd-highlights { font-size: 13.5px; line-height: 1.65; }
.pd-highlights p, .pd-highlights ul, .pd-highlights ol { font-size: 13.5px; }

@media (max-width: 768px) {
    .pd-section { padding: 20px 18px; }
}

/* 返回按钮（页面左上角，产品卡片上方，带文字醒目显示） */
.pd-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 14px;
    padding: 9px 22px;
    background: #fff;
    border: 1px solid #d4dce6;
    border-radius: 8px;
    color: #1a5276;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(26, 82, 118, .08);
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.pd-back:hover { background: #1a5276; color: #fff; border-color: #1a5276; }

.pd-zoom-tip {
    position: absolute;
    left: 58px;
    bottom: 12px;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    pointer-events: none;
    z-index: 4;
}

/* 点击查看大图（灯箱） */
.pd-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 25, 35, .88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
    animation: pdFade .18s ease;
}

.pd-lightbox img {
    max-width: 94vw;
    max-height: 92vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

@keyframes pdFade { from { opacity: 0; } to { opacity: 1; } }

/* 右侧信息 */
.pd-info { min-width: 0; }

.pd-title {
    font-size: 24px;
    color: #1a5276;
    line-height: 1.35;
    margin: 0 0 10px;
}

.pd-meta {
    color: #8a94a0;
    font-size: 13.5px;
    margin-bottom: 4px;
}

.pd-price {
    font-size: 28px;
    color: #e74c3c;
    font-weight: 700;
    margin: 12px 0 18px;
}

.pd-desc {
    color: #55606c;
    font-size: 14.5px;
    line-height: 1.9;
    margin-bottom: 24px;
}

.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pd-actions .btn { padding: 11px 30px; font-size: 15px; }
.pd-actions .btn.ghost { background: #f2f5f8; color: #1a5276; }
.pd-actions .btn.ghost:hover { background: #e6ecf2; }

/* 详情富文本区 */
.pd-detail {
    background: #fff;
    border: 1px solid #eef1f4;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(26, 82, 118, .06);
    padding: 26px 28px;
    margin-bottom: 50px;
}

.pd-detail-title {
    font-size: 19px;
    color: #1a5276;
    line-height: 1.2;
    margin: 0 0 20px;
    padding-left: 12px;
    border-left: 4px solid #e74c3c;
}

/* 富文本内容样式见 /css/rich-content.css（与新闻详情共用） */

/* 响应式 */
@media (max-width: 860px) {
    .pd-top { grid-template-columns: 1fr; gap: 22px; padding: 20px; }
    .pd-stage { height: 320px; }
}

@media (max-width: 640px) {
    .products { gap: 18px; }
    .pd-stage { height: 250px; }
    .pd-detail { padding: 20px 16px; }
    .pd-actions .btn { flex: 1; text-align: center; }
}
