/* ============================================================
   AI SEO Optimizer — 前台样式
   优化后内容的前台展示样式（FAQ 模块 + 正文排版增强）
   ============================================================ */

/* ============================================================
   优化后正文排版增强（配合 AI 生成的结构化 HTML）
   ============================================================ */
.aiseo-optimized-content h2,
.entry-content h2,
.post-content h2,
.article-content h2 {
    font-size: 1.4em;
    font-weight: 700;
    color: #1e293b;
    margin: 2em 0 0.8em 0;
    padding-bottom: 0.4em;
    border-bottom: 2px solid #3b82f6;
    line-height: 1.4;
}

.aiseo-optimized-content h3,
.entry-content h3,
.post-content h3,
.article-content h3 {
    font-size: 1.15em;
    font-weight: 600;
    color: #334155;
    margin: 1.6em 0 0.6em 0;
    padding-left: 12px;
    border-left: 3px solid #3b82f6;
    line-height: 1.5;
}

.aiseo-optimized-content p,
.entry-content p,
.post-content p,
.article-content p {
    margin: 0 0 1.2em 0;
    line-height: 1.8;
    color: #334155;
    font-size: 16px;
}

.aiseo-optimized-content ul,
.aiseo-optimized-content ol,
.entry-content ul,
.entry-content ol,
.post-content ul,
.post-content ol {
    margin: 0 0 1.2em 0;
    padding-left: 1.5em;
}

.aiseo-optimized-content li,
.entry-content li,
.post-content li,
.article-content li {
    margin-bottom: 0.5em;
    line-height: 1.8;
    color: #334155;
}

.aiseo-optimized-content strong,
.entry-content strong,
.post-content strong,
.article-content strong {
    color: #1e293b;
    font-weight: 600;
}

/* ============================================================
   FAQ 模块
   ============================================================ */
.aiseo-faq {
    margin: 40px 0;
    padding: 28px 32px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    max-width: 780px;
}

.aiseo-faq h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #3b82f6;
}

.aiseo-faq-item {
    margin-bottom: 16px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.aiseo-faq-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59,130,246,0.1);
}

.aiseo-faq-question {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.aiseo-faq-question::before {
    content: 'Q';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #3b82f6;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.aiseo-faq-answer {
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
    margin: 0;
    padding-left: 32px;
}

.aiseo-faq-answer::before {
    content: 'A';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #10b981;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    margin-right: 8px;
    vertical-align: middle;
}

/* ============================================================
   文章正文内的小结区块
   ============================================================ */
.aiseo-summary,
.entry-content .aiseo-summary {
    margin: 32px 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border-left: 4px solid #3b82f6;
    border-radius: 0 10px 10px 0;
    font-size: 15px;
    line-height: 1.8;
    color: #334155;
}

.aiseo-summary strong,
.entry-content .aiseo-summary strong {
    color: #1e293b;
}

/* ============================================================
   优化结果对比（后台）
   ============================================================ */
.aiseo-compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}

.aiseo-compare-table th,
.aiseo-compare-table td {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    vertical-align: top;
    text-align: left;
}

.aiseo-compare-table th {
    background: #f1f5f9;
    font-weight: 600;
    color: #1e293b;
    width: 120px;
}

.aiseo-compare-table td {
    background: #fff;
    color: #334155;
    line-height: 1.6;
}

.aiseo-compare-old {
    background: #fef2f2 !important;
    color: #991b1b !important;
    text-decoration: line-through;
    opacity: 0.7;
}

.aiseo-compare-new {
    background: #f0fdf4 !important;
    color: #166534 !important;
    font-weight: 500;
}
