/* ============================================================
   MOSINTER GROUP - 全局通用样式
   包含 CSS 变量、Reset、顶部导航栏、底部导航栏
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --color-primary:      #1a5c3a;
  --color-primary-dark: #134530;
  --color-primary-mid:  #2d7a4f;
  --color-primary-light:#4caf50;
  --color-primary-bg:   #e8f5e9;
  --color-primary-bg2:  #f1f8f4;
  --color-text:         #222222;
  --color-text-mid:     #555555;
  --color-text-light:   #888888;
  --color-border:       #e0e0e0;
  --color-white:        #ffffff;
  --color-bg:           #f8f9fa;
  --color-dark:         #1a2e1a;
  --font-main: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.11);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.14);
  --radius-sm:  4px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --transition: 0.25s ease;
  --header-h:   68px;

  /* Content max-width — scales with viewport */
  --content-max: 1440px;
  --content-pad: clamp(24px, 4vw, 80px);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  min-width: 320px;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Full-width container ---------- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--content-pad);
  padding-right: var(--content-pad);
}

/* ============================================================
   HEADER — 顶部导航栏
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-h);
  width: 100%;
}
.header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 1.5vw, 22px);
  height: 100%;
}

/* ---------- Logo 样式 ---------- */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
  flex: 0 0 auto;
  min-width: max-content;
  transition: transform 0.22s ease;
}
.logo-wrap:hover {
  transform: translateY(-2px);
}
.logo-image {
  height: 45px;
  width: auto;
}
.logo-extra {
  height: 38px;
  width: auto;
  margin-right: 10px;
}
.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-text {
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: 0.05em;
  font-family: 'Oswald', sans-serif;
}
.logo-accent { color: #f0a500; }
.logo-tagline {
  color: #888;
  font-size: 0.83rem;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ---------- 导航栏列表 ---------- */
.nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}
.nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 1.55vw, 28px);
}
.nav-item {
  position: relative;
}
.nav-item a {
  position: relative;
  display: block;
  padding: 8px 0;
  font-family: 'Montserrat', 'Noto Sans SC', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text);
  transition: color 0.2s ease;
  white-space: nowrap;
}
.nav-item > a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--color-primary);
  transform: translateX(-50%);
  transition: width 0.22s ease;
}
.nav-item > a:hover,
.nav-item.active > a,
.nav-item.dropdown-active > a,
.nav-item > a.active { color: var(--color-primary); }
.nav-item.active > a::after,
.nav-item.dropdown-active > a::after,
.nav-item > a.active::after,
.nav-item > a:hover::after { width: 48px; }

/* ---------- 移动端菜单按钮 ---------- */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  border-radius: 999px;
  background: var(--color-primary-bg2);
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- 下拉菜单 ---------- */
.nav-arrow {
  font-size: 8px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 2px;
  transition: transform var(--transition);
  opacity: 0.6;
}
.nav-item.has-dropdown:hover .nav-arrow {
  transform: rotate(180deg);
}
.dropdown {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 160px;
  padding: 8px 0;
  z-index: 2000;
  white-space: nowrap;
  transition: opacity 0.12s ease, visibility 0.12s ease;
}
.dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 6px 6px 6px;
  border-style: solid;
  border-color: transparent transparent var(--color-border) transparent;
}
.dropdown::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 5px 5px 5px;
  border-style: solid;
  border-color: transparent transparent var(--color-white) transparent;
}
.dropdown li a {
  display: block;
  padding: 9px 20px;
  font-size: clamp(14px, 1vw, 15px);
  font-family: 'Montserrat', 'Noto Sans SC', sans-serif;
  font-weight: 600;
  color: var(--color-text-mid);
  transition: all var(--transition);
  white-space: nowrap;
}
.dropdown li a:hover,
.dropdown li a.active {
  color: var(--color-primary);
  background: var(--color-primary-bg2);
  padding-left: 26px;
}
.dropdown li a.active::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-primary);
  transform: translateY(-50%);
}
/* 下拉菜单显示状态 */
.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown:focus-within .dropdown {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  animation: dropFadeIn 0.18s ease;
}
@keyframes dropFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}


