/* ============================================================
   拾光家政 · SHIGUANG HOME CARE
   清爽暖白 / 竹青主色 / 宋体标题 + 黑体正文
   ============================================================ */

:root {
  --cream: #faf7f0;
  --cream-2: #f2ede1;
  --white: #ffffff;
  --ink: #23261f;
  --ink-soft: #4d5245;
  --muted: #7d8274;
  --bamboo: #4a6b4f;
  --bamboo-deep: #35503a;
  --sage: #9bb08d;
  --clay: #b9724a;
  --line: rgba(35, 38, 31, 0.1);
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --shadow-sm: 0 2px 12px rgba(35, 38, 31, 0.06);
  --shadow-md: 0 18px 44px -22px rgba(35, 38, 31, 0.28);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ---------------- 导航 ---------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 247, 240, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.nav.is-solid {
  background: rgba(250, 247, 240, 0.97);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  width: min(1180px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.95rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  color: var(--bamboo);
  flex: none;
}

.brand-text {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text em {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.56rem;
  letter-spacing: 0.26em;
  color: var(--muted);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  font-size: 0.9rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--bamboo);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover { color: var(--bamboo-deep); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--bamboo);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--bamboo-deep); transform: translateY(-1px); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  min-height: 100svh;
  padding: 7rem 0 4rem;
  width: min(1180px, 92vw);
  margin: 0 auto;
  gap: 3rem;
}

.hero-bg {
  position: absolute;
  top: 0; bottom: 0;
  right: calc(-1 * ((100vw - min(1180px, 92vw)) / 2));
  width: 50vw;
  background-image: url("images/hero-kitchen.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 0 0 0 90px;
  box-shadow: var(--shadow-md);
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0 0 0 90px;
  background: linear-gradient(105deg, rgba(250, 247, 240, 0.92), rgba(250, 247, 240, 0) 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 33em;
}

.eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.34em;
  color: var(--bamboo);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: up 0.8s 0.1s ease forwards;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  line-height: 1.22;
  letter-spacing: 0.01em;
  opacity: 0;
  animation: up 0.95s 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lede {
  margin-top: 1.7rem;
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 30em;
  opacity: 0;
  animation: up 0.95s 0.4s ease forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.2rem;
  opacity: 0;
  animation: up 0.95s 0.55s ease forwards;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.18s ease, background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-solid {
  background: var(--bamboo);
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(74, 107, 79, 0.9);
}

.btn-solid:hover { background: var(--bamboo-deep); transform: translateY(-2px); }

.btn-line {
  border: 1px solid rgba(74, 107, 79, 0.4);
  color: var(--bamboo-deep);
}

.btn-line:hover { border-color: var(--bamboo); background: rgba(155, 176, 141, 0.16); transform: translateY(-2px); }

.hero-facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 3rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  opacity: 0;
  animation: up 0.95s 0.72s ease forwards;
}

.hero-facts li { display: flex; flex-direction: column; gap: 0.25rem; }

.hero-facts strong {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--bamboo-deep);
}

.hero-facts span {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.55;
}

@keyframes up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------------- 通用 section ---------------- */
.section { padding: 6.5rem 0; }

.section-head {
  width: min(1180px, 92vw);
  margin: 0 auto 3.4rem;
}

.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.36em;
  color: var(--clay);
  margin-bottom: 1rem;
}

.section h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.65rem, 3.4vw, 2.6rem);
  line-height: 1.35;
  max-width: 24em;
}

.section-lede {
  margin-top: 1.2rem;
  max-width: 46em;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* ---------------- 服务 ---------------- */
.services { background: var(--white); }

.service-grid {
  width: min(1180px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.8rem;
}

.service-card {
  background: var(--cream);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card-media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .card-media img { transform: scale(1.05); }

.card-body { padding: 1.9rem 1.8rem 2.2rem; }

.card-body h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.card-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.35rem 0 1.3rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px dashed var(--line);
}

.card-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.card-body li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.card-body li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sage);
}

/* ---------------- 怎么约 ---------------- */
.how { background: var(--bamboo-deep); color: #eef1e8; }

.how-inner {
  width: min(1180px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: start;
}

.how .kicker { color: var(--sage); }

.how h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.65rem, 3.2vw, 2.5rem);
  line-height: 1.35;
  color: #fff;
}

.how-intro p:last-child {
  margin-top: 1.4rem;
  font-size: 0.96rem;
  color: rgba(238, 241, 232, 0.76);
}

.how-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  counter-reset: n;
}

.how-steps li {
  display: flex;
  gap: 1.6rem;
  padding: 1.7rem 0;
  border-top: 1px solid rgba(238, 241, 232, 0.16);
}

.how-steps li:last-child { border-bottom: 1px solid rgba(238, 241, 232, 0.16); }

