/* Article Detail Page Styles */
.article-detail-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    gap: 30px;
}

/* Left Column Styles */
.article-left {
    flex: 1;
    max-width: 800px;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #333;
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 8px;
}

.breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* Article Header */
.article-header {
    margin-bottom: 30px;
}

.article-title {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #222;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.meta-item i {
    font-size: 14px;
}

.meta-divider {
    height: 1px;
    background-color: #eee;
    width: 100%;
}

/* Article Content */
.article-content {
    line-height: 1.7;
    color: #444;
}

.article-content h2 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: #222;
    padding-top: 110px;
    margin-top: -90px;
}

.article-content p {
    margin-bottom: 20px;
}

.comparison-box {
    background-color: #f9f9f9;
    border-left: 4px solid #0066cc;
    padding: 15px 20px;
    margin: 20px 0;
}

.comparison-box h3 {
    margin-top: 0;
    font-size: 18px;
}

.comparison-box ul {
    padding-left: 20px;
}

.contact-cta {
    margin: 40px 0;
    padding: 15px;
    background-color: #f5f5f5;
    text-align: center;
    font-weight: 500;
}

/* Right Column Styles */
.article-right {
    width: 300px;
    position: sticky;
    align-self: flex-start;
    top: 110px;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
}

.right-section {
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    padding: 0;
    overflow: hidden;
}

.quick-quote-btn {
    /* margin-left: 0px; */
}

.quick-quote-section .quick-quote-btn {
    width: 100%;
    padding: 12px;
    background-color: #ce373f;
    color: white;
    border: none;
    border-radius: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-left: 0px !important;
}

.quick-quote-section .quick-quote-btn:hover {
    background-color: #0055aa;
}

/* Table of Contents */
.table-of-contents {
    border: 1px solid #e0e0e0;

    overflow: hidden;
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
    background-color: #ce373f;
}

.toc-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.toc-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 5px;
    transition: transform 0.2s;
}

.toc-toggle i {
    font-size: 14px;
}

.toc-content {
    padding: 15px 20px;
    max-height: 350px;
    /* Same as container */
    overflow-y: auto;
    /* Scrollable content */
}


.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 8px;
}

.toc-link {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 6px 0;
    transition: color 0.2s, padding-left 0.2s;
}

.toc-link:hover {
    color: #0066cc;
    padding-left: 5px;
}

/* Active TOC item */
.toc-link.active {
    color: #0066cc;
    font-weight: 500;
    border-left: 3px solid #0066cc;
    padding-left: 10px;
}

/* Social Share */
.social-share {
    padding: 20px;
}

.social-share h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.social-icons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.social-icon:hover {
    opacity: 0.9;
}

/*.social-icon.facebook {*/
/*    background-color: #3b5998;*/
/*}*/

.social-icon.twitter {
    background-color: #1da1f2;
}

.social-icon.linkedin {
    background-color: #0077b5;
}

.social-icon.pinterest {
    background-color: #e60023;
}

.social-icon.whatsapp {
    background-color: #25d366;
}
/* 上一篇和下一篇导航 */
.article-navigation {
    box-shadow:none;
    padding: 20px;
}

.article-navigation h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
.nav-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.nav-button {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    /*background-color: #f8f8f8;*/
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    flex: 1;
}

.nav-button:hover {
    background-color: #0066cc;
    color: white;
    border-color: #0066cc;
}

.nav-button i {
    font-size: 12px;
    margin: 0 5px;
}

.prev-article {
    justify-content: center;
}

.next-article {
    justify-content: center;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .article-navigation {
        order: 4;
        margin-top: 20px;
    }

    .nav-buttons {
        flex-direction: row;
    }
}

@media (max-width: 576px) {
    .nav-button {
        padding: 8px 12px;
        font-size: 12px;
    }

    .nav-button span {
        display: none;
    }

    .nav-button i {
        margin: 0;
    }
}
/* Responsive adjustments */
@media (max-width: 992px) {
    .article-detail-container {
        flex-direction: column;
        gap: 20px;
    }

    .article-left {
        order: 1; /* 内容区在上 */
        max-width: 100%;
    }

    .article-right {
        width: 100%;
        position: static;
        max-height: none;
        display: contents; /* 使用contents布局使子元素脱离容器 */
    }

    /* 将目录保持在顶部 */
    .table-of-contents {
        order: 0;
        margin-bottom: 20px;
    }

    /* 将按钮和社交分享移动到内容区下方 */
    .quick-quote-section {
        order: 2;
        margin-top: 30px;
    }

    .social-share {
        order: 3;
        margin-top: 20px;
    }

    /* 移除原有右栏的样式 */
    .right-section {
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
    }
}

/* 小屏幕额外调整 */
@media (max-width: 576px) {
    .article-title {
        font-size: 26px;
    }
    
    .article-content h2 {
        font-size: 22px;
    }

    .quick-quote-section .quick-quote-btn,
    .social-share {
        margin-left: 0;
        margin-right: 0;
    }
}