/**
 * 健康一线 AI 内容系统 - 前端样式
 */

/* ===== 全局重置 - 统一排版 ===== */
.entry-content,
.entry-content *,
.hfl-article-content,
.hfl-article-content *,
.single-post .content,
.single-post .content *,
.single-qa .content,
.single-qa .content * {
    font-style: normal !important; /* 禁止斜体 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif !important;
}

.entry-content,
.hfl-article-content,
.single-post .content,
.single-qa .content {
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
}

.entry-content p,
.hfl-article-content p,
.single-post .content p,
.single-qa .content p {
    margin: 16px 0;
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
    font-style: normal !important;
}

.entry-content h2,
.hfl-article-content h2 {
    margin: 28px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0f2fe;
    color: #0f172a;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.entry-content h3,
.hfl-article-content h3 {
    margin: 22px 0 12px;
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.entry-content h4,
.hfl-article-content h4 {
    margin: 18px 0 10px;
    color: #1e293b;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
}

.entry-content ul,
.entry-content ol,
.hfl-article-content ul,
.hfl-article-content ol {
    margin: 16px 0;
    padding-left: 24px;
    font-size: 16px;
    line-height: 1.8;
}

.entry-content li,
.hfl-article-content li {
    margin: 8px 0;
    color: #334155;
    font-size: 16px;
    line-height: 1.8;
}

/* 消除所有em/i斜体 */
.entry-content em,
.entry-content i,
.hfl-article-content em,
.hfl-article-content i {
    font-style: normal !important;
}

/* ===== 机构信息 - 与正文完全统一 ===== */
.hfl-org-wrapper {
    margin: 28px 0;
    padding: 0;
}

.hfl-org-wrapper,
.hfl-org-wrapper *,
.hfl-org-card,
.hfl-org-card * {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif !important;
    font-style: normal !important;
    line-height: 1.8 !important;
}

.hfl-org-transition {
    margin: 0 0 16px 0;
    padding: 0;
    font-size: 16px !important;
    color: #334155;
    line-height: 1.8 !important;
    font-style: normal !important;
}

/* 机构信息卡片 */
.hfl-org-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
    border: 1px solid #e0f2fe;
    border-radius: 10px;
    padding: 20px;
    margin: 0;
}

.hfl-org-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0f2fe;
}

.hfl-org-icon {
    font-size: 24px;
    font-style: normal !important;
    line-height: 1 !important;
}

.hfl-org-title {
    margin: 0;
    font-size: 18px !important;
    font-weight: 700;
    color: #0369a1;
    line-height: 1.4 !important;
    font-style: normal !important;
}

