:root {
  --ink: #12364a;
  --muted: #5f7683;
  --blue: #1e78ad;
  --blue-deep: #0f5f91;
  --blue-soft: #dff2fb;
  --mint: #7fbd9b;
  --mint-soft: #e8f5ed;
  --gold: #efc86d;
  --coral: #da7a6c;
  --paper: #fffdf8;
  --surface: #ffffff;
  --line: #d9e8ee;
  --shadow: 0 18px 45px rgba(38, 87, 112, 0.13);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(232, 245, 237, 0.35), rgba(255, 253, 248, 0) 420px),
    var(--paper);
  font-family:
    "Noto Sans TC",
    "PingFang TC",
    "Microsoft JhengHei",
    system-ui,
    sans-serif;
  line-height: 1.75;
  letter-spacing: 0;
  padding-bottom: 0;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.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;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 10px max(20px, calc((100vw - var(--container)) / 2));
  background: rgba(255, 253, 248, 0.9);
  border-bottom: 1px solid rgba(217, 232, 238, 0.85);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.brand img {
  width: 52px;
  height: 52px;
  border: 2px solid #bde4f6;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.brand strong {
  display: block;
  color: var(--blue-deep);
  font-size: 1.05rem;
  line-height: 1.2;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  border-radius: 999px;
  color: #31576a;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 8px 13px;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--blue-soft);
  color: var(--blue-deep);
  outline: none;
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-weight: 800;
  padding: 9px 16px;
  box-shadow: 0 10px 24px rgba(30, 120, 173, 0.22);
}

.nav-toggle {
  display: none;
}

[data-lucide] {
  width: 1.15em;
  height: 1.15em;
  stroke-width: 2.2;
  flex: 0 0 auto;
}

.hero {
  position: relative;
  min-height: 76svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.96) 0%, rgba(255, 253, 248, 0.9) 38%, rgba(255, 253, 248, 0.42) 67%, rgba(255, 253, 248, 0.2) 100%),
    url("assets/hero-chinese-therapist-family.jpg") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(213, 239, 250, 0.4), rgba(255, 253, 248, 0.18) 46%, rgba(232, 245, 237, 0.28)),
    linear-gradient(135deg, rgba(127, 189, 155, 0.22), rgba(239, 200, 109, 0.12) 42%, rgba(30, 120, 173, 0.08));
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -160px;
  width: 540px;
  height: 540px;
  background: url("assets/poster-style.jpg") center / cover no-repeat;
  border: 12px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  opacity: 0.2;
  transform: rotate(-8deg);
  pointer-events: none;
}

.hero__wash {
  position: absolute;
  inset: auto 0 0;
  height: 118px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0), var(--paper)),
    repeating-linear-gradient(95deg, rgba(127, 189, 155, 0.16) 0 8px, rgba(223, 242, 251, 0.16) 8px 16px);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 740px;
  margin-left: max(20px, calc((100vw - var(--container)) / 2));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--blue-deep);
  font-size: 0.86rem;
  font-weight: 900;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--mint);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12em;
  margin-bottom: 20px;
  color: var(--blue-deep);
  font-size: 3.4rem;
  line-height: 1.16;
  font-weight: 900;
  overflow-wrap: break-word;
}

h2 {
  color: var(--blue-deep);
  font-size: 2.15rem;
  line-height: 1.25;
  margin-bottom: 14px;
}

h3 {
  color: #174b67;
  font-size: 1.16rem;
  line-height: 1.35;
  margin-bottom: 10px;
}

.hero__lead {
  max-width: 650px;
  color: #33576a;
  font-size: 1.14rem;
  margin-bottom: 30px;
}

.hero__actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  padding: 10px 18px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.btn--primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 14px 28px rgba(30, 120, 173, 0.24);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--blue-deep);
}

.btn--line {
  background: #18a765;
  color: white;
  box-shadow: 0 14px 28px rgba(24, 167, 101, 0.2);
}

.btn--line:hover,
.btn--line:focus-visible {
  background: #128c55;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.82);
  border-color: #b8dbe8;
  color: var(--blue-deep);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: white;
  box-shadow: 0 10px 22px rgba(38, 87, 112, 0.12);
}

