/*
   product_detail.php 页面内联样式（2026-08-30 抽出）
   来源：/www/wwwroot/website/product_detail.php 的原 <style> 块（12,293 字符）
   目的：产品页单页 180KB 里有约 38KB 是逐页重复输出的内联 CSS/JS，
   抽成外部文件后浏览器只下载一次，也不再占用 fastcgi_cache 的每页空间。
   ⚠️ 改了本文件必须把引用处的 ?v= 版本号 +1（product_detail.php 里搜 product_detail.css），
   否则浏览器继续用旧缓存。
   ⚠️ 这个文件是纯静态的，不要往里加 PHP 代码。
*/

    .pd-tab-pane { display: none; }
    .pd-tab-pane.active { display: block; width: 100%; max-width: 100%; box-sizing: border-box; padding: 24px 0; }
    .pd-tabs-section { background: transparent !important; }
    .pd-tab-nav { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 2px solid #e5e7eb; margin-bottom: 24px; background: transparent !important; padding: 0; }
    .pd-tab-btn { cursor: pointer; padding: 12px 24px; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; background: transparent; color: #6b7280; font-size: 14px; font-weight: 500; transition: all .2s; white-space: nowrap; }
    .pd-tab-btn:hover { color: #374151; background: #f9fafb; }
    .pd-tab-btn.active { background: transparent; color: #F5A623; border-bottom-color: #F5A623; font-weight: 600; }
    .pd-spec-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
    .pd-spec-table th { background: #f4f4f4; color: #555; padding: 11px 16px; text-align: left; font-size: 13px; font-weight: 600; border-bottom: 2px solid #e0e0e0; border-top: none; border-left: none; border-right: none; }
    .pd-spec-table td { padding: 11px 16px; font-size: 14px; color: #333; border-bottom: 1px solid #f0f0f0; word-break: break-word; overflow-wrap: break-word; border-top: none; border-left: none; border-right: none; }
    .pd-spec-table tr:hover td { background: #FFF8EF; }
    .pd-spec-table td:first-child { background: #f9fafb; font-weight: 500; width: 40%; }
    .pd-spec-table td:last-child { width: 60%; }
    /* ── 2026-08-05 参数+图册 左右并排布局 ── */
    .pd-spec-layout { display: grid; grid-template-columns: minmax(300px, 360px) 1fr; gap: 30px; align-items: start; }
    .pd-spec-col { min-width: 0; }
    @media (max-width: 960px) { .pd-spec-layout { grid-template-columns: 1fr; } }
    /* ── 顶部左图右信息两栏：尺寸比例沿用共享样式表 css/app.min.css 的原始定义
           （桌面 520px 1fr / 平板 420px 1fr / 手机 1fr），此处不再覆盖，以还原“之前”的大小排列 ── */
    /* ── 产品图册轮播样式：统一比例、object-fit contain、居中显示 ── */
    .pd-gallery { width: 100%; }
    .pd-carousel {
        position: relative;
        width: 100%;
        aspect-ratio: 1 / 1;
        background: #f8f9fa;
        border: 1px solid #e8e8e8;
        border-radius: 12px;
        overflow: hidden;
    }
    .pd-carousel-track { position: relative; width: 100%; height: 100%; }
    .pd-carousel-slide {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity .35s ease;
        z-index: 0;
    }
    .pd-carousel-slide.active { opacity: 1; z-index: 1; }
    .pd-carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }
    .pd-carousel-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        border: none;
        border-radius: 50%;
        background: rgba(255,255,255,.9);
        color: #1a2a3a;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 5;
        box-shadow: 0 2px 8px rgba(0,0,0,.12);
        transition: all .15s;
    }
    .pd-carousel-btn:hover { background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
    .pd-carousel-btn.prev { left: 10px; }
    .pd-carousel-btn.next { right: 10px; }
    .pd-carousel-dots {
        position: absolute;
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 6px;
        z-index: 5;
    }
    .pd-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(0,0,0,.25);
        cursor: pointer;
        transition: background .2s;
    }
    .pd-dot.active { background: #f5a623; }
    .pd-carousel-badge {
        position: absolute;
        top: 10px;
        left: 10px;
        padding: 4px 10px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 600;
        color: #fff;
        z-index: 2;
    }
    .badge-factory { background: rgba(25,118,210,.9); }
    .badge-oem { background: rgba(245,166,35,.9); color: #1a1a1a; }
    .pd-thumbs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-top: 12px;
    }
    .pd-thumb {
        position: relative;
        aspect-ratio: 1 / 1;
        background: #f8f9fa;
        border: 2px solid transparent;
        border-radius: 8px;
        overflow: hidden;
        cursor: pointer;
        transition: border-color .2s, transform .15s;
    }
    .pd-thumb:hover { transform: translateY(-2px); }
    .pd-thumb.active { border-color: #f5a623; }
    .pd-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .pd-thumb-label {
        position: absolute;
        bottom: 5px;
        left: 5px;
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 11px;
        font-weight: 600;
        color: #fff;
        line-height: 1.3;
    }
    @media (max-width: 768px) {
        .pd-carousel { aspect-ratio: 4 / 3; }
        .pd-carousel-btn { width: 32px; height: 32px; }
        .pd-thumbs { gap: 8px; }
        .pd-spec-table { table-layout: fixed; width: 100%; }
        .pd-spec-table th, .pd-spec-table td { padding: 5px 6px !important; font-size: 11px !important; white-space: normal !important; word-break: break-word !important; overflow-wrap: break-word !important; }
        .pd-spec-table td:first-child { width: 35% !important; background: #f9fafb; }
        .pd-spec-table td:last-child { width: 65% !important; word-break: break-word; }
        .pd-top { grid-template-columns: 1fr !important; gap: 20px !important; }
        .pd-tab-btn { padding: 10px 14px; font-size: 13px; }
        .pd-gallery { width: 100% !important; }
        .pd-info { width: 100% !important; }
        .pd-related { margin-left: 24px !important; margin-right: 24px !important; }
    }
    body { overflow-x: hidden; }
    .pd-desc, .pd-tab-pane, .pd-tab-pane.active { max-width: 100%; overflow-x: hidden; }
    /* ── 2026-08-05 零件手册图册查看器（336D 试点，参考 777parts 专业图册模式）── */
    .pd-manual-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
    .pd-manual-head h2 { font-size: 18px; font-weight: 700; color: #1a2a3a; margin: 0; }
    .pd-manual-tools { display: flex; align-items: center; gap: 6px; }
    .pd-manual-tools button { width: 34px; height: 34px; border: 1px solid #d5cfc4; background: #fff; color: #1a2a3a; border-radius: 6px; font-size: 17px; font-weight: 700; cursor: pointer; line-height: 1; transition: all .15s; }
    .pd-manual-tools button:hover { background: #f5a623; border-color: #f5a623; color: #1a1a1a; }
    .pd-manual-tools .pm-reset { width: auto; padding: 0 12px; font-size: 13px; font-weight: 600; }
    .pd-manual-tools span { font-size: 12px; color: #8a7a5a; min-width: 46px; text-align: center; font-variant-numeric: tabular-nums; }
    .pd-manual-viewer { position: relative; overflow: hidden; border: 1px solid #e5e0d5; border-radius: 10px; background: #f2f0ea; width: 100%; cursor: grab; user-select: none; touch-action: none; }
    .pd-manual-stage { position: relative; margin: 0 auto; transform-origin: 0 0; transition: transform .06s linear; }
    .pd-manual-stage img { display: block; width: 100%; height: 100%; }
    .pd-manual-hint { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.58); color: #fff; font-size: 11px; padding: 5px 14px; border-radius: 20px; pointer-events: none; white-space: nowrap; }
    /* ── 2026-08-05 CAT 风格 hotspot：默认隐藏，鼠标悬停显示提示，点击进入 ── */
    .pd-manual-layout { display: grid; grid-template-columns: 1fr 260px; gap: 16px; align-items: start; }
    @media (max-width: 900px) { .pd-manual-layout { grid-template-columns: 1fr; } }
    .pd-manual-marks { position: absolute; inset: 0; pointer-events: none; }
    .pd-mk { position: absolute; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%; background: transparent; border: 1px solid transparent; cursor: pointer; pointer-events: auto; transition: background .15s, transform .15s, box-shadow .15s; z-index: 5; }
    .pd-mk:hover { background: #f5a623; border-color: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.5); transform: translate(-50%, -50%) scale(1.25); z-index: 8; }
    .pd-mk.cur:hover { background: #d32f2f; box-shadow: 0 0 0 3px rgba(211,47,47,.35), 0 1px 6px rgba(0,0,0,.5); }
    .pd-mk.hl, .pd-mk.hl:hover { background: #f5a623; border-color: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.5); transform: translate(-50%, -50%) scale(1.25); z-index: 8; }
    .pd-mk.hl.cur { background: #d32f2f; }
    .pd-mk .tt { display: none; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: #1a2a3a; color: #fff; font-size: 11px; line-height: 1.5; padding: 6px 10px; border-radius: 6px; white-space: nowrap; z-index: 10; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
    .pd-mk .tt b { color: #f5a623; }
    .pd-mk:hover .tt { display: block; }
    .pd-mk.cur:hover .tt b { color: #ff8a80; }
    /* 零件清单（与图上标注联动） */
    .pd-manual-list { max-height: 62vh; overflow-y: auto; border: 1px solid #e5e0d5; border-radius: 10px; background: #fff; }
    .pd-manual-list::-webkit-scrollbar { width: 6px; }
    .pd-manual-list::-webkit-scrollbar-thumb { background: #d5cfc4; border-radius: 3px; }
    .pd-ml-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid #f0f0f0; text-decoration: none; color: #333; font-size: 12px; transition: background .12s, box-shadow .12s; }
    .pd-ml-item:last-child { border-bottom: none; }
    .pd-ml-item:hover { background: #fff8ef; }
    .pd-ml-item.hl { background: #fff3dd; box-shadow: inset 3px 0 0 #f5a623; }
    .pd-ml-item.cur { background: #fdecea; box-shadow: inset 3px 0 0 #d32f2f; }
    .pd-ml-no { width: 22px; height: 22px; border-radius: 50%; background: #f5a623; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .pd-ml-item.cur .pd-ml-no { background: #d32f2f; }
    .pd-ml-pn { font-family: monospace; font-weight: 700; color: #1a2a3a; white-space: nowrap; }
    .pd-ml-qty { color: #8a7a5a; font-size: 11px; flex-shrink: 0; }
    .pd-ml-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #888; font-size: 11px; }
    .pd-manual-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
    .pd-manual-thumb { width: 76px; height: 100px; border: 2px solid #e5e0d5; border-radius: 8px; overflow: hidden; cursor: pointer; opacity: .72; transition: all .15s; background: #fff; }
    .pd-manual-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .pd-manual-thumb.active, .pd-manual-thumb:hover { border-color: #f5a623; opacity: 1; }
    /* ── 2026-08-05 质保 tab：质量保证承诺 + 包装说明 左右并排（等高对齐）── */
    .pd-warranty-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
    .pd-warranty-grid > div { display: flex; flex-direction: column; }
    @media (max-width: 900px) { .pd-warranty-grid { grid-template-columns: 1fr; } }
    /* 2026-08-05 字体统一：承诺/包装 内容均 13px，行距 1.7 */
    .pd-warranty-label { font-size: 13px; font-weight: 600; color: #555; line-height: 1.7; }
    .pd-warranty-val { font-size: 13px; color: #333; line-height: 1.7; }
    .pd-warranty-row { margin-bottom: 8px; }
    /* ── 2026-08-06 产品描述·适用机型标签（SEO 强化 + 内链）── */
    .pd-model-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px; }
    .pd-model-tag {
        display: inline-flex; align-items: center;
        padding: 7px 14px; border-radius: 999px;
        font-size: 13px; font-weight: 600; line-height: 1.4;
        color: #b9740a; background: rgba(245,166,35,0.10);
        border: 1px solid rgba(245,166,35,0.35);
        text-decoration: none; transition: all .2s ease; white-space: nowrap;
    }
    .pd-model-tag:hover {
        color: #fff; background: #f5a623; border-color: #f5a623;
        transform: translateY(-1px); box-shadow: 0 4px 14px rgba(245,166,35,0.35);
    }
    