:root {
  --bg: #f4efe7;
  --bg-soft: #fbf8f2;
  --card: rgba(255, 255, 255, 0.74);
  --text: #2f3a35;
  --muted: #66716c;
  --primary: #6f8f82;
  --primary-strong: #547568;
  --accent: #d8a76f;
  --line: rgba(80, 96, 90, 0.12);
  --shadow: 0 18px 50px rgba(68, 78, 72, 0.12);
  --radius: 28px;
}

* {
  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(216, 167, 111, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(111, 143, 130, 0.15), transparent 32%),
    linear-gradient(180deg, #faf6ef 0%, var(--bg) 100%);
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 140px;
  position: relative;
  z-index: 1;
}

.hero,
.panel {
  background: var(--card);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
}

.hero {
  border-radius: 36px;
  padding: 36px;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -60px -90px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 167, 111, 0.24), transparent 70%);
}

.hero__badge,
.card__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(111, 143, 130, 0.12);
  color: var(--primary-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.2rem, 4.2vw, 4.3rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
}

.hero p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.03rem;
}

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

.btn {
  padding: 13px 18px;
  border-radius: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: 0 12px 24px rgba(84, 117, 104, 0.24);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
  border: 1px solid rgba(84, 117, 104, 0.16);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
}

.stat-card span,
.panel__header p,
.tip-box span,
.task span:first-child {
  color: var(--muted);
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 2rem;
}

.panel {
  margin-top: 24px;
  border-radius: 32px;
  padding: 28px;
}

.panel--soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(251, 248, 242, 0.92));
}

.panel__header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
}

.panel__header h2 {
  margin: 0;
  font-size: 1.55rem;
}

.panel__header p {
  margin: 0;
  line-height: 1.7;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.tab {
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--muted);
  border: 1px solid var(--line);
}

.tab.is-active {
  background: var(--primary-strong);
  color: #fff;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}

.card {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
}

.card--large h3,
.mini-quiz h3 {
  margin: 16px 0 10px;
  font-size: 1.5rem;
}

.card--large p,
.mini-quiz p,
.tip-box p {
  margin: 0;
  line-height: 1.8;
  color: var(--muted);
}

.checklist {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.checklist li {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(111, 143, 130, 0.08);
}

.quiz-options {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.quiz-option {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
}

.quiz-option.is-correct {
  background: rgba(111, 143, 130, 0.14);
  border-color: rgba(84, 117, 104, 0.26);
}

.quiz-option.is-wrong {
  background: rgba(216, 167, 111, 0.14);
}

.quiz-result {
  min-height: 28px;
}

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

.task {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.task input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary-strong);
}

.task span:last-child {
  line-height: 1.6;
}

.simulator {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 16px;
}

.simulator__timer,
.tip-box {
  border-radius: 26px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.simulator__timer span,
.tip-box span {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.simulator__timer strong {
  font-size: clamp(2.3rem, 5vw, 4rem);
  letter-spacing: 0.04em;
}

.timer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

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

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

.coach-card {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.coach-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.coach-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.coach-card button {
  margin-top: 14px;
}

.install-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 20px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(84, 117, 104, 0.14);
  box-shadow: 0 16px 40px rgba(68, 78, 72, 0.16);
  z-index: 20;
}

.install-bar p {
  margin: 6px 0 0;
  color: var(--muted);
}

.bg-shape {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}

.bg-shape-1 {
  width: 280px;
  height: 280px;
  background: rgba(216, 167, 111, 0.16);
  top: -40px;
  right: -100px;
}

.bg-shape-2 {
  width: 220px;
  height: 220px;
  background: rgba(111, 143, 130, 0.16);
  bottom: 120px;
  left: -80px;
}

@media (max-width: 900px) {
  .content-grid,
  .simulator,
  .task-grid,
  .coach-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .panel__header,
  .install-bar {
    flex-direction: column;
    align-items: start;
  }

  .hero,
  .panel {
    padding: 22px;
  }
}

@media (max-width: 640px) {
  .app {
    width: min(100% - 20px, 1120px);
    padding-top: 12px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .card,
  .simulator__timer,
  .tip-box,
  .task {
    border-radius: 20px;
  }
}
