/* Formal B2B/SaaS visual layer for www.zorai.cn */
:root {
  --color-bg: #f6f8fb;
  --color-surface: #ffffff;
  --color-text: #0b1220;
  --color-muted: #4b5565;
  --color-subtle: #697586;
  --color-brand: #0f766e;
  --color-action: #1d4ed8;
  --color-proof: #b7791f;
  --color-border: #dbe3ef;
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-popover: 0 20px 48px rgba(15, 23, 42, 0.18);
}

body {
  background:
    linear-gradient(180deg, #f8fafc 0%, #f6f8fb 38%, #ffffff 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html:not(.is-scroll-ready) {
  scroll-behavior: auto;
}

html.is-scroll-ready {
  scroll-behavior: smooth;
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(219, 227, 239, 0.92);
}

.header-inner {
  min-height: 76px;
}

.brand span {
  font-size: 17px;
  letter-spacing: 0;
}

.nav {
  gap: 24px;
  font-weight: 650;
}

.nav a {
  position: relative;
  padding: 26px 0;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 19px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--color-brand);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.header-call,
.button-primary {
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.22);
}

.header-call:hover,
.button-primary:hover {
  background: #1742b4;
}

.hero-slider {
  min-height: 720px;
  background: #07111f;
}

.hero-slider::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 76%);
}

.hero-slide::after {
  background:
    linear-gradient(90deg, rgba(5, 13, 26, 0.94) 0%, rgba(5, 13, 26, 0.78) 42%, rgba(5, 13, 26, 0.28) 100%),
    linear-gradient(180deg, rgba(5, 13, 26, 0.08), rgba(5, 13, 26, 0.74));
}

.hero-content {
  min-height: 720px;
}

.hero-copy {
  padding-left: 26px;
  border-left: 3px solid rgba(183, 119, 31, 0.86);
}

.eyebrow {
  color: #9be7d6;
  font-size: 14px;
  letter-spacing: 0;
}

.hero-copy h1,
.hero-copy .hero-title {
  max-width: 760px;
  font-weight: 900;
}

.hero-copy p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.84);
}

