:root {
  --color-green: #48ac37;
  --color-blue-950: #052f55;
  --color-blue-900: #063b68;
  --color-blue-800: #075084;
  --color-blue-700: #1d3766;
  --color-blue-600: #176fac;
  --color-green-600: #2f9e3f;
  --color-green-700: #248833;
  --color-text: #17293a;
  --color-muted: #637486;
  --color-line: #e4eaf1;
  --color-white: #ffffff;
  --shadow-soft: 0 12px 32px rgba(5, 47, 85, 0.12);
  --shadow-hover: 0 18px 42px rgba(5, 47, 85, 0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --container: 1500px;
  --header-h: 66px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
}
@media (min-width: 1200px) and (max-width: 1919px) {
  html {
    font-size: max(12px, min(calc(100vw / 120), 16px));
  }
}
@media (max-width: 1199px) {
  html {
    font-size: max(10px, min(calc(100vw / 75), 16px));
  }
}

@font-face {
  font-family: "Figtree";
  src: url("../fonts/Figtree-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("../fonts/Figtree-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("../fonts/Figtree-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/Figtree Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/Figtree-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "Figtree", sans-serif;
  font-weight: 400;
  /* 默认用常规字重 */
  color: #1a1c1a;
  overflow-x: hidden;
  background: #ffffff;
  letter-spacing: 0.6;
}
html {
  scroll-behavior: smooth;
}

body.nav-locked {
  overflow: hidden;
}

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

img {
  border: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

button {
  border: 0;
  background: none;
  cursor: pointer;
}

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

/* a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(47, 158, 63, 0.35);
  outline-offset: 2px;
} */

ul,
ol {
  list-style: none;
}

.container {
  width: 75%;
  margin: 0 auto;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 通用按钮 */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out),
    background-color 0.28s, color 0.28s;
}

.btn::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.22) 45%,
    transparent 68%
  );
  transform: translateX(-115%);
  transition: transform 0.55s var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(5, 47, 85, 0.2);
}

.btn:hover::before {
  transform: translateX(115%);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: var(--color-white);
  background: var(--color-blue-700);
}

.btn-primary:hover {
  background: var(--color-blue-800);
}

.btn-light {
  color: var(--color-blue-900);
  background: var(--color-white);
}

.btn-light:hover {
  color: var(--color-green-700);
}

/* 入场动画（JS 会添加 will-reveal，避免无 JS 时内容不可见） */
.reveal {
  opacity: 1;
  transform: none;
}

.reveal.will-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.72s var(--ease-out), transform 0.72s var(--ease-out);
}

.reveal.will-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1.will-reveal {
  transition-delay: 0.12s;
}

.reveal-delay-2.will-reveal {
  transition-delay: 0.22s;
}

.reveal-delay-3.will-reveal {
  transition-delay: 0.32s;
}

/* =====================
   头部
   ===================== */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  height: 5.875rem;
  background: rgba(255, 255, 255, 1);
  border-bottom: 1px solid #dce3ec;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

.brand-logo {
  width: 10.625rem;
}

.brand-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  flex: 0.9;
  gap: 2.25rem;
}

.main-nav {
  display: flex;
  align-items: center;
  flex: 1;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 90%;
  justify-content: space-between;
}
.chHeader .nav-list {
  width: 80%;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #5f635f;
  font-size: 1.375rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.24s;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -0.8rem;
  left: 0;
  height: 0.1875rem;
  content: "";
  background: var(--color-green);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s var(--ease-out);
}

.nav-link:hover,
.nav-item.active .nav-link {
  color: var(--color-green);
  font-weight: 700;
}

.nav-item.active .nav-link::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5625rem;
}

.login-link {
  position: relative;
  font-size: 1.25rem;
  white-space: nowrap;
  color: #4a525c;
}

.login-link::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--color-green-600);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease-out);
}

.login-link:hover::after {
  transform: scaleX(1);
}

.header-cta {
  width: 10rem;
  height: 3.125rem;
  font-size: 1.25rem;
}

/* PT 语言下拉 */
.lang-switch {
  position: relative;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #263748;
  font-size: 1.25rem;
  color: #4a525c;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: -12px;
  width: 8.5rem;
  padding: 0.625rem;
  visibility: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out),
    visibility 0.22s;
}

.lang-menu::before {
  position: absolute;
  top: -12px;
  right: 12px;
  width: 12px;
  height: 12px;
  content: "";
  background: var(--color-white);
  border-top: 1px solid var(--color-line);
  border-left: 1px solid var(--color-line);
  transform: rotate(45deg) translateY(7px);
}

