.layout-include {
  display: contents;
}

.site-header .nav-main > li.layout-nav-map,
.site-header .ix-nav-panel-inner li.layout-nav-map {
  display: none;
}

.layout-include[data-show-page-map] .site-header .nav-main > li.layout-nav-map,
.layout-include[data-show-page-map]
  .site-header
  .ix-nav-panel-inner
  li.layout-nav-map {
  display: list-item;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.site-header-inner {
  width: calc(100% - var(--container-gutter));
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 16px;
}

body.index-home {
  --ix-header-inline: 28px;
}

@media (max-width: 1440px) {
  body.index-home {
    --ix-header-inline: 26px;
  }
}

@media (max-width: 1024px) {
  body.index-home {
    --ix-header-inline: 22px;
  }
}

@media (max-width: 768px) {
  body.index-home {
    --ix-header-inline: 18px;
  }
}

@media (max-width: 480px) {
  body.index-home {
    --ix-header-inline: 14px;
  }
}

@media (max-width: 375px) {
  body.index-home {
    --ix-header-inline: 12px;
  }
}

body.index-home .site-header-inner {
  padding-inline: var(--ix-header-inline);
}

.site-header-inner > nav[aria-label="Primary"] {
  flex: 1 1 auto;
  min-width: 0;
  /* overflow-x:auto 会把 overflow-y 算成 auto，裁切掉 .nav-dropdown-list（absolute 下垂菜单） */
  overflow: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.site-header-inner > nav[aria-label="Primary"]::-webkit-scrollbar {
  display: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-navy);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.06em;
  width: 102px;
  flex-shrink: 0;
}

.logo img {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-main {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 60px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-main li {
  flex-shrink: 0;
}

.nav-main a {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #3a4451;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition:
    color 0.2s,
    border-color 0.2s;
  white-space: nowrap;
}

.nav-main a:hover,
.nav-main a:focus-visible {
  color: var(--color-primary);
  outline: none;
}

.nav-main a.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.nav-main li.nav-dropdown {
  position: relative;
}

.nav-main .nav-dropdown-trigger {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  padding: 8px 0;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #3a4451;
  white-space: nowrap;
  transition:
    color 0.2s,
    border-color 0.2s;
  line-height: 1.2;
}

.nav-main .nav-dropdown-label {
  flex-shrink: 0;
}

.nav-main .nav-dropdown-trigger:hover {
  color: var(--color-primary);
}

.nav-main .nav-dropdown-trigger:focus-visible {
  color: var(--color-primary);
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.nav-main .nav-dropdown-trigger.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.nav-dropdown-chevron {
  display: block;
  width: 17px;
  height: 11px;
  object-fit: contain;
  transition: transform 0.2s ease;
  transform-origin: center;
}

.nav-dropdown.is-open .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  min-width: 240px;
  width: max-content;
  max-width: min(320px, calc(100vw - 48px));
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(0, 21, 41, 0.12);
  z-index: 220;
}

.nav-dropdown-list a {
  display: block;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #3a4451;
  border-bottom: none;
  transition:
    background 0.15s,
    color 0.15s;
  white-space: nowrap;
}

.nav-dropdown-list a:hover,
.nav-dropdown-list a:focus-visible {
  background: var(--color-soft);
  color: var(--color-primary);
  outline: none;
}

.nav-dropdown-list li:last-child a {
  padding-bottom: 12px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-shrink: 0;
}

.btn-nav-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 168px;
  height: 53px;
  gap: 8px;
  background: var(--color-navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  transition: background 0.2s;
}

.btn-nav-contact:hover {
  background: #002140;
}

.lang-dropdown {
  position: relative;
  z-index: 210;
}

.lang-dropdown-trigger.lang-pill {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  width: 115px;
  height: 53px;
  padding: 0 14px;
  font-size: 18px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.06em;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: #fff;
  cursor: pointer;
  line-height: 1.15;
}

.lang-dropdown-trigger.lang-pill:hover {
  border-color: var(--color-primary);
}

.lang-dropdown-trigger.lang-pill:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.lang-pill-text {
  flex-shrink: 1;
  min-width: 0;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-pill-chevron {
  width: 17px;
  height: 11px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  transition: transform 0.2s ease;
  transform-origin: center;
}

.lang-dropdown.is-open .lang-pill-chevron {
  transform: rotate(180deg);
}

.lang-dropdown-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  min-width: 100%;
  width: max-content;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(0, 21, 41, 0.12);
}

.lang-dropdown-opt {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 15px 30px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
}

.lang-dropdown-opt:hover {
  background: var(--color-soft);
}

.lang-dropdown-opt.lang-dropdown-opt--selected,
.lang-dropdown-opt[aria-selected="true"] {
  color: var(--color-primary);
  background: rgba(0, 140, 255, 0.06);
}

.btn-search-round {
  width: 53px;
  height: 53px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
  transition:
    border-color 0.2s,
    color 0.2s;
}

.btn-search-round svg {
  width: 18px;
  height: 18px;
}

.btn-search-round:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.site-header .ix-nav-drawer {
  display: none;
}

.site-header .ix-nav-drawer > summary {
  list-style: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  flex-shrink: 0;
}

.site-header .ix-nav-drawer > summary::-webkit-details-marker {
  display: none;
}

.site-header .ix-burger-lines {
  display: block;
  width: 20px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 6px / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 12px / 100% 2px no-repeat;
  color: var(--color-navy);
}

.site-header .ix-nav-panel {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(0, 21, 41, 0.45);
  z-index: 250;
  padding: 12px;
  box-sizing: border-box;
}

.site-header .ix-nav-panel-inner {
  max-width: 320px;
  margin-left: auto;
  background: #fff;
  border-radius: 12px;
  padding: 12px 8px;
  box-shadow: 0 12px 40px rgba(0, 21, 41, 0.18);
  max-height: calc(100vh - var(--header-h) - 24px);
  overflow: auto;
}

.site-header .ix-nav-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header .ix-nav-panel a {
  display: block;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #3a4451;
  border-bottom: 1px solid var(--color-border);
}

.site-header .ix-nav-panel .nav-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  margin: 0;
  border: none;
  border-bottom: 1px solid var(--color-border);
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #3a4451;
  text-align: left;
  line-height: 1.2;
}

.site-header .ix-nav-panel .nav-dropdown-label {
  flex: 1;
  min-width: 0;
}

.site-header .ix-nav-panel .nav-dropdown-trigger.active {
  color: var(--color-primary);
}

.site-header .ix-nav-panel .nav-dropdown-trigger:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.site-header .ix-nav-panel .nav-dropdown-list {
  position: static;
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0 0 4px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  z-index: auto;
}

.site-header .ix-nav-panel .nav-dropdown-list a {
  padding: 10px 16px 10px 28px;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid rgba(232, 236, 240, 0.85);
}

.site-header .ix-nav-panel .nav-dropdown-list li:last-child a {
  border-bottom: none;
}

.site-header .ix-nav-panel a.active {
  color: var(--color-primary);
}

.site-header .ix-nav-panel li:not(.nav-dropdown):last-child > a {
  border-bottom: none;
}

.ix-nav-panel-actions {
  display: none;
}

.site-header .ix-nav-panel-actions .btn-nav-contact {
  width: 100%;
  max-width: none;
  justify-content: center;
}

.site-header .ix-nav-panel-actions .lang-dropdown-trigger.lang-pill {
  width: 100%;
  max-width: none;
}

.site-header .ix-nav-panel-actions .btn-search-round {
  align-self: center;
}

@media (max-width: 768px) {
  .site-header .header-actions {
    display: none;
    margin-left: 0;
  }

  .site-header .ix-nav-drawer {
    margin-left: auto;
  }

  .ix-nav-panel-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 12px 12px;
    margin-top: 4px;
    border-top: 1px solid var(--color-border);
  }

  .site-header .ix-nav-panel-actions .btn-nav-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--color-navy);
    border: 1px solid var(--color-border);
  }

  .site-header .ix-nav-panel-actions .btn-nav-contact:hover {
    background: var(--color-soft);
    border-color: var(--color-primary);
    color: var(--color-primary);
  }

  .site-header .ix-nav-panel-actions .btn-search-round {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin-inline: auto;
    margin-block: 0;
    padding: 0;
    flex: 0 0 auto;
    box-sizing: border-box;
  }
}

