/* =====================================================
   专题页系统样式 - 重庆佰视佳眼科
   版本: 2.0.0 | 日期: 2026-08-16
   精确匹配 topic.php / topic_hub.php / topic_region.php
   ===================================================== */

/* ============================================================
   通用（三个页面共享）
   ============================================================ */
.topic-page,
.topic-hub-page,
.topic-region-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 面包屑 */
.topic-breadcrumb {
    padding: 12px 0;
    font-size: 13px;
    color: #999;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}
.topic-breadcrumb .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.topic-breadcrumb a {
    color: #0066cc;
    text-decoration: none;
}
.topic-breadcrumb a:hover {
    text-decoration: underline;
}
.topic-breadcrumb .fas {
    margin: 0 6px;
    font-size: 10px;
    color: #ccc;
}
.topic-breadcrumb > .container > span {
    color: #555;
}

/* CTA区块（三页共享） */
.topic-cta {
    padding: 50px 0;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    text-align: center;
    margin-top: 40px;
}
.topic-cta .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}
.topic-cta .cta-box h2 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 10px;
}
.topic-cta .cta-box > p {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 25px;
}
.topic-cta .cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}
.topic-cta .cta-buttons .btn {
    border-radius: 25px;
    padding: 12px 35px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s;
}
.topic-cta .cta-buttons .btn:hover {
    transform: translateY(-2px);
}
.topic-cta .btn-primary {
    background: #fff;
    color: #0066cc;
    border: 2px solid #fff;
}
.topic-cta .btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
}

/* ============================================================
   topic.php 专题页
   ============================================================ */

/* 标题区 */
.topic-header {
    padding: 40px 0 30px;
    background: linear-gradient(135deg, #f0f6ff 0%, #e8f0fc 100%);
    border-bottom: 3px solid #0066cc;
}
.topic-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.topic-header h1 {
    font-size: 28px;
    color: #1a3a5c;
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 700;
}
.topic-header .topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.topic-header .topic-tag {
    display: inline-block;
    padding: 3px 12px;
    background: #e8f0ff;
    color: #0066cc;
    font-size: 12px;
    border-radius: 12px;
    font-weight: 500;
}

/* GEO导语 */
.topic-intro {
    padding: 30px 0;
    background: #fff;
}
.topic-intro .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}
.topic-intro p {
    font-size: 15px;
    line-height: 1.9;
    color: #444;
    margin-bottom: 12px;
}
.topic-intro strong {
    color: #0066cc;
}

/* FAQ */
.topic-faq {
    padding: 40px 0;
    background: #f8f9fa;
}
.topic-faq .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}
.topic-faq h2 {
    font-size: 22px;
    color: #1a3a5c;
    margin-bottom: 20px;
    text-align: center;
}
.topic-faq .faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.topic-faq .faq-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
}
.topic-faq .faq-question {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #1a3a5c;
    cursor: pointer;
    background: #fff;
    margin: 0;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}
.topic-faq .faq-question:hover {
    background: #f5f8ff;
}
.topic-faq .faq-question::after {
    content: '\f067';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 14px;
    color: #0066cc;
}
.topic-faq .faq-item.open .faq-question::after {
    content: '\f068';
}
.topic-faq .faq-answer {
    padding: 0 20px 16px;
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}
.topic-faq .faq-answer p {
    margin-bottom: 8px;
}
.topic-faq .faq-answer strong {
    color: #0066cc;
}

/* GEO锚点 */
.topic-geo-anchors {
    padding: 40px 0;
    background: #fff;
}
.topic-geo-anchors .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}
.topic-geo-anchors h2 {
    font-size: 20px;
    color: #1a3a5c;
    margin-bottom: 15px;
}
.topic-geo-anchors .geo-anchor-content {
    background: #f8f9fa;
    border-left: 4px solid #0066cc;
    border-radius: 0 8px 8px 0;
    padding: 20px 25px;
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    white-space: pre-line;
}

/* 关联文章 */
.topic-articles {
    padding: 40px 0;
    background: #f8f9fa;
}
.topic-articles .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.topic-articles h2 {
    font-size: 22px;
    color: #1a3a5c;
    margin-bottom: 20px;
}
.topic-articles .topic-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.topic-articles .topic-article-card {
    background: #fff;
    border-radius: 8px;
    padding: 18px;
    border: 1px solid #e9ecef;
    transition: all 0.3s;
}
.topic-articles .topic-article-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border-color: #c5d5f0;
}
.topic-articles .topic-article-card h3 {
    font-size: 15px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 8px;
}
.topic-articles .topic-article-card h3 a {
    color: #333;
    text-decoration: none;
}
.topic-articles .topic-article-card h3 a:hover {
    color: #0066cc;
}
.topic-articles .topic-article-card p {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
}

