.home-body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
}

.atmosphere {
  display: none !important;
}

/* Apple 顶栏（共用） */
.apple-bar.topbar--home {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 251, 253, 0.86);
  box-shadow: none;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.apple-bar__inner {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  min-height: 52px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 6px 0;
}

.home-flash {
  width: min(980px, calc(100% - 32px));
  margin: 12px auto 0;
  position: relative;
  z-index: 1;
  padding-right: 56px;
}

.home-flash .flash {
  animation: flash-fade-out 0.4s ease 4.5s forwards;
}

@keyframes flash-fade-out {
  to {
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
  }
}

.insight-hero,
.section,
.home-footer {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.insight-hero {
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  padding: 48px 24px;
  margin-top: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  width: 100%;
  max-width: none;
  border-radius: 0;
}

.insight-hero__visual {
  display: none;
}

.brand-kicker {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--teal-deep);
  letter-spacing: 0.04em;
}

.insight-hero h1 {
  margin: 18px 0 0;
  max-width: 12em;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  line-height: 1.18;
  font-weight: 700;
}

.insight-hero__lead {
  margin: 20px 0 0;
  max-width: 36em;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-cta .primary-btn,
.hero-cta .ghost-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.section--tools {
  padding-top: 24px;
}

.insight-hero__visual,
.hero-ring {
  display: none !important;
}

.section {
  padding: 72px 0;
}

.section__intro {
  max-width: 640px;
  margin-bottom: 36px;
}

.section__intro h2,
.split__text h2,
.soft-hard h2 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.25;
}

.section__intro p,
.split__text > p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.scale-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.scale-item {
  padding: 28px 22px;
  border-top: 1px solid rgba(22, 53, 47, 0.16);
  background: transparent;
}

.scale-item--lead {
  padding: 32px 28px;
  border: 0;
  border-radius: 28px;
  color: #f4fffb;
  background:
    linear-gradient(145deg, rgba(10, 70, 62, 0.95), rgba(18, 108, 95, 0.88)),
    linear-gradient(160deg, #0b4d44, #1a7a6a);
  box-shadow: 0 24px 50px rgba(10, 70, 62, 0.28);
}

.scale-item__label {
  margin: 0;
  font-size: 0.92rem;
  color: inherit;
  opacity: 0.78;
}

.scale-item:not(.scale-item--lead) .scale-item__label {
  color: var(--ink-soft);
  opacity: 1;
}

.scale-item__value {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1;
  font-weight: 700;
}

.scale-item__value span {
  margin-left: 4px;
  font-size: 0.42em;
  font-weight: 500;
}

.scale-item__note {
  margin: 14px 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
  opacity: 0.82;
}

.scale-item:not(.scale-item--lead) .scale-item__note {
  color: var(--ink-soft);
  opacity: 1;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.fact-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  margin: 28px 0 0;
}

.fact-list dt {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.fact-list dd {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
}

.funnel {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(22, 53, 47, 0.1);
  backdrop-filter: blur(8px);
}

.funnel__title {
  margin: 0 0 18px;
  font-weight: 700;
  color: var(--teal-deep);
}

.funnel__step {
  width: var(--w);
  margin: 0 auto 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(15, 122, 107, 0.14), rgba(15, 122, 107, 0.05));
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
}

.funnel__step--accent {
  background: linear-gradient(90deg, rgba(15, 122, 107, 0.88), rgba(10, 90, 80, 0.92));
  color: #f4fffb;
}

.section--gap {
  border-radius: 32px;
  padding: 56px 40px;
  color: #f4fffb;
  background:
    radial-gradient(circle at 85% 20%, rgba(216, 181, 106, 0.28), transparent 40%),
    linear-gradient(145deg, #0c4a42 0%, #14685c 55%, #1d5f52 100%);
}

.section--gap .eyebrow {
  color: var(--sand);
}

.section--gap .section__intro p,
.gap-note {
  color: rgba(244, 255, 251, 0.82);
}

.gap-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gap-stat__value {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 700;
}

.gap-stat__label {
  margin: 10px 0 0;
  line-height: 1.55;
  color: rgba(244, 255, 251, 0.8);
}

.gap-note {
  margin: 28px 0 0;
  max-width: 70ch;
  line-height: 1.7;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: stage;
}

.timeline li {
  position: relative;
  padding: 24px 18px 18px;
  border-top: 3px solid rgba(15, 122, 107, 0.35);
}

.timeline li::before {
  counter-increment: stage;
  content: counter(stage, decimal-leading-zero);
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--teal);
}

.timeline__tag {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--teal-deep);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.timeline h3 {
  margin: 0;
  font-size: 1.15rem;
}

.timeline p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
}

