/**
 * 绿翊合规 - faq 问答详情页样式
 * 适用于 faq/article.php
 * 包含：主内容、摘要区块、答案正文、法规引用、相关问答、侧栏
 */

/* ===== 主容器 ===== */
.article-main {
    max-width: 1200px;
    margin: 32px auto 40px;
    padding: 0 20px;
    display: flex;
    gap: 28px;
    align-items: flex-start;
}
.article-content { flex: 1; min-width: 0; }
.article-sidebar { width: 300px; flex-shrink: 0; }

/* ===== 文章卡片 ===== */
.article-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px 36px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}
.article-cat-tag {
    display: inline-block;
    font-size: 12px;
    color: #1c499e;
    background: #eef3ff;
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-weight: 500;
}
.article-h1 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.5;
    margin-bottom: 16px;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #999;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 24px;
}
.article-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== 摘要区块（AIGEO 重点） ===== */
.article-summary {
    background: linear-gradient(135deg, #f0f6ff, #e8f0ff);
    border-left: 4px solid #1c499e;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 28px;
}
.article-summary-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1c499e;
    margin-bottom: 10px;
}
.article-summary-label::before {
    content: '💡';
    font-size: 15px;
}
.article-summary-text {
    font-size: 15px;
    color: #333;
    line-height: 1.9;
}

/* ===== 答案正文 ===== */
.article-answer {
    font-size: 15px;
    color: #333;
    line-height: 1.9;
}
.article-answer h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1c499e;
    margin: 24px 0 12px;
    padding-left: 12px;
    border-left: 4px solid #1c499e;
}
.article-answer h3:first-child { margin-top: 0; }
.article-answer p { margin-bottom: 14px; }
.article-answer ul,
.article-answer ol {
    margin: 0 0 14px 4px;
    padding-left: 22px;
}
.article-answer li {
    margin-bottom: 8px;
    line-height: 1.85;
}
.article-answer strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* ===== 法规引用区块 ===== */
.article-regulations {
    background: #fafbfc;
    border: 1px solid #eef0f5;
    border-radius: 10px;
    padding: 20px 24px;
    margin-top: 28px;
}
.article-regulations-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.article-regulations-title::before {
    content: '⚖';
    font-size: 16px;
}
.article-regulations-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.article-regulations-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #e8e8e8;
    font-size: 14px;
    color: #555;
}
.article-regulations-list li:last-child { border-bottom: none; }
.article-reg-name {
    color: #1c499e;
    font-weight: 500;
}
.article-reg-id {
    color: #888;
    font-size: 13px;
    margin-left: 6px;
}

/* ===== 标签区 ===== */
.article-tags {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}
.article-tags-label {
    font-size: 13px;
    color: #888;
    margin-right: 8px;
}
.article-tag {
    display: inline-block;
    font-size: 12px;
    color: #1c499e;
    background: #f0f4ff;
    padding: 4px 12px;
    border-radius: 12px;
    margin: 4px 4px 4px 0;
    text-decoration: none;
    transition: all 0.2s;
}
.article-tag:hover {
    background: #1c499e;
    color: #fff;
}

/* ===== 上一篇 / 下一篇导航 ===== */
.article-nav {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}
.article-nav-item {
    flex: 1;
    padding: 14px 18px;
    background: #f8f9fb;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.article-nav-item:not(.article-nav-disabled):hover {
    background: #eef3ff;
}
.article-nav-prev { text-align: left; }
.article-nav-next { text-align: right; align-items: flex-end; }
.article-nav-label {
    font-size: 12px;
    color: #999;
}
.article-nav-title {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.article-nav-item:not(.article-nav-disabled):hover .article-nav-title {
    color: #1c499e;
}
.article-nav-disabled {
    opacity: 0.5;
    cursor: default;
}

/* ===== 相关问答 ===== */
.related-faqs {
    background: #fff;
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.related-faqs-title {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8eefc;
    display: flex;
    align-items: center;
    gap: 6px;
}
.related-faqs-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: #1c499e;
    border-radius: 2px;
}
.related-faqs-list { list-style: none; padding: 0; margin: 0; }
.related-faqs-list li {
    border-bottom: 1px solid #f5f5f5;
}
.related-faqs-list li:last-child { border-bottom: none; }
.related-faqs-list a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 0;
    color: #444;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.6;
    transition: color 0.2s;
}
.related-faqs-list a:hover { color: #1c499e; }
.related-faqs-list a::before {
    content: '›';
    flex-shrink: 0;
    color: #1c499e;
    font-size: 20px;
    line-height: 1;
    font-weight: 700;
}
.related-faqs-cat {
    display: inline-block;
    font-size: 11px;
    color: #888;
    background: #f5f7fa;
    padding: 1px 7px;
    border-radius: 8px;
    margin-left: 6px;
    flex-shrink: 0;
}

/* ===== 关联服务卡 ===== */
.related-service-card {
    background: linear-gradient(135deg, #1c499e, #0a2463);
    border-radius: 12px;
    padding: 22px 24px;
    margin-top: 20px;
    text-align: center;
}
.related-service-card h4 {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
}
.related-service-card p {
    font-size: 13px;
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.7;
}
.related-service-btn {
    display: inline-block;
    background: #1c499e;
    color: #fff;
    padding: 9px 24px;
    border-radius: 22px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}
.related-service-btn:hover {
    background: #0a2463;
    transform: translateY(-1px);
}

/* ===== 侧栏（复用首页样式） ===== */
.article-sidebar-box {
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}
.article-sidebar-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8eefc;
    display: flex;
    align-items: center;
    gap: 6px;
}
.article-sidebar-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: #1c499e;
    border-radius: 2px;
}
.sidebar-faq-list { list-style: none; padding: 0; margin: 0; }
.sidebar-faq-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 24px;
}
.sidebar-faq-list li:last-child { margin-bottom: 0; }
.sidebar-faq-list li::before {
    content: 'Q';
    position: absolute;
    left: 0;
    top: 8px;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #1c499e, #3b82d9);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
}
.sidebar-faq-list a {
    display: block;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.6;
    padding: 4px 0;
    border-bottom: 1px dashed #f0f0f0;
    transition: color 0.2s;
}
.sidebar-faq-list a:hover { color: #1c499e; }

.sidebar-consult-card {
    background: linear-gradient(135deg, #1c499e, #0a2463);
    border-radius: 12px;
    padding: 22px 20px;
    color: #fff;
    text-align: center;
}
.sidebar-consult-card h4 { font-size: 16px; margin-bottom: 8px; }
.sidebar-consult-card p {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 16px;
    line-height: 1.7;
}
.sidebar-consult-btn {
    display: inline-block;
    background: #ffd54f;
    color: #0a2463;
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.sidebar-consult-btn:hover { background: #ffca28; transform: translateY(-1px); }

/* ===== 移动端适配 ===== */
@media (max-width: 960px) {
    .article-main { flex-direction: column; padding: 0 16px; }
    .article-sidebar { width: 100%; position: static; order: 2; }
    .article-content { order: 1; }
    .article-card { padding: 22px 18px; }
    .article-h1 { font-size: 21px; }
    .article-answer { font-size: 14px; }
    .article-answer h3 { font-size: 16px; }
    .related-faqs { padding: 20px 18px; }
}

@media (max-width: 480px) {
    .article-h1 { font-size: 19px; }
    .article-summary { padding: 16px; }
    .article-summary-text { font-size: 14px; }
    .article-meta { gap: 10px; font-size: 12px; }
}
