:root {
  --brand: #1ac1b0;
  --brand-hover: #48c9b0;
  --brand-light: #82d9d1;
  --accent: #f1c40f;
  --text-main: #333;
  --text-strong: #181818;
  --text-secondary: #34495e;
  --text-muted: #999;
  --line: #eee;
  --line-soft: #efefef;
  --bg-gray: #e9e9e9;
  --footer-bg: #2a2c37;
  --footer-text: #73777a;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  color: var(--text-main);
  background: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
.container { max-width: 1170px; margin: 0 auto; padding-left: 15px; padding-right: 15px; }
.page-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* 顶部栏 */
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 36px; font-size: 12px; }
.city-switch { position: relative; cursor: pointer; color: var(--text-secondary); }
.city-switch .city-arrow { font-size: 10px; }
.city-panel { display: none; position: absolute; top: 32px; left: 0; z-index: 30; width: 280px; padding: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.city-switch:hover .city-panel, .city-switch.open .city-panel { display: block; }
.city-panel-title { font-weight: 700; margin-bottom: 8px; color: var(--text-strong); }
.city-hot a { display: inline-block; margin: 0 8px 6px 0; color: var(--text-secondary); }
.city-hot a:hover { color: var(--brand); }
.city-all { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-phone { color: var(--brand); font-weight: 700; }
.text-link { color: var(--text-muted); }
.text-sep { color: var(--line); }

/* 头部主区 */
.header-main { display: flex; align-items: center; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.brand img { max-height: 72px; width: auto; }
.search-box { flex: 1; max-width: 560px; position: relative; }
.search-tabs { display: flex; gap: 14px; font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.search-tabs span { cursor: pointer; }
.search-tabs span.active { color: var(--brand); font-weight: 700; }
.search-input-row { display: flex; height: 40px; border: 2px solid var(--brand); border-radius: 2px; overflow: hidden; }
.search-input-row input { flex: 1; border: 0; outline: none; padding: 0 14px; font-size: 14px; }
.search-input-row button { width: 88px; border: 0; background: var(--brand); color: #fff; cursor: pointer; }
.consult-btn { display: inline-block; padding: 10px 20px; background: var(--brand); color: #fff; border: 0; border-radius: 2px; white-space: nowrap; cursor: pointer; font-size: 14px; }
.consult-btn:hover { background: var(--brand-hover); color: #fff; }

/* 主导航 */
.main-nav { background: #fff; border-top: 1px solid var(--line); border-bottom: 2px solid var(--brand); }
.nav-inner { position: relative; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: space-between; width: 100%; }
.nav-list li { flex: 1 1 0; text-align: center; }
.nav-list li a { display: block; padding: 0 12px; line-height: 46px; color: var(--text-secondary); font-size: 16px; }
.nav-list li a:hover { color: var(--brand); background: #fafafa; }
.mobile-menu-btn { display: none; border: 0; background: none; font-size: 26px; line-height: 46px; color: var(--text-secondary); cursor: pointer; }

/* 首页 hero */
.hero { display: flex; gap: 20px; margin-top: 20px; }

/* 无障碍 / SEO：视觉上隐藏但仍被搜索引擎与 AI 读取的主标题 */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.category-menu { width: 250px; background: #fff; border: 1px solid var(--line); flex-shrink: 0; }
.category-title { height: 38px; line-height: 38px; text-align: center; background: var(--brand); color: #fff; font-size: 15px; letter-spacing: 1px; }
.category-menu ul { list-style: none; margin: 0; padding: 8px 0; }
.category-menu ul li a { display: block; padding: 10px 20px; color: var(--text-main); border-bottom: 1px dashed var(--line); }
.category-menu ul li a:hover { color: var(--brand); background: #fafafa; }
.category-more { display: block; padding: 10px 20px; color: var(--brand); text-align: center; }
.banner-wrap { flex: 1; position: relative; overflow: hidden; min-height: 320px; background: var(--bg-gray); }
.banner-slider { height: 320px; }
.banner-slide { display: none; position: absolute; inset: 0; }
.banner-slide.active { display: block; }
.banner-slide img { width: 100%; height: 320px; object-fit: cover; }
.banner-text { position: absolute; top: 48px; right: 48px; max-width: 480px; text-align: right; padding: 18px 24px; background: rgba(0,0,0,.25); }
.banner-text h2 { margin: 0; font-size: 28px; color: #fff; }
.banner-text p { margin: 8px 0 0; color: #eee; font-size: 17px; }
.banner-dots { position: absolute; right: 24px; bottom: 18px; display: flex; gap: 7px; }
.banner-dots span { width: 28px; height: 4px; background: #eee; cursor: pointer; }
.banner-dots span.active { background: var(--brand); }

/* 核心服务卡 */
.core-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.core-card { background: #fff; border: 1px solid var(--line); padding: 24px; text-align: center; color: var(--text-main); }
.core-card:hover { border-color: var(--brand); color: var(--text-main); }
.core-icon { font-size: 34px; }
.core-card h3 { margin: 10px 0 6px; font-size: 18px; color: var(--text-strong); }
.core-card p { margin: 0; color: var(--text-muted); font-size: 13px; }

/* 通用 section */
.section { margin-top: 34px; }
.section-head { display: flex; justify-content: space-between; align-items: center; border-top: 2px solid var(--brand); padding: 12px 0; }
.section-head h2 { margin: 0; font-size: 24px; color: var(--text-strong); }
.section-head a { color: var(--text-muted); }
.section-head a:hover { color: var(--brand); }

/* 服务卡片 */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 16px; }
.service-card { background: #fff; border: 1px solid var(--line); overflow: hidden; color: var(--text-main); }
.service-card:hover { border-color: var(--brand); color: var(--text-main); }
.service-card img { width: 100%; height: 180px; object-fit: cover; }
.service-card-body { padding: 16px; }
.service-card-body h3 { margin: 0 0 8px; font-size: 18px; color: var(--text-strong); }
.service-price { color: var(--accent); font-weight: 700; margin: 0 0 6px; }
.service-meta { margin: 0; color: var(--text-muted); font-size: 13px; }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tab { border: 1px solid var(--line); background: #fff; color: var(--text-secondary); padding: 7px 18px; cursor: pointer; font-size: 14px; }
.tab.active, .tab:hover { border-color: var(--brand); color: var(--brand); }

/* 专家 */
.expert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.expert-card { border: 1px solid var(--line); padding: 22px 18px; text-align: center; background: #fff; }
.expert-avatar { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 1px solid var(--line); }
.expert-name { margin: 0 0 4px; font-size: 16px; color: var(--text-strong); }
.expert-name span { margin-left: 8px; font-size: 13px; color: var(--text-muted); }
.expert-hospital { margin: 0 0 14px; color: var(--text-muted); font-size: 13px; }
.expert-specialty { color: var(--text-muted); font-size: 13px; }
.btn-outline { display: inline-block; padding: 7px 18px; border: 1px solid var(--brand); color: var(--brand); border-radius: 2px; }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-primary { display: inline-block; padding: 9px 22px; background: var(--brand); color: #fff; border-radius: 2px; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }

/* 问题 */
.question-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; border-top: 1px dashed var(--line); padding-top: 8px; }
.question-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); color: var(--text-main); }
.question-item:hover { color: var(--brand); }
.question-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.question-count { color: var(--text-muted); margin-left: 12px; flex-shrink: 0; font-size: 13px; }

/* 资讯 */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 16px; }
.news-card { border: 1px solid var(--line); background: #fff; padding: 16px; color: var(--text-main); }
.news-card img { width: 100%; height: 150px; object-fit: cover; margin-bottom: 10px; }
.news-card h3 { margin: 0 0 8px; font-size: 16px; color: var(--text-strong); line-height: 1.4; }
.news-card p { margin: 0; color: var(--text-muted); font-size: 13px; height: 40px; overflow: hidden; }

/* 数据条 */
.stats-strip { margin-top: 36px; background: var(--brand); color: #fff; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 26px; padding-bottom: 26px; }
.stat-item { text-align: center; }
.stat-item strong { display: block; font-size: 30px; }
.stat-item span { font-size: 13px; opacity: .9; }

/* 城市链接 */
.city-link-list { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; }
.city-link-list a { color: var(--text-secondary); }
.city-link-list a:hover { color: var(--brand); }

/* 页脚 */
.site-footer { margin-top: 40px; background: var(--footer-bg); color: #fff; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; padding-top: 34px; padding-bottom: 30px; }
.footer-brand img { max-height: 64px; width: auto; margin-bottom: 8px; }
.footer-phone { font-size: 24px; color: #fff; margin: 6px 0; }
.footer-desc { color: var(--footer-text); font-size: 13px; max-width: 480px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 18px; align-content: flex-start; max-width: 500px; }
.footer-links a { color: var(--footer-text); }
.footer-links a:hover { color: var(--brand-light); }
.footer-bottom { border-top: 1px solid #424556; padding: 20px 0; text-align: center; color: var(--footer-text); font-size: 12px; }
.footer-bottom p { margin: 4px 0; }

/* 通用页面 */
.page-container { padding-top: 26px; padding-bottom: 50px; }
.page-title { font-size: 30px; color: var(--text-strong); margin: 0 0 10px; }
.page-sub { color: var(--text-muted); margin: 0 0 22px; }
.simple-page { padding-top: 70px; padding-bottom: 90px; text-align: center; }
.simple-page h1 { font-size: 44px; }
.detail-page article { max-width: 900px; margin: 0 auto; }
.detail-cover { width: 100%; max-height: 420px; object-fit: cover; margin: 20px 0; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--text-muted); margin-bottom: 18px; }
.detail-meta time { color: var(--text-muted); }
.rich-content { font-size: 16px; color: var(--text-main); line-height: 1.85; }
.rich-content img { max-width: 100%; height: auto; }
.rich-content h1, .rich-content h2, .rich-content h3 { color: var(--text-strong); }
.detail-cta { margin-top: 28px; display: flex; gap: 12px; }
.list-grid { grid-template-columns: repeat(3, 1fr); }
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-row { display: flex; gap: 18px; border: 1px solid var(--line); padding: 16px; color: var(--text-main); }
.news-row img { width: 180px; height: 120px; object-fit: cover; flex-shrink: 0; }
.news-row h3 { margin: 0 0 8px; color: var(--text-strong); }
.news-row p { margin: 0 0 8px; color: var(--text-muted); }
.news-row time { color: var(--text-muted); font-size: 12px; }
.pagination { display: flex; gap: 8px; margin-top: 24px; }
.pagination a { padding: 6px 12px; border: 1px solid var(--line); color: var(--text-secondary); }
.pagination a.active, .pagination a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination { flex-wrap: wrap; align-items: center; }
.pagination .page-ellipsis { color: var(--text-muted); padding: 0 2px; }
.search-results { display: flex; flex-direction: column; gap: 14px; }
.search-result { border: 1px solid var(--line); padding: 16px; color: var(--text-main); }
.search-result h3 { margin: 4px 0; color: var(--text-strong); }
.search-result p { margin: 0; color: var(--text-muted); }
.result-type { color: var(--brand); font-size: 12px; }
.city-picker { margin-top: 20px; }
.city-picker h2 { font-size: 18px; color: var(--text-strong); border-left: 4px solid var(--brand); padding-left: 10px; }
.city-hot.big a { padding: 7px 12px; border: 1px solid var(--line); margin: 0 8px 8px 0; }
.city-group { margin-top: 24px; }
.letter-bar { display: flex; flex-wrap: wrap; gap: 4px; margin: 14px 0 24px; }
.letter-bar a { display: inline-block; min-width: 28px; padding: 5px 8px; text-align: center; border: 1px solid var(--line); color: var(--text-secondary); }
.letter-bar a.active, .letter-bar a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.consult-section { background: #f7faf9; padding: 44px 0; }
.consult-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.consult-copy h2 { margin: 0 0 12px; font-size: 26px; color: var(--text-strong); }
.consult-copy p { color: var(--text-muted); }
.consult-phone { display: inline-block; margin-top: 8px; font-size: 24px; color: var(--brand); font-weight: 700; }
.consult-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.consult-form input, .consult-form textarea { border: 1px solid #ccc; border-radius: 3px; padding: 10px 12px; font-size: 14px; width: 100%; }
.consult-form textarea { grid-column: 1 / -1; resize: vertical; }
.consult-form button { grid-column: 1 / -1; border: 0; background: var(--brand); color: #fff; padding: 11px; border-radius: 3px; cursor: pointer; font-size: 15px; }
.consult-form button:hover { background: var(--brand-hover); }
.form-tip { grid-column: 1 / -1; margin: 0; color: var(--brand); font-size: 13px; }

/* 响应式 */
@media (max-width: 1199px) {
  .expert-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 970px) {
  .header-main { flex-wrap: wrap; }
  .brand { flex: 1; }
  .search-box { order: 3; width: 100%; max-width: none; }
  .category-menu { display: none; }
  .banner-slider, .banner-slide img { height: 260px; }
  .banner-text { top: 28px; right: 20px; }
  .core-cards { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .expert-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .question-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .footer-top { flex-direction: column; gap: 24px; }
  .consult-inner { grid-template-columns: 1fr; }
  .mobile-menu-btn { display: inline-block; }
  .nav-list { display: none; position: absolute; top: 46px; left: 15px; right: 15px; background: #fff; border: 1px solid var(--line); z-index: 20; box-shadow: 0 8px 20px rgba(0,0,0,.08); }
  .nav-list.open { display: block; }
  .nav-list li { flex: none; text-align: left; }
  .nav-list li a { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .topbar-inner { height: auto; padding: 8px 0; flex-wrap: wrap; }
  .header-main { gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .consult-btn { padding: 8px 14px; }
  .core-cards { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .list-grid { grid-template-columns: 1fr; }
  .banner-slider, .banner-slide img { height: 200px; }
  .banner-text { top: 20px; right: 12px; max-width: 80%; padding: 10px 14px; }
  .banner-text h2 { font-size: 20px; }
  .banner-text p { font-size: 14px; }
  .news-row { flex-direction: column; }
  .news-row img { width: 100%; height: auto; }
  .detail-meta { flex-direction: column; gap: 6px; }
}

/* 品牌名称 */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-text { font-size: 23px; font-weight: 700; color: var(--text-strong); line-height: 1.2; letter-spacing: 1px; }
.header-contact { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-phone { font-size: 22px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.header-phone:hover { color: var(--brand-hover); }
.header-phone-icon { margin-right: 4px; }
.footer-brand-top { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.footer-brand-top img { max-height: 54px; width: auto; margin-bottom: 0; }
.footer-brand-name { font-size: 22px; font-weight: 700; color: #fff; }

/* 当前栏目高亮 */
.nav-list li.active a { background: var(--brand); color: #fff; }
.nav-list li.active a:hover { background: var(--brand); color: #fff; }

/* 右侧悬浮客服 */
.floating-consult {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%);
  z-index: 1000; display: flex; flex-direction: column; align-items: center; gap: 5px;
  width: 60px; padding: 13px 7px; border: 0; border-radius: 30px;
  background: var(--brand); color: #fff; cursor: pointer;
  box-shadow: 0 8px 24px rgba(26, 193, 176, .35);
}
.floating-consult:hover { background: var(--brand-hover); color: #fff; }
.floating-icon { font-size: 26px; line-height: 1; }
.floating-text { font-size: 12px; letter-spacing: 1px; writing-mode: vertical-rl; }

/* 咨询弹窗 */
.consult-modal { position: fixed; inset: 0; z-index: 2000; display: none; }
.consult-modal.open { display: block; }
.consult-modal-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, .48); }
.consult-modal-box {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 420px; max-width: calc(100vw - 32px); background: #fff; border-radius: 8px;
  padding: 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.consult-modal-close { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--text-muted); cursor: pointer; }
.consult-modal-box h3 { margin: 0 0 4px; font-size: 22px; color: var(--text-strong); text-align: center; }
.consult-modal-sub { margin: 0 0 16px; color: var(--text-muted); font-size: 13px; text-align: center; }
#floatingConsultForm { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#floatingConsultForm input, #floatingConsultForm textarea { border: 1px solid #ccc; border-radius: 3px; padding: 10px 12px; font-size: 14px; width: 100%; }
#floatingConsultForm input:focus, #floatingConsultForm textarea:focus { border-color: var(--brand); outline: none; }
#floatingConsultForm textarea { grid-column: 1 / -1; resize: vertical; }
#floatingConsultForm button { grid-column: 1 / -1; border: 0; background: var(--brand); color: #fff; padding: 11px; border-radius: 3px; cursor: pointer; font-size: 15px; }
#floatingConsultForm button:hover { background: var(--brand-hover); }
.consult-modal-phone { display: block; margin-top: 12px; text-align: center; color: var(--brand); font-weight: 700; }

/* 目录表格 */
.directory-table-wrap { border: 1px solid var(--line); }
.directory-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.directory-table th, .directory-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.directory-table th { background: #f7faf9; font-weight: 700; white-space: nowrap; }
.directory-table tbody tr:nth-child(even) { background: #fcfefe; }
.directory-row.extra { display: none; }
.directory-table-wrap.expanded .directory-row.extra { display: table-row; }
.directory-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.directory-toggle { cursor: pointer; background: #fff; }
.directory-tip { margin: 0; color: var(--text-muted); font-size: 13px; }
.directory-tip a { margin-left: 4px; }

/* 服务流程 */
.flow-steps { display: flex; align-items: stretch; margin-top: 18px; }
.flow-step { flex: 1; position: relative; border: 1px solid var(--line); padding: 20px 14px; text-align: center; background: #fff; cursor: pointer; }
.flow-step:hover { border-color: var(--brand); box-shadow: 0 8px 24px rgba(0, 0, 0, .08); z-index: 2; }
.flow-step-icon { font-size: 30px; line-height: 1; }
.flow-step-icon img { width: 34px; height: 34px; object-fit: contain; }
.flow-step-title { margin-top: 8px; font-size: 17px; font-weight: 700; color: var(--text-strong); }
.flow-step-summary { margin-top: 6px; color: var(--text-secondary); font-size: 13px; }
.flow-step-detail {
  display: none; position: absolute; left: 10px; right: 10px; top: 100%; margin-top: 8px;
  background: #fff; border: 1px solid var(--brand); padding: 12px; color: var(--text-secondary);
  font-size: 13px; text-align: left; box-shadow: 0 8px 20px rgba(0, 0, 0, .12); z-index: 5;
}
.flow-step:hover .flow-step-detail, .flow-step.active .flow-step-detail { display: block; }
.flow-arrow { align-self: center; font-size: 22px; color: var(--brand); padding: 0 7px; flex-shrink: 0; }

/* 价格对比 */
.price-table-wrap { margin-top: 16px; border: 1px solid var(--line); }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { border: 1px solid var(--line); padding: 14px 16px; text-align: center; }
.price-table th { background: #f7faf9; font-weight: 700; }
.price-value { color: var(--accent); font-weight: 700; font-size: 18px; }

/* 新增模块响应式 */
@media (max-width: 970px) {
  .directory-table-wrap, .price-table-wrap { overflow-x: auto; }
  .directory-table, .price-table { min-width: 720px; }
  .flow-steps { flex-wrap: wrap; }
  .flow-step { flex: 1 1 30%; min-width: 150px; margin-bottom: 8px; }
  .flow-arrow { display: none; }
}
@media (max-width: 640px) {
  .brand-text { font-size: 18px; }
  .header-contact { gap: 8px; }
  .header-phone { font-size: 16px; }
  .consult-btn { padding: 8px 13px; }
  .floating-consult { right: 8px; width: 54px; padding: 11px 5px; }
  .flow-steps { flex-direction: column; }
  .flow-step { width: 100%; }
  .directory-foot { flex-direction: column; align-items: flex-start; }
}

/* 常见问答列表 */
.question-list { border-top: 1px dashed var(--line); }
.question-list .question-item { display: block; padding: 12px 0; border-bottom: 1px dashed var(--line); color: var(--text-main); }
.question-list .question-item:hover { color: var(--brand); }
.question-line { color: var(--text-strong); font-size: 15px; line-height: 1.6; }
.question-line strong { color: var(--brand); margin-right: 2px; }
.answer-line { margin-top: 5px; color: var(--text-secondary); font-size: 13px; line-height: 1.7; }
.answer-line strong { color: var(--text-muted); margin-right: 2px; }

/* 采样站点 + 科普排名 */
.sampling-science-section { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 28px; align-items: start; }
.sampling-main { min-width: 0; }
.science-rank { min-width: 0; }
.rank-list { list-style: none; margin: 12px 0 0; padding: 0; }
.rank-list li { border-bottom: 1px dashed var(--line); }
.rank-list li a { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: var(--text-main); }
.rank-list li a:hover { color: var(--brand); }
.rank-no { width: 22px; height: 22px; line-height: 22px; text-align: center; background: #eef0f1; color: var(--text-muted); border-radius: 3px; flex-shrink: 0; font-size: 12px; }
.rank-no.top { background: var(--accent); color: #fff; }
.rank-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }

/* 首页大图文字框加宽、标题完整显示 */
.banner-text { max-width: 700px; padding: 22px 30px; background: rgba(0, 0, 0, .48); }
.banner-text h2 { font-size: 30px; white-space: normal; line-height: 1.35; }

@media (max-width: 970px) {
  .sampling-science-section { grid-template-columns: 1fr; }
  .rank-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
  .banner-text { max-width: 520px; padding: 16px 22px; }
  .banner-text h2 { font-size: 24px; }
}
@media (max-width: 640px) {
  .rank-list { grid-template-columns: 1fr; }
  .banner-text { max-width: 82%; padding: 12px 16px; }
  .banner-text h2 { font-size: 19px; }
}

/* 常见问答两栏 + 热门问答 */
.question-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.hot-qa { background: #f8faf9; border: 1px solid var(--line); padding: 16px; }
.hot-qa-title { font-size: 17px; font-weight: 700; color: var(--text-strong); border-left: 4px solid var(--brand); padding-left: 10px; margin-bottom: 8px; }
.hot-qa ul { list-style: none; margin: 0; padding: 0; }
.hot-qa li { border-bottom: 1px dashed var(--line); }
.hot-qa li:last-child { border-bottom: 0; }
.hot-qa li a { display: flex; align-items: center; gap: 8px; padding: 9px 0; color: var(--text-main); }
.hot-qa li a:hover { color: var(--brand); }
.hot-qa-no { width: 20px; height: 20px; line-height: 20px; text-align: center; background: #eef0f1; color: var(--text-muted); border-radius: 3px; flex-shrink: 0; font-size: 12px; }
.hot-qa-no.top { background: var(--accent); color: #fff; }
.hot-qa-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }

/* 科普 FAQ */
.science-faq { margin-top: 18px; }
.faq-list { border-top: 1px solid var(--line); margin-top: 12px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border: 0; background: none; cursor: pointer; font-size: 15px; color: var(--text-strong); text-align: left; }
.faq-q-text { flex: 1; }
.faq-arrow { transition: transform .2s; color: var(--text-muted); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 0 12px; color: var(--text-secondary); font-size: 13px; line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* 科普工具条 */
.science-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.science-search { display: flex; max-width: 360px; height: 38px; border: 1px solid #ccc; border-radius: 3px; overflow: hidden; }
.science-search input { flex: 1; border: 0; padding: 0 12px; outline: none; font-size: 14px; }
.science-search button { border: 0; background: var(--brand); color: #fff; padding: 0 18px; cursor: pointer; }
.science-sort { display: flex; gap: 8px; }
.science-sort a { padding: 7px 16px; border: 1px solid var(--line); color: var(--text-secondary); border-radius: 3px; }
.science-sort a.active, .science-sort a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* 资讯 tabs / 排序 */
.news-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.news-tabs a { padding: 7px 16px; border: 1px solid var(--line); color: var(--text-secondary); border-radius: 3px; }
.news-tabs a.active, .news-tabs a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.news-toolbar { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.news-sort-label { color: var(--text-muted); font-size: 13px; }
.news-toolbar a { color: var(--text-secondary); padding: 4px 10px; border: 1px solid var(--line); border-radius: 3px; }
.news-toolbar a.active { color: var(--brand); border-color: var(--brand); }

/* 文章卡片 */
.article-card-list { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.article-card { display: flex; gap: 16px; border: 1px solid var(--line); padding: 14px; color: var(--text-main); background: #fff; }
.article-card:hover { border-color: var(--brand); color: var(--text-main); }
.article-card img { width: 200px; height: 132px; object-fit: cover; flex-shrink: 0; }
.article-card-body { flex: 1; min-width: 0; }
.article-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.article-card-head h3 { margin: 0; font-size: 18px; color: var(--text-strong); flex: 1; }
.top-badge { background: var(--accent); color: #fff; padding: 1px 7px; border-radius: 3px; font-size: 12px; flex-shrink: 0; }
.article-summary { margin: 0 0 8px; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.article-tags span { background: #f0f7f6; color: var(--brand); padding: 2px 8px; border-radius: 3px; font-size: 12px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--text-muted); font-size: 12px; }
.article-cat { color: var(--brand); }

/* 详情页 */
.breadcrumb { display: flex; gap: 6px; align-items: center; color: var(--text-muted); font-size: 13px; margin-bottom: 16px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand); }
.article-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; border-top: 1px solid var(--line); padding-top: 14px; }
.article-nav a, .article-nav span { color: var(--text-secondary); font-size: 14px; max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-nav a:hover { color: var(--brand); }
.related-section { margin-top: 30px; }
.related-section h2 { font-size: 20px; color: var(--text-strong); border-top: 2px solid var(--brand); padding-top: 12px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 14px; }
.related-card { border: 1px solid var(--line); background: #fff; color: var(--text-main); }
.related-card:hover { border-color: var(--brand); color: var(--text-main); }
.related-card img { width: 100%; height: 120px; object-fit: cover; }
.related-card h3 { margin: 0; padding: 10px 12px; font-size: 14px; color: var(--text-strong); }
.consult-trigger { cursor: pointer; background: #fff; }
.news-card-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; color: var(--text-muted); font-size: 12px; }

@media (max-width: 970px) {
  /* 网格子项默认 min-width:auto，长文本会把列撑到内容宽度（手机端整页被撑宽、能左右拖动），必须置 0 */
  .question-layout { grid-template-columns: 1fr; }
  .question-layout > * { min-width: 0; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .article-card img { width: 150px; height: 110px; }
}
@media (max-width: 640px) {
  .science-toolbar { flex-direction: column; align-items: stretch; }
  .science-search { max-width: none; }
  .article-card { flex-direction: column; }
  .article-card img { width: 100%; height: 180px; }
  .related-grid { grid-template-columns: 1fr; }
  .article-nav { flex-direction: column; }
  .article-nav a, .article-nav span { max-width: 100%; white-space: normal; }
}

/* 科普两栏布局（无缩略图） */
.science-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.science-col { min-width: 0; }
.text-card-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.text-card { display: block; border: 1px solid var(--line); padding: 16px 18px; color: var(--text-main); background: #fff; }
.text-card:hover { border-color: var(--brand); color: var(--text-main); }
.text-card h3 { margin: 0 0 8px; font-size: 17px; color: var(--text-strong); line-height: 1.5; }
.empty-tip { color: var(--text-muted); padding: 24px 0; text-align: center; }

/* 资讯网格布局 */
.news-grid-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 18px; }
.news-card-v { border: 1px solid var(--line); background: #fff; color: var(--text-main); overflow: hidden; }
.news-card-v:hover { border-color: var(--brand); color: var(--text-main); }
.news-card-v img { width: 100%; height: 150px; object-fit: cover; }
.news-card-v-body { padding: 14px; }
.news-card-v-body .article-card-head h3 { font-size: 17px; }

/* 空状态：列表没有数据时保留页面骨架，只把内容区换成提示 */
.empty-panel { grid-column: 1 / -1; border: 1px dashed #ddd; background: #fbfcfc; border-radius: 4px; padding: 46px 24px; text-align: center; }
.empty-panel-icon { font-size: 34px; line-height: 1; opacity: .5; margin-bottom: 14px; }
.empty-panel-title { margin: 0 0 8px; font-size: 18px; color: var(--text-strong); }
.empty-panel-text { margin: 0 0 18px; color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.empty-panel-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.empty-panel-links a { padding: 7px 18px; border: 1px solid var(--brand); color: var(--brand); border-radius: 3px; font-size: 14px; }
.empty-panel-links a:hover { background: var(--brand); color: #fff; }

/* 城市搜索 */
.city-search-box { margin-bottom: 16px; }
.city-search-box input { width: 100%; max-width: 480px; height: 42px; border: 1px solid #ccc; border-radius: 3px; padding: 0 14px; font-size: 14px; }
.city-search-box input:focus { border-color: var(--brand); outline: none; }

@media (max-width: 970px) {
  .science-columns { grid-template-columns: 1fr; }
  .news-grid-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .news-grid-list { grid-template-columns: 1fr; }
}

/* 移动端底部固定转化栏 */
.mobile-convert-bar { display: none; }
@media (max-width: 640px) {
  .mobile-convert-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
    height: 56px; background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, .06);
  }
  .mc-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: none; color: var(--text-secondary); font-size: 12px; text-decoration: none; cursor: pointer; }
  .mc-icon { font-size: 20px; line-height: 1; }
  .mc-item.mc-phone { flex: 2; background: var(--brand); color: #fff; }
}

@media (max-width: 970px) {
  .banner-wrap { min-height: 0; }
}
@media (max-width: 640px) {
  body { padding-bottom: 56px; }
  .site-footer { display: none; }
  .banner-wrap { min-height: 0; }
  .floating-consult { top: auto; bottom: 76px; transform: none; }

  .directory-table-wrap { overflow-x: hidden; }
  .directory-table { min-width: 0; width: 100%; table-layout: fixed; }
  .directory-table th, .directory-table td { padding: 8px 6px; font-size: 12px; word-break: break-word; }
  .sampling-table .col-scope { display: none; }
  .judicial-table .col-city, .judicial-table .col-intro { display: none; }
  #samplingTableWrap tbody tr, #judicialTableWrap tbody tr { display: none; }
  #samplingTableWrap tbody tr:nth-child(-n+5), #judicialTableWrap tbody tr:nth-child(-n+5) { display: table-row; }
  #samplingTableWrap.expanded tbody tr, #judicialTableWrap.expanded tbody tr { display: table-row; }

  .price-table-wrap { border: 0; }
  .price-table { display: block; min-width: 0; width: 100%; }
  .price-table thead { display: none; }
  .price-table tbody { display: block; }
  .price-table tr { display: block; border: 1px solid var(--line); margin-bottom: 10px; background: #fff; }
  .price-table td { display: flex; justify-content: space-between; gap: 12px; border: 0; border-bottom: 1px dashed var(--line); padding: 9px 12px; text-align: left; }
  .price-table td:last-child { border-bottom: 0; }
  .price-table td::before { content: attr(data-label); color: var(--text-muted); font-weight: 700; }
  .price-value { font-size: 16px; }

  .flow-steps { flex-direction: column; gap: 10px; }
  .flow-step { width: 100%; text-align: left; padding: 12px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .flow-step-icon { font-size: 22px; }
  .flow-step-title { margin: 0; font-size: 16px; }
  .flow-step-summary { margin: 0; font-size: 13px; color: var(--text-muted); }
  .flow-step-detail { position: static; display: none; width: 100%; margin-top: 6px; border: 0; padding: 0; box-shadow: none; }
  .flow-step.active .flow-step-detail, .flow-step:hover .flow-step-detail { display: block; }
  .flow-arrow { display: none; }
  .expert-grid { grid-template-columns: 1fr; }
}

/* 城市筛选 */
.city-filter { position: relative; display: inline-flex; }
.city-filter-trigger { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; padding: 8px 12px; border-radius: 3px; cursor: pointer; color: var(--text-secondary); font-size: 14px; }
.cf-icon { font-size: 14px; line-height: 1; }
.cf-current { white-space: nowrap; }
.cf-arrow { font-size: 10px; color: var(--text-muted); }
.city-filter-panel { display: none; position: absolute; top: 100%; left: 0; z-index: 60; width: 260px; margin-top: 6px; padding: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.city-filter:hover .city-filter-panel, .city-filter.open .city-filter-panel { display: block; }
.cf-panel-title { font-weight: 700; color: var(--text-strong); margin-bottom: 8px; }
.cf-hot { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-hot a { color: var(--text-secondary); border: 1px solid var(--line); padding: 3px 10px; border-radius: 3px; font-size: 13px; }
.cf-hot a:hover { color: var(--brand); border-color: var(--brand); }
.cf-more { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--brand); text-align: center; }

.mobile-back-btn { display: none; }
@media (max-width: 640px) {
  .inner-page .city-filter { display: none; }
  .is-home .city-filter { display: inline-flex; }
  .inner-page .mobile-back-btn { display: inline-flex; align-items: center; gap: 2px; border: 0; background: none; color: var(--text-secondary); font-size: 14px; padding: 4px 0; cursor: pointer; }
  .is-home .mobile-back-btn { display: none; }
  .back-arrow { font-size: 22px; line-height: 1; }
}

/* 品牌标题超长隐藏 */
.brand { min-width: 0; }
.brand-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 菜单按钮移到头部 */
.mobile-menu-btn { line-height: 1; align-self: center; }

/* 序号、城市列居中 */
.directory-table .col-no, .directory-table .col-city { text-align: center; }

/* 移动端表格：查看全部按钮 */
.directory-all.mobile-all { display: none; }

@media (max-width: 970px) {
  .header-contact { display: none; }
}
@media (max-width: 640px) {
  .directory-toggle.desktop-toggle { display: none; }
  .directory-all.mobile-all { display: inline-block; }
  .directory-tip { display: none; }
  .table-more { display: none; }

  .expert-grid { grid-template-columns: 1fr; }
  .expert-card { display: flex; flex-direction: row; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; }
  .expert-avatar { width: 52px; height: 52px; margin: 0; flex-shrink: 0; }
  .expert-name { margin: 0; }
  .expert-hospital, .expert-specialty { margin: 2px 0 0; }
  .expert-card .btn-outline { margin-left: auto; flex-shrink: 0; }
}

@media (max-width: 640px) {
  .site-header { position: sticky; top: 0; z-index: 100; background: #fff; }
  .search-box { display: none; }
  .brand img { max-height: 34px; }
  .brand-text { font-size: 16px; }

  .sampling-table .col-no { width: 36px; }
  .sampling-table .col-city { width: 56px; }
  .judicial-table .col-no { width: 36px; }

  .expert-card .btn-outline { display: none; }
}

/* 移动端科普 tab 切换 */
.science-tabs { display: none; }
@media (max-width: 640px) {
  .science-tabs { display: flex; gap: 8px; margin-top: 14px; }
  .science-tab { flex: 1; padding: 8px 0; border: 1px solid var(--line); background: #fff; color: var(--text-secondary); border-radius: 3px; cursor: pointer; font-size: 14px; }
  .science-tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }
  .science-columns { display: block; }
  .science-col { display: none; }
  .science-col.active { display: block; }
  .science-col .section-head { display: none; }

  .inner-page .brand { justify-content: center; }
}

@media (max-width: 640px) {
  .banner-text {
    top: 50%; right: auto; bottom: auto; left: 50%;
    transform: translate(-50%, -50%);
    max-width: 92%; width: 92%;
    text-align: center; padding: 14px 16px;
  }
  .banner-text h2 { font-size: 17px; line-height: 1.4; }
  .banner-text p { font-size: 13px; margin-top: 6px; }
}


/* 榜单/列表：条目标题下补描述，超长两行截断，容器固定高度内部滚动 */
.rank-desc,.rank-list .d{
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  font-size:13px;line-height:1.45;color:#6b7280;margin-top:3px;
}

.science-rank .rank-list{max-height:434px;overflow-y:auto;padding-right:4px}
/* 热门问答：不自动滚动，高度放开，完整显示前十条 */
.hot-qa ul{max-height:none;overflow:visible;padding-right:4px}

/* 榜单滚动条：改细、改浅色，美化 */
.rank-list,.hero-news ul,.side-news,.hot-qa ul,.index-list-right ul,.rank-box .rank-list{scrollbar-width:thin;scrollbar-color:#dbe1e8 transparent}
.rank-list::-webkit-scrollbar,.hero-news ul::-webkit-scrollbar,.side-news::-webkit-scrollbar,.hot-qa ul::-webkit-scrollbar,.index-list-right ul::-webkit-scrollbar,.rank-box .rank-list::-webkit-scrollbar{width:6px;height:6px}
.rank-list::-webkit-scrollbar-track,.hero-news ul::-webkit-scrollbar-track,.side-news::-webkit-scrollbar-track,.hot-qa ul::-webkit-scrollbar-track,.index-list-right ul::-webkit-scrollbar-track,.rank-box .rank-list::-webkit-scrollbar-track{background:transparent}
.rank-list::-webkit-scrollbar-thumb,.hero-news ul::-webkit-scrollbar-thumb,.side-news::-webkit-scrollbar-thumb,.hot-qa ul::-webkit-scrollbar-thumb,.index-list-right ul::-webkit-scrollbar-thumb,.rank-box .rank-list::-webkit-scrollbar-thumb{background:#dbe1e8;border-radius:3px}
.rank-list::-webkit-scrollbar-thumb:hover,.hero-news ul::-webkit-scrollbar-thumb:hover,.side-news::-webkit-scrollbar-thumb:hover,.hot-qa ul::-webkit-scrollbar-thumb:hover,.index-list-right ul::-webkit-scrollbar-thumb:hover,.rank-box .rank-list::-webkit-scrollbar-thumb:hover{background:#c6cfd9}

/* 头部与主导航固定置顶 */
.site-header{position:sticky;top:0;z-index:100;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.06)}

.page-crumb{display:flex;align-items:center;gap:8px;font-size:13px;color:#999;margin:14px 0 6px}
.page-crumb a{color:#666;text-decoration:none}
.page-crumb a:hover{color:var(--brand,#d6425f)}

/* 列表页右侧推荐 */
.with-side{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}
.side-col{display:flex;flex-direction:column;gap:16px}
.side-box{background:#fff;border:1px solid var(--line,#eee);border-radius:8px;padding:14px}
.side-box h3{font-size:16px;margin:0 0 10px}
.side-item{display:flex;gap:10px;padding:8px 0;border-bottom:1px solid #f0f0f0;align-items:flex-start}
.side-item:last-child{border-bottom:0}
.side-item img{width:64px;height:48px;border-radius:4px;object-fit:cover;flex:0 0 64px;background:#f2f2f2}
.side-item-txt{min-width:0}
.side-item strong{display:block;font-size:14px;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.side-item em{display:block;font-style:normal;font-size:12px;color:#d6425f;margin:1px 0}
.side-item span{font-size:12px;color:#999;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
@media (max-width:900px){ .with-side{grid-template-columns:minmax(0,1fr)} .side-col{display:none} }

/* 列表页右侧推荐容器与详情页主体 */
.with-side .main-col{min-width:0}
.detail-page .with-side article{max-width:none;margin:0}
.side-item-noimg .side-item-txt{width:100%}
@media (min-width:971px){
  .with-side .list-grid{grid-template-columns:repeat(2,1fr)}
}

/* 底部推荐阅读卡片：标题+标签+描述+缩略图 */
.related-card{display:flex;flex-direction:column}
.related-card img{width:100%;height:120px;object-fit:cover;background:#f2f2f2}
.related-card-body{padding:10px 12px;flex:1}
.related-card h3{margin:0 0 6px;padding:0;font-size:14px;color:var(--text-strong);line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.related-tag{display:inline-block;font-size:12px;color:var(--brand,#d6425f);background:rgba(214,66,95,.08);padding:1px 8px;border-radius:2px;margin-bottom:6px}
.related-desc{margin:0;font-size:12px;color:#6b7280;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.related-grid-list{grid-template-columns:repeat(2,1fr)}
@media (min-width:971px){
  .with-side .related-grid{grid-template-columns:repeat(3,1fr)}
  .with-side .related-grid-list{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:640px){
  .related-grid-list{grid-template-columns:1fr}
}

/* 详情页文章下方标签 + 热门标签 */
.detail-tags-wrap{margin-top:24px;padding-top:16px;border-top:1px dashed var(--line,#eee)}
.dt-line{display:flex;align-items:flex-start;gap:8px;margin-bottom:10px}
.dt-line:last-child{margin-bottom:0}
.dt-label{flex:0 0 auto;font-size:13px;color:#666;line-height:26px}
.dt-items{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.dt-tag{display:inline-block;padding:3px 12px;border:1px solid var(--line,#e2e5ea);border-radius:3px;font-size:13px;color:#555;text-decoration:none;line-height:18px}
.dt-tag:hover{border-color:var(--brand,#d6425f);color:var(--brand,#d6425f)}
.dt-tag.dt-hot{background:#fff5f6;border-color:#f5d0d6;color:#c8455c}

/* ===== 常见问答详情：回答者 / 优质回答 / 列表式相关推荐 ===== */
.answerer-row { display:flex; align-items:center; gap:10px; margin:14px 0 6px; padding:10px 0; border-bottom:1px dashed var(--line); }
.answerer-avatar { width:44px; height:44px; border-radius:50%; flex:0 0 44px; display:block; }
.answerer-meta { display:flex; flex-direction:column; gap:2px; }
.answerer-name { color:var(--text-strong); font-size:14px; }
.answerer-date { color:var(--text-muted); font-size:12px; }
.answer-label { font-weight:700; color:var(--brand); margin-bottom:8px; font-size:15px; }
.qa-list { margin-top:12px; }
.qa-list-item { display:block; padding:12px 0; border-bottom:1px dashed var(--line); color:var(--text-main); }
.qa-list-item:hover { color:var(--brand); }
.qa-list-q { font-weight:600; color:var(--text-strong); line-height:1.6; }
.qa-list-a { margin-top:4px; color:var(--text-secondary); font-size:13px; line-height:1.7; }
.qa-list-a-label { color:var(--text-muted); }

/* ===== 鉴定项目详情：价格/采样/周期 醒目小卡片 ===== */
.service-facts { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:12px; margin:18px 0 20px; }
.fact-card { background:#fff; border:1px solid var(--line); border-left:3px solid var(--brand); border-radius:4px; padding:14px 16px; display:flex; flex-direction:column; gap:6px; }
.fact-label { color:var(--text-muted); font-size:12px; }
.fact-value { color:var(--brand); font-size:20px; font-weight:700; line-height:1.3; word-break:break-word; }
@media (max-width:640px) { .service-facts { grid-template-columns:1fr 1fr; } .fact-value { font-size:17px; } }

/* ===== 栏目分组 tabs（后台栏目，默认「全部」） ===== */
.cat-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.cat-tabs a{padding:7px 16px;border-radius:6px;border:1px solid var(--brand);color:var(--brand);font-size:14px;text-decoration:none;background:#fff}
.cat-tabs a.on,.cat-tabs a.active,.cat-tabs a:hover{background:var(--brand);color:#fff;border-color:var(--brand)}

/* ===== 移动端防横向拖动 / 固定栏与悬浮按钮兜底（2026-10-21） ===== */
@media (max-width: 640px) {
  html, body { max-width: 100%; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
  img, video, iframe, table, pre { max-width: 100%; }
  .container, .wrap, .page-wrapper, .section, main, .main-col, .with-side, [class*="layout"] { min-width: 0; }
  [class*="layout"] > * { min-width: 0; }
  .question-line, .answer-line, .faq-item__q, .faq-item__a, .article-card-body, td, th { overflow-wrap: anywhere; word-break: break-word; }
}

/* 列表为空时保持页面骨架：<main> 是 flex 子项且 margin:0 auto，空内容会收缩成 fit-content，必须拉满宽度 */
.page-wrapper > main, main.page-container, main.container { width: 100%; }
.with-side { width: 100%; }
.with-side > .main-col { width: 100%; }

/* 标签列表页 */
.tag-list { display: flex; flex-direction: column; gap: 14px; }
.tag-list-item { background: #fff; border: 1px solid #eef0f5; border-radius: 10px; padding: 16px 18px; }
.tag-list-title { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.tag-list-title a { color: #1a56db; text-decoration: none; }
.tag-list-title a:hover { text-decoration: underline; }
.tag-list-content { margin: 0; color: #5c6470; line-height: 1.7; }
.tag-page .empty { color: #98a1ad; text-align: center; padding: 40px 0; }

.tag-list-type { display: inline-block; margin-left: 8px; font-size: 12px; color: #6b7280; background: #f1f5f9; border-radius: 4px; padding: 1px 6px; vertical-align: middle; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud-item { display: inline-block; padding: 8px 14px; border: 1px solid #e5eaf2; border-radius: 999px; color: #1a56db; text-decoration: none; font-size: 14px; }
.tag-cloud-item:hover { background: #f3f7ff; border-color: #c7d7f5; }

.tag-summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; margin: 4px 0 0; color: var(--text-muted); line-height: 1.6; }

/* 常见问答列表缩略图（/questions）：左图右文，图 160×112；没有图片时卡片保持原来的纯文字版（不会出现空框/破图） */
.question-list .question-item.has-thumb { display: flex; gap: 14px; align-items: flex-start; }
.question-thumb { flex: 0 0 160px; width: 160px; height: 112px; border-radius: 4px; overflow: hidden; background: var(--line-soft); display: block; }
.question-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.question-list .question-item.has-thumb:hover .question-thumb img { transform: scale(1.04); }
.question-body { flex: 1 1 auto; min-width: 0; }
@media (max-width: 760px) { .question-thumb { flex: 0 0 112px; width: 112px; height: 84px; } }
@media (max-width: 420px) { .question-thumb { flex: 0 0 92px; width: 92px; height: 70px; } }

/* ===== 亲子鉴定文章表格（jd-* class）===== */
.jd-count{font-size:13px;color:#888;margin:0 0 8px;line-height:1.6}
.jd-decl{font-size:13px;color:#888;margin:8px 0 0;line-height:1.6}
.jd-table{width:100%;margin:16px 0}
.jd-table table{width:100%;border-collapse:collapse;border:1px solid #ddd;font-size:14px;table-layout:fixed}
.jd-table th{background-color:#f5f5f5;border:1px solid #ddd;padding:10px 8px;text-align:center;font-weight:bold;vertical-align:middle}
.jd-table td{border:1px solid #ddd;padding:10px 8px;text-align:left;vertical-align:middle !important;word-break:break-word;white-space:normal;line-height:1.7}
.jd-table.jd-dir3 col:nth-child(1){width:7%}
.jd-table.jd-dir3 col:nth-child(2){width:52%}
.jd-table.jd-dir3 col:nth-child(3){width:41%}
.jd-table.jd-dir3 td:nth-child(1){text-align:center}
.jd-table.jd-dir4 col:nth-child(1){width:7%}
.jd-table.jd-dir4 col:nth-child(2){width:32%}
.jd-table.jd-dir4 col:nth-child(3){width:36%}
.jd-table.jd-dir4 col:nth-child(4){width:25%}
.jd-table.jd-dir4 td:nth-child(1){text-align:center}
.jd-table.jd-four col:nth-child(1){width:12%}
.jd-table.jd-four col:nth-child(2){width:29%}
.jd-table.jd-four col:nth-child(3){width:29%}
.jd-table.jd-four col:nth-child(4){width:30%}
.jd-table.jd-four td:nth-child(1){text-align:center}
@media (max-width:768px){
  .jd-table table{font-size:13px}
  .jd-table th,.jd-table td{padding:8px 6px}
  .jd-count,.jd-decl{font-size:12px}
}
