:root {
  --ref-primary: #1e6bb8;
  --ref-primary-dark: #0d3f6b;
  --ref-primary-light: #f0f7ff;
  --ref-navy: #1a3a6e;
  --ref-blue-mid: #2d8fd9;
  --ref-blue-soft: #e6f0ff;
  --ref-gold: #d4af37;
  --ref-gold-soft: #e6c23f;
  --ref-text: #1f2d3d;
  --ref-muted: #5c6c7f;
  --ref-bg: #f7fafc;
  --ref-card: #fff;
  --ref-border: #e1e8ef;
}

.reference-home {
  color: var(--ref-text);
  background: var(--ref-bg);
  font-family: "Segoe UI", Arial, "Noto Sans", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}
.reference-home *, .reference-home *::before, .reference-home *::after { box-sizing: border-box; }
.reference-home h1,
.reference-home h2,
.reference-home h3 { color: inherit; font-family: inherit; letter-spacing: 0; }
.reference-home a { text-decoration: none; }
.ref-container { width: min(1360px, calc(100% - 64px)); margin: 0 auto; }

.ref-carousel {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  background: #eaf3fb;
  color: var(--ref-navy);
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.ref-carousel.is-dragging, .ref-carousel.is-dragging * { cursor: grabbing; }
.ref-carousel-slides { min-height: inherit; }
.ref-carousel-slide { position: absolute; inset: 0; z-index: 0; min-height: inherit; visibility: hidden; opacity: 0; transition: opacity .65s ease, visibility .65s ease; }
.ref-carousel-slide.is-active { z-index: 1; visibility: visible; opacity: 1; }
.ref-carousel-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.ref-carousel-shade { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(242,248,253,.99) 0%,rgba(242,248,253,.93) 35%,rgba(242,248,253,.28) 61%,rgba(13,63,107,.08) 100%); }
.ref-carousel-content { position: relative; z-index: 2; display: flex; min-height: 540px; align-items: flex-start; justify-content: center; flex-direction: column; padding-top: 52px; padding-bottom: 82px; }
.ref-carousel-content > * { max-width: 590px; }
.ref-eyebrow { margin: 0 0 6px; color: var(--ref-primary); font-size: 12px; font-weight: 700; letter-spacing: 3px; text-align: center; text-transform: uppercase; }
.ref-eyebrow--hero { margin-bottom: 12px; color: var(--ref-primary); font-size: 12px; font-weight: 800; text-align: left; }
.reference-home .ref-carousel h1,
.reference-home .ref-carousel h2 { margin: 0 0 16px; color: var(--ref-navy); font-size: clamp(34px,4.2vw,58px); font-weight: 760; line-height: 1.12; letter-spacing: -.04em; }
/* 长标题（英文等）在桌面端也按长度整体缩放并强制单行，避免换行成多行 */
.reference-home .ref-carousel .ref-carousel-title--long { font-size: clamp(30px,3.4vw,44px); white-space: nowrap; }
.reference-home .ref-carousel .ref-carousel-title--very-long { font-size: clamp(25px,2.9vw,34px); white-space: nowrap; }
.reference-home .ref-carousel .ref-carousel-title--xlong { font-size: clamp(21px,2.5vw,28px); white-space: nowrap; }
.ref-carousel-description { margin: 0 0 26px; color: #465b70; font-size: 16px; line-height: 1.8; }
.ref-carousel-metric { display: flex; align-items: baseline; gap: 12px; margin: 0 0 2px; color: var(--ref-primary); }
.ref-carousel-metric strong { font-size: clamp(46px,6vw,78px); font-weight: 820; line-height: 1; letter-spacing: -.055em; }
.ref-carousel-metric span { color: var(--ref-primary-dark); font-size: 16px; font-weight: 750; }
html:lang(en) .reference-home .ref-carousel-metric { align-items: flex-end; flex-wrap: wrap; column-gap: 14px; row-gap: 4px; margin-bottom: 16px; }
html:lang(en) .reference-home .ref-carousel-metric strong { font-size: clamp(42px,4vw,58px); line-height: 1.12; letter-spacing: -.03em; white-space: nowrap; }
html:lang(en) .reference-home .ref-carousel-metric span { padding-bottom: 7px; line-height: 1.45; }
.ref-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ref-button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 12px 30px; border: 1px solid transparent; border-radius: 6px; font-size: 16px; font-weight: 700; }
.ref-button--gold { background: linear-gradient(135deg, var(--ref-gold), var(--ref-gold-soft)); color: var(--ref-text); }
.ref-button--gold:hover { box-shadow: 0 6px 16px rgba(212,175,55,.35); }
.ref-button--outline { border-color: rgba(13,63,107,.55); background: rgba(255,255,255,.48); color: var(--ref-primary-dark); backdrop-filter: blur(8px); }
.ref-button--outline:hover { border-color: var(--ref-primary); background: rgba(255,255,255,.82); }
.ref-carousel-controls { position: absolute; right: max(16px,calc((100% - 1360px)/2)); bottom: 30px; z-index: 4; display: flex; align-items: center; gap: 13px; padding: 6px 8px; border: 1px solid rgba(255,255,255,.72); border-radius: 999px; background: rgba(255,255,255,.88); box-shadow: 0 4px 18px rgba(7,32,57,.2); backdrop-filter: blur(10px); }
.ref-carousel-dots { display: flex; align-items: center; gap: 7px; }
.ref-carousel-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 10px; background: rgba(13,63,107,.3); transition: width .2s ease, background .2s ease; }
.ref-carousel-dots button.is-active { width: 25px; background: var(--ref-primary); }
.ref-carousel-count { min-width: 50px; color: var(--ref-primary-dark); font-size: 12px; font-weight: 800; letter-spacing: .08em; }

