/* --------------------------------------------------------------------------
   Huawei-inspired visual layer.
   White surfaces, pale blue bands, rounded feature cards, a single blue
   signal color, and a dark product hero. Loaded after the base redesign.
   -------------------------------------------------------------------------- */

:root {
  --paper: #ffffff;
  --surface: #ffffff;
  --surface-deep: #f4f8ff;
  --ink: #0b1220;
  --ink-soft: #29364a;
  --muted: #5f6c7f;
  --line: #e3e9f2;
  --line-soft: #eef3fa;
  --signal: #0a59f7;
  --signal-bright: #2f7bff;
  --card-radius: 22px;
  --card-shadow: 0 14px 44px rgba(16, 40, 80, 0.07);
}

html,
body {
  background: #fff;
}

/* Header: white, black type, blue current state. */
.site-header {
  background: #fff;
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 32px rgba(16, 40, 80, 0.08);
}

.site-header .brand-text {
  color: var(--ink);
}

.site-header .brand-sub {
  color: var(--muted);
}

.site-header .nav-link {
  color: #5a6679;
}

.site-header .nav-link:hover,
.site-header .nav-link[aria-current="page"] {
  color: var(--ink);
}

.site-header .nav-link::after {
  background: var(--line);
}

.site-header .nav-link[aria-current="page"]::after {
  background: var(--signal);
}

