:root {
  --font-geist-sans: system-ui;
  --font-geist-mono: ui-monospace;
  --paper: #f7efe3;
  --paper-deep: #eee4d5;
  --ink: #4f322b;
  --muted: #8b7169;
  --line: rgba(83, 62, 47, 0.14);
  --card: #fff7ec;
  --green: #c8d8c2;
  --green-deep: #6e8b73;
  --blue: #c8dce0;
  --peach: #ead0c3;
  --gold: #e9d59d;
  --button: #7b4435;
  --shadow: 0 16px 38px rgba(74, 60, 45, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  background: #e7e2d6;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.72), transparent 28%),
    linear-gradient(135deg, #ebe7dc 0%, #dce3d8 100%);
  color: var(--ink);
  font-family:
    var(--font-geist-sans),
    "PingFang SC",
    "Microsoft YaHei",
    Arial,
    sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 22px;
}

.phone-frame {
  width: min(100%, 430px);
  min-height: 900px;
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(180deg, #f8efe4 0%, #e3e7dc 100%);
  background-size: 28px 28px, 28px 28px, auto;
  box-shadow:
    0 34px 90px rgba(57, 47, 37, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 24px 12px;
  background: linear-gradient(180deg, rgba(248, 239, 228, 0.98), rgba(248, 239, 228, 0.72));
  backdrop-filter: blur(10px);
}

.app-header h1 {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0;
}

.kicker,
.date-line {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.assistant-pill {
  border: 0;
  border-radius: 999px;
  min-width: 62px;
  padding: 11px 14px;
  color: var(--ink);
  background: rgba(255, 250, 241, 0.9);
  box-shadow: 0 8px 22px rgba(62, 48, 37, 0.12);
}

.screen {
  padding: 12px 24px 118px;
}

.content-screen {
  animation: rise 360ms ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-card {
  overflow: hidden;
  margin: 2px -6px 20px;
  border-radius: 26px;
  min-height: 244px;
  background: #f8ebd9;
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  height: 280px;
  display: block;
  object-fit: cover;
  object-position: 45% center;
}

.intro-copy {
  margin-bottom: 16px;
}

.intro-copy h2,
.today-hero h2,
.calendar-head h2,
.section-title h2,
.ask-hero h2 {
  margin: 7px 0 8px;
  font-size: 26px;
  line-height: 1.22;
  letter-spacing: 0;
}

.intro-copy p,
.today-hero p,
.result-card p,
.start-card p,
.feature-card p,
.phase-card span,
.resource-card p,
.summary-card p,
.note-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.start-card,
.result-card,
.task-panel,
.summary-card,
.note-card,
.route-card {
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 24px;
  background: rgba(255, 248, 238, 0.88);
  box-shadow: var(--shadow);
}

.start-card {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.inline-illustration {
  width: 100%;
  max-height: 180px;
  display: block;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(123, 68, 53, 0.1);
}

.start-card.compact {
  margin-top: 16px;
}

.start-card h3,
.feature-card h3,
.task-panel h3,
.result-card h2,
.phase-card h3,
.resource-card h3,
.summary-card h3,
.note-card h3 {
  margin: 5px 0;
  line-height: 1.25;
}

.stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px dashed rgba(123, 68, 53, 0.48);
  border-radius: 999px;
  color: var(--button);
  font-size: 12px;
  font-weight: 800;
  transform: rotate(-2deg);
}

.primary-button {
  border: 0;
  border-radius: 18px;
  padding: 15px 18px;
  color: #fffaf2;
  background: var(--button);
  box-shadow: 0 12px 24px rgba(123, 68, 53, 0.24);
}

.primary-button.wide {
  width: 100%;
  margin-top: 14px;
}

.text-button {
  border: 0;
  display: block;
  margin: 18px auto 0;
  color: var(--button);
  background: transparent;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 18px 74px;
  border-radius: 22px;
  background: rgba(255, 248, 238, 0.72);
  border: 1px solid var(--line);
}

.mini-illustration {
  position: absolute;
  left: 18px;
  top: 20px;
  width: 38px;
  height: 38px;
  border: 2px solid rgba(123, 68, 53, 0.46);
  border-radius: 14px 14px 18px 10px;
  background:
    linear-gradient(135deg, rgba(200, 216, 194, 0.8), transparent 55%),
    #fffaf1;
  transform: rotate(-4deg);
}

.today-hero {
  min-height: 170px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border-radius: 28px;
  background:
    linear-gradient(125deg, rgba(255, 247, 236, 0.95), rgba(213, 226, 207, 0.82)),
    url("./images/english-journey-hero.webp");
  background-size: cover;
  background-position: 34% center;
  box-shadow: var(--shadow);
}

.today-hero > div:first-child {
  max-width: 230px;
}

.streak-badge,
.makeup-card {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 24px;
  color: var(--button);
  background: rgba(255, 250, 242, 0.92);
  box-shadow: 0 12px 22px rgba(85, 65, 48, 0.13);
}

.streak-badge strong,
.makeup-card strong {
  display: block;
  font-size: 26px;
  line-height: 1;
}

.streak-badge span,
.makeup-card span {
  display: block;
  margin-top: -12px;
  font-size: 12px;
  color: var(--muted);
}

.route-card {
  margin: 16px 0;
  padding: 16px;
}

.route-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(123, 68, 53, 0.1);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-deep), #b98c65);
}

.task-panel {
  padding: 18px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.section-title.spacious {
  margin-bottom: 16px;
}

.soft-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  white-space: nowrap;
  color: var(--green-deep);
  background: rgba(200, 216, 194, 0.42);
  font-size: 12px;
  font-weight: 800;
}

.task-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.task-row {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  color: var(--ink);
  text-align: left;
  background: rgba(255, 252, 245, 0.82);
}

.task-row.done {
  background: rgba(200, 216, 194, 0.45);
}

.task-check {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--button);
  background: rgba(123, 68, 53, 0.1);
  font-weight: 800;
}

.task-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.note-card {
  margin-top: 16px;
  padding: 17px;
  border-style: dashed;
  background: rgba(247, 239, 227, 0.68);
}

.task-image-card,
.resource-hero {
  overflow: hidden;
  margin-top: 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  background: rgba(255, 248, 238, 0.78);
  box-shadow: var(--shadow);
}

.task-image-card img,
.resource-hero img {
  width: 100%;
  height: 158px;
  display: block;
  object-fit: cover;
}

.assessment-card {
  position: fixed;
  left: 50%;
  bottom: 104px;
  z-index: 20;
  width: min(382px, calc(100vw - 44px));
  transform: translateX(-50%);
  padding: 18px;
  border-radius: 26px;
  color: var(--ink);
  background: rgba(255, 248, 238, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: 0 24px 60px rgba(57, 42, 31, 0.24);
}

.question-head {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.assessment-card h2 {
  margin: 10px 0 14px;
  font-size: 19px;
  line-height: 1.35;
}

.answer-grid {
  display: grid;
  gap: 9px;
}

.answer-grid button {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  color: var(--ink);
  text-align: left;
  background: #fffbf3;
}

.map-card {
  position: relative;
  height: 132px;
  margin: 18px 0;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(200, 216, 194, 0.5), rgba(200, 220, 224, 0.44)),
    #fff8ee;
  box-shadow: var(--shadow);
}

.result-map-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  margin: 18px 0;
  border-radius: 28px;
  background: #fff8ee;
  box-shadow: var(--shadow);
}

.result-map-card img {
  width: 100%;
  height: 240px;
  display: block;
  object-fit: cover;
}

.level-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.level-overlay span {
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 250, 242, 0.88);
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(58, 43, 31, 0.11);
}

.level-overlay span.current {
  color: #fffaf2;
  background: var(--button);
}

.map-line {
  position: absolute;
  left: 42px;
  right: 42px;
  top: 64px;
  height: 3px;
  border-radius: 999px;
  background: rgba(123, 68, 53, 0.25);
}

.map-stop {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 25%;
  height: 132px;
}

.map-stop span {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #fffaf2;
  color: var(--muted);
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(58, 43, 31, 0.11);
}

.map-stop.current span {
  color: #fffaf2;
  background: var(--button);
  transform: rotate(-4deg) scale(1.08);
}

.result-card {
  padding: 22px;
}

.result-facts {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}

.result-facts span {
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--ink);
  background: rgba(238, 228, 213, 0.68);
  font-size: 13px;
}

.phase-list,
.resource-list,
.prompt-list {
  display: grid;
  gap: 12px;
}

.phase-card,
.resource-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 248, 238, 0.84);
  box-shadow: 0 10px 24px rgba(70, 55, 41, 0.1);
}

