:root {
  color-scheme: light;
  --ink: #142f30;
  --muted: #495f60;
  --teal: #08786f;
  --teal-dark: #075d56;
  --paper: #fff;
  --mint: #edf8f5;
  --line: #d5e7e2;
  --surface: #f5faf8;
  --font: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
  --shell: 78rem;
  --gutter: clamp(1.25rem, 4vw, 4rem);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
h1, h2, h3, h4 { line-height: 1.25; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
section[id], article[id] { scroll-margin-top: 1rem; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 2;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-160%);
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  color: white;
  background: var(--teal-dark);
}

.skip-link:focus { transform: none; }

.shell {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.opening {
  overflow-x: clip;
  background: linear-gradient(104deg, #fafcfb, #eef8f6 56%, #e6f4f2);
}

.site-header {
  border-bottom: 1px solid rgb(17 71 67 / 8%);
}

.header-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.25rem;
  min-height: 5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.65rem;
  font-size: 1.18rem;
  font-weight: 700;
  white-space: nowrap;
}

.brand-art {
  display: block;
  flex: none;
  width: 5rem;
  height: auto;
}

.brand-art img { width: 100%; height: auto; }

.primary-nav, .header-actions {
  display: flex;
  align-items: center;
}

.primary-nav { gap: clamp(1.5rem, 3.4vw, 3rem); }
.primary-nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
}

.primary-nav a:hover, .site-footer a:hover { color: var(--teal-dark); }
.header-actions { justify-self: end; gap: 0.6rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 3.3rem;
  padding: 0.65rem 1.65rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.button-small { min-height: 2.75rem; padding-inline: 1.2rem; font-size: 0.925rem; }
.button-outline { border-color: #b6d4ce; color: var(--teal-dark); background: rgb(255 255 255 / 55%); }
.button-outline:hover { border-color: #82b4ab; background: var(--paper); }
.button-primary { color: var(--paper); background: var(--teal); }
.button-primary:hover { background: var(--teal-dark); }

.menu-toggle {
  display: grid;
  place-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
}

.menu-toggle span {
  position: relative;
  width: 1rem;
  height: 1px;
  background: currentColor;
}

.menu-toggle span::before, .menu-toggle span::after {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  content: "";
}

.menu-toggle span::before { top: -5px; }
.menu-toggle span::after { top: 5px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(0, 1.07fr);
  align-items: center;
  min-height: clamp(34rem, 46vw, 44rem);
  padding-block: clamp(2.6rem, 5vw, 5rem);
}

.hero-content { position: relative; z-index: 1; }

.hero-topics {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.1rem;
  padding: 0.23rem;
  margin: 0 0 clamp(1.4rem, 2.75vw, 2.5rem);
  border: 1px solid #d5e8e3;
  border-radius: 999px;
  background: #e6f2ef;
  list-style: none;
}

.hero-topics a {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding-inline: clamp(0.64rem, 1vw, 0.95rem);
  border-radius: 999px;
  color: var(--teal-dark);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.hero-topics a:hover, .hero-topics a:focus-visible { background: var(--paper); }

.hero h1 {
  font-size: clamp(2.9rem, 5vw, 4.6rem);
  font-weight: 750;
  line-height: 1.14;
  letter-spacing: -0.055em;
}

.hero-content > p {
  max-width: 25rem;
  margin-block: 1.5rem 2.15rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.8;
}

.hero-art {
  margin-inline: -3.8% -10%;
}

.hero-art img {
  width: 100%;
  height: auto;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent),
              linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
  mask-composite: intersect;
}

.product-section { background: var(--paper); }

.section-layout {
  padding-block: clamp(3.4rem, 6.3vw, 6.25rem);
}

.section-heading h2, .login-layout h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.product-explorer {
  margin-top: 1.9rem;
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  background: var(--surface);
}

.product-tabs {
  display: flex;
  align-items: stretch;
  gap: clamp(0.9rem, 2.5vw, 2rem);
  padding-inline: clamp(1rem, 3.5vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.product-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.55rem;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.product-tabs a:hover,
.product-tabs [aria-selected="true"] { color: var(--teal-dark); }
.product-tabs [aria-selected="true"] { border-bottom-color: var(--teal); }
.product-tabs a:focus-visible { outline-offset: 1px; }

.product-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(16rem, 0.9fr);
  align-items: center;
  gap: clamp(1.3rem, 5vw, 5rem);
  padding: clamp(1.2rem, 4.5vw, 3.5rem) clamp(1rem, 3.5vw, 3rem);
}

.product-panel + .product-panel:not([hidden]) { border-top: 1px solid var(--line); }
.product-panel[role="tabpanel"] { border-top: none; }
.product-panel:focus-visible { outline-offset: -4px; }

.product-copy h3 {
  font-size: clamp(1.5rem, 2.7vw, 2.3rem);
  letter-spacing: -0.035em;
}

.product-copy p {
  max-width: 27rem;
  margin-top: 0.85rem;
  color: var(--muted);
  line-height: 1.8;
}

.workflow {
  padding: clamp(1rem, 2.2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--paper);
}

.workflow h4 { color: var(--teal-dark); font-size: 0.9rem; }
.workflow ol { display: grid; gap: 0.78rem; padding: 0; margin: 0.9rem 0 0; list-style: none; }
.workflow li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 0.3rem 0.65rem;
  position: relative;
  padding-left: 1.05rem;
}

.workflow li::before {
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 0.45rem;
  height: 0.45rem;
  border: 1px solid #78afa4;
  border-radius: 50%;
  background: #ddf1ec;
  content: "";
}

.workflow li + li::after {
  position: absolute;
  bottom: calc(100% - 0.45rem);
  left: 0.2rem;
  width: 1px;
  height: 0.9rem;
  background: #c4dfd8;
  content: "";
}

.workflow li strong { font-size: 0.95rem; white-space: nowrap; }
.workflow li span { color: var(--muted); font-size: 0.9rem; }

.scenario-section { border-top: 1px solid var(--line); background: var(--mint); }
.scenario-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: start;
  gap: 2.25rem;
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.scenario-list { border-top: 1px solid #c6dfd8; }
.scenario-list div { padding-block: 1.15rem; border-bottom: 1px solid #c6dfd8; }
.scenario-list dt { font-size: 1.1rem; font-weight: 700; }
.scenario-list dd { margin-top: 0.22rem; color: var(--muted); }

.login-section { color: var(--paper); background: #103f3d; }
.login-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(2.5rem, 5.2vw, 4.1rem);
}

.button-inverse { flex: none; color: var(--teal-dark); background: var(--paper); }
.button-inverse:hover { background: #dbf2eb; }
.button-inverse:focus-visible { outline-color: var(--paper); }

.site-footer { background: var(--paper); }
.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .brand { color: var(--ink); font-size: 1rem; }
.footer-layout > a:last-child { display: inline-flex; min-height: 2.75rem; align-items: center; }

@media (max-width: 940px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 32rem;
  }

  .hero-art { margin-inline: 0 -9%; }
}

@media (max-width: 760px) {
  .header-layout {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 4.25rem;
    gap: 0 0.5rem;
  }

  .brand { gap: 0.45rem; font-size: 1.05rem; }
  .brand-art { width: 4.6rem; }
  .button-small { padding-inline: 0.8rem; font-size: 0.875rem; }

  .primary-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
    padding-block: 0.25rem 0.65rem;
    border-top: 1px solid var(--line);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-block: 2.75rem 1.5rem;
  }

  .hero h1 { font-size: clamp(2.5rem, 8.7vw, 3.9rem); }
  .hero-content > p { margin-block: 1.05rem 1.55rem; }
  .hero-art { margin: 0.65rem -4% 0; }
  .product-panel, .scenario-layout { grid-template-columns: 1fr; }
  .scenario-layout { gap: 1.4rem; }
  .login-layout { align-items: start; flex-direction: column; }
}

@media (max-width: 380px) {
  .shell { width: calc(100% - 2rem); }
  .header-actions { gap: 0.4rem; }
  .header-layout .brand-art { width: 2rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
