.site-header .topbar {
  width: min(calc(100% - 52px), 1440px);
  grid-template-columns: minmax(max-content,1fr) auto minmax(max-content,1fr);
  column-gap: clamp(18px,2vw,32px);
}
.site-header .topnav { gap: clamp(11px,1.48vw,24px); }
.site-header :is(.topnav > a,.nav-group > a,.about-link) {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 550;
  line-height: 1.35;
  letter-spacing: 0;
}
.site-header :is(.topnav > a,.nav-group > a,.about-link)[aria-current] {
  color: var(--ink);
  font-weight: 730;
}
.site-header .topnav :is(.nav-group > a,a.nav-agent,.topnav > a)::before {
  inset: 14px -6px;
  border-radius: 7px;
}
.site-header .has-subnav .nav-group { position: relative; display: flex; align-items: center; height: 100%; }
.site-header .has-subnav .nav-about-group { display: none; }
.site-header .top-actions { gap: clamp(8px,.95vw,15px); }
.site-header .top-actions .header-consult { white-space: nowrap; }
.nav-expander {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 24px;
  min-height: 34px;
  margin-left: 1px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}
.nav-expander:hover, .nav-expander[aria-expanded=true] { background: var(--sand); color: var(--ink); }
.nav-expander svg { transition: transform .2s ease; }
.nav-expander[aria-expanded=true] svg { transform: rotate(180deg); }
.nav-submenu {
  position: absolute;
  z-index: 3;
  inset: calc(100% - 5px) auto auto -10px;
  margin: 0;
  padding: 6px;
  min-width: 198px;
  list-style: none;
  background: var(--site-background,#fff);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 28px #25272014;
}
.nav-submenu[hidden] { display: none !important; }
.site-header .topnav .nav-submenu a {
  width: 100%;
  height: auto;
  min-height: 38px;
  line-height: 1.5;
  padding: 7px 11px;
  border: 0;
  border-radius: 5px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 510;
}
.topnav .nav-submenu a::before, .topnav .nav-submenu a::after { display: none; }
.topnav .nav-submenu a:hover { background: var(--sand); color: var(--red-dark); }
.nav-agent-label { display: inline-flex; align-items: baseline; gap: 5px; }
.nav-beta {
  display: inline-block;
  padding: 1px 5px 2px;
  border-radius: 4px;
  background: #f6e7df;
  color: #882c25;
  font-size: 10px;
  font-weight: 690;
  line-height: 1.15;
  transform: translateY(-.34em);
}
@media (max-width: 1100px) {
  .site-header .topbar {
    width: calc(100% - clamp(28px,6vw,60px));
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }
  .site-header .top-actions { gap: 4px; }
  .site-header .top-actions .menu { display: inline-grid; }
  .site-header .top-actions .about-link { display: none; }
  .site-header .topnav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    max-height: calc(100svh - var(--header));
    height: auto;
    padding: 8px clamp(16px,4vw,36px) 16px;
    overflow: auto;
    overscroll-behavior: contain;
    background: var(--site-background,#fff);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 28px #25272012;
  }
  .site-header .topnav.open { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; }
  .site-header .has-subnav .nav-group {
    display: grid;
    height: auto;
    align-items: stretch;
    grid-template-columns: minmax(0,1fr) auto;
    border-top: 1px solid var(--line);
  }
  .site-header .topnav > a:not(:first-child) { border-top: 1px solid var(--line); }
  .site-header .topnav :is(.nav-group > a,.topnav > a) {
    min-height: 46px;
    height: auto;
    padding: 7px 12px;
    font-size: 15px;
  }
  .site-header .topnav > a:first-child { border: 0; }
  .site-header .topnav a::before { display: none; }
  .site-header .topnav a[aria-current]::after { inset: 12px auto 12px 0; width: 2px; height: auto; transform: none; }
  .has-subnav .nav-expander { width: 48px; min-height: 44px; margin: 0; }
  .has-subnav .nav-submenu {
    position: static;
    grid-column: 1 / -1;
    margin: 0 0 8px;
    padding: 4px 8px 4px 10px;
    border: 0;
    box-shadow: none;
    background: #f4f5f1;
  }
  .site-header .topnav .nav-submenu a { min-height: 42px; font-size: 14px; }
  .topnav .nav-submenu a:hover { background: var(--site-background,#fff); }
}
@media (max-width: 600px) {
  .site-header .top-actions .icon-button { width: 42px; min-width: 42px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .nav-expander svg { transition: none; } }

.about-introduction {
  display:grid; grid-template-columns:minmax(160px,.72fr) minmax(0,1.5fr);
  gap:32px clamp(28px,6vw,95px); padding-block:clamp(42px,6vw,80px);
  border-block:1px solid var(--line);
}
.about-introduction h2 { font-size:clamp(27px,3.1vw,42px); font-weight:720; line-height:1.3; }
.about-introduction p { max-width:43em; color:var(--muted); font-size:16px; line-height:1.9; }
.about-introduction p + p { margin-top:17px; }
.about-partnerships { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(24px,5vw,70px); padding-block:35px 14px; }
.about-partnerships a { padding:20px 0 26px; border-bottom:1px solid var(--line); }
.about-partnerships a > span,.course-support-label { display:block; color:var(--muted); font-size:13px; font-weight:550; }
.about-partnerships h2 { display:flex; justify-content:space-between; gap:18px; margin-top:11px; font-size:clamp(26px,3vw,37px); line-height:1.3; font-weight:730; }
.about-partnerships h2 b { color:var(--red); font-weight:500; }
.about-partnerships p { color:var(--muted); font-size:15px; line-height:1.75; margin-top:13px; }
.about-partnerships a:hover h2 { color:var(--red); }
.course-support-entry {
  display:grid; grid-template-columns:minmax(0,1fr) auto; gap:24px 42px; align-items:center;
  padding-block:clamp(32px,4vw,51px); margin-top:clamp(38px,5vw,64px); border-block:1px solid var(--line);
}
.course-support-entry h2 { margin-top:10px; font-size:clamp(25px,3.2vw,38px); font-weight:720; line-height:1.3; }
.course-support-entry p:last-child { margin-top:12px; max-width:39em; line-height:1.8; font-size:15px; color:var(--muted); }
.course-coming { margin-top:clamp(50px,7vw,90px); padding-block:36px 30px; border-top:1px solid var(--line); text-align:center; }
.course-coming h2 { font-size:clamp(24px,3vw,36px); line-height:1.3; font-weight:690; }
.course-coming p { margin-top:14px; color:var(--muted); font-size:14px; }
.course-coming a { display:inline-block; margin-top:17px; min-height:40px; padding:6px 0; color:var(--red); font-size:14px; font-weight:650; }
@media(max-width:700px) {
  .about-introduction,.about-partnerships,.course-support-entry { grid-template-columns:minmax(0,1fr); gap:22px; }
  .about-introduction p { font-size:15px; }
  .course-support-entry > a { justify-self:start; }
}

.contact-person-link { min-height:44px; gap:8px; white-space:nowrap; }
.contact-person-link span { font-size:1.1em; }
.consult-dialog .contact-person-link { margin:1px 0 12px; }
#wechat { scroll-margin-top:calc(var(--header,70px) + 16px); }
#wechat .contact-person-link { margin:10px 0 4px; }
.about-contact { margin-top:16px; }
.expert-intro .contact-person-link { margin-top:18px; }

.dialog.wechat-contact-dialog {
  width:min(360px, calc(100% - 28px));
  border-color:#e1e0d7;
  background:#fdfdfc;
  text-align:center;
}
.wechat-contact-dialog .dialog-inner { padding:26px 18px 20px; }
.wechat-contact-dialog h2 { font-size:23px; padding-inline:29px; line-height:1.3; }
.wechat-contact-dialog p { color:var(--muted); font-size:14px; line-height:1.65; margin-top:6px; }
.wechat-contact-dialog img {
  display:block; margin:14px auto 9px; width:min(100%, 260px, 46svh);
  height:auto; border:1px solid #e4eae6; border-radius:10px; user-select:none;
}
.wechat-contact-dialog .text-action { display:inline-flex; align-items:center; min-height:44px; gap:8px; }
.wechat-contact-dialog .close { font-size:24px; }
@media(prefers-reduced-motion:reduce) { .dialog.wechat-contact-dialog[open] { animation:none; } }
