:root {
  color-scheme: light;
  --bg: #f2eee6;
  --paper: #fffdf8;
  --ink: #1e2924;
  --muted: #64726c;
  --line: #ded6c8;
  --green: #0d6f62;
  --green-dark: #064d45;
  --clay: #b45d43;
  --gold: #ba862c;
  --blue: #355c7d;
  --soft-green: #e5f2ee;
  --soft-clay: #f5e3db;
  --soft-blue: #e8eef3;
  --shadow: 0 18px 44px rgba(31, 41, 37, 0.13);
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

button,
select,
input {
  font: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

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

.mobile-shell {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 82px;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(31, 41, 37, 0.06);
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 20, 18, 0.1) 0%, rgba(10, 20, 18, 0.2) 44%, rgba(10, 20, 18, 0.82) 100%),
    linear-gradient(90deg, rgba(10, 20, 18, 0.6), transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 92vh;
  flex-direction: column;
  justify-content: flex-end;
  padding: max(28px, env(safe-area-inset-top)) 20px 32px;
  color: #fffdf8;
}

.brand-kicker,
.eyebrow {
  margin: 0 0 8px;
  color: #e4b864;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 10px;
  font-size: 54px;
  line-height: 1;
  font-weight: 900;
}

.subtitle {
  width: min(340px, 100%);
  margin-bottom: 12px;
  font-size: 19px;
  line-height: 1.42;
  font-weight: 750;
}

.slogan {
  margin-bottom: 18px;
  color: rgba(255, 253, 248, 0.9);
  font-size: 15px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.hero-proof span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 253, 248, 0.16);
  color: #fffdf8;
  font-size: 12px;
  font-weight: 800;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.primary-action,
.secondary-action,
.profile-form button,
.today-card button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 850;
}

.primary-action,
.profile-form button,
.today-card button {
  border: 0;
  background: #f2c15d;
  color: #1f2925;
}

.secondary-action {
  border: 1px solid rgba(255, 253, 248, 0.55);
  background: rgba(255, 253, 248, 0.12);
  color: #fffdf8;
}

.need-strip {
  display: grid;
  gap: 10px;
  padding: 14px 16px 4px;
}

.need-strip article,
.today-card,
.system-card,
.module-grid article,
.path-list article,
.ai-dashboard,
.plan-result,
.booking-panel,
.mini-program {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
}

.need-strip article {
  display: grid;
  gap: 5px;
  padding: 14px;
}

.need-strip strong {
  font-size: 16px;
}

.need-strip span,
.section-head p,
.today-card p,
.system-card p,
.module-grid p,
.path-list span,
.score-card p,
.mini-program li,
.plan-result p,
.booking-panel p {
  color: var(--muted);
  line-height: 1.62;
}

.section {
  padding: 30px 16px 4px;
}

.section-head {
  margin-bottom: 16px;
}

.section-head h2 {
  margin-bottom: 8px;
  font-size: 27px;
  line-height: 1.2;
}

.section-head p {
  margin-bottom: 0;
}

.today-stack,
.system-list,
.path-list {
  display: grid;
  gap: 10px;
}

.today-card {
  display: grid;
  gap: 8px;
  padding: 15px;
}

.today-card.primary {
  grid-template-columns: 1fr auto;
  align-items: center;
  background: var(--soft-green);
  border-color: rgba(13, 111, 98, 0.32);
}

.today-card .tag {
  width: fit-content;
  margin-bottom: 4px;
  background: rgba(13, 111, 98, 0.12);
  color: var(--green-dark);
}

.today-card h3,
.system-card h3,
.module-grid h3,
.score-card strong,
.booking-panel h3,
.plan-result h3 {
  margin-bottom: 6px;
  font-size: 17px;
}

.today-card p,
.system-card p,
.module-grid p,
.plan-result p,
.booking-panel p {
  margin-bottom: 0;
  font-size: 14px;
}

.today-card button {
  min-width: 68px;
  min-height: 42px;
  padding: 0 14px;
}

.system-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 15px;
}

.system-card.featured {
  background: var(--soft-green);
  border-color: rgba(13, 111, 98, 0.34);
}

.icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.module-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.module-grid article {
  min-height: 170px;
  padding: 14px;
}

.module-grid span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 900;
}

.tone-section {
  margin-top: 18px;
  padding-top: 30px;
  background: #f7f4ee;
}

.path-list article {
  display: grid;
  gap: 5px;
  padding: 14px 15px;
}

.path-list strong {
  color: var(--green-dark);
  font-size: 16px;
}

.ai-dashboard {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #112c27;
  box-shadow: var(--shadow);
}

.score-card {
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 253, 248, 0.94);
}

.score-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.score-card strong {
  display: block;
  margin: 5px 0 2px;
  color: var(--green-dark);
  font-size: 42px;
  line-height: 1;
}

.chat-panel {
  display: grid;
  gap: 10px;
}

.chat-row {
  max-width: 88%;
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.55;
}

.chat-row.bot {
  background: rgba(255, 253, 248, 0.94);
}

.chat-row.user {
  justify-self: end;
  background: #f2c15d;
}

.task-list {
  display: grid;
  gap: 8px;
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 253, 248, 0.08);
  color: #fffdf8;
}

.task-list label {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.profile-form {
  display: grid;
  gap: 12px;
}

.profile-form label {
  display: grid;
  gap: 7px;
  font-weight: 850;
}

.profile-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fffefa;
  color: var(--ink);
}

.profile-form button {
  margin-top: 4px;
}

.plan-result {
  margin-top: 12px;
  padding: 16px;
  border-color: rgba(181, 91, 65, 0.3);
  background: var(--soft-clay);
}

.flow-line {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.flow-line span {
  min-height: 42px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fffefa;
  font-weight: 850;
}

.booking-panel {
  margin-top: 12px;
  padding: 16px;
  background: var(--soft-blue);
}

.mini-program {
  margin: 30px 16px 22px;
  padding: 18px 16px;
}

.mini-program ul {
  display: grid;
  gap: 10px;
  padding-left: 19px;
  margin: 0;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(100%, 480px);
  transform: translateX(-50%);
  padding: 9px 12px max(9px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(31, 41, 37, 0.12);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(16px);
}

.bottom-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.bottom-nav a.active {
  background: var(--soft-green);
  color: var(--green-dark);
}

@media (min-width: 760px) {
  body {
    background:
      linear-gradient(120deg, rgba(13, 111, 98, 0.08), transparent 36%),
      linear-gradient(45deg, rgba(181, 91, 65, 0.08), transparent 42%),
      var(--bg);
  }

  .mobile-shell {
    margin: 18px auto;
    border-radius: 18px;
    overflow: hidden;
  }

  .bottom-nav {
    border-radius: 18px 18px 0 0;
  }
}
