/* ============================================================
   文章详情页样式 v2.0 - 现代设计
   设计理念：干净、专注阅读、品牌色点缀
   ============================================================ */

/* ==================== 文章头部 ==================== */
.article-page {
    background: #f7f8fa;
}

.article-header {
    background: #fff;
    padding: 56px 0 36px;
    border-bottom: 1px solid #eef0f4;
    position: relative;
}

.article-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0066cc 0%, #00b96b 100%);
    border-radius: 3px;
}

.article-header-inner {
    max-width: 760px;
    margin: 0 auto;
}

.article-meta-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.article-category {
    display: inline-block;
    background: #e6f2ff;
    color: #0066cc;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
}

.article-date {
    color: #999;
    font-size: 0.85rem;
}

.article-date::before {
    content: '\f073';
    font-family: 'Font Awesome 5 Free';
    font-weight: 400;
    margin-right: 6px;
}

.article-read-time {
    color: #999;
    font-size: 0.85rem;
}

.article-read-time::before {
    content: '\f518';
    font-family: 'Font Awesome 5 Free';
    font-weight: 400;
    margin-right: 6px;
}

.article-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.5;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.article-excerpt {
    font-size: 1rem;
    color: #6b6b7b;
    line-height: 1.7;
    padding-left: 16px;
    border-left: 3px solid #0066cc;
}

/* ==================== 正文区域 ==================== */
.article-body-wrap {
    padding: 48px 0 64px;
}

.article-content {
    max-width: 760px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 12px rgba(0,0,0,0.04);
    overflow: hidden;
}

/* 封面图 */
.article-cover {
    width: 100%;
    overflow: hidden;
    max-height: 400px;
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==================== 正文排版 ==================== */
.article-text {
    padding: 40px 48px 24px;
    font-size: 16px;
    line-height: 1.85;
    color: #333;
}

.article-text p {
    margin-bottom: 18px;
    text-align: justify;
}

/* 标题 */
.article-text h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 40px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef0f4;
    position: relative;
}

.article-text h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 48px;
    height: 2px;
    background: #0066cc;
}

.article-text h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2d2d3a;
    margin: 32px 0 12px;
    padding-left: 12px;
    border-left: 3px solid #00b96b;
}

.article-text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #444;
    margin: 24px 0 10px;
}

/* 列表 */
.article-text ul,
.article-text ol {
    margin: 16px 0 20px;
    padding-left: 24px;
}

.article-text ul li {
    list-style: disc;
    margin-bottom: 8px;
    line-height: 1.7;
}

.article-text ol li {
    list-style: decimal;
    margin-bottom: 8px;
    line-height: 1.7;
}

/* ==================== 表格 ==================== */
.article-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.92rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 0 1px #eef0f4;
}

.article-text table thead {
    background: #1a1a2e;
}

.article-text table thead th {
    padding: 12px 16px;
    text-align: left;
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
}

.article-text table tbody tr {
    border-bottom: 1px solid #eef0f4;
}

.article-text table tbody tr:nth-child(even) {
    background: #f7f8fa;
}

.article-text table tbody tr:hover {
    background: #e6f2ff;
}

.article-text table tbody td {
    padding: 11px 16px;
    color: #4a4a5a;
}

.article-text table tbody tr:last-child {
    border-bottom: none;
}

/* ==================== 图片 ==================== */
.article-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
    display: block;
}

.article-text figure {
    margin: 28px 0;
    text-align: center;
}

.article-text figure img {
    margin: 0 auto;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.article-text figure figcaption {
    font-size: 0.82rem;
    color: #999;
    margin-top: 10px;
    font-style: italic;
}

/* ==================== 引用 ==================== */
.article-text blockquote {
    margin: 24px 0;
    padding: 16px 20px 16px 24px;
    background: #f7f8fa;
    border-left: 4px solid #0066cc;
    border-radius: 0 8px 8px 0;
    color: #4a4a5a;
    font-style: italic;
    line-height: 1.7;
}

.article-text blockquote p {
    margin-bottom: 0;
}

/* ==================== 强调 ==================== */
.article-text strong {
    color: #1a1a2e;
    font-weight: 700;
}

.article-text a {
    color: #0066cc;
    text-decoration: none;
    border-bottom: 1px solid #99ccff;
    transition: all 0.2s ease;
}

.article-text a:hover {
    color: #0088ff;
    border-bottom-color: #0088ff;
}

/* ==================== 文章底部 ==================== */
.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    border-top: 1px solid #eef0f4;
    background: #fafbfc;
}

.article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.article-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f2f5;
    color: #6b6b7b;
    border-radius: 16px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.article-tag:hover {
    background: #e6f2ff;
    color: #0066cc;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #999;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f2f5;
    color: #6b6b7b;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-2px);
    color: #fff;
}

