:root {
  --c-text: #00080c;
  --c-text-2: rgba(0, 8, 12, .93);
  --c-muted: #6b7380;
  --c-line: #e6eaf0;
  --grad-cta: linear-gradient(90deg, #09dafd 0%, #016afe 100%);
  --grad-link: linear-gradient(90deg, #16d0ff 0%, #1677ff 100%);
  --shadow-card: 0 4px 60px rgba(163, 163, 163, .25);
  --ease-soft: cubic-bezier(.22, .61, .36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
  min-width: 1440px;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: 100%;
  background: #fff;
}

.stage {
  width: 100%;
  height: var(--stage-height, 5866px);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.center-frame {
  position: absolute;
  left: 0;
  right: 0;
  width: 1440px;
  height: 100%;
  margin: 0 auto;
}

.abs {
  position: absolute;
}

.nav {
  left: 0;
  top: 0;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  padding: 0 124px;
  z-index: 50;
  transition: background .35s var(--ease-soft), box-shadow .35s var(--ease-soft), backdrop-filter .35s var(--ease-soft);
}

.nav.is-scrolled {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 6px 24px rgba(15, 32, 72, .06);
  animation: navDrop .35s var(--ease-soft);
}

@keyframes navDrop {
  from {
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 400 20px/1 "Gugi", system-ui, sans-serif;
  letter-spacing: .5px;
}

.brand img {
  transition: transform .5s var(--ease-soft);
}

@media (hover: hover) and (pointer: fine) {
  .brand:hover img {
    transform: rotate(-8deg) scale(1.06);
  }
}

.menu {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 40px;
  font-size: 16px;
  font-weight: 600;
  margin-left: 0;
}

.menu a {
  position: relative;
  padding: 6px 0;
  transition: color .25s var(--ease-soft);
}

.menu > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--grad-link);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width .3s var(--ease-soft);
}

@media (hover: hover) and (pointer: fine) {
  .menu a:hover {
    color: #1677ff;
  }

  .menu > a:hover::after {
    width: 100%;
  }
}

.menu-dropdown {
  position: relative;
  z-index: 110;
}

.menu-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  position: relative;
  cursor: default;
}

.menu-dropdown-caret {
  display: inline-block;
  font-size: 20px;
  line-height: 1;
  opacity: .65;
  transition: transform .2s var(--ease-soft);
}

.menu-dropdown:focus-within .menu-dropdown-caret {
  transform: rotate(180deg);
}

.menu-dropdown-trigger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  width: auto;
  background: var(--grad-link);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s var(--ease-soft);
}

.menu-dropdown:focus-within .menu-dropdown-trigger::after {
  transform: scaleX(1);
}

.menu-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  width: max-content;
  min-width: 132px;
  padding: 6px 0;
  margin: 0;
  list-style: none;
  border-radius: 10px;
  border: 1px solid #e8eef6;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(16, 34, 69, .12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s var(--ease-soft), transform .18s var(--ease-soft), visibility .18s;
  z-index: 120;
}

.menu-dropdown::after {
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  top: 100%;
  height: 10px;
}

.menu-dropdown-menu li {
  margin: 0;
}

.menu-dropdown-menu a {
  display: block;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.menu-dropdown-menu a {
  color: var(--c-text);
}

.menu-dropdown:focus-within .menu-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .menu-dropdown:hover .menu-dropdown-caret {
    transform: rotate(180deg);
  }

  .menu-dropdown:hover .menu-dropdown-trigger::after {
    transform: scaleX(1);
  }

  .menu-dropdown-menu a:hover {
    background: rgba(22, 119, 255, .08);
  }

  .menu-dropdown:hover .menu-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
}

.right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.right .login {
  cursor: pointer;
  transition: color .2s var(--ease-soft);
}

@media (hover: hover) and (pointer: fine) {
  .right .login:hover {
    color: #1677ff;
  }
}

