/* 关于鹿童、科室介绍、找中心、中心详情、预约评估 页面专属样式（共用部分在 site.css） */

/* 关键信息表 .info-facts 和总部卡片 .hq 的底色、标题、表格间距在 article.css（正文里的信息卡和它共用） */

/* ---------- 关于鹿童：评估与康复体系 ---------- */
.prose .assess > div { padding: 20px 0 22px; border-bottom: 1px dashed var(--green-line); }
.prose .assess dt { font-family: var(--kai); font-size: 22px; line-height: 1.45; font-weight: 700; }
.prose .assess dd { margin-top: 6px; font-size: 16px; line-height: 1.85; color: var(--ink-2); }

/* ---------- 关于鹿童：发展历程 ---------- */
.history { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--green-line); scroll-margin-top: 96px; }
.history h2 { font-family: var(--kai); font-size: 34px; line-height: 1.3; }
.history .note-src { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.timeline { margin-top: 36px; }
.timeline > li { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 40px; padding-bottom: 30px; }
.timeline > li::before {
  /* 竖线 */
  content: ""; position: absolute; left: 115px; top: 16px; bottom: -14px; width: 2px; background: var(--green-line);
}
.timeline > li:last-child::before { display: none; }
.timeline > li::after {
  /* 年份圆点 */
  content: ""; position: absolute; left: 110px; top: 10px; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--green);
}
.timeline .year { font-family: var(--kai); font-size: 30px; line-height: 1.05; font-weight: 700; text-align: right; }
.timeline ul { font-size: 17px; line-height: 1.75; }
.timeline ul li + li { margin-top: 2px; }

/* ---------- 关于鹿童：更多栏目入口 ---------- */
.more-about { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--green-line); }
.more-about > h2 { font-family: var(--kai); font-size: 34px; line-height: 1.3; }
.more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 48px; margin-top: 28px; }
.more-grid section { padding: 18px 0 22px; border-top: 2px solid var(--ink); }
.more-grid h3 { font-family: var(--kai); font-size: 24px; line-height: 1.4; }
.more-grid h3 a:hover { color: var(--orange-ink); }
.more-grid ul { margin-top: 8px; }
.more-grid li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 5px 0; font-size: 15px; }
.more-grid li a { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.more-grid li a:hover { color: var(--orange-ink); }
.more-grid time { font-size: 13px; color: var(--ink-2); }

/* ---------- 科室介绍 ---------- */
.prose .dept > div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 24px; padding: 18px 0 20px; border-bottom: 1px dashed var(--green-line); }
.prose .dept dt { font-family: var(--kai); font-size: 22px; line-height: 1.45; font-weight: 700; }
.prose .dept dd { font-size: 16px; line-height: 1.85; color: var(--ink-2); }

/* ---------- 找中心 ---------- */
.centers-page { padding-top: 48px; padding-bottom: 96px; }
.hq { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 48px; align-items: center; }
.hq .city { font-family: var(--kai); font-size: 19px; color: var(--green-ink); }
.hq h2 { margin-top: 4px; }
.hq .more { display: inline-block; margin-top: 18px; }
.hq figure img { width: 100%; border-radius: 16px; }
.hq figcaption { margin-top: 10px; font-family: var(--kai); font-size: 17px; color: var(--ink-2); }

.centers-page .block-head { margin-top: 72px; }
.centers-page .centers { margin-top: 24px; }
.center h3 a:hover { color: var(--orange-ink); }
.center .since { margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.ask-line { margin-top: 28px; color: var(--ink-2); }
.ask-line a { color: var(--ink); font-weight: 700; }

.photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 28px; }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.photos figcaption { margin-top: 8px; font-family: var(--kai); font-size: 17px; color: var(--ink-2); }

/* ---------- 中心详情 ---------- */
.center-body .info-facts { margin-top: 0; }
.center-body h2 { margin-top: 48px; font-family: var(--kai); font-size: 28px; line-height: 1.35; }
.center-body .route { margin-top: 12px; max-width: 40em; font-size: 16px; line-height: 1.9; color: var(--ink-2); }
.other-centers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.other-centers a {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 7px 16px;
  border: 1.5px solid var(--green-line); border-radius: 999px; font-size: 15px;
}
.other-centers a span { font-family: var(--kai); font-size: 18px; font-weight: 700; }
.other-centers a:hover { border-color: var(--green); background: var(--green-tint); }