.num {
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sage);
  letter-spacing: 0.1em;
  padding-top: 0.25rem;
  flex: none;
}

.how-steps h3 {
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.4rem;
}

.how-steps p {
  font-size: 0.9rem;
  color: rgba(238, 241, 232, 0.72);
}

/* ---------------- 阿姨 ---------------- */
.people { background: var(--cream); }

.people-grid {
  width: min(1180px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}

.person {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2.2rem 1.9rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.person:hover {
  border-color: var(--sage);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.person-avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(155, 176, 141, 0.22);
  color: var(--bamboo);
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
}

.person-avatar svg { width: 27px; height: 27px; }

.person h3 {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.person-role {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--clay);
  margin: 0.3rem 0 0.9rem;
}

.person-desc {
  font-size: 0.89rem;
  color: var(--ink-soft);
  line-height: 1.8;
}

/* ---------------- 价格 ---------------- */
.price { background: var(--white); }

.price-table-wrap {
  width: min(1180px, 92vw);
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.price-table thead th {
  background: var(--cream-2);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-align: left;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.price-table tbody th {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.price-table tbody td {
  padding: 1.35rem 1.5rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td { border-bottom: none; }

.price-table tbody tr:hover { background: rgba(155, 176, 141, 0.08); }

.price-table .p {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bamboo-deep);
  white-space: nowrap;
}

.price-note {
  width: min(1180px, 92vw);
  margin: 1.4rem auto 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------------- FAQ ---------------- */
.faq { background: var(--cream); }

.faq-list {
  width: min(900px, 92vw);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  padding: 1.35rem 2.4rem 1.35rem 0;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
  position: relative;
  list-style: none;
  transition: color 0.2s;
}

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

.faq-list summary::after {
  content: "";
  position: absolute;
  right: 0.5rem; top: 50%;
  width: 9px; height: 9px;
  border-right: 1.6px solid var(--bamboo);
  border-bottom: 1.6px solid var(--bamboo);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s;
}

.faq-list details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq-list summary:hover { color: var(--bamboo-deep); }

.faq-list details p {
  padding: 0 2rem 1.6rem 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 52em;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------------- 预约 ---------------- */
.book {
  background: linear-gradient(160deg, var(--cream-2), var(--cream));
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 7rem 0;
}

.book-inner { width: min(720px, 92vw); margin: 0 auto; }

.book h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  line-height: 1.35;
}

.book p {
  margin: 1.4rem auto 0;
  max-width: 34em;
  font-size: 0.97rem;
  color: var(--ink-soft);
}

.book-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.4rem;
}

.book-note {
  margin-top: 1.8rem !important;
  font-size: 0.78rem !important;
  color: var(--muted) !important;
  letter-spacing: 0.06em;
}

/* ---------------- Footer ---------------- */
.footer {
  background: #1d2019;
  color: #b8bdaf;
  padding: 2.8rem 0;
}

.footer-inner {
  width: min(1180px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem 3rem;
}

.footer-brand { display: flex; flex-direction: column; gap: 0.3rem; }

.footer-brand strong {
  font-family: var(--serif);
  font-size: 1.08rem;
  letter-spacing: 0.1em;
  color: #e6e9df;
}

.footer-brand span {
  font-size: 0.74rem;
  letter-spacing: 0.17em;
  color: #6f7565;
}

.footer-note {
  font-size: 0.76rem;
  color: #6f7565;
  max-width: 40em;
  line-height: 1.9;
}

/* ---------------- 滚动揭示 ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in { opacity: 1; transform: none; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 6.5rem 0 3rem;
  }
  .hero-bg {
    position: relative;
    right: auto;
    width: 100%;
    height: 46vh;
    border-radius: 4px;
    order: -1;
    margin-bottom: 2rem;
  }
  .hero-bg::after { border-radius: 4px; background: linear-gradient(to top, rgba(250,247,240,0.7), transparent 60%); }
  .hero-content { max-width: 100%; }

  .how-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 820px) {
  .nav-links { gap: 1rem; font-size: 0.84rem; }
  .nav-links a:not(.nav-cta):nth-child(5) { display: none; }
  .hero-facts { grid-template-columns: 1fr; gap: 0.9rem; }
}

@media (max-width: 620px) {
  .nav-links { display: none; }
  .section { padding: 4.4rem 0; }
  .hero h1 { font-size: clamp(2.3rem, 9vw, 3rem); }
  .lede { font-size: 0.95rem; }
  .btn { width: 100%; text-align: center; }
  .hero-actions, .book-actions { flex-direction: column; }
  .card-body { padding: 1.6rem 1.4rem 1.9rem; }
  .price-table thead th,
  .price-table tbody th,
  .price-table tbody td { padding: 1rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .eyebrow, .hero h1, .lede, .hero-actions, .hero-facts { opacity: 1; }
}
