.article-hero {
    background: var(--bg-white);
}
.article-detail {
    max-width: 860px;
    margin: 0 auto;
}
.article-detail h1 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
    margin: 10px 0 18px;
}
.article-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 12px;
}
.article-cover {
    margin: 24px 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.article-cover img {
    display: block;
    width: 100%;
    height: auto;
}
.article-content {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.9;
}
.article-content p {
    margin: 0 0 18px;
}
.article-content h2,
.article-content h3 {
    color: var(--text-dark);
    line-height: 1.35;
    margin: 30px 0 12px;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}
@media (max-width: 768px) {
    .article-detail h1 {
        font-size: 28px;
    }
}

/* ============================================================
           CSS Variables
           ============================================================ */
:root {
    --primary: #1a5cff;
    --primary-dark: #0d47d6;
    --primary-light: #e8eeff;
    --primary-gradient: linear-gradient(135deg, #1a5cff 0%, #0d47d6 100%);
    --text-dark: #0a1628;
    --text-gray: #4a5a6e;
    --text-light: #7a8a9e;
    --bg-white: #ffffff;
    --bg-gray: #f5f7fa;
    --border: #e8ecf1;
    --radius: 16px;
    --radius-sm: 10px;
    --max-width: 820px;
}

/* ============================================================
           Reset & Base
           ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
        "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-gray);
    color: var(--text-dark);
    line-height: 1.8;
    padding: 24px 0 0;
}

/* ============================================================
           Container
           ============================================================ */
.article-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 120px 20px;
}

/* ============================================================
           1. 面包屑导航（后端自动生成）
           ============================================================ */
.breadcrumb {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 24px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb .sep {
    margin: 0 8px;
    color: var(--text-light);
}
.breadcrumb .current {
    color: var(--text-gray);
}

/* ============================================================
           2. 文章头部（后端自动填充）
           ============================================================ */
.article-header {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 40px 36px 28px;
    border: 1px solid var(--border);
    margin-bottom: 32px;
}
.article-header .category {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}
.article-header h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 12px;
}
.article-header .meta {
    font-size: 14px;
    color: var(--text-light);
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
}
.article-header .meta .dot {
    color: var(--border);
}

/* ============================================================
           3. 正文内容（后端 the_content() 输出）
           ============================================================ */
.article-body {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 40px 36px;
    border: 1px solid var(--border);
    margin-bottom: 32px;
}
.article-body .wp-caption {
    max-width: 100%;
}

/* 标准内容样式 */
.article-body h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 40px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}
.article-body h2:first-of-type {
    margin-top: 0;
}
.article-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 28px 0 12px;
}
.article-body p {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.9;
}
.article-body ul,
.article-body ol {
    padding-left: 24px;
    margin-bottom: 20px;
}
.article-body li {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

/* 引用块（编辑器「引用」区块） */
.article-body blockquote {
    border-left: 4px solid var(--primary);
    background: var(--bg-gray);
    padding: 16px 22px;
    margin: 24px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-gray);
}
.article-body blockquote p {
    margin-bottom: 0;
}

/* 文章表格样式 */
.article-body table {
    border-collapse: collapse;
    border: 1px solid #333;
}
.article-body table td,
.article-body table th {
    border-collapse: collapse;
    border: 1px solid #333;
    padding: 8px;
}

/* ============================================================
           4. 短代码：数据高亮块 [highlight]
           ============================================================ */
.shortcode-highlight {
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin: 24px 0;
    border-left: 4px solid var(--primary);
}
.shortcode-highlight .label {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.shortcode-highlight .number {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}
.shortcode-highlight .desc {
    font-size: 15px;
    color: var(--text-gray);
}

/* ============================================================
           5. 短代码：方案对比卡片 [compare]
           ============================================================ */
.shortcode-compare-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin: 24px 0;
}
.shortcode-compare-card {
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
    padding: 16px 10px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.2s;
}
.shortcode-compare-card:hover {
    border-color: var(--primary);
    background: var(--bg-white);
}
.shortcode-compare-card .icon {
    font-size: 28px;
    margin-bottom: 4px;
}
.shortcode-compare-card .name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}
.shortcode-compare-card .tag {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
    display: block;
}
.shortcode-compare-card.highlight {
    border-color: var(--primary);
    background: var(--primary-light);
}

/* ============================================================
           6. 短代码：FAQ [faq]（全部展开，无交互）
           ============================================================ */