.quick-panel {
  position: relative;
  z-index: 3;
  margin-top: -34px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.quick-grid article {
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  padding: 20px;
}

.quick-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.quick-grid strong {
  display: block;
  color: var(--blue-deep);
  font-size: 1.45rem;
  line-height: 1.2;
  margin: 7px 0;
}

.quick-grid p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.section {
  padding: 92px 0;
}

.section--tint {
  background:
    linear-gradient(180deg, rgba(223, 242, 251, 0.35), rgba(232, 245, 237, 0.5)),
    #fbfffd;
}

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

.section-head p:not(.eyebrow),
.split__copy p,
.video-copy p,
.contact-main > p,
.review-band > div:first-child p {
  color: var(--muted);
}

.section-head .eyebrow {
  justify-content: center;
}

.search-needs {
  padding-top: 74px;
}

.need-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.need-card {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 253, 251, 0.96)),
    white;
  box-shadow: 0 14px 32px rgba(38, 87, 112, 0.08);
  padding: 24px;
}

.need-card h3 {
  color: var(--blue-deep);
  font-size: 1.04rem;
}

.need-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 32px rgba(38, 87, 112, 0.08);
  padding: 25px;
}

.service-card > [data-lucide] {
  width: 44px;
  height: 44px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 50%;
  padding: 10px;
  margin-bottom: 18px;
}

.service-card p {
  color: var(--muted);
  margin-bottom: 16px;
}

.service-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 18px;
  color: #3f6273;
  font-size: 0.94rem;
}

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

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.split__media img,
.contact-card img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split__copy p {
  font-size: 1.02rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.feature-list span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: #29556b;
  font-weight: 800;
  padding: 10px 12px;
}

.feature-list [data-lucide] {
  color: var(--mint);
}

.review-band {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: stretch;
}

.rating-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #f6fcff);
  box-shadow: var(--shadow);
  padding: 28px;
  text-align: center;
}

.rating-card__number {
  display: block;
  color: var(--blue-deep);
  font-size: 4rem;
  font-weight: 900;
  line-height: 0.95;
}

.stars {
  display: block;
  color: var(--gold);
  font-size: 1.3rem;
  margin: 10px 0 6px;
}

.rating-card p {
  color: var(--muted);
  margin-bottom: 18px;
}

.review-points {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.review-points article {
  border-left: 4px solid var(--mint);
  background: var(--mint-soft);
  border-radius: var(--radius);
  padding: 20px;
}

.review-points p {
  color: var(--muted);
  margin-bottom: 0;
}

.section--video {
  background: #f7fbfd;
}

.video-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  align-items: center;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #d7edf7;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-deep);
  font-weight: 900;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.tab {
  min-width: 132px;
  min-height: 44px;
  border: 1px solid #b9dce8;
  border-radius: 999px;
  background: white;
  color: var(--blue-deep);
  cursor: pointer;
  font-weight: 900;
  padding: 8px 18px;
}

.tab.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  box-shadow: 0 10px 20px rgba(30, 120, 173, 0.18);
}

.gallery-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-panel[hidden] {
  display: none;
}

.gallery-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 12px 26px rgba(38, 87, 112, 0.08);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 180ms ease;
}

.gallery-item img.image-load-failed {
  cursor: default;
  object-fit: contain;
  background:
    linear-gradient(180deg, rgba(223, 242, 251, 0.65), rgba(232, 245, 237, 0.65)),
    #f8fcfd;
}

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

.gallery-item p {
  min-height: 78px;
  margin: 0;
  color: #3f6273;
  font-size: 0.9rem;
  padding: 13px 14px 15px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.78fr;
  gap: 36px;
  align-items: start;
}

.section--faq {
  background: #fbfdff;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 12px 26px rgba(38, 87, 112, 0.08);
  padding: 24px;
}

.faq-item p {
  color: var(--muted);
  margin-bottom: 0;
}

.contact-main {
  min-width: 0;
}

.contact-actions {
  margin: 26px 0;
}

.consult-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
  padding: 22px;
}

.field {
  display: grid;
  gap: 7px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  color: #2f5b70;
  font-size: 0.9rem;
  font-weight: 900;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #bfdde8;
  border-radius: var(--radius);
  background: #fbfdff;
  color: var(--ink);
  padding: 11px 12px;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(30, 120, 173, 0.14);
}

.message-preview {
  margin-top: 16px;
  border: 1px solid #b9dce8;
  border-radius: var(--radius);
  background: #f5fbfe;
  padding: 18px;
}

.message-preview p {
  white-space: pre-wrap;
  color: #345b6c;
}

.message-preview div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
  padding: 14px;
}

.contact-card img {
  max-height: 560px;
  object-fit: cover;
  object-position: top center;
}

.info-list {
  display: grid;
  gap: 12px;
  padding: 18px 6px 4px;
}

.info-list p {
  display: flex;
  gap: 10px;
  margin: 0;
  color: #355d70;
  font-weight: 800;
}

.info-list [data-lucide] {
  color: var(--blue);
  margin-top: 4px;
}