.btn-grad {
  height: 40px;
  padding: 0 24px;
  border: 0;
  border-radius: 20px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  background: var(--grad-link);
  box-shadow: 0 6px 16px rgba(22, 119, 255, .22);
  transition: transform .25s var(--ease-soft), box-shadow .25s var(--ease-soft), filter .25s var(--ease-soft);
}

@media (hover: hover) and (pointer: fine) {
  .btn-grad:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(22, 119, 255, .3);
    filter: brightness(1.05);
  }
}

.lang-switch {
  position: relative;
}

.lang {
  min-width: 112px;
  height: 40px;
  border: 1px solid #dfdaeb;
  border-radius: 20px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  background: #fff;
  transition: border-color .25s, color .25s;
}

.lang-switch.is-open .lang {
  border-color: #1677ff;
  color: #1677ff;
}

@media (hover: hover) and (pointer: fine) {
  .lang:hover {
    border-color: #1677ff;
    color: #1677ff;
  }
}

.lang::after {
  content: "▾";
  font-size: 10px;
  opacity: .6;
  transition: transform .2s;
}

.lang-switch.is-open .lang::after {
  transform: rotate(180deg);
}

.lang-menu {
  list-style: none;
  margin: 8px 0 0;
  padding: 8px;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 132px;
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 32, 72, .12);
  display: none;
  z-index: 80;
}

.lang-switch.is-open .lang-menu {
  display: block;
}

.lang-option {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  font-size: 13px;
  color: #0f172a;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .lang-option:hover {
    background: rgba(22, 119, 255, .08);
    color: #1677ff;
  }
}

@media (hover: none) {
  .nav a,
  .nav button,
  .nav .login {
    -webkit-tap-highlight-color: transparent;
  }

  .menu > a:active,
  .menu-dropdown-menu a:active,
  .right .login:active {
    color: #1677ff;
  }

  .btn-grad:active {
    transform: scale(.98);
  }

  .lang-option:active {
    background: rgba(22, 119, 255, .08);
    color: #1677ff;
  }
}

.lang-option.is-active {
  font-weight: 600;
  color: #1677ff;
}

.hero-title {
  margin: 0;
  left: 0;
  right: 0;
  top: 182px;
  text-align: center;
  font-size: 80px;
  line-height: 100px;
  font-weight: 700;
  letter-spacing: -1px;
  background: linear-gradient(180deg, #00080c 35%, rgba(0, 8, 12, .65) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[lang="en-US"] .hero-title {
  top: 196px;
  font-size: 72px;
  line-height: 86px;
  letter-spacing: -0.5px;
}

.hero-sub {
  margin: 0;
  left: 0;
  right: 0;
  top: 282px;
  text-align: center;
  font-size: 18px;
  line-height: 28px;
  color: var(--c-text-2);
}

.cta-main {
  left: calc(50% - 86px);
  top: 332px;
  width: 172px;
  height: 62px;
  border-radius: 31px;
  border: 0;
  cursor: pointer;
  color: rgba(255, 255, 255, .92);
  font-size: 18px;
  font-weight: 500;
  background: var(--grad-cta);
  box-shadow: 0 14px 30px rgba(1, 106, 254, .25);
  transition: transform .3s var(--ease-soft), box-shadow .3s var(--ease-soft);
}

.cta-main::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: var(--grad-cta);
  opacity: .35;
  filter: blur(14px);
  z-index: -1;
  transition: opacity .3s;
}

.cta-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 38px rgba(1, 106, 254, .35);
}

.cta-main:hover::before {
  opacity: .55;
}

.section-hero {
  left: 0;
  right: 0;
  top: 464px;
  width: 1190px;
  height: 668px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(113.72deg, #f0f9ff 3.28%, #d8f2fb 18.27%, #d6f1fb 30.31%, #d4f0fb 42.38%, #c9ecfc 64.21%, #e0f3fd 81.82%);
}

@keyframes floatY {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-6px);
  }
}

.hero-shot {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 30px 60px rgba(15, 32, 72, .12);
}

.feature-row {
  left: 0;
  width: 100%;
  height: 724px;
}

