/* ============================================================
   专题页专用样式
   文件: topic.css
   引用: 仅在 article_topic.htm 中引用
   ============================================================ */

/* ========== 1. Banner ========== */
.headingtopic {
    background-color: #1a3d6e;
    background-image: linear-gradient(135deg, #1a3d6e 0%, #0d2547 100%);
    background-repeat: no-repeat;
}

.headingtopic .topic-banner-title {
    font-size: 26px;
    line-height: 44px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

/* ========== 2. 布局（flex 两栏） ========== */
.g-news-detail .detail-container:has(.topic-article) {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

.g-news-detail .case-news-article.topic-article {
    float: none;
    flex: 0 0 74%;
    max-width: 74%;
    width: auto;
    box-sizing: border-box;
    padding-bottom: 80px;
}

.g-news-detail .detail-sidebar.topic-sidebar {
    float: none;
    flex: 0 0 24%;
    max-width: 24%;
    width: auto;
    box-sizing: border-box;
}

/* ========== 3. 右侧栏 sticky ========== */
.topic-sidebar-sticky {
    position: sticky;
    top: 70px;
}

/* ========== 4. 左侧正文排版 ========== */
.topic-article .singlepage p {
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 30px;
    color: #333;
}

.topic-article .singlepage h2 {
    margin: 64px 0 20px;
    font-size: 26px;
    line-height: 38px;
    font-weight: 600;
    color: #1a1a1a;
    padding: 0;
    border: 0;
}

.topic-article .singlepage h2:first-of-type {
    margin-top: 40px;
}

.topic-article .singlepage h3 {
    margin: 40px 0 12px;
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
    color: #2e3742;
    padding: 0;
    border: 0;
}

.topic-article .singlepage img {
    margin: 24px 0;
    max-width: 100%;
    height: auto;
}

.topic-article .singlepage table {
    margin: 24px 0;
    max-width: 100%;
}

.topic-article .singlepage h2[id] {
    scroll-margin-top: 80px;
}

/* ========== 5. 一句话总结 ========== */
.topic-summary {
    margin: 0 0 32px;
    padding: 20px 24px;
    background: #f5f7fa;
    border-left: 3px solid #0067e6;
    border-radius: 4px;
}

.topic-article .singlepage .topic-summary p {
    margin: 0;
    font-size: 16px;
    line-height: 28px;
    color: #333;
}

/* ========== 6. FAQ ========== */
.topic-faq {
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid #e6edf5;
}

.topic-article .singlepage .topic-faq h2 {
    font-size: 22px;
    line-height: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 28px;
    padding: 0;
    border: 0;
}

.topic-article .singlepage .topic-faq h3 {
    position: relative;
    margin: 28px 0 8px;
    padding-left: 32px;
    font-size: 16px;
    line-height: 26px;
    font-weight: 600;
    color: #1a1a1a;
    border: 0;
}

.topic-article .singlepage .topic-faq h3:first-of-type {
    margin-top: 0;
}

.topic-article .singlepage .topic-faq h3::before {
    content: '?';
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #0067e6;
    background: #f0f2f5;
    border-radius: 50%;
}

.topic-article .singlepage .topic-faq p {
    margin: 0;
    padding-left: 32px;
    font-size: 15px;
    line-height: 28px;
    color: #555;
}

/* ========== 7. 右侧目录 ========== */
.topic-toc {
    margin-bottom: 10px;
    background-color: #fff;
}

.topic-toc .title {
    padding-left: 20px;
    font-size: 18px;
    line-height: 52px;
    color: #333;
    border-bottom: 1px solid #d9d9d9;
    font-weight: 600;
}

.topic-toc ul {
    padding: 10px 20px 20px;
    list-style: none;
    margin: 0;
}

.topic-toc li {
    margin: 0;
}

.topic-toc a {
    display: block;
    padding: 6px 0;
    font-size: 15px;
    line-height: 22px;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.topic-toc a:hover {
    color: #0067e6;
}

.topic-toc a.active {
    color: #0067e6;
}

/* ========== 8. CTA ========== */
.topic-cta {
    margin-top: 64px;
    padding: 48px 32px;
    background: #f5f7fa;
    border-radius: 8px;
    text-align: center;
}

.topic-cta .topic-cta-title {
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    font-size: 24px;
    line-height: 36px;
    font-weight: 600;
    color: #1a1a1a;
}

.topic-cta .topic-cta-desc {
    margin: 0 0 32px;
    font-size: 16px;
    line-height: 26px;
    color: #666;
}

.topic-cta-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.topic-cta-btn-primary {
    display: inline-block;
    padding: 12px 36px;
    background: #0067e6;
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s;
}

.topic-cta-btn-primary:hover {
    background: #107bff;
    color: #fff;
}

.topic-cta-btn-outline {
    display: inline-block;
    padding: 12px 36px;
    background: #fff;
    color: #0067e6;
    border: 1px solid #0067e6;
    border-radius: 8px;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s;
}

.topic-cta-btn-outline:hover {
    background: #f0f7ff;
    color: #0067e6;
}

/* ========== 9. 移动端悬浮目录 ========== */
.topic-toc-float {
    display: none;
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    padding: 0;
}

.topic-toc-float svg {
    width: 20px;
    height: 20px;
    color: #333;
}

.topic-toc-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.topic-toc-mask.open {
    display: block;
}

.topic-toc-drawer {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    background: #fff;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 60px 0 20px;
    overflow-y: auto;
    box-sizing: border-box;
}

.topic-toc-drawer.open {
    transform: translateX(0);
}

.topic-toc-drawer .title {
    margin: 0 20px 16px;
    padding: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    border-bottom: 1px solid #eee;
}

.topic-toc-drawer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topic-toc-drawer li {
    margin: 0;
}

.topic-toc-drawer a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    line-height: 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}

.topic-toc-drawer a:hover,
.topic-toc-drawer a.active {
    background: #f0f7ff;
    color: #0067e6;
}

/* ========== 10. 移动端适配 ========== */
@media (max-width: 1024px) {
    .g-news-detail .detail-container:has(.topic-article) {
        display: block;
    }

    .g-news-detail .case-news-article.topic-article {
        float: none;
        max-width: 100%;
        width: 100%;
        padding-bottom: 40px;
    }

    .g-news-detail .detail-sidebar.topic-sidebar {
        display: none;
    }

    .topic-toc-float {
        display: flex;
    }

    .topic-article .singlepage h2 {
        margin: 40px 0 16px;
        font-size: 22px;
        line-height: 32px;
    }

    .topic-article .singlepage h3 {
        margin: 28px 0 10px;
        font-size: 17px;
        line-height: 26px;
    }

    .topic-article .singlepage .topic-faq h3 {
        margin: 24px 0 8px;
        font-size: 15px;
    }

    .topic-article .singlepage .topic-faq h3::before {
        top: 2px;
        width: 18px;
        height: 18px;
        line-height: 18px;
        font-size: 12px;
    }

    .topic-article .singlepage .topic-faq h3,
    .topic-article .singlepage .topic-faq p {
        padding-left: 28px;
    }

    .topic-cta {
        margin-top: 40px;
        padding: 30px 20px;
    }

    .topic-cta .topic-cta-title {
        font-size: 20px;
        line-height: 30px;
    }

    .topic-cta-btns {
        flex-direction: column;
        gap: 10px;
    }

    .topic-cta-btn-primary,
    .topic-cta-btn-outline {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
}
/* ========== 相关阅读 ========== */
.topic-related {
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid #e6edf5;
}

.topic-article .topic-related-title {
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
}

.topic-related ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topic-related li {
    margin: 0 0 8px;
    padding: 0;
}

.topic-related li:last-child {
    margin-bottom: 0;
}

.topic-related a {
    font-size: 15px;
    line-height: 24px;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.topic-related a:hover {
    color: #0067e6;
}

/* 移动端 */
@media (max-width: 1024px) {
    .topic-related {
        margin-top: 40px;
        padding-top: 30px;
    }

    .topic-article .topic-related-title {
        font-size: 15px;
        line-height: 22px;
        margin-bottom: 12px;
    }

    .topic-related a {
        font-size: 14px;
        line-height: 22px;
    }
}
.topic-article .singlepage table {
    margin: 24px 0;
    max-width: 100%;
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 24px;
}

.topic-article .singlepage table th {
    background: #f5f7fa;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #1a1a1a;
    border: 1px solid #e6edf5;
}

.topic-article .singlepage table td {
    padding: 12px 16px;
    border: 1px solid #e6edf5;
    color: #333;
}

.topic-article .singlepage table tr:nth-child(even) td {
    background: #fafbfc;
}
@media (max-width: 1024px) {
    .topic-article .singlepage table {
        font-size: 13px;
        line-height: 20px;
    }
    .topic-article .singlepage table th,
    .topic-article .singlepage table td {
        padding: 8px 10px;
    }
}