:root {
  --color-primary: #0565cf;
  --color-primary-hover: #0056b7;
  --color-primary-soft: #eaf3ff;
  --color-heading: #24282f;
  --color-text: #5e6570;
  --color-muted: #9098a4;
  --color-line: #e7ebf0;
  --color-surface: #ffffff;
  --color-surface-soft: #f6f9fd;
  --color-footer: #101a2d;
  --container-width: 1200px;
  --header-height: 64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-card: 0 10px 30px rgba(46, 88, 139, 0.08);
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--color-text);
  background: #fff;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.is-nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--color-heading);
  font-weight: 700;
  line-height: 1.35;
}

.container {
  width: min(calc(100% - 48px), var(--container-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 8px 14px;
  color: #fff;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(5, 101, 207, 0.35);
  outline-offset: 3px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 26px;
  color: #fff;
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover {
  color: #fff;
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-1px);
}

.button--small {
  min-height: 36px;
  padding-inline: 20px;
  font-size: 14px;
}

.button--outline {
  min-height: 46px;
  color: var(--color-primary);
  background: #fff;
}

.button--outline:hover {
  color: #fff;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-primary);
  font-weight: 500;
}

.text-link:hover {
  color: var(--color-primary-hover);
}

/* 全站内容卡片统一使用轻量移入反馈，避免移入时改变布局尺寸。 */
:where(
  .environment-card,
  .product-image-card,
  .advantage-card,
  .warning-case-card,
  .solution-capability-card,
  .solution-value-card,
  .customer-stat-card,
  .customer-case-card,
  .customer-school-grid li,
  .channel-market__card,
  .channel-support__card,
  .culture-card,
  .qualification-card,
  .faq-card
) {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

@media (hover: hover) {
  :is(
    .environment-card,
    .product-image-card,
    .advantage-card,
    .warning-case-card,
    .solution-capability-card,
    .solution-value-card,
    .customer-stat-card,
    .customer-case-card,
    .customer-school-grid li,
    .channel-market__card,
    .channel-support__card,
    .culture-card,
    .qualification-card,
    .faq-card
  ):hover {
    box-shadow: 0 14px 32px rgba(46, 88, 139, 0.13);
    transform: translateY(-4px);
  }
}

:is(
  .product-image-card,
  .customer-case-card,
  .channel-market__card,
  .channel-support__card,
  .culture-card,
  .qualification-card,
  .faq-card
):focus-within {
  box-shadow: 0 14px 32px rgba(46, 88, 139, 0.13);
  transform: translateY(-4px);
}

.site-header {
  position: relative;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.98);
}

.site-header__inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--color-heading);
}

.brand__mark {
  width: 32px;
  height: 34px;
  object-fit: contain;
}

.brand__name {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.primary-nav__link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 2px;
  color: #49515e;
  border-radius: var(--radius-sm);
  font-size: 14px;
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease;
}

.primary-nav__link:hover {
  color: var(--color-primary);
}

.primary-nav__link.is-active {
  padding-inline: 14px;
  color: var(--color-primary);
  background: #f0f6ff;
}

.primary-nav__link--dropdown {
  position: relative;
  z-index: 0;
}

