/* ========================================
   文章内容增强样式 - 2026-04-09
   ======================================== */

/* 目录框样式 */
.article-content .toc-box,
.entry-content .toc-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 12px !important;
    padding: 20px 25px !important;
    margin: 25px 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}

.article-content .toc-box p:first-child,
.entry-content .toc-box p:first-child {
    font-size: 18px !important;
    color: var(--color-text-primary) !important;
    margin-bottom: 12px !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid var(--color-coral) !important;
}

.article-content .toc-box ul,
.entry-content .toc-box ul {
    margin: 0 !important;
    padding-left: 0 !important;
    list-style: none !important;
}

.article-content .toc-box ul li,
.entry-content .toc-box ul li {
    padding: 6px 0 !important;
    border-bottom: 1px solid #eee !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

.article-content .toc-box ul li:last-child,
.entry-content .toc-box ul li:last-child {
    border-bottom: none !important;
}

.article-content .toc-box ul li a,
.entry-content .toc-box ul li a {
    color: var(--color-coral-dark) !important;
    text-decoration: none !important;
    transition: color 0.2s, padding-left 0.2s !important;
    display: block !important;
}

.article-content .toc-box ul li a:hover,
.entry-content .toc-box ul li a:hover {
    color: #e05545 !important;
    padding-left: 8px !important;
}

/* CTA 内联样式 */
.article-content .cta-inline,
.entry-content .cta-inline {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 16px !important;
    padding: 25px !important;
    margin: 30px 0 !important;
    text-align: center !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
}

.article-content .cta-inline p,
.entry-content .cta-inline p {
    color: white !important;
    font-size: 17px !important;
    margin-bottom: 15px !important;
}

.article-content .cta-inline code,
.entry-content .cta-inline code {
    background: rgba(255,255,255,0.2) !important;
    padding: 4px 12px !important;
    border-radius: 6px !important;
    font-size: 18px !important;
    font-weight: bold !important;
    color: #ffd700 !important;
}

.article-content .cta-inline a,
.entry-content .cta-inline a {
    display: inline-block !important;
    background: white !important;
    color: #667eea !important;
    padding: 14px 35px !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 16px !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}

.article-content .cta-inline a:hover,
.entry-content .cta-inline a:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25) !important;
}

/* CTA 最终样式 */
.article-content .cta-final,
.entry-content .cta-final {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border-radius: 16px !important;
    padding: 35px 25px !important;
    margin: 35px 0 !important;
    text-align: center !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4) !important;
}

.article-content .cta-final h3,
.entry-content .cta-final h3 {
    color: white !important;
    font-size: 24px !important;
    margin-bottom: 15px !important;
}

.article-content .cta-final p,
.entry-content .cta-final p {
    color: rgba(255,255,255,0.9) !important;
    font-size: 16px !important;
}

.article-content .cta-final > div,
.entry-content .cta-final > div {
    background: rgba(255,255,255,0.15) !important;
    padding: 18px !important;
    border-radius: 10px !important;
    margin-bottom: 20px !important;
}

.article-content .cta-final > div p,
.entry-content .cta-final > div p {
    font-size: 15px !important;
    margin: 8px 0 !important;
}

.article-content .cta-final > div strong,
.entry-content .cta-final > div strong {
    font-size: 16px !important;
    color: white !important;
}

.article-content .cta-final a,
.entry-content .cta-final a {
    display: inline-block !important;
    background: white !important;
    color: #28a745 !important;
    padding: 16px 45px !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 18px !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}

.article-content .cta-final a:hover,
.entry-content .cta-final a:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25) !important;
}

/* 表格样式 */
.article-content table,
.entry-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 20px 0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    font-size: 14px !important;
}

.article-content table th,
.entry-content table th {
    background: var(--color-coral) !important;
    color: white !important;
    padding: 14px 16px !important;
    text-align: left !important;
    font-weight: 600 !important;
    border: none !important;
}