.hfl-org-body {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hfl-org-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 16px !important;
    line-height: 1.8 !important;
    margin: 0;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

.hfl-org-item:last-child {
    border-bottom: none;
}

.hfl-org-label {
    flex-shrink: 0;
    font-weight: 600;
    color: #0284c7;
    min-width: 70px;
    font-size: 16px !important;
    line-height: 1.8 !important;
    font-style: normal !important;
}

.hfl-org-value {
    color: #334155;
    line-height: 1.8 !important;
    font-size: 16px !important;
    font-style: normal !important;
    flex: 1;
}

.hfl-org-area {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

.hfl-org-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e0f2fe;
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

.hfl-org-tag {
    display: block;
    margin-bottom: 6px;
}

.hfl-org-feature {
    display: block;
    color: #0284c7;
    font-weight: 500;
}

/* 侧边栏广告 */
.hfl-sidebar-ad {
    background: #ffffff;
    border: 1px solid #e0f2fe;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hfl-sidebar-ad-header {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
}

.hfl-sidebar-ad-body {
    padding: 16px;
}

.hfl-sidebar-ad-name {
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px 0;
    font-size: 15px;
}

.hfl-sidebar-ad-address,
.hfl-sidebar-ad-traffic {
    font-size: 13px;
    color: #64748b;
    margin: 6px 0;
    line-height: 1.5;
}

.hfl-sidebar-ad-footer {
    padding: 12px 16px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.hfl-sidebar-ad-btn {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff !important;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.hfl-sidebar-ad-btn:hover {
    background: linear-gradient(135deg, #0369a1, #075985);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

/* 响应式 */
@media (max-width: 768px) {
    .hfl-org-card {
        padding: 16px;
        margin: 20px 0;
    }
    
    .hfl-org-title {
        font-size: 16px;
    }
    
    .hfl-org-item {
        flex-direction: column;
        gap: 4px;
    }
    
    .hfl-org-label {
        min-width: auto;
    }
}

/* 文章配图样式 */
.hfl-article-image {
    margin: 24px 0;
    text-align: center;
}

.hfl-article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hfl-article-image figcaption {
    margin-top: 10px;
    font-size: 13px;
    color: #64748b;
}

/* 文章排版优化 */
.hfl-article-content {
    line-height: 1.8;
    color: #334155;
}

.hfl-article-content h2 {
    margin: 32px 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0f2fe;
    color: #0f172a;
    font-size: 22px;
}

.hfl-article-content h3 {
    margin: 24px 0 12px;
    color: #1e293b;
    font-size: 18px;
}

.hfl-article-content p {
    margin: 16px 0;
}

.hfl-article-content ul,
.hfl-article-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.hfl-article-content li {
    margin: 8px 0;
}

/* 要点框 */
.hfl-key-points {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
}

.hfl-key-points-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #0369a1;
    margin-bottom: 12px;
}

.hfl-key-points ul {
    margin: 0;
    padding-left: 20px;
}

.hfl-key-points li {
    margin: 8px 0;
    color: #334155;
}

/* 提示框 */
.hfl-tip-box {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 24px 0;
    display: flex;
    gap: 12px;
}

.hfl-tip-box.info {
    background: #dbeafe;
    border-color: #93c5fd;
}

.hfl-tip-box.warning {
    background: #fef3c7;
    border-color: #fcd34d;
}

.hfl-tip-box.success {
    background: #dcfce7;
    border-color: #86efac;
}

.hfl-tip-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.hfl-tip-content {
    flex: 1;
}

.hfl-tip-content strong {
    display: block;
    margin-bottom: 4px;
    color: #0f172a;
}

.hfl-tip-content p {
    margin: 0;
    font-size: 14px;
    color: #475569;
}

/* 引用块 */
.hfl-article-content blockquote {
    background: #f8fafc;
    border-left: 4px solid #0284c7;
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
}

.hfl-article-content blockquote p {
    margin: 0;
    color: #475569;
    font-style: italic;
}

/* 表格样式 */
.hfl-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}

.hfl-article-content th,
.hfl-article-content td {
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.hfl-article-content th {
    background: #f0f9ff;
    font-weight: 600;
    color: #0369a1;
}

.hfl-article-content tr:hover {
    background: #f8fafc;
}

/* 检查清单 */
.hfl-checklist {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.hfl-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0;
}

.hfl-checklist li::before {
    content: '✅';
    flex-shrink: 0;
}

/* 机构信息区域（多个机构） */
.hfl-org-section {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    margin: 32px 0;
}

.hfl-org-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e0f2fe;
}

.hfl-org-section-header h3 {
    margin: 0;
    font-size: 20px;
    color: #0369a1;
}

.org-count {
    font-size: 14px;
    color: #64748b;
    background: #e0f2fe;
    padding: 4px 12px;
    border-radius: 20px;
}

.hfl-org-card.featured {
    border: 2px solid #0284c7;
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.15);
}

.hfl-org-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.hfl-org-card:last-child {
    margin-bottom: 0;
}

.hfl-org-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.hfl-org-badge {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.hfl-org-recommend {
    background: #fef3c7;
    color: #b45309;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.hfl-org-name {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    flex: 1;
}

h4.hfl-org-name {
    font-size: 16px;
}

.hfl-org-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hfl-org-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.hfl-org-item .label {
    flex-shrink: 0;
    font-weight: 600;
    color: #0284c7;
}

.hfl-org-item a {
    color: #0284c7;
    text-decoration: none;
    font-weight: 600;
}

.hfl-org-item a:hover {
    text-decoration: underline;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .hfl-org-section {
        padding: 16px;
        margin: 20px 0;
    }
    
    .hfl-org-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .hfl-org-section-header h3 {
        font-size: 18px;
    }
    
    .hfl-org-card {
        padding: 16px;
    }
    
    .hfl-org-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hfl-org-name {
        font-size: 16px;
    }
    
    .hfl-org-item {
        flex-direction: column;
        gap: 4px;
    }
}

/* 机构区域标题 */
.hfl-org-section .hfl-org-title,
.hfl-org-section h3.hfl-org-title {
    margin: 0 0 20px 0 !important;
    font-size: 20px !important;
    color: #0369a1 !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #e0f2fe !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

.hfl-org-section h3.hfl-org-title strong {
    font-weight: 700 !important;
    font-style: normal !important;
}

/* 机构区域内所有p标签统一样式 - 与正文保持一致 */
.hfl-org-section p {
    margin: 0.5em 0 !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: #334155 !important;
    font-style: normal !important;
}

.hfl-org-section p strong {
    color: #0f172a !important;
    font-style: normal !important;
}

/* 主推机构 */
.hfl-org-primary {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0284c7 !important;
}

.hfl-org-primary .hfl-org-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* 机构信息行 - 统一样式，与正文一致 */
.hfl-org-section p.hfl-org-info,
p.hfl-org-info {
    margin: 0.5em 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: #334155 !important;
    font-style: normal !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif !important;
}

/* 机构名称行 */
.hfl-org-section p.hfl-org-name,
p.hfl-org-name {
    margin: 1em 0 0.5em 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: #0369a1 !important;
    font-style: normal !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif !important;
}

.hfl-org-section p.hfl-org-name strong,
p.hfl-org-name strong {
    font-weight: 600 !important;
    font-style: normal !important;
}

.hfl-org-info {
    margin-top: 0.5em;
}

.hfl-org-info p {
    margin: 0.5em 0;
    font-size: 16px;
    line-height: 1.8;
}

.hfl-org-info p strong {
    color: #0284c7;
}

.hfl-org-info a {
    color: #0284c7;
    text-decoration: none;
    font-weight: 600;
}

/* 其他采样点 */
.hfl-org-others {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #cbd5e1;
}

.hfl-org-others h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #475569;
}

.hfl-org-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hfl-org-list .hfl-org-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.hfl-org-list .hfl-org-item .district {
    flex-shrink: 0;
    background: #e0f2fe;
    color: #0284c7;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 12px;
}

.hfl-org-list .hfl-org-item .address {
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
}

.more-tip {
    margin: 15px 0 0 0;
    font-size: 13px;
    color: #64748b;
    text-align: center;
}

/* 响应式 */
@media (max-width: 768px) {
    .hfl-org-list .hfl-org-item {
        flex-direction: column;
        gap: 6px;
    }
    
    .hfl-org-list .hfl-org-item .district {
        margin-right: 0;
    }
}

/* ================================================
   智能广告卡片样式 - 与正文统一行距
   ================================================ */

.hfl-smart-ad-wrapper {
    margin: 28px 0;
    padding: 0;
}

.hfl-smart-ad-wrapper,
.hfl-smart-ad-wrapper * {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif !important;
    font-style: normal !important;
}

.hfl-ad-transition {
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    color: #334155 !important;
    line-height: 1.8 !important;
    font-style: normal !important;
}

.hfl-smart-ad-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.1);
}

.hfl-smart-ad-header {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff;
}

.hfl-ad-icon {
    font-size: 32px;
    margin-right: 15px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.hfl-ad-title-group {
    flex: 1;
}

.hfl-ad-title {
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #fff !important;
    line-height: 1.4 !important;
}

.hfl-ad-slogan {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    display: block;
    line-height: 1.6;
}

.hfl-ad-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(14, 165, 233, 0.08);
    border-bottom: 1px solid #bae6fd;
}

.hfl-highlight-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #7dd3fc;
    border-radius: 20px;
    font-size: 13px;
    color: #0369a1;
    font-weight: 500;
    line-height: 1.6;
}

.hfl-smart-ad-body {
    padding: 16px 20px;
}

.hfl-ad-item {
    display: flex;
    align-items: flex-start;
    margin: 0 0 0.5em 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
}

.hfl-ad-item:last-child {
    margin-bottom: 0 !important;
}

.hfl-ad-label {
    flex-shrink: 0;
    width: 70px;
    color: #0284c7;
    font-weight: 500;
    font-size: 16px !important;
    line-height: 1.8 !important;
}

.hfl-ad-value {
    flex: 1;
    color: #334155;
    font-size: 16px !important;
    line-height: 1.8 !important;
}

.hfl-smart-ad-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.hfl-ad-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hfl-ad-btn-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.hfl-ad-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
    color: #fff;
}