.phase-card p,
.phase-card small,
.resource-card small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.phase-card small,
.resource-card small {
  display: block;
  margin-top: 8px;
}

.phase-visual,
.resource-icon {
  position: relative;
  overflow: hidden;
  min-height: 82px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--button);
  font-weight: 900;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.36), transparent),
    var(--paper-deep);
}

.phase-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phase-visual span {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px dashed currentColor;
  border-radius: 14px;
  color: #fffaf2;
  background: rgba(123, 68, 53, 0.74);
  backdrop-filter: blur(4px);
}

.soft-green {
  background-color: var(--green);
}

.soft-blue {
  background-color: var(--blue);
}

.soft-peach {
  background-color: var(--peach);
}

.soft-gold {
  background-color: var(--gold);
}

.calendar-head {
  margin-bottom: 18px;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 9px;
  padding: 18px;
  border-radius: 26px;
  background: rgba(255, 248, 238, 0.72);
  box-shadow: var(--shadow);
}

.weekday,
.calendar-day {
  min-height: 38px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
}

.weekday {
  font-weight: 800;
}

.calendar-day {
  border-radius: 14px;
  background: rgba(255, 252, 246, 0.62);
}

.calendar-day.complete {
  color: var(--green-deep);
  background: rgba(200, 216, 194, 0.65);
  font-weight: 900;
}

