/* 湘潭海福祥养老护理院 · 单页样式（零依赖） */

:root {
  --primary: #2f8d56;
  --primary-dark: #256e44;
  --primary-soft: #eaf4ee;
  --ink: #21302a;
  --text: #4a5a52;
  --muted: #7b8b82;
  --line: #e5ebe6;
  --soft: #f6f8f6;
  --max: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: #fff;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

section[id] { scroll-margin-top: 72px; }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(20, 40, 30, .06);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img { height: 38px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  position: relative;
  color: var(--ink);
  font-size: 15px;
  padding: 4px 0;
  transition: color .2s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}

.nav a:hover::after,
.nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--primary); }

.nav a.tel {
  background: var(--primary);
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: .3px;
}

.nav a.tel::after { display: none; }
.nav a.tel:hover { background: var(--primary-dark); color: #fff; }

.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}

.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: #2b3a31;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(16, 32, 23, .80) 0%, rgba(16, 32, 23, .52) 45%, rgba(16, 32, 23, .18) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-eyebrow {
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  letter-spacing: .16em;
  margin-bottom: 16px;
}

.hero h1 {
  color: #fff;
  font-size: 44px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: .02em;
}

.hero-sub {
  color: rgba(255, 255, 255, .92);
  font-size: 17px;
  margin-top: 14px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid var(--primary);
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}

.btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(37, 110, 68, .22);
}

.btn-ghost {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .6);
  color: #fff;
  backdrop-filter: blur(4px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .16);
  border-color: #fff;
  color: #fff;
  box-shadow: none;
}

.btn-light {
  background: #fff;
  border-color: #fff;
  color: var(--primary);
  flex-shrink: 0;
}

.btn-light:hover {
  background: #f1f7f3;
  border-color: #f1f7f3;
  color: var(--primary-dark);
}

/* ---------- 版块 ---------- */
.section { padding: 88px 0; }
.section-soft { background: var(--soft); }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}

.section-head h2 {
  color: var(--ink);
  font-size: 30px;
  line-height: 1.45;
  font-weight: 700;
}

.section-head .sub {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- 关于我们 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.about-text h2 {
  color: var(--ink);
  font-size: 30px;
  line-height: 1.45;
  font-weight: 700;
  margin-bottom: 18px;
}

.about-text p:not(.eyebrow) {
  margin-bottom: 14px;
  font-size: 16px;
}

.about-photo {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(25, 50, 35, .14);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 16px 12px;
  color: #fff;
  font-size: 13px;
  letter-spacing: .08em;
  background: linear-gradient(transparent, rgba(0, 0, 0, .55));
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 56px;
}

.stats li {
  background: var(--soft);
  border-radius: 12px;
  padding: 26px 12px;
  text-align: center;
}

.stats strong {
  display: block;
  color: var(--primary);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .01em;
}

.stats strong span {
  font-size: 15px;
  font-weight: 600;
  margin-left: 2px;
}

.stats li > span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- 服务卡片 ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px 30px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: 0 18px 36px rgba(25, 50, 35, .10);
}

.card-no {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--primary);
  opacity: .55;
  margin-bottom: 12px;
}

.card h3 {
  color: var(--ink);
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 6px;
}

.card-for {
  color: var(--muted);
  font-size: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.card ul li {
  position: relative;
  padding: 5px 0 5px 20px;
  font-size: 15px;
}

.card ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: .6;
}

/* ---------- 图集 ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.gallery .wide { grid-column: 1 / -1; }

.gallery figure {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--soft);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .5s;
}

.gallery .wide img { aspect-ratio: 16 / 8; }

.gallery figure:hover img { transform: scale(1.03); }

.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 16px 14px;
  color: #fff;
  font-size: 14px;
  letter-spacing: .06em;
  text-align: center;
  background: linear-gradient(transparent, rgba(0, 0, 0, .55));
}

/* ---------- 预约参观 ---------- */
.info-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.info-item {
  background: #fff;
  border-radius: 14px;
  padding: 30px 26px;
  border: 1px solid var(--line);
}

.info-item svg { color: var(--primary); }