.shortcode-faq-section {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 32px 36px;
    border: 1px solid var(--border);
    margin: 32px 0;
}
.shortcode-faq-section h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}
.shortcode-faq-item {
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}
.shortcode-faq-item:last-child {
    border-bottom: none;
}
.shortcode-faq-item .q {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.shortcode-faq-item .q .arrow {
    color: var(--text-light);
    font-size: 14px;
}
.shortcode-faq-item .a {
    font-size: 15px;
    color: var(--text-gray);
    padding-top: 12px;
    line-height: 1.8;
    display: block;
}

/* ============================================================
           7. 相关文章推荐（后端 WP_Query 自动生成）
           ============================================================ */
.related-section {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 32px 36px;
    border: 1px solid var(--border);
    margin-bottom: 32px;
}
.related-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.related-card {
    padding: 16px 18px;
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
    transition: all 0.25s;
    text-decoration: none;
    display: block;
}
.related-card:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}
.related-card .cat {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
}
.related-card .title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 4px;
    line-height: 1.4;
}

/* ============================================================
           8. 固定模块：押呗特色板块（模板固定写死）
           ============================================================ */
.shortcode-feature-box {
    background: var(--primary-light);
    border-radius: var(--radius);
    padding: 28px 28px;
    margin: 28px 0;
    border: 2px solid var(--primary);
}
.shortcode-feature-box .label {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 16px;
    border-radius: 50px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.shortcode-feature-box h4 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.shortcode-feature-box p {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 12px;
}
.shortcode-feature-box ul {
    list-style: none;
    padding: 0;
}
.shortcode-feature-box ul li {
    font-size: 14px;
    color: var(--text-gray);
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
}
.shortcode-feature-box ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* ============================================================
           9. 固定模块：底部 CTA（模板固定写死）
           ============================================================ */
.cta-section {
    background: var(--primary-gradient);
    border-radius: var(--radius);
    padding: 36px 32px;
    text-align: center;
    color: #fff;
}
.cta-section h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}
.cta-section p {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 20px;
}
.cta-section .btn {
    display: inline-block;
    background: #fff;
    color: var(--primary);
    padding: 12px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition:
        transform 0.25s,
        box-shadow 0.25s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.cta-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.cta-section .sub {
    font-size: 13px;
    opacity: 0.75;
    margin-top: 12px;
    display: block;
}

/* ============================================================
           10. 文章底部标签（后端 get_the_tags() 自动生成）
           ============================================================ */
.article-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-light);
    flex-wrap: wrap;
    gap: 12px;
}
.article-footer .tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.article-footer .tags span {
    background: var(--bg-gray);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    color: var(--text-gray);
}

/* ============================================================
           响应式适配
           ============================================================ */
@media (max-width: 768px) {
    .article-header {
        padding: 28px 20px;
    }
    .article-header h1 {
        font-size: 26px;
    }
    .article-body {
        padding: 28px 20px;
    }
    .article-body h2 {
        font-size: 21px;
    }
    .shortcode-compare-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .shortcode-faq-section {
        padding: 24px 20px;
    }
    .related-section {
        padding: 24px 20px;
    }
    .cta-section {
        padding: 28px 20px;
    }
    .cta-section h3 {
        font-size: 19px;
    }
}

@media (max-width: 480px) {
    .article-container {
        padding: 48px 12px;
    }
    .article-header {
        padding: 20px 16px;
    }
    .article-header h1 {
        font-size: 22px;
    }
    .article-header .meta {
        font-size: 12px;
        gap: 10px 16px;
    }
    .article-body {
        padding: 20px 16px;
    }
    .article-body h2 {
        font-size: 19px;
    }
    .article-body h3 {
        font-size: 17px;
    }
    .article-body p,
    .article-body li {
        font-size: 15px;
    }
    .shortcode-compare-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .shortcode-compare-card {
        padding: 12px 8px;
    }
    .shortcode-compare-card .icon {
        font-size: 22px;
    }
    .shortcode-compare-card .name {
        font-size: 12px;
    }
    .shortcode-compare-card .tag {
        font-size: 10px;
    }
    .shortcode-feature-box {
        padding: 20px 16px;
    }
    .shortcode-feature-box h4 {
        font-size: 17px;
    }
    .shortcode-feature-box ul li {
        font-size: 13px;
    }
    .shortcode-faq-section {
        padding: 20px 16px;
    }
    .shortcode-faq-item .q {
        font-size: 15px;
    }
    .shortcode-faq-item .a {
        font-size: 14px;
    }
    .related-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .related-section {
        padding: 20px 16px;
    }
    .cta-section {
        padding: 24px 16px;
    }
    .cta-section h3 {
        font-size: 18px;
    }
    .cta-section .btn {
        padding: 10px 28px;
        font-size: 14px;
    }
    .article-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 380px) {
    .shortcode-compare-grid {
        grid-template-columns: 1fr 1fr;
    }
    .article-header h1 {
        font-size: 20px;
    }
}