.proof-row span {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.button {
  min-height: 48px;
  border-radius: 6px;
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

.slider-lines button {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

.slider-arrows button {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.section {
  padding: 92px 0;
}

.section-head h2 {
  letter-spacing: 0;
  font-weight: 850;
}

.section-head p {
  color: #526071;
}

.grid {
  gap: 20px;
}

.card {
  border-color: rgba(219, 227, 239, 0.98);
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.card:hover {
  border-color: rgba(15, 118, 110, 0.38);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.service-card {
  position: relative;
  min-height: 268px;
}

.service-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--color-brand), var(--color-action));
}

.service-card .card-body {
  padding: 28px;
}

.card-icon {
  width: auto;
  min-width: 44px;
  height: 32px;
  padding: 0 10px;
  color: #0b5f59;
  background: #e7f6f3;
  border-radius: 6px;
  font-size: 13px;
  letter-spacing: 0;
}

.service-card h3 {
  font-size: 21px;
  font-weight: 850;
}

.service-card p {
  color: #526071;
}

.service-card a,
.card a {
  color: #1742b4;
}

.case-card .card-body {
  padding: 26px;
}

.case-card h3 {
  margin-top: 10px;
  font-size: 22px;
  font-weight: 850;
}

.case-card p + p {
  margin-top: 8px;
}

.case-card strong {
  color: #172033;
}

.case-meta {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #8a5b12;
  background: #fff7e6;
  border: 1px solid rgba(183, 119, 31, 0.22);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 760;
}

.feature-band {
  padding: 38px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.92), rgba(14, 48, 87, 0.96)),
    #0b1727;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.feature-band .section-head p,
.feature-band .feature-item p {
  color: rgba(255, 255, 255, 0.78);
}

.feature-band .tag-list li {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.feature-item {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.image-panel {
  min-height: 300px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(29, 78, 216, 0.08)),
    #f8fafc;
  border-color: rgba(219, 227, 239, 0.98);
}

.faq-item {
  box-shadow: none;
}

.faq-item h3 {
  font-weight: 820;
}

.page-hero {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(29, 78, 216, 0.09)),
    #ffffff;
}

.site-footer {
  background:
    linear-gradient(135deg, #07111f, #111827);
}

.contact-widget {
  right: 22px;
  bottom: 104px;
}

.rail-button {
  color: #111827;
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(219, 227, 239, 0.98);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.1);
}

.rail-button:hover {
  border-color: rgba(29, 78, 216, 0.38);
  transform: translateY(-1px);
}

.rail-button-primary {
  color: #ffffff;
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.contact-panel {
  border-color: rgba(219, 227, 239, 0.98);
}

.panel-head {
  background: #f8fafc;
}

.qrcode-panel img {
  width: 176px;
  height: 176px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.phone-panel a {
  color: #1742b4;
  background: #eff6ff;
}

@media (width <= 920px) {
  .header-inner {
    min-height: auto;
  }

  .hero-slider,
  .hero-content {
    min-height: 620px;
  }

  .hero-copy {
    padding-left: 18px;
  }

  .section {
    padding: 58px 0;
  }

  .feature-band {
    padding: 26px;
  }

  .contact-widget {
    right: 8px;
    bottom: 16px;
  }

  .contact-panel {
    right: 58px;
  }
}


/* B2B/SaaS fixed top navigation */
main {
  padding-top: 70px;
}

body.home-page main {
  padding-top: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  color: #ffffff;
  background: rgba(8, 16, 31, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 30px rgba(5, 13, 26, 0.16);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-header.is-over-hero.is-at-top {
  background: rgba(5, 13, 26, 0.08);
  border-bottom-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.site-header.is-scrolled {
  background: rgba(8, 16, 31, 0.76);
  border-bottom-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 34px rgba(5, 13, 26, 0.24);
}

.header-inner {
  width: min(1280px, calc(100% - 48px));
  min-height: 70px;
  gap: 26px;
}

.brand {
  color: #ffffff;
  min-width: 188px;
}

.brand img {
  width: 64px;
  height: 42px;
}

.brand span {
  color: #ffffff;
  font-size: 17px;
  font-weight: 850;
}

.nav {
  flex: 1 1 auto;
  justify-content: center;
  gap: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 700;
}

.nav a {
  position: relative;
  padding: 25px 0 24px;
  color: inherit;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.96);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: #ffffff;
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 268px;
}

.header-wechat {
  position: relative;
}

.header-consult {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: #ffffff;
  background: #0f766e;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.26);
  font-size: 15px;
  font-weight: 850;
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.header-consult:hover,
.header-consult:focus-visible {
  color: #ffffff;
  background: #0b5f59;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.32);
  transform: translateY(-1px);
}

.header-qrcode {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 224px;
  padding: 16px;
  color: #101828;
  text-align: center;
  pointer-events: none;
  visibility: hidden;
  background: #ffffff;
  border: 1px solid rgba(228, 231, 236, 0.96);
  border-radius: 8px;
  box-shadow: var(--shadow-popover);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.header-qrcode::before {
  position: absolute;
  top: -7px;
  right: 38px;
  width: 14px;
  height: 14px;
  content: "";
  background: #ffffff;
  border-top: 1px solid rgba(228, 231, 236, 0.96);
  border-left: 1px solid rgba(228, 231, 236, 0.96);
  transform: rotate(45deg);
}

.header-wechat:hover .header-qrcode,
.header-wechat:focus-within .header-qrcode {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.header-qrcode img {
  width: 168px;
  height: 168px;
  margin: 0 auto 10px;
  border-radius: 6px;
}

.header-qrcode strong,
.header-qrcode span {
  display: block;
}

.header-qrcode strong {
  color: #101828;
  font-size: 15px;
  font-weight: 850;
}

.header-qrcode span {
  margin-top: 5px;
  color: #475467;
  font-size: 13px;
  line-height: 1.5;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 850;
  white-space: nowrap;
}

.header-phone:hover {
  color: #ffffff;
}

.header-call {
  display: none;
}

@media (width <= 1080px) {
  .header-inner {
    width: min(100% - 32px, 1280px);
    gap: 18px;
  }

  .nav {
    gap: 18px;
    font-size: 14px;
  }

  .header-actions {
    min-width: auto;
    gap: 10px;
  }

  .header-phone {
    display: none;
  }
}

@media (width <= 920px) {
  main {
    padding-top: 64px;
  }

  body.home-page main {
    padding-top: 0;
  }

  .site-header {
    background: rgba(8, 16, 31, 0.78);
  }

  .header-inner {
    min-height: 64px;
    align-items: center;
    padding: 0;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 58px;
    height: 38px;
  }

  .brand span {
    font-size: 16px;
  }

  .header-consult {
    min-height: 38px;
    padding: 0 14px;
    font-size: 14px;
  }

  .header-qrcode {
    right: -6px;
    width: 210px;
  }
}


/* Hero right-side glassmorphism metrics panel */
.hero-content {
  justify-content: space-between;
  gap: 54px;
}

.hero-copy {
  flex: 0 1 720px;
  max-width: 720px;
}

.hero-metrics {
  display: grid;
  flex: 0 0 360px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  align-self: center;
  margin-right: clamp(26px, 3vw, 42px);
  color: #ffffff;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.hero-metric {
  position: relative;
  min-height: 132px;
  padding: 26px 24px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-metric strong {
  display: block;
  max-width: 100%;
  color: #ffffff;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-metric:nth-child(4) strong {
  font-size: 34px;
}

.hero-metric span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.5;
}

@media (width <= 1280px) {
  .hero-content {
    gap: 34px;
  }

  .hero-metrics {
    flex-basis: 340px;
    margin-right: 58px;
  }

  .hero-metric {
    min-height: 126px;
    padding: 24px 22px;
  }

  .hero-metric strong {
    font-size: 32px;
  }

  .hero-metric:nth-child(4) strong {
    font-size: 32px;
  }
}

@media (width <= 1120px) {
  .hero-content {
    justify-content: center;
  }

  .hero-metrics {
    display: none;
  }
}
