/* 阳光鹿童官网 · 全站共用样式（方案 B「先说说孩子」）
 * 白底；鹿童橙只用于选中、按钮和强调；嫩芽绿用于分区；标题、引语用楷体，正文用系统无衬线。
 * 页面专属样式放在各自的 css 文件里（home.css、services.css、people.css、info.css）。
 * 正文排版（.prose）在 article.css，后台编辑器也用它；布局里在本文件之前引入（不用 @import，那样带不上 ?v= 版本参数）。
 */

:root {
  --orange: #e8650a;       /* 鹿童橙：强调、小面积装饰 */
  --orange-pick: #c25200;  /* 选中态底色（白字对比度 ≥4.5） */
  --orange-ink: #b04e00;   /* 按钮底色、小字链接 */
  --orange-tint: #fff1e6;
  --green: #3e8e5a;        /* 嫩芽绿：分区、装饰 */
  --green-ink: #2f6f45;    /* 绿色小字 */
  --green-tint: #eef6ef;   /* 浅芽绿：分区底色 */
  --green-line: #d5e6d9;
  --ink: #1e3328;          /* 深墨绿：标题、正文 */
  --ink-2: #4a5e52;        /* 次要文字 */
  --kai: "LXGW WenKai", "Kaiti SC", "STKaiti", "KaiTi", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --wrap: 1200px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.75; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 96px; } /* 锚点跳转时不被吸顶的页头挡住 */

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kai { font-family: var(--kai); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 8px 16px; border-radius: 8px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }

/* ---------- 按钮与链接 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--orange-ink); color: #fff; font-weight: 600; font-size: 16px; white-space: nowrap;
  transition: background-color .15s ease;
}
.btn:hover { background: #8f3f00; }
.btn svg { width: 18px; height: 18px; }
.btn-line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { background: var(--green-tint); }
.link { color: var(--orange-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.link:hover { color: #8f3f00; }

/* ---------- 页头 ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--green-line); }
.top .wrap { display: flex; align-items: center; gap: 40px; height: 76px; }
.brand img { height: 50px; width: auto; }
.nav ul { display: flex; gap: 6px; }
.nav a { display: block; padding: 6px 12px; font-size: 16px; border-radius: 8px; white-space: nowrap; }
.nav a:hover { color: var(--green-ink); background: var(--green-tint); }
.nav a[aria-current="page"] { color: var(--green-ink); background: var(--green-tint); font-weight: 600; }
.tools { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; }
.icon-btn:hover { background: var(--green-tint); }
.icon-btn svg { width: 20px; height: 20px; }
.hotline { font-weight: 700; font-size: 17px; letter-spacing: .02em; white-space: nowrap; }
.hotline:hover { color: var(--orange-ink); }
.tools .btn { height: 42px; padding: 0 22px; }
.menu-btn { display: none; }
.menu-panel { display: none; }

/* ---------- 区块标题 ---------- */
.block { padding: 104px 0; }
.block-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.block-head h2 { font-family: var(--kai); font-size: 38px; line-height: 1.3; }
.block-head p { margin-top: 6px; color: var(--ink-2); }

