/* 康复服务组页面样式：services.html、category.html、disease.html、search.html、404.html
 * 共用组件（页头、栏目导航、正文、列表、预约引导条、便笺墙）在 site.css。
 */

/* ---------- 左栏：康复服务树 ---------- */
/* 大类全部展开；只高亮当前病种，大类不高亮 */
.svc-tree li.has-sub > a:not([aria-current]) { color: var(--ink); font-weight: 600; }
.svc-tree li.has-sub > a:not([aria-current])::before { background: var(--green); }
.svc-tree .sub { margin: 2px 0 6px; }

/* ---------- 本页目录（病种页） ---------- */
.toc { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 22px; }
.toc a { padding: 5px 14px; border: 1.5px solid var(--green-line); border-radius: 999px; font-size: 15px; background: #fff; }
.toc a:hover { border-color: var(--green); background: var(--green-tint); }

/* ---------- 总览：3 个大类 ---------- */
.chapters { padding-top: 56px; padding-bottom: 24px; }
.chapter { display: grid; grid-template-columns: 4fr 8fr; gap: 56px; padding: 40px 0 56px; }
.chapter + .chapter { border-top: 2px solid var(--ink); }
.chapter h2 { font-family: var(--kai); font-size: 36px; line-height: 1.3; }
.chapter .about { margin-top: 12px; color: var(--ink-2); font-size: 16px; max-width: 22em; }
.chapter .about + .link { display: inline-block; margin-top: 16px; }
.ill { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 24px; align-items: start; padding: 20px 0 22px; } /* 病种名和简介顶部对齐 */
.ill + .ill { border-top: 1px dashed var(--green-line); } /* 只画病种之间的线：最后一个下面紧接专家块的实线，不再重复 */
.ills .ill:first-child { padding-top: 0; } /* 第一个病种和左边大类标题顶部对齐 */
.ill h3 { font-family: var(--kai); font-size: 25px; line-height: 1.4; font-weight: 700; }
.ill p { font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.ill .link { display: inline-block; margin-top: 8px; font-size: 15px; }

/* ---------- 总览：在鹿童怎么做康复 ---------- */
.method { padding: 96px 0; background: var(--green-tint); }
.method-head { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.method h2 { font-family: var(--kai); font-size: 38px; line-height: 1.3; }
.method-head > div > p { margin-top: 16px; font-size: 17px; color: var(--ink-2); }
.method blockquote { padding: 4px 0 4px 26px; border-left: 3px solid var(--green); font-family: var(--kai); font-size: 21px; line-height: 1.85; }
.method blockquote footer { margin-top: 12px; font-family: var(--sans); font-size: 14px; color: var(--ink-2); }
.method-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 52px; align-items: start; }
.method-photos figure:nth-child(2) { margin-top: 40px; }
.method-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.method-photos figcaption { margin-top: 10px; font-family: var(--kai); font-size: 19px; }

/* ---------- 大类页：病种介绍 ---------- */
.cat-intro { max-width: 42em; padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--green-line); } /* 大类介绍（有原文的大类才有） */
.ill-block { padding: 6px 0 40px; }
.ill-block + .ill-block { padding-top: 36px; border-top: 1px dashed var(--green-line); }
.ill-block h2 { font-family: var(--kai); font-size: 32px; line-height: 1.35; }
.ill-block h2 a:hover { color: var(--orange-ink); }
.ill-block p { margin-top: 12px; max-width: 42em; font-size: 17px; line-height: 1.95; }
.ill-block .link { display: inline-block; margin-top: 16px; }
.cat-photo { max-width: 600px; margin-top: 8px; }
.cat-photo img { width: 100%; border-radius: 14px; }
.cat-photo figcaption { margin-top: 10px; font-family: var(--kai); font-size: 18px; color: var(--ink-2); }

/* 正文里的小节（大类页、病种页） */
.sec { margin-top: 72px; scroll-margin-top: 100px; }
.sec:first-child { margin-top: 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.sec-head h2 { font-family: var(--kai); font-size: 32px; line-height: 1.35; }
.sec-head p { margin-top: 4px; color: var(--ink-2); font-size: 15px; }
.sec .prose { max-width: 42em; }

/* ---------- 病种页：这些信号要留意 ---------- */
.signs { max-width: 42em; }
.signs li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 20px; align-items: baseline; padding: 15px 0; border-bottom: 1px dashed var(--green-line); }
.signs .age { font-family: var(--kai); font-size: 22px; line-height: 1.4; font-weight: 700; color: var(--green-ink); }
.signs .what { font-size: 17px; line-height: 1.7; }
.signs .what span + span::before { content: "；"; }
.signs-call {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px;
  max-width: 42em; margin-top: 24px; padding: 20px 24px; border-radius: 14px; background: var(--orange-tint);
}
.signs-call p { font-family: var(--kai); font-size: 21px; line-height: 1.5; font-weight: 700; }
.signs-note { max-width: 42em; margin-top: 14px; font-size: 13px; line-height: 1.8; color: var(--ink-2); }

/* ---------- 病种页：学科带头人 ---------- */
.lead-person { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 32px; align-items: start; max-width: 50em; }
.lead-person img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; background: #e8ece9; }
.lead-person h3 { font-family: var(--kai); font-size: 28px; line-height: 1.3; }
.lead-person .role { margin-top: 4px; font-weight: 600; color: var(--green-ink); }
.lead-person p.bio { margin-top: 12px; font-size: 16px; line-height: 1.9; color: var(--ink-2); }
.lead-person .link { display: inline-block; margin-top: 14px; }

.sec .wall { margin-top: 28px; }
.sec .note h3 { font-size: 23px; }
.sec .note.lead-note h3 { font-size: 28px; }
.sec .note.more h3 { font-size: 20px; }

/* ---------- 病种页：常见问题 ---------- */
.faq { max-width: 42em; }
.faq details { border-bottom: 1px solid var(--green-line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none;
  font-family: var(--kai); font-size: 21px; line-height: 1.45; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px;
  border-right: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq summary:hover { color: var(--orange-ink); }
.faq .answer { padding: 0 0 22px; font-size: 16px; line-height: 1.9; color: var(--ink-2); }
.faq .answer a { color: var(--orange-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 搜索 ---------- */
.search-big { display: flex; gap: 10px; max-width: 680px; margin-top: 20px; }
.search-big input {
  flex: 1; min-width: 0; height: 54px; padding: 0 22px;
  border: 1.5px solid #b9cfbf; border-radius: 999px; background: #fff; font-size: 18px;
}
.search-big input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(62, 142, 90, .2); }
.search-big .btn { height: 54px; padding: 0 32px; font-size: 17px; }

.search-body { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 72px; padding-top: 40px; padding-bottom: 96px; }
.result-count { font-size: 15px; color: var(--ink-2); margin-bottom: 8px; }
.result-count strong { color: var(--ink); }
.results > li + li { border-top: 1px solid var(--green-line); }
.results > li:last-child { border-bottom: 1px solid var(--green-line); }
.result { padding: 22px 0 24px; }
.result .where { font-size: 14px; color: var(--ink-2); }
.result .where time { margin-left: 12px; }
.result h2 { margin-top: 4px; font-size: 19px; line-height: 1.55; font-weight: 600; }
.result h2 a:hover { color: var(--orange-ink); }
.result p { margin-top: 6px; font-size: 15px; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
mark { padding: 0 2px; border-radius: 3px; background: #ffe7a3; color: inherit; }

.search-help { position: sticky; top: 100px; align-self: start; padding: 28px 28px 30px; border-radius: 18px; background: var(--green-tint); }
.search-help h2 { font-family: var(--kai); font-size: 26px; line-height: 1.35; }
.search-help p { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.word-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.word-chips a { padding: 5px 14px; border: 1.5px solid var(--green-line); border-radius: 999px; background: #fff; font-family: var(--kai); font-size: 17px; }
.word-chips a:hover { border-color: var(--green); }
.search-help .tel { display: block; margin-top: 22px; font-size: 24px; font-weight: 800; letter-spacing: .03em; color: var(--orange-ink); }

/* ---------- 404 ---------- */
.nf { padding-top: 80px; padding-bottom: 104px; }
.nf .tag { font-size: 15px; color: var(--green-ink); font-weight: 600; }
.nf h1 { margin-top: 8px; font-family: var(--kai); font-size: 60px; line-height: 1.2; font-weight: 700; letter-spacing: .02em; }
.nf .lead { margin-top: 16px; max-width: 30em; font-size: 18px; color: var(--ink-2); }
.nf .search-big { margin-top: 32px; }
.nf .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
.nf .actions .tel { font-weight: 700; font-size: 18px; letter-spacing: .02em; }
.nf .go { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--green-line); }
.nf .go h2 { font-family: var(--kai); font-size: 24px; }
.nf .go .word-chips a { font-size: 18px; padding: 7px 18px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .chapter { grid-template-columns: 1fr; gap: 20px; }
  .chapter .about { max-width: 40em; }
  .method-head { grid-template-columns: 1fr; gap: 28px; }
  .search-body { gap: 48px; }
}

@media (max-width: 900px) {
  /* 康复服务树：大类排成一组标签，当前大类的病种另起一行 */
  .svc-tree > ul { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .svc-tree > ul > li.has-sub { display: contents; }
  .svc-tree .sub { order: 1; flex: 0 0 100%; flex-wrap: wrap; overflow: visible; margin: 4px 0 0; padding: 0; }
  .svc-tree li.has-sub > a:not([aria-current]) { font-weight: 400; }
  .svc-tree li.has-sub:not(.current) > .sub { display: none; } /* 手机上只展开当前大类（.current 只用来决定展开哪个，不高亮） */

  .chapters { padding-top: 32px; }
  .method { padding: 72px 0; }
  .method-photos { grid-template-columns: 1fr 1fr; }
  .method-photos figure:nth-child(2) { margin-top: 0; }
  .sec { margin-top: 56px; }
  .search-body { grid-template-columns: 1fr; gap: 40px; padding-top: 28px; }
  .search-help { position: static; }
  .nf { padding-top: 48px; padding-bottom: 72px; }
  .nf h1 { font-size: 44px; }
}

@media (max-width: 600px) {
  .chapter { padding: 32px 0 40px; }
  .chapter h2 { font-size: 30px; }
  .ill { grid-template-columns: 1fr; gap: 4px; padding: 16px 0 18px; }
  .ill h3 { font-size: 23px; }
  .method h2 { font-size: 30px; }
  .method blockquote { font-size: 19px; padding-left: 18px; }
  .method-photos { grid-template-columns: 1fr; gap: 20px; margin-top: 36px; }
  .ill-block h2, .sec-head h2 { font-size: 27px; }
  .ill-block p { font-size: 16px; }
  .signs li { grid-template-columns: 5.5em minmax(0, 1fr); gap: 14px; }
  .signs .age { font-size: 20px; }
  .signs .what { font-size: 16px; }
  .signs-call { padding: 18px 18px; }
  .lead-person { grid-template-columns: 1fr; gap: 18px; }
  .lead-person img { width: 120px; height: 120px; }
  .faq summary { font-size: 19px; }
  .search-big { flex-direction: column; }
  .search-big .btn { width: 100%; }
  .nf h1 { font-size: 36px; }
  .nf .lead { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .faq summary::after { transition: none; }
}

/* ---------- 康复服务总览：每个大类下方的学科带头人（复用病种页 .lead-person，只补间距） ---------- */
.chapter .lead-person { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--green-line); }
.chapter .lead-person h3 { font-size: 25px; }
@media (max-width: 600px) {
  .chapter .lead-person { margin-top: 28px; padding-top: 24px; }
}