@media (max-width: 1440px) {
  .nav-main {
    gap: 54px;
  }
}

@media (max-width: 1280px) {
  .logo {
    gap: 8px;
    font-size: 16px;
    width: 96px;
  }

  .logo-mark {
    width: 32px;
    height: 32px;
  }

  .header-actions {
    gap: 18px;
  }

  .btn-nav-contact {
    width: 152px;
    height: 48px;
    padding: 9px 16px;
    font-size: 15px;
  }

  .lang-dropdown-trigger.lang-pill {
    width: 108px;
    height: 48px;
    font-size: 16px;
  }

  .btn-search-round {
    width: 48px;
    height: 48px;
  }

  .btn-search-round svg {
    width: 16px;
    height: 16px;
  }

  .nav-main {
    gap: 40px;
  }

  .nav-main a {
    font-size: 15px;
  }
}

@media (max-width: 1024px) {
  .nav-main {
    display: none;
  }

  .site-header-inner {
    gap: 10px;
  }

  .site-header-inner > nav[aria-label="Primary"] {
    display: none;
  }

  .site-header .header-actions {
    margin-left: auto;
  }

  .site-header .ix-nav-drawer {
    display: block;
    flex-shrink: 0;
  }

  .nav-main a {
    font-size: 14px;
  }

  .logo {
    font-size: 15px;
    width: 90px;
  }

  .logo-mark {
    width: 30px;
    height: 30px;
  }

  .header-actions {
    gap: 14px;
  }

  .btn-nav-contact {
    width: 138px;
    height: 44px;
    padding: 8px 14px;
    font-size: 13px;
  }

  .lang-dropdown-trigger.lang-pill {
    width: 100px;
    height: 44px;
    padding: 0 10px;
    font-size: 14px;
  }

  .lang-dropdown-opt {
    font-size: 16px;
  }

  .btn-search-round {
    width: 42px;
    height: 42px;
  }

  .btn-search-round svg {
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 768px) {
  .site-header-inner {
    padding-inline: 16px;
    gap: 8px;
  }

  .logo {
    gap: 6px;
    font-size: 14px;
    width: 82px;
  }

  .logo-mark {
    width: 26px;
    height: 26px;
  }

  .nav-main {
    gap: 28px;
  }

  .nav-main a {
    font-size: 13px;
  }

  .header-actions {
    gap: 10px;
  }

  .btn-nav-contact {
    width: 122px;
    height: 40px;
    gap: 6px;
    padding: 7px 12px;
    font-size: 11px;
  }

  .lang-dropdown-trigger.lang-pill {
    width: 88px;
    height: 40px;
    padding: 0 8px;
    font-size: 12px;
  }

  .lang-dropdown-opt {
    font-size: 14px;
  }

  .btn-search-round {
    width: 36px;
    height: 36px;
  }

  .btn-search-round svg {
    width: 14px;
    height: 14px;
  }

  .site-header .ix-nav-drawer > summary {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .logo {
    gap: 4px;
    font-size: 13px;
    width: 72px;
  }

  .logo-mark {
    width: 22px;
    height: 22px;
  }

  .nav-main {
    gap: 12px;
  }

  .nav-main a {
    font-size: 11px;
  }

  .header-actions {
    gap: 8px;
  }

  .btn-nav-contact {
    width: 108px;
    height: 36px;
    gap: 4px;
    padding: 6px 10px;
    font-size: 10px;
  }

  .lang-dropdown-trigger.lang-pill {
    width: 76px;
    height: 36px;
    padding: 0 6px;
    font-size: 11px;
  }

  .lang-dropdown-opt {
    font-size: 12px;
  }

  .btn-search-round {
    width: 32px;
    height: 32px;
  }

  .btn-search-round svg {
    width: 13px;
    height: 13px;
  }

  .site-header .ix-nav-drawer > summary {
    width: 38px;
    height: 38px;
  }
}

/* 新增：下拉容器弹性布局 文字链接 + 箭头按钮并排 */
.nav-main li.nav-dropdown {
    display: flex;
    align-items: center;
    gap: 6px;
}
/* 一级菜单文字链接样式，继承原有a标签样式 */
.nav-dropdown-label-link {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #3a4451;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
    text-decoration: none;
}
.nav-dropdown-label-link:hover,
.nav-dropdown-label-link:focus-visible {
    color: var(--color-primary);
    outline: none;
}
.nav-dropdown-label-link.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}
/* 纯箭头按钮，仅控制展开收起，去掉原有button多余样式 */
.nav-dropdown-chevron-btn {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: none;
    padding: 8px 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}
/* 移动端抽屉下拉适配 */
.site-header .ix-nav-panel .nav-dropdown {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.site-header .ix-nav-panel .nav-dropdown-label-link {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #3a4451;
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
    flex: 1;
}
.site-header .ix-nav-panel .nav-dropdown-chevron-btn {
    padding: 14px 16px 14px 0;
    border-bottom: 1px solid var(--color-border);
}
