/* 邻家服务 · LinJia Home Care
   One shared system: paper ledger, teal service ground, Songti display, quiet rules. */

:root {
  --paper: #F0EEE9;
  --soft: #D4DEDA;
  --ink: #1A1A1A;
  --field: #2A7F7F;
  --on-field: #FFFFFF;
  --surface: #F8F6F2;
  --surface-2: #E9EDE8;
  --muted: #4F5D5B;
  --line: rgba(26, 26, 26, .14);
  --line-strong: rgba(26, 26, 26, .30);
  --line-on-field: rgba(255, 255, 255, .28);
  --line-on-dark: rgba(255, 255, 255, .18);

  --font-display: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-text: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --t-h1: clamp(36px, 4.4vw, 54px);
  --t-h2: clamp(26px, 3vw, 34px);
  --t-h3: clamp(19px, 1.6vw, 22px);
  --t-lead: clamp(16px, 1.35vw, 19px);
  --t-body: 16.5px;
  --t-small: 14px;
  --t-label: 13px;
  --t-stat: clamp(30px, 3.4vw, 42px);

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;

  --wrap: 1200px;
  --gutter: 24px;
  --nav-h: 72px;
  --frame-gap: 24px;
  --section-pad: clamp(24px, 3.2vw, 40px);

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
}

* { box-sizing: border-box; }

html {
  margin: 0;
  scroll-behavior: auto;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--field); color: var(--on-field); }

:focus-visible {
  outline: 2px solid var(--field);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 200;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  font-size: var(--t-small);
  text-decoration: none;
}
.skip-link:focus {
  width: auto;
  height: auto;
  clip-path: none;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

main { display: block; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.1;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  background: var(--field);
  color: var(--on-field);
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1;
}

.brand-text { display: grid; gap: 3px; min-width: 0; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}
.brand-text small {
  font-size: 13px;
  line-height: 1.2;
  color: var(--muted);
  letter-spacing: .08em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 26px);
  margin-left: auto;
  min-width: 0;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 2px;
  background: var(--field);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s ease;
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { font-weight: 600; }
.nav-phone { color: var(--muted); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-width: 0;
  margin-left: var(--s-2);
}
.header-actions > * { flex: 0 0 auto; }

.header-cta { min-height: 44px; }

.motion-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--ink);
}
.motion-menu-toggle .motion-menu-icon { display: grid; gap: 5px; }
.motion-menu-toggle .motion-menu-icon i {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
}

/* ---------- Type ---------- */

h1, h2, h3, h4, p, ul, ol, dl, blockquote { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.015em;
}
h1 {
  font-size: var(--t-h1);
  line-height: 1.07;
  max-width: 18ch;
}
h2 {
  font-size: var(--t-h2);
  line-height: 1.16;
  max-width: 26ch;
}
h3 {
  font-size: var(--t-h3);
  line-height: 1.3;
  letter-spacing: -.005em;
}
p, li, dd, dt { font-size: var(--t-body); line-height: 1.65; }
.lead {
  font-size: var(--t-lead);
  line-height: 1.62;
  max-width: 58ch;
  color: var(--muted);
}
.small { font-size: 16px; line-height: 1.55; }
.label {
  font-size: var(--t-label);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .06em;
}
.muted { color: var(--muted); }
.measure { max-width: 62ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: none;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--field);
  border-color: var(--field);
  color: var(--on-field);
}
.btn-primary:hover { background: #236C6C; border-color: #236C6C; }
.btn-secondary {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-secondary:hover { border-color: var(--ink); background: rgba(26, 26, 26, .04); }
.btn-on-field {
  background: var(--on-field);
  border-color: var(--on-field);
  color: var(--field);
}
.btn-on-field:hover { background: var(--paper); border-color: var(--paper); }
.btn-outline-field {
  background: transparent;
  border-color: var(--line-on-field);
  color: var(--on-field);
}
.btn-outline-field:hover { border-color: var(--on-field); background: rgba(255, 255, 255, .08); }
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}
.btn-row .btn { flex: 0 0 auto; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: var(--field);
  font-size: var(--t-small);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .18s ease, gap .18s ease;
}
.link:hover { border-color: currentColor; gap: 11px; }
.link::after { content: "→"; font-weight: 500; }
.link--on-field { color: var(--on-field); }

/* ---------- Sections ---------- */

.section {
  padding-block: var(--section-pad);
  background: var(--paper);
}
.section--soft { background: var(--soft); }
.section--surface { background: var(--surface); }
.section--field {
  background: var(--field);
  color: var(--on-field);
}
.section--ink {
  background: var(--ink);
  color: var(--on-field);
}
.section--field .muted,
.section--ink .muted { color: rgba(255, 255, 255, .78); }
.section--field .lead,
.section--ink .lead { color: rgba(255, 255, 255, .84); }
.section--field h2,
.section--field h3,
.section--ink h2,
.section--ink h3 { color: var(--on-field); }
.section--field .eyebrow,
.section--ink .eyebrow { color: var(--on-field); }

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-5);
  align-items: end;
  margin-bottom: var(--s-6);
}
.section-head > .head-main { grid-column: span 6; display: grid; gap: var(--s-3); }
.section-head > .head-side { grid-column: 8 / span 5; display: grid; gap: var(--s-3); }
.section-head h2 { max-width: 22ch; }
.section-head .lead { max-width: 52ch; }