.map-wrap {
  margin-top: 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 390px;
  border: 0;
}

.site-footer {
  background: linear-gradient(180deg, #edf9f7 0%, #f7fcfb 100%);
  color: #617687;
  padding: 42px 0 46px;
  border-top: 1px solid rgba(127, 178, 196, 0.18);
}

.footer-inner {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.footer-inner p {
  margin: 0;
}

.footer-logo {
  width: 88px;
  height: 88px;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 14px 34px rgba(77, 143, 170, 0.16);
}

.footer-copy {
  color: #5f7280;
  font-size: clamp(1.18rem, 2.5vw, 1.68rem);
  font-weight: 900;
  line-height: 1.45;
}

.footer-provider {
  color: #5f7280;
  font-size: clamp(1.02rem, 2.1vw, 1.42rem);
  font-weight: 900;
  line-height: 1.45;
}

.mobile-actions {
  display: none;
}

.image-dialog {
  width: min(920px, calc(100% - 30px));
  border: 0;
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(10, 37, 52, 0.35);
  padding: 14px;
}

.image-dialog::backdrop {
  background: rgba(11, 44, 60, 0.68);
}

.image-dialog img {
  width: 100%;
  max-height: 76vh;
  border-radius: 6px;
  object-fit: contain;
}

.image-dialog p {
  margin: 12px 4px 2px;
  color: #355d70;
  font-weight: 800;
}

.dialog-close {
  position: absolute;
  top: 22px;
  right: 22px;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-deep);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(10, 37, 52, 0.2);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

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

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .site-nav,
  .header-action {
    display: none;
  }

  .site-nav.is-open {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    display: grid;
    justify-content: stretch;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
    padding: 10px;
  }

  .site-nav.is-open a {
    border-radius: 6px;
    padding: 12px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    justify-self: end;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: white;
    color: var(--blue-deep);
  }

  .need-grid,
  .service-grid,
  .gallery-panel {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: 72px;
  }

  .container {
    width: min(100% - 28px, var(--container));
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 690px;
    background:
      linear-gradient(180deg, rgba(255, 253, 248, 0.98) 0%, rgba(255, 253, 248, 0.92) 48%, rgba(255, 253, 248, 0.42) 100%),
      url("assets/hero-chinese-therapist-family.jpg") 55% center / cover no-repeat;
  }

  .hero::after {
    display: none;
  }

  .hero__content {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    margin-inline: auto;
  }

  h1 {
    font-size: 2.25rem;
    max-width: 100%;
  }

  h2 {
    font-size: 1.72rem;
  }

  .hero__lead {
    font-size: 1rem;
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .section {
    padding: 66px 0;
  }

  .quick-panel {
    margin-top: -20px;
  }

  .split,
  .video-layout,
  .contact-layout,
  .review-band {
    grid-template-columns: 1fr;
  }

  .review-points {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    order: -1;
  }

  .contact-card img {
    max-height: 430px;
  }

  .footer-inner {
    display: grid;
  }

  .site-footer {
    padding: 38px 0 96px;
  }

  .footer-logo {
    width: 74px;
    height: 74px;
    border-radius: 22px;
  }

  .footer-copy,
  .footer-provider {
    max-width: 340px;
  }

  .mobile-actions {
    position: fixed;
    z-index: 60;
    left: 14px;
    right: 14px;
    bottom: 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    border: 1px solid rgba(185, 220, 232, 0.9);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.93);
    box-shadow: 0 16px 36px rgba(38, 87, 112, 0.18);
    padding: 9px;
    backdrop-filter: blur(14px);
  }

  .mobile-actions a {
    display: grid;
    place-items: center;
    min-height: 44px;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue-deep);
  }

  .mobile-actions a:nth-child(2) {
    background: #ddf5e9;
    color: #118452;
  }
}

@media (max-width: 600px) {
  .site-header {
    min-height: 70px;
    padding: 9px 14px;
  }

  .site-nav.is-open {
    top: 70px;
    left: 14px;
    right: 14px;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand strong {
    max-width: 10em;
    font-size: 0.95rem;
    overflow-wrap: anywhere;
  }

  .quick-grid,
  .need-grid,
  .service-grid,
  .gallery-panel,
  .feature-list,
  .consult-form {
    grid-template-columns: 1fr;
  }

  .tabs {
    align-items: stretch;
    flex-direction: column;
  }

  .tab {
    width: 100%;
  }

  .hero__actions,
  .contact-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .quick-grid article {
    min-height: auto;
  }

  .gallery-item p {
    min-height: auto;
  }

  .map-wrap iframe {
    height: 320px;
  }
}
