:root {
  --paper: #fbfaf6;
  --paper-deep: #f1eee5;
  --ink: #25312b;
  --muted: #657066;
  --sage: #7f8f7a;
  --sage-deep: #596a55;
  --clay: #c68669;
  --gold: #d2ad6f;
  --white: #ffffff;
  --line: #ded8ca;
  --shadow: 0 18px 45px rgba(52, 62, 49, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(210, 173, 111, 0.24), transparent 34rem),
    linear-gradient(180deg, var(--paper), #f7f3ea);
  font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  line-height: 1.7;
}

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

button,
input {
  font: inherit;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  background: rgba(251, 250, 246, 0.9);
  border-bottom: 1px solid rgba(222, 216, 202, 0.75);
  backdrop-filter: blur(16px);
}

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

.brand {
  gap: 0.65rem;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  color: var(--white);
  background: var(--sage-deep);
  border-radius: 50%;
  font-family: Georgia, serif;
}

.nav {
  gap: clamp(0.75rem, 3vw, 1.5rem);
  color: var(--muted);
  font-size: 0.95rem;
}

.hero,
.intro,
.test-section,
.contact-section {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: calc(100vh - 4.5rem);
  padding: 4rem 0 3rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--clay);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.22;
}

h1 {
  max-width: 13em;
  font-size: clamp(2.35rem, 7vw, 5.15rem);
  font-family: Georgia, "Noto Serif TC", serif;
  font-weight: 600;
}

h2 {
  font-size: clamp(1.65rem, 4vw, 2.65rem);
  font-family: Georgia, "Noto Serif TC", serif;
  font-weight: 600;
}

.hero-copy,
.intro p,
.contact-copy p {
  max-width: 44rem;
  color: var(--muted);
}

.hero-copy {
  margin: 1.5rem 0 0;
  font-size: 1.08rem;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 700;
}

.primary-button {
  color: var(--white);
  background: var(--sage-deep);
  box-shadow: 0 10px 24px rgba(89, 106, 85, 0.22);
}

.secondary-button,
.ghost-button {
  color: var(--sage-deep);
  background: rgba(255, 255, 255, 0.62);
  border-color: var(--line);
}

.hero-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.soft-card,
.contact-card {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(222, 216, 202, 0.9);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

.soft-card {
  min-height: 10rem;
  padding: 1.35rem;
}

.soft-card.wide {
  grid-column: 1 / -1;
}

.card-number {
  color: var(--sage-deep);
  font-family: Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 1;
}

.soft-card p {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 4rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.test-section,
.contact-section {
  padding: 4rem 0;
}

.section-heading {
  max-width: 54rem;
}

.progress-area {
  margin-top: 2rem;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.progress-track {
  height: 0.65rem;
  margin-top: 0.6rem;
  overflow: hidden;
  background: var(--paper-deep);
  border-radius: 999px;
}

.progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--sage), var(--gold));
  border-radius: inherit;
  transition: width 0.25s ease;
}

.quiz-form {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.question-card {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.question-title {
  margin: 0 0 1rem;
  font-weight: 700;
}

.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-height: 4.25rem;
  padding: 0.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  cursor: pointer;
}

.choice input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.25rem;
  accent-color: var(--sage-deep);
}

.result-box {
  margin-top: 2rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 0.45rem solid var(--sage);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

.result-type {
  margin: 0.35rem 0 0;
  color: var(--sage-deep);
  font-family: Georgia, serif;
  font-size: clamp(2.4rem, 8vw, 4.8rem);
  line-height: 1;
}

.result-list {
  padding-left: 1.2rem;
  color: var(--muted);
}

.hidden {
  display: none;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr minmax(18rem, 24rem);
  gap: 2rem;
  align-items: center;
}

.contact-card {
  padding: 1.5rem;
}

.line-label {
  margin: 0;
  color: var(--muted);
}

.line-id {
  margin: 0.35rem 0 1.2rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.full-button {
  display: block;
  width: 100%;
  text-align: center;
}

.small-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer {
  padding: 2rem 1rem;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  .top-bar,
  .intro,
  .hero,
  .contact-section,
  .choice-row {
    grid-template-columns: 1fr;
  }

  .top-bar {
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-end;
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding-top: 2.5rem;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .progress-text {
    display: grid;
  }
}
