/* 导航新增「思维导图 / 拍卖行」后，按宽度收紧项间距，保证 992px 以上始终单行 */
@media only screen and (min-width: 1601px) {
  .header2 .main-menu ul li { margin: 0 8px; }
}
@media only screen and (min-width: 1400px) and (max-width: 1600px) {
  .header2 .main-menu ul li { margin: 0 4px; }
  .header2 .main-menu ul li a { font-size: 13px; }
}
@media only screen and (min-width: 1200px) and (max-width: 1399px) {
  .header2 .main-menu ul li { margin: 0 3px; }
  .header2 .main-menu ul li a { font-size: 12.5px; }
}
@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .header2 .main-menu ul li { margin: 0 2px; }
  .header2 .main-menu ul li a { font-size: 12px; }
}
/* 桌面端隐藏「更多页面」，为「站内聊天」腾出单行位置；移动端保留 */
@media only screen and (min-width: 992px) {
  .header2 .main-menu nav ul > li.is-more-nav { display: none !important; }
}

/* 导航新增「兼职项目」后，第 10 项在 992px 以上继续压紧，确保始终单行 */
@media only screen and (min-width: 1601px) {
  .header2 .main-menu ul li { margin: 0 5px; }
}
@media only screen and (min-width: 1400px) and (max-width: 1600px) {
  .header2 .main-menu ul li { margin: 0 2px; }
  .header2 .main-menu ul li a { font-size: 12.5px; }
}
@media only screen and (min-width: 1200px) and (max-width: 1399px) {
  .header2 .main-menu ul li { margin: 0 1px; }
  .header2 .main-menu ul li a { font-size: 12px; }
}
@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .header2 .main-menu ul li { margin: 0; }
  .header2 .main-menu ul li a { font-size: 11.5px; }
}

/* 头部导航：统一玻璃质感 + 当前页指示 + 悬停下划线 */
.header2.du-sticky-header {
  background: linear-gradient(180deg, rgba(248, 253, 251, .94), rgba(248, 253, 251, .8));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(31, 157, 144, .12);
  box-shadow: 0 8px 28px rgba(12, 100, 92, .055);
}
@media only screen and (min-width: 992px) {
  .header2 .main-menu nav > ul > li > a {
    position: relative;
    color: #244741;
    letter-spacing: .2px;
  }
  .header2 .main-menu nav > ul > li > a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 20px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #0c645c, #4fc3ad);
    transform: translateX(-50%);
    transition: width .22s ease;
  }
  .header2 .main-menu nav > ul > li > a:hover::after { width: calc(100% - 4px); }
  .header2 .main-menu nav > ul > li.is-current > a { color: #0c645c; font-weight: 600; }
  .header2 .main-menu nav > ul > li.is-current > a::after { width: calc(100% - 4px); }
}
@media only screen and (max-width: 991px) {
  .header2 .main-menu ul > li.is-current > a { color: #0c645c; font-weight: 600; }
}

/* 平板宽度（768–991）：桌面导航隐藏，启用左侧抽屉按钮 */
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .pd-menu-btn {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #d6eae4;
    border-radius: 50%;
    background: #fff;
    color: #0f766e;
    font-size: 15px;
    z-index: 6;
    box-shadow: 0 6px 16px rgba(12, 100, 92, .08);
  }
}