.section-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}
.section--field .section-foot,
.section--ink .section-foot { border-color: var(--line-on-field); }

/* ---------- Grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-5);
}
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }
.start-7 { grid-column-start: 7; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--field);
  color: var(--on-field);
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  padding-block: clamp(28px, 4vw, 56px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-5);
  align-items: center;
}

.hero-copy {
  grid-column: span 6;
  display: grid;
  gap: var(--s-5);
  align-content: center;
  max-width: 620px;
}

.hero .eyebrow { color: var(--on-field); }
.hero h1 {
  color: var(--on-field);
  max-width: 13ch;
  text-wrap: balance;
}
.hero-lead {
  max-width: 52ch;
  font-size: var(--t-lead);
  line-height: 1.62;
  color: rgba(255, 255, 255, .88);
}
.hero .btn-row { margin-top: var(--s-1); }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: var(--s-4);
  border-top: 1px solid var(--line-on-field);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .82);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust span::before {
  content: "";
  width: 4px;
  height: 4px;
  flex: none;
  border-radius: 50%;
  background: var(--on-field);
  opacity: .7;
}

.hero-media {
  grid-column: span 6;
  position: relative;
  align-self: center;
  overflow: hidden;
  border: 1px solid var(--line-on-field);
  border-radius: var(--r-lg);
  background: var(--soft);
  box-shadow: 0 24px 60px rgba(8, 38, 38, .22);
}
.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .7s ease;
}
.hero-media:hover img { transform: scale(1.02); }

.hero-fact {
  position: absolute;
  left: var(--s-4);
  bottom: var(--s-4);
  display: grid;
  gap: 2px;
  max-width: 250px;
  padding: 12px 14px;
  background: var(--paper);
  color: var(--ink);
  border-left: 3px solid var(--field);
}
.hero-fact strong {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 600;
}
.hero-fact span { font-size: 13px; line-height: 1.45; color: var(--muted); }

/* ---------- Trust strip ---------- */

.trust-strip { background: var(--soft); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-5);
}
.trust-item {
  display: grid;
  gap: 8px;
  align-content: start;
  padding-top: var(--s-3);
  border-top: 1px solid var(--line-strong);
}
.trust-item strong {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
}
.trust-item p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.trust-item .link { min-height: 32px; margin-top: 2px; }

/* ---------- Service cards ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-5);
}
.service-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.service-card:nth-child(4),
.service-card:nth-child(5) { grid-column: span 6; }
.service-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 14px 34px rgba(26, 26, 26, .07);
}
.service-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .6s ease;
}
.service-card:hover img { transform: scale(1.02); }
.service-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  flex: 1;
  padding: var(--s-5);
}
.service-card h3 { margin: 0; }
.service-card-body p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.service-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.4;
}
.service-card-meta strong { font-size: 15px; font-weight: 600; color: var(--field); }
.service-card .link { margin-top: auto; }

/* ---------- Price rows / lists ---------- */

