:root {
  --plum: #7c3f76;
  --violet: #b58ad8;
  --rose: #e8a7c9;
  --gold: #c79a45;
  --pale-gold: #f5dfae;
  --ivory: #fff9f0;
  --cream: #fbf4e9;
  --ink: #31273a;
  --muted: #6f6274;
  --line: rgba(124, 63, 118, 0.16);
  --shadow: 0 22px 60px rgba(86, 44, 95, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(115deg, rgba(232, 167, 201, 0.16), transparent 36%),
    radial-gradient(circle at 82% 18%, rgba(199, 154, 69, 0.14), transparent 28%),
    linear-gradient(180deg, #fffdf8 0%, #fff8f7 52%, #f7efff 100%);
}

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

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

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 54px);
  background: rgba(255, 249, 240, 0.78);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: padding 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
  padding-top: 10px;
  padding-bottom: 10px;
  border-color: var(--line);
  box-shadow: 0 12px 34px rgba(78, 45, 88, 0.09);
}

.brand,
.site-nav,
.hero-actions,
.icon-row,
.chips,
.tab-buttons {
  display: flex;
  align-items: center;
}

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  color: #fff;
  place-items: center;
  background: linear-gradient(135deg, var(--plum), var(--rose) 58%, var(--gold));
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(124, 63, 118, 0.24);
}

.site-nav {
  gap: 20px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav .nav-cta {
  padding: 8px 14px;
  color: #fff;
  background: var(--plum);
  border-radius: 999px;
}

.site-nav .nav-cta::after {
  display: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--plum);
}

.section {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 112px clamp(20px, 5vw, 72px);
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.hero {
  overflow: hidden;
  padding-top: 130px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(255, 249, 240, 0.96) 0%, rgba(255, 249, 240, 0.72) 43%, rgba(245, 232, 255, 0.52) 100%),
    repeating-linear-gradient(118deg, transparent 0 34px, rgba(199, 154, 69, 0.08) 35px, transparent 36px);
}

.hero-grid,
.split,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
}

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

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(2.25rem, 4.35vw, 4.1rem);
  line-height: 1.14;
  letter-spacing: 0;
}

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

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.35;
}

.hero-lead {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.12rem, 1.9vw, 1.38rem);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.hero-badges span,
.chips span,
.result-strip span,
.icon-row span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 13px;
  color: var(--plum);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  font-weight: 900;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--plum), #a75597 56%, var(--gold));
  box-shadow: 0 16px 34px rgba(124, 63, 118, 0.22);
}

.button.secondary {
  color: var(--plum);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
}

.button.light.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
}

.button.light.primary {
  color: var(--plum);
  background: #fff;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-visual.portrait {
  width: min(100%, 520px);
  justify-self: center;
  padding: clamp(18px, 3vw, 32px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(245, 232, 255, 0.68)),
    repeating-linear-gradient(118deg, transparent 0 30px, rgba(199, 154, 69, 0.12) 31px, transparent 32px);
  border: 1px solid rgba(199, 154, 69, 0.22);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-visual.portrait img {
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center bottom;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 18px 42px rgba(72, 36, 78, 0.1);
}

.metric-card {
  position: absolute;
  display: grid;
  min-width: 150px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(72, 36, 78, 0.14);
  backdrop-filter: blur(14px);
}

.metric-card strong {
  color: var(--plum);
  font-size: 2rem;
  line-height: 1;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.metric-main {
  right: -14px;
  bottom: 34px;
}

.metric-sub {
  top: 28px;
  left: -18px;
}

.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  width: 28px;
  height: 44px;
  border: 1px solid rgba(124, 63, 118, 0.3);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-cue span {
  display: block;
  width: 5px;
  height: 9px;
  margin: 9px auto;
  background: var(--gold);
  border-radius: 999px;
  animation: cue 1.5s infinite;
}

@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(12px); opacity: 1; }
}

.tinted {
  background:
    linear-gradient(180deg, rgba(245, 232, 255, 0.55), rgba(255, 249, 240, 0.82)),
    linear-gradient(90deg, transparent, rgba(245, 223, 174, 0.22));
}

.section-heading {
  max-width: 620px;
}