.intervene-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 28px;
}

.intervene-grid article {
  padding-top: 18px;
  border-top: 1px solid rgba(22, 53, 47, 0.14);
}

.intervene-grid h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.intervene-grid p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.soft-hard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 36px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(22, 53, 47, 0.1);
}

.soft-hard ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  line-height: 1.9;
}

.home-footer {
  padding: 28px 0 64px;
  border-top: 1px solid rgba(22, 53, 47, 0.12);
  color: var(--ink-soft);
  line-height: 1.7;
}

.home-footer__brand {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--teal-deep);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(24px, 30px, 0) scale(1.08);
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.wb-assistant {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.wb-assistant__toggle {
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(145deg, #0f7a6b, #0a5a50);
  box-shadow: 0 12px 28px rgba(10, 90, 80, 0.35);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.wb-assistant__toggle:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 16px 32px rgba(10, 90, 80, 0.4);
}

.wb-assistant.is-open .wb-assistant__toggle {
  display: none;
}

.wb-assistant__panel {
  width: min(360px, calc(100vw - 28px));
  height: min(420px, calc(100vh - 110px));
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(247, 250, 248, 0.98);
  border: 1px solid rgba(22, 53, 47, 0.12);
  box-shadow: 0 22px 50px rgba(15, 52, 45, 0.22);
  backdrop-filter: blur(10px);
  transform-origin: bottom right;
  animation: wb-assistant-pop 180ms ease;
}

.wb-assistant__panel[hidden] {
  display: none !important;
}

@keyframes wb-assistant-pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wb-assistant__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background:
    radial-gradient(ellipse 80% 120% at 0% 0%, rgba(15, 122, 107, 0.16), transparent 60%),
    rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(22, 53, 47, 0.08);
}

.wb-assistant__head strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.wb-assistant__head p {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.wb-assistant__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: rgba(22, 53, 47, 0.06);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.wb-assistant__log {
  overflow: auto;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 12px 14px;
  background: rgba(15, 122, 107, 0.03);
}

.wb-assistant__bubble {
  max-width: 92%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
}

.wb-assistant__bubble--assistant {
  justify-self: start;
  background: #fff;
  border: 1px solid rgba(22, 53, 47, 0.08);
}

.wb-assistant__bubble--assistant p {
  margin: 0 0 8px;
}

.wb-assistant__bubble--assistant p:last-child {
  margin-bottom: 0;
}

.wb-assistant__bubble--assistant code {
  padding: 1px 5px;
  border-radius: 6px;
  background: rgba(15, 122, 107, 0.08);
  font-size: 0.86em;
}

.wb-md__title {
  font-weight: 700;
  color: var(--teal-deep);
}

.wb-md__list {
  margin: 0 0 8px;
  padding-left: 1.2em;
}

.wb-md__list li {
  margin: 0.2em 0;
}

.wb-md__table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 6px 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(22, 53, 47, 0.1);
}

.wb-md__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  background: rgba(247, 250, 248, 0.9);
}

.wb-md__table th,
.wb-md__table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(22, 53, 47, 0.08);
  text-align: center;
  white-space: nowrap;
}

.wb-md__table th {
  background: rgba(15, 122, 107, 0.1);
  color: var(--teal-deep);
  font-weight: 700;
}

.wb-md__table tr:last-child td {
  border-bottom: 0;
}

.wb-assistant__bubble--user {
  justify-self: end;
  background: var(--teal-deep);
  color: #fff;
  white-space: pre-wrap;
}

.wb-assistant__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(22, 53, 47, 0.08);
  background: rgba(255, 255, 255, 0.85);
}