.lang-menu a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  color: var(--color-text);
  border-radius: 8px;
  font-size: 14px;
  transition: color 0.2s, background-color 0.2s;
}

.lang-menu a:hover,
.lang-menu a.active {
  color: var(--color-green-700);
  background: #eef8f0;
}

.lang-menu a.active::after {
  width: 6px;
  height: 6px;
  content: "";
  background: var(--color-green-600);
  border-radius: 50%;
}

@media (hover: hover) and (min-width: 1025px) {
  .lang-switch:hover .lang-menu,
  .lang-switch:focus-within .lang-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .lang-switch:hover .lang-toggle svg,
  .lang-switch:focus-within .lang-toggle svg {
    transform: rotate(180deg);
  }
}

.lang-switch.open .lang-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.lang-switch.open .lang-toggle svg {
  transform: rotate(180deg);
}

.nav-toggle {
  position: relative;
  z-index: 1002;
  display: none;
  width: 32px;
  height: 32px;
  border: 1px solid #48ac37;
  border-radius: 50%;
}

.nav-toggle span {
  display: block;
  width: 14px;
  height: 2px;
  margin: 4px auto;
  background: #48ac37;
  border-radius: 2px;
  transition: transform 0.28s var(--ease-out), opacity 0.2s;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* =====================
   底部
   ===================== */
.site-footer {
  color: rgba(255, 255, 255, 0.9);
  background: #1d3766;
}

.footer-main {
  display: flex;

  padding: 3.125rem 0;
}
.footer-intro-wrap {
  margin-right: 6.25rem;
}
.site-footer .brand img {
  display: block;
}

.footer-intro {
  width: 25rem;
  margin-top: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: #a8bdd0;
}

.social-list {
  display: flex;
  gap: 10px;
  margin-top: 0.9375rem;
}

.social-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 800;
  transition: transform 0.25s var(--ease-out), background-color 0.25s,
    border-color 0.25s;
}

.social-list a:hover {
  background: var(--color-green-600);
  border-color: var(--color-green-600);
  transform: translateY(-3px);
}

.footer-title {
  margin-bottom: 19px;
  color: var(--color-white);
  font-size: 1.125rem;
  font-weight: 600;
}

.footer-nav {
  display: grid;
  gap: 13px;
}

.footer-nav a,
.footer-contact a {
  color: #a8bdd0;
  font-size: 1rem;
  transition: color 0.22s, transform 0.22s var(--ease-out);
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--color-white);
}

.footer-nav a:hover {
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  gap: 24px;
  font-size: 12px;
}

.copyright {
  color: rgba(255, 255, 255, 0.25);
  text-align: center;
  padding: 1.125rem 0;
  font-size: 1rem;
}
@media (max-width: 1440px) {
  .container {
    width: 80%;
  }
}
@media (max-width: 1032px) {
  .container {
    width: 90%;
  }
  .nav-toggle {
    display: block;
  }

  .header-inner {
    width: min(100% - 40px, var(--container));
  }

  .header-right {
    position: fixed;
    z-index: 1001;
    top: 5.875rem;
    right: 0;
    left: 0;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    max-height: calc(100vh - 5.875rem);
    padding: 18px 20px 28px;
    /* overflow-y: auto; */
    visibility: hidden;
    background: var(--color-white);

    opacity: 0;
    transform: translateY(-16px);
    transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out),
      visibility 0.28s;
  }

  body.nav-open .header-right {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .main-nav,
  .nav-list {
    display: block;
    width: 100% !important;
  }

  .nav-item {
    border-bottom: 1px solid var(--color-line);
  }

  .nav-link {
    width: 100%;
    height: auto;
    padding: 15px 2px;
    font-size: 1.5rem;
  }

  .nav-link::after {
    right: auto;
    bottom: 10px;
    left: 0;
    width: 28px;
    transform-origin: left;
  }
  .lang-toggle,
  .login-link {
    font-size: 1.25rem;
  }
  .header-actions {
    justify-content: flex-start;
  }

  .lang-menu {
    top: auto;
    right: auto;
    left: 0;
    margin-top: 10px;
  }

  .lang-menu::before {
    right: auto;
    left: 22px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-intro-wrap {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 62px;
  }

  .brand-logo {
    font-size: 22px;
  }

  .brand-sub {
    padding-left: 29px;
    font-size: 11px;
  }

  .header-actions {
    flex-wrap: wrap;
    gap: 14px 22px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 48px 0 38px;
    display: block;
  }

  .footer-intro-wrap {
    grid-column: auto;
    margin-bottom: 20px;
  }

  .footer-bottom-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
  }
  .container {
    width: 90%;
  }
}
