/* ===== Variables ===== */
:root {
  --primary: #2F6BFF;
  --primary-dark: #1A4FCC;
  --primary-light: #5B8CFF;
  --primary-soft: #E8F0FF;
  --primary-softer: #F0F5FF;
  --text: #1A1A2E;
  --text-secondary: #5A5A72;
  --text-muted: #8A8AA3;
  --border: #E6EAF2;
  --bg: #FFFFFF;
  --bg-soft: #F5F7FA;
  --shadow-sm: 0 2px 8px rgba(47, 107, 255, 0.06);
  --shadow-md: 0 8px 24px rgba(47, 107, 255, 0.1);
  --shadow-card: 0 4px 20px rgba(26, 40, 80, 0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --header-h: 72px;
  /* 顶栏导航尺寸：桌面端固定，不随断点变化（避免有无滚动条导致 15/14 跳动） */
  --nav-font-size: 15px;
  --nav-link-pad-y: 8px;
  --nav-link-pad-x: 11px;
  --nav-font-weight: 500;
  --nav-gap: 6px;
  --header-tools-w: 286px;
  --header-search-w: 168px;
  --header-login-w: 100px;
  /* 内页标题区：page-hero / hall-bar 共用，避免页间跳动 */
  --page-band-pad-top: 40px;
  --page-band-pad-bottom: 28px;
  --page-title-size: clamp(26px, 3.6vw, 36px);
  --container: 1200px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC",
    "Helvetica Neue", Arial, sans-serif;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 始终预留滚动条槽，避免首页有滚动条、短页无滚动条时顶栏宽度跳动 */
html {
  scrollbar-gutter: stable;
}

html {
  scroll-behavior: smooth;
}

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

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

ul {
  list-style: none;
}

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

button,
input {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.text-primary {
  color: var(--primary);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(47, 107, 255, 0.35);
}

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

.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid #C5D6FF;
}

.btn-outline:hover {
  background: var(--primary-softer);
  border-color: var(--primary-light);
}

.btn-sm {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
  border-radius: var(--radius-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--primary);
  border-color: var(--primary-light);
  background: var(--primary-softer);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(230, 234, 242, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
  width: 100%;
  max-width: none;
  padding-inline: 24px;
  box-sizing: border-box;
  margin-inline: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}

.brand-logo {
  display: flex;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.brand-text strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.brand-text small {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: var(--nav-gap);
  min-width: 0;
  flex: 1 1 auto;
  overflow: visible;
}

/* 英文菜单更长：默认更紧凑，减少中等宽度重叠 */
html[lang="en"] {
  --nav-font-size: 13px;
  --nav-link-pad-x: 7px;
  --nav-gap: 2px;
  --header-search-w: 148px;
  --header-tools-w: 260px;
  --header-login-w: 96px;
}

/* 空间紧张时进一步压缩（由 JS 加 .nav-dense） */
.site-header.nav-dense {
  --nav-font-size: 13px;
  --nav-link-pad-x: 6px;
  --nav-gap: 0;
}

.site-header.nav-dense .brand-text small,
.site-header.nav-hide-search .search-desktop {
  display: none;
}

.site-header.nav-hide-search {
  --header-tools-w: auto;
  --header-search-w: 0px;
}

.site-header.nav-hide-search .header-tools {
  width: auto;
  min-width: 0;
  max-width: none;
}

/* 桌面顶栏菜单：字号/字重/内边距强制统一，禁止被 pages.css 或断点改掉 */
.site-header .nav .nav-link,
.site-header .nav .nav-parent {
  position: relative;
  box-sizing: border-box;
  padding: var(--nav-link-pad-y) var(--nav-link-pad-x) !important;
  font-size: var(--nav-font-size) !important;
  font-weight: var(--nav-font-weight) !important;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: color 0.2s;
  white-space: nowrap;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--font) !important;
  line-height: 1.2 !important;
  min-height: 0 !important;
}

.site-header .nav .nav-link:hover,
.site-header .nav .nav-parent:hover {
  color: var(--primary);
}

.site-header .nav .nav-link.active,
.site-header .nav .nav-item.has-sub.active > .nav-parent {
  color: var(--primary) !important;
  font-weight: var(--nav-font-weight) !important; /* 激活只用颜色+下划线，不加粗避免“变大” */
  font-size: var(--nav-font-size) !important;
}

.site-header .nav .nav-link.active::after,
.site-header .nav .nav-item.has-sub.active > .nav-parent::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 2px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-item {
  position: relative;
  flex-shrink: 0;
}

.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-item.has-sub > .nav-parent::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.55;
  order: 2;
  margin-left: 2px;
  position: static;
  background: none;
}

.nav-item.has-sub.active > .nav-parent::after {
  left: 10px;
  right: 18px;
}

.nav-sub {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 140px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 27, 51, 0.12);
  z-index: 130;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-sub[hidden] {
  display: none !important;
}

.nav-item.has-sub:hover > .nav-sub,
.nav-item.has-sub.open > .nav-sub {
  display: flex !important;
}

.nav-item.has-sub:hover > .nav-parent {
  color: var(--primary);
}

.nav-sub-link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.nav-sub-link:hover,
.nav-sub-link.active {
  background: var(--primary-softer);
  color: var(--primary);
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
  width: var(--header-tools-w);
  min-width: var(--header-tools-w);
  max-width: var(--header-tools-w);
  box-sizing: border-box;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  width: var(--header-search-w);
  min-width: var(--header-search-w);
  max-width: var(--header-search-w);
  padding: 0 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  flex-shrink: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.search-box:focus-within {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12);
  background: #fff;
}

.search-box input {
  width: 100%;
  min-width: 0;
  color: var(--text);
  font-size: 13px;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.header-cta {
  flex-shrink: 0;
  white-space: nowrap;
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-width: var(--header-login-w);
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff !important;
  background: var(--primary) !important;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 4px 12px rgba(47, 107, 255, 0.28);
  box-sizing: border-box;
  text-decoration: none !important;
}

.login-link:hover {
  color: #fff;
  background: #2557e6;
  box-shadow: 0 6px 16px rgba(47, 107, 255, 0.35);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ===== Hero（通栏背景图 + 左侧文案） ===== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(480px, 72vh, 640px);
  padding: 72px 0 80px;
  background: #F7F9FF;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  display: block;
  transform: scale(1.02);
}

/* 左侧可读性遮罩，右侧保留完整背景视觉 */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(247, 249, 255, 0.55) 0%,
      rgba(247, 249, 255, 0.92) 12%,
      rgba(247, 249, 255, 0.9) 38%,
      rgba(247, 249, 255, 0.45) 55%,
      rgba(247, 249, 255, 0.1) 72%,
      rgba(247, 249, 255, 0) 88%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, transparent 40%, rgba(255, 255, 255, 0.35) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: block;
  min-height: auto;
}

.hero-content {
  max-width: 520px;
  margin-left: clamp(12px, 7vw, 112px);
  animation: fadeInUp 0.7s ease-out both;
}

.hero-content h1 {
  font-size: clamp(36px, 4.2vw, 52px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Services ===== */
.services {
  padding: 72px 0 80px;
  background: var(--bg);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 14px;
}

.section-header h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.section-header h2::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--primary-soft);
  z-index: 1;
}

.section-header p {
  font-size: 15px;
  color: var(--text-muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px 18px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(47, 107, 255, 0.25);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 14px;
  min-height: 42px;
}

.service-card ul {
  flex: 1;
  margin-bottom: 18px;
}

.service-card li {
  position: relative;
  padding-left: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.9;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary-light);
}

.service-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  background: var(--primary-softer);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.service-link:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== Home insights ===== */
.home-insights {
  padding: 72px 0 80px;
  background: var(--bg);
}

.home-insights--alt {
  background: linear-gradient(180deg, #FAFBFF 0%, #F3F6FC 100%);
  border-top: 1px solid var(--border);
}

.home-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.home-insight-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.home-insight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(47, 107, 255, 0.22);
}

.home-insight-cover {
  display: block;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
}

.home-insight-cover .insight-cover {
  width: 100% !important;
  border-radius: 0;
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.home-insight-cover .insight-cover-img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center center;
}

.home-insight-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 20px;
  flex: 1;
}

.home-insight-body h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}

