:root {
  --bg: #f5efe6;
  --panel: #fffaf2;
  --text: #2b2b2b;
  --muted: #6b6259;
  --primary: #d96c4a;
  --primary-dark: #b44f31;
  --line: rgba(43, 43, 43, 0.12);
  --shadow: 0 18px 40px rgba(72, 48, 30, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(217, 108, 74, 0.18), transparent 30%),
    linear-gradient(180deg, #fffaf2 0%, var(--bg) 100%);
}

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

.hero {
  padding: 80px 20px 48px;
}

.hero__content,
.section,
.footer {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.hero__content {
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 250, 242, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.teacher-card__imagewrap {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #fff;
}

.badge,
.section__tag {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--primary-dark);
  background: rgba(217, 108, 74, 0.12);
}

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

h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1.05;
  margin-bottom: 18px;
}

.hero__text,
.cta__text,
.card p,
.timeline__item p,
.simple-list {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.02rem;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--primary-dark);
}

.btn--ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.section {
  padding: 24px 0;
}

.section__header {
  margin-bottom: 20px;
}

.section__header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 0;
}

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

.card,
.list-box,
.timeline__item,
.section--cta {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 250, 242, 0.88);
  box-shadow: var(--shadow);
}

.card {
  padding: 24px;
}

.teacher-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 250, 242, 0.88);
  box-shadow: var(--shadow);
}

.teacher-card__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.teacher-card__content h3 {
  margin-bottom: 8px;
}

.section--soft {
  padding-top: 36px;
}

.list-box {
  padding: 24px 28px;
}

.simple-list {
  margin: 0;
  padding-left: 20px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline__item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 22px;
}

.timeline__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #f0a06e);
}

.section--cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 24px auto 48px;
  padding: 28px;
}

.booking-form {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 250, 242, 0.88);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.field span {
  font-weight: 700;
  color: var(--text);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  font: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(217, 108, 74, 0.14);
}

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

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.footer {
  padding: 0 0 32px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 820px) {
  .hero {
    padding-top: 24px;
  }

  .hero__content,
  .section--cta {
    padding: 24px;
  }

  .teacher-card {
    grid-template-columns: 1fr;
  }

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

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

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

  .timeline__step {
    margin-bottom: 8px;
  }

  .teacher-card {
    justify-items: start;
  }

  .section--cta {
    flex-direction: column;
    align-items: flex-start;
  }
}