/* ---------- Language Switcher ---------- */
.language-switcher {
  position: relative;
  flex: 0 0 auto;
  margin-left: clamp(4px, 0.7vw, 10px);
  z-index: 2100;
}
.language-current {
  min-width: 86px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid rgba(26, 92, 58, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text);
  font-family: 'Montserrat', 'Noto Sans SC', sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  transition: border-color var(--transition), box-shadow var(--transition), color var(--transition), background var(--transition);
}
.language-current:hover,
.language-switcher.open .language-current {
  border-color: var(--color-primary-mid);
  color: var(--color-primary);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.language-icon {
  width: 15px;
  height: 15px;
  display: inline-flex;
  color: currentColor;
}
.language-icon svg {
  width: 100%;
  height: 100%;
}
.language-caret {
  font-size: 10px;
  line-height: 1;
  opacity: 0.7;
  transition: transform var(--transition);
}
.language-switcher.open .language-caret {
  transform: rotate(180deg);
}
.language-menu {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 116px;
  padding: 6px 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  transition: opacity 0.16s ease, visibility 0.16s ease, transform 0.16s ease;
}
.language-switcher.open .language-menu,
.language-switcher:focus-within .language-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.language-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 20px;
  border-width: 0 6px 6px 6px;
  border-style: solid;
  border-color: transparent transparent var(--color-border) transparent;
}
.language-menu::after {
  content: '';
  position: absolute;
  top: -5px;
  right: 21px;
  border-width: 0 5px 5px 5px;
  border-style: solid;
  border-color: transparent transparent var(--color-white) transparent;
}
.language-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  color: var(--color-text-mid);
  font-family: 'Montserrat', 'Noto Sans SC', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition), padding-left var(--transition);
}
.language-option:hover,
.language-option:focus-visible {
  color: var(--color-primary);
  background: var(--color-primary-bg2);
  padding-left: 16px;
  outline: none;
}
.language-check {
  color: var(--color-primary);
  font-size: 13px;
  opacity: 0;
}
.language-option.active {
  color: var(--color-primary);
  font-weight: 600;
}
.language-option.active .language-check {
  opacity: 1;
}

@media (max-width: 1280px) and (min-width: 901px) {
  .nav-list { gap: clamp(8px, 1vw, 14px); }
  .nav-item a { font-size: 13.5px; }
  .language-current { min-width: 78px; height: 34px; padding: 0 8px; font-size: 12.5px; }
  .language-icon { width: 14px; height: 14px; }
}

@media (max-width: 1080px) and (min-width: 901px) {
  :root { --content-pad: 20px; }
  .nav-list { gap: 8px; }
  .nav-item a { font-size: 13px; }
  .logo-text { font-size: 1.15rem; }
  .logo-tagline { font-size: 0.72rem; }
  .language-current { min-width: 72px; }
}

@media (max-width: 1200px) {
  .language-switcher { margin-left: 6px; }
  .language-current { min-width: 82px; padding: 0 8px; }
}

@media (max-width: 900px) {
  .language-switcher {
    margin-left: auto;
    margin-right: 10px;
  }
  .language-current {
    min-width: auto;
    height: 34px;
    padding: 0 8px;
    font-size: 12px;
  }
  .language-menu {
    right: 0;
    min-width: 112px;
  }
}

@media (max-width: 480px) {
  .language-current {
    gap: 6px;
    padding: 0 9px;
  }
  .language-icon { width: 16px; height: 16px; }
}

/* ============================================================
   FOOTER — 底部导航栏
   ============================================================ */
.footer {
  background: #1a2e1a;
  color: rgba(255,255,255,0.85);
  width: 100%;
}

/* footer 内的 container 使用更大宽度 */
.footer .container {
  max-width: 1800px;
  padding-left: clamp(32px, 5vw, 100px);
  padding-right: clamp(32px, 5vw, 100px);
}

/* ---- footer 主体区域 ---- */
.footer-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(40px, 5vw, 80px);
  padding-top: 64px;
  padding-bottom: 56px;
  align-items: start;
}

/* ---- 左侧品牌区 ---- */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1;
  text-decoration: none;
}
.footer-logo-image {
  height: 52px;
  width: auto;
}
.footer-logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.footer-logo-text {
  color: rgba(255,255,255,0.95);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  font-family: 'Oswald', sans-serif;
  white-space: nowrap;
}
.footer-logo-tagline {
  color: rgba(255,255,255,0.45);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  margin-top: 5px;
  white-space: nowrap;
}
.footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.85;
  max-width: 260px;
}
.footer-social,
.social-icons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.social-icon {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.social-icon:hover {
  background: var(--color-primary-mid);
  border-color: var(--color-primary-mid);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 195, 74, 0.3);
}
.social-icon svg {
  width: 18px;
  height: 18px;
}