.site-header .lang-toggle {
  border-color: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.site-header .lang-btn {
  color: var(--ink);
}

.site-header .lang-btn + .lang-btn {
  border-left-color: var(--line);
}

.site-header .lang-btn[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.site-header .lang-btn:hover:not([aria-pressed="true"]) {
  background: var(--surface-deep);
}

.site-header .nav-toggle {
  border-color: var(--line);
  color: var(--ink);
  border-radius: 999px;
}

.scroll-progress {
  background: var(--signal);
}

@media (max-width: 960px) {
  .site-nav {
    background: #fff;
    border-bottom-color: var(--line);
  }

  .site-nav .nav-link {
    color: var(--ink-soft);
    border-bottom-color: var(--line-soft);
  }

  .site-nav .nav-link[aria-current="page"] {
    color: var(--signal);
  }
}

/* Home: a deep product hero above a bright, card-led body. */
.hero {
  background: linear-gradient(125deg, #04070e 0%, #081426 58%, #0c1c38 100%);
  color: #fff;
}

.hero::before {
  background-image:
    linear-gradient(to right, rgba(148, 184, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 184, 255, 0.08) 1px, transparent 1px);
}

.hero-title {
  max-width: 14ch;
  color: #f7faff;
  font-size: clamp(2.8rem, 4.8vw, 4.8rem);
  line-height: 1.02;
}

html[lang="zh-CN"] .hero-title {
  font-size: clamp(2.8rem, 4.8vw, 4.8rem);
}

.hero-lede {
  max-width: 46rem;
  color: #bdcbe0;
}

.hero-copy .link-arrow {
  color: #eaf1ff;
  border-bottom-color: rgba(234, 241, 255, 0.34);
}

.hero-copy .link-arrow:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.hero .btn--primary {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.hero .btn--primary:hover {
  background: var(--signal-bright);
  border-color: var(--signal-bright);
  color: #fff;
}

/* Interior heroes: light blue wash, black type. */
.page-hero {
  background-color: #f3f8ff;
  background-image: linear-gradient(135deg, #eef5ff 0%, #fbfdff 62%, #f5f1ff 100%);
  background-size: 100% 100%;
  border-bottom-color: var(--line);
}

.page-hero h1,
html[lang="zh-CN"] .page-hero h1 {
  color: var(--ink);
  font-size: clamp(2.35rem, 3.6vw, 3.55rem);
  line-height: 1.07;
}

.page-hero__aside p {
  color: var(--muted);
}

.page-hero__aside {
  border-left-color: #d9e5f5;
}

/* Section rhythm. */
.section--tint {
  background: #f4f8ff;
  border-block-color: #e7eef8;
}

body[data-page="index"] .section-head--wide {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
}

body[data-page="index"] .section-head--wide .section-intro {
  max-width: 720px;
  margin: 1.1rem auto 0;
  padding: 0;
  border: 0;
  text-align: center;
}

body[data-page="index"] .section-title {
  font-size: clamp(1.9rem, 2.8vw, 2.7rem);
}

body[data-page="index"] .section-title::before {
  margin-left: auto;
  margin-right: auto;
}

body[data-page="index"] .section-title::before,
.install-section > h2::before,
.scenario-head h2::before {
  background: var(--signal);
}

.section-title {
  font-size: clamp(1.85rem, 2.6vw, 2.6rem);
  line-height: 1.1;
}

/* Cards. */
.quick-install {
  border: 1px solid var(--line);
  border-top: 3px solid var(--signal);
  border-radius: var(--card-radius);
  box-shadow: 0 24px 60px rgba(0, 8, 28, 0.3);
  background: #fff;
  overflow: hidden;
}

.quick-install__head {
  padding: 0.95rem 1rem;
}

.quick-install__prompt {
  border-radius: 14px;
  overflow: hidden;
  margin: 0 0.9rem 0.9rem;
}

.quick-install__manual summary {
  color: var(--ink);
}

.quick-install__foot {
  color: var(--muted);
}

.path-card {
  padding: 1.55rem;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: var(--card-shadow);
}

.path-card h3 {
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
}

.path-card .code-box {
  border-radius: 14px;
}

.two-paths {
  gap: 1.25rem;
}

/* Scenario cards become soft feature panels. */
.scenario-grid {
  gap: 1rem;
  border-top: 0;
}

.scenario-item,
.scenario-item:nth-child(odd),
.scenario-item:nth-child(even) {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease),
    border-color 220ms var(--ease);
}

.scenario-item:nth-child(1) {
  background: #eef5ff;
}

.scenario-item:nth-child(2) {
  background: #f5f1ff;
}

.scenario-item:nth-child(3) {
  background: #eefaf5;
}

.scenario-item:nth-child(4) {
  background: #fff4ee;
}

.scenario-item::before {
  content: "";
  display: block;
  width: 2rem;
  height: 3px;
  margin-bottom: 1.15rem;
  border-radius: 999px;
  background: var(--signal);
}

.scenario-item__num {
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  display: block;
  padding: 0;
  color: rgba(10, 89, 247, 0.14);
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1;
}

.scenario-item h3 {
  margin-bottom: 0.45rem;
  font-size: 1.08rem;
}

.scenario-item p {
  color: #526178;
  font-size: 0.88rem;
}

.scenario-item code {
  margin-top: auto;
  padding-top: 0.9rem;
  color: #50617a;
  font-size: 0.7rem;
}

.scenario-item:hover,
.scenario-item:focus-visible {
  transform: translateY(-3px);
  border-color: #cddff8;
  box-shadow: 0 20px 54px rgba(16, 40, 80, 0.12);
}

.scenario-item:hover h3,
.scenario-item:hover .scenario-item__num {
  color: var(--ink);
}

/* Tool capability rail becomes a white rounded panel. */
.tool-cap-list {
  padding: 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--card-shadow);
}

.tool-cap-row {
  padding: 1.25rem 0;
  border-bottom-color: var(--line-soft);
}

.tool-cap-row:last-child {
  border-bottom: 0;
}

.tool-cap-row:hover {
  background: #f8fbff;
}

.tool-cap-row__count {
  color: var(--signal);
  font-size: 1.5rem;
  font-weight: 650;
  line-height: 1.1;
}

.tool-cap-row__arrow {
  color: var(--signal);
}

/* Report and run cards. */
.report-figure {
  border-radius: 18px;
  overflow: hidden;
  border-color: var(--line);
  box-shadow: var(--card-shadow);
}

.report-figure img {
  border-radius: 18px 18px 0 0;
}

.run-grid {
  gap: 1.25rem;
}

.run-card {
  padding: 1.55rem;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: var(--card-shadow);
}

.run-card .code-box {
  border-radius: 14px;
}

/* Code blocks and buttons. */
.code-box {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.code-box pre {
  background: #f7faff;
}

.btn {
  border-radius: 999px;
}

.btn--primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.btn--primary:hover {
  background: var(--signal);
  border-color: var(--signal);
}

.section-foot .btn {
  border-radius: 999px;
}

/* Prompt commands tie into the blue system. */
.agent-prompt code {
  color: #9ec5ff;
  border-color: rgba(158, 197, 255, 0.28);
  background: rgba(10, 89, 247, 0.16);
}

/* Method page: scenario details get a quiet blue band. */
section[aria-label="Scenario details"] {
  background: #f7faff;
  border-block: 1px solid #e7eef8;
}

.scenario-head h2 {
  font-size: clamp(1.9rem, 3vw, 2.75rem);
}

.compare {
  border-color: var(--line);
}

.boundary-box {
  border-radius: 16px;
  background: #fff;
}

/* Light footer. */
.site-footer {
  background: #f4f8ff;
  background-image: none;
  color: var(--ink);
  border-top: 1px solid #dfe8f4;
}

.site-footer::before {
  background: var(--signal);
}

.footer-cta {
  border-bottom-color: #dce6f3;
}

.footer-cta h2 {
  color: var(--ink);
  font-size: clamp(2.2rem, 3.4vw, 3.4rem);
}

.footer-cta__copy p {
  color: var(--muted);
}

.footer-cta .btn {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.footer-cta .btn:hover {
  background: var(--signal);
  border-color: var(--signal);
  color: #fff;
}

.footer-cta .link-arrow {
  color: var(--ink);
  border-bottom-color: #c9d6e8;
}

.footer-cta .link-arrow:hover {
  color: var(--signal);
  border-bottom-color: var(--signal);
}

.site-footer .brand-text {
  color: var(--ink);
}

.site-footer .footer-desc {
  color: var(--muted);
}

.site-footer .footer-col h3 {
  color: #7b8798;
}

.site-footer .footer-col a {
  color: var(--ink-soft);
}

.site-footer .footer-col a:hover,
.site-footer .footer-meta a:hover {
  color: var(--signal);
}

.site-footer .footer-meta {
  border-top-color: #dce6f3;
  color: #7b8798;
}

.site-footer .footer-meta a {
  color: var(--ink-soft);
}

@media (max-width: 1100px) {
  .scenario-item,
  .scenario-item:nth-child(odd),
  .scenario-item:nth-child(even) {
    padding: 1.3rem;
  }
}

@media (max-width: 720px) {
  .quick-install__head {
    padding: 0.9rem;
  }

  .tool-cap-list {
    padding: 0 1rem;
  }

  .path-card,
  .run-card {
    padding: 1.25rem;
  }

  .scenario-item:nth-child(1),
  .scenario-item:nth-child(2),
  .scenario-item:nth-child(3),
  .scenario-item:nth-child(4) {
    padding: 1.25rem;
  }
}

/* Flat interior banner avoids gradient banding on large displays. */
.page-hero {
  background-color: #f3f8ff;
  background-image: none;
}

/* Make the scenario cards carry their technical labels and index marks. */
.scenario-item__num {
  display: block !important;
}

.scenario-item > div {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.scenario-item code {
  display: block;
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.78rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* Mobile menu scrim. */
@media (max-width: 960px) {
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 90;
    background: rgba(11, 18, 32, 0.28);
    pointer-events: none;
  }
}

@media (max-width: 960px) {
  body.nav-open::before {
    z-index: 70;
  }
}

/* The longer English headline needs a calmer measure and a smaller scale. */
html[lang="en"] .hero-title {
  max-width: 22ch;
  font-size: clamp(1.9rem, 3.8vw, 3.8rem);
}

/* Agent-driven analysis section. */
.auto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.25rem;
  align-items: stretch;
}

.auto-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: var(--card-shadow);
}

.auto-card--task {
  border-color: #1b2d47;
  background: #0c1a2d;
}

.auto-label {
  margin: 0 0 1rem;
  color: #7f93ac;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.4;
}

.auto-card--task .auto-label {
  color: #9fb3cc;
}

.auto-prompt {
  margin: 0;
  color: #edf4ff;
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  font-weight: 480;
  line-height: 1.6;
  letter-spacing: -0.012em;
}

.auto-steps {
  display: grid;
  gap: 0.95rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auto-step {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--line-soft);
}

.auto-step:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.auto-step__num {
  padding-top: 0.12rem;
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.4;
}

.auto-step strong {
  display: block;
  margin-bottom: 0.16rem;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.4;
}

.auto-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.auto-card--flow .link-arrow {
  margin-top: 1.2rem;
  align-self: flex-start;
}

@media (max-width: 720px) {
  .auto-grid {
    grid-template-columns: 1fr;
  }

  .auto-card {
    padding: 1.25rem;
  }

  .auto-prompt {
    font-size: 1.05rem;
  }
}

.auto-signal {
  display: grid;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 2.2rem;
}

.auto-signal span {
  position: relative;
  display: block;
  height: 2px;
  border-radius: 999px;
  background: rgba(126, 176, 255, 0.16);
}

.auto-signal span::after {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  width: 22%;
  height: 2px;
  border-radius: 999px;
  background: var(--signal);
}

.auto-signal span:nth-child(2)::after {
  left: 38%;
  width: 15%;
  background: #4f7fc9;
}

.auto-signal span:nth-child(3)::after {
  left: 22%;
  width: 31%;
}

.auto-signal span:nth-child(4)::after {
  left: 64%;
  width: 18%;
  background: #4f7fc9;
}

.auto-task-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(126, 176, 255, 0.18);
  color: #8299b5;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.4;
}

.auto-route {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #dce8f8;
}

.auto-route b {
  color: var(--signal-bright);
  font-weight: 400;
}

/* Quick install: one primary prompt, a compact manual fallback, and clear requirements. */
.quick-install {
  border-radius: 24px;
  border-top: 3px solid var(--signal);
  box-shadow: 0 24px 60px rgba(0, 8, 28, 0.32);
}

.quick-install__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1.05rem 1.1rem 0.85rem;
  border-bottom: 0;
}

.quick-install__intro {
  min-width: 0;
}

.quick-install__head h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.1;
}

.quick-install__sub {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.quick-install__head .copy-btn {
  flex: 0 0 auto;
  min-height: 34px;
}

.quick-install__prompt {
  margin: 0 0.9rem 0.75rem;
  padding: 1rem;
  border: 1px solid #343434;
  border-radius: 14px;
  background: #1e1e1e;
}

.quick-install__prompt .agent-prompt {
  padding: 0;
  color: #d4d4d4;
  font-size: 0.88rem;
  line-height: 1.65;
}

.quick-install__manual {
  margin: 0 0.9rem;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.quick-install__manual summary {
  padding: 0.75rem 0;
  color: var(--ink);
  font-size: 0.8rem;
}

.quick-install__manual-head {
  padding: 0 0 0.5rem;
}

.quick-install__manual pre {
  margin-bottom: 0.8rem;
  border-radius: 10px;
  border-top: 1px solid var(--line);
}

.quick-install__foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem 1.1rem 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.quick-install__req {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.quick-install__req > span {
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7faff;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.4;
  white-space: nowrap;
}

.quick-install__foot .link-arrow {
  align-self: flex-end;
}