.ledger {
  border-top: 1px solid var(--line);
}
.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-4);
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.price-row strong { font-size: 16px; font-weight: 600; }
.price-row span { font-size: 16px; color: var(--muted); text-align: right; }
.section--field .price-row,
.section--ink .price-row { border-color: var(--line-on-field); }
.section--field .price-row span,
.section--ink .price-row span { color: rgba(255, 255, 255, .8); }

.bullet-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bullet-list li {
  position: relative;
  padding-left: 18px;
  font-size: 16px;
  line-height: 1.65;
}
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.bullet-list--field li::before { border-color: var(--on-field); }

/* ---------- Process ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
}
.step {
  display: grid;
  gap: var(--s-3);
  align-content: start;
  padding-top: var(--s-4);
  border-top: 1px solid var(--line-on-field);
}
.step-num {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
  color: var(--on-field);
  opacity: .72;
}
.step h3 { color: var(--on-field); }
.step p { color: rgba(255, 255, 255, .82); font-size: 16px; }
.process-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--s-5);
  padding: 10px 14px;
  border: 1px solid var(--line-on-field);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .9);
}

/* ---------- Area ---------- */

.area-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-5);
  align-items: start;
}
.area-copy { grid-column: span 6; display: grid; gap: var(--s-4); }
.area-side { grid-column: 8 / span 5; display: grid; gap: var(--s-5); }
.area-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  line-height: 1.4;
}
.chip--solid { background: var(--field); border-color: var(--field); color: var(--on-field); }
.community-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.community-list li { font-size: 14px; line-height: 1.5; color: var(--muted); }
.area-note {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-4);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- Standards ---------- */

.standard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-5);
}
.standard-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}
.standard-item .num {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  color: var(--field);
}
.standard-item h3 { font-size: 19px; margin-bottom: 6px; }
.standard-item p { font-size: 16px; line-height: 1.65; color: var(--muted); }
.section--field .standard-item,
.section--ink .standard-item { border-color: var(--line-on-field); }
.section--field .standard-item .num,
.section--ink .standard-item .num { color: var(--on-field); }
.section--field .standard-item p,
.section--ink .standard-item p { color: rgba(255, 255, 255, .82); }

/* ---------- Reviews ---------- */

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
}
.review-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-5);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.review-card blockquote {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.55;
  letter-spacing: -.005em;
}
.review-card footer {
  display: grid;
  gap: 3px;
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.review-card footer strong { color: var(--ink); font-weight: 600; }

/* ---------- FAQ ---------- */

.faq-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--s-5);
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.filter-btn:hover { border-color: var(--line-strong); }
.filter-btn[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  width: 24px;
  text-align: center;
  font-family: var(--font-text);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--muted);
  transition: transform .18s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { color: var(--field); }
.faq-answer {
  max-width: 72ch;
  padding: 0 32px 20px 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
.faq-answer a { color: var(--field); text-underline-offset: 3px; }
.faq-category-key { display: none; }
.faq-empty {
  margin-top: var(--s-4);
  padding: var(--s-4);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 16px;
  color: var(--muted);
}
.faq-preview { max-width: 900px; }
.faq-preview .faq-item summary { font-size: 16px; }

/* ---------- Page head ---------- */

.page-head {
  background: var(--soft);
  padding-block: clamp(32px, 4.4vw, 56px);
}
.page-head-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-5);
  align-items: end;
}
.page-head-main { grid-column: span 7; display: grid; gap: var(--s-3); }
.page-head-side { grid-column: 9 / span 4; display: grid; gap: var(--s-3); align-content: end; }
.page-head h1 { max-width: 16ch; }
.page-head .lead { max-width: 56ch; }
.page-head .fact-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}
.page-head .fact-list li { display: flex; gap: 8px; }
.page-head .fact-list li::before { content: "—"; color: var(--field); }