/* ---- 右侧导航列区域 ---- */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(6, auto);
  justify-content: space-between;
  align-items: start;
  gap: 0;
}

/* ---- 每一列 ---- */
.footer-col {
  display: flex;
  flex-direction: column;
}

/* 标题行：叶子图标 + 文字 */
.footer-col h4 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  white-space: nowrap;
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}

/* 叶子图标 */
.footer-col h4 .leaf-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: #8bc34a;
  width: 14px;
  height: 14px;
}
.footer-col h4 .leaf-icon svg {
  width: 14px;
  height: 14px;
  fill: #8bc34a;
}

/* 链接列表 */
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  white-space: nowrap;
}
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.footer-col a:hover {
  color: rgba(255,255,255,0.95);
}
.footer-col li:hover {
  color: rgba(255,255,255,0.95);
}

/* ---- 联系我们列 ---- */
.footer-contact li {
  white-space: normal;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.65;
}
.footer-contact li a {
  white-space: normal;
  line-height: 1.65;
}
.footer-contact .contact-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-top: 3px;
  color: rgba(255,255,255,0.55);
}
.footer-contact .contact-icon svg {
  width: 14px;
  height: 14px;
}
.footer-contact .contact-text {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  max-width: 200px;
  white-space: normal;
  word-break: break-all;
  line-height: 1.65;
}
.footer-contact .contact-text a {
  color: rgba(255,255,255,0.6);
  white-space: normal;
}
.footer-contact li:hover .contact-text,
.footer-contact li:hover .contact-text a {
  color: rgba(255,255,255,0.95);
}

/* ---- 底部版权栏 ---- */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom span,
.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}
.footer-links a:hover {
  color: rgba(255,255,255,0.8);
}
.footer-bottom p a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}
.footer-bottom p a:hover {
  color: rgba(255,255,255,0.8);
}

/* ============================================================
   RESPONSIVE — 响应式断点
   ============================================================ */

/* Mobile logo responsive */
@media (max-width: 1023px) {
  .logo-image {
    height: 24px;
  }
  .logo-extra {
    height: 24px;
    margin-right: 0;
  }
  .logo-text {
    font-size: 0.85rem;
    letter-spacing: 0.03em;
  }
  .logo-tagline {
    display: none;
  }
  .logo-wrap {
    gap: 6px;
    flex: 0 0 auto;
    min-width: max-content;
    overflow: visible;
  }
}

/* Tablet 768–900px */
@media (max-width: 900px) {
  :root { --header-h: 60px; --content-pad: 24px; }
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: white; box-shadow: var(--shadow-md); padding: 16px 0; z-index: 999; }
  .nav.open { display: block; }
  .nav-list { flex-direction: column; }
  .nav-item a { padding: 12px 24px; }
  .nav-toggle { display: flex; }
  /* Mobile dropdown */
  .dropdown {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: none !important;
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--color-primary-bg);
    border-radius: 0;
    padding: 0;
    margin-left: 24px;
    display: none;
    animation: none;
  }
  .dropdown::before, .dropdown::after { display: none; }
  .nav-item.has-dropdown.open .dropdown { display: block; }
  .nav-item.has-dropdown:hover .dropdown { display: none; }
  .nav-item.has-dropdown.open .dropdown { display: block !important; }
  .nav-item.has-dropdown.open .nav-arrow { transform: rotate(180deg); }
  .dropdown li a { padding: 8px 16px; font-size: 14px; font-family: 'Montserrat', 'Noto Sans SC', sans-serif; font-weight: 600; }
  .dropdown li a:hover { padding-left: 16px; }
}

/* Mobile < 480px */
@media (max-width: 480px) {
  .footer-nav {
    grid-template-columns: repeat(2, auto);
    justify-content: start;
    gap: 20px 28px;
  }
  .footer-inner { gap: 24px; }
}

/* Footer responsive */
@media (max-width: 1200px) {
  .footer-inner {
    grid-template-columns: 240px 1fr;
    gap: 36px;
  }
  .footer-nav {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 32px 40px;
  }
}

@media (max-width: 1100px) {
  .footer-inner {
    grid-template-columns: 220px 1fr;
    gap: 28px;
  }
  .footer-nav {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 28px 32px;
  }
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 40px;
    padding-bottom: 32px;
  }
  .footer-nav {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 24px 32px;
  }
  .footer-desc { max-width: 100%; }
}


/* ============================================================
   MOBILE DRAWER MENU — right side drawer, reference style
   ============================================================ */