.home-insight-body h3 a {
  color: inherit;
}

.home-insight-body h3 a:hover {
  color: var(--primary);
}

.home-insight-body > p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.home-insight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.home-insight-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-softer);
  border-radius: 4px;
}

.section-more {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

/* ===== Stats ===== */
.stats {
  background: linear-gradient(180deg, #FAFBFF 0%, #F3F6FC 100%);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 160px;
  justify-content: center;
}

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  flex-shrink: 0;
}

.stat-item strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.stat-item span:last-child {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== Responsive ===== */
.nav-mobile-actions {
  display: none;
}

@media (max-width: 1360px) {
  .brand-text small {
    display: none;
  }
}

/*
 * 抽屉导航：
 * - .is-drawer 由 layout.js 按视口/语言/实际溢出切换（英文长菜单优先）
 * - max-width:1100px 作为无 JS / 首屏回退
 */
.site-header.is-drawer .nav {
  display: none;
}

.site-header.is-drawer .search-desktop,
.site-header.is-drawer .login-desktop {
  display: none;
}

.site-header.is-drawer .header-tools {
  margin-left: auto;
  width: auto;
  min-width: 0;
  max-width: none;
}

.site-header.is-drawer .menu-toggle {
  display: flex;
}

.site-header.is-drawer.menu-open .nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: #fff;
  padding: 12px 24px 20px;
  gap: 4px;
  z-index: 30;
  overflow: visible;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  flex: none;
}

.site-header.is-drawer.menu-open .nav .nav-link,
.site-header.is-drawer.menu-open .nav .nav-parent {
  padding: 12px 16px !important;
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  font-size: var(--nav-font-size) !important;
}

.site-header.is-drawer.menu-open .nav-link.active::after,
.site-header.is-drawer.menu-open .nav-item.has-sub.active > .nav-parent::after {
  display: none;
}

.site-header.is-drawer.menu-open .nav-item {
  width: 100%;
}

.site-header.is-drawer.menu-open .nav-sub {
  position: static;
  transform: none;
  left: auto;
  top: auto;
  min-width: 0;
  width: 100%;
  margin: 0 0 4px;
  padding: 4px 0 4px 12px;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.site-header.is-drawer.menu-open .nav-item.has-sub:not(.open) > .nav-sub {
  display: none !important;
}

.site-header.is-drawer.menu-open .nav-sub-link {
  padding: 10px 16px;
}

.site-header.is-drawer.menu-open .nav-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.site-header.is-drawer.menu-open .nav-mobile-actions .search-box {
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: none;
}

.site-header.is-drawer.menu-open .nav-mobile-actions .header-cta,
.site-header.is-drawer.menu-open .nav-mobile-actions .login-link {
  display: flex;
  width: 100%;
  justify-content: center;
}

.site-header.is-drawer.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-drawer.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-drawer.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1100px) {
  .site-header:not(.is-drawer) .nav {
    display: none;
  }

  .site-header:not(.is-drawer) .search-desktop,
  .site-header:not(.is-drawer) .login-desktop {
    display: none;
  }

  .site-header:not(.is-drawer) .header-tools {
    margin-left: auto;
    width: auto;
    min-width: 0;
    max-width: none;
  }

  .site-header:not(.is-drawer) .menu-toggle {
    display: flex;
  }

  .site-header:not(.is-drawer).menu-open .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 24px 20px;
    gap: 4px;
    z-index: 30;
    overflow: visible;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    flex: none;
  }

  .site-header:not(.is-drawer).menu-open .nav .nav-link,
  .site-header:not(.is-drawer).menu-open .nav .nav-parent {
    padding: 12px 16px !important;
    width: 100%;
    text-align: left;
    justify-content: flex-start;
  }

  .site-header:not(.is-drawer).menu-open .nav-link.active::after,
  .site-header:not(.is-drawer).menu-open .nav-item.has-sub.active > .nav-parent::after {
    display: none;
  }

  .site-header:not(.is-drawer).menu-open .nav-item {
    width: 100%;
  }

  .site-header:not(.is-drawer).menu-open .nav-sub {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    min-width: 0;
    width: 100%;
    margin: 0 0 4px;
    padding: 4px 0 4px 12px;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .site-header:not(.is-drawer).menu-open .nav-item.has-sub:not(.open) > .nav-sub {
    display: none !important;
  }

  .site-header:not(.is-drawer).menu-open .nav-sub-link {
    padding: 10px 16px;
  }

  .site-header:not(.is-drawer).menu-open .nav-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }

  .site-header:not(.is-drawer).menu-open .nav-mobile-actions .search-box {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .site-header:not(.is-drawer).menu-open .nav-mobile-actions .header-cta,
  .site-header:not(.is-drawer).menu-open .nav-mobile-actions .login-link {
    display: flex;
    width: 100%;
    justify-content: center;
  }

  .site-header:not(.is-drawer).menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header:not(.is-drawer).menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header:not(.is-drawer).menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .service-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .hero {
    min-height: 460px;
    padding: 56px 0 64px;
  }

  .hero-bg-img {
    object-position: 80% center;
  }

  .hero-content h1 {
    font-size: 36px;
  }
}

@media (max-width: 900px) {
  .header-cta-desktop,
  .login-desktop {
    display: none;
  }

  .hero {
    min-height: 520px;
    padding: 48px 0 56px;
    align-items: flex-end;
  }

  .hero-bg-img {
    object-position: center 30%;
  }

  .hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(247, 249, 255, 0.2) 0%,
        rgba(247, 249, 255, 0.72) 42%,
        rgba(247, 249, 255, 0.96) 68%,
        rgba(255, 255, 255, 0.98) 100%
      );
  }

  .hero-inner {
    width: 100%;
  }

  .hero-content {
    max-width: none;
    margin-left: 0;
  }

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

  .home-insight-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-inner {
    justify-content: flex-start;
  }

  .stat-item {
    flex: 0 0 calc(50% - 8px);
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .header-inner {
    padding-inline: 16px;
  }

  .hero {
    min-height: 480px;
    padding: 40px 0 48px;
  }

  .hero-content h1 {
    font-size: 30px;
  }

  .hero-features li {
    font-size: 14px;
  }

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

  .home-insight-grid {
    grid-template-columns: 1fr;
  }

  .service-card h3 {
    min-height: auto;
  }

  .services {
    padding: 48px 0 56px;
  }

  .home-insights {
    padding: 48px 0 56px;
  }

  .stat-item {
    flex: 0 0 100%;
  }

  .brand-text small {
    display: none;
  }
}