.feature-row-1 {
  top: 1208px;
}

.feature-row-2 {
  top: 1994px;
}

.feature-row-3 {
  left: 0;
  top: 2814px;
  width: 100%;
  height: 512px;
}

.feature-1-image {
  left: 36px;
  top: 71px;
  width: 720px;
  height: 552px;
}

.feature-1-title {
  left: 818px;
  top: 252px;
  width: 504px;
}

.feature-1-desc-1 {
  left: 818px;
  top: 324px;
  width: 492px;
}

.feature-1-desc-2 {
  left: 818px;
  top: 430px;
  width: 492px;
}

/* English copy is longer in feature block 1; give extra vertical room. */
html[lang="en-US"] .feature-1-desc-1 {
  top: 368px;
}

html[lang="en-US"] .feature-1-desc-2 {
  top: 480px;
}

.feature-2-title {
  left: 180px;
  top: 250px;
  width: 324px;
}

.feature-2-desc {
  left: 180px;
  top: 332px;
  width: 519px;
  font-size: 18px;
  line-height: 32px;
}

html[lang="en-US"] .feature-2-desc {
  top: 372px;
}

.feature-2-image {
  left: 699px;
  top: 5px;
  width: 752px;
  height: 700px;
}

.feature-3-image {
  left: 125px;
  top: 0;
  width: 567px;
  height: 512px;
  border-radius: 14px;
}

.feature-3-title {
  left: 807px;
  top: 194px;
  width: 519px;
  font-size: 36px;
  line-height: 52px;
  margin: 0;
  font-weight: 700;
  background: linear-gradient(90deg, #00080c, #1677ff 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-3-desc {
  left: 807px;
  top: 276px;
  width: 519px;
  font-size: 20px;
  line-height: 32px;
  margin: 0;
  color: var(--c-text-2);
}

.feature-row .img {
  object-fit: cover;
  border-radius: 14px;
}

.feature-row h2 {
  font-size: 36px;
  line-height: 52px;
  margin: 0;
  font-weight: 700;
  background: linear-gradient(90deg, #00080c, #1677ff 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-row p {
  font-size: 20px;
  line-height: 32px;
  margin: 0;
  color: var(--c-text-2);
}

.section-title {
  font-size: 40px;
  line-height: 52px;
  font-weight: 700;
  text-align: center;
}

.section-sub {
  font-size: 18px;
  line-height: 28px;
  text-align: center;
  color: var(--c-text-2);
}

.cap-tag {
  width: 180px;
  height: 60px;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 32, 72, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: #1f2a3a;
  transition: transform .3s var(--ease-soft), box-shadow .3s var(--ease-soft), color .3s;
  animation: floatY 5s var(--ease-soft) infinite alternate;
}

.capability-section {
  left: 0;
  top: 3554px;
  width: 100%;
  height: 712px;
  overflow: hidden;
}

.capability-bg {
  left: 0;
  top: -1px;
  width: 100%;
  height: 714px;
  object-fit: cover;
  opacity: .7;
  will-change: transform;
}

.capability-title {
  left: 0;
  right: 0;
  top: 98px;
  margin: 0;
}

.capability-sub {
  left: 0;
  right: 0;
  top: 160px;
  margin: 0;
}

.cap-tag-left-1,
.cap-tag-left-2,
.cap-tag-left-3,
.cap-tag-left-4 {
  left: 210px;
}

.cap-tag-left-1,
.cap-tag-right-1 {
  top: 240px;
}

.cap-tag-left-2,
.cap-tag-right-2 {
  top: 328px;
}

.cap-tag-left-3,
.cap-tag-right-3 {
  top: 416px;
}

.cap-tag-left-4,
.cap-tag-right-4 {
  top: 504px;
}

.cap-tag-right-1,
.cap-tag-right-2,
.cap-tag-right-3,
.cap-tag-right-4 {
  left: 1050px;
}

.capability-image {
  left: 361px;
  top: 180px;
  width: 718px;
  height: 442px;
}

.cap-tag:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 18px 36px rgba(22, 119, 255, .18);
  color: #1677ff;
}

.cap-inner-tag {
  height: 36px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 16px rgba(15, 32, 72, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  width: 145px;
  animation: floatY 4s var(--ease-soft) infinite alternate;
}

.cap-inner-tag-1 {
  left: 472px;
  top: 340px;
}

.cap-inner-tag-2 {
  left: 804px;
  top: 297px;
  animation-delay: -1.5s;
}

.cap-inner-tag-3 {
  left: 689px;
  top: 527px;
  animation-delay: -3s;
}

.testi-card {
  width: 562px;
  height: 362px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-card);
  padding: 32px 40px;
  transition: transform .35s var(--ease-soft), box-shadow .35s var(--ease-soft);
}

.testimonials-section {
  left: 0;
  top: 4266px;
  width: 100%;
  height: 730px;
}

.testimonials-title {
  left: 0;
  right: 0;
  top: 100px;
  margin: 0;
}

.testimonials-sub {
  left: 0;
  right: 0;
  top: 162px;
  margin: 0;
}

.testi-card-1 {
  left: 150px;
  top: 246px;
}

.testi-card-2 {
  left: 728px;
  top: 246px;
}

.testimonials-float-icon {
  left: 1248px;
  top: 608px;
  width: 85px;
  height: 85px;
  animation: floatY 5s var(--ease-soft) infinite alternate;
}

.testi-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 60px rgba(22, 119, 255, .18);
}

