/* ============ Tokens（取证实测为主） ============ */
:root {
  --primary: #3b7adb;
  --primary-hover: #2f64b8;
  --primary-deep: #2461bf;
  --heading: #121212;
  --nav-text: #333333;
  --body: #666666;
  --line: #ececec;
  --dark: #1a1a1c;
  --gold: #d9b45a;
  --font-h2: 34px;
  --header-h: 60px;
  --dur: 0.25s;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ============ Base ============ */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  background: #fff;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
input,
select,
textarea {
  font-family: inherit;
  font-size: 15px;
  color: #333;
}
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 30px;
}
.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;
}

/* ============ 通用标题 / 按钮 ============ */
.eyebrow {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow.light {
  color: rgba(255, 255, 255, 0.85);
}
.sec-h2 {
  color: var(--heading);
  font-size: var(--font-h2);
  font-weight: 800;
  line-height: 1.12;
  margin: 14px 0 22px;
}
.sec-h2.light {
  color: #fff;
}
.body-copy {
  font-size: 16px;
  line-height: 1.85;
  max-width: 860px;
}
.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 50px;
  padding: 0 40px;
  border: 0;
  border-radius: 0;
  transition: background var(--dur);
}
.btn-solid:hover {
  background: var(--primary-hover);
}
.text-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
}
.text-link:hover {
  color: var(--primary-hover);
}

/* ============ 滚动入场 ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ============ 桌面 Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}
.brand img {
  height: 42px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  flex: 1;
  justify-content: center;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--nav-text);
  font-size: 18px;
  font-weight: 700;
  line-height: var(--header-h);
  white-space: nowrap;
  transition: color var(--dur);
}
.nav-link:hover,
.nav-item:hover .nav-link {
  color: var(--primary);
}
.mega {
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--line);
  min-width: 260px;
  padding: 14px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  box-shadow: 0 12px 30px rgba(18, 18, 18, 0.08);
}
.nav-item:hover .mega,
.nav-item:focus-within .mega {
  opacity: 1;
  visibility: visible;
}
.mega-link {
  display: block;
  padding: 9px 24px;
  font-size: 14px;
  color: #444;
}
.mega-link:hover {
  color: var(--primary);
  background: #f6f9fe;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: none;
  border: 0;
  color: var(--nav-text);
}
.icon-btn:hover {
  color: var(--primary);
}
.lang {
  position: relative;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  color: var(--nav-text);
  font-size: 14px;
  font-weight: 700;
  height: 38px;
}
.lang-drop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--line);
  min-width: 120px;
  z-index: 70;
  box-shadow: 0 10px 26px rgba(18, 18, 18, 0.1);
}
.lang-drop a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: #444;
}
.lang-drop a:hover,
.lang-drop li.active a {
  color: var(--primary);
  background: #f6f9fe;
}
.search-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  z-index: 65;
}
.search-panel input {
  width: 100%;
  border: 1px solid #cfd8e6;
  padding: 12px 18px;
  outline: none;
}
.search-panel input:focus {
  border-color: var(--primary);
}

/* ============ 移动端头部 ============ */
.mobile-head {
  display: none;
}
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 90;
}
.drawer {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(78vw, 340px);
  background: #fff;
  display: flex;
  flex-direction: column;
  animation: slideIn 0.25s ease;
}
@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: none;
  }
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--dark);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 0 18px;
  height: 52px;
}
.drawer-head button {
  background: none;
  border: 0;
  color: #fff;
  display: inline-flex;
}
.drawer-nav {
  flex: 1;
  overflow: auto;
  padding: 6px 0 24px;
}
.drawer-row {
  border-bottom: 1px solid var(--line);
}
.drawer-row > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  color: #333;
  font-size: 15px;
  font-weight: 600;
}
.drawer-row > a:hover {
  color: var(--primary);
}
.drawer-row .rot {
  transform: rotate(180deg);
}
.drawer-sub {
  background: #f7f8fa;
  padding: 6px 0;
}
.drawer-sub a {
  display: block;
  padding: 11px 32px;
  font-size: 14px;
  color: #555;
}
.drawer-sub a:hover {
  color: var(--primary);
}