.primary-nav__link--dropdown::before {
  position: absolute;
  inset: 0 -12px;
  z-index: -1;
  background: #f0f6ff;
  border-radius: var(--radius-sm);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.primary-nav__link--dropdown[aria-expanded="true"] {
  color: var(--color-primary);
}

.primary-nav__link--dropdown[aria-expanded="true"]::before {
  opacity: 1;
}

.primary-nav__link--dropdown.is-active::before,
.page-product .primary-nav__link--dropdown:nth-child(2)::before,
.page-solution .primary-nav__link--dropdown:nth-child(3)::before {
  inset-inline: 0;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 20;
  color: #101828;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(16, 24, 40, 0.16);
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.nav-dropdown.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown--products {
  width: min(860px, calc(100vw - 48px));
  height: 520px;
  padding: 19px 24px 24px;
}

.nav-dropdown--solutions {
  width: min(480px, calc(100vw - 48px));
  height: 262px;
  padding: 19px 24px 23px;
}

.nav-dropdown__top {
  display: flex;
  height: 21px;
  align-items: center;
  justify-content: space-between;
}

.nav-dropdown__all {
  color: #101828;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  transition: color 150ms ease;
}

.nav-dropdown__all:hover,
.nav-dropdown__item:hover .nav-dropdown__title {
  color: var(--color-primary);
}

.nav-dropdown__close {
  display: none;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #667085;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.nav-dropdown__close path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.nav-dropdown__grid {
  display: grid;
}

.nav-dropdown__grid--products {
  height: 436px;
  grid-auto-flow: column;
  grid-template-columns: repeat(3, 247px);
  grid-template-rows: repeat(5, 72px);
  column-gap: 28px;
  row-gap: 19px;
  margin-top: 24px;
}

.nav-dropdown__grid--solutions {
  grid-template-rows: repeat(3, 48px);
  gap: 16px;
  margin-top: 24px;
}

.nav-dropdown__item {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: flex-start;
  padding-left: 22px;
  color: #3c3c3c;
}

.nav-dropdown__dot {
  position: absolute;
  top: 5px;
  left: 6px;
  width: 6px;
  height: 6px;
  background: #669cdc;
  border-radius: 50%;
}

.nav-dropdown__content,
.nav-dropdown__title,
.nav-dropdown__description,
.nav-dropdown__tags {
  display: block;
  min-width: 0;
}

.nav-dropdown__content {
  width: 100%;
}

.nav-dropdown__title {
  overflow: hidden;
  color: #3c3c3c;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 150ms ease;
}

.nav-dropdown__description {
  overflow: hidden;
  color: #98a2b3;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-dropdown__tags {
  display: flex;
  height: 19px;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  overflow: hidden;
  white-space: nowrap;
}

.nav-dropdown__tags span {
  display: inline-flex;
  height: 19px;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 6px;
  color: #2c7dd4;
  background: #e6effa;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 400;
  line-height: 19px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-heading);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-footer {
  min-height: 493px;
  padding: 50px 0 22px;
  color: #8792a6;
  background: var(--color-footer);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2.25fr 2.1fr 1fr 0.9fr;
  gap: 66px;
}

.brand--footer {
  color: #f3f6fb;
}

.brand--footer .brand__mark {
  width: 28px;
  height: 30px;
}

.brand--footer .brand__name {
  font-size: 20px;
}

.site-footer__brand > p {
  max-width: 360px;
  margin: 24px 0 18px;
}

.site-footer p,
.site-footer address,
.site-footer a {
  font-size: 12px;
  margin-right: 20px;
}

.site-footer address {
  margin: 0;
  font-style: normal;
  line-height: 1.75;
}

.site-footer__links h2 {
  margin: 4px 0 26px;
  color: #fff;
  font-size: 15px;
}

.site-footer__links a,
.site-footer__links stl\:a {
  display: block;
  margin-bottom: 9px;
  transition: color 160ms ease;
}

.site-footer__links a:hover,
.site-footer__links stl\:a:hover,
.site-footer__bottom a:hover {
  color: #fff;
}

.site-footer__link-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.social-links a {
  display: flex;
  width: 82px;
  height: 72px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  color: #738097;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.social-links img {
  width: 82px;
  height: 72px;
  object-fit: contain;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: #fff;
  transform: translateY(-3px);
}

.back-to-top {
  position: fixed;
  z-index: 90;
  right: clamp(16px, 2vw, 32px);
  bottom: clamp(88px, 10vh, 112px);
  display: grid;
  width: 50px;
  height: 50px;
  padding: 0;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #1477dd, var(--color-primary));
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 71, 153, 0.25);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.back-to-top::after {
  position: absolute;
  right: calc(100% + 10px);
  padding: 5px 9px;
  color: #fff;
  background: rgba(16, 26, 45, 0.92);
  border-radius: 6px;
  content: "\8FD4\56DE\9876\90E8";
  font-size: 12px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translateX(4px);
  transition: opacity 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.back-to-top svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: linear-gradient(145deg, #2185ea, #0057bd);
  box-shadow: 0 14px 28px rgba(0, 71, 153, 0.32);
  transform: translateY(-3px);
}

.back-to-top:hover::after,
.back-to-top:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 45px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__bottom p {
  margin: 0;
  font-size: 12px;
}

.site-footer__bottom p:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.template-preview-only {
  display: none;
}

html.is-template-preview .template-preview-only {
  display: contents;
}

html.is-template-preview stl\:contents {
  display: none !important;
}

@media (max-width: 1180px) {
  .primary-nav {
    gap: 18px;
  }

  .primary-nav__link {
    font-size: 13px;
  }

  .primary-nav__link.is-active {
    padding-inline: 10px;
  }

  .primary-nav__link--dropdown::before {
    inset-inline: -8px;
  }

  .primary-nav__link--dropdown.is-active::before,
  .page-product .primary-nav__link--dropdown:nth-child(2)::before,
  .page-solution .primary-nav__link--dropdown:nth-child(3)::before {
    inset-inline: 0;
  }

  .site-footer__grid {
    grid-template-columns: 1.7fr 1.6fr 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: 60px;
  }

  .container {
    width: min(calc(100% - 36px), var(--container-width));
  }

  .brand__name {
    font-size: 21px;
  }

  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: grid;
    max-height: calc(100vh - var(--header-height) - 1px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 20px 18px 26px;
    overflow-y: auto;
    background: #fff;
    border-top: 1px solid var(--color-line);
    box-shadow: 0 16px 30px rgba(26, 50, 79, 0.12);
    transform: translateY(-130%);
    visibility: hidden;
    transition: transform 220ms ease, visibility 220ms ease;
  }

  .primary-nav.is-open {
    transform: translateY(0);
    visibility: visible;
  }

  .primary-nav.has-dropdown-open {
    height: calc(100vh - var(--header-height));
  }

  .primary-nav__link,
  .primary-nav__link.is-active {
    min-height: 44px;
    justify-content: center;
    padding-inline: 12px;
    font-size: 14px;
  }

  .primary-nav__link--dropdown::before {
    inset: 0;
  }

  .primary-nav__login {
    grid-column: 1 / -1;
    margin-top: 8px;
  }

  .nav-dropdown {
    top: 0;
    left: 0 !important;
    width: 100%;
    max-height: calc(100vh - var(--header-height));
    height: auto;
    padding: 18px;
    overflow-x: hidden;
    overflow-y: auto;
    border-width: 0 0 1px;
    border-radius: 0 0 14px 14px;
    transform: translateY(-10px);
  }

  .nav-dropdown.is-open {
    transform: translateY(0);
  }

  .nav-dropdown__top {
    height: 32px;
  }

  .nav-dropdown__all {
    font-size: 15px;
    font-weight: 600;
  }

  .nav-dropdown__close {
    display: inline-flex;
  }

  .nav-dropdown__grid--products,
  .nav-dropdown__grid--solutions {
    height: auto;
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 12px;
    margin-top: 16px;
  }

  .nav-dropdown__item {
    min-height: 62px;
    padding: 8px 10px 8px 28px;
    background: #f8faff;
    border-radius: 8px;
  }

  .nav-dropdown__dot {
    top: 17px;
    left: 14px;
  }

  .nav-dropdown__tags {
    height: 18px;
    gap: 6px;
  }

  .nav-dropdown__tags span {
    height: 18px;
    font-size: 11px;
    line-height: 18px;
  }

  .site-footer {
    padding-top: 56px;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer__bottom p:last-child {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--container-width));
  }

  .button {
    min-height: 44px;
    padding-inline: 20px;
    font-size: 15px;
  }

  .brand__mark {
    width: 27px;
    height: 29px;
  }

  .brand__name {
    font-size: 19px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .site-footer__products {
    order: 2;
  }

  .social-links a {
    width: 74px;
    height: 62px;
  }

  .back-to-top {
    right: 14px;
    bottom: 82px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .back-to-top::after {
    display: none;
  }

  .site-footer__bottom {
    margin-top: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Shared contact component */
.contact {
  position: relative;
  min-height: 666px;
  padding: 75px 0 65px;
  background: url("../images/home/contact-bg.png") center / cover no-repeat;
}

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 550px;
  align-items: center;
  gap: 104px;
}

.contact__copy h2 {
  margin-bottom: 22px;
  padding-bottom: 2px;
  font-size: 48px;
  letter-spacing: -1.5px;
  line-height: 1.25;
}

.contact__copy p {
  max-width: 570px;
  margin-bottom: 28px;
  color: #737b86;
  font-size: 16px;
}

.contact__copy strong {
  color: #3a414b;
  font-size: 20px;
  font-weight: 600;
}

.contact-form {
  padding: 30px 34px 22px;
  background: #fff;
  border: 1px solid #dbe8f7;
  border-radius: 15px;
}

.contact-form h3 {
  margin-bottom: 20px;
  font-size: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  color: #59616c;
  font-size: 13px;
}

.contact-form label em {
  color: #ed4f55;
  font-style: normal;
}

.contact-form input,
.contact-form select {
  width: 100%;
  height: 42px;
  margin-bottom: 12px;
  padding: 0 14px;
  background: #fbfcfd;
  border: 1px solid #e2e6eb;
  border-radius: 6px;
  outline: 0;
  font-size: 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form input:focus,
.contact-form select:focus {
  border-color: #7fb4ec;
  box-shadow: 0 0 0 3px rgba(5, 101, 207, 0.1);
}

.contact-form .is-invalid {
  border-color: #e65e64;
}

.contact-form .button {
  width: 100%;
  min-height: 42px;
  margin-top: 2px;
}

.contact-form__notice,
.contact-form__status {
  margin: 10px 0 0;
  color: #a0a7b1;
  font-size: 11px;
  text-align: center;
}

.contact-form__status {
  min-height: 18px;
  color: var(--color-primary);
}

.wechat-float {
  position: absolute;
  top: 55%;
  right: 42px;
  display: flex;
  align-items: center;
  flex-direction: column;
  color: #5f6670;
  font-size: 12px;
  transform: translateY(-50%);
}

.wechat-float img {
  width: 80px;
  height: 80px;
  margin-bottom: 4px;
}

@media (max-width: 1280px) {
  .wechat-float {
    right: 10px;
  }
}

@media (max-width: 1100px) {
  .contact__layout {
    grid-template-columns: 1fr 500px;
    gap: 60px;
  }

  .contact__copy h2 {
    font-size: 41px;
  }

  .wechat-float {
    display: none;
  }
}

@media (max-width: 900px) {
  .contact {
    min-height: auto;
  }

  .contact__layout {
    grid-template-columns: 1fr;
  }

  .contact__copy h2 {
    font-size: 40px;
  }
}

@media (max-width: 640px) {
  .contact__layout {
    gap: 40px;
  }

  .contact__copy h2 {
    font-size: 34px;
  }

  .contact__copy p {
    font-size: 14px;
  }

  .contact__copy strong {
    font-size: 17px;
  }

  .contact-form {
    padding: 26px 20px 20px;
  }
}

