/* 手机与平板。桌面布局保持不变，≤900px 使用抽屉导航。 */
.menu-toggle { display: none; }

/* 菜单和公告合成一条固定栏，页面下拉时留在顶部。 */
.site-head {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 80, 120, 0.08);
}

.site-head .topnav {
  position: relative;
  top: auto;
  z-index: 2;
  box-shadow: none;
}

.site-head .ticker {
  position: relative;
  z-index: 1;
}

/* 电脑端：页内目录改成左侧竖向卡片，固定在公告栏下方，不跟着正文横铺。 */
.section-nav {
  position: fixed;
  left: 20px;
  top: calc(var(--site-head, 100px) + 16px);
  z-index: 100;
  width: auto;
  min-width: 148px;
  margin: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: stretch;
  gap: 4px;
  padding: 16px 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  border: 1px solid #E0F0F7;
  box-shadow: 0 2px 12px rgba(0, 80, 120, 0.08);
}

.section-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.section-nav a .nav-num {
  color: #049CCB;
  margin-right: 0;
}

.svc-card {
  display: flex;
  flex-direction: column;
}

.svc-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.svc-more {
  margin-top: auto;
  padding-top: 16px;
  align-self: flex-end;
  color: #049CCB;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.svc-more:hover {
  color: #035A78;
}

.svc,
.extended-advisory,
.about-section {
  scroll-margin-top: 116px;
}

/* 公司简介正文与上方大图同宽，不再收成中间一条。 */
.about-section .intro {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* 有左侧目录时，正文贴着目录向两边展开，和页头大图左右对齐。 */
@media (min-width: 901px) {
  body:has(.section-nav) .container {
    margin-left: 184px;
    margin-right: 32px;
    max-width: none;
    width: auto;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #035A78;
    font-size: 26px;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    flex-shrink: 0;
  }

  .topnav {
    position: sticky;
    height: 56px;
    padding: 0 12px;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .topnav > a {
    min-width: 0;
    flex: 1;
  }

  .topnav > a img {
    height: 36px !important;
  }

  .logo-license {
    min-width: 0;
    padding-left: 8px;
  }

  .logo-license .l1,
  .logo-license .l2 {
    white-space: normal;
  }

  .logo-license .l1 {
    display: none;
  }

  .topnav .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    z-index: 1500;
    box-shadow: 0 8px 24px rgba(0, 80, 120, 0.15);
    border-top: 1px solid #E8F6FB;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .topnav.menu-open .menu {
    display: flex;
  }

  .topnav .menu > a,
  .topnav .menu .dropdown > .drop-btn,
  .topnav .menu .dropdown > a {
    font-size: 15px;
    padding: 13px 20px;
    width: 100%;
    text-align: left;
    border-radius: 0;
    border-bottom: 1px solid #F0F6FA;
    box-sizing: border-box;
  }

  .topnav .menu > a.nav-cta {
    display: block;
    width: auto;
    text-align: center;
    margin: 12px 20px;
    border-radius: 20px;
    border-bottom: none;
  }

  .topnav .menu .dropdown {
    width: 100%;
  }

  .topnav .dropdown .drop-menu,
  .topnav .dropdown:hover .drop-menu {
    display: none;
    position: static;
    background: #F4FAFD;
    box-shadow: none;
    min-width: 0;
    border-radius: 0;
    padding: 0;
  }

  .topnav .dropdown.open .drop-menu,
  .topnav .dropdown.open:hover .drop-menu {
    display: block;
  }

  .topnav .dropdown .drop-menu a {
    padding: 11px 20px 11px 34px;
    color: #035A78;
    border-bottom: 1px solid #E7F2F7;
  }

  .topnav .lang-switch {
    width: 100%;
    margin: 0;
    padding: 0;
    border-left: none;
    position: static;
  }

  .topnav .lang-switch .current {
    font-size: 15px;
    padding: 13px 20px;
    border-radius: 0;
    border-bottom: 1px solid #F0F6FA;
  }

  .topnav .lang-switch .dropdown-lang,
  .topnav .lang-switch:hover .dropdown-lang {
    display: none;
    position: static;
    background: #F4FAFD;
    box-shadow: none;
    min-width: 0;
    padding: 4px 0;
  }

  .topnav .lang-switch.open .dropdown-lang,
  .topnav .lang-switch.open:hover .dropdown-lang {
    display: block;
  }

  .topnav .lang-switch .dropdown-lang a {
    padding: 10px 20px 10px 34px;
  }

  .topnav .menu > a.active {
    border-left: 3px solid #049CCB;
  }

  .ticker {
    padding: 6px 12px;
  }

  .hero {
    height: auto;
    min-height: 0;
    padding: 56px 0 48px;
  }

  .hero h1 {
    font-size: 30px;
    letter-spacing: 1px;
  }

  .hero .subtitle {
    font-size: 16px;
    letter-spacing: 0;
  }

  .section,
  .container,
  .intro,
  .contact-grid,
  .hero-sm {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .services-grid,
  .adv-grid,
  .services,
  .mvv,
  .adv,
  .teams,
  .promise,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 18px 12px;
    text-align: left;
  }

  footer {
    padding: 24px 16px 16px;
  }

  .footer-top {
    flex-direction: column;
    gap: 14px;
  }

  .footer-right,
  .footer-brand {
    text-align: left;
  }

  .footer-brand .en {
    white-space: normal;
  }

  .cta {
    margin: 0 16px 40px;
    padding: 36px 18px;
  }

  .cta h2 {
    font-size: 22px;
  }

  .banner-strip {
    padding: 36px 16px;
  }

  .legal-body {
    margin: 16px;
    padding: 28px 18px;
  }

  .section-nav {
    display: none;
  }

  .intro-strip,
  .hero-overlay {
    padding: 22px 16px !important;
  }

  .hero-overlay h1 {
    font-size: 28px;
  }

  .svc-body [style*="grid-template-columns"],
  .extended-advisory [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .side-buttons {
    display: none;
  }
}

@media (max-width: 640px) {
  .footer-cols {
    grid-template-columns: 1fr;
  }

  .logo-license .l2 {
    font-size: 10px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .sec-title {
    font-size: 24px;
  }
}