.wb-assistant__form input {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(22, 53, 47, 0.12);
  font: inherit;
  background: #fff;
}

.wb-assistant__form button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: var(--teal-deep);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.wb-assistant__form button:disabled {
  opacity: 0.6;
  cursor: default;
}

@media (max-width: 980px) {
  .insight-hero,
  .split,
  .soft-hard,
  .scale-grid,
  .gap-row,
  .timeline,
  .intervene-grid {
    grid-template-columns: 1fr;
  }

  .insight-hero {
    min-height: auto;
    padding-top: 32px;
  }

  .insight-hero__visual {
    order: -1;
  }

  .hero-ring {
    width: min(70vw, 280px);
  }

  .section--gap {
    padding: 40px 24px;
  }

  .timeline li {
    border-top: 0;
    border-left: 3px solid rgba(15, 122, 107, 0.35);
    padding-left: 18px;
  }

  .wb-assistant {
    right: 14px;
    bottom: 14px;
  }

  .wb-assistant__panel {
    width: min(100vw - 24px, 360px);
    height: min(52vh, 420px);
  }
}

/* ─── 患者主页 · Apple 风格分区 ───────────────────────────── */

.home-body--patient {
  --patient-text: 1.125rem;
  --patient-title: clamp(2.6rem, 9vw, 3.6rem);
  --patient-tap: 56px;
  background: var(--bg);
}

.apple-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 251, 253, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.apple-nav__inner {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.apple-nav__brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.apple-nav__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.apple-nav__user {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.apple-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--pill);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.apple-nav__link:hover {
  background: var(--teal-soft);
  text-decoration: none;
}

.patient-main {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
  padding: 0 0 48px;
}

.apple-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 48px 20px 52px;
}

.apple-hero__eyebrow {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.apple-hero__title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: var(--patient-title);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink);
}

.apple-hero__sub {
  margin: 14px 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.apple-hero__cta-wrap {
  margin-top: 28px;
}

.apple-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 360px);
  min-height: var(--patient-tap);
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
}

.apple-hero__text-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.apple-hero__text-link:hover {
  text-decoration: underline;
}

.apple-tiles {
  width: min(980px, calc(100% - 28px));
  margin: 28px auto 0;
}

.apple-tiles__heading {
  margin: 0 0 14px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.apple-tiles__grid {
  display: grid;
  gap: 14px;
}

.apple-tile {
  display: grid;
  gap: 8px;
  padding: 22px 22px;
  min-height: 88px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  transition: transform 120ms ease, box-shadow 160ms ease;
}

.apple-tile:hover {
  text-decoration: none;
  box-shadow: var(--shadow);
}

.apple-tile:active {
  transform: scale(0.99);
}

.apple-tile strong {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.apple-tile span {
  font-size: var(--patient-text);
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink-muted);
}

.apple-foot {
  width: min(980px, calc(100% - 28px));
  margin: 36px auto 0;
  text-align: center;
}

.apple-foot p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

.apple-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: center;
  align-items: center;
  margin-top: 14px !important;
}

.apple-foot__links a {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--accent);
}

.patient-logout {
  display: inline;
  margin: 0;
}