/* ---------- Services page ---------- */

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--s-4);
}
.anchor-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.anchor-nav a:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.overview-list {
  display: grid;
  border-top: 1px solid var(--line);
}
.overview-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, .8fr) auto;
  gap: var(--s-4);
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: padding-left .18s ease, background-color .18s ease;
}
.overview-row:hover { padding-left: 8px; background: var(--surface); }
.overview-row strong { font-size: 16px; font-weight: 600; }
.overview-row span { font-size: 14px; color: var(--muted); }
.overview-row .overview-link { font-size: 13px; font-weight: 600; color: var(--field); white-space: nowrap; }

.service-detail {
  --detail-pad: clamp(24px, 3vw, 40px);
  padding-block: var(--detail-pad);
  border-top: 1px solid var(--line);
}
.service-detail:first-of-type { border-top: 0; }
.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-6);
  align-items: start;
}
.service-detail-copy { grid-column: span 6; display: grid; gap: var(--s-4); }
.service-detail-media { grid-column: 8 / span 5; display: grid; gap: var(--s-3); }
.service-detail-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.service-detail h2 { margin: 0; }
.detail-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
}
.detail-title-row .price {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  color: var(--field);
  white-space: nowrap;
}
.detail-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-5);
}
.detail-block h3 {
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 10px;
}
.detail-block ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.detail-block li {
  position: relative;
  padding-left: 15px;
  font-size: 16px;
  line-height: 1.6;
}
.detail-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.detail-block--exclude li::before { border-radius: 0; border: 0; background: currentColor; opacity: .55; }
.detail-note {
  padding: var(--s-3) var(--s-4);
  border-left: 3px solid var(--field);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}
.detail-fit {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}
.detail-fit strong { color: var(--ink); font-weight: 600; }

.addon-list { border-top: 1px solid var(--line); }
.addon-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .6fr) minmax(0, .9fr);
  gap: var(--s-4);
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.addon-row strong { font-size: 15px; font-weight: 600; }
.addon-row span { font-size: 14px; color: var(--muted); }
.addon-row .addon-price { font-weight: 600; color: var(--ink); }

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-5);
}
.boundary-copy { grid-column: span 5; display: grid; gap: var(--s-4); }
.boundary-list { grid-column: 7 / span 6; display: grid; gap: 0; }
.boundary-list .price-row { border-color: var(--line-on-field); }
.boundary-list .price-row span { color: rgba(255, 255, 255, .8); }

/* ---------- Booking ---------- */

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: var(--s-6);
  align-items: start;
}
.form-panel {
  padding: clamp(20px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.form-panel > h2 { margin-bottom: var(--s-2); }
.form-panel > .form-note { margin-bottom: var(--s-5); font-size: 16px; line-height: 1.6; color: var(--muted); }
.form-panel .juabc-form { display: grid; gap: var(--s-4); }
.booking-aside { display: grid; gap: var(--s-4); }
.aside-card {
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.aside-card h2,
.aside-card h3 { margin-bottom: var(--s-3); }
.aside-card p { font-size: 16px; line-height: 1.65; color: var(--muted); }
.aside-steps { display: grid; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.aside-steps li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.aside-steps li:first-child { border-top: 0; padding-top: 0; }
.aside-steps .num {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  color: var(--field);
}
.aside-steps strong { display: block; font-size: 14px; line-height: 1.5; }
.aside-steps span { font-size: 16px; line-height: 1.55; color: var(--muted); }
.contact-lines { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.contact-lines li { font-size: 14px; line-height: 1.55; }
.contact-lines a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.contact-lines a:hover { border-color: var(--field); color: var(--field); }
.wechat-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.wechat-copy:hover { border-color: var(--field); color: var(--field); }
.copy-status { font-size: 13px; line-height: 1.4; color: var(--field); }
.booking-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-5);
}
.booking-note {
  padding: var(--s-4);
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--r-sm);
}
.booking-note h3 { font-family: var(--font-text); font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.booking-note p { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* ---------- About ---------- */

.story-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-5);
  align-items: start;
}
.story-copy { grid-column: span 6; display: grid; gap: var(--s-4); }
.story-media { grid-column: 8 / span 5; display: grid; gap: var(--s-3); }
.story-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.story-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-2);
}
.story-stat {
  display: grid;
  gap: 2px;
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
}
.story-stat strong { font-family: var(--font-display); font-size: 26px; line-height: 1.15; color: var(--field); }
.story-stat span { font-size: 13px; line-height: 1.4; color: var(--muted); }

