:root {
  --color-bg: #ffffff;
  --color-bg-soft: #f9fbfd;
  --color-text: #1c1c1c;
  --color-text-muted: #858585;
  --color-primary: #0d7aff;
  --color-primary-soft: rgba(13, 122, 255, 0.1);
  --color-border: #e2e8f0;
  --color-border-strong: #dde2ea;
  --color-footer: #1c1c1c;
  --content-width: 960px;
  --page-pad-x: 240px;
  --font-sans: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

.text-nowrap {
  white-space: nowrap;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  border: none;
  cursor: pointer;
  background: none;
}

.container {
  width: 100%;
  max-width: calc(var(--content-width) + var(--page-pad-x) * 2);
  margin: 0 auto;
  padding-left: var(--page-pad-x);
  padding-right: var(--page-pad-x);
}

.section-label {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-primary);
}

.section-title {
  margin: 0;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--color-text);
}

.section-desc {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.68;
  letter-spacing: 0.8px;
  color: var(--color-text);
  opacity: 0.7;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
  box-sizing: border-box;
  transition: opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  opacity: 0.9;
}

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

.btn-outline {
  background: rgba(255, 255, 255, 0.8);
  border-color: transparent;
  color: var(--color-primary);
  /* inset stroke stays inside the button; parent filter/overflow can't clip it */
  box-shadow: inset 0 0 0 1px var(--color-primary);
}

.btn-dark {
  background: var(--color-text);
  border: 1px solid var(--color-text);
  color: #fff;
  padding: 6px 24px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 500;
}

.link-arrow img {
  width: 16px;
  height: 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 134px;
  height: 48px;
  flex-shrink: 0;
}

.logo__icon {
  width: 46px;
  height: 45px;
  flex-shrink: 0;
}

.logo__icon img {
  width: 100%;
  height: 100%;
}

.logo__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 79px;
}

.logo__zh {
  position: relative;
  width: 79px;
  height: 16px;
}

.logo__zh img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.logo__en {
  width: 42px;
  height: 9px;
}

.logo__en img {
  width: 100%;
  height: 100%;
}

.nav {
  display: flex;
  align-items: flex-end;
  gap: 48px;
}

.nav a {
  padding-bottom: 4px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  border-bottom: 1px solid transparent;
}

.nav a.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Footer */
.site-footer {
  background: var(--color-footer);
  color: #fff;
  padding: 80px var(--page-pad-x) 40px;
}

.site-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.site-footer__brand {
  width: 380px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.site-footer__slogan {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #fff;
}

.footer-col {
  width: 160px;
}

.footer-col h4 {
  margin: 0 0 24px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0.8;
}

.footer-col li,
.footer-col a {
  font-size: 13px;
  line-height: 1.2;
}

.site-footer__line {
  margin: 60px 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0.6;
  font-size: 12px;
  line-height: 1.2;
}

.site-footer__legal {
  display: flex;
  gap: 24px;
}

@media (max-width: 1200px) {
  :root {
    --page-pad-x: 48px;
  }

  .nav {
    gap: 28px;
  }
}

@media (max-width: 900px) {
  :root {
    --page-pad-x: 24px;
  }

  html,
  body {
    overflow-x: clip;
    max-width: 100%;
  }

  /* desktop-only single-line helpers must wrap on small screens */
  .text-nowrap,
  .m-word.text-nowrap {
    white-space: normal;
  }

  .site-header__inner {
    flex-wrap: wrap;
    height: auto;
    gap: 12px 16px;
    padding: 12px 16px;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 8px 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex-shrink: 0;
    font-size: 14px;
    white-space: nowrap;
  }

  .section-title {
    font-size: 28px;
  }

  .section-desc {
    font-size: 15px;
  }

  [class*="__actions"] {
    width: 100%;
    flex-wrap: wrap;
  }

  [class*="__actions"] .btn {
    flex: 1 1 auto;
    min-width: min(100%, 148px);
  }

  .site-footer__top {
    flex-wrap: wrap;
    gap: 32px 24px;
  }

  .site-footer__brand,
  .footer-col {
    width: 100%;
    max-width: none;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  :root {
    --page-pad-x: 20px;
  }

  .site-header__inner {
    padding: 10px 12px;
  }

  .nav {
    gap: 6px 12px;
  }

  .nav a {
    font-size: 13px;
  }

  .section-title {
    font-size: 24px;
  }

  .btn {
    padding: 12px 18px;
    font-size: 15px;
  }

  [class*="__actions"] .btn {
    flex: 1 1 100%;
    width: 100%;
  }
}
