:root {
  --ink: #1b2533;
  --muted: #5d6b7d;
  --soft: #eef3f6;
  --line: #d8e0e5;
  --paper: #ffffff;
  --teal: #0f8f83;
  --teal-dark: #08665e;
  --coral: #e9705d;
  --gold: #c99428;
  --blue: #3267a8;
  --shadow: 0 18px 45px rgba(30, 47, 65, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f7faf9;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 0 42px;
  border-bottom: 1px solid rgba(216, 224, 229, 0.82);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(8, 102, 94, 0.18);
}

.nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav a,
.top-action,
.button {
  text-decoration: none;
}

.top-action {
  color: #fff;
  background: var(--ink);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(248, 251, 250, 0.98) 0%, rgba(248, 251, 250, 0.86) 38%, rgba(248, 251, 250, 0.24) 78%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(247, 250, 249, 0.92));
}

.hero-content {
  position: relative;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 70px 0 92px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.08;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.16;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-copy {
  max-width: 680px;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: #fff;
  background: var(--teal-dark);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 10px 14px;
  border: 1px solid rgba(216, 224, 229, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.hero-stats strong {
  font-size: 22px;
  color: var(--teal-dark);
}

.doc-hero {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 74px 0 38px;
}

.doc-hero h1 {
  max-width: 880px;
}

.doc-hero p {
  max-width: 820px;
  font-size: 18px;
}

.doc-callout {
  max-width: 860px;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  line-height: 1.7;
}

.band {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 76px 0;
}

.intro-band {
  padding-top: 88px;
}

.section-head {
  max-width: 840px;
  margin-bottom: 32px;
}

.section-head.compact {
  margin-bottom: 22px;
}

.value-grid,
.scenario-grid,
.device-grid,
.access-grid,
.steps-grid,
.plan-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.value-grid article,
.scenario-card,
.device-grid article,
.access-grid article,
.steps-grid article,
.plan-grid article,
.faq-grid article,
.flow article,
.decision,
.chat-demo,
.endpoint-box,
.doc-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.value-grid article,
.device-grid article,
.access-grid article,
.steps-grid article,
.plan-grid article,
.faq-grid article,
.doc-grid article {
  padding: 22px;
}

.family-hero .hero-overlay {
  background:
    linear-gradient(90deg, rgba(248, 251, 250, 0.99) 0%, rgba(248, 251, 250, 0.88) 42%, rgba(248, 251, 250, 0.2) 78%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(247, 250, 249, 0.92));
}

.parent-intent {
  padding-top: 88px;
}

.steps-grid,
.plan-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #fff;
  background: var(--teal-dark);
  font-weight: 800;
}

.plan-grid ul {
  margin: 16px 0 0;
  padding-left: 19px;
  color: var(--muted);
  line-height: 1.9;
}

.daily-band {
  width: 100%;
  padding-left: max(24px, calc((100vw - 1120px) / 2));
  padding-right: max(24px, calc((100vw - 1120px) / 2));
  background: #eef5f2;
}

.daily-card {
  max-width: 860px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.daily-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: #eaf7f4;
  color: var(--teal-dark);
  font-weight: 800;
}

.daily-list {
  display: grid;
  gap: 2px;
  padding: 10px 20px 18px;
}

.daily-list div {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
  align-items: start;
  padding: 13px 0;
  border-bottom: 1px solid #eef2f3;
}

.daily-list div:last-child {
  border-bottom: 0;
}

.daily-list p {
  margin: 0;
}

.status-dot {
  width: 10px;
  height: 10px;
  margin-top: 9px;
  border-radius: 50%;
}

.status-dot.ok {
  background: var(--teal);
}

.status-dot.warn {
  background: var(--gold);
}

.doc-section {
  padding-top: 54px;
  padding-bottom: 54px;
}

.doc-section h2 {
  margin-bottom: 18px;
}

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

.architecture-map {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 20px;
}

.architecture-map span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-align: center;
  box-shadow: var(--shadow);
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.doc-table th,
.doc-table td {
  padding: 14px 16px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}

.doc-table th {
  background: #eaf7f4;
  color: var(--teal-dark);
}

.code-block {
  overflow-x: auto;
  margin: 0;
  padding: 18px;
  border-radius: 8px;
  background: #142331;
  color: #d7fff7;
  line-height: 1.6;
  box-shadow: var(--shadow);
}

.doc-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  background: #fff8e7;
  color: #604814;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  color: #fff;
  background: var(--coral);
  border-radius: 8px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 34px;
  align-items: center;
}

.prompt-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.prompt-list button,
.tab {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.prompt-list button {
  min-height: 56px;
  padding: 12px;
  text-align: left;
}

.prompt-list button:hover,
.tab.active {
  border-color: var(--teal);
  background: #eaf7f4;
}

.chat-demo {
  padding: 18px;
}

.chat-row {
  width: fit-content;
  max-width: 92%;
  margin-bottom: 12px;
  padding: 13px 15px;
  border-radius: 8px;
  line-height: 1.55;
}

.chat-row.user {
  margin-left: auto;
  color: #fff;
  background: var(--teal-dark);
}

.chat-row.agent {
  background: #f1f5f4;
}

.tool-trace {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.tool-trace span {
  padding: 9px 10px;
  border-left: 3px solid var(--gold);
  background: #fff8e7;
  color: #6b521b;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.tab {
  padding: 10px 16px;
}

.scenario-card {
  padding: 18px;
}

.scenario-card[data-domain="family"] {
  border-top: 4px solid var(--coral);
}

.scenario-card[data-domain="care"] {
  border-top: 4px solid var(--teal);
}

.scenario-card[data-domain="org"] {
  border-top: 4px solid var(--blue);
}

.scenario-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
}

.scenario-card code {
  display: block;
  margin-top: 12px;
  color: var(--teal-dark);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.identity-band {
  width: 100%;
  padding-left: max(24px, calc((100vw - 1120px) / 2));
  padding-right: max(24px, calc((100vw - 1120px) / 2));
  background: #eef5f2;
}

.access-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.flow article {
  padding: 18px;
}

.flow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 50%;
  color: #fff;
  background: var(--teal-dark);
  font-weight: 800;
}

.decision {
  margin-top: 16px;
  padding: 22px;
  border-left: 5px solid var(--coral);
}

.text-link {
  display: inline-flex;
  margin-top: 4px;
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: none;
}

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

.device-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.start-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  align-items: center;
}

.endpoint-box {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.endpoint-box span {
  color: var(--muted);
}

.endpoint-box code {
  padding: 12px;
  border-radius: 8px;
  background: #152331;
  color: #d3fff6;
  overflow-wrap: anywhere;
}

.endpoint-box small {
  color: var(--muted);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #fff;
}

@media (max-width: 1080px) {
  .value-grid,
  .scenario-grid,
  .device-grid,
  .access-grid,
  .steps-grid,
  .plan-grid,
  .faq-grid,
  .flow,
  .doc-grid,
  .architecture-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .start-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 0 18px;
  }

  .nav {
    display: none;
  }

  .top-action {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    width: min(100% - 32px, 1120px);
    padding: 54px 0 66px;
  }

  .doc-hero {
    width: min(100% - 32px, 1120px);
    padding: 48px 0 24px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(248, 251, 250, 0.98) 0%, rgba(248, 251, 250, 0.9) 62%, rgba(248, 251, 250, 0.62)),
      rgba(255, 255, 255, 0.2);
  }

  .band {
    width: min(100% - 32px, 1120px);
    padding: 52px 0;
  }

  .identity-band {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .daily-band {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .value-grid,
  .scenario-grid,
  .device-grid,
  .access-grid,
  .steps-grid,
  .plan-grid,
  .faq-grid,
  .flow,
  .prompt-list,
  .doc-grid,
  .architecture-map {
    grid-template-columns: 1fr;
  }

  .doc-table {
    display: block;
    overflow-x: auto;
  }

  .daily-header {
    flex-direction: column;
  }

  .footer {
    flex-direction: column;
    padding: 24px 18px;
  }
}