.calendar-day.today {
  outline: 2px dashed rgba(123, 68, 53, 0.55);
  outline-offset: 2px;
}

.calendar-day.quiz::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--button);
}

.summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 18px;
}

.streak-art {
  width: 104px;
  height: 104px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 10px 22px rgba(70, 55, 41, 0.12);
}

.streak-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.makeup-note {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  color: var(--button);
  background: rgba(255, 248, 238, 0.72);
  border: 1px dashed rgba(123, 68, 53, 0.24);
}

.makeup-note span {
  color: var(--muted);
  font-size: 13px;
}

.resource-card {
  grid-template-columns: 74px 1fr;
}

.resource-icon {
  min-height: 72px;
  border: 1px dashed rgba(123, 68, 53, 0.36);
}

.ask-hero {
  margin: 22px 0 20px;
  text-align: center;
}

.assistant-face {
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  color: var(--button);
  background: rgba(255, 248, 238, 0.96);
  box-shadow: var(--shadow);
  font-size: 38px;
  font-weight: 900;
  overflow: hidden;
}

.assistant-face img {
  width: 116%;
  height: 116%;
  display: block;
  object-fit: cover;
  object-position: center 44%;
}

.prompt-list button {
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 17px;
  color: var(--ink);
  text-align: left;
  background: rgba(255, 248, 238, 0.88);
  box-shadow: 0 8px 20px rgba(70, 55, 41, 0.08);
}

.ask-input {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 10px 10px 16px;
  border-radius: 22px;
  background: rgba(255, 248, 238, 0.92);
}

.ask-input span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ask-input input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.ask-input input::placeholder {
  color: rgba(139, 113, 105, 0.64);
}

.ask-input button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 16px;
  color: #fffaf2;
  background: var(--button);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 30;
  width: min(382px, calc(100vw - 44px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 8px;
  border-radius: 28px;
  background: rgba(255, 248, 238, 0.92);
  box-shadow: 0 18px 42px rgba(57, 42, 31, 0.2);
  backdrop-filter: blur(12px);
}

.bottom-nav button {
  border: 0;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 8px 4px;
  border-radius: 20px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
}

.bottom-nav button.active {
  color: var(--button);
  background: rgba(123, 68, 53, 0.09);
  font-weight: 900;
}

.nav-dot {
  width: 20px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 8px 8px 10px 6px;
  transform: rotate(-5deg);
}

@media (min-width: 900px) {
  .site-shell {
    align-items: center;
    padding: 42px;
  }

  .phone-frame {
    width: 860px;
    min-height: 760px;
    border-radius: 42px;
  }

  .screen {
    padding: 18px 42px 122px;
  }

  .intro-screen {
    display: grid;
    grid-template-columns: 1.04fr 0.96fr;
    gap: 22px;
    align-items: start;
  }

  .hero-card {
    grid-row: span 3;
    margin: 0;
    min-height: 520px;
  }

  .hero-card img {
    height: 520px;
  }

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

  .content-screen {
    max-width: 760px;
    margin: 0 auto;
  }

  .bottom-nav,
  .assessment-card {
    width: 520px;
  }
}

@media (max-width: 430px) {
  .site-shell {
    padding: 0;
  }

  .phone-frame {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
  }

  .app-header {
    padding-top: 20px;
  }

  .intro-copy h2,
  .today-hero h2,
  .calendar-head h2,
  .section-title h2,
  .ask-hero h2 {
    font-size: 23px;
  }
}

.hidden { display: none !important; }