.service-day {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-5);
  align-items: start;
}
.service-day-copy { grid-column: span 6; display: grid; gap: var(--s-3); }
.service-day-facts { grid-column: 8 / span 5; display: grid; gap: 0; }
.service-day-facts .price-row { border-color: var(--line); }

/* ---------- Legal ---------- */

.legal-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-5);
  align-items: start;
}
.legal-toc { grid-column: span 3; display: grid; gap: var(--s-2); }
.legal-toc a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
  color: var(--muted);
}
.legal-toc a:hover { color: var(--field); }
.legal-body { grid-column: 5 / span 8; display: grid; gap: var(--s-7); }
.legal-section { display: grid; gap: var(--s-4); }
.legal-section h2 { max-width: 24ch; }
.legal-block { display: grid; gap: 8px; }
.legal-block h3 { font-family: var(--font-text); font-size: 16px; font-weight: 600; }
.legal-block p { font-size: 16px; line-height: 1.7; color: var(--muted); }
.legal-updated { font-size: 13px; color: var(--muted); }

/* ---------- CTA / footer ---------- */

.cta-band { background: var(--field); color: var(--on-field); }
.cta-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-5);
  align-items: end;
}
.cta-copy { grid-column: span 7; display: grid; gap: var(--s-3); }
.cta-actions { grid-column: 9 / span 4; display: grid; gap: var(--s-3); justify-items: start; align-content: end; }
.cta-actions .btn { width: 100%; }
.cta-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line-on-field);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .82);
}

.site-footer {
  background: var(--ink);
  color: var(--on-field);
  padding-block: var(--s-7) var(--s-4);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: var(--s-6);
}
.footer-brand { display: grid; gap: var(--s-3); align-content: start; }
.footer-brand .brand { color: var(--on-field); }
.footer-brand .brand-mark { background: var(--field); }
.footer-brand .brand-text small { color: rgba(255, 255, 255, .62); }
.footer-brand p { font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .72); max-width: 34ch; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col h2 {
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .62);
}
.footer-col a,
.footer-col p,
.footer-col span { font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .86); text-decoration: none; }
.footer-col a:hover { color: var(--on-field); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: var(--s-7);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line-on-dark);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .62);
}
.footer-bottom a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.footer-bottom a:hover { color: var(--on-field); }

/* ---------- Utility ---------- */

