:root {
  --bg: #faf5ef;
  --bg-secondary: #eef4fb;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --stroke: rgba(255, 255, 255, 0.62);
  --text: #4f3938;
  --text-soft: #6f5d5d;
  --text-muted: #867676;
  --pink: #e88ca6;
  --pink-deep: #d76e8e;
  --blush: #f4c8d5;
  --powder: #cfdcf0;
  --cream: #f6dfc9;
  --shadow: 0 18px 46px rgba(152, 116, 122, 0.12);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --max-width: 1180px;
  --body-font: "Manrope", "Noto Sans TC", "Noto Sans SC", "Noto Sans JP", "PingFang TC", sans-serif;
  --display-font: "Playfair Display", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body-font);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 24rem),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-secondary) 100%);
}

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

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

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 24px auto 48px;
}

.hero-card,
.switcher-card,
.legal-panel,
.support-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 28px;
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-card::before {
  width: 260px;
  height: 260px;
  background: rgba(255, 255, 255, 0.45);
  top: -100px;
  left: -80px;
}

.hero-card::after {
  width: 300px;
  height: 300px;
  background: rgba(244, 200, 213, 0.4);
  top: -80px;
  right: -110px;
}

.topbar,
.hero-layout,
.switcher-head {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-picker {
  position: relative;
}

.language-picker select {
  min-height: 44px;
  padding: 0 36px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  appearance: none;
  color: var(--text);
  background:
    linear-gradient(45deg, transparent 50%, var(--text-soft) 50%) calc(100% - 17px) 19px / 5px 5px no-repeat,
    linear-gradient(135deg, var(--text-soft) 50%, transparent 50%) calc(100% - 12px) 19px / 5px 5px no-repeat,
    rgba(255, 255, 255, 0.86);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.language-picker select:focus-visible,
.primary-link:focus-visible,
.segment:focus-visible {
  outline: 3px solid rgba(215, 110, 142, 0.28);
  outline-offset: 3px;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  box-shadow: 0 10px 20px rgba(150, 112, 119, 0.18);
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink-deep);
}

.brand-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.64);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.primary-link,
.language-picker select {
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-link:hover,
.language-picker select:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(150, 112, 119, 0.12);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  margin-top: 32px;
  align-items: center;
}

.hero-copy h1,
.switcher-head h2,
.section-heading h2,
.support-card h2 {
  margin: 0;
  font-family: var(--display-font);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(2.35rem, 4vw, 4.2rem);
}

.hero-lead,
.switcher-note,
.section-summary,
.support-copy,
.legal-section p,
.legal-section li {
  font-size: 15px;
  line-height: 1.82;
  color: var(--text-soft);
}

.hero-lead {
  max-width: 58ch;
  margin: 20px 0 0;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
}

.hero-showcase {
  display: grid;
  gap: 18px;
  justify-items: end;
}

.icon-stage {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 223, 207, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), var(--shadow);
}

.glow-ring {
  position: absolute;
  inset: 26px;
  border-radius: 30px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.54) 0%, rgba(244, 200, 213, 0.34) 56%, transparent 72%);
}

.hero-icon {
  position: relative;
  z-index: 1;
  width: 74%;
  border-radius: 28px;
  box-shadow: 0 18px 34px rgba(150, 112, 119, 0.2);
}

.mini-card {
  width: min(100%, 320px);
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.mini-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--pink-deep);
}

.mini-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.content-shell {
  margin-top: 22px;
}

.switcher-card {
  border-radius: var(--radius-lg);
  padding: 22px;
}

.switcher-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.switcher-head h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
}

.switcher-note {
  margin: 0;
  max-width: 20ch;
  text-align: right;
  font-size: 13px;
}

.segmented-control {
  display: inline-flex;
  gap: 10px;
  padding: 8px;
  margin-top: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
}

.segment {
  border: 0;
  padding: 13px 20px;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.segment:hover {
  transform: translateY(-1px);
}

.segment.is-active {
  background: linear-gradient(135deg, var(--pink), #eba3b6);
  color: white;
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  margin-top: 22px;
  align-items: start;
}

.legal-panel {
  display: none;
  border-radius: var(--radius-xl);
  padding: 28px;
}

.legal-panel.is-visible {
  display: block;
}

.legal-panel:focus {
  outline: none;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 2.8vw, 3rem);
}

.section-summary {
  margin: 10px 0 0;
}

.legal-section + .legal-section {
  margin-top: 26px;
}

.legal-section h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.legal-section p,
.legal-section ul {
  margin: 0;
}

.legal-section ul {
  padding-left: 1.2rem;
}

.support-panel {
  display: grid;
  gap: 18px;
}

.support-card {
  border-radius: var(--radius-lg);
  padding: 22px;
}

.support-card h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.support-card-muted {
  background: rgba(255, 255, 255, 0.7);
}

.response-note {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.65;
}

.meta-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.8;
}

.site-footer {
  padding: 24px 8px 0;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 920px) {
  .page-shell {
    width: min(calc(100% - 24px), var(--max-width));
    margin: 12px auto 28px;
  }

  .hero-card,
  .legal-panel,
  .switcher-card,
  .support-card {
    padding: 20px;
  }

  .hero-layout,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .switcher-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-showcase {
    justify-items: stretch;
  }

  .switcher-note {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .segmented-control {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .segment {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
