/* ================================================================
   专题页（患者服务）专属样式
   适用于：科室导航 / 收费标准 / 在线咨询 / 药品配送 / 医保说明
   依赖：style.css（CSS 变量与基础组件）
   ================================================================ */

/* ===== 面包屑 ===== */
.topic-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 0 12px;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.topic-breadcrumb a {
    color: var(--primary);
    font-weight: 500;
}
.topic-breadcrumb .sep {
    color: var(--border);
}

/* ===== 页面主视觉 ===== */
.topic-hero {
    position: relative;
    margin-top: 52px;
    padding: 26px 16px 34px;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 10%, rgba(201, 168, 76, 0.16), transparent 46%),
        radial-gradient(circle at 88% 0%, rgba(184, 66, 58, 0.14), transparent 50%),
        linear-gradient(180deg, #FBF8F3 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
}
.topic-hero::after {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 1px dashed rgba(184, 66, 58, 0.16);
}
.topic-hero .topic-breadcrumb {
    justify-content: center;
    position: relative;
    z-index: 1;
}
.topic-hero-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: 0 8px 26px rgba(184, 66, 58, 0.16);
    position: relative;
    z-index: 1;
}
.topic-hero-icon svg {
    width: 34px;
    height: 34px;
}
.topic-hero-en {
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #B7A791;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}
.topic-hero-title {
    font-family: var(--font-heading);
    font-size: 27px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #7a2e28;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}
.topic-hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}
.topic-hero-divider span {
    display: inline-block;
    width: 66px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #bfa47e, transparent);
}
.topic-hero-divider i {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--primary);
    transform: rotate(45deg);
}
.topic-hero-desc {
    font-size: 13.5px;
    line-height: 1.9;
    color: #8c7b65;
    max-width: 340px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ===== 锚点导航 ===== */
.topic-pill-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 14px 16px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.topic-pill-nav::-webkit-scrollbar { display: none; }
.topic-pill-nav a {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    white-space: nowrap;
    transition: all 0.25s;
}
.topic-pill-nav a:active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ===== 通用小标题（左竖条） ===== */
.topic-h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 14px;
}
.topic-h3::before {
    content: '';
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: var(--primary);
    flex-shrink: 0;
}
.topic-h3 small {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===== 通用卡片 ===== */
.topic-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 16px;
}
.topic-card + .topic-card { margin-top: 12px; }

/* ===== 提示条 ===== */
.notice-tip {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 16px;
    background: rgba(74, 139, 111, 0.07);
    border: 1px solid rgba(74, 139, 111, 0.18);
    color: #3c6b56;
}
.notice-tip svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}
.notice-tip strong { color: var(--green); }
.notice-tip.tip-warn {
    background: rgba(201, 168, 76, 0.1);
    border-color: rgba(201, 168, 76, 0.3);
    color: #7d6420;
}
.notice-tip.tip-warn strong { color: #8B6914; }
.notice-tip.tip-info {
    background: rgba(74, 112, 139, 0.08);
    border-color: rgba(74, 112, 139, 0.2);
    color: #3d5c75;
}
.notice-tip.tip-info strong { color: var(--blue); }

/* ===== 科室导航 ===== */
.dept-nav-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.dept-nav-card {
    display: block;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    border: 1px solid transparent;
    transition: all 0.28s ease;
}
.dept-nav-card:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}
.dept-nav-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.dept-nav-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dept-nav-icon svg { width: 26px; height: 26px; }
.dept-nav-name {
    flex: 1;
    min-width: 0;
}
.dept-nav-name h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}
.dept-nav-name span {
    font-size: 11px;
    color: var(--text-muted);
}
.dept-nav-arrow {
    flex-shrink: 0;
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}
.dept-nav-range {
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #7a2e28;
    background: rgba(184, 66, 58, 0.07);
    border: 1px solid rgba(184, 66, 58, 0.14);
    padding: 3px 10px;
    border-radius: 12px;
}
.tag.tag-green {
    color: #3c6b56;
    background: rgba(74, 139, 111, 0.08);
    border-color: rgba(74, 139, 111, 0.18);
}
.tag.tag-gold {
    color: #8B6914;
    background: rgba(201, 168, 76, 0.12);
    border-color: rgba(201, 168, 76, 0.28);
}

