:root {
  --inco-red: #cc1325;
  --ink: #161616;
  --muted: #5f6368;
  --soft-gray: #f3f3f4;
  --deep-green: #163d3f;
}

.site-header {
  background: #fff;
}

.header-top {
  padding: 18px 48px 14px;
}

.header-top-inner {
  /* 单行自适应布局：logo + 主导航 + 搜索/语言（与 assets.html 内联关键样式保持一致） */
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(16px, 2.2vw, 36px);
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 36px;
  width: auto;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin-left: 10px;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  text-decoration: none;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #222;
  border-radius: 1px;
}

.menu-toggle:hover {
  text-decoration: none;
}

.header-nav {
  padding: 0 48px;
}

.header-nav-inner {
  max-width: 960px;
  margin: 0 auto;
}

.main-nav {
  /* 紧跟 logo 右侧单行排布：间距随屏宽平滑变化，既不折行也不会因大屏居中而间距过大 */
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: clamp(14px, 1.6vw, 28px);
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
}

.main-nav > li {
  flex: 0 0 auto;
}

.main-nav > li > a {
  display: block;
  padding: 8px 0;
  color: #171717;
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: normal;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0em;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav > li.uk-active > a,
.main-nav > li > a:hover {
  color: var(--inco-red);
  font-weight: 600;
}

/* ========== 一级菜单 has-submenu 箭头 ========== */
.main-nav > li.has-submenu > a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  vertical-align: middle;
  opacity: .7;
}
.main-nav > li.has-submenu:hover > a::after { opacity: 1; }

/* ========== 下拉面板容器 ========== */
.cms-menu-dropdown.uk-navbar-dropdown {
  padding: 6px 0 !important;
  min-width: 180px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(15, 23, 42, .08) !important;
  box-shadow: 0 12px 36px rgba(2, 6, 23, .12), 0 2px 8px rgba(2, 6, 23, .06) !important;
}
.cms-menu-dropdown.uk-drop {
  animation: submenuFadeIn .18s ease;
}
@keyframes submenuFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========== 下拉面板内所有 a 标签 ========== */
.cms-menu-dropdown.uk-navbar-dropdown a {
  display: block !important;
  color: #333 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  padding: 9px 18px !important;
  margin: 0 !important;
  border-radius: 4px !important;
  transition: color .15s ease, background-color .15s ease !important;
}

/* 一级子项（直接在 uk-navbar-dropdown-nav 下） */
.cms-menu-dropdown.uk-navbar-dropdown .uk-navbar-dropdown-nav > li > a {
  padding-left: 18px !important;
}

/* 二级子项（uk-nav-sub 下）字号小一点 + 缩进 */
.cms-menu-dropdown.uk-navbar-dropdown .uk-nav-sub > li > a {
  font-size: 14px !important;
  padding-left: 30px !important;
}

/* ========== hover / active 统一变红 ========== */
.cms-menu-dropdown.uk-navbar-dropdown a:hover {
  color: var(--inco-red) !important;
  background: #f8f8f8 !important;
}
.cms-menu-dropdown.uk-navbar-dropdown li.uk-active > a {
  color: var(--inco-red) !important;
  font-weight: 600 !important;
  background: #fdf0f1 !important;
}

/* ========== 二级子菜单 uk-nav-sub 缩进 ========== */
.cms-menu-dropdown.uk-navbar-dropdown .uk-nav-sub {
  margin: 2px 0 2px 0 !important;
}

.site-search {
  display: flex;
  align-items: center;
  width: clamp(120px, 10vw, 176px);
  min-width: 96px;
  flex: 0 1 auto;
  height: 34px;
  background: #e5e5e5;
  border-radius: 17px;
  padding: 0 8px 0 15px;
}

.site-search input {
  min-width: 0;
  width: 100%;
  height: 30px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #444;
  font-size: 13px;
}

.site-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.search-icon {
  display: block;
  width: 16px;
  height: 16px;
}

.header-actions {
  /* 空间不足时优先压缩搜索框，避免菜单被挤压折行 */
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  gap: clamp(8px, 1vw, 14px);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 1px solid #d4d4d4;
  border-radius: 7px;
  background: #fff;
}

.language-switch a {
  min-width: 44px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #222;
  font-size: 13px;
  text-decoration: none;
  border-radius: 5px;
}

.language-switch a.is-active {
  background: #d7d7d7;
}

.mobile-menu-bar {
  background: #fff;
  color: #222;
}

.mobile-menu-bar a,
.mobile-menu-bar .uk-nav-default > li > a {
  color: #222 !important;
}

.mobile-menu-bar .uk-nav-default > li.uk-active > a {
  color: var(--inco-red) !important;
}

.mobile-menu-bar .uk-offcanvas-close {
  color: #222;
}

.mobile-language-switch {
  display: flex;
  align-items: center;
  margin-top: 16px;
  padding: 2px;
  border: 1px solid #d4d4d4;
  border-radius: 7px;
  background: #fff;
}

.mobile-language-switch a {
  flex: 1;
  min-width: 0;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #222;
  font-size: 13px;
  text-decoration: none;
  border-radius: 5px;
}

.mobile-language-switch a.is-active {
  background: #d7d7d7;
}

.mobile-brand {
  margin-bottom: 28px;
}

.mobile-search {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mobile-search input {
  flex: 1;
  height: 38px;
  border: 1px solid #ddd;
  border-radius: 19px;
  padding: 0 42px 0 16px;
  outline: 0;
}

.mobile-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  margin-left: -38px;
}

.mobile-nav {
  margin-top: 24px;
}

.mobile-nav > li > a {
  color: #222;
  font-size: 16px;
  padding: 11px 0;
}

.mobile-nav > li.uk-active > a {
  color: var(--inco-red);
}

/* === Sticky Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
}

@media (max-width: 959px) {
  .site-header {
    position: static;
  }
}

@media (min-width: 960px) {
  /* 单行布局：滚动吸顶仅加阴影，不再切换行/克隆菜单 */
  .site-header.sticky {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.3s ease;
  }
}

/* === Header Responsive === */
@media (max-width: 960px) {
  .header-top {
    padding: 14px 24px;
  }

  .header-nav {
    padding: 0 24px;
  }
}

@media (max-width: 640px) {
  .header-top {
    padding: 12px 16px;
  }

  .header-nav {
    padding: 0 16px;
  }

  .header-actions .site-search,
  .header-actions .language-switch {
    display: none;
  }
}
.site-footer {
  display: flex;
  min-height: 82px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #313131;
  color: rgba(255,255,255,.82);
  font-size: 16px;
  font-weight: normal;
  line-height: normal;
  text-align: center;
}

.site-footer p {
  margin: 3px 0;
}