.info-item h3 {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  margin: 12px 0 6px;
}

.info-item p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
}

.info-item a { font-weight: 700; }

.cta-banner {
  margin-top: 26px;
  background: linear-gradient(135deg, #2f8d56 0%, #22663f 100%);
  border-radius: 16px;
  padding: 44px 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 16px 34px rgba(34, 102, 63, .24);
}

.cta-text h2 {
  color: #fff;
  font-size: 23px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cta-text p {
  color: rgba(255, 255, 255, .86);
  font-size: 15px;
  max-width: 620px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: #23302a;
  color: #b9c6bf;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 44px;
  padding-bottom: 40px;
}

.footer-brand img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .9;
}

.footer-brand p {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: .08em;
  color: #8b9a92;
}

.footer-info { text-align: right; }

.footer-info p { margin: 4px 0; }

.footer-info span {
  color: #84938b;
  margin-right: 12px;
  font-size: 13px;
}

.site-footer a { color: #fff; }
.site-footer a:hover { color: #cfe6d8; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 13px;
  color: #84938b;
  text-align: center;
}

.footer-bottom a { color: #a8b6ae; }

/* ---------- 流程步骤（入住流程 / 长者的一天） ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  counter-reset: step;
  max-width: 1000px;
  margin: 0 auto;
  list-style: none;
}

.flow li {
  counter-increment: step;
  position: relative;
  text-align: center;
  padding-top: 58px;
}

.flow li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 42px;
  line-height: 42px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  border-radius: 50%;
}

.flow li::after {
  content: "";
  position: absolute;
  top: 21px;
  left: calc(50% + 29px);
  width: calc(100% - 44px);
  height: 2px;
  background: var(--line);
}

.flow li:last-child::after { display: none; }

.flow strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  margin-bottom: 4px;
}

.flow span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

/* 长者的一天：时间胶囊变体 */
.day-flow { grid-template-columns: repeat(4, 1fr); }

.day-flow li::before {
  content: attr(data-time);
  width: 70px;
  border-radius: 20px;
  font-size: 13px;
  letter-spacing: .05em;
}

.day-flow li::after { top: 19px; }

/* ---------- 常见问题 ---------- */
.faq { max-width: 780px; margin: 0 auto; }

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq summary {
  padding: 17px 48px 17px 22px;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  position: relative;
  list-style: none;
  transition: color .2s;
}

.faq summary:hover { color: var(--primary); }

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.faq details[open] summary::after { content: "−"; }

.faq details p {
  padding: 0 22px 18px;
  color: var(--text);
  font-size: 15px;
}

/* ---------- 移动端 ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { order: -1; }
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
  .info-row { grid-template-columns: 1fr; }
  .flow, .day-flow { grid-template-columns: repeat(2, 1fr); }
  .flow li::after { display: none; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 34px 28px; }
  .cta-text h2 { font-size: 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-info { text-align: left; }
}

@media (max-width: 760px) {
  .menu-btn { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(20, 40, 30, .08);
  }

  .nav.open { display: flex; }

  .nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav a::after { display: none; }
  .nav a.active { color: var(--primary); }

  .nav a.tel {
    margin-top: 14px;
    text-align: center;
    border-bottom: none;
  }

  .hero { height: 460px; }
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 15px; }
  .hero-eyebrow { font-size: 12px; }
  .hero-actions { margin-top: 26px; }
  .btn { padding: 11px 22px; font-size: 15px; }

  .section { padding: 56px 0; }
  .section-head { margin-bottom: 34px; }
  .section-head h2 { font-size: 23px; }
  .about-text h2 { font-size: 23px; }

  .gallery { grid-template-columns: 1fr; gap: 12px; }
  .gallery .wide img { aspect-ratio: 4 / 3; }

  .flow, .day-flow { grid-template-columns: 1fr; gap: 24px; }
  .flow li::after { display: none; }
  .flow span { max-width: 300px; margin: 0 auto; }
  .flow li { padding-top: 54px; }

  .card { padding: 28px 24px; }
  .stats strong { font-size: 26px; }
}