/* ===== 数据表格 ===== */
.table-wrap {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.table-wrap + .table-wrap { margin-top: 14px; }
.fee-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.fee-table caption {
    caption-side: top;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    padding: 14px 16px 10px;
}
.fee-table th {
    background: var(--bg-alt);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    padding: 10px 12px;
    white-space: nowrap;
}
.fee-table td {
    padding: 11px 12px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    line-height: 1.5;
    vertical-align: top;
}
.fee-table tbody tr:nth-child(even) td {
    background: rgba(242, 237, 228, 0.4);
}
.fee-table td.item {
    color: var(--text);
    font-weight: 600;
}
.fee-table td.price {
    color: var(--primary);
    font-weight: 700;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.fee-table td.unit {
    color: var(--text-muted);
    font-size: 12px;
    white-space: nowrap;
}
.fee-table .row-note td {
    background: transparent !important;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px dashed var(--border);
}

/* ===== 信息条目列表 ===== */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.info-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.info-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.info-icon svg { width: 20px; height: 20px; }
.info-item strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}
.info-item p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
}
.info-item p em {
    font-style: normal;
    color: var(--primary);
    font-weight: 700;
}

/* ===== FAQ 折叠 ===== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid transparent;
    overflow: hidden;
}
.faq-item[open] {
    border-color: rgba(184, 66, 58, 0.2);
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 15px 44px 15px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
    position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    background: rgba(184, 66, 58, 0.08);
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
    transition: transform 0.25s;
}
.faq-item[open] summary::after {
    content: '−';
    background: var(--primary);
    color: #fff;
}
.faq-item .faq-body {
    padding: 0 16px 16px;
    font-size: 13px;
    line-height: 1.85;
    color: var(--text-secondary);
    border-top: 1px dashed var(--border);
    margin-top: -1px;
    padding-top: 14px;
}
.faq-item .faq-body p + p { margin-top: 8px; }
.faq-item .faq-body strong { color: var(--text); }

/* ===== 步骤流程（纵向） ===== */
.flow-list {
    position: relative;
    padding-left: 6px;
}
.flow-item {
    position: relative;
    padding: 0 0 20px 34px;
}
.flow-item:last-child { padding-bottom: 0; }
.flow-item::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 26px;
    bottom: -4px;
    width: 2px;
    background: linear-gradient(180deg, rgba(184, 66, 58, 0.28), rgba(184, 66, 58, 0.06));
}
.flow-item:last-child::before { display: none; }
.flow-num {
    position: absolute;
    left: 0;
    top: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(184, 66, 58, 0.28);
}
.flow-item h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    padding-top: 2px;
}
.flow-item p {
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ===== 底部行动条（页内 CTA） ===== */
.topic-cta {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.topic-cta .btn { flex: 1; justify-content: center; }

/* ===== 联系方式块 ===== */
.topic-contact {
    background: linear-gradient(135deg, #7a2e28 0%, #B8423A 100%);
    border-radius: var(--radius);
    padding: 20px 18px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(122, 46, 40, 0.22);
}
.topic-contact h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.topic-contact .topic-contact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 13.5px;
}
.topic-contact .topic-contact-row:first-of-type { border-top: none; }
.topic-contact .topic-contact-row span { opacity: 0.85; }
.topic-contact .topic-contact-row b {
    font-size: 15px;
    letter-spacing: 0.5px;
    color: #FFE9B8;
    font-weight: 700;
}

/* ===== 图片来源/说明 ===== */
.topic-footnote {
    margin-top: 16px;
    font-size: 12px;
    line-height: 1.8;
    color: var(--text-muted);
}

/* ===== 响应式微调 ===== */
@media (max-width: 360px) {
    .topic-hero-title { font-size: 23px; }
    .fee-table { font-size: 12px; }
    .fee-table th, .fee-table td { padding: 9px 8px; }
}