/* ---------- 预约评估 ---------- */
.order { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; padding-top: 48px; padding-bottom: 96px; }
.form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.form fieldset + fieldset { margin-top: 44px; padding-top: 40px; border-top: 1px solid var(--green-line); }
/* legend 浮动后不再压在 fieldset 的上边框上 */
.form legend { float: left; width: 100%; padding: 0; font-family: var(--kai); font-size: 30px; line-height: 1.3; font-weight: 700; }
.form legend + * { clear: both; }
/* 清除浮动会吃掉 margin-top，legend 后的间距改用 padding */
.form legend + .fields { margin-top: 0; padding-top: 22px; }
.form legend + .hint { margin-top: 0; padding-top: 6px; }
.form .hint { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; margin-top: 22px; }
/* .field 限定在表单里：专家页也有 .field（擅长领域），样式合并成一个文件后不能互相影响 */
.form .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form .field.full { grid-column: 1 / -1; }
.form .field label, .form .field .label { font-size: 15px; font-weight: 600; }
.req { margin-left: 2px; color: #b3261e; font-weight: 700; }
.form .field input[type="text"], .form .field input[type="tel"], .form .field input[type="date"], .form .field textarea {
  width: 100%; height: 48px; padding: 0 16px; border: 1.5px solid var(--green-line); border-radius: 12px;
  background: #fff; font-size: 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form .field textarea { height: auto; min-height: 160px; padding: 12px 16px; line-height: 1.75; resize: vertical; }
.form .field input:focus, .form .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(62, 142, 90, .2); }
.form .field ::placeholder { color: #8ea596; }
.form .field .help { font-size: 13px; color: var(--ink-2); }

.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  position: relative; display: inline-flex; align-items: center; height: 48px; padding: 0 28px;
  border: 1.5px solid var(--green-line); border-radius: 999px; cursor: pointer;
  font-family: var(--kai); font-size: 20px;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill:hover { border-color: var(--green); background: var(--green-tint); }
.pill:has(input:checked) { background: var(--orange-pick); border-color: var(--orange-pick); color: #fff; }
.pill:has(input:focus-visible) { outline: 3px solid var(--green); outline-offset: 3px; }

/* 提交后服务端校验的提示：顶部汇总 + 各项下面一行；成功后的「已收到」 */
.form-errors { margin-bottom: 32px; padding: 16px 20px; border-radius: 12px; background: #fdecea; color: #8c1d18; font-size: 15px; }
.form-errors ul { margin-top: 6px; padding-left: 1.2em; list-style: disc; }
/* 提交后 JS 把焦点移到报错或「已收到」上（读屏会读出来），不是可操作的元素，不画焦点框 */
#order-errors:focus, #order-done:focus { outline: none; }
.err { display: block; margin-top: 4px; font-size: 14px; color: #b3261e; }
.form .field [aria-invalid="true"] { border-color: #b3261e; }
.done { padding: 40px 36px; border-radius: 18px; background: var(--green-tint); }
.done h2 { font-family: var(--kai); font-size: 30px; line-height: 1.3; }
.done p { margin-top: 12px; font-size: 17px; color: var(--ink-2); }
.done p a { color: var(--ink); font-weight: 700; }
.done .link { display: inline-block; margin-top: 18px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 36px; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--orange-ink); }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 24px; }
.submit-row .btn { height: 54px; padding: 0 44px; font-size: 17px; }
.submit-row .btn:disabled { opacity: .7; cursor: progress; }
.submit-row p { font-size: 15px; color: var(--ink-2); }
.submit-row p a { color: var(--ink); font-weight: 700; }

.after { position: sticky; top: 100px; padding: 30px 28px; border-radius: 18px; background: var(--green-tint); }
.after h2 { font-family: var(--kai); font-size: 26px; line-height: 1.35; }
.steps { margin-top: 18px; counter-reset: step; }
.steps li { position: relative; padding: 0 0 20px 46px; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--green-ink); font-weight: 700; font-size: 15px;
}
.steps li::after { content: ""; position: absolute; left: 15px; top: 36px; bottom: 4px; width: 2px; background: var(--green-line); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps strong { display: block; font-family: var(--kai); font-size: 19px; line-height: 1.45; }
.steps span { display: block; margin-top: 2px; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.after .call { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--green-line); }
.after .call p { font-size: 14px; color: var(--ink-2); }
.after .call .num { display: block; margin-top: 2px; font-size: 26px; font-weight: 800; letter-spacing: .03em; }
.after .call .num:hover { color: var(--orange-ink); }

/* ---------- 响应式 ---------- */
/* ---------- 中心介绍、创始人故事：逐篇展示文章（第一篇上方不要分隔线） ---------- */
/* 标题、正文与文章页（people.css 的 .article-page）一致：标题下的分隔线对应文章页日期栏的下边线 */
.stack-item { max-width: 612px; } /* 文章页正文栏的宽度 */
.stack-item + .stack-item { margin-top: 80px; }
.stack-item > h2 { padding-bottom: 24px; border-bottom: 1px solid var(--green-line); font-family: var(--kai); font-size: 40px; line-height: 1.35; font-weight: 700; }
.stack-item > h2 a:hover { color: var(--orange-ink); }
.stack-item > .prose { max-width: 36em; margin-top: 32px; }

/* ---------- 发展历程独立成页：时间轴直接从顶部开始 ---------- */
.timeline.history-page { margin-top: 0; }

/* 找中心：各中心的「查看详情」 */
.center .more { display: inline-block; margin-top: 8px; font-size: 15px; }

@media (max-width: 1100px) {
  .hq { grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; }
  .order { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
}

@media (max-width: 900px) {
  .hq { grid-template-columns: 1fr; }
  .hq figure { max-width: 500px; }
  .photos { grid-template-columns: 1fr 1fr; }
  .more-grid { grid-template-columns: 1fr; }
  .order { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 72px; }
  .after { position: static; }
}

@media (max-width: 600px) {
  .stack-item + .stack-item { margin-top: 56px; }
  .stack-item > h2 { font-size: 30px; }
  .history, .more-about { margin-top: 56px; padding-top: 44px; }
  .history h2, .more-about > h2 { font-size: 28px; }
  .timeline > li { grid-template-columns: 60px minmax(0, 1fr); column-gap: 32px; }
  .timeline > li::before { left: 75px; }
  .timeline > li::after { left: 70px; }
  .timeline .year { font-size: 22px; padding-top: 3px; }
  .timeline ul { font-size: 16px; }
  .prose .dept > div { grid-template-columns: 1fr; gap: 4px; }
  .hq { padding: 26px 22px; border-radius: 16px; margin: 0 calc(var(--gutter) * -1); border-radius: 0; }
  .hq h2 { font-size: 30px; }
  .centers-page { padding-top: 28px; padding-bottom: 64px; }
  .centers-page .block-head { margin-top: 56px; }
  .photos { gap: 14px; }
  .form legend { font-size: 26px; }
  .fields { grid-template-columns: 1fr; }
  .done { padding: 28px 22px; }
  .submit-row .btn { width: 100%; }
}