.mobile-search-toggle,
.mobile-drawer-head,
.mobile-drawer-menu,
.mobile-menu-backdrop {
  display: none;
}

@media (max-width: 900px) {
  .header {
    height: 64px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 0 rgba(18, 58, 38, 0.08);
  }
  .header-inner {
    justify-content: flex-start;
    gap: 10px;
  }
  .logo-wrap {
    margin-right: auto;
  }
  .mobile-search-toggle {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #111;
    background: transparent;
    border: 0;
    border-radius: 999px;
  }
  .mobile-search-toggle svg {
    width: 24px;
    height: 24px;
  }
  .nav-toggle {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    gap: 5px;
    padding: 0;
    border: 2px solid rgba(26, 92, 58, 0.58);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(26, 92, 58, 0.08);
  }
  .nav-toggle span {
    width: 21px;
    height: 2px;
    background: #1a1a1a;
  }
  .language-switcher {
    display: none;
  }
  .nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(72vw, 330px);
    min-width: 280px;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    padding: 0;
    background: #fff;
    box-shadow: -16px 0 40px rgba(0, 0, 0, 0.16);
    z-index: 3210;
    overflow: hidden;
    overscroll-behavior: contain;
    touch-action: pan-y;
    transform: translateX(104%);
    transition: transform 0.28s cubic-bezier(.2,.8,.2,1), box-shadow 0.28s ease;
  }
  .nav.open {
    display: flex;
    transform: translateX(0);
  }
  .mobile-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.50);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 3000;
    transition: opacity 0.28s ease, visibility 0.28s ease;
  }
  body.mobile-menu-open {
    overflow: hidden;
  }
  body.mobile-menu-open .header {
    z-index: 3220;
  }
  body.mobile-menu-open .nav-toggle {
    border-color: var(--color-primary);
    background: #f1f8f4;
    box-shadow: 0 0 0 3px rgba(26, 92, 58, 0.12);
  }
  body.mobile-menu-open .nav.open {
    background: #fff;
    box-shadow: -22px 0 52px rgba(0, 0, 0, 0.22);
  }
  body.mobile-menu-open .mobile-menu-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .mobile-drawer-head {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 22px 16px;
    flex: 0 0 auto;
  }
  .mobile-drawer-logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--color-text);
    line-height: 1;
  }
  .mobile-drawer-logo img {
    width: 34px;
    height: auto;
  }
  .mobile-drawer-logo span {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .mobile-drawer-logo strong {
    font-family: 'Montserrat', 'Noto Sans SC', sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.02em;
  }
  .mobile-drawer-logo em {
    font-style: normal;
    font-size: 8px;
    color: #6f6f6f;
    letter-spacing: 0.08em;
  }
  .mobile-drawer-close {
    width: 38px;
    height: 38px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: transparent;
    border: 0;
    border-radius: 999px;
  }
  .mobile-drawer-close span {
    position: absolute;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #111;
  }
  .mobile-drawer-close span:first-child { transform: rotate(45deg); }
  .mobile-drawer-close span:last-child { transform: rotate(-45deg); }
  .nav-list {
    display: none !important;
  }
  .mobile-drawer-menu {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    padding: 8px 26px calc(34px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }
  .mobile-menu-link {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    border-bottom: 1px solid rgba(15, 35, 25, 0.08);
    color: #111;
    font-family: 'Montserrat', 'Noto Sans SC', sans-serif;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.4;
  }
  .mobile-menu-link.active {
    color: var(--color-primary-dark);
  }
  .mobile-menu-section {
    padding: 20px 0 18px;
    border-bottom: 1px solid rgba(15, 35, 25, 0.08);
  }
  .mobile-menu-section summary,
  .mobile-language-panel summary {
    list-style: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-menu-section summary::-webkit-details-marker,
  .mobile-language-panel summary::-webkit-details-marker {
    display: none;
  }
  .mobile-menu-section summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: #111;
    font-family: 'Montserrat', 'Noto Sans SC', sans-serif;
    font-size: 17px;
    font-weight: 800;
  }
  .mobile-menu-section summary i,
  .mobile-language-panel summary i {
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.18s ease;
  }
  .mobile-menu-section[open] summary,
  .mobile-language-panel[open] summary {
    color: var(--color-primary-dark);
    background: rgba(26, 92, 58, 0.07);
    border-radius: 6px;
    padding: 10px 12px;
    margin: -10px -12px 12px;
  }
  .mobile-menu-section[open] summary i,
  .mobile-language-panel[open] summary i {
    transform: rotate(225deg) translate(-2px, -2px);
  }
  .mobile-drawer-menu:has(.mobile-menu-section[open]) .mobile-menu-section:not([open]) summary {
    opacity: 0.58;
  }
  .mobile-menu-section > a {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #111;
    font-family: 'Montserrat', 'Noto Sans SC', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
  }
  .mobile-language-panel {
    margin-top: 22px;
    border: 0;
  }
  .mobile-language-panel summary {
    min-height: 48px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border-radius: 3px;
    background: #f6f7f6;
    color: var(--color-primary-dark);
    font-family: 'Montserrat', 'Noto Sans SC', sans-serif;
    font-size: 15px;
    font-weight: 700;
  }
  .mobile-language-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }
  .mobile-language-title svg {
    width: 20px;
    height: 20px;
  }
  .mobile-language-current {
    color: var(--color-primary-dark);
    font-weight: 700;
  }
  .mobile-language-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 8px;
    overflow: hidden;
    border: 1px solid rgba(26, 92, 58, 0.10);
    border-radius: 4px;
    background: #fff;
  }
  .mobile-language-option {
    min-height: 42px;
    padding: 0 14px;
    text-align: left;
    color: #333;
    background: #fff;
    border: 0;
    border-bottom: 1px solid rgba(15, 35, 25, 0.06);
    font-family: 'Montserrat', 'Noto Sans SC', sans-serif;
    font-size: 14px;
    font-weight: 600;
  }
  .mobile-language-option:last-child {
    border-bottom: 0;
  }
  .mobile-language-option.active {
    color: var(--color-primary-dark);
    background: var(--color-primary-bg2);
  }
}