.article-content table td,
.entry-content table td {
    padding: 12px 16px !important;
    border: 1px solid #eee !important;
    color: var(--color-text-primary) !important;
}

.article-content table tr:nth-child(even),
.entry-content table tr:nth-child(even) {
    background: #fafafa !important;
}

.article-content table tr:hover td,
.entry-content table tr:hover td {
    background: #fff5f3 !important;
}

/* 提示框样式 */
.article-content .notice,
.entry-content .notice {
    border-radius: 10px !important;
    padding: 16px 20px !important;
    margin: 20px 0 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05) !important;
    font-size: 15px !important;
}

.article-content .notice p,
.entry-content .notice p {
    margin: 0 !important;
    color: var(--color-text-primary) !important;
}

/* 图片样式优化 */
.article-content figure img,
.entry-content figure img {
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    margin: 20px auto !important;
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
    transition: transform 0.3s !important;
}

.article-content figure img:hover,
.entry-content figure img:hover {
    transform: scale(1.01) !important;
}

/* H2 标题样式增强 */
.article-content h2,
.entry-content h2 {
    font-size: 1.6rem !important;
    color: var(--color-text-primary) !important;
    padding-bottom: 10px !important;
    border-bottom: 3px solid var(--color-coral) !important;
    margin: 35px 0 20px 0 !important;
    position: relative !important;
}

.article-content h2::after,
.entry-content h2::after {
    content: '' !important;
    position: absolute !important;
    bottom: -3px !important;
    left: 0 !important;
    width: 60px !important;
    height: 3px !important;
    background: var(--color-coral-dark) !important;
}

/* H3 标题样式 */
.article-content h3,
.entry-content h3 {
    font-size: 1.3rem !important;
    color: #333 !important;
    margin: 25px 0 12px 0 !important;
    padding-left: 12px !important;
    border-left: 4px solid var(--color-coral) !important;
}

/* 有序/无序列表样式 */
.article-content ol,
.article-content ul,
.entry-content ol,
.entry-content ul {
    padding-left: 25px !important;
    margin: 15px 0 !important;
}

.article-content li,
.entry-content li {
    margin-bottom: 8px !important;
    line-height: 1.8 !important;
    font-size: 15px !important;
}

.article-content ol li,
.entry-content ol li {
    list-style: decimal !important;
}

.article-content ul li,
.entry-content ul li {
    list-style: disc !important;
}

/* H1 文章标题增强 */
.article-content h1,
.entry-content h1 {
    font-size: 1.8rem !important;
    text-align: center !important;
    margin-bottom: 25px !important;
    color: var(--color-text-primary) !important;
}

/* 分隔线样式 */
.article-content hr,
.entry-content hr {
    border: none !important;
    border-top: 1px dashed #ddd !important;
    margin: 30px 0 !important;
}

/* 移动端优化 */
@media screen and (max-width: 768px) {
    .article-content .toc-box,
    .entry-content .toc-box {
        padding: 15px !important;
    }
    
    .article-content .cta-inline,
    .entry-content .cta-inline {
        padding: 20px 15px !important;
    }
    
    .article-content .cta-inline a,
    .entry-content .cta-inline a {
        padding: 12px 25px !important;
        font-size: 14px !important;
    }
    
    .article-content .cta-final,
    .entry-content .cta-final {
        padding: 25px 15px !important;
    }
    
    .article-content .cta-final a,
    .entry-content .cta-final a {
        padding: 14px 35px !important;
        font-size: 16px !important;
    }
    
    .article-content h2,
    .entry-content h2 {
        font-size: 1.35rem !important;
    }
    
    .article-content table,
    .entry-content table {
        font-size: 13px !important;
        display: block !important;
        overflow-x: auto !important;
    }
}

/* 平板端优化 */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    .article-content .cta-inline,
    .entry-content .cta-inline,
    .article-content .cta-final,
    .entry-content .cta-final {
        margin: 25px 0 !important;
    }
}