.share-wb:hover { background: #e6162d; }
.share-qq:hover { background: #12b7f5; }

/* ==================== 上下篇导航 ==================== */
.article-nav {
    display: flex;
    gap: 16px;
    padding: 24px 48px 40px;
    background: #fafbfc;
}

.nav-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-link:hover {
    border-color: #0066cc;
    box-shadow: 0 2px 12px rgba(0,102,204,0.08);
}

.nav-placeholder {
    visibility: hidden;
}

.nav-next {
    text-align: right;
    align-items: flex-end;
}

.nav-direction {
    font-size: 0.8rem;
    color: #0066cc;
    font-weight: 500;
}

.nav-title {
    font-size: 0.88rem;
    color: #4a4a5a;
    font-weight: 500;
    line-height: 1.4;
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .article-header {
        padding: 40px 0 28px;
    }

    .article-header-inner {
        padding: 0 20px;
    }

    .article-title {
        font-size: 1.35rem;
    }

    .article-meta-top {
        gap: 10px;
        flex-wrap: wrap;
    }

    .article-content {
        border-radius: 0;
    }

    .article-text {
        padding: 28px 20px 20px;
        font-size: 15px;
    }

    .article-text h2 {
        font-size: 1.2rem;
    }

    .article-text h3 {
        font-size: 1.05rem;
    }

    .article-text table {
        font-size: 0.82rem;
    }

    .article-text table th,
    .article-text table td {
        padding: 8px 10px;
    }

    .article-footer {
        padding: 16px 20px;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .article-nav {
        padding: 16px 20px 32px;
        flex-direction: column;
    }

    .nav-next {
        text-align: left;
        align-items: flex-start;
    }
}

/* ==================== 可视化组件 ==================== */

/* 引导框 */
.lead-box {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6fff5 100%);
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 32px;
    text-align: center;
}

.lead-box p {
    font-size: 1.15rem;
    line-height: 2;
    color: #1a1a2e;
    margin-bottom: 0;
    font-weight: 500;
}

/* 案例卡片 */
.case-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.case-card {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.case-card:hover {
    border-color: #0066cc;
    box-shadow: 0 4px 20px rgba(0,102,204,0.08);
    transform: translateY(-2px);
}

.case-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 12px;
    border-left: none !important;
    padding-left: 0 !important;
}

.case-stats {
    text-align: center;
    margin-bottom: 12px;
}

.stat-big {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #00b96b;
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #999;
}

.case-card p {
    font-size: 0.88rem;
    color: #6b6b7b;
    line-height: 1.6;
    margin-bottom: 0;
}

/* 对比柱状图 */
.compare-bar-wrap {
    margin: 24px 0;
    padding: 24px;
    background: #fafbfc;
    border-radius: 12px;
}

.compare-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.compare-label {
    width: 120px;
    font-size: 0.85rem;
    color: #4a4a5a;
    font-weight: 500;
    text-align: right;
    flex-shrink: 0;
}

.compare-bar {
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 16px;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    transition: width 0.5s ease;
}

.compare-bar-old {
    background: linear-gradient(90deg, #ff6b6b, #ee5a5a);
    width: 100%;
}

.compare-bar-mid {
    background: linear-gradient(90deg, #4dabf7, #339af0);
    width: 28%;
}

.compare-bar-new {
    background: linear-gradient(90deg, #51cf66, #37b24d);
    width: 19%;
}

.compare-legend {
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    margin-top: 8px;
}

/* 步骤流程 */
.step-flow {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin: 24px 0;
}

.step-item {
    flex: 1;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #0066cc;
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.step-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
    border-left: none !important;
    padding-left: 0 !important;
}

.step-item p {
    font-size: 0.82rem;
    color: #6b6b7b;
    line-height: 1.6;
    margin-bottom: 0;
}

.step-arrow {
    display: flex;
    align-items: center;
    color: #ccc;
    font-size: 1.5rem;
}

/* EMC模式 */
.emc-box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 24px 0;
}

.emc-item {
    text-align: center;
    padding: 20px 12px;
    background: #f7f8fa;
    border-radius: 12px;
}

.emc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #0066cc, #00b96b);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    margin-bottom: 10px;
}

.emc-item p {
    font-size: 0.82rem;
    color: #4a4a5a;
    line-height: 1.5;
    margin-bottom: 0;
}

/* CTA */
.cta-box {
    text-align: center;
    padding: 32px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    margin-top: 32px;
}

.cta-box p {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 8px;
}

.cta-phone {
    font-size: 1.5rem !important;
    font-weight: 700;
    color: #00b96b !important;
}

/* ==================== 响应式补充 ==================== */
@media (max-width: 768px) {
    .case-cards {
        grid-template-columns: 1fr;
    }

    .compare-label {
        width: 80px;
        font-size: 0.78rem;
    }

    .step-flow {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
        justify-content: center;
    }

    .emc-box {
        grid-template-columns: repeat(2, 1fr);
    }

    .lead-box p {
        font-size: 1rem;
    }
}
