/* 专家、康复故事、文章列表、文章详情（experts / expert / stories / list / article）专属样式
 * 共用组件见 site.css */

/* ---------- 人像 ---------- */
.portrait { border-radius: 50%; object-fit: cover; object-position: 50% 22%; background: var(--green-tint); }

/* ---------- 专家团队：三位专家同一版式从上到下排列 ---------- */
.expert-lead {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 44px; align-items: start;
  padding-bottom: 48px; border-bottom: 1px solid var(--green-line);
}
.expert-lead + .expert-lead { padding-top: 48px; }
.expert-lead:last-child { padding-bottom: 0; border-bottom: 0; }
.expert-lead .portrait { width: 200px; height: 200px; }
.expert-lead .field { font-size: 15px; font-weight: 600; color: var(--green-ink); }
.expert-lead h2 { margin-top: 4px; font-family: var(--kai); font-size: 40px; line-height: 1.25; }
.expert-lead .role { margin-top: 6px; font-size: 17px; color: var(--ink-2); }
.expert-lead .summary { margin-top: 18px; max-width: 36em; font-size: 17px; line-height: 1.9; text-wrap: pretty; }
.expert-lead .facts { max-width: 612px; } /* 和简介同宽 */
.expert-lead .facts dd { text-wrap: pretty; }
.expert-lead .link { display: inline-block; margin-top: 18px; }

/* 要点：左侧小标题 + 右侧内容 */
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; margin-top: 20px; font-size: 15px; line-height: 1.75; }
.facts dt { color: var(--ink-2); white-space: nowrap; }


/* ---------- 专家详情：人物标题区（面包屑在上，下面左文右像） ---------- */
.person-grid { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 48px; align-items: center; }
.page-head.person .portrait { width: 200px; height: 200px; }
.page-head.person .facts { max-width: 40em; margin-top: 18px; }

/* 大字引语（楷体，浅芽绿底）；和三个十年一样与 .prose 同宽 */
.big-quote, .decades { max-width: 720px; }
.big-quote {
  margin: 44px 0; padding: 30px 34px; border-radius: 18px; background: var(--green-tint);
  font-family: var(--kai); font-size: 28px; line-height: 1.65;
}
.big-quote cite { display: block; margin-top: 12px; font-family: var(--sans); font-size: 15px; font-style: normal; color: var(--ink-2); }

/* 三个十年：真实的先后顺序，用序号 */
.decades { margin-top: 18px; counter-reset: decade; }
.decades li { position: relative; padding: 0 0 30px 72px; counter-increment: decade; }
.decades li::before {
  content: counter(decade); position: absolute; left: 0; top: 0;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 2px solid var(--green); color: var(--green-ink);
  font-family: var(--kai); font-size: 24px; font-weight: 700;
}
.decades li::after { content: ""; position: absolute; left: 24px; top: 54px; bottom: 6px; width: 2px; margin-left: -1px; background: var(--green-line); }
.decades li:last-child { padding-bottom: 0; }
.decades li:last-child::after { display: none; }
.decades h3 { padding-top: 8px; font-family: var(--kai); font-size: 23px; line-height: 1.4; }
.decades p { margin-top: 8px; font-size: 17px; line-height: 1.9; }

.photo-note { margin-top: 44px; max-width: 500px; }
.photo-note img { width: 100%; border-radius: 14px; }
.photo-note figcaption { margin-top: 10px; font-family: var(--kai); font-size: 17px; color: var(--ink-2); }

/* ---------- 康复故事 ---------- */
.story-wall { padding-top: 56px; padding-bottom: 24px; }
.story-wall .wall { margin-top: 0; }
.note .who { margin-top: 10px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.earlier { padding-top: 64px; padding-bottom: 80px; }
.earlier h2 { margin-bottom: 18px; font-family: var(--kai); font-size: 30px; line-height: 1.35; }

/* ---------- 文章详情：左栏目导航 + 正文 + 右侧边栏 ---------- */
/* 正文 17px × 36 字 = 612px；两侧栏把宽屏下的空白用在和本文相关的内容上；正文排版在 article.css */
.article-layout {
  display: grid; grid-template-columns: 200px minmax(0, 612px) 248px;
  justify-content: space-between; column-gap: 48px;
}
.article-side, .article-rail { padding-top: 48px; }
.article-side .side-nav, .rail-sticky { position: sticky; top: 108px; }
.article-page { padding: 40px 0 64px; }
.article-page h1 { font-family: var(--kai); font-size: 40px; line-height: 1.35; font-weight: 700; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--green-line); font-size: 14px; color: var(--ink-2); }
.article-meta a { color: var(--ink); }
.article-meta a:hover { color: var(--orange-ink); }
.article-page .prose { max-width: 36em; margin-top: 32px; }