/* 交叉内链 */
.topic-related-links {
    padding: 40px 0;
    background: #f0f4ff;
}
.topic-related-links .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.topic-related-links h2 {
    font-size: 20px;
    color: #1a3a5c;
    margin-bottom: 15px;
}
.topic-related-links .topic-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.topic-related-links .topic-link-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #d0deff;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}
.topic-related-links .topic-link-card:hover {
    background: #0066cc;
    border-color: #0066cc;
}
.topic-related-links .topic-link-card:hover .link-region,
.topic-related-links .topic-link-card:hover .link-title {
    color: #fff;
}
.topic-related-links .link-region {
    font-size: 12px;
    color: #0066cc;
    font-weight: 500;
}
.topic-related-links .link-title {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}

/* ============================================================
   topic_hub.php Hub聚合页
   ============================================================ */
.topic-hub-header {
    padding: 40px 0;
    background: linear-gradient(135deg, #1a3a5c 0%, #0066cc 100%);
    color: #fff;
    text-align: center;
}
.topic-hub-header .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}
.topic-hub-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}
.topic-hub-header .hub-description {
    font-size: 15px;
    opacity: 0.9;
    line-height: 1.6;
}

.topic-hub-intro {
    padding: 30px 0;
    background: #fff;
}
.topic-hub-intro .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}
.topic-hub-intro p {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 10px;
}

/* Hub/Region 共用 section */
.hub-section {
    padding: 35px 0;
}
.hub-section:nth-child(odd) {
    background: #f8f9fa;
}
.hub-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.hub-section h2 {
    font-size: 22px;
    color: #1a3a5c;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

/* Hub链接网格 */
.hub-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.hub-link-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}
.hub-link-card:hover {
    background: #f5f8ff;
    border-color: #c5d5f0;
    box-shadow: 0 2px 10px rgba(0,102,204,0.1);
    transform: translateY(-1px);
}
.hub-link-region {
    font-size: 12px;
    color: #0066cc;
    font-weight: 500;
}
.hub-link-title {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}
.hub-link-type {
    font-size: 11px;
    color: #999;
}
.hub-link-other .hub-link-title {
    color: #0066cc;
}

/* Hub相关文章 */
.hub-articles {
    padding: 35px 0;
    background: #f8f9fa;
}
.hub-articles .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.hub-articles h2 {
    font-size: 22px;
    color: #1a3a5c;
    margin-bottom: 20px;
}
.hub-articles .hub-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.hub-article-card {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e9ecef;
    transition: all 0.3s;
}
.hub-article-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.hub-article-card h3 {
    font-size: 14px;
    margin-bottom: 6px;
}
.hub-article-card h3 a {
    color: #333;
    text-decoration: none;
}
.hub-article-card h3 a:hover {
    color: #0066cc;
}
.hub-article-card p {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
}

.hub-related {
    padding: 35px 0;
}

/* ============================================================
   topic_region.php 地域索引页
   ============================================================ */
.topic-region-header {
    padding: 40px 0;
    background: linear-gradient(135deg, #f0f6ff 0%, #e8f0fc 100%);
    text-align: center;
    border-bottom: 3px solid #0066cc;
}
.topic-region-header .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}
.topic-region-header h1 {
    font-size: 26px;
    color: #1a3a5c;
    margin-bottom: 10px;
}
.topic-region-header p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.region-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.region-quick-link {
    display: inline-block;
    padding: 6px 16px;
    background: #f0f4ff;
    border: 1px solid #d0deff;
    border-radius: 20px;
    font-size: 13px;
    color: #0066cc;
    text-decoration: none;
    transition: all 0.2s;
}
.region-quick-link:hover {
    background: #0066cc;
    color: #fff;
}

/* ============================================================
   手机端独立样式 (max-width: 767px)
   ============================================================ */
