:root {
  --color-ink: #14213d;
  --color-paper: #ffffff;
  --color-surface: #f5f8ff;
  --color-muted: #e9eef8;
  --color-muted-ink: #52627a;
  --color-line: #dce4f1;
  --color-blue: #315ee8;
  --color-blue-dark: #2447b8;
  --color-blue-soft: #e8efff;
  --color-navy: #111d36;
  --shell: min(1180px, calc(100% - 48px));
  --radius-sm: 12px;
  --radius-lg: 28px;
  --transition: 220ms ease;
  color: var(--color-ink);
  background: var(--color-paper);
  font-family: "Inter", "SF Pro Text", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--color-ink);
  background: var(--color-paper);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:active,
a:active {
  opacity: 0.72;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #89a5ff;
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--color-paper);
  background: var(--color-navy);
  transform: translateY(-160%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(20, 33, 61, 0.08);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 84px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--color-paper);
  background: var(--color-blue);
  border-radius: 13px;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.08em;
}

.brand-name {
  display: grid;
  line-height: 1.15;
}

.brand-name strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-name small {
  margin-top: 4px;
  color: var(--color-muted-ink);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.primary-nav {
  display: flex;
  gap: 30px;
}

.primary-nav a,
.back-link {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #35445d;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.primary-nav a::after,
.back-link::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--color-blue);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.primary-nav a:hover::after,
.back-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.language-switch {
  justify-self: end;
  min-width: 88px;
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  color: var(--color-muted-ink);
  background: var(--color-paper);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.language-switch:hover {
  border-color: #aebbd0;
  color: var(--color-ink);
  background: var(--color-surface);
}

.language-active {
  color: var(--color-blue-dark);
  font-weight: 700;
}

.hero {
  padding-top: clamp(68px, 8vw, 104px);
  padding-bottom: clamp(88px, 9vw, 120px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
}

.eyebrow {
  color: var(--color-muted-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 30px;
  font-size: clamp(54px, 6.4vw, 88px);
  font-weight: 650;
  letter-spacing: -0.068em;
  line-height: 0.98;
}

.hero h1 span,
.hero h1 em {
  display: block;
}

.hero h1 em {
  color: var(--color-blue);
  font-style: normal;
  font-weight: 570;
}

.hero-intro {
  max-width: 710px;
  margin-bottom: 32px;
  color: var(--color-muted-ink);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.7;
}

.primary-link,
.text-link {
  min-height: 44px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  text-decoration: none;
}

.primary-link {
  padding: 12px 20px;
  color: var(--color-paper);
  background: var(--color-blue);
  border-radius: 999px;
  transition: background var(--transition), box-shadow var(--transition);
}

.primary-link:hover {
  background: var(--color-blue-dark);
  box-shadow: 0 10px 28px rgba(49, 94, 232, 0.2);
}

.primary-link svg,
.text-link svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform var(--transition);
}

.primary-link:hover svg,
.text-link:hover svg {
  transform: translateX(4px);
}

.hero-art {
  position: relative;
  width: min(100%, 520px);
  justify-self: end;
}

.hero-art::after {
  position: absolute;
  right: 12%;
  bottom: 4%;
  left: 12%;
  height: 18%;
  z-index: -1;
  content: "";
  background: rgba(49, 94, 232, 0.12);
  border-radius: 50%;
  filter: blur(36px);
}

.hero-art img {
  width: 100%;
  height: auto;
  display: block;
}

.section {
  padding-block: clamp(92px, 12vw, 152px);
}

section[id] {
  scroll-margin-top: 100px;
}

.services-section {
  background: var(--color-surface);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.52fr 1.48fr;
  gap: 48px;
}

.section-heading .eyebrow,
.section-heading h2,
.about-grid h2 {
  margin-bottom: 0;
}

.section-heading h2,
.about-grid h2 {
  max-width: 840px;
  font-size: clamp(38px, 5.2vw, 68px);
  font-weight: 590;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.service-grid {
  margin-top: clamp(64px, 8vw, 100px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  min-height: 330px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  border-color: #bac7db;
  box-shadow: 0 18px 50px rgba(38, 67, 122, 0.08);
}

.service-index {
  color: var(--color-blue);
  font-size: 13px;
  font-weight: 700;
}

.service-card h3 {
  margin: auto 0 14px;
  padding-top: 72px;
  font-size: clamp(23px, 2.5vw, 31px);
  font-weight: 630;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.service-card p {
  margin-bottom: 0;
  color: var(--color-muted-ink);
}

.product-section {
  border-block: 1px solid var(--color-line);
  background: var(--color-paper);
}

.product-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(64px, 10vw, 140px);
}

.product-identity {
  display: flex;
  align-items: center;
  gap: 30px;
}

.product-identity img {
  width: clamp(94px, 12vw, 146px);
  height: auto;
  display: block;
  border-radius: 24%;
  box-shadow: 0 20px 50px rgba(8, 26, 20, 0.16);
}

.product-identity .eyebrow {
  margin-bottom: 8px;
}

.product-identity h2 {
  margin-bottom: 0;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1;
}

.product-summary > p {
  margin-bottom: 28px;
  color: var(--color-muted-ink);
  font-size: 19px;
}

.text-link {
  color: var(--color-blue-dark);
}

.section-dark {
  color: var(--color-paper);
  background: var(--color-navy);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(64px, 10vw, 140px);
}

.eyebrow-light {
  color: #9fb5e1;
}

.about-grid h2 {
  margin-top: 25px;
}

.about-copy > p {
  color: #d8e0ef;
  font-size: 19px;
}

.company-facts {
  margin: 58px 0 0;
}

.company-facts div {
  padding-block: 20px;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 24px;
  border-top: 1px solid #32415e;
}

.company-facts dt {
  color: #9eadc6;
  font-size: 13px;
}

.company-facts dd {
  margin: 0;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  align-items: end;
  gap: clamp(48px, 8vw, 120px);
}

.contact-grid .section-heading {
  display: block;
}

.contact-grid .section-heading h2 {
  margin-top: 24px;
}

.contact-card {
  padding: 34px;
  border-top: 4px solid var(--color-blue);
  background: var(--color-surface);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.contact-card p {
  margin-bottom: 34px;
  color: var(--color-muted-ink);
}

.contact-card a {
  display: block;
  overflow-wrap: anywhere;
  color: var(--color-blue-dark);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 700;
}

.contact-card span {
  margin-top: 8px;
  display: block;
  color: var(--color-muted-ink);
  font-size: 13px;
}

.site-footer {
  padding-top: 72px;
  color: var(--color-paper);
  background: var(--color-navy);
}

.footer-main {
  padding-bottom: 72px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 48px;
}

.footer-main strong {
  font-size: 18px;
}

.footer-main p {
  margin: 5px 0 0;
  color: #9eadc6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.footer-links a,
.compact-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #d8e0ef;
  font-size: 14px;
}

.footer-bottom {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid #32415e;
  color: #9eadc6;
  font-size: 13px;
}

.legal-page {
  max-width: 900px;
  padding-top: clamp(72px, 9vw, 112px);
  padding-bottom: clamp(96px, 12vw, 150px);
}

.legal-header {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--color-ink);
}

.legal-header h1 {
  margin-bottom: 10px;
  font-size: clamp(48px, 8vw, 82px);
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 1;
}

.legal-header > p:last-child {
  margin-bottom: 0;
  color: var(--color-muted-ink);
}

.legal-copy {
  padding-top: 32px;
}

.legal-copy section {
  padding-block: 30px;
  border-bottom: 1px solid var(--color-line);
}

.legal-copy h2 {
  margin-bottom: 14px;
  font-size: 21px;
  font-weight: 650;
}

.legal-copy p {
  margin-bottom: 0;
  color: #45546b;
  font-size: 17px;
}

.compact-footer {
  padding-top: 0;
}

@media (max-width: 900px) {
  :root {
    --shell: min(100% - 32px, 720px);
  }

  .header-inner {
    min-height: 76px;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .primary-nav,
  .back-link {
    display: none;
  }

  .hero-grid,
  .section-heading,
  .product-row,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    align-items: stretch;
    gap: 28px;
  }

  .hero-art {
    width: min(100%, 560px);
    justify-self: center;
  }

  .section-heading {
    gap: 18px;
  }

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

  .service-card {
    min-height: 0;
  }

  .service-card h3 {
    margin-top: 54px;
  }

  .product-row,
  .about-grid {
    gap: 56px;
  }

  .contact-grid {
    align-items: stretch;
  }

  .footer-main {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  :root {
    --shell: calc(100% - 32px);
  }

  .brand-name small {
    display: none;
  }

  .hero {
    padding-top: 58px;
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 66px);
  }

  html[lang="zh-CN"] .hero h1 {
    font-size: clamp(44px, 12vw, 58px);
    letter-spacing: -0.055em;
  }

  .service-card,
  .contact-card {
    padding: 26px;
  }

  .product-identity {
    align-items: flex-start;
    flex-direction: column;
  }

  .company-facts div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .footer-links {
    flex-direction: column;
    gap: 4px;
  }

  .footer-bottom {
    padding-block: 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
