:root {
  color-scheme: light;
  --ink: #173633;
  --muted: #5f706c;
  --quiet: #8a9994;
  --line: #dfe9e4;
  --surface: #f3fbf6;
  --soft: #eef5f2;
  --card: rgba(255, 255, 255, 0.76);
  --green-deep: #0f5148;
  --coral: #cf6f55;
  --shadow: 0 26px 70px rgba(23, 54, 51, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  letter-spacing: 0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 82% 14%, rgba(139, 196, 215, 0.22), transparent 28rem),
    linear-gradient(135deg, #fffdf7 0%, var(--surface) 58%, #eef8f2 100%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.page { overflow: hidden; }
.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header { padding: 26px 0 18px; }
.nav, .brand, .actions, .cross-links, .button, .status-pill { display: flex; align-items: center; }
.nav { justify-content: space-between; gap: 18px; }
.brand { gap: 12px; font-size: 18px; font-weight: 850; }
.brand img { width: 42px; height: 42px; border-radius: 8px; box-shadow: 0 10px 26px rgba(31, 111, 98, 0.14); }
.nav-links { display: flex; gap: 22px; color: var(--muted); font-size: 14px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 72px;
  align-items: center;
  min-height: calc(100vh - 86px);
  padding: 42px 0 84px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--green-deep);
  font-size: 14px;
  font-weight: 780;
}

.kicker::before { content: ""; width: 34px; height: 2px; background: var(--accent, var(--coral)); }
h1 { max-width: 780px; margin: 0; font-size: 58px; line-height: 1.03; letter-spacing: 0; font-weight: 880; }
.lead { max-width: 660px; margin: 28px 0 0; color: var(--muted); font-size: 20px; line-height: 1.78; }
.actions { flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button { justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 8px; font-size: 15px; font-weight: 780; }
.button.primary { color: #f7fffb; background: var(--green-deep); box-shadow: 0 14px 34px rgba(15, 81, 72, 0.24); }
.button.secondary { color: var(--green-deep); background: rgba(255, 255, 255, 0.68); border: 1px solid var(--line); }
.note { max-width: 660px; margin: 18px 0 0; color: var(--quiet); font-size: 14px; line-height: 1.7; }

.visual-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(223, 233, 228, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.36)), var(--soft);
  box-shadow: var(--shadow);
}

.visual-card::after {
  content: "";
  position: absolute;
  inset: auto -18% -30% 18%;
  height: 260px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent, var(--green-deep)) 16%, transparent);
}

.doctor-dashboard { position: relative; z-index: 1; display: grid; gap: 14px; padding: 28px; }
.doctor-score, .doctor-row, .mini-row { display: grid; align-items: center; gap: 18px; }
.doctor-score {
  grid-template-columns: 84px 1fr;
  padding: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}
.doctor-score img { width: 84px; height: 84px; border-radius: 8px; }
.doctor-score strong { display: block; font-size: 34px; color: var(--green-deep); }
.doctor-row { grid-template-columns: 1fr auto; padding: 18px; border-radius: 8px; background: rgba(255, 255, 255, 0.68); }
.doctor-row span, .mini-row span, .patient-task span { display: block; margin-top: 5px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.status-pill {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--green-deep);
  background: color-mix(in srgb, var(--accent, var(--green-deep)) 18%, #ffffff);
  font-size: 13px;
  font-weight: 780;
  white-space: nowrap;
}

.family-phone {
  position: relative;
  z-index: 1;
  width: min(330px, calc(100% - 56px));
  margin: 42px auto;
  padding: 18px;
  border-radius: 28px;
  background: #183c37;
  box-shadow: 0 28px 62px rgba(23, 54, 51, 0.24);
}
.family-screen { min-height: 430px; padding: 22px; border-radius: 20px; background: #f9fbf4; }
.family-screen h2, .patient-panel h2 { margin: 0 0 18px; font-size: 24px; }
.mini-row { grid-template-columns: 44px 1fr; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.mini-row img { width: 40px; height: 40px; }

.patient-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 18px;
  align-items: end;
  min-height: 520px;
  padding: 28px;
}
.patient-stage img { align-self: end; justify-self: center; width: 260px; }
.patient-panel { align-self: center; padding: 24px; border-radius: 8px; background: rgba(255, 255, 255, 0.74); }
.patient-task { padding: 18px 0; border-top: 1px solid var(--line); }

section { padding: 64px 0; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 0.9fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 28px;
}
.section-head h2 { margin: 0; font-size: 34px; line-height: 1.14; letter-spacing: 0; }
.section-head p, .info-card p, .boundary p { margin: 0; color: var(--muted); line-height: 1.75; }
.section-head p { font-size: 17px; }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.info-card, .boundary { padding: 24px; border-radius: 8px; }
.info-card { background: var(--card); border: 1px solid rgba(223, 233, 228, 0.9); }
.info-card small { display: block; margin-bottom: 16px; color: var(--accent, var(--coral)); font-weight: 850; }
.info-card h3 { margin: 0 0 14px; font-size: 22px; line-height: 1.25; }

.boundary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  color: #f7fffb;
  background: var(--green-deep);
  box-shadow: var(--shadow);
}
.boundary h2 { margin: 0; font-size: 28px; }
.boundary p { margin-top: 14px; color: rgba(247, 255, 251, 0.76); }
.boundary .button.secondary { color: var(--green-deep); background: #f7fffb; }
.cross-links { flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.site-footer { padding: 28px 0 42px; color: var(--quiet); font-size: 13px; }
.site-footer .shell {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.doctor-theme { --accent: #2f6f67; }
.family-theme { --accent: #a56a2a; }
.patient-theme { --accent: #4c8aa8; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero, .section-head, .boundary { grid-template-columns: 1fr; }
  .hero { min-height: auto; gap: 38px; padding-top: 28px; }
  h1 { font-size: 44px; }
  .info-grid, .patient-stage { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 28px, 1120px); }
  h1 { font-size: 36px; }
  .lead { font-size: 18px; }
  .visual-card { min-height: auto; }
  .doctor-score, .doctor-row { grid-template-columns: 1fr; }
  .family-phone { width: calc(100% - 28px); margin: 24px auto; }
  .patient-stage img { width: 210px; }
  .button { width: 100%; }
}
