/* ============================================ */
/* 辅材详细介绍弹窗样式 */
/* 文件位置: assets/css/materials-detail-modal.css */
/* ============================================ */

.materials-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.materials-detail-modal.active {
    display: flex;
}

.modal-overlay-detail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal-container-detail {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* 标签页容器 */
.tabs-container-detail {
    background: white;
    padding: 0 20px;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tabs-detail {
    display: flex;
    gap: 40px;
    flex: 1;
}

.tab-detail {
    padding: 16px 0;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    position: relative;
    border: none;
    background: none;
    transition: color 0.3s;
    font-family: inherit;
}

.tab-detail.active {
    color: #025E49;
    font-weight: 600;
}

.tab-detail.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #025E49, #27AE60);
    border-radius: 2px 2px 0 0;
}

.modal-close-detail {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F5F5F5;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 20px;
}

.modal-close-detail:hover {
    background: #E8E8E8;
    color: #333;
    transform: scale(1.05);
}

.modal-close-detail:active {
    transform: scale(0.95);
}

/* 内容区域 */
.content-container-detail {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

.tab-content-detail {
    display: none;
}

.tab-content-detail.active {
    display: block;
}

/* 分类区域 */
.category-section-detail {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.category-title-detail {
    font-size: 17px;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-icon-detail {
    width: 4px;
    height: 18px;
    background: linear-gradient(135deg, #025E49, #27AE60);
    border-radius: 2px;
}

/* 表格样式 */
.materials-table-detail {
    width: 100%;
    border-collapse: collapse;
}

.materials-table-detail thead {
    background: #fafafa;
}

.materials-table-detail th {
    padding: 10px 8px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    border-bottom: 2px solid #f0f0f0;
}

.materials-table-detail td {
    padding: 14px 8px;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    vertical-align: top;
}

.materials-table-detail tbody tr:last-child td {
    border-bottom: none;
}

.materials-table-detail tbody tr:hover {
    background: #fafafa;
}

/* 材料名称单元格 */
.material-name-cell-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.material-name-detail {
    font-weight: 500;
    color: #333;
}

.material-badge-detail {
    background: #025E49;
    color: white;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.material-badge-detail.eco {
    background: #51cf66;
}

.material-badge-detail.premium {
    background: #FFB300;
}

.brand-text-detail {
    color: #666;
    line-height: 1.5;
    font-size: 12px;
}

.spec-text-detail {
    color: #666;
    line-height: 1.6;
    font-size: 12px;
}

/* 施工工艺卡片 */
.process-card-detail {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.process-header-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.process-number-detail {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #025E49, #27AE60);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.3);
}

.process-title-detail {
    font-size: 17px;
    font-weight: 700;
    color: #2C3E50;
}

.process-content-detail {
    padding-left: 48px;
}

.process-desc-detail {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 16px;
}

.process-standards-detail {
    background: linear-gradient(135deg, #F8F9FA, #F0F0F0);
    border-radius: 12px;
    padding: 16px;
    border-left: 3px solid #025E49;
}

.standard-item-detail {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.standard-item-detail:last-child {
    margin-bottom: 0;
}

.standard-item-detail::before {
    content: "·";
    color: #025E49;
    font-weight: bold;
    font-size: 14px;
    margin-top: 1px;
    flex-shrink: 0;
}

/* 质量保障横幅 */
.quality-banner-detail {
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.quality-item-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #2C3E50;
    font-weight: 600;
}

.quality-item-detail::before {
    content: "✓";
    color: #025E49;
    font-weight: bold;
    font-size: 16px;
}

.divider-detail {
    color: rgba(46, 204, 113, 0.3);
    font-weight: 300;
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 滚动条样式 */
.content-container-detail::-webkit-scrollbar {
    width: 6px;
}

.content-container-detail::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.content-container-detail::-webkit-scrollbar-thumb {
    background: #bdbdbd;
    border-radius: 3px;
}

.content-container-detail::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .modal-container-detail {
        width: 100%;
        height: 100vh;
        max-width: 100%;
        border-radius: 0;
    }
    
    .tabs-container-detail {
        padding: 0 16px;
    }
    
    .tabs-detail {
        gap: 32px;
    }
    
    .modal-close-detail {
        margin-left: 12px;
    }
    
    .category-section-detail,
    .process-card-detail {
        padding: 14px;
    }
    
    .materials-table-detail th,
    .materials-table-detail td {
        padding: 10px 6px;
        font-size: 12px;
    }
    
    .spec-text-detail,
    .brand-text-detail {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .tabs-detail {
        gap: 24px;
    }
    
    .tab-detail {
        font-size: 14px;
        padding: 14px 0;
    }
    
    .modal-close-detail {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    
    .category-title-detail {
        font-size: 15px;
    }
    
    .process-title-detail {
        font-size: 15px;
    }
    
    .materials-table-detail th {
        font-size: 11px;
    }
}