.patient-logout__btn {
  border: 0;
  background: none;
  padding: 8px 4px;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 768px) {
  .wb-assistant {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

/* 旧患者样式兼容（若残留 class） */
.topbar--patient.topbar--home,
.home-body--patient .topbar--home {
  width: 100%;
  margin: 0;
  border-radius: 0;
}

/* 家属工作台 */
.caregiver-home .apple-bar__inner,
.caregiver-home .apple-global-nav__inner {
  flex-wrap: nowrap;
  min-height: 48px;
}

.cg-workbench {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 48px;
}

.cg-hero {
  padding: 28px 0 8px;
}

.cg-hero h1 {
  margin: 6px 0 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.cg-hero__lead {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 36em;
}

.cg-patient {
  padding-top: 8px;
}

.cg-xiaozhi {
  padding-top: 12px;
}

.cg-xiaozhi__lead {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cg-xiaozhi textarea {
  width: 100%;
  min-height: 4.5rem;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
}

.cg-xiaozhi__list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.cg-xiaozhi__empty {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.cg-xiaozhi__item {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg, #f7f5f2);
}

.cg-xiaozhi__meta {
  display: grid;
  gap: 4px;
  min-width: min(100%, 280px);
}

.cg-xiaozhi__meta strong {
  font-size: 1.05rem;
}

.cg-xiaozhi__status {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.cg-xiaozhi__endpoint {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  word-break: break-all;
  color: var(--ink-muted);
}

.cg-xiaozhi__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cg-xiaozhi__actions button {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font: inherit;
}

.cg-summary {
  margin: 18px 0 0;
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.cg-summary__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cg-summary__lead {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.cg-summary__list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.cg-summary__list a {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.02rem;
}

.cg-summary__list a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cg-force-bind {
  margin: 0 0 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(154, 103, 0, 0.12);
  border: 1px solid rgba(154, 103, 0, 0.28);
  color: var(--warning);
}

.cg-force-bind strong {
  display: block;
  font-size: 1.05rem;
}

.cg-force-bind p {
  margin: 8px 0 0;
  line-height: 1.55;
  font-size: 0.98rem;
}

.cg-empty-hint {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(154, 103, 0, 0.1);
  color: var(--warning);
}

/* 手机常驻底栏 */
.mobile-tabbar {
  display: none;
}

@media (max-width: 768px) {
  .tool-body,
  .caregiver-home,
  .home-body--patient {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .tool-main,
  .cg-workbench,
  .patient-main {
    padding-bottom: 24px;
  }

  .mobile-tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    min-height: 56px;
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px));
    background: rgba(251, 251, 253, 0.94);
    border-top: 1px solid var(--line);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    justify-content: space-around;
    align-items: stretch;
    gap: 2px;
  }

  .mobile-tabbar__item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 6px 4px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ink-muted);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
  }

  .mobile-tabbar__item::-webkit-details-marker {
    display: none;
  }

  .mobile-tabbar__item.is-active,
  .mobile-tabbar__item:hover {
    color: var(--accent);
    background: var(--teal-soft);
    text-decoration: none;
  }

  .mobile-tabbar__more {
    flex: 1;
    position: relative;
  }

  .mobile-tabbar__more > summary {
    width: 100%;
  }

  .mobile-tabbar__sheet {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    min-width: 180px;
    padding: 8px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: grid;
    gap: 4px;
  }

  .mobile-tabbar__sheet a,
  .mobile-tabbar__sheet button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
  }

  .mobile-tabbar__sheet a:hover,
  .mobile-tabbar__sheet button:hover {
    background: var(--teal-soft);
  }

  .mobile-tabbar__sheet form {
    margin: 0;
  }

  /* 手机顶栏更易点：常驻 sticky */
  .apple-global-nav,
  .tool-body .topbar--home.apple-bar {
    position: sticky;
    top: 0;
    z-index: 50;
  }
}

.cg-register {
  margin: 18px 0 0;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.cg-register > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
}

.cg-register > summary::-webkit-details-marker {
  display: none;
}

.cg-register > summary::before {
  content: "＋ ";
  color: var(--accent);
}

.cg-register[open] > summary::before {
  content: "－ ";
}

.feature-gate--ranked {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-gate__card--primary {
  grid-column: span 1;
  padding: 26px 22px !important;
  border-color: rgba(10, 124, 110, 0.28) !important;
  background: linear-gradient(180deg, #fff 0%, #f3faf8 100%) !important;
}

.feature-gate__card--primary h3 {
  font-size: 1.5rem !important;
}

.feature-gate__card--primary .feature-gate__audience {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--teal-soft);
}

.feature-gate__card--secondary {
  opacity: 0.88;
  padding: 16px 18px !important;
}

.feature-gate__card--secondary h3 {
  font-size: 1.15rem !important;
}

.feature-gate__card--secondary p {
  font-size: 0.92rem !important;
}

.home-footer--compact {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.home-footer--compact a {
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 860px) {
  .feature-gate--ranked {
    grid-template-columns: 1fr;
  }

  .feature-gate__card--primary {
    order: 0;
  }
}

/* ─── 公开落地页 ───────────────────────────────────────── */
.landing-body {
  background: var(--bg);
}

.landing-nav .landing-nav__inner {
  flex-wrap: nowrap;
  min-height: 48px;
}

.landing-nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-nav__link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 8px 10px;
}

.landing-nav__link:hover {
  color: var(--ink);
  text-decoration: none;
}

.landing-nav__cta {
  min-height: 36px;
  padding: 8px 16px;
  font-size: 0.8125rem;
}

.landing-hero {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 48px;
  text-align: center;
  animation: rise-in 0.7s ease both;
}

.landing-hero--visual {
  width: 100%;
  max-width: none;
  padding: 0 0 40px;
  position: relative;
}

.landing-hero__media {
  position: relative;
  width: 100%;
  max-height: min(52vh, 420px);
  overflow: hidden;
  background: #e8eeec;
}

.landing-hero__media img {
  display: block;
  width: 100%;
  height: min(52vh, 420px);
  object-fit: cover;
  object-position: center 40%;
}

.landing-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(245, 245, 247, 0.15) 0%, rgba(245, 245, 247, 0.92) 78%, var(--bg) 100%);
}

.landing-hero__copy {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 40px));
  margin: -72px auto 0;
  text-align: center;
}

