:root {
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #667085;
  --muted-2: #98a2b3;
  --line: #e8edf4;
  --line-strong: #d7e0ea;
  --blue: #2563eb;
  --blue-soft: #eaf2ff;
  --green: #059669;
  --green-soft: #e7f8f1;
  --purple: #7c3aed;
  --purple-soft: #f1eaff;
  --amber: #d97706;
  --amber-soft: #fff4dc;
  --red-soft: #fff0f0;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 26px rgba(15, 23, 42, 0.05);
  --shell: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Inter", "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.07) 0%, rgba(255, 255, 255, 0) 360px),
    linear-gradient(120deg, rgba(5, 150, 105, 0.05), rgba(255, 255, 255, 0) 45%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 56px;
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: 0;
}

h2 {
  font-size: 42px;
  line-height: 1.16;
  font-weight: 840;
  letter-spacing: 0;
}

h3 {
  font-size: 20px;
  line-height: 1.28;
  font-weight: 780;
  letter-spacing: 0;
}

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(232, 237, 244, 0.9);
  backdrop-filter: saturate(180%) blur(22px);
}

.nav-shell {
  min-height: 72px;
  margin: 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 260px;
  overflow: hidden;
}

.brand-logo {
  width: min(320px, 31vw);
  min-width: 230px;
  max-height: 54px;
  object-fit: contain;
  object-position: left center;
  transform: translateX(-5px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  color: #667085;
  font-size: 15px;
  font-weight: 700;
}

.site-nav a {
  padding: 9px 15px;
  border-radius: 999px;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
  background: rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}

.site-nav .nav-ghost {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.site-nav .nav-ghost:hover {
  color: #fff;
  background: #1d4ed8;
}

.site-main {
  overflow: hidden;
}

.hero-reference {
  padding: 136px 0 120px;
}

.hero-reference-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
  align-items: center;
  gap: 72px;
  min-width: 0;
}

.hero-copy {
  min-width: 0;
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  padding: 9px 18px;
  border: 1px solid #cfe6f8;
  border-radius: 999px;
  background: #edf8fb;
  color: #1f3b55;
  font-size: 15px;
  font-weight: 800;
}

.hero-badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #67d8c9;
}