.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.prev-next a { display: block; padding: 18px 22px; border: 1.5px solid var(--green-line); border-radius: 14px; }
.prev-next a:hover { border-color: var(--green); background: var(--green-tint); }
.prev-next small { display: block; font-size: 13px; color: var(--ink-2); }
.prev-next span { display: block; margin-top: 4px; font-family: var(--kai); font-size: 19px; line-height: 1.5; }
.prev-next .next { text-align: right; }

.rail-block + .rail-block { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--green-line); }
.rail-block h2 { margin-bottom: 12px; font-family: var(--kai); font-size: 19px; line-height: 1.4; }
.rail-block p { margin-top: 10px; font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.rail-person { display: flex; align-items: center; gap: 14px; }
.rail-person img { width: 64px; height: 64px; flex: none; border-radius: 50%; object-fit: cover; background: var(--green-tint); }
.rail-person strong { display: block; font-family: var(--kai); font-size: 21px; line-height: 1.3; }
.rail-person small { display: block; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.rail-person:hover strong { color: var(--orange-ink); }
.rail-list li + li { margin-top: 14px; }
.rail-list a { display: block; font-size: 15px; line-height: 1.6; }
.rail-list a:hover { color: var(--orange-ink); }
.rail-list a[aria-current="page"] { padding-left: 11px; border-left: 3px solid var(--orange); font-weight: 600; }
.rail-list a[aria-current="page"] + time { padding-left: 14px; }
.rail-list time { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-2); }
.rail-block.rail-book { padding: 22px 20px 20px; border-top: 0; border-radius: 14px; background: var(--green-tint); }
.rail-book p { margin-top: 0; }
.rail-book .btn { width: 100%; height: 42px; margin-top: 14px; }
.rail-book .tel { display: block; margin-top: 10px; text-align: center; font-weight: 700; letter-spacing: .02em; }
.rail-book .tel:hover { color: var(--orange-ink); }

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
  /* 放不下三栏时先收起左侧栏目导航 */
  .article-layout { grid-template-columns: minmax(0, 612px) 248px; justify-content: center; column-gap: 56px; }
  .article-side { display: none; }
}

@media (max-width: 900px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-rail { padding-top: 0; padding-bottom: 56px; }
  .rail-sticky { position: static; }
  .rail-book { display: none; } /* 手机底部有固定底栏「电话咨询 / 预约评估」 */
  .expert-lead { grid-template-columns: 140px minmax(0, 1fr); gap: 28px; }
  .expert-lead .portrait { width: 140px; height: 140px; }
  .person-grid { grid-template-columns: minmax(0, 1fr) 140px; gap: 28px; }
  .page-head.person .portrait { width: 140px; height: 140px; }
  .story-wall { padding-top: 40px; }
}

@media (max-width: 600px) {
  .expert-lead { grid-template-columns: 1fr; gap: 20px; padding-bottom: 36px; }
  .expert-lead .portrait { width: 120px; height: 120px; }
  .expert-lead h2 { font-size: 32px; }
  .expert-lead .summary { font-size: 16px; }
  .expert-lead + .expert-lead { padding-top: 36px; }
  .person-grid { grid-template-columns: 1fr; gap: 0; }
  .page-head.person .portrait { order: -1; width: 112px; height: 112px; margin-top: 18px; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dd + dt { margin-top: 8px; }
  .big-quote { padding: 22px 22px; font-size: 22px; }
  .decades li { padding-left: 60px; }
  .decades li::before { width: 42px; height: 42px; font-size: 21px; }
  .decades li::after { left: 21px; top: 48px; }
  .decades h3 { padding-top: 6px; font-size: 21px; }
  .decades p { font-size: 16px; }
  .earlier { padding-top: 48px; padding-bottom: 56px; }
  .earlier h2 { font-size: 26px; }
  .article-page { padding-top: 28px; padding-bottom: 48px; }
  .article-page h1 { font-size: 30px; }
  .prev-next { grid-template-columns: 1fr; }
  .prev-next .next { text-align: left; }
}
