@font-face {
  font-family: HsyHeading;
  src: url("assets/hsy-heading-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #242a32;
  --muted: #5f6570;
  --accent: #b94333;
  --accent-dark: #a6382b;
  --orange: #c14a34;
  --soft-orange: #fff5f1;
  --line: #e5e7eb;
  --page-width: 480px;
  --dock-height: calc(66px + env(safe-area-inset-bottom, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-bottom: var(--dock-height); }
body {
  margin: 0;
  color: var(--ink);
  background: #edf0f3;
  font: 1rem/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-text-size-adjust: 100%;
}
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #215d9f; outline-offset: 3px; }
svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.svg-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }

.page {
  container-type: inline-size;
  width: 100%;
  max-width: var(--page-width);
  margin-inline: auto;
  padding-bottom: var(--dock-height);
  background: #fff;
  --gutter: clamp(12px, 4.27cqw, 20px);
  --gap: clamp(8px, 2.67cqw, 13px);
}

/* Original blue and yellow hero. The title, offer, and cards follow normal document flow. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 10.7cqw, 48px) var(--gutter) 16px;
  background: linear-gradient(#adc4ec 0%, #a9c0e7 52%, #9eb4d8 80%, #566378 89%, #1f2732 100%);
  text-align: center;
}
.hero h1 {
  font-family: HsyHeading, "Microsoft YaHei", sans-serif;
  font-size: clamp(2.125rem, 12cqw, 3.125rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.035em;
  color: #0a0e15;
}
.hero-subtitle {
  margin: 9px auto 0;
  color: #33465c;
  font-size: clamp(.8125rem, 3.83cqw, .9375rem);
  line-height: 1.6;
  text-wrap: balance;
}
.hero-offer {
  display: flex;
  min-height: 36px;
  width: min(252px, 100%);
  margin: 15px auto 0;
  overflow: hidden;
  border-radius: 999px;
  background: #fff;
  color: #141821;
  font-size: clamp(1rem, 4.8cqw, 1.1875rem);
  line-height: 1.4;
}
.hero-offer > * { display: grid; place-items: center; padding: 5px 9px; }
.hero-offer strong { width: 46%; background: #ffdc27; font-weight: 700; }
.hero-offer > span { flex: 1; font-weight: 500; }
.hero-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: clamp(16px, 5.33cqw, 24px);
}
.hero-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 11px;
  background: #ffdb30;
  color: #211d13;
  transition: box-shadow .16s ease, border-color .16s ease;
}
.hero-card > img, .hero-pair { width: 100%; aspect-ratio: 1.11; height: auto; object-fit: cover; }
.hero-card > span {
  display: grid;
  place-content: center;
  min-height: 51px;
  flex: 1;
  padding: 5px 4px;
  font-size: clamp(.875rem, 4cqw, 1rem);
  font-weight: 650;
  line-height: 1.28;
}
.hero-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2px; background: #fff; }
.hero-pair figure { position: relative; min-width: 0; min-height: 0; }
.hero-pair img { width: 100%; height: 100%; object-fit: cover; }
.hero-pair figcaption {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  padding: 1px 4px;
  border-radius: 3px;
  background: #ffeb64;
  color: #211d13;
  font-size: .6875rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}
.hero-building {
  position: absolute;
  z-index: -1;
  left: 0;
  bottom: 0;
  width: 100%;
  height: clamp(92px, 29cqw, 130px);
  object-fit: cover;
  object-position: center;
  opacity: .74;
}
.hero-promise {
  display: block;
  width: 100%;
  margin-top: clamp(40px, 14cqw, 66px);
  padding: 8px 6px;
  border: 1px solid #d3dfef;
  border-radius: 24px;
  background: #1b2636bf;
  color: #fff;
  font-size: clamp(.75rem, 3.55cqw, .9375rem);
  font-weight: 650;
  line-height: 1.5;
  text-wrap: balance;
}

/* Services stay in the original order and keep their photo-and-text cards. */
.services { padding: 21px var(--gutter) 20px; }
.services-heading { text-align: center; margin-bottom: 18px; }
.services-heading h2 { color: var(--accent); font-size: 1.375rem; font-weight: 750; line-height: 1.4; }
.services-heading p { margin-top: 5px; color: var(--muted); font-size: .9375rem; }
.service-list { display: grid; gap: 10px; }
.service-card {
  display: grid;
  grid-template-columns: minmax(0, 36%) minmax(0, 1fr);
  min-height: 113px;
  scroll-margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  background: #fff;
}
.service-card > img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.service-card > div { display: flex; flex-direction: column; min-width: 0; padding: 10px 11px 0; }
.service-card h3 { font-size: .96875rem; line-height: 1.45; font-weight: 700; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 5px; }
.tags > * { display: inline-block; padding: 1px 4px; border-radius: 4px; font-size: .6875rem; line-height: 1.45; white-space: nowrap; }
.tags span { background: #f1f4f7; color: #4e5d70; }
.tags b { background: #ffebe5; color: #96392c; font-weight: 650; }
.view-more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  margin-top: auto;
  padding: 0 6px 0 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: .8125rem;
  font-weight: 650;
  line-height: 1.3;
}
.view-more i { font-size: 1.15rem; line-height: 1; font-style: normal; }
.consult-strip, .faq-consult {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 66px;
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--soft-orange);
}
.consult-strip { margin-top: 14px; }
.consult-strip > img { width: 36px; height: auto; flex: none; }
.consult-strip > div { display: flex; flex-direction: column; min-width: 0; }
.consult-strip strong, .faq-consult strong { font-size: .875rem; font-weight: 650; line-height: 1.4; }
.consult-strip span { color: var(--muted); font-size: .75rem; line-height: 1.5; margin-top: 3px; }
.consult-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 44px;
  min-width: 52px;
  margin-left: auto;
  padding: 5px 11px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: .8125rem;
  font-weight: 650;
  white-space: nowrap;
}

/* Retain the original banner and five photo groups. Let each description wrap naturally. */
.feature-banner {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: clamp(120px, 34cqw, 164px);
  margin-bottom: 18px;
  padding: 22px var(--gutter) 18px;
  overflow: hidden;
  text-align: center;
  background: #586568;
  color: #fff;
  clip-path: polygon(0 6%, 50% 13%, 100% 6%, 100% 100%, 50% 92%, 0 100%);
}
.feature-banner img { position: absolute; z-index: -2; object-fit: fill; }
.banner-left { inset: 0 auto 0 0; width: 17.33%; height: 100%; }
.banner-right { inset: 0 0 0 auto; width: 14.67%; height: 100%; }
.banner-top { inset: 0 auto auto 17.33%; width: 68%; height: 33%; }
.banner-bottom { inset: auto auto 0 17.33%; width: 68%; height: 22%; }
.feature-banner::after { content: ""; position: absolute; z-index: -1; inset: 0; background: #1c2b32a0; }
.banner-frame { position: absolute; inset: 14px 6px; z-index: -1; border: 1px solid #a0c5c5a0; clip-path: polygon(0 0, 50% 12%, 100% 0, 100% 100%, 50% 88%, 0 100%); }
.feature-banner h2 { font-size: clamp(1.25rem, 5.87cqw, 1.5rem); line-height: 1.4; }
.feature-banner p { font-size: .875rem; }
.feature { margin: 0 var(--gutter) 18px; }
.feature h3, .orange-pill {
  width: fit-content;
  margin: 0 auto 10px;
  padding: 6px 18px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  text-align: center;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 700;
}
.feature figure { overflow: hidden; border-radius: 12px 12px 0 0; background: #e0e2dd; }
.feature img { width: 100%; height: auto; aspect-ratio: 3.35; object-fit: cover; }
.feature p {
  padding: 10px 13px 12px;
  border: 1px solid #edeae5;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #efefea;
  color: #343a3f;
  font-size: 1rem;
  line-height: 1.65;
}

.comparison { padding-inline: var(--gutter); }
.comparison-first { padding-top: 8px; scroll-margin-top: 12px; }
.comparison-second { padding-top: 12px; padding-bottom: 21px; }
.orange-pill { min-width: 132px; margin-bottom: 14px; font-size: 1.0625rem; }
.compare-pairs { display: grid; gap: 12px; }
.compare-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.compare-pair figure { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #f2f5f8; }
.compare-pair figcaption { padding: 5px 4px; color: #465468; text-align: center; font-size: .8125rem; font-weight: 700; }
.compare-pair figure:last-child figcaption { background: #fff0e8; color: #9b382a; }
.compare-photo { display: block; width: 100%; padding: 0; border: 0; background: none; }
.compare-pair img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.compare-photo:focus-visible { position: relative; outline-offset: -3px; }

.case-banner {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(154px, 48cqw, 220px);
  padding: 18px var(--gutter) 15px;
  overflow: hidden;
  text-align: center;
  background: #555954;
  color: #fff;
}
.case-banner img { position: absolute; z-index: -2; left: 0; width: 100%; object-fit: cover; }
.case-banner-top { top: 0; height: 62%; object-position: center; }
.case-banner-bottom { bottom: 0; height: 20%; }
.case-banner::after { content: ""; position: absolute; z-index: -1; inset: 38% 0 0; background: linear-gradient(transparent, #242b29cc 52%); }
.case-banner h2 { font-size: 1.5rem; line-height: 1.4; }
.case-banner p { margin-top: 4px; font-size: .875rem; font-weight: 500; line-height: 1.5; }
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px var(--gap);
  padding: 14px var(--gutter) 22px;
}
.case-card { min-width: 0; }
.case-card button {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  text-align: left;
  overflow: hidden;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.case-photo { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; }
.case-photo > img { width: 100%; height: 100%; object-fit: cover; }
.case-photo > span { position: absolute; left: 7px; bottom: 7px; padding: 2px 5px; border-radius: 4px; background: #9c3b2bea; color: #fff; font-size: .6875rem; line-height: 1.5; }
.case-card h3 { padding: 9px 8px 10px; font-size: .875rem; font-weight: 650; line-height: 1.55; overflow-wrap: anywhere; }

.about { border-top: 1px solid var(--line); }
.about-heading { padding: 23px var(--gutter) 12px; text-align: center; }
.about-heading h2 { font-size: 1.375rem; line-height: 1.45; }
.about-heading strong { color: var(--accent); }
.about-heading p { margin-top: 6px; color: var(--muted); font-size: .875rem; }
.about-body { padding: 4px var(--gutter) 22px; }
.about-body > img { width: 100%; height: auto; border-radius: 11px; }
.about-body > p { padding-top: 12px; color: #414751; font-size: 1rem; line-height: 1.8; }

.faq { padding: 0 var(--gutter) 16px; }
.faq h2 { margin-bottom: 10px; font-size: 1.1875rem; }
.faq-item { position: relative; padding: 12px 0 4px 27px; border-top: 1px solid var(--line); }
.question-label { position: absolute; top: 14px; left: 0; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 4px; background: var(--accent); color: #fff; font-weight: 650; font-size: .75rem; }
.faq-item h3 { color: var(--ink); font-size: .96875rem; line-height: 1.55; font-weight: 700; }
.faq-item > p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 5px; color: var(--muted); font-size: .9375rem; line-height: 1.67; }
.faq-item.is-open > p { display: block; }
.faq-expand { display: block; min-height: 44px; min-width: 60px; margin-left: auto; padding: 0 3px 0 8px; border: 0; background: transparent; color: var(--accent); font-size: .8125rem; font-weight: 650; }
.faq-consult { margin-top: 10px; gap: 6px; }
.faq-consult img { width: clamp(55px, 22cqw, 105px); height: auto; flex: none; }
.faq-consult strong { font-size: .8125rem; }

.quote { padding: 24px var(--gutter) 18px; border-top: 1px solid var(--line); scroll-margin-top: 12px; }
.quote h2 { text-align: center; font-size: 1.375rem; line-height: 1.4; }
.quote-promo { width: fit-content; margin: 9px auto 19px; padding: 4px 13px; border-radius: 24px; background: var(--soft-orange); color: var(--accent-dark); font-size: .8125rem; }
#quote-form > label { display: block; margin-bottom: 6px; color: var(--ink); font-size: .9375rem; font-weight: 650; }
#quote-form > label span { color: var(--accent); }
#quote-form > input {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border: 1px solid #cfd5db;
  border-radius: 8px;
  background: #fcfcfd;
  color: var(--ink);
  font-size: 1rem;
}
#quote-form > input::placeholder { color: #68717d; }
#quote-form > input[aria-invalid="true"] { border-color: var(--accent); background: #fff7f4; }
.privacy-check { display: flex; flex-wrap: wrap; align-items: center; column-gap: 3px; margin: 0 0 6px; color: var(--muted); font-size: .8125rem; }
.privacy-option { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; min-height: 44px; }
.privacy-option > input { width: 18px; height: 18px; flex: none; margin: 0; accent-color: var(--accent); }
.privacy-check > button { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--accent-dark); font-size: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.form-feedback:not(:empty) { margin-bottom: 8px; color: var(--accent-dark); font-size: .875rem; }
.submit-button { display: block; min-height: 48px; width: 100%; padding: 8px 10px; border: 0; border-radius: 25px; background: linear-gradient(105deg, #bd4e37, #bf365a); color: #fff; font-size: 1rem; font-weight: 700; }
.quote-ticker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 4px 8px;
  min-height: 42px;
  margin-top: 13px;
  padding: 7px 8px;
  border-radius: 9px;
  background: var(--soft-orange);
  color: var(--accent-dark);
  font-size: .75rem;
  white-space: nowrap;
}
.quote-ticker svg { width: 15px; height: 15px; }
.quote-ticker strong { border-radius: 4px; padding: 2px 5px; background: #ffdcd2; color: #923326; font-size: .75rem; font-weight: 650; }
.company-footer { padding: 8px var(--gutter) 16px; text-align: center; font-size: .875rem; color: var(--muted); }

.contact-bar {
  position: fixed;
  z-index: 10;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: min(100%, var(--page-width));
  min-height: var(--dock-height);
  padding: 9px clamp(12px, 4.27cqw, 20px) calc(9px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 -4px 15px #1c2b3510;
}
.contact-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 5px;
  min-width: 0;
  min-height: 46px;
  padding: 4px 6px;
  border: 1px solid var(--accent);
  border-radius: 24px;
  background: #fff;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.4;
}
.contact-bar a:last-child { background: var(--accent); color: #fff; }
.contact-bar svg { width: 18px; height: 18px; }

.landing-dialog { position: fixed; width: min(calc(100% - 32px), 420px); max-height: 85dvh; padding: 25px 20px 20px; overflow: auto; border: 0; border-radius: 15px; box-shadow: 0 15px 50px #0004; color: var(--ink); }
.landing-dialog::backdrop { background: #161f2a9c; }
.landing-dialog h2 { margin-bottom: 12px; padding-right: 38px; font-size: 1.1875rem; line-height: 1.5; }
.landing-dialog p { color: var(--muted); font-size: 1rem; line-height: 1.7; }
.landing-dialog > img { width: 100%; height: auto; max-height: 52dvh; margin-bottom: 12px; border-radius: 8px; object-fit: contain; }
.dialog-close { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 1.75rem; line-height: 1; }
.dialog-done { display: block; width: 100%; min-height: 44px; margin-top: 14px; padding: 6px 12px; border: 0; border-radius: 24px; background: var(--accent); color: #fff; font-weight: 650; }

@media (min-width: 600px) {
  .page { box-shadow: 0 0 24px #17294814; }
}
@media (max-width: 560px) {
  body:has(#quote-form :is(input, textarea, select):focus) .contact-bar { visibility: hidden; pointer-events: none; }
}
@media (hover: hover) and (pointer: fine) {
  .hero-card:hover { border-color: #ffef9a; box-shadow: 0 3px 12px #263f6540; }
  .case-card button:hover { border-color: #dba499; box-shadow: 0 3px 12px #27354012; }
  .compare-photo:hover img { filter: brightness(.94); }
  .view-more:hover, .faq-expand:hover { text-decoration: underline; text-underline-offset: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