.stack { display: grid; gap: var(--s-4); }
.stack-sm { display: grid; gap: var(--s-2); }
.stack-lg { display: grid; gap: var(--s-6); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.full-width { width: 100%; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .site-nav { gap: 12px; }
  .nav-link { font-size: 13px; }
  .header-actions { gap: 8px; }
  .hero-copy { grid-column: span 7; }
  .hero-media { grid-column: span 5; }
}

@media (max-width: 960px) {
  :root { --nav-h: 64px; }
  .site-nav { display: none; }
  .header-cta { display: none; }
  .motion-menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; gap: 2px; }
  .header-inner { gap: 12px; }
  .brand-text small { display: none; }
  .hero-copy,
  .hero-media { grid-column: span 12; }
  .hero-media { max-width: 720px; }
  .hero h1 { max-width: 15ch; }
  .section-head > .head-main,
  .section-head > .head-side { grid-column: span 12; }
  .section-head { align-items: start; gap: var(--s-3); }
  .section-head .lead { max-width: 62ch; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) { grid-column: span 6; }
  .process-grid { grid-template-columns: 1fr; gap: var(--s-4); }
  .area-copy,
  .area-side,
  .boundary-copy,
  .boundary-list,
  .story-copy,
  .story-media,
  .service-day-copy,
  .service-day-facts { grid-column: span 12; }
  .area-side { margin-top: var(--s-2); }
  .standard-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .page-head-main,
  .page-head-side { grid-column: span 12; }
  .page-head-side { margin-top: var(--s-2); }
  .overview-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) auto; }
  .overview-row .overview-duration { display: none; }
  .service-detail-copy,
  .service-detail-media { grid-column: span 12; }
  .service-detail-media { order: -1; }
  .booking-layout { grid-template-columns: 1fr; }
  .cta-copy,
  .cta-actions { grid-column: span 12; }
  .cta-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-items: stretch; }
  .legal-toc { grid-column: span 12; }
  .legal-toc nav { display: flex; flex-wrap: wrap; gap: 8px; }
  .legal-toc a { border: 1px solid var(--line); padding: 8px 12px; }
  .legal-body { grid-column: span 12; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  :root {
    --gutter: 24px;
    --t-body: 16px;
    --section-pad: clamp(22px, 6vw, 32px);
  }
  .brand-text strong { font-size: 18px; }
  .brand-mark { width: 32px; height: 32px; font-size: 18px; }
  .hero { min-height: calc(100svh - var(--nav-h)); padding-block: 28px 32px; }
  .hero-grid { gap: 24px; }
  .hero-copy { gap: 16px; }
  .hero h1 { font-size: 38px; line-height: 1.08; max-width: 12ch; }
  .hero-lead { font-size: 16px; line-height: 1.6; }
  .hero .btn-row { display: grid; gap: 10px; }
  .hero .btn-row .btn { width: 100%; }
  .hero-trust { gap: 6px 14px; font-size: 13px; }
  .hero-fact { position: static; margin-top: 12px; max-width: none; }
  .hero-media img { aspect-ratio: 16 / 9; }
  .section-head { margin-bottom: 24px; }
  .trust-grid { grid-template-columns: 1fr; gap: 16px; }
  .trust-item { padding-top: 12px; }
  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) { grid-column: span 12; }
  .service-card-body { padding: 18px; }
  .detail-columns { grid-template-columns: 1fr; gap: 16px; }
  .service-detail-grid { gap: 20px; }
  .service-detail { --detail-pad: 24px; }
  .addon-row { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .addon-row .addon-with { grid-column: 1 / -1; }
  .overview-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 0; }
  .overview-row .overview-price { grid-column: 2; grid-row: 1; }
  .overview-row .overview-link { grid-column: 1 / -1; }
  .process-note { display: flex; }
  .community-list { grid-template-columns: 1fr; }
  .story-stats { grid-template-columns: 1fr; }
  .booking-notes { grid-template-columns: 1fr; }
  .cta-actions { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section-foot { align-items: flex-start; }
  .faq-answer { padding-right: 28px; }
  .filter-btn { min-height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .btn:hover,
  .service-card:hover,
  .hero-media:hover img { transform: none; }
}

/* Keep the first frame a full viewport even after the platform rhythm layer annotates sections.
   Specificity intentionally beats section[data-fwai-frame][data-fwai-rhythm="hero"]. */
main > section.hero[data-fwai-frame="true"] {
  min-height: calc(100svh - var(--nav-h));
  padding-block: clamp(28px, 4vw, 56px);
}
@media (max-width: 640px) {
  main > section.hero[data-fwai-frame="true"] { padding-block: 28px 32px; }
}

/* Hero bottom rail: closes the first frame without adding a floating chip. */
.hero-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
}
.hero-foot-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .76);
}
.hero-foot-inner::before {
  content: "";
  width: 36px;
  height: 1px;
  flex: none;
  background: rgba(255, 255, 255, .45);
}
@media (max-width: 960px) {
  .hero-foot { display: none; }
}