/* ============ 移动端底部快捷栏 ============ */
.mobile-bottombar {
  display: none;
}

/* ============ Hero 轮播 ============ */
.hero {
  position: relative;
  height: 594px;
  overflow: hidden;
  background: #dfe6f0;
}
.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}
.hero-slide {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-slide.active {
  opacity: 1;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.85);
  color: #555;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.hero-arrow:hover {
  color: var(--primary);
}
.hero-arrow.left {
  left: 18px;
}
.hero-arrow.right {
  right: 18px;
}
.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.75);
  padding: 0;
}
.dot.active {
  background: var(--primary);
  width: 22px;
  border-radius: 6px;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--primary-deep);
  color: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 0.9fr 1.15fr;
  gap: 48px;
  padding-top: 70px;
  padding-bottom: 54px;
}
.footer-logo img {
  height: 46px;
  width: auto;
  filter: brightness(0) invert(1);
}
.f-col p {
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.82);
  margin: 18px 0;
}
.socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.socials a,
.socials button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  background: none;
  transition: background var(--dur), border-color var(--dur);
}
.socials a:hover {
  background: #fff;
  color: var(--primary-deep);
  border-color: #fff;
}
.f-col h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 6px 0 22px;
}
.f-col ul li {
  margin-bottom: 12px;
}
.f-col ul a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  transition: color var(--dur);
}
.f-col ul a:hover {
  color: #fff;
}
.f-contact li {
  display: flex;
  gap: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}
.f-contact svg {
  flex: none;
  margin-top: 3px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.08);
}
.footer-bottom .container {
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.68);
}

/* ============ 浮动社交条（桌面） ============ */
.float-rail {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
}
.float-rail a,
.float-rail button {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border: 0;
  font-size: 15px;
  margin-bottom: 2px;
  transition: background var(--dur);
}
.float-rail a:hover,
.float-rail button:hover {
  background: var(--primary-hover);
}

/* ============ Cookie ============ */
.cookie {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 80;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
  padding: 22px 24px 20px;
  max-width: 340px;
  font-size: 13px;
  line-height: 1.65;
}
.cookie strong {
  color: var(--heading);
  font-size: 14px;
}
.cookie p {
  margin: 8px 0 14px;
}
.cookie-x {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: 0;
  color: #999;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cookie-actions button {
  border: 0;
  background: var(--primary);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 10px 16px;
}
.cookie-actions button.ghost {
  background: #fff;
  color: #333;
  border: 1px solid #ccc;
}

/* ============ 响应式：桌面头部隐藏 / 移动形态 ============ */
@media (max-width: 1199.98px) {
  .main-nav {
    gap: 20px;
  }
}
@media (max-width: 991.98px) {
  .site-header {
    display: none;
  }
  .mobile-head {
    display: block;
    position: sticky;
    top: 0;
    z-index: 60;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  }
  .mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--dark);
    height: 46px;
    padding: 0 14px;
  }
  .m-icon-btn {
    background: none;
    border: 0;
    color: #fff;
    display: inline-flex;
    padding: 6px;
  }
  .mobile-top-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
  }
  .m-lang {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 8px;
  }
  .mobile-logo-row {
    display: flex;
    justify-content: center;
    padding: 10px 0;
  }
  .mobile-logo-row img {
    height: 38px;
    width: auto;
  }
  .search-panel {
    top: auto;
    position: relative;
    border-bottom: 1px solid var(--line);
  }
  .mobile-bottombar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    background: var(--dark);
    height: 56px;
  }
  .mobile-bottombar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #fff;
    font-size: 10.5px;
    font-weight: 600;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }
  .mobile-bottombar a:last-child {
    border-right: 0;
  }
  body {
    padding-bottom: 56px;
  }
  .float-rail {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
  }
  .hero {
    height: auto;
    aspect-ratio: 1440 / 594;
  }
  .cookie {
    left: 12px;
    right: 12px;
    bottom: 64px;
    max-width: none;
  }
}

@media (max-width: 575.98px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}
