/* ========================================
   扬州京城皮肤病研究所 - 科普文章页样式 (wz)
   复用主站 style.css 的 CSS 变量与基础类
   ======================================== */

/* 面包屑 */
.breadcrumb {
    background: var(--bg-gray);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    font-size: 0.85rem;
    color: var(--text-light);
}
.breadcrumb .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.breadcrumb a {
    color: var(--text-light);
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: #ccc; }
.breadcrumb .current { color: var(--primary); font-weight: 600; }

/* 文章主体 */
.article-wrap {
    max-width: 840px;
    margin: 0 auto;
    padding: 56px 24px 64px;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 22px;
}
.article-meta .tag {
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 600;
}
.article-lead {
    font-size: 1.05rem;
    line-height: 1.95;
    color: var(--text-body);
    background: var(--primary-lighter);
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    border-radius: 0 10px 10px 0;
    margin-bottom: 36px;
}
.article-body h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
    margin: 40px 0 18px;
    padding-left: 14px;
    border-left: 4px solid var(--primary);
    line-height: 1.5;
}
.article-body h3 {
    font-size: 1.18rem;
    color: var(--text-dark);
    font-weight: 600;
    margin: 28px 0 12px;
}
.article-body p {
    font-size: 1rem;
    line-height: 1.95;
    color: var(--text-body);
    margin-bottom: 16px;
}
.article-body strong { color: var(--text-dark); }

/* 要点列表 */
.key-points {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px 26px;
    margin: 22px 0 28px;
}
.key-points li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    line-height: 1.8;
    color: var(--text-body);
}
.key-points li:last-child { margin-bottom: 0; }
.key-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-light);
    box-shadow: inset 0 0 0 2px var(--primary);
}
.key-points li::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 13px;
    width: 6px;
    height: 3px;
    border-left: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(-45deg);
}

/* 提示/就医框 */
.callout {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-lighter));
    border: 1px solid rgba(26,122,122,0.18);
    border-radius: var(--radius-md);
    padding: 26px 28px;
    margin: 34px 0;
}
.callout h3 {
    color: var(--primary-dark);
    margin: 0 0 12px;
    font-size: 1.12rem;
}
.callout p { margin-bottom: 12px; }
.callout p:last-child { margin-bottom: 0; }
.callout .consult-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    background: var(--primary);
    color: #fff;
    padding: 11px 26px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}
.callout .consult-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* FAQ */
.faq-section { margin-top: 48px; }
.faq-section .section-header { text-align: left; margin-bottom: 28px; }
.faq-section .section-header .divider { margin: 14px 0 0; }
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 14px;
    background: #fff;
    transition: var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow-sm); border-color: var(--primary); }
.faq-q {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    gap: 10px;
}
.faq-q .badge {
    flex-shrink: 0;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.8rem;
    display: flex; align-items: center; justify-content: center;
    margin-top: 2px;
}
.faq-a {
    margin-top: 10px;
    padding-left: 34px;
    color: var(--text-body);
    line-height: 1.9;
    font-size: 0.96rem;
}

/* 相关阅读 */
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 20px;
}
.related-card {
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    background: #fff;
    transition: var(--transition);
}
.related-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.related-card .rc-cat {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}
.related-card h4 {
    font-size: 0.98rem;
    color: var(--text-dark);
    line-height: 1.6;
    font-weight: 600;
}

/* 索引页：文章列表 */
.art-intro {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0 0 26px;
}
.art-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.art-card {
    display: block;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    background: #fff;
    transition: var(--transition);
}
.art-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.art-card .art-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.art-card h4 {
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--text-dark);
    font-weight: 600;
}

/* 索引页：按病种分组 */
.kb-groups {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.disease-group {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px 28px 28px;
}
.dg-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 12px;
    margin-bottom: 16px;
}
.dg-head h3 {
    margin: 0;
    font-size: 1.28rem;
    color: var(--text-dark);
    font-weight: 700;
}
.dg-alias {
    color: var(--primary);
    font-weight: 400;
    font-size: 0.95rem;
    margin-left: 6px;
}
.dg-more {
    color: var(--primary);
    font-size: 0.9rem;
    white-space: nowrap;
    text-decoration: none;
    font-weight: 600;
}
.dg-more:hover { color: var(--primary-dark); }
.dg-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 30px;
}
.dg-list li {
    border-bottom: 1px dashed #ececec;
    line-height: 2.1;
}
.dg-list li a {
    color: var(--text-body);
    text-decoration: none;
    font-size: 0.96rem;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dg-list li a::before {
    content: "·";
    color: var(--primary);
    font-weight: 700;
    margin-right: 8px;
}
.dg-list li a:hover { color: var(--primary); padding-left: 4px; transition: var(--transition); }
.dg-list-full {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    columns: 2;
    column-gap: 34px;
}
.dg-list-full li {
    border-bottom: 1px solid #f2f2f2;
    line-height: 2.2;
    break-inside: avoid;
}
.dg-list-full li a {
    color: var(--text-body);
    text-decoration: none;
    font-size: 0.96rem;
}
.dg-list-full li a::before {
    content: "·";
    color: var(--primary);
    font-weight: 700;
    margin-right: 8px;
}
.dg-list-full li a:hover { color: var(--primary); }

@media (max-width: 768px) {
    .dg-list, .dg-list-full { grid-template-columns: 1fr; columns: 1; }
    .disease-group { padding: 18px 16px 22px; }
    .dg-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* 分页 */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 36px 0 8px;
    justify-content: center;
}
.pagination a, .pagination .active, .pagination .page-disabled, .pagination .page-ellipsis {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-body);
    background: #fff;
    transition: var(--transition);
}
.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.pagination .active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
    cursor: default;
}
.pagination .page-disabled {
    color: #bbb;
    cursor: not-allowed;
    background: #fafafa;
}
.pagination .page-ellipsis {
    border: none;
    background: transparent;
}

@media (max-width: 768px) {
    .article-wrap { padding: 36px 16px 48px; }
    .article-body h2 { font-size: 1.3rem; }
    .related-grid { grid-template-columns: 1fr; }
    .art-list { grid-template-columns: 1fr; }
}
