/* --- 产品详情弹窗样式 --- */

/* 遮罩层：全屏半透明黑色背景 */
.modal-overlay {
    display: none; /* 默认隐藏 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 激活状态：显示遮罩 */
.modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* 弹窗容器 */
.modal-container {
    background: #fff;
    width: 90%;
    max-width: 1080px;
    max-height: 85vh; /* 最大高度为视口的85% */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

/* 关闭按钮 (右上角 X) */
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #333;
}

/* 弹窗头部 */
.modal-header {
    padding: 25px 30px 15px;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
    font-weight: 700;
}

.modal-subtitle {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

/* 弹窗内容滚动区 */
.modal-body {
    padding: 25px 30px;
    overflow-y: auto; /* 内容过多时内部滚动 */
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

/* 内容区块 */
.modal-section {
    margin-bottom: 25px;
}

.modal-section h3 {
    font-size: 18px;
    color: #007bff; /* 主题蓝 */
    margin-bottom: 12px;
    border-left: 4px solid #007bff;
    padding-left: 10px;
}

/* 特性列表 */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.feature-list li::before {
    content: "✔";
    color: #28a745;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.feature-list strong {
    color: #333;
}

/* 应用领域文本 */
.application-text {
    background: #f0f7ff;
    padding: 15px;
    border-radius: 6px;
    color: #555;
}

/* 技术指标表格 */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 10px;
}

.specs-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.specs-table td {
    padding: 10px;
    border: 1px solid #e0e0e0;
    width: 50%;
}

.specs-table td:first-child {
    font-weight: 600;
    color: #555;
    background-color: #f4f4f4;
    width: 40%;
}

.note {
    font-size: 12px;
    color: #888;
    font-style: italic;
    margin-top: 5px;
}

/* 弹窗底部按钮区 */
.modal-footer {
    padding: 15px 30px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* 按钮通用样式 */
.btn-primary, .btn-secondary {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    border: none;
    display: inline-block;
}

/* 主按钮 (获取参数) */
.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* 次要按钮 (关闭) */
.btn-secondary {
    background-color: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background-color: #d0d0d0;
}

/* 移动端适配 */
@media (max-width: 600px) {
    .modal-container {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-header, .modal-body, .modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .modal-footer {
        flex-direction: column-reverse; /* 手机上关闭按钮在下，主按钮在上 */
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
    
    .specs-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    
    .specs-table td:first-child {
        background-color: #fff;
        padding-bottom: 2px;
        font-weight: bold;
        color: #007bff;
    }
    
    .specs-table tr {
        display: block;
        margin-bottom: 10px;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        overflow: hidden;
    }
}

/* --- 新增列表样式 --- */

/* 应用指导列表 */
.guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #17a2b8; /* 青色区分 */
}

.guide-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
    line-height: 1.6;
    font-size: 14px;
    color: #555;
}

.guide-list li::before {
    content: "🔧"; /* 工具图标 */
    position: absolute;
    left: -5px;
    top: 0;
    font-size: 14px;
}

.guide-list li:last-child {
    margin-bottom: 0;
}

/* 安全措施列表 */
.safety-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff3cd; /* 浅黄色背景警示 */
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #ffc107; /* 黄色区分 */
}

.safety-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    line-height: 1.6;
    font-size: 14px;
    color: #856404;
}

.safety-list li::before {
    content: "⚠️"; /* 警告图标 */
    position: absolute;
    left: -5px;
    top: 0;
    font-size: 14px;
}

.safety-list li:last-child {
    margin-bottom: 0;
}

/* 让包装贮存的换行符生效 */
#modal-packaging {
    white-space: pre-line; 
    line-height: 1.6;
    color: #555;
    background: #f1f1f1;
    padding: 15px;
    border-radius: 6px;
}

/* --- 分组技术指标样式 --- */

.specs-grouped-container {
    display: flex;
    flex-direction: column;
    gap: 20px; /* 类别之间的间距 */
}

.specs-category-block {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

/* 类别标题 (如：粉末性能) */
.specs-category-title {
    background-color: #f0f4f8; /* 浅蓝灰背景，突出类别 */
    color: #2c3e50;
    font-weight: bold;
    padding: 10px 15px;
    font-size: 15px;
    border-bottom: 2px solid #d1d9e6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 内部表格样式 */
.specs-sub-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.specs-sub-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    line-height: 1.5;
}

/* 第一列 (项目名) 加粗 */
.specs-sub-table td:first-child {
    font-weight: 600;
    color: #333;
    width: 40%; /* 控制列宽比例 */
    background-color: #fafafa;
}

/* 最后一行去掉底边框 */
.specs-sub-table tr:last-child td {
    border-bottom: none;
}

/* 鼠标悬停高亮行 */
.specs-sub-table tr:hover td {
    background-color: #f9fbfd;
}









