:root {
  --ink: #1f2638;
  --deep: #26314f;
  --muted: #68718a;
  --mist: #eef1f8;
  --line: #d9deea;
  --violet: #b9b1e8;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(31, 38, 56, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  background: var(--mist);
  line-height: 1.7;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 72px);
  color: var(--white);
  background: rgba(23, 30, 50, 0.34);
  backdrop-filter: blur(14px);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  color: var(--deep);
  background: rgba(246, 248, 252, 0.88);
  box-shadow: 0 12px 40px rgba(31, 38, 56, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 20px;
}

.site-nav {
  gap: clamp(18px, 3vw, 46px);
  font-weight: 700;
}

.site-nav a {
  padding: 8px 0;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, rgba(23, 30, 50, 0.98) 0%, rgba(23, 30, 50, 0.86) 42%, rgba(23, 30, 50, 0.38) 100%),
    url("/assets/images/hero-b-crop.jpg") right center / cover;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: radial-gradient(circle at 72% 60%, rgba(185, 177, 232, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(16, 22, 38, 0.18), rgba(16, 22, 38, 0.44));
}

.hero-content {
  width: min(760px, calc(100% - 40px));
  padding: 28vh 0 18vh;
  margin-left: clamp(20px, 10vw, 160px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--violet);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 7vw, 7.4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  font-size: 1.4rem;
  line-height: 1.3;
}

.hero-copy {
  width: min(620px, 100%);
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 2vw, 1.45rem);
}

.hero-actions,
.section-heading,
.intro-grid,
.service-grid,
.method,
.booking-form,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-inline: 0;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: transparent;
  color: var(--deep);
  background: var(--white);
  box-shadow: 0 16px 40px rgba(255, 255, 255, 0.18);
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(14px);
}

.section {
  padding: clamp(72px, 10vw, 132px) 0;
}

.intro {
  background: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  font-size: 1.18rem;
}

.signal-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.signal-list span {
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--deep);
  background: #f7f8fc;
  font-weight: 800;
  text-align: center;
}

.visual-band {
  height: min(58vw, 560px);
  overflow: hidden;
}

.visual-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.services {
  background: #f7f8fc;
}

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

.service-card {
  min-height: 300px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 36px rgba(31, 38, 56, 0.06);
}

.service-index {
  display: block;
  margin-bottom: 48px;
  color: var(--violet);
  font-weight: 900;
}

.assessment {
  color: var(--white);
  background: var(--deep);
}

.assessment-panel {
  display: grid;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.quiz,
.booking-form {
  display: grid;
  gap: 18px;
}

.quiz fieldset {
  min-width: 0;
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.quiz legend {
  margin-bottom: 14px;
  font-weight: 800;
}

.quiz label {
  display: inline-flex;
  align-items: center;
  margin-right: 18px;
  gap: 8px;
}

.quiz-result,
.form-result {
  display: block;
  min-height: 32px;
  font-weight: 800;
}

.method {
  display: grid;
  padding: 46px 0;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.method-step {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.method-step span {
  display: block;
  margin-bottom: 8px;
  color: var(--deep);
  font-size: 1.1rem;
  font-weight: 900;
}

.booking {
  background: var(--white);
}

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

.booking-form label {
  display: grid;
  gap: 8px;
  color: var(--deep);
  font-weight: 800;
}

.booking-form .full,
.booking-form button,
.booking-form output {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--ink);
  font: inherit;
  background: #fbfcff;
}

textarea {
  resize: vertical;
}

.booking-form .button.primary,
.member .button.secondary {
  width: fit-content;
  color: var(--white);
  background: var(--deep);
  box-shadow: var(--shadow);
}

.member {
  position: relative;
  display: grid;
  min-height: 620px;
  align-items: center;
  overflow: hidden;
  color: var(--deep);
}

.member img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.72;
}

.member::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(247, 248, 252, 0.92), rgba(247, 248, 252, 0.38));
}

.member-content {
  position: relative;
  z-index: 1;
  width: min(620px, calc(100% - 40px));
  margin-left: clamp(20px, 10vw, 160px);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 42px 0;
  color: #dfe4f3;
}

footer {
  background: #171e32;
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .site-header {
    padding: 16px 20px;
  }

  .menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    place-content: center;
    gap: 6px;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: inherit;
    background: transparent;
  }

  .menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 20px;
    display: none;
    width: min(280px, calc(100vw - 40px));
    padding: 18px;
    border-radius: 8px;
    color: var(--deep);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    gap: 8px;
  }

  .hero-content {
    padding-top: 24vh;
    margin-inline: auto;
  }

  .hero-bg {
    background-position: 66% center;
  }

  .intro-grid,
  .assessment-panel,
  .booking-form {
    grid-template-columns: 1fr;
  }

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

  .site-footer {
    display: grid;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: 3rem;
  }

  .hero {
    min-height: 760px;
  }

  .hero-bg {
    background-image: linear-gradient(180deg, rgba(23, 30, 50, 0.88), rgba(23, 30, 50, 0.62)),
      url("/assets/images/hero-b-crop.jpg");
    background-position: 74% center;
  }

  .signal-list,
  .service-grid,
  .method {
    grid-template-columns: 1fr;
  }

  .quiz label {
    display: flex;
    margin: 10px 0 0;
  }

  .member {
    min-height: 560px;
  }

  .member-content {
    margin-inline: auto;
  }
}
