:root {
  --bg: #f4efe6;
  --surface: rgba(255, 250, 242, 0.92);
  --surface-strong: #fff7ec;
  --text: #1d2b2a;
  --muted: #5c6e68;
  --accent: #d9633b;
  --accent-dark: #ac4524;
  --line: rgba(29, 43, 42, 0.12);
  --shadow: 0 20px 40px rgba(33, 41, 37, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(217, 99, 59, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(66, 133, 120, 0.14), transparent 28%),
    linear-gradient(180deg, #f5efe4 0%, #efe4d2 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(29, 43, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 43, 42, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 70%);
}

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

.hero,
.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero {
  padding: 28px;
}

.hero::after,
.panel::after {
  content: "";
  position: absolute;
  inset: auto -10% -120px auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(217, 99, 59, 0.18), transparent 68%);
  pointer-events: none;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #d9633b, #f2a34f);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.top-link,
.button {
  text-decoration: none;
}

.top-link {
  color: var(--text);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.hero-copy {
  padding: 72px 0 36px;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  color: var(--accent-dark);
}

h1,
h2,
h3,
legend {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-text,
.section-head p,
.phrase-card p,
.routine-grid p,
.notes-list,
.focus-copy,
.quiz-form label,
.quiz-result {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 620px;
  margin: 18px 0 0;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
}

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

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

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

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

.hero-stats article,
.notes-card,
.phrase-card,
.routine-grid article,
.quiz-form fieldset {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.56);
}

.hero-stats article {
  padding: 20px;
}

.hero-stats strong {
  display: block;
  margin-bottom: 10px;
  font-size: 2rem;
  font-family: Georgia, "Times New Roman", serif;
}

main {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.panel {
  padding: 28px;
}

.section-head {
  margin-bottom: 24px;
  max-width: 720px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 0;
}

.lesson-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  gap: 20px;
}

.video-card {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0f1413;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}

.notes-card {
  padding: 22px;
}

.notes-card h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1.45rem;
}

.notes-list {
  margin: 0;
  padding-left: 18px;
}

.focus-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(217, 99, 59, 0.1), rgba(255, 242, 214, 0.8));
}

.focus-label {
  margin: 0 0 6px;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: var(--accent-dark);
}

.focus-title {
  margin: 0 0 10px;
  font-size: 1.5rem;
  font-family: Georgia, "Times New Roman", serif;
}

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

.phrase-card,
.routine-grid article {
  padding: 20px;
}

.phrase-card h3,
.routine-grid h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.speak-button,
.submit-button {
  margin-top: 12px;
}

.speak-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.speak-button:hover {
  border-color: rgba(217, 99, 59, 0.45);
}

.routine-grid article span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(217, 99, 59, 0.12), rgba(242, 163, 79, 0.22));
  font-weight: 700;
}

.quiz-form {
  display: grid;
  gap: 16px;
}

.quiz-form fieldset {
  padding: 18px;
}

.quiz-form legend {
  padding: 0;
  margin-bottom: 12px;
  font-size: 1.18rem;
}

.quiz-form label {
  display: block;
  margin-top: 10px;
}

.quiz-form input[type="radio"] {
  margin-right: 10px;
}

.quiz-result {
  min-height: 28px;
  margin: 4px 0 0;
  font-weight: 700;
}

@media (max-width: 960px) {
  .lesson-grid,
  .phrase-grid,
  .routine-grid,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-top: 52px;
  }
}

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

  .hero,
  .panel {
    border-radius: 22px;
    padding: 20px;
  }

  h1 {
    line-height: 1.02;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
