/* ============ 基础与设计变量 ============ */
:root {
  --red: #d2202f;
  --red-dark: #a8151f;
  --ink: #0d141d;
  --steel: #14202c;
  --slate: #22303e;
  --muted: #5e6b79;
  --line: #e2e6ea;
  --paper: #ffffff;
  --sand: #f5f4f1;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 84px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink);
  /* 让页脚始终贴住视口底部，内容短的页面也不会把黑色页脚顶到中间 */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(34px, 5.2vw, 64px);
}

h2 {
  font-size: clamp(26px, 3.1vw, 42px);
}

h3 {
  font-size: 19px;
  line-height: 1.3;
}

p {
  margin: 0;
}

ul,
ol,
dl,
dd,
dt,
figure {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

em {
  font-style: normal;
}

button {
  font-family: inherit;
  cursor: pointer;
}

::selection {
  background: var(--red);
  color: #fff;
}

.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;
}

.skip-link {
  position: fixed;
  left: -999px;
  top: 8px;
  z-index: 300;
  background: var(--red);
  color: #fff;
  padding: 10px 18px;
}

.skip-link:focus {
  left: 8px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.muted {
  color: var(--muted);
}

.prose {
  margin-top: 16px;
  color: #39434f;
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
  white-space: nowrap;
}

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

.btn--primary:hover {
  background: var(--red-dark);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn--outline {
  border-color: var(--ink);
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn--lg {
  padding: 18px 34px;
  font-size: 14px;
}

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

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.link-arrow span {
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover {
  color: var(--red);
  border-color: var(--red);
}

.link-arrow:hover span {
  transform: translateX(4px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.9);
}

/* ============ 头部 ============ */
.site-header {
  --header-fg: var(--ink);
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  color: var(--header-fg);
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.page-home .site-header {
  --header-fg: #fff;
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.page-home .site-header.is-stuck {
  --header-fg: var(--ink);
  background: #fff;
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(13, 20, 29, 0.07);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand__logo {
  width: auto;
  height: 40px;
}

.brand__logo--light {
  display: none;
}

.page-home .site-header:not(.is-stuck) .brand__logo--light {
  display: block;
}

.page-home .site-header:not(.is-stuck) .brand__logo--dark {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav__link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.28s var(--ease);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  width: 100%;
}

.nav__link--icon {
  opacity: 0.8;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}

.lang-switch {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border: 1px solid currentColor;
  border-radius: 2px;
  opacity: 0.85;
  transition: opacity 0.2s var(--ease);
}

.lang-switch:hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: none;
  border: 0;
  padding: 0;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 10px;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle span:nth-child(1) {
  top: 14px;
}
.nav-toggle span:nth-child(2) {
  top: 20px;
}
.nav-toggle span:nth-child(3) {
  top: 26px;
}

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

/* ============ 页脚 ============ */
.site-footer {
  background: #0b1119;
  color: #aab6c2;
  padding-top: clamp(56px, 7vw, 88px);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 56px;
}

.footer__logo {
  height: 38px;
  width: auto;
  margin-bottom: 18px;
}

.footer__brand p {
  font-size: 14px;
  max-width: 30ch;
}

.footer__legal {
  margin-top: 14px;
  font-size: 12.5px;
  color: #6f7f8f;
}

.footer__col h3 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
  font-weight: 600;
}

.footer__col li {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer__col a {
  transition: color 0.2s var(--ease);
}

.footer__col a:hover {
  color: #fff;
}

.footer__contact li {
  display: grid;
  gap: 2px;
  margin-bottom: 16px;
}

.footer__contact span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6f7f8f;
}

.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 22px;
}

.footer__bar-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #6f7f8f;
}

.footer__bar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer__admin {
  color: #5c6b7a;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer__admin:hover {
  color: #fff;
  border-bottom-color: #6f7f8f;
}

/* ============ 通用区块 ============ */
.section {
  padding-block: clamp(64px, 8vw, 116px);
}

.section--tight {
  padding-block: clamp(40px, 5vw, 64px);
}

.section--paper {
  background: var(--sand);
}

.section--dark {
  background: var(--steel);
  color: #fff;
}

.section--dark .muted,
.section--dark .section-head__sub {
  color: rgba(255, 255, 255, 0.66);
}

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.section-head h2 {
  max-width: 20ch;
}

.section-head__sub {
  margin-top: 16px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 16px;
}

.section-head__action {
  flex: 0 0 auto;
  padding-bottom: 6px;
}

.section-head--light h2 {
  color: #fff;
}

/* ============ 响应式 ============ */
@media (max-width: 1080px) {
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    color: var(--ink);
    padding: 16px var(--gutter) 32px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    max-height: calc(100vh - var(--header-h));
    overflow: auto;
  }

  .nav-open .nav {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav__link {
    width: 100%;
    padding: 15px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
  }

  .nav__link::after {
    display: none;
  }

  .nav__link--icon {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .header__cta {
    display: none;
  }

  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

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