@media (max-width: 420px) {
  .nav {
    width: 73vw;
    min-width: 270px;
  }
  .mobile-drawer-menu {
    padding-left: 24px;
    padding-right: 24px;
  }
  .mobile-menu-section summary {
    font-size: 16px;
  }
}

/* ---------- Mobile Drawer Menu Animation Enhancements ---------- */
@media (max-width: 900px) {
  .nav {
    will-change: transform, box-shadow;
    transform: translate3d(104%, 0, 0) scale(0.985);
    transform-origin: right center;
    transition:
      transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.38s ease;
  }
  .nav.open {
    transform: translate3d(0, 0, 0) scale(1);
  }
  .mobile-menu-backdrop {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition:
      opacity 0.36s ease,
      visibility 0.36s ease,
      backdrop-filter 0.36s ease,
      -webkit-backdrop-filter 0.36s ease;
  }
  body.mobile-menu-open .mobile-menu-backdrop {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  .mobile-drawer-head,
  .mobile-menu-link,
  .mobile-menu-section,
  .mobile-language-panel {
    opacity: 0;
    transform: translateX(18px);
    transition:
      opacity 0.32s ease,
      transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .nav.open .mobile-drawer-head,
  .nav.open .mobile-menu-link,
  .nav.open .mobile-menu-section,
  .nav.open .mobile-language-panel {
    opacity: 1;
    transform: translateX(0);
  }
  .nav.open .mobile-drawer-head { transition-delay: 0.06s; }
  .nav.open .mobile-drawer-menu > :nth-child(1) { transition-delay: 0.10s; }
  .nav.open .mobile-drawer-menu > :nth-child(2) { transition-delay: 0.13s; }
  .nav.open .mobile-drawer-menu > :nth-child(3) { transition-delay: 0.16s; }
  .nav.open .mobile-drawer-menu > :nth-child(4) { transition-delay: 0.19s; }
  .nav.open .mobile-drawer-menu > :nth-child(5) { transition-delay: 0.22s; }
  .nav.open .mobile-drawer-menu > :nth-child(6) { transition-delay: 0.25s; }
  .nav.open .mobile-drawer-menu > :nth-child(7) { transition-delay: 0.28s; }
  .nav.open .mobile-drawer-menu > :nth-child(8) { transition-delay: 0.31s; }
  .nav.open .mobile-drawer-menu > :nth-child(9) { transition-delay: 0.34s; }
  .mobile-menu-section summary,
  .mobile-language-panel summary,
  .mobile-menu-link,
  .mobile-menu-section > a,
  .mobile-language-option {
    transition:
      color 0.22s ease,
      background-color 0.22s ease,
      opacity 0.22s ease,
      transform 0.22s ease,
      padding 0.22s ease,
      margin 0.22s ease;
  }
  .mobile-menu-section > a,
  .mobile-language-options {
    animation: mobileSubMenuFadeIn 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .mobile-menu-section[open] > a:nth-of-type(1) { animation-delay: 0.02s; }
  .mobile-menu-section[open] > a:nth-of-type(2) { animation-delay: 0.04s; }
  .mobile-menu-section[open] > a:nth-of-type(3) { animation-delay: 0.06s; }
  .mobile-menu-section[open] > a:nth-of-type(4) { animation-delay: 0.08s; }
  .mobile-menu-section[open] > a:nth-of-type(5) { animation-delay: 0.10s; }
  .mobile-menu-section[open] > a:nth-of-type(6) { animation-delay: 0.12s; }
  .mobile-menu-section[open] > a:nth-of-type(7) { animation-delay: 0.14s; }
  .mobile-menu-section[open] > a:nth-of-type(8) { animation-delay: 0.16s; }
  .mobile-menu-section[open] > a:nth-of-type(9) { animation-delay: 0.18s; }
  .mobile-menu-section[open] > a:nth-of-type(10) { animation-delay: 0.20s; }
  .mobile-menu-section summary:active,
  .mobile-menu-link:active,
  .mobile-menu-section > a:active,
  .mobile-language-panel summary:active,
  .mobile-language-option:active {
    transform: scale(0.985);
  }
  .nav-toggle span {
    transition:
      transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.22s ease,
      background-color 0.22s ease;
  }
  body.mobile-menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  body.mobile-menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.3);
  }
  body.mobile-menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .mobile-drawer-close {
    transition: background-color 0.22s ease, transform 0.22s ease;
  }
  .mobile-drawer-close:active {
    transform: rotate(90deg) scale(0.96);
    background: rgba(26, 92, 58, 0.08);
  }
}

@keyframes mobileSubMenuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .nav,
  .mobile-menu-backdrop,
  .mobile-drawer-head,
  .mobile-menu-link,
  .mobile-menu-section,
  .mobile-language-panel,
  .mobile-menu-section summary,
  .mobile-language-panel summary,
  .mobile-menu-section > a,
  .mobile-language-option,
  .nav-toggle span,
  .mobile-drawer-close {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- User Fix: larger mobile header logo ---------- */
@media (max-width: 900px) {
  .header .logo-wrap {
    gap: 8px;
    min-width: auto;
  }

  .header .logo-image,
  .header .logo-extra {
    height: 34px;
    width: auto;
  }

  .header .logo-text {
    font-size: 1.02rem;
    line-height: 1.05;
    letter-spacing: 0.02em;
  }

  .header .logo-tagline {
    display: block;
    margin-top: 2px;
    font-size: 0.58rem;
    line-height: 1;
    letter-spacing: 0.05em;
  }
}

@media (max-width: 420px) {
  .header .logo-image,
  .header .logo-extra {
    height: 32px;
  }

  .header .logo-text {
    font-size: 0.96rem;
  }

  .header .logo-tagline {
    font-size: 0.54rem;
  }
}


/* ---------- Common Mobile Active State Fix ---------- */
@media (max-width: 900px) {
  .mobile-menu-section.active > summary {
    color: var(--color-primary-dark);
    font-weight: 800;
  }
  .mobile-menu-section > a.active {
    color: var(--color-primary-dark);
    background: var(--color-primary-bg2);
    border-radius: 6px;
    padding-left: 12px;
  }
}

/* ---------- User Fix: home desktop hero must start at viewport top ---------- */
/*
  首页电脑端顶部空白的实际来源是 main.css 后加载后，把 header 恢复成 sticky，
  sticky header 会占据 68px 文档流高度，即使 home.js 让导航视觉上隐藏，Hero 仍会被挤到下方。
  因此这里放在 main.css 末尾，用 .home-page 精准限定首页电脑端：header 脱离文档流，
  Hero/轮播层从页面 0 像素处开始铺满；移动端仍保留正常 header 与抽屉菜单。
*/
@media (min-width: 901px) {
  .home-page .header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    transform: translate3d(0, -110%, 0);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.32s ease,
      box-shadow 0.28s ease,
      background-color 0.28s ease;
    will-change: transform, opacity;
  }

  .home-page .header.header-visible {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    pointer-events: auto;
  }

  .home-page .hero {
    margin-top: 0 !important;
  }

  .home-page .hero-slide {
    background-position: center top !important;
  }
}
