/* product_detail 页专用样式（由模板内联样式抽取，便于缓存）*/
/* ========== 页面英雄区 ========== */
        .product-hero {
            background: linear-gradient(135deg, #2E8B8B 0%, #247575 50%, #2E8B8B 100%);
            color: white;
            padding: 28px 0;
        }
        .product-hero .breadcrumb {
            font-size: 13px;
            opacity: 0.8;
            margin-bottom: 6px;
        }
        .product-hero .breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: none; }
        .product-hero .breadcrumb a:hover { color: white; }
        .product-hero .breadcrumb span { margin: 0 6px; }
        .product-hero .breadcrumb .current { color: white; font-weight: 500; }
        .product-hero h1 { font-size: 1.8em; font-weight: 700; margin: 0; }

        /* ========== 主内容区 ========== */
        .product-main {
            padding: 50px 0 70px;
        }
        .product-layout {
            display: grid;
            grid-template-columns: 58% 1fr;
            gap: 60px;
            align-items: start;
        }
        @media (max-width: 1100px) {
            .product-layout { grid-template-columns: 1fr; gap: 40px; }
        }

        /* ========== 图片画廊 ========== */
        .gallery-main {
            width: 100%;
            height: 620px;
            background: #f5f7f6;
            border-radius: 12px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 14px;
            position: relative;
            border: 1px solid #e8f0ec;
        }
        .gallery-main img {
            max-width: 100%;
            max-height: 540px;
            object-fit: contain;
            cursor: zoom-in;
            transition: transform 0.2s;
        }
        .gallery-main img:hover { transform: scale(1.02); }
        .gallery-main .no-image {
            font-size: 64px;
            color: #d0d8d4;
        }
        .gallery-counter {
            position: absolute;
            bottom: 12px;
            right: 12px;
            background: rgba(0,0,0,0.55);
            color: white;
            padding: 3px 12px;
            border-radius: 20px;
            font-size: 12px;
        }
        .gallery-thumbs {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        .gallery-thumb {
            width: 76px;
            height: 58px;
            border-radius: 8px;
            overflow: hidden;
            cursor: pointer;
            border: 2px solid transparent;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f5f7f6;
        }
        .gallery-thumb:hover { border-color: #2E8B8B; }
        .gallery-thumb.active { border-color: #2E8B8B; background: #e6f4f4; }
        .gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

        /* ========== 产品信息右栏 ========== */
        .product-name {
            font-size: 1.75em;
            font-weight: 700;
            color: #1a2e28;
            margin-bottom: 12px;
            line-height: 1.3;
        }
        .product-meta-row {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            margin-bottom: 24px;
        }
        .badge-sku {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            background: #eef5f2;
            color: #2E8B8B;
            padding: 5px 14px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
        }
        .badge-category {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            background: #f0f0f5;
            color: #555;
            padding: 5px 14px;
            border-radius: 20px;
            font-size: 13px;
        }
        .badge-category a { color: #555; text-decoration: none; }
        .badge-category a:hover { color: #2E8B8B; }

        /* 产品简介 */
        /* ========== 右侧简介区块 ========== */
        .product-desc-block {
            background: #f8faf9;
            border: 1px solid #e2ece8;
            border-radius: 12px;
            padding: 16px 18px;
            margin-bottom: 18px;
        }

        /* 区块标题 */
        .overview-header {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
            font-weight: 700;
            color: #2E8B8B;
            text-transform: uppercase;
            letter-spacing: 1.2px;
            margin-bottom: 14px;
            padding-bottom: 10px;
            border-bottom: 1px solid #d8e8e0;
        }
        .overview-header i {
            font-size: 13px;
        }

        /* ===== 短横格式（- xxx）→ 两列参数表 ===== */
        .overview-table {
            display: flex;
            flex-direction: column;
            gap: 0;
        }
        .overview-row {
            display: grid;
            grid-template-columns: 110px 1fr;
            gap: 0;
            padding: 7px 10px;
            border-radius: 6px;
            transition: background 0.15s;
        }
        .overview-row:nth-child(odd) {
            background: #eef5f1;
        }
        .overview-row:hover {
            background: #e0ede6;
        }
        .overview-row .overview-label {
            font-size: 13px;
            font-weight: 600;
            color: #2E8B8B;
            display: flex;
            align-items: flex-start;
            padding-right: 8px;
            line-height: 1.5;
        }
        .overview-row .overview-value {
            font-size: 13px;
            color: #3a4f48;
            line-height: 1.5;
        }

        /* ===== 编号格式（1. xxx）→ 编号卡片 ===== */
        .overview-cards {
            display: grid;
            grid-template-columns: 1fr;
            gap: 8px;
        }
        .overview-card {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 9px 12px;
            background: #fff;
            border-radius: 8px;
            border: 1px solid #dceee5;
            box-shadow: 0 1px 3px rgba(13,94,63,0.06);
            transition: all 0.2s;
        }
        .overview-card:hover {
            border-color: #2E8B8B;
            box-shadow: 0 3px 8px rgba(13,94,63,0.12);
            transform: translateX(2px);
        }
        .overview-card-num {
            flex-shrink: 0;
            width: 22px;
            height: 22px;
            background: linear-gradient(135deg, #2E8B8B, #247575);
            color: #fff;
            border-radius: 50%;
            font-size: 11px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .overview-card-text {
            font-size: 13.5px;
            color: #2a3e36;
            line-height: 1.6;
        }

        /* 技术参数 */
        .specs-block {
            background: #f8faf9;
            border: 1px solid #e0ece8;
            border-radius: 12px;
            padding: 22px 24px;
            margin-bottom: 22px;
        }
        .specs-block h3 {
            font-size: 15px;
            font-weight: 700;
            color: #1a2e28;
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .specs-block h3 i { color: #2E8B8B; }
        .specs-block .spec-content {
            font-size: 14px;
            color: #444;
            line-height: 1.8;
        }

        /* 快捷标签 */
        .feature-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 28px;
        }
        .feature-badge {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 6px 14px;
            background: #f0f7f4;
            border: 1px solid #c8e0d8;
            border-radius: 6px;
            font-size: 13px;
            color: #2E8B8B;
        }
        .feature-badge i { font-size: 11px; }

        /* 操作按钮栏 */
        .action-bar {
            display: flex;
            gap: 12px;
            align-items: center;
            padding: 22px 24px;
            background: #fff;
            border: 1px solid #e8f0ec;
            border-radius: 12px;
            margin-bottom: 16px;
        }
        .btn-inquiry {
            flex: 1;
            padding: 15px 0;
            background: #2E8B8B;
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            text-decoration: none;
            text-align: center;
            transition: background 0.2s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        .btn-inquiry:hover { background: #247575; }
        .btn-contact {
            padding: 15px 24px;
            background: white;
            color: #2E8B8B;
            border: 2px solid #2E8B8B;
            border-radius: 8px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            text-decoration: none;
            text-align: center;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .btn-contact:hover { background: #2E8B8B; color: white; }

        /* 保障标签 */
        .guarantee-row {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }
        .guarantee-item {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            color: #666;
        }
        .guarantee-item i { color: #2E8B8B; }

        /* ========== 详情标签页 ========== */
        .product-tabs-section {
            margin-top: 50px;
        }
        .tab-buttons {
            display: flex;
            gap: 0;
            border-bottom: 2px solid #e0ece8;
            margin-bottom: 30px;
        }
        .tab-btn {
            padding: 14px 32px;
            border: none;
            background: none;
            cursor: pointer;
            font-size: 15px;
            font-weight: 600;
            color: #888;
            border-bottom: 3px solid transparent;
            margin-bottom: -2px;
            transition: all 0.2s;
        }
        .tab-btn:hover { color: #2E8B8B; }
        .tab-btn.active { color: #2E8B8B; border-bottom-color: #2E8B8B; }
        .tab-panel { display: none; }
        .tab-panel.active { display: block; }
        
        /* 选项卡内容区域 */
        .tab-panel {
            background: #fff;
            border: 1px solid #e8f0ec;
            border-radius: 12px;
            padding: 32px 36px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.04);
        }
        .tab-panel h3 {
            font-size: 18px;
            color: #1a2e28;
            margin-bottom: 20px;
            font-weight: 700;
            padding-bottom: 12px;
            border-bottom: 2px solid #e8f0ec;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .tab-panel h3::before {
            content: '';
            width: 4px;
            height: 20px;
            background: #2E8B8B;
            border-radius: 2px;
        }
        .tab-panel p, .tab-panel li {
            font-size: 15px;
            color: #444;
            line-height: 1.9;
        }
        .tab-panel ul { padding-left: 20px; }
        .tab-panel ul li { margin-bottom: 6px; }
        .tab-panel .detail-html { line-height: 1.9; }

        /* ========== 相关产品 ========== */
        .related-section { margin-top: 60px; }
        .section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 24px;
        }
        .section-header h2 {
            font-size: 20px;
            color: #1a2e28;
            font-weight: 700;
            margin: 0;
        }
        .section-header .view-all {
            font-size: 14px;
            color: #2E8B8B;
            text-decoration: none;
            font-weight: 500;
        }
        .related-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
        }
        @media (max-width: 1024px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
        @media (max-width: 768px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }

        /* Lightbox */
        .lightbox {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.92);
            z-index: 9999;
            align-items: center;
            justify-content: center;
        }
        .lightbox.show { display: flex; }
        .lightbox img { max-width: 90%; max-height: 90%; object-fit: contain; }
        .lightbox-close {
            position: absolute;
            top: 20px; right: 30px;
            font-size: 36px;
            color: white;
            cursor: pointer;
            opacity: 0.7;
            transition: opacity 0.2s;
        }
        .lightbox-close:hover { opacity: 1; }
        .lightbox-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            font-size: 42px;
            color: white;
            cursor: pointer;
            padding: 16px 20px;
            opacity: 0.6;
            transition: opacity 0.2s;
        }
        .lightbox-nav:hover { opacity: 1; }
        .lightbox-prev { left: 16px; }
        .lightbox-next { right: 16px; }

        /* 描述/参数 列表样式 */
        .product-desc-html ol,
        .spec-content ol,
        .detail-html ol {
            list-style: none;
            padding: 0;
            margin: 0 0 16px 0;
        }
        .product-desc-html ol li,
        .spec-content ol li,
        .detail-html ol li {
            position: relative;
            padding: 12px 16px 12px 44px;
            margin-bottom: 10px;
            background: linear-gradient(135deg, #f4faf7 0%, #f0f7f4 100%);
            border-left: 4px solid #2E8B8B;
            border-radius: 0 10px 10px 0;
            font-size: 15px;
            color: #333;
            line-height: 1.7;
            box-shadow: 0 2px 4px rgba(13, 94, 63, 0.06);
        }
        .product-desc-html ol li::before,
        .spec-content ol li::before,
        .detail-html ol li::before {
            content: counter(item);
            counter-increment: item;
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            width: 24px;
            height: 24px;
            background: linear-gradient(135deg, #2E8B8B 0%, #247575 100%);
            color: white;
            border-radius: 50%;
            font-size: 12px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 6px rgba(13, 94, 63, 0.3);
        }
        .product-desc-html ol,
        .spec-content ol,
        .detail-html ol {
            counter-reset: item;
        }
        .product-desc-html ul,
        .spec-content ul,
        .detail-html ul {
            list-style: none;
            padding: 0;
            margin: 0 0 16px 0;
        }
        .product-desc-html ul li,
        .spec-content ul li,
        .detail-html ul li {
            position: relative;
            padding: 12px 16px 12px 40px;
            margin-bottom: 10px;
            background: #f8faf9;
            border-left: 4px solid #c8e0d8;
            border-radius: 0 10px 10px 0;
            font-size: 15px;
            color: #444;
            line-height: 1.7;
            transition: all 0.2s;
        }
        .product-desc-html ul li:hover,
        .spec-content ul li:hover,
        .detail-html ul li:hover {
            background: #f0f7f4;
            border-left-color: #2E8B8B;
        }
        .product-desc-html ul li::before,
        .spec-content ul li::before,
        .detail-html ul li::before {
            content: '';
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%) rotate(45deg);
            width: 8px;
            height: 8px;
            background: linear-gradient(135deg, #2E8B8B 0%, #247575 100%);
            border-radius: 2px;
        }
        .product-desc-html p,
        .spec-content p,
        .detail-html p {
            font-size: 15px;
            color: #444;
            line-height: 1.9;
            margin-bottom: 16px;
        }
        .spec-content {
            font-size: 15px;
            color: #444;
        }
        
        /* 规格参数表格样式 */
        .detail-html table {
            width: 100%;
            border-collapse: collapse;
            margin: 16px 0;
            font-size: 14px;
        }
        .detail-html table th,
        .detail-html table td {
            padding: 14px 16px;
            text-align: left;
            border-bottom: 1px solid #e8f0ec;
        }
        .detail-html table th {
            background: #f4faf7;
            font-weight: 600;
            color: #1a2e28;
            border-top: 2px solid #2E8B8B;
        }
        .detail-html table tr:hover {
            background: #f8faf9;
        }
        .detail-html table tr:last-child td {
            border-bottom: 2px solid #e8f0ec;
        }

        /* ========== 选项卡内容排版优化 ========== */
        /* 处理 <br> 标签后的内容，让每个项目独占一行 */
        .tab-panel .detail-html {
            line-height: 2;
        }
        
        /* 将 <br> 后的 "- " 转换为列表样式 */
        .tab-panel .detail-html br {
            display: block;
            content: "";
            margin-top: 8px;
        }
        
        /* 处理以 "- " 开头的行 */
        .tab-panel .detail-html {
            white-space: pre-line;
        }
        
        /* 自定义列表样式 - 用于 Specifications 等内容 */
        .spec-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .spec-list li {
            position: relative;
            padding: 10px 16px 10px 36px;
            margin-bottom: 8px;
            background: #f8faf9;
            border-left: 3px solid #2E8B8B;
            border-radius: 0 8px 8px 0;
            font-size: 15px;
            color: #444;
            line-height: 1.7;
        }
        .spec-list li::before {
            content: '−';
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            width: 16px;
            height: 16px;
            background: #2E8B8B;
            color: white;
            border-radius: 50%;
            font-size: 12px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        /* 适用范围段落样式 */
        .app-paragraph {
            font-size: 15px;
            color: #555;
            line-height: 2;
            padding: 16px 20px;
            background: linear-gradient(135deg, #f8faf9 0%, #f0f7f4 100%);
            border-left: 4px solid #2E8B8B;
            border-radius: 0 10px 10px 0;
            margin: 0;
        }
        
        /* 数字序号列表样式 */
        .numbered-list {
            list-style: none;
            padding: 0;
            margin: 0;
            counter-reset: item;
        }
        .numbered-list li {
            position: relative;
            padding: 10px 16px 10px 44px;
            margin-bottom: 8px;
            background: linear-gradient(135deg, #f4faf7 0%, #f0f7f4 100%);
            border-left: 3px solid #2E8B8B;
            border-radius: 0 8px 8px 0;
            font-size: 15px;
            color: #444;
            line-height: 1.7;
        }
        .numbered-list li::before {
            content: counter(item);
            counter-increment: item;
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            width: 22px;
            height: 22px;
            background: linear-gradient(135deg, #2E8B8B 0%, #247575 100%);
            color: white;
            border-radius: 50%;
            font-size: 11px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        /* 处理内容中的换行 */
        .tab-panel .detail-html {
            word-wrap: break-word;
            overflow-wrap: break-word;
        }
        
        /* 确保每个列表项独占一行 */
        .spec-list li, .numbered-list li {
            display: block;
            width: 100%;
            box-sizing: border-box;
        }
        
        /* 如果没有被JS格式化，原生内容也美化显示 */
        .tab-panel .detail-html:not(:has(ul)):not(:has(ol)) {
            line-height: 2.2;
        }
        
        .tab-panel .detail-html:not(:has(ul)):not(:has(ol)) br {
            display: block;
            margin-bottom: 8px;
        }
        
        /* ========== 新增产品的后备样式 ========== */
        /* 确保.spec-formatted .app-formatted .pkg-formatted中的<br>正确换行 */
        .spec-formatted, .app-formatted, .pkg-formatted {
            display: block !important;
        }
        .spec-formatted br, .app-formatted br, .pkg-formatted br {
            display: block !important;
            height: 10px !important;
            margin: 0 !important;
            padding: 0 !important;
            content: "" !important;
        }
        
        /* 包装信息特殊样式 */
        #tab-packaging .detail-html {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 16px;
        }
        #tab-packaging .detail-html p {
            background: #f8faf9;
            padding: 16px 20px;
            border-radius: 10px;
            border-left: 4px solid #2E8B8B;
            margin: 0;
        }
        #tab-packaging .detail-html ul {
            grid-column: 1 / -1;
        }
        
        /* ========== 修复：让spec-formatted等内容正确显示每个项目 ========== */
        .spec-formatted, .app-formatted, .pkg-formatted {
            line-height: 2.2;
        }
        .spec-formatted, .app-formatted, .pkg-formatted,
        .spec-formatted *, .app-formatted *, .pkg-formatted * {
            display: block;
        }