.landing-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 22px;
}

.landing-split--rev {
  grid-template-columns: 0.9fr 1.1fr;
}

.landing-figure {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.landing-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.landing-hero__brand {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.landing-hero h1 {
  margin: 16px auto 0;
  max-width: 16em;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.landing-hero__lead {
  margin: 16px auto 0;
  max-width: 34em;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.65;
}

.landing-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 28px;
}

.landing-hero__text {
  width: 100%;
  margin-top: 4px;
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.landing-section {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 24px;
}

.landing-section__intro {
  max-width: 40em;
  margin-bottom: 22px;
}

.landing-section__intro h2 {
  margin: 8px 0 0;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  letter-spacing: -0.02em;
}

.landing-section__intro p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.landing-why {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.landing-why article,
.landing-feature-block {
  padding: 22px 20px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.landing-why h3,
.landing-feature-block h3 {
  margin: 0;
  font-size: 1.15rem;
}

.landing-why p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 0.98rem;
}

.landing-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.landing-feature-block ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.landing-feature-block li {
  color: var(--ink-soft);
  line-height: 1.55;
  font-size: 0.98rem;
}

.landing-feature-block strong {
  color: var(--ink);
}

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

.landing-stats article {
  padding: 20px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #f3faf8 100%);
  border: 1px solid rgba(10, 124, 110, 0.18);
  text-align: center;
}

.landing-stats__value {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.landing-stats__value span {
  font-size: 0.55em;
  margin-left: 2px;
}

.landing-stats__label {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.landing-disclaimer {
  margin: 16px 0 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.landing-xiaozhi {
  margin-top: 22px;
  max-width: 40rem;
}

.landing-xiaozhi__steps {
  margin: 0;
  padding-left: 1.2em;
  color: var(--ink);
  line-height: 1.7;
  font-size: 1.05rem;
}

.landing-xiaozhi__note {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.landing-xiaozhi .landing-hero__cta {
  margin-top: 20px;
}

.landing-cta-band {
  width: min(980px, calc(100% - 40px));
  margin: 24px auto 48px;
  padding: 36px 24px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.landing-cta-band h2 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.landing-cta-band > p {
  margin: 10px 0 0;
  color: var(--ink-soft);
}

.landing-foot {
  padding: 28px 16px 40px;
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.landing-foot__brand {
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 800px) {
  .landing-why,
  .landing-features,
  .landing-stats,
  .landing-split,
  .landing-split--rev {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    padding-top: 36px;
    text-align: left;
  }

  .landing-hero__copy {
    margin-top: -48px;
    text-align: left;
  }

  .landing-hero__cta {
    justify-content: flex-start;
  }
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 2px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.lang-toggle__btn {
  min-height: 28px;
  min-width: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-muted, #64748b);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.lang-toggle__btn.is-active {
  background: #fff;
  color: var(--ink, #0f172a);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.auth-lang-slot {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 16px;
}