@media (max-width: 767px) {
    .topic-page,
    .topic-hub-page,
    .topic-region-page {
        padding: 0 12px;
    }

    /* 面包屑 */
    .topic-breadcrumb {
        padding: 8px 0;
        font-size: 11px;
    }
    .topic-breadcrumb .fas {
        margin: 0 3px;
    }

    /* 标题区 */
    .topic-header {
        padding: 20px 0 15px;
        border-bottom-width: 2px;
    }
    .topic-header h1 {
        font-size: 18px;
        line-height: 1.35;
        margin-bottom: 8px;
    }
    .topic-header .topic-tag {
        padding: 2px 8px;
        font-size: 11px;
    }

    /* GEO导语 */
    .topic-intro {
        padding: 15px 0;
    }
    .topic-intro p {
        font-size: 13px;
        line-height: 1.7;
    }

    /* FAQ */
    .topic-faq {
        padding: 20px 0;
    }
    .topic-faq h2 {
        font-size: 17px;
        margin-bottom: 12px;
    }
    .topic-faq .faq-question {
        padding: 12px 14px;
        font-size: 13px;
    }
    .topic-faq .faq-answer {
        padding: 0 14px 12px;
        font-size: 12px;
        line-height: 1.7;
    }

    /* GEO锚点 */
    .topic-geo-anchors {
        padding: 20px 0;
    }
    .topic-geo-anchors h2 {
        font-size: 17px;
    }
    .topic-geo-anchors .geo-anchor-content {
        padding: 15px;
        font-size: 12px;
        line-height: 1.7;
    }

    /* 关联文章 */
    .topic-articles {
        padding: 20px 0;
    }
    .topic-articles h2 {
        font-size: 17px;
        margin-bottom: 12px;
    }
    .topic-articles .topic-articles-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .topic-articles .topic-article-card {
        padding: 14px;
    }
    .topic-articles .topic-article-card h3 {
        font-size: 14px;
    }

    /* 交叉内链 */
    .topic-related-links {
        padding: 20px 0;
    }
    .topic-related-links h2 {
        font-size: 17px;
        margin-bottom: 10px;
    }
    .topic-related-links .topic-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .topic-related-links .topic-link-card {
        padding: 10px 12px;
    }
    .topic-related-links .link-region {
        font-size: 11px;
    }
    .topic-related-links .link-title {
        font-size: 12px;
    }

    /* CTA */
    .topic-cta {
        padding: 25px 15px;
    }
    .topic-cta .cta-box h2 {
        font-size: 18px;
        margin-bottom: 6px;
    }
    .topic-cta .cta-box > p {
        font-size: 13px;
        margin-bottom: 15px;
    }
    .topic-cta .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .topic-cta .cta-buttons .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 20px;
    }

    /* Hub聚合页 */
    .topic-hub-header {
        padding: 25px 15px;
    }
    .topic-hub-header h1 {
        font-size: 20px;
        margin-bottom: 8px;
    }
    .topic-hub-header .hub-description {
        font-size: 13px;
    }
    .topic-hub-intro {
        padding: 15px 0;
    }
    .topic-hub-intro p {
        font-size: 13px;
        line-height: 1.7;
    }

    /* Hub/Region section */
    .hub-section {
        padding: 20px 0;
    }
    .hub-section h2 {
        font-size: 17px;
        margin-bottom: 12px;
    }
    .hub-links-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .hub-link-card {
        padding: 12px 14px;
    }
    .hub-link-title {
        font-size: 13px;
    }

    /* Hub文章 */
    .hub-articles {
        padding: 20px 0;
    }
    .hub-articles h2 {
        font-size: 17px;
    }
    .hub-articles .hub-articles-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .hub-article-card {
        padding: 14px;
    }

    /* 地域索引页 */
    .topic-region-header {
        padding: 25px 15px;
        border-bottom-width: 2px;
    }
    .topic-region-header h1 {
        font-size: 18px;
    }
    .topic-region-header p {
        font-size: 12px;
    }
    .region-quick-link {
        padding: 4px 12px;
        font-size: 12px;
    }
}

/* FAQ 折叠交互 */
.topic-faq .faq-item .faq-answer {
    display: block;
}

/* 品牌权威信息块 */
.brand-authority-block {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-left: 4px solid #2563eb;
    border-radius: 8px;
    padding: 28px;
    margin: 24px 0;
}
.brand-authority-block h2 {
    font-size: 20px;
    color: #1e3a5f;
    margin: 0 0 10px;
    font-weight: 700;
}
.brand-authority-block > p {
    color: #64748b;
    font-size: 13px;
    margin: 0 0 18px;
    line-height: 1.6;
}
.brand-facts-list {
    margin: 0;
    padding: 0;
}
.brand-facts-list dt {
    font-weight: 600;
    color: #1e40af;
    font-size: 14px;
    margin: 14px 0 4px;
    padding-left: 12px;
    border-left: 3px solid #3b82f6;
}
.brand-facts-list dt:first-child {
    margin-top: 0;
}
.brand-facts-list dd {
    margin: 0 0 0 15px;
    padding: 4px 0 4px 12px;
    color: #334155;
    font-size: 14px;
    line-height: 1.7;
}
.region-cta {
    background: #eff6ff;
    border-radius: 6px;
    padding: 14px 18px;
    margin: 16px 0 0;
    color: #1e3a5f;
    font-size: 14px;
    line-height: 1.7;
}

/* 手机端品牌块 */
@media (max-width: 768px) {
    .brand-authority-block {
        padding: 18px 15px;
        margin: 16px 0;
    }
    .brand-authority-block h2 {
        font-size: 17px;
    }
    .brand-authority-block > p {
        font-size: 12px;
    }
    .brand-facts-list dt {
        font-size: 13px;
        padding-left: 8px;
    }
    .brand-facts-list dd {
        font-size: 13px;
        padding-left: 8px;
        margin-left: 11px;
    }
    .region-cta {
        padding: 12px 14px;
        font-size: 13px;
    }
}