.hfl-ad-contact {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

/* ================================================
   相关内容穿插样式（资讯与问答互穿）
   ================================================ */

.hfl-cross-content {
    margin: 35px 0 20px 0;
    padding: 20px;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.hfl-cross-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.hfl-cross-icon {
    font-size: 22px;
    margin-right: 10px;
}

.hfl-cross-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
}

.hfl-cross-desc {
    margin-left: 12px;
    font-size: 12px;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 10px;
}

.hfl-cross-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hfl-cross-item {
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
}

.hfl-cross-item:last-child {
    margin-bottom: 0 !important;
}

.hfl-cross-link {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hfl-cross-link:hover {
    background: #f0f9ff;
    border-color: #7dd3fc;
    transform: translateX(5px);
}

.hfl-cross-bullet {
    flex-shrink: 0;
    margin-right: 10px;
    font-size: 16px;
}

.hfl-cross-text {
    flex: 1;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hfl-cross-link:hover .hfl-cross-text {
    color: #0369a1;
}

/* 智能侧边栏广告 */
.hfl-sidebar-smart .hfl-sidebar-ad-header {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .hfl-smart-ad-header {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .hfl-ad-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .hfl-ad-highlights {
        justify-content: center;
    }
    
    .hfl-ad-item {
        flex-direction: column;
    }
    
    .hfl-ad-label {
        width: auto;
        margin-bottom: 4px;
    }
    
    .hfl-smart-ad-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .hfl-cross-header {
        flex-wrap: wrap;
    }
    
    .hfl-cross-desc {
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
        text-align: center;
    }
    
    .hfl-cross-text {
        white-space: normal;
    }
}