.testi-quote {
  font-family: Georgia, serif;
  font-size: 64px;
  line-height: 1;
  color: #1677ff;
  opacity: .55;
  margin: 0 0 6px;
}

.testi-text {
  font-size: 16px;
  line-height: 26px;
  color: #2a2f37;
  margin: 0 0 28px;
}

.testi-divider {
  width: 100%;
  height: 1px;
  background: var(--c-line);
  margin-bottom: 18px;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testi-author img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
}

.testi-author .name {
  font-size: 18px;
  font-weight: 700;
}

.testi-author .role {
  font-size: 14px;
  color: var(--c-muted);
  margin-top: 4px;
}

.cta-banner {
  left: 0;
  top: 4996px;
  width: 100%;
  height: 450px;
  overflow: hidden;
}

.cta-banner .bg {
  left: 0;
  top: -242px;
  width: 100%;
  height: 769px;
  object-fit: cover;
  transform: scale(1.02);
  will-change: transform;
}

.cta-banner .btn {
  left: calc(50% - 86px);
  top: 235px;
  width: 172px;
  height: 60px;
  border: 0;
  border-radius: 30px;
  background: #040812;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: transform .3s var(--ease-soft), background .3s, box-shadow .3s;
}

.cta-banner .btn:hover {
  transform: translateY(-2px);
  background: #0e1b34;
  box-shadow: 0 18px 36px rgba(0, 0, 0, .25);
}

.cta-title {
  left: 0;
  right: 0;
  top: 100px;
  width: auto;
  margin: 0;
}

footer {
  left: 0;
  top: 5446px;
  width: 100%;
  height: 420px;
  background: #fafbfd;
  border-top: 1px solid var(--c-line);
}

footer .col-title {
  font-size: 14px;
  font-weight: 700;
  color: #00080c;
  margin-bottom: 14px;
}