/* ===== 全站头部统一（对齐首页 plan-header）：容器/行高/列间距 + 圆形标志（导航与金色下划线由 theme-g.css 统一） ===== */
.header-logo .hm-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.header-logo .hm-mark {
  width: 38px; height: 38px; border-radius: 50%; background: #0C645C;
  display: grid; place-items: center; flex: none; overflow: hidden;
  box-shadow: 0 6px 16px -8px rgba(12,100,92,.6);
}
.header-logo .hm-mark svg { width: 22px; height: 22px; display: block; }
.header-logo .hm-word b { display: block; font-size: 20px; letter-spacing: 1px; line-height: 1; color: #0B332E; font-weight: 700; }
.header-logo .hm-word i { display: block; font-style: normal; font-size: 8px; letter-spacing: 3px; color: #7D958F; margin-top: 3px; line-height: 1; }

@media only screen and (min-width: 992px) {
  .header2.du-sticky-header { border-bottom: 0 !important; box-shadow: none !important; }
  .header2.du-sticky-header .container {
    width: min(1180px, calc(100% - 64px)) !important; max-width: none !important;
    padding-left: 0 !important; padding-right: 0 !important;
  }
  .header2.du-sticky-header .row { height: 86px !important; margin: 0 !important; }
  .header2.du-sticky-header .row > [class*="col"] { padding-left: 0 !important; padding-right: 0 !important; }
}
@media only screen and (max-width: 991px) {
  .header2.du-sticky-header { border-bottom: 0 !important; box-shadow: none !important; }
  .header2.du-sticky-header .row { height: 64px !important; margin: 0 !important; }
  .header-logo .hm-logo { gap: 8px; }
  .header-logo .hm-mark { width: 32px; height: 32px; }
  .header-logo .hm-mark svg { width: 19px; height: 19px; }
  .header-logo .hm-word b { font-size: 17px; letter-spacing: .5px; }
  .header-logo .hm-word i { font-size: 7px; letter-spacing: 2.5px; margin-top: 2px; }
}

/* 导航项间距/内距与首页 site-nav 对齐（gap 22px、上下 8px） */
@media only screen and (min-width: 992px) {
  header .main-menu nav > ul { display: flex !important; align-items: center; gap: 22px !important; padding: 0 !important; margin: 0 !important; }
  header .main-menu nav > ul > li { margin: 0 !important; padding: 0 !important; }
  header .main-menu nav > ul > li > a { padding: 8px 0 !important; }
  header .main-menu nav > ul > li.menu-item-has-children > a { padding-right: 13px !important; }
}

/* 首页同源页（plan-header）与旧模板页：导航居中、字号 13.5、金色当前页线 */
@media only screen and (min-width: 992px) {
  header.plan-header .site-nav { margin: 0 auto !important; display: flex !important; justify-content: center !important; }
  header.plan-header .site-nav > ul { margin: 0 auto !important; justify-content: center !important; }
  header.plan-header .main-menu nav > ul {
    display: flex !important; align-items: center !important; justify-content: center !important;
    gap: 22px !important; margin: 0 !important; padding: 0 !important;
  }
  header.plan-header .main-menu nav > ul > li { margin: 0 !important; padding: 0 !important; position: relative; }
  header.plan-header .main-menu nav > ul > li > a {
    font-size: 13.5px !important; line-height: 1 !important; padding: 8px 0 !important;
    color: #284A44 !important; font-weight: 400 !important;
  }
  header.plan-header .main-menu nav > ul > li.is-current > a { color: #0C645C !important; font-weight: 600 !important; }
  header.plan-header .main-menu nav > ul > li.is-current > a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    border-radius: 2px; background: #F5B95F;
  }
  header.plan-header .main-menu nav > ul > li.menu-item-has-children > a::before {
    content: ""; position: absolute; right: 2px; top: calc(50% - 3px); width: 5px; height: 5px;
    border-right: 1.5px solid #8AA39E; border-bottom: 1.5px solid #8AA39E; transform: rotate(45deg);
  }
  header.plan-header .main-menu nav > ul > li.menu-item-has-children > a { padding-right: 13px !important; }
}

/* 旧模板页 home-h/i/j（header2 + plan-header + #mobile-menu）：导航字号/间距/金色线对齐首页 */
@media only screen and (min-width: 992px) {
  header.header2.plan-header #mobile-menu > ul { gap: 22px !important; justify-content: center !important; margin: 0 auto !important; }
  header.header2.plan-header #mobile-menu > ul > li { margin: 0 !important; }
  header.header2.plan-header #mobile-menu > ul > li > a {
    font-size: 13.5px !important; line-height: 1 !important; padding: 8px 0 !important;
    color: #284A44 !important; font-weight: 400 !important; letter-spacing: 0 !important;
  }
  header.header2.plan-header #mobile-menu > ul > li.is-current > a { color: #0C645C !important; font-weight: 600 !important; }
  header.header2.plan-header #mobile-menu > ul > li.menu-item-has-children > a { padding-right: 13px !important; }
  header.header2.plan-header #mobile-menu > ul > li.menu-item-has-children > a::before {
    content: "" !important; position: absolute !important; right: 2px !important; top: calc(50% - 3px) !important;
    width: 5px !important; height: 5px !important; border-right: 1.5px solid #8AA39E !important;
    border-bottom: 1.5px solid #8AA39E !important; transform: rotate(45deg) !important;
  }
  header.header2.plan-header #mobile-menu > ul > li > a::after {
    content: "" !important; position: absolute !important; top: auto !important; bottom: 0 !important;
    left: 0 !important; right: 0 !important; width: auto !important; height: 2px !important;
    border-radius: 2px !important; background: #F5B95F !important; transform: scaleX(0) !important;
    transform-origin: center !important; transition: transform .18s !important;
  }
  header.header2.plan-header #mobile-menu > ul > li.is-current > a::after,
  header.header2.plan-header #mobile-menu > ul > li:hover > a::after { transform: scaleX(1) !important; }
}

/* 旧模板页导航整体居中（对齐首页 site-nav 的页面中心） */
@media only screen and (min-width: 992px) {
  header.header2.plan-header .header-main-right.ml-60 { margin-left: 0 !important; position: static !important; }
  header.header2.plan-header .main-menu.mr-30 {
    position: absolute !important; left: 50% !important; top: 50% !important;
    transform: translate(-50%, -50%) !important; margin: 0 !important; z-index: 3;
  }
}

/* ===== 全站内页页头统一：浅绿面 + 30px 网格 + 双光斑（对齐首页顶部观感，去掉白玻璃） ===== */
body.site-page > header.header2,
body.site-page > header.plan-header{
  background-color:#E7F4EF !important;
  background-image:
    radial-gradient(1000px 430px at 2% -16%, rgba(79,195,173,.36), rgba(79,195,173,0) 70%),
    radial-gradient(820px 400px at 54% -30%, rgba(79,195,173,.12), rgba(79,195,173,0) 66%),
    radial-gradient(760px 420px at 99% -16%, rgba(245,185,95,.05), rgba(245,185,95,0) 66%),
    linear-gradient(rgba(12,100,92,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12,100,92,.045) 1px, transparent 1px) !important;
  background-size:auto, auto, auto, 30px 30px, 30px 30px !important;
  background-position:center top, center top, center top, 0 0, 0 0 !important;
  background-repeat:no-repeat, no-repeat, no-repeat, repeat, repeat !important;
  border-bottom:1px solid rgba(12,100,92,.07) !important;
  box-shadow:none !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
}
