/**
 * 产品详情页专业化样式
 * 为线性Section布局添加专业级视觉效果
 */

/* ============================================
   Section通用样式 - 简洁清爽
   ============================================ */
body.product-detail-page .prodetail > div[class^="section-"] {
    margin-bottom: 20px;
    padding: 20px 24px;
    background: #fff;
    border: none;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

body.product-detail-page .prodetail > div[class^="section-"]:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

body.product-detail-page .prodetail .section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0066CC;
    position: relative;
}

body.product-detail-page .prodetail .section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 50px;
    height: 2px;
    background: #0066CC;
}

body.product-detail-page .prodetail .section-content {
    font-size: 13px;
    line-height: 1.7;
    color: #666;
}

/* ============================================
   产品概述
   ============================================ */
body.product-detail-page .section-overview {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid #0066CC;
}

body.product-detail-page .section-overview .section-content p {
    text-indent: 2em;
    text-align: justify;
    line-height: 2;
}

/* ============================================
   核心优势 - 3列网格卡片
   ============================================ */
body.product-detail-page .section-features {
    background: linear-gradient(135deg, #f8faf9 0%, #ffffff 100%);
}

body.product-detail-page .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    margin-top: 8px;
}

body.product-detail-page .feature-card {
    padding: 16px 14px;
    background: #fff;
    border: 1px solid #e8f0ec;
    border-radius: 4px;
    transition: all 0.3s ease;
}

body.product-detail-page .feature-card:hover {
    border-color: #0066CC;
    box-shadow: 0 4px 12px rgba(0, 166, 82, 0.1);
    transform: translateY(-2px);
}

body.product-detail-page .feature-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: #0066CC;
    margin-bottom: 6px;
}