/* ---------- 内页：标题区 ---------- */
.page-head { padding: 40px 0 44px; border-bottom: 1px solid var(--green-line); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: #a9c2b0; }
.crumbs a:hover { color: var(--orange-ink); }
.crumbs [aria-current="page"] { color: var(--ink); }
.page-head h1 { margin-top: 14px; font-family: var(--kai); font-size: 48px; line-height: 1.25; font-weight: 700; letter-spacing: .02em; }
.page-head .lead { margin-top: 12px; max-width: 40em; font-size: 18px; color: var(--ink-2); }

/* ---------- 内页：栏目导航 + 内容 ---------- */
.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; padding-top: 48px; padding-bottom: 80px; }
.layout > aside .side-nav { position: sticky; top: 108px; } /* 长页面里栏目导航随滚动固定 */
.side-nav h2 { margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.side-nav li + li { margin-top: 2px; }
.side-nav a {
  position: relative; display: block; padding: 8px 0 8px 22px;
  font-family: var(--kai); font-size: 19px; line-height: 1.45; color: var(--ink-2);
}
.side-nav a::before {
  content: ""; position: absolute; left: 4px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: var(--green-line);
}
.side-nav a:hover { color: var(--ink); }
.side-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.side-nav a[aria-current="page"]::before { background: var(--orange); }
.side-nav .sub a { padding-left: 40px; font-size: 17px; }
.side-nav .sub a::before { left: 22px; width: 6px; height: 6px; margin-top: -3px; }

/* ---------- 列表行（新闻、科普、故事等） ---------- */
.rows > li + li { border-top: 1px solid var(--green-line); }
.rows > li:last-child { border-bottom: 1px solid var(--green-line); }
.row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 24px; padding: 24px 0; }
.row.has-pic { grid-template-columns: 112px minmax(0, 1fr) 176px; }
.row time { font-size: 14px; color: var(--ink-2); padding-top: 4px; }
.row h3 { font-size: 19px; line-height: 1.55; font-weight: 600; }
.row h3 a:hover { color: var(--orange-ink); }
.row p { margin-top: 6px; font-size: 15px; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row .pic img { width: 176px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }

.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 40px; }
.pager a, .pager span {
  display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px;
  border: 1.5px solid var(--green-line); border-radius: 999px; font-size: 15px;
}
.pager a:hover { border-color: var(--green); background: var(--green-tint); }
.pager [aria-current="page"] { background: var(--orange-pick); border-color: var(--orange-pick); color: #fff; font-weight: 700; }
.pager .gap { border-color: transparent; color: var(--ink-2); }
.pager .next { margin-left: auto; padding: 0 22px; }


/* ---------- 故事便笺墙（首页、康复故事页复用） ---------- */
.wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 28px; margin-top: 44px; align-items: start; }
.note {
  position: relative; display: block; padding: 32px 26px 22px; border-radius: 6px;
  background: #fff; border: 1px solid var(--green-line);
  box-shadow: 0 1px 1px rgba(30, 51, 40, .05), 0 14px 24px -18px rgba(30, 51, 40, .45);
  transform: rotate(var(--r, 0deg));
  transition: transform .2s ease;
}
.note::before {
  /* 胶带 */
  content: ""; position: absolute; top: -10px; left: 50%; width: 76px; height: 20px; margin-left: -38px;
  background: rgba(62, 142, 90, .26); transform: rotate(var(--t, -3deg));
}
a.note:hover { transform: rotate(0deg) translateY(-2px); }
.note h3 { font-family: var(--kai); font-size: 27px; line-height: 1.4; font-weight: 700; }
.note time { display: block; margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.note.orange { background: var(--orange-tint); border-color: #f6d9c2; }
.note.green { background: var(--green-tint); }
.note.lead-note { grid-row: span 2; padding-top: 26px; }
.note.lead-note img { width: 100%; max-width: 240px; border: 6px solid #fff; box-shadow: 0 1px 3px rgba(30, 51, 40, .2); margin-bottom: 22px; transform: rotate(-2deg); }
.note.lead-note h3 { font-size: 34px; }
.note.photo { padding: 12px 12px 14px; }
.note.photo img { width: 100%; border-radius: 2px; }
.note.photo figcaption { margin-top: 10px; font-family: var(--kai); font-size: 18px; color: var(--ink-2); text-align: center; }
.note.more { background: transparent; border: 1.5px dashed #b9cfbf; box-shadow: none; }
.note.more::before { display: none; }
.note.more h3 { font-size: 22px; color: var(--orange-ink); }
.note.more p { margin-top: 8px; font-size: 15px; color: var(--ink-2); }

/* ---------- 中心列表（首页、找中心页复用） ---------- */
.centers { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; margin-top: 36px; }
.center { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; padding: 20px 0; border-top: 1px solid var(--green-line); }
.center:nth-child(-n+2) { border-top: 0; } /* 两栏时第一行上方不画线 */
.center .city { font-family: var(--kai); font-size: 26px; line-height: 1.25; font-weight: 700; }
.center h3 { font-size: 16px; font-weight: 600; line-height: 1.5; }
.center p { font-size: 15px; color: var(--ink-2); line-height: 1.7; }
.center p a { color: var(--ink); font-weight: 600; }

/* ---------- 页脚 ---------- */
.foot { background: var(--ink); color: #c9dacd; font-size: 14px; }
.foot a:hover { color: #fff; }
.foot-main { display: grid; grid-template-columns: 1.15fr 2.6fr; gap: 64px; padding-top: 64px; padding-bottom: 56px; }
.foot .badge { display: inline-block; padding: 8px 14px; border-radius: 10px; background: #fff; }
.foot .badge img { height: 44px; width: auto; }
.foot .contact { margin-top: 22px; }
.foot .contact .num { display: block; font-size: 26px; font-weight: 800; color: #fff; letter-spacing: .03em; }
.foot .contact p { margin-top: 4px; line-height: 1.8; }
.qrs { display: flex; gap: 16px; margin-top: 22px; }
.qrs figure { text-align: center; font-size: 13px; }
.qrs img { width: 88px; height: 88px; padding: 4px; border-radius: 8px; background: #fff; }
.qrs figcaption { margin-top: 6px; }
.foot-nav { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.foot-nav h3 { color: #fff; font-family: var(--kai); font-size: 19px; margin-bottom: 12px; }
.foot-nav h3.next { margin-top: 28px; }
.foot-nav li + li { margin-top: 7px; }
.foot-nav .group-title { margin-top: 12px; color: #8fae98; font-size: 13px; }
.foot-nav .group-title:first-of-type { margin-top: 0; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.foot-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 18px; padding-bottom: 18px; font-size: 13px; color: #8fae98; }

.dock { display: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .nav a { padding: 6px 8px; }
  .top .wrap { gap: 20px; }
  .tools .hotline { display: none; } /* 6 项导航放不下时先收起页头电话，保留「预约评估」按钮 */
  .foot-main { grid-template-columns: 1fr; gap: 40px; }
  .layout { grid-template-columns: 180px minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 900px) {
  .nav, .tools .hotline, .tools .btn, .tools .icon-btn:not(.menu-btn) { display: none; }
  .tools .menu-btn { display: grid; }
  .top .wrap { height: 64px; }
  .brand img { height: 42px; }
  .menu-panel.open {
    display: block; position: absolute; left: 0; right: 0; top: 64px;
    padding: 8px var(--gutter) 24px; background: #fff; border-bottom: 1px solid var(--green-line);
    box-shadow: 0 18px 30px -20px rgba(30, 51, 40, .4);
  }
  .menu-panel li a { display: block; padding: 14px 2px; border-bottom: 1px solid var(--green-line); font-size: 17px; }
  .menu-panel li a[aria-current="page"] { color: var(--orange-ink); font-weight: 600; }
  .menu-panel .search { display: flex; gap: 8px; margin-top: 18px; }
  .menu-panel .search input { flex: 1; height: 44px; padding: 0 14px; border: 1px solid #b9cfbf; border-radius: 999px; }

  .page-head { padding: 28px 0 32px; }
  .page-head h1 { font-size: 38px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 24px; padding-bottom: 56px; }
  .layout > * { min-width: 0; } /* 侧栏横向标签不能把整页撑宽 */  .layout > aside .side-nav { position: static; }
  .side-nav h2 { display: none; }
  .side-nav ul { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); }
  .side-nav ul::-webkit-scrollbar { display: none; }
  .side-nav li + li { margin-top: 0; }
  .side-nav a { flex: none; padding: 7px 16px; border: 1.5px solid var(--green-line); border-radius: 999px; font-size: 17px; white-space: nowrap; }
  .side-nav a::before { display: none; }
  .side-nav a[aria-current="page"] { background: var(--orange-pick); border-color: var(--orange-pick); color: #fff; }
  .side-nav .sub { margin-top: 8px; }
  .side-nav .sub a { padding-left: 16px; font-size: 16px; }

  .wall { grid-template-columns: 1fr 1fr; }
  .note.lead-note { grid-row: auto; grid-column: 1 / -1; }
  .centers { grid-template-columns: 1fr; }
  .center:nth-child(2) { border-top: 1px solid var(--green-line); } /* 单栏时只有第一个不画线 */
  .foot-nav { grid-template-columns: 1fr 1fr; }

  .dock {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--green-line);
  }
  .dock a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 999px; font-weight: 600; }
  .dock .call { border: 1.5px solid var(--ink); }
  .dock .book { background: var(--orange-ink); color: #fff; }
  .dock svg { width: 18px; height: 18px; }
  body { padding-bottom: 72px; }
}

@media (max-width: 600px) {
  :root { --gutter: 18px; }
  .block { padding: 72px 0; }
  .block-head h2 { font-size: 30px; }
  .page-head h1 { font-size: 32px; }
  .page-head .lead { font-size: 16px; }
  .row, .row.has-pic { grid-template-columns: 1fr; gap: 4px; padding: 20px 0; }
  .row .pic { display: none; }
  .row time { padding-top: 0; }
  .pager .next { margin-left: 0; }
  .wall { grid-template-columns: 1fr; gap: 26px; }
  .note.lead-note h3 { font-size: 30px; }
  .center { grid-template-columns: 1fr; gap: 4px; }
  .foot-main { padding-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  a.note:hover { transform: rotate(var(--r, 0deg)); }
}
