:root {
  --ink: #23342f;
  --muted: #68756f;
  --cream: #f7f2ec;
  --paper: #fffdf9;
  --line: #e7ded4;
  --sage: #6f8f7e;
  --sage-dark: #46695a;
  --sage-soft: #dfe9e2;
  --peach: #f1c8b5;
  --peach-soft: #f9e8de;
  --rose: #b85e5e;
  --shadow: 0 18px 55px rgba(64, 66, 55, .09);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; line-height: 1.65; }
button, input, textarea { font: inherit; }
a { color: inherit; }
.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.hero { overflow: hidden; background: radial-gradient(circle at 82% 8%, #f7daca 0 12%, transparent 40%), linear-gradient(135deg, #edf3ed 0%, #f8f3ec 64%, #f6e4da 100%); border-bottom: 1px solid rgba(35,52,47,.08); }
.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; gap: 11px; align-items: center; text-decoration: none; font-weight: 750; letter-spacing: .02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: white; border-radius: 50% 50% 50% 18%; background: var(--sage-dark); }
.private-pill, .status-chip { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 13px; border-radius: 999px; color: var(--sage-dark); background: rgba(255,255,255,.66); border: 1px solid rgba(70,105,90,.16); font-size: 13px; font-weight: 700; white-space: nowrap; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.back-home { color: var(--sage-dark); font-size: 13px; font-weight: 750; text-decoration: none; }
.back-home:hover { text-decoration: underline; }
.status-chip { background: var(--peach-soft); border-color: transparent; }
.status-chip.good { background: var(--sage-soft); }
.hero-grid { min-height: 530px; display: grid; grid-template-columns: 1.35fr .8fr; gap: 80px; align-items: center; padding: 74px 0 92px; }
.eyebrow { margin: 0 0 12px; color: var(--sage-dark); font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 22px; font-family: Georgia, "Songti SC", "STSong", serif; font-size: clamp(48px, 7vw, 82px); line-height: 1.06; letter-spacing: -.045em; font-weight: 600; }
.hero-note { max-width: 620px; margin-bottom: 30px; color: #53615b; font-size: 17px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 999px; text-decoration: none; font-weight: 750; }
.button.primary { color: white; background: var(--sage-dark); box-shadow: 0 10px 24px rgba(70,105,90,.24); }
.button.secondary { background: rgba(255,255,255,.72); border: 1px solid rgba(35,52,47,.12); }
.countdown-card { padding: 34px; border-radius: 38px; color: white; background: var(--sage-dark); box-shadow: var(--shadow); transform: rotate(1.2deg); }
.countdown-label { font-size: 14px; letter-spacing: .12em; }
.countdown-number { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 -2px; }
.countdown-number strong { font-family: Georgia, serif; font-size: 92px; line-height: 1; font-weight: 500; }
.countdown-number span { font-size: 20px; }
.countdown-card p { color: rgba(255,255,255,.82); }
.progress { height: 8px; margin: 26px 0 12px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.18); }
.progress span { display: block; width: 86%; height: 100%; border-radius: inherit; background: var(--peach); }
.countdown-card small { color: rgba(255,255,255,.76); }
.section { padding: 92px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 36px; }
h2 { margin-bottom: 0; font-family: Georgia, "Songti SC", "STSong", serif; font-size: clamp(34px, 4.5vw, 52px); line-height: 1.18; font-weight: 600; letter-spacing: -.035em; }
h3 { margin-bottom: 8px; font-size: 19px; line-height: 1.4; }
.section-aside { max-width: 320px; margin: 0; color: var(--muted); font-size: 14px; text-align: right; }
.metrics-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }
.metric-card { min-height: 205px; padding: 26px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.metric-card.warm { background: var(--peach-soft); border-color: transparent; }
.metric-card > span { color: var(--muted); font-size: 14px; }
.metric-card strong { margin: auto 0 6px; font-family: Georgia, serif; font-size: 52px; line-height: 1; font-weight: 500; }
.metric-card strong small { font-family: inherit; font-size: 18px; }
.metric-card p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.insight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.panel { display: flex; gap: 18px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); }
.panel p { margin: 0; color: var(--muted); }
.panel-icon { flex: 0 0 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--sage-soft); color: var(--sage-dark); font-weight: 900; }
.soft-section { background: var(--cream); }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 79px; top: 28px; bottom: 28px; width: 1px; background: #d8ccc0; }
.timeline-item { position: relative; display: grid; grid-template-columns: 58px 1fr auto; gap: 44px; align-items: start; padding: 22px 0; }
.week-badge { position: relative; z-index: 1; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--sage-dark); box-shadow: 0 0 0 8px var(--cream); font-family: Georgia, serif; font-size: 20px; }
.week-copy h3 { margin-bottom: 3px; font-size: 21px; }
.week-copy p { margin-bottom: 0; color: var(--muted); }
.week-date { padding-top: 8px; color: var(--sage-dark); font-weight: 800; white-space: nowrap; }
.plate-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 54px; align-items: center; }
.plate-card { padding: 32px; border-radius: 34px; background: var(--cream); text-align: center; }
.plate { aspect-ratio: 1; max-width: 380px; margin: 0 auto 24px; display: grid; grid-template: 1fr 1fr / 1fr 1fr; gap: 4px; padding: 20px; border: 2px solid #d9cec2; border-radius: 50%; overflow: hidden; background: white; box-shadow: inset 0 0 0 10px white, 0 12px 35px rgba(64,66,55,.08); }
.plate > div { display: flex; align-items: center; justify-content: center; flex-direction: column; }
.plate b { font-family: Georgia, serif; font-size: 38px; font-weight: 500; }
.plate span { font-size: 13px; font-weight: 750; }
.plate-veg { grid-row: 1 / 3; background: #d9e9dc; border-radius: 180px 8px 8px 180px; }
.plate-protein { background: #f4d8ca; border-radius: 8px 180px 8px 8px; }
.plate-carb { background: #eadfbd; border-radius: 8px 8px 180px 8px; }
.plate-card p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.food-rules article { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.food-rules article:last-child { border: 0; }
.food-rules article > span { color: var(--peach); font-family: Georgia, serif; font-size: 24px; }
.food-rules p { margin-bottom: 0; color: var(--muted); }
.text-button { padding: 8px 0; color: var(--sage-dark); border: 0; background: none; font-weight: 750; cursor: pointer; }
.daily-card { padding: 34px; border-radius: 32px; background: white; box-shadow: var(--shadow); }
fieldset { margin: 0 0 28px; padding: 0; border: 0; }
legend { margin-bottom: 18px; font-weight: 800; }
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.check-grid label, .question-list label { position: relative; display: flex; gap: 12px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: white; cursor: pointer; }
input[type="checkbox"] { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--sage-dark); }
.check-grid label:has(input:checked), .question-list label:has(input:checked) { background: #edf4ef; border-color: #bcd0c3; }
.notes-label { display: block; margin-bottom: 9px; font-weight: 800; }
textarea { width: 100%; resize: vertical; padding: 16px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: #fffdfa; outline: none; }
textarea:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(111,143,126,.15); }
.save-row { display: flex; justify-content: space-between; gap: 20px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.question-list { display: grid; gap: 12px; }
.question-list label { align-items: flex-start; padding: 22px; }
.question-list b { display: block; margin-bottom: 3px; color: var(--sage-dark); }
.report-section { padding-top: 46px; }
.report-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.report-grid article { padding: 24px; border: 1px solid var(--line); border-radius: 22px; }
.report-date { display: inline-block; margin-bottom: 24px; color: var(--sage-dark); font-family: Georgia, serif; font-size: 15px; }
.report-grid p { margin: 0; color: var(--muted); font-size: 14px; }
.alert-section { padding: 24px 0 92px; }
.alert-card { padding: 42px; color: #fff8f4; border-radius: 34px; background: #7f4444; }
.alert-top { display: flex; gap: 20px; align-items: center; margin-bottom: 26px; }
.alert-icon { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; color: #7f4444; border-radius: 50%; background: #f3cbbb; font-size: 26px; font-weight: 900; }
.alert-card .eyebrow { color: #f3cbbb; }
.alert-card h2 { font-size: clamp(30px, 4vw, 44px); }
.alert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.alert-grid span { padding: 13px 14px; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; background: rgba(255,255,255,.07); font-size: 14px; }
.alert-foot { margin: 22px 0 0; color: rgba(255,255,255,.72); font-size: 13px; }
.footer { padding: 26px 0; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }
.footer .shell { display: flex; justify-content: space-between; gap: 20px; }
.footer p { margin: 0; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 38px; padding: 52px 0 68px; }
  .countdown-card { max-width: 520px; transform: none; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metric-card.warm { grid-column: 1 / 3; }
  .insight-grid, .plate-layout { grid-template-columns: 1fr; }
  .plate-card { max-width: 520px; width: 100%; margin: auto; }
  .check-grid { grid-template-columns: 1fr 1fr; }
  .report-grid, .alert-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 28px, 1120px); }
  .nav { height: 64px; }
  .brand { font-size: 14px; }
  .private-pill { padding: 5px 10px; font-size: 11px; }
  .back-home { display: none; }
  .hero-grid { min-height: 0; padding-top: 44px; }
  h1 { font-size: 48px; }
  .hero-note { font-size: 15px; }
  .countdown-card { padding: 26px; border-radius: 28px; }
  .countdown-number strong { font-size: 74px; }
  .section { padding: 68px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 28px; }
  .section-aside { text-align: left; }
  h2 { font-size: 36px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-card.warm { grid-column: auto; }
  .metric-card { min-height: 178px; }
  .panel { padding: 22px; }
  .timeline::before { left: 25px; }
  .timeline-item { grid-template-columns: 50px 1fr; gap: 18px; }
  .week-badge { width: 50px; height: 50px; box-shadow: 0 0 0 6px var(--cream); font-size: 17px; }
  .week-date { grid-column: 2; padding-top: 0; font-size: 13px; }
  .plate-card { padding: 18px; }
  .plate { padding: 13px; }
  .plate span { font-size: 11px; }
  .food-rules article { grid-template-columns: 36px 1fr; }
  .daily-card { padding: 22px; border-radius: 24px; }
  .check-grid, .report-grid, .alert-grid { grid-template-columns: 1fr; }
  .save-row, .footer .shell { align-items: flex-start; flex-direction: column; }
  .alert-section { padding-bottom: 68px; }
  .alert-card { padding: 28px 22px; border-radius: 26px; }
  .alert-top { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