.section-heading.centered,
.centered {
  max-width: 850px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading p,
.story p,
.card p,
.mini p,
.benefit p,
.philosophy p,
.contact-copy p,
.panel-body p {
  color: var(--muted);
}

.quote {
  color: var(--plum);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 900;
  line-height: 1.45;
}

.story {
  padding: clamp(24px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.icon-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.cards {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards.six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.mini,
.benefit,
.step,
.service-panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 44px rgba(72, 36, 78, 0.09);
}

.card {
  min-height: 260px;
  padding: 28px;
}

.card-icon {
  display: inline-grid;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  color: #fff;
  font-weight: 900;
  place-items: center;
  background: linear-gradient(135deg, var(--rose), var(--plum));
  border-radius: 50%;
}

.card b {
  color: var(--gold);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 18px;
}

.audience-card {
  min-height: 96px;
  padding: 18px 14px;
  color: var(--plum);
  font-weight: 900;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.audience-card:hover,
.audience-card.active {
  color: #fff;
  background: linear-gradient(135deg, var(--plum), var(--rose));
  transform: translateY(-3px);
}

.audience-detail {
  min-height: 96px;
  padding: 24px;
  color: var(--muted);
  font-size: 1.18rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0;
}

.stats div {
  padding: 20px;
  text-align: center;
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.72));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stats strong {
  display: block;
  color: var(--plum);
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  line-height: 1;
}

.stats span {
  color: var(--muted);
  font-weight: 800;
}

.why-list,
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.mini,
.benefit {
  padding: 22px;
}

.accordion {
  max-width: 960px;
  margin: 36px auto 0;
}

.service-panel {
  overflow: hidden;
  margin-bottom: 12px;
}

.service-panel button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 21px 24px;
  color: var(--plum);
  font-weight: 900;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.service-panel button span {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.service-panel button span::before,
.service-panel button span::after {
  position: absolute;
  top: 9px;
  left: 2px;
  width: 16px;
  height: 2px;
  content: "";
  background: var(--gold);
}

.service-panel button span::after {
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}

.service-panel.open button span::after {
  transform: rotate(0);
}

.panel-body {
  max-height: 0;
  padding: 0 24px;
  overflow: hidden;
  transition: max-height 0.28s ease, padding 0.28s ease;
}

.service-panel.open .panel-body {
  max-height: 260px;
  padding-bottom: 24px;
}

.chips {
  flex-wrap: wrap;
  gap: 8px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.step {
  position: relative;
  min-height: 230px;
  padding: 24px;
}

.step span {
  color: var(--gold);
  font-weight: 900;
}

.feature-path {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 14px;
  margin: 34px 0;
}

.feature-path span {
  display: grid;
  min-height: 132px;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 900;
  text-align: center;
  place-items: center;
  background: linear-gradient(135deg, var(--plum), var(--rose));
  border-radius: 50%;
  box-shadow: 0 16px 34px rgba(124, 63, 118, 0.16);
}

.feature-path span:nth-child(even) {
  background: linear-gradient(135deg, var(--gold), var(--pale-gold));
  color: var(--ink);
}

.topic-tabs {
  margin-top: 34px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tab-buttons {
  flex-wrap: wrap;
  gap: 10px;
}

.tab-buttons button {
  padding: 10px 16px;
  color: var(--plum);
  font-weight: 900;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.tab-buttons button.active {
  color: #fff;
  background: var(--plum);
}

.tab-panel {
  display: none;
  padding-top: 24px;
}

.tab-panel.active {
  display: block;
}

.tab-panel ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 26px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.result-strip {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.benefit-grid {
  margin-top: 34px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.philosophy {
  text-align: center;
}

.narrow {
  max-width: 860px;
}

.script-quote {
  margin-top: 34px;
  color: var(--plum) !important;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  font-weight: 900;
  line-height: 1.45;
}

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

.checklist span {
  position: relative;
  padding: 17px 18px 17px 48px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.checklist span::before {
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  width: 20px;
  height: 20px;
  color: #fff;
  font-size: 0.78rem;
  content: "✓";
  place-items: center;
  background: var(--gold);
  border-radius: 50%;
}

.contact {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(124, 63, 118, 0.96), rgba(181, 138, 216, 0.9) 52%, rgba(199, 154, 69, 0.86)),
    url("assets/hu-yanyuan-portrait-navy.jpg") right center / auto 112%;
  background-blend-mode: multiply;
}

.contact .eyebrow,
.contact-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 4vw, 34px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--plum);
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(199, 154, 69, 0.16);
}

.final-promo {
  padding: clamp(44px, 6vw, 86px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(180deg, rgba(255, 249, 240, 0.96), rgba(247, 239, 255, 0.82)),
    radial-gradient(circle at 14% 10%, rgba(199, 154, 69, 0.16), transparent 28%);
}

.final-promo-inner {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: clamp(10px, 2vw, 18px);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(199, 154, 69, 0.22);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.final-promo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(72, 36, 78, 0.13);
}

.form-button {
  width: 100%;
}

.form-note {
  min-height: 26px;
  margin: 0;
  color: var(--plum);
  font-weight: 800;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 25;
  display: grid;
  width: 44px;
  height: 44px;
  color: #fff;
  place-items: center;
  background: var(--plum);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 14px 30px rgba(49, 39, 58, 0.24);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (max-width: 1020px) {
  .hero-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cards.three,
  .cards.six,
  .timeline,
  .audience-grid,
  .why-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-path {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 12px 18px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .section {
    min-height: auto;
    padding: 92px 18px;
  }

  .hero {
    min-height: 100svh;
    padding-top: 108px;
  }

  .hero-badges,
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .hero-badges span {
    width: 100%;
  }

  .metric-card {
    position: static;
    margin-top: 12px;
  }

  .cards.three,
  .cards.six,
  .timeline,
  .audience-grid,
  .stats,
  .why-list,
  .feature-path,
  .benefit-grid,
  .checklist,
  .tab-panel ul {
    grid-template-columns: 1fr;
  }

  .feature-path span {
    font-size: 1.18rem;
    min-height: 86px;
    border-radius: var(--radius);
  }

  .service-panel.open .panel-body {
    max-height: 520px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