body.product-detail-page .feature-card p {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* ============================================
   光电参数表格（专业化）
   ============================================ */
body.product-detail-page .section-specs {
    overflow-x: auto;
}

body.product-detail-page .specs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

body.product-detail-page .specs-table thead {
    background: linear-gradient(180deg, #0066CC 0%, #008F46 100%);
    color: #fff;
}

body.product-detail-page .specs-table thead th {
    padding: 12px 16px;
    font-weight: 600;
    text-align: left;
    border-bottom: 2px solid #007A3D;
}

body.product-detail-page .specs-table thead th:first-child {
    width: 35%;
}

body.product-detail-page .specs-table thead th:nth-child(2) {
    width: 40%;
}

body.product-detail-page .specs-table thead th:nth-child(3) {
    width: 25%;
}

body.product-detail-page .specs-table tbody tr {
    transition: background-color 0.2s ease;
}

body.product-detail-page .specs-table tbody tr:hover {
    background-color: #f0f9f4;
}

body.product-detail-page .specs-table tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

body.product-detail-page .specs-table tbody td:first-child {
    font-weight: 500;
    color: #333;
}

body.product-detail-page .specs-table tbody td:nth-child(2) {
    font-family: 'Consolas', 'Monaco', monospace;
    color: #0066CC;
    font-weight: 500;
}

body.product-detail-page .specs-table tbody td:nth-child(3) {
    font-size: 12px;
    color: #999;
}

body.product-detail-page .specs-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

body.product-detail-page .specs-table tbody tr:last-child td {
    border-bottom: none;
}

/* 参数分组视觉区分 */
body.product-detail-page .specs-table tbody tr:nth-child(5) td,
body.product-detail-page .specs-table tbody tr:nth-child(10) td,
body.product-detail-page .specs-table tbody tr:nth-child(16) td,
body.product-detail-page .specs-table tbody tr:nth-child(18) td,
body.product-detail-page .specs-table tbody tr:nth-child(20) td,
body.product-detail-page .specs-table tbody tr:nth-child(23) td {
    border-bottom: 2px solid #e0e0e0;
}

/* ============================================
   关键参数表格（精简版）
   ============================================ */
body.product-detail-page .section-specs-key {
    background: #fff;
}

body.product-detail-page .specs-table-simple {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

body.product-detail-page .specs-table-simple tr {
    border-bottom: 1px solid #f0f0f0;
}

body.product-detail-page .specs-table-simple td {
    padding: 10px 14px;
    font-size: 13px;
}

body.product-detail-page .specs-table-simple td:first-child {
    width: 30%;
    color: #666;
    font-weight: 500;
}

body.product-detail-page .specs-table-simple td:last-child {
    color: #333;
    font-family: 'Consolas', 'Monaco', monospace;
    font-weight: 600;
}

/* 展开按钮 */
body.product-detail-page .spec-toggle-wrapper {
    text-align: center;
    margin-top: 20px;
}

body.product-detail-page .spec-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.product-detail-page .spec-toggle-btn:hover {
    background: #0066CC;
    border-color: #0066CC;
    color: #fff;
}

body.product-detail-page .spec-toggle-btn .toggle-icon {
    transition: transform 0.3s ease;
}

/* 完整参数（折叠）*/
body.product-detail-page .section-specs-full {
    background: #fafbfc;
}

/* ============================================
   应用场景 - 卡片网格
   ============================================ */
body.product-detail-page .section-applications {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

body.product-detail-page .applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

body.product-detail-page .application-card {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    transition: all 0.3s ease;
}

body.product-detail-page .application-card:hover {
    border-color: #0066CC;
    box-shadow: 0 3px 12px rgba(0, 166, 82, 0.1);
    transform: translateY(-2px);
}

body.product-detail-page .application-card .app-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0066CC 0%, #00c96f 100%);
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
}

body.product-detail-page .application-card .app-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

body.product-detail-page .application-card .app-content p {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* ============================================
   技术支持 - 简洁联系卡片
   ============================================ */
body.product-detail-page .section-support {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f2 100%);
}

body.product-detail-page .support-info {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
}

body.product-detail-page .support-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e0f2e6;
}

body.product-detail-page .support-item .support-label {
    font-size: 13px;
    color: #666;
}

body.product-detail-page .support-item .support-value {
    font-size: 18px;
    font-weight: 600;
    color: #0066CC;
    font-family: 'Arial', sans-serif;
}

body.product-detail-page .support-desc {
    font-size: 13px;
    line-height: 1.8;
    color: #666;
    margin: 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    border-left: 3px solid #0066CC;
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 768px) {
    body.product-detail-page .prodetail > div[class^="section-"] {
        padding: 20px 15px;
        margin-bottom: 20px;
    }

    body.product-detail-page .prodetail .section-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    body.product-detail-page .applications-list {
        grid-template-columns: 1fr;
    }

    body.product-detail-page .specs-table {
        font-size: 12px;
    }

    body.product-detail-page .specs-table thead th,
    body.product-detail-page .specs-table tbody td {
        padding: 8px 10px;
    }

    body.product-detail-page .tech-features-list li {
        padding: 10px 12px;
        font-size: 13px;
    }

    /* 表格横向滚动提示 */
    body.product-detail-page .section-specs::after {
        content: '← 左右滑动查看完整参数 →';
        display: block;
        text-align: center;
        font-size: 12px;
        color: #999;
        margin-top: 10px;
    }
}

/* ============================================
   打印样式优化
   ============================================ */
@media print {
    body.product-detail-page .prodetail > div[class^="section-"] {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    body.product-detail-page .specs-table thead {
        background: #0066CC !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ============================================
   产品图片尺寸控制 - 统一全站产品详情页
   ============================================ */

/* 1. 外层容器 - 限制整个图片区域的最大宽度 */
body.product-detail-page .showcon .bigpic {
    width: 290px !important;
    max-width: 290px !important;
    min-width: 290px !important;
    flex-shrink: 0 !important;
}

/* 2. 图片框 - 固定尺寸的限制框 */
body.product-detail-page .showcon .bigpic .picbox {
    width: 290px !important;
    height: 290px !important;
    max-width: 290px !important;
    max-height: 290px !important;
    padding: 10px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 4px !important;
    background: #fafafa !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* 3. 图片本身 - 在限制框内按比例缩放 */
body.product-detail-page .showcon .bigpic .picbox .bigImg {
    width: auto !important;
    height: auto !important;
    max-width: 270px !important;
    max-height: 270px !important;
    object-fit: contain !important;
    display: block !important;
}

/* 4. 缩略图列表 */
body.product-detail-page .showcon .bigpic .piclist ul {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

body.product-detail-page .showcon .bigpic .piclist ul li {
    width: 60px !important;
    height: 60px !important;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: default;
}

/* 可点击的缩略图 */
body.product-detail-page .showcon .bigpic .piclist ul li.clickable {
    cursor: pointer;
}

body.product-detail-page .showcon .bigpic .piclist ul li.clickable:hover {
    border-color: #0066CC;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 166, 82, 0.2);
}

/* 当前选中的缩略图 */
body.product-detail-page .showcon .bigpic .piclist ul li.active {
    border-color: #0066CC;
    box-shadow: 0 0 0 1px #0066CC;
}

body.product-detail-page .showcon .bigpic .piclist ul li img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block;
    transition: opacity 0.3s ease;
}

/* 主图切换动画 */
body.product-detail-page .showcon .bigpic .picbox .bigImg {
    transition: opacity 0.3s ease;
}