.hero-copy h1 strong,
.section-center h2 strong,
.split-copy h2 strong {
  color: transparent;
  background: linear-gradient(90deg, #2563eb 0%, #059669 76%);
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: inherit;
}

.hero-lead,
.page-hero p,
.section-center p,
.section-head > p,
.split-copy > p {
  max-width: 100%;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
  overflow-wrap: break-word;
}

.hero-lead {
  margin-top: 24px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: #111827;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.18);
}

.button-primary:hover {
  background: #1f2937;
}

.button-secondary {
  color: #344054;
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.button-disabled {
  color: var(--muted-2);
  background: #f2f4f7;
  border-color: #eaecf0;
  cursor: not-allowed;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 48px;
  max-width: 620px;
}

.hero-stats div {
  padding-right: 24px;
}

.hero-stats div + div {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.hero-stats strong {
  display: block;
  color: #9ccce5;
  font-size: 25px;
  font-weight: 850;
}

.hero-stats span {
  color: #c0c8d4;
  font-size: 14px;
  font-weight: 700;
}

.portal-flow-board {
  min-width: 0;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(247, 249, 252, 0.86)),
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(5, 150, 105, 0.08));
  box-shadow: var(--shadow);
}

.flow-kicker {
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.portal-flow-board h2 {
  max-width: 470px;
  font-size: 34px;
  line-height: 1.18;
}

.flow-list {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.flow-list article {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(215, 224, 234, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.flow-list article:nth-child(2) {
  background: rgba(231, 248, 241, 0.78);
}

.flow-list article:nth-child(3) {
  background: rgba(255, 244, 220, 0.8);
}

.flow-list span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 14px;
  font-weight: 850;
}

.flow-list article:nth-child(2) span {
  color: var(--green);
  background: var(--green-soft);
}

.flow-list article:nth-child(3) span {
  color: var(--amber);
  background: var(--amber-soft);
}

.flow-list strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.flow-list p {
  color: var(--muted);
  font-size: 14px;
}

.flow-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.flow-footer span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.section {
  padding: 92px 0;
}

.section-soft {
  background: linear-gradient(180deg, #f7f9fc, #fff);
}

.section-center {
  max-width: 760px;
  text-align: center;
}

.section-center p {
  margin-top: 18px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.eyebrow.purple {
  color: var(--purple);
}

.compare-table {
  margin-top: 56px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.compare-row {
  display: grid;
  grid-template-columns: 0.85fr 1.75fr 2fr;
  border-top: 1px solid #eef2f7;
}

.compare-row:first-child {
  border-top: 0;
}

.compare-row span {
  padding: 20px 24px;
  color: #475467;
  font-size: 15px;
}

.compare-row span:first-child {
  color: var(--ink);
  font-weight: 800;
}

.compare-row span:last-child {
  color: #1d4ed8;
  font-weight: 700;
}

.compare-head {
  background: #f8fafc;
}

.compare-head span {
  color: var(--ink);
  font-weight: 850;
}

.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 48px;
}

.feature-card,
.module-card,
.stream-card,
.library-panel,
.page-side-panel,
.interface-panel,
.side-card,
.portal-item,
.empty-state,
.search-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.feature-card {
  min-height: 240px;
  padding: 28px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover,
.module-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 26px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 850;
}

.feature-card h3,
.module-card h3 {
  margin-bottom: 12px;
}

.feature-card p,
.module-card p,
.side-card p {
  color: var(--muted);
  font-size: 15px;
}

.tone-blue .card-icon,
.tone-blue-soft {
  color: var(--blue);
  background: var(--blue-soft);
}

.tone-green .card-icon,
.tone-green-soft {
  color: var(--green);
  background: var(--green-soft);
}

.tone-purple .card-icon,
.tone-purple-soft {
  color: var(--purple);
  background: var(--purple-soft);
}

.tone-amber .card-icon,
.tone-amber-soft {
  color: var(--amber);
  background: var(--amber-soft);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.9fr);
  gap: 70px;
  align-items: start;
}

.split-copy,
.interface-panel,
.library-panel,
.stream-card,
.module-card,
.feature-card,
.page-side-panel,
.portal-flow-board {
  min-width: 0;
}

.split-copy > p {
  margin-top: 22px;
}

.point-list {
  margin-top: 34px;
  display: grid;
  gap: 22px;
}

.point-list div {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 18px;
  align-items: start;
}

.point-list span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 850;
}

.point-list div:nth-child(2) span {
  color: var(--green);
  background: var(--green-soft);
}

.point-list strong {
  display: block;
  margin-top: 2px;
  font-size: 17px;
}

.point-list p {
  grid-column: 2;
  color: var(--muted);
  font-size: 15px;
}

.interface-panel {
  padding: 42px;
}

.interface-panel h3 {
  margin-bottom: 28px;
  text-align: center;
}

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

.interface-grid span {
  min-height: 86px;
  padding: 18px;
  border: 1px solid;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--ink);
  font-weight: 850;
}

.interface-grid span small {
  margin-top: 6px;
  color: inherit;
  opacity: 0.72;
  font-size: 13px;
  font-weight: 700;
}

.interface-grid span:nth-child(1) {
  background: #eef8ff;
  border-color: #b9d6ff;
  color: #1d4ed8;
}

.interface-grid span:nth-child(2) {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4338ca;
}

.interface-grid span:nth-child(3) {
  background: #f4efff;
  border-color: #ddd6fe;
  color: #6d28d9;
}

.interface-grid span:nth-child(4) {
  background: var(--red-soft);
  border-color: #fecaca;
  color: #dc2626;
}

.interface-grid span:nth-child(5) {
  background: var(--amber-soft);
  border-color: #f8d47a;
  color: #b45309;
}

.interface-grid span:nth-child(6) {
  background: var(--green-soft);
  border-color: #a7f3d0;
  color: #047857;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.section-head > p {
  max-width: 560px;
  font-size: 16px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 38px;
}

.module-card {
  min-height: 220px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.module-card span {
  width: max-content;
  margin-bottom: auto;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.tone-docs {
  background: linear-gradient(145deg, #eef6ff, #ffffff 58%);
}

.tone-docs span {
  color: var(--blue);
  background: #dcecff;
}

.tone-download {
  background: linear-gradient(145deg, #fff6df, #ffffff 58%);
}

.tone-download span {
  color: var(--amber);
  background: #ffe9b8;
}

.tone-forum {
  background: linear-gradient(145deg, #eafbf3, #ffffff 58%);
}

.tone-forum span {
  color: var(--green);
  background: #d7f7e8;
}

.stream-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.stream-card,
.library-panel {
  padding: 28px;
}

.stream-title {
  margin-bottom: 20px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.stream-title a,
.section-link {
  color: var(--blue);
  font-size: 14px;
  font-weight: 850;
}

.page-hero {
  padding: 96px 0 76px;
}

.page-docs {
  background: linear-gradient(180deg, #f5f9ff, #fff);
}

.page-download {
  background: linear-gradient(180deg, #fff8e8, #fff);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.62fr);
  gap: 56px;
  align-items: center;
}

.page-hero h1 {
  font-size: 48px;
}

.page-hero p {
  max-width: 680px;
  margin-top: 22px;
}

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

.hero-tags span {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: #344054;
  font-size: 14px;
  font-weight: 800;
}

.page-side-panel {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.side-card {
  padding: 22px;
  box-shadow: none;
}

.side-card small {
  display: block;
  margin-bottom: 8px;
  color: currentColor;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  opacity: 0.82;
}

.side-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 17px;
}

.library-panel {
  padding: 34px;
}

.search-panel {
  margin: 26px 0;
  padding: 22px;
  background: #f8fafc;
  box-shadow: none;
}

.search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.search-head strong {
  font-size: 17px;
}

.search-head span {
  color: var(--muted);
  font-size: 14px;
}

.search-row {
  display: flex;
  gap: 12px;
}

.search-clear {
  min-width: 92px;
}

.search-input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.search-input:focus {
  border-color: #9cc4ff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.content-list {
  display: grid;
  gap: 18px;
}

.content-list-compact {
  gap: 14px;
}

.portal-item {
  padding: 22px;
  box-shadow: none;
}

.portal-item-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.portal-item-top h3 {
  margin-top: 10px;
  font-size: 19px;
}

.portal-item time {
  color: var(--muted-2);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.portal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
}

.portal-badge-muted {
  color: #475467;
  background: #f2f4f7;
}

.portal-summary {
  margin-top: 12px;
  color: #344054;
  font-weight: 700;
}

.portal-content {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

.portal-content p + p {
  margin-top: 10px;
}

.portal-details {
  margin-top: 12px;
}

.portal-details summary {
  color: var(--blue);
  cursor: pointer;
  font-weight: 800;
}

.portal-file {
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 700;
}

.portal-actions {
  margin-top: 16px;
}

.portal-actions .button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 14px;
}

.empty-state {
  padding: 22px;
  color: var(--muted);
  background: #f8fafc;
  box-shadow: none;
}

.site-footer {
  padding: 42px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  color: var(--muted);
}

.footer-shell strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.footer-shell p {
  max-width: 620px;
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-size: 14px;
  font-weight: 800;
}

.footer-icp {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted-2);
}

.footer-icp a {
  color: var(--muted-2);
  text-decoration: none;
}

.footer-icp a:hover {
  color: var(--muted);
}

@media (max-width: 1180px) {
  .nav-shell {
    margin: 0 28px;
  }

  .hero-reference-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
  }

  .portal-flow-board {
    max-width: 660px;
  }

  .page-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 34px;
  }

  .shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .nav-shell {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .brand-logo {
    width: 260px;
    min-width: 220px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
    font-size: 14px;
  }

  .hero-reference {
    padding: 64px 0 72px;
  }

  .hero-reference-grid {
    gap: 44px;
  }

  .hero-stats,
  .card-grid.three,
  .module-grid,
  .stream-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 14px;
  }

  .hero-stats div,
  .hero-stats div + div {
    padding: 0;
    border-left: 0;
  }

  .portal-flow-board {
    min-height: auto;
    padding: 28px 18px;
  }

  .compare-table {
    overflow-x: auto;
  }

  .compare-row {
    min-width: 760px;
  }

  .section,
  .page-hero {
    padding: 64px 0;
  }

  .section-head,
  .footer-shell,
  .search-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-row {
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  h1,
  .page-hero h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 30px;
  }

  .nav-shell {
    margin: 0 18px;
  }

  .site-nav a {
    padding: 8px 11px;
  }

  .hero-badge {
    font-size: 13px;
  }

  .hero-lead,
  .page-hero p,
  .section-center p,
  .section-head > p,
  .split-copy > p {
    font-size: 16px;
    word-break: break-all;
  }

  .hero-copy,
  .page-hero-grid > div,
  .split-copy {
    width: 100%;
    max-width: calc(100vw - 32px);
  }

  .button {
    width: 100%;
  }

  .portal-flow-board h2 {
    font-size: 28px;
  }

  .interface-grid {
    grid-template-columns: 1fr;
  }

  .portal-item-top {
    flex-direction: column;
  }

  .portal-item time {
    white-space: normal;
  }
}
