/* 国力化工 - FAQ详情页专属样式 */
/* 从 template/cms/default/faqdetail.html 提取 */

.product-detail-wrapper { display: grid; grid-template-columns: 280px 1fr; gap: 30px; }
.product-sidebar { position: sticky; top: 20px; height: fit-content; }

.sidebar-block {
    background: rgba(26, 26, 46, 0.8); border-radius: 12px; padding: 20px;
    margin-bottom: 20px; box-shadow: 0 2px 15px rgba(0,0,0,.3);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.sidebar-title {
    font-size: 14px; font-weight: 600; color: #fff; background: var(--primary);
    padding: 10px 15px; border-radius: 8px; margin-bottom: 15px;
    display: flex; align-items: center; gap: 8px;
}
.sidebar-title i { color: #fff; }

.faq-sidebar-list { list-style: none; padding: 0; margin: 0; }
.faq-sidebar-list li { margin-bottom: 10px; }
.faq-sidebar-list li:last-child { margin-bottom: 0; }
.faq-sidebar-list a {
    display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px;
    background: var(--bg-light); border-radius: 8px; color: var(--text-dark);
    font-size: 13px; line-height: 1.5; transition: all 0.3s;
}
.faq-sidebar-list a:hover { background: var(--primary); color: #fff; transform: translateX(5px); }
.faq-sidebar-list a.active { background: var(--primary); color: #fff; border-left: 3px solid var(--accent); }
.faq-sidebar-list a i { color: var(--primary); margin-top: 3px; flex-shrink: 0; }
.faq-sidebar-list a:hover i, .faq-sidebar-list a.active i { color: #fff; }
.faq-sidebar-list a span {
    overflow: hidden; text-overflow: -o-ellipsis-lastline;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.faq-product-link {
    display: block; padding: 12px; background: var(--bg-light); border-radius: 8px;
    text-decoration: none; color: inherit; transition: all 0.3s; margin-bottom: 10px;
}
.faq-product-link:last-child { margin-bottom: 0; }
.faq-product-link:hover { background: var(--primary); color: #fff; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,.15); }
.faq-product-link img { width: calc(100% - 24px); height: auto; max-height: 200px; object-fit: contain; border-radius: 6px; margin-bottom: 10px; display: block; margin-left: auto; margin-right: auto; background: #f5f5f5; }
.faq-product-info { text-align: center; }
.faq-product-info h4 { font-size: 13px; color: var(--text-dark); margin: 0; font-weight: 500; }
.faq-product-link:hover .faq-product-info h4 { color: #fff; }

.product-main { min-width: 0; }
.product-card { background: rgba(26, 26, 46, 0.8); border-radius: 16px; padding: 30px; box-shadow: 0 5px 25px rgba(0,0,0,.3); margin-bottom: 30px; border: 1px solid rgba(59, 130, 246, 0.2); }
.faq-detail-question { margin-bottom: 0; }
.faq-detail-label { display: inline-block; padding: 5px 15px; background: var(--primary); color: #fff; font-size: 14px; border-radius: 20px; margin-bottom: 15px; }
.faq-detail-title { font-size: 28px; color: var(--text-dark); line-height: 1.5; margin: 0; }

.detail-tabs { background: rgba(26, 26, 46, 0.8); border-radius: 16px; padding: 30px; box-shadow: 0 5px 25px rgba(0,0,0,.3); margin-bottom: 30px; border: 1px solid rgba(59, 130, 246, 0.2); }
.detail-tab-content { color: var(--text-dark); line-height: 1.9; }
.tab-panel { display: block; }
.faq-detail-answer { margin-bottom: 0; }
.faq-answer-content { font-size: 16px; color: #e5e5e5; line-height: 1.8; background: rgba(26, 26, 46, 0.6); border-radius: 12px; border: 1px solid rgba(59, 130, 246, 0.2); padding: 30px; margin-bottom: 20px; }
.faq-answer-content p { margin-bottom: 18px; text-align: justify; text-indent: 2em; color: #e5e5e5; }
.faq-answer-content p:last-child { margin-bottom: 0; }

.faq-meta { display: flex; flex-wrap: wrap; gap: 20px; color: var(--text-light); font-size: 14px; }
.faq-meta-item { display: flex; align-items: center; gap: 5px; }
.faq-meta-item a { color: var(--primary); }
.faq-meta-item a:hover { color: var(--accent); }

.faq-detail-back { text-align: center; }
.back-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 30px; background: var(--primary); color: #fff; border-radius: 50px; font-size: 15px; transition: all .3s; text-decoration: none; }
.back-btn:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); }

.detail-tab-content .tab-panel h2 { font-size: 22px; font-weight: bold; color: #ffffff; margin: 20px 0 18px 0; padding-left: 15px; border-left: 4px solid #3b82f6; background: rgba(26, 26, 46, 0.6); padding: 12px 18px; border-radius: 0 8px 8px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.detail-tab-content .tab-panel h3 { font-size: 18px; font-weight: bold; color: #ffffff; margin: 25px 0 15px 0; padding-left: 15px; border-left: 4px solid #3b82f6; background: rgba(26, 26, 46, 0.6); padding: 10px 15px; border-radius: 0 6px 6px 0; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.detail-tab-content .tab-panel h4 { font-size: 16px; font-weight: bold; color: #e5e5e5; margin: 20px 0 12px 0; }
.detail-tab-content .tab-panel strong { color: #60a5fa; font-weight: 600; }
.detail-tab-content .tab-panel ul { list-style: none; padding: 0; margin: 15px 0 20px 20px; }
.detail-tab-content .tab-panel ul li { position: relative; padding-left: 24px; margin-bottom: 12px; line-height: 1.7; color: #e5e5e5; }
.detail-tab-content .tab-panel ul li::before { content: '✓'; position: absolute; left: 0; color: #10b981; font-weight: bold; font-size: 14px; }
.detail-tab-content .tab-panel ol { padding-left: 30px; margin: 15px 0 20px 0; }
.detail-tab-content .tab-panel ol li { margin-bottom: 10px; line-height: 1.7; color: #e5e5e5; }
.detail-tab-content .tab-panel table { width: 100%; border-collapse: collapse; margin: 15px 0 20px 0; background: rgba(26, 26, 46, 0.8); border-radius: 8px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.3); border: 1px solid rgba(59, 130, 246, 0.2); }
.detail-tab-content .tab-panel table th { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); color: #fff; padding: 14px 16px; text-align: left; font-weight: 600; font-size: 14px; }
.detail-tab-content .tab-panel table td { padding: 12px 16px; border-bottom: 1px solid rgba(59, 130, 246, 0.2); font-size: 15px; color: #e5e5e5; }
.detail-tab-content .tab-panel table tr:last-child td { border-bottom: none; }
.detail-tab-content .tab-panel table tr:hover td { background: rgba(59, 130, 246, 0.1); }
.detail-tab-content .tab-panel blockquote { border-left: 4px solid #10b981; background: rgba(16, 185, 129, 0.1); padding: 15px 20px; margin: 20px 0; border-radius: 0 8px 8px 0; color: #e5e5e5; }
.detail-tab-content .tab-panel pre { background: rgba(26, 26, 46, 0.8); color: #e2e8f0; padding: 18px; border-radius: 8px; overflow-x: auto; margin: 20px 0; font-family: 'Consolas', 'Monaco', monospace; font-size: 14px; line-height: 1.6; border: 1px solid rgba(59, 130, 246, 0.2); }
.detail-tab-content .tab-panel code { background: rgba(59, 130, 246, 0.2); color: #60a5fa; padding: 2px 6px; border-radius: 4px; font-family: 'Consolas', 'Monaco', monospace; font-size: 14px; }
.detail-tab-content .tab-panel hr { border: none; height: 1px; background: linear-gradient(to right, transparent, rgba(59, 130, 246, 0.3), transparent); margin: 30px 0; }
.detail-tab-content .tab-panel img { max-width: 100%; height: auto; border-radius: 8px; margin: 15px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.detail-tab-content .tab-panel table td:first-child { font-weight: 500; color: #a0aec0; min-width: 120px; }

@media (max-width: 992px) {
    .product-detail-wrapper { grid-template-columns: 1fr; }
    .product-sidebar { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 768px) {
    .product-sidebar { grid-template-columns: 1fr; }
    .faq-detail-title { font-size: 22px; }
    .faq-answer-content { padding: 20px; }
    .faq-meta { flex-direction: column; gap: 10px; }
    .product-card { padding: 20px; }
    .detail-tabs { padding: 20px; }
}
@media (max-width: 576px) {
    .faq-detail-title { font-size: 18px; }
    .faq-answer-content { padding: 15px; }
    .product-card { padding: 15px; }
    .detail-tabs { padding: 15px; }
}