.footer-brand {
  left: 119px;
  top: 118px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand-text {
  font: 400 30px/1 "Gugi", sans-serif;
}

.footer-contact-label-1 {
  left: 119px;
  top: 192px;
  font-size: 12px;
  color: #9aa3af;
}

.footer-contact-value-1 {
  left: 119px;
  top: 212px;
  font-size: 14px;
  color: #00080c;
}

.footer-contact-label-2 {
  left: 119px;
  top: 248px;
  font-size: 12px;
  color: #9aa3af;
}

.footer-contact-value-2 {
  left: 119px;
  top: 268px;
  font-size: 14px;
  color: #00080c;
}

.footer-col-1 {
  left: 486px;
  top: 118px;
}

.footer-col-2 {
  left: 700px;
  top: 118px;
}

.footer-col-3 {
  left: 897px;
  top: 118px;
}

.footer-col-4 {
  left: 1090px;
  top: 118px;
}

footer .col a {
  display: block;
  font-size: 14px;
  color: var(--c-muted);
  line-height: 28px;
  transition: color .2s;
}

footer .col a.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer-contact-icon {
  width: 18px;
}

footer .col a:hover {
  color: #1677ff;
}

footer .copy {
  position: absolute;
  left: 119px;
  bottom: 28px;
  font-size: 12px;
  color: #9aa3af;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal.delay-1 {
  transition-delay: .1s;
}

.reveal.delay-2 {
  transition-delay: .2s;
}

.reveal.delay-3 {
  transition-delay: .3s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .cap-tag,
  .cap-inner-tag {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* 移动端导航栏汉堡菜单样式 */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-right: 16px;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-text);
  border-radius: 1px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 1439px) {
  body {
    min-width: 0;
    overflow-x: hidden;
  }

  .page {
    width: 100vw;
    overflow: hidden;
    height: calc(var(--stage-height, 5866px) * (100vw / 1440));
  }

  .stage {
    width: 1440px;
    height: var(--stage-height, 5866px);
    transform-origin: left top;
    transform: scale(calc(100vw / 1440));
  }
}

/* 真正的移动端适配 — 顶栏：首行仅 Logo + 汉堡；登录/注册/语言在菜单展开后显示 */
@media (max-width: 768px) {
  .nav {
    padding: 12px 16px;
    height: auto;
    min-height: 52px;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 0;
  }

  .nav .brand {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 8px;
  }

  .mobile-menu-toggle {
    display: flex;
    flex-shrink: 0;
    margin-left: auto;
    margin-right: 0;
  }

  .menu {
    display: none;
    flex: 1 1 100%;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 10px 8px;
    margin-top: 12px;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--c-line);
  }

  .menu.active {
    display: flex;
  }

  .menu > a,
  .menu > .menu-dropdown {
    width: 100%;
  }

  .menu-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 8px 0 0 16px;
  }

  .menu-dropdown:focus-within .menu-dropdown-menu {
    transform: none;
  }

  .menu-dropdown-trigger::after {
    display: none;
  }

  /*
   * 带汉堡的顶栏加 class「nav--has-drawer」，避免依赖 :has()（旧浏览器会忽略整条规则导致顶栏重叠）。
   */
  header.nav.nav--has-drawer .menu:not(.active) ~ .right {
    display: none !important;
  }

  header.nav.nav--has-drawer .menu.active ~ .right {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    flex-basis: 100%;
    max-width: 100%;
    order: 5;
    gap: 12px;
    padding: 12px 10px 4px;
    margin-left: 0;
    margin-top: 0;
    border-top: 0;
    background: rgba(255, 255, 255, .97);
  }

  header.nav.nav--has-drawer .menu.active {
    max-height: none;
    overflow-y: visible;
  }

  header.nav.nav--has-drawer .menu.active ~ .right .login {
    font-size: 15px;
    padding: 6px 0;
    text-align: center;
  }

  header.nav.nav--has-drawer .menu.active ~ .right .btn-grad {
    width: 100%;
    max-width: 100%;
    height: 44px;
    padding: 0 20px;
    font-size: 15px;
  }

  header.nav.nav--has-drawer .menu.active ~ .right .lang-switch {
    margin-left: 0;
    width: 100%;
  }

  header.nav.nav--has-drawer .menu.active ~ .right .lang {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  /* 无 nav--has-drawer 的顶栏：.right 仍参与布局（如未来自定义头部） */
  .right {
    margin-left: 0;
    gap: 12px;
  }

  .login {
    font-size: 14px;
  }

  .btn-grad {
    padding: 8px 16px;
    font-size: 14px;
  }

  .lang-switch {
    margin-left: auto;
  }
}