.home-unused-consultations { position: relative; z-index: 3; padding: 18px 0; border-bottom: 1px solid #cfe2e3; background: linear-gradient(110deg,#e9f7f4 0%,#f5fbfd 58%,#eef5fb 100%); }
.home-unused-consultations[hidden] { display: none; }
.home-unused-consultations-inner { position: relative; display: grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:20px; padding-right:42px; }
.home-unused-consultations-mark { display:grid; width:68px; height:68px; place-content:center; border:1px solid #83bdb4; border-radius:12px; background:#fff; box-shadow:inset 4px 0 #20a486; text-align:center; }
.home-unused-consultations-mark strong { color:#0d5d50; font-size:28px; line-height:1; }
.home-unused-consultations-mark span { margin-top:5px; color:#5a7b78; font:800 9px/1 ui-monospace,monospace; letter-spacing:.16em; }
.home-unused-consultations-copy>span { color:#167a69; font-size:10px; font-weight:850; letter-spacing:.14em; text-transform:uppercase; }
.reference-home .home-unused-consultations-copy h2 { margin:3px 0 2px; color:#163f50; font-size:20px; line-height:1.3; }
.home-unused-consultations-copy p { margin:0; color:#607681; font-size:13px; }
.home-unused-consultations-action { display:inline-flex; min-height:44px; align-items:center; justify-content:center; padding:0 20px; border-radius:7px; background:#0d5d50; color:#fff; font-size:14px; font-weight:800; white-space:nowrap; }
.home-unused-consultations-action:hover { background:#084a40; color:#fff; }
.home-unused-consultations-dismiss { position:absolute; top:50%; right:0; width:32px; height:32px; padding:0; border:0; border-radius:50%; background:transparent; color:#6d8088; font-size:23px; line-height:1; transform:translateY(-50%); }
.home-unused-consultations-dismiss:hover { background:rgba(13,93,80,.08); color:#0d5d50; }
.home-unused-consultations-action:focus-visible,.home-unused-consultations-dismiss:focus-visible { outline:3px solid rgba(13,93,80,.25); outline-offset:3px; }

/* The one retained module from the previous homepage. */
.home2-section { padding: 58px 0; }
.home2-resources { background: #fff; }
.home2-section-heading { margin-bottom: 25px; }
.home2-section-heading > span { display: block; color: #0f63c7; font-size: .69rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.home2-section-heading h2 { margin: 8px 0 0; color: #0d2b55; font-size: clamp(1.65rem,2.7vw,2.55rem); line-height: 1.15; letter-spacing: -.035em; }
.home2-section-heading--center { text-align: center; }
.home2-resource-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.home2-resource-column { overflow: hidden; border: 1px solid #dce4ee; border-radius: 10px; background: #fff; }
.home2-resource-column--disease { background: #fffafa; }
.home2-resource-column--department { background: #f9fbff; }
.home2-resource-column--hospital { background: #f8fcfa; }
.home2-resource-head { padding: 20px 22px 16px; }
.home2-resource-head > span { color: #f1272f; font-size: .62rem; font-weight: 900; letter-spacing: .12em; }
.home2-resource-column--department .home2-resource-head > span { color: #0f63c7; }
.home2-resource-column--hospital .home2-resource-head > span { color: #0a8f73; }
.home2-resource-head h3 { margin: 5px 0 0; color: #0d2b55; font-size: 1.15rem; }
.home2-resource-column ul { margin: 0; padding: 0 22px; list-style: none; }
.home2-resource-column li { border-top: 1px solid #e7ebf0; }
.home2-resource-column li > a { display: flex; min-height: 50px; align-items: center; justify-content: space-between; gap: 18px; color: #0d2b55; font-size: .78rem; }
.home2-resource-column li > a:hover { color: #0f63c7; }
.home2-resource-column li > a strong { font-weight: 650; }
.home2-resource-column li > a span { color: #8a96a6; font-size: .68rem; text-align: right; }
.home2-resource-more { display: block; margin-top: 8px; padding: 15px 22px; border-top: 1px solid #dce4ee; color: #083f91; font-size: .75rem; font-weight: 800; text-align: center; }
.home2-resource-empty { display: block; padding: 18px 0; color: #66758a; font-size: .75rem; }

.ref-section { padding: 56px 0; background: var(--ref-bg); }
.ref-section--alt { background: var(--ref-primary-light); }
.ref-section-head { margin-bottom: 28px; text-align: center; }
.ref-section-head h2 { margin: 0; color: var(--ref-text); font-size: 28px; font-weight: 750; line-height: 1.3; text-align: center; }
.ref-section-note { margin: 8px 0 0; color: var(--ref-muted); font-size: 14px; text-align: center; }

.ref-pain-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; margin-top: 30px; }
.ref-pain-card { padding: 26px 22px; border: 1px solid var(--ref-border); border-radius: 14px; background: var(--ref-card); transition: box-shadow .2s ease; }
.ref-pain-card:hover { box-shadow: 0 8px 24px rgba(26,58,110,.1); }
.ref-pain-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.ref-pain-head > span { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 50%; background: var(--ref-primary); color: #fff; font-size: 16px; font-weight: 700; }
.ref-pain-card h3 { margin: 0; font-size: 18px; }
.ref-pain-card > p { margin: 0 0 14px; color: var(--ref-muted); font-size: 14px; }
.ref-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ref-chips span { padding: 4px 10px; border-radius: 20px; background: var(--ref-blue-soft); color: var(--ref-primary-dark); font-size: 12px; }

.ref-advantage-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; margin-top: 28px; }
/* Matches the service-process cards: white surface, hairline border, dark text.
   The previous dark gradients sat too close to the blue icon bitmaps and made
   the copy hard to read. Icons are opaque blue squares, so they are clipped
   into a circle badge instead of being recoloured. */
.ref-advantage-card { min-height: 200px; padding: 26px 22px; border: 1px solid var(--ref-border); border-radius: 12px; background: #fff; color: var(--ref-text); text-align: center; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.ref-advantage-card:hover { transform: translateY(-3px); border-color: #bad1e6; box-shadow: 0 8px 22px rgba(26,58,110,.1); }
.ref-advantage-card img { display: block; width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(30,107,184,.14); object-fit: cover; }
.reference-home .ref-advantage-card h3 { margin: 0 0 8px; color: var(--ref-text); font-size: 17px; }
.ref-advantage-card p { margin: 0; color: var(--ref-muted); font-size: 14px; }

.ref-process-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin: 28px 0 0; padding: 0; list-style: none; }
.ref-process-grid li { min-height: 150px; padding: 22px; border: 1px solid var(--ref-border); border-radius: 10px; background: #fff; text-align: center; }
.ref-process-grid li > span { display: grid; width: 40px; height: 40px; margin: 0 auto 12px; place-items: center; border-radius: 50%; background: var(--ref-primary-light); color: var(--ref-primary); font-size: 18px; font-weight: 700; }
.ref-process-grid h3 { margin: 0 0 8px; font-size: 16px; }
.ref-process-grid p { margin: 0; color: var(--ref-muted); font-size: 13px; }

.ref-city-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.ref-city-grid > section > h3 { margin: 0 0 12px; color: var(--ref-primary); font-size: 18px; }
.ref-hospital-card { position: relative; display: block; margin-bottom: 12px; padding: 16px; border: 1px solid var(--ref-border); border-radius: 10px; background: #fff; color: var(--ref-text); }
.ref-hospital-card:hover { border-color: #bad1e6; box-shadow: 0 6px 18px rgba(26,58,110,.08); }
.ref-hospital-card > span { position: absolute; top: 14px; right: 14px; padding: 2px 8px; border-radius: 4px; background: var(--ref-primary-light); color: var(--ref-primary); font-size: 12px; }
.ref-hospital-card strong { display: block; padding-right: 52px; font-size: 15px; }
.ref-hospital-card p { margin: 6px 0 0; color: var(--ref-muted); font-size: 13px; }
.ref-hospital-card--coming-soon { min-height: 96px; border-style: dashed; background: var(--ref-primary-light); text-align: center; }
.ref-hospital-card--coming-soon strong { padding-right: 0; color: var(--ref-primary); font-size: 17px; }

/* 城市数为奇数时，末位城市块跨满整行，块内医院卡横向铺开，避免 2 列网格末位留空 */
.ref-city-grid > section:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 12px 24px; align-content: start; }
.ref-city-grid > section:last-child:nth-child(odd) > h3 { grid-column: 1 / -1; margin-bottom: 0; }
.ref-city-grid > section:last-child:nth-child(odd) > .ref-hospital-card { margin-bottom: 0; }

.ref-partner-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-top: 28px; }
.ref-partner-card { min-height: 142px; padding: 26px 20px; border-radius: 14px; color: #fff; text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.ref-partner-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(26,58,110,.22); }
.ref-partner-card--one { background: linear-gradient(135deg,#1a3a6e,#1e6bb8); }
.ref-partner-card--two { background: linear-gradient(135deg,#1a6fb5,#3b8fd4); }
.ref-partner-card--three { background: linear-gradient(135deg,var(--ref-gold),var(--ref-gold-soft)); color: var(--ref-text); }
.ref-partner-card img { display: block; width: 56px; height: 52px; margin: 0 auto 8px; object-fit: cover; }
.reference-home .ref-partner-card h3 { margin: 0; color: inherit; font-size: 16px; }

.ref-cta { padding: 64px 0; background: linear-gradient(135deg,#1a3a6e,#2d8fd9); color: #fff; text-align: center; }
.reference-home .ref-cta h2 { margin: 0 0 10px; color: #fff; font-size: 28px; }
.ref-cta p { margin: 0 0 26px; color: #fff; font-size: 15px; opacity: .92; }

/* 页脚已提升为全站统一组件 .ref-footer，样式见 app.css */

@media (max-width: 900px) {
  .home2-resource-grid { grid-template-columns: 1fr 1fr; }
  .home2-resource-column--hospital { grid-column: 1 / -1; }
  .ref-advantage-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 720px) {
  .ref-container { width: calc(100% - 32px); }
  .home-unused-consultations { padding:14px 0; }
  .home-unused-consultations-inner { grid-template-columns:56px minmax(0,1fr); gap:12px; padding-right:32px; }
  .home-unused-consultations-mark { width:56px; height:56px; }
  .home-unused-consultations-mark strong { font-size:23px; }
  .reference-home .home-unused-consultations-copy h2 { font-size:16px; }
  .home-unused-consultations-copy p { font-size:12px; line-height:1.5; }
  .home-unused-consultations-action { grid-column:1/-1; width:100%; min-height:42px; }
  .home-unused-consultations-dismiss { top:0; transform:none; }
  .ref-carousel,
  .ref-carousel-content { min-height: 570px; }
  /* 移动端整图展示：不再裁切（原先 cover + 61% 偏移只露出图片的一部分）。
     contain 会把整张图缩放并居中，居中时正好压在底部文字块上，所以改为顶部对齐；
     若上传了与首屏同比例的移动端竖版图（如 750×1140），contain 会正好铺满首屏。 */
  .ref-carousel-image { object-fit: contain; object-position: center top; }
  /* 纵向遮罩：顶部几乎透明让整图可见，往下渐浓保证底部文字可读。
     原先的横向遮罩左半边是 95%~99% 不透明，会把图片左半边整片盖掉。 */
  .ref-carousel-shade { background: linear-gradient(180deg,rgba(242,248,253,0) 0%,rgba(242,248,253,.06) 26%,rgba(242,248,253,.74) 41%,rgba(242,248,253,.96) 53%,rgba(242,248,253,.99) 72%,rgba(242,248,253,.99) 100%); }
  .ref-carousel-content { justify-content: flex-end; padding-top: 42px; padding-bottom: 104px; }
  .ref-carousel-content > * { max-width: 100%; }
  body.public-site main .reference-home .ref-carousel .ref-carousel-title { width: 100%; overflow: visible; font-size: clamp(23px,6.7vw,27px) !important; line-height: 1.18 !important; letter-spacing: -.055em; white-space: nowrap; }
  body.public-site main .reference-home .ref-carousel .ref-carousel-title--medium { font-size: 22px !important; }
  body.public-site main .reference-home .ref-carousel .ref-carousel-title--long { font-size: 18px !important; }
  body.public-site main .reference-home .ref-carousel .ref-carousel-title--very-long { font-size: 16px !important; }
  body.public-site main .reference-home .ref-carousel .ref-carousel-title--xlong { font-size: 14px !important; }
  .ref-carousel-description { font-size: 14px; line-height: 1.65; }
  .ref-carousel-metric strong { font-size: 50px; }
  .ref-carousel-metric span { font-size: 14px; }
  html:lang(en) .reference-home .ref-carousel-metric { column-gap: 10px; row-gap: 2px; margin-bottom: 12px; }
  html:lang(en) .reference-home .ref-carousel-metric strong { font-size: clamp(26px,8vw,34px); line-height: 1.14; }
  html:lang(en) .reference-home .ref-carousel-metric span { padding-bottom: 5px; line-height: 1.5; }
  html:lang(en) .reference-home .ref-carousel,
  html:lang(en) .reference-home .ref-carousel-content { min-height: 620px; }
  .ref-button { min-height: 46px; padding: 10px 18px; font-size: 14px; }
  .ref-carousel-controls { right: 16px; bottom: 28px; }
  .ref-carousel-count { display: none; }
  .home2-section { padding: 42px 0; }
  .home2-resource-grid { grid-template-columns: 1fr; }
  .home2-resource-column--hospital { grid-column: auto; }
  .ref-section { padding: 36px 0; }
  .ref-section-head h2 { font-size: 22px; }
  .ref-advantage-grid,
  .ref-city-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  /* 痛点卡在手机上排 3 列时，每列内容宽只有 96px：中文 6 字标题、英文/蒙文标题
     和描述都会被裁掉大半（实测 5 张卡全部 CLIP）。改 2 列并把字号放大，
     描述保留 11 行摘要高度。 */
  .ref-pain-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .ref-partner-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .ref-process-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  /* 卡片纵向 flex：描述只占自身内容高度，标签紧随其后；同一行卡片等高时
     多出来的空间留在卡片底部，不会在「描述—标签」之间撑出大片留白。 */
  .ref-pain-card { display: flex; flex-direction: column; padding: 14px 12px; }
  /* 不再用固定高度装标题区：6 字标题折行时固定高度会把最后一个字裁掉。 */
  .ref-pain-head { align-items: flex-start; flex-direction: column; gap: 8px; min-height: 62px; height: auto; }
  .ref-pain-head > span { width: 34px; height: 34px; flex-basis: 34px; font-size: 13px; }
  /* 必须带 .reference-home 提高一级：public-foundation.css（晚于 home2.css 加载）
     的 `.public-site h3` 与 `.ref-pain-card h3` 同特异性，会把字号拉回 18px。 */
  /* 英文最长标题 "Lack of Rehabilitation Guidance" 在 174px 列宽下占 3 行，
     2 行会被截掉尾巴，所以放宽到 3 行。 */
  .reference-home .ref-pain-card h3 { display: -webkit-box; overflow: hidden; font-size: 14px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  /* 15 行上限保证蒙文/英文长描述不被裁掉；不再设 min-height，否则中文短描述
     会把「描述—标签」之间撑出两百多像素的空白。 */
  .ref-pain-card > p { display: -webkit-box; overflow: hidden; font-size: 12px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 15; }
  .ref-chips { gap: 5px; }
  .ref-chips span { padding: 3px 7px; font-size: 10px; }
  .ref-advantage-card { min-height: 190px; padding: 18px 10px; }
  .ref-advantage-card img { width: 46px; height: 46px; }
  .reference-home .ref-advantage-card h3 { font-size: 16px; }
  .ref-advantage-card p { font-size: 12px; line-height: 1.55; }
  .ref-process-grid li { min-height: 178px; padding: 14px 7px; }
  .ref-process-grid li > span { width: 32px; height: 32px; margin-bottom: 9px; font-size: 14px; }
  .ref-process-grid h3 { font-size: 13px; line-height: 1.4; }
  .ref-process-grid p { font-size: 10px; line-height: 1.5; }
  .ref-city-grid { gap: 12px; }
  .ref-city-grid > section { min-width: 0; }
  .ref-city-grid > section > h3 { min-height: 24px; margin-bottom: 10px; font-size: 16px; line-height: 24px; }
  .ref-hospital-card { height: 154px; margin-bottom: 10px; padding: 12px 10px; overflow: hidden; }
  .ref-hospital-card > span { position: static; display: inline-block; margin-bottom: 6px; padding: 1px 6px; font-size: 10px; }
  .ref-hospital-card strong { display: -webkit-box; height: 38px; padding-right: 0; overflow: hidden; font-size: 13px; line-height: 19px; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
  .ref-hospital-card p { display: -webkit-box; height: 50px; margin-top: 6px; overflow: hidden; font-size: 11px; line-height: 16.5px; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
  .ref-partner-card { min-height: 126px; padding: 15px 7px; }
  .ref-partner-card img { width: 42px; height: 40px; }
  .reference-home .ref-partner-card h3 { font-size: 12px; line-height: 1.4; }
  .ref-cta { padding: 44px 0; }
  .ref-cta h2 { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .ref-pain-card,
  .ref-advantage-card,
  .ref-partner-card,
  .ref-carousel-slide,
  .ref-carousel-dots button { transition: none; }
  .ref-advantage-card:hover,
  .ref-partner-card:hover { transform: none; }
}

/* 重点关注疾病：按分类做标签页切换。同一时刻只显示一组，避免纵向堆成一条长列表；
   无 JS 时退化为全部展开 + 页内锚点（template 里默认不 hidden 的部分仍可锚点跳转）。 */
.reference-home .ref-focus-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 8px; }
.reference-home .ref-focus-chips a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 18px;
  border: 1px solid var(--ref-border); border-radius: 999px; background: #fff;
  color: var(--ref-text); font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.reference-home .ref-focus-chips a:hover { border-color: var(--ref-primary); background: var(--ref-primary-light); color: var(--ref-primary-dark); }
.reference-home .ref-focus-chips a[aria-selected="true"] { border-color: var(--ref-primary); background: var(--ref-primary); color: #fff; }
.reference-home .ref-focus-chips a[aria-selected="true"]:hover { border-color: var(--ref-primary-dark); background: var(--ref-primary-dark); color: #fff; }
.reference-home .ref-focus-chips a:focus-visible { outline: 3px solid var(--ref-primary); outline-offset: 2px; }
.ref-focus-groups { display: grid; gap: 26px; margin-top: 22px; }
.ref-focus-group[hidden] { display: none; }
.ref-focus-group { scroll-margin-top: 90px; }
.ref-focus-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--ref-border); }
.reference-home .ref-focus-head h3 { margin: 0; padding-left: 11px; border-left: 4px solid var(--ref-primary); color: var(--ref-navy); font-size: 16px; font-weight: 500; }
.ref-focus-head p { margin: 0; color: var(--ref-muted); font-size: 13px; }
.ref-focus-list { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ref-focus-list li { min-width: 0; }
.ref-focus-list a {
  display: flex; align-items: center; min-height: 44px; padding: 10px 14px;
  border: 1px solid var(--ref-border); border-radius: 10px; background: #fff;
  color: var(--ref-text); font-size: 14px; text-decoration: none;
  overflow-wrap: anywhere;
  transition: transform .2s ease, border-color .2s ease;
}
.ref-focus-list a:hover { transform: translateY(-2px); border-color: var(--ref-primary); }
.ref-focus-list a:focus-visible { outline: 3px solid var(--ref-primary); outline-offset: 2px; }

@media (min-width: 576px) { .ref-focus-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
@media (min-width: 768px) { .ref-focus-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 992px) { .ref-focus-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .ref-focus-list { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; } }

/* 320px 小屏：chip 横向可滑动，两侧留内边距暗示可滑；隐藏滚动条，只保留手势 */
@media (max-width: 575px) {
  .reference-home .ref-focus-chips {
    flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
    padding: 0 16px 2px; margin-inline: -16px; scroll-snap-type: x mandatory;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .reference-home .ref-focus-chips::-webkit-scrollbar { display: none; }
  .reference-home .ref-focus-chips a { flex: 0 0 auto; scroll-snap-align: start; }
}

/* ---- 首页患者故事区块 ---- */
.ref-story-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-top: 30px; }
.ref-story-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--ref-border); border-radius: 14px; background: var(--ref-card); color: var(--ref-text); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.ref-story-card:hover { transform: translateY(-3px); border-color: #bad1e6; box-shadow: 0 10px 26px rgba(26,58,110,.12); }
.ref-story-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; }
.ref-story-body h3 { margin: 0; font-size: 17px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ref-story-body p { margin: 0; color: var(--ref-muted); font-size: 13px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ref-story-meta { margin-top: auto; color: var(--ref-muted); font-size: 12px; }
.ref-story-more { margin: 26px 0 0; text-align: center; }
@media (max-width: 900px) { .ref-story-grid { grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); } }

.ref-story-empty { margin-top: 30px; padding: 44px 24px; border: 1px dashed var(--ref-border); border-radius: 14px; background: var(--ref-card); text-align: center; }
.ref-story-empty-text { margin: 0 0 20px; color: var(--ref-muted); font-size: 15px; }
.ref-story-more a + a { margin-left: 14px; }
@media (max-width: 575px) { .ref-story-more a + a { margin-left: 0; margin-top: 12px; } .ref-story-more { display: flex; flex-direction: column; align-items: center; } }
