﻿/* ============================================
   微信 (WeChat) 适配 & 移动端响应式增强
   ============================================ */

/* --- 微信浏览器基础兼容 --- */
* { -webkit-tap-highlight-color: transparent; }

/* ====== 导航汉堡按钮 ====== */
.nav-toggle {
  display: none;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
  border-radius: 6px;
  touch-action: manipulation;
}
.nav-toggle:active { background: rgba(0,0,0,0.08); }
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  content: "";
  width: 22px;
  height: 2.5px;
  background: #000;
  border-radius: 2px;
  position: absolute;
  left: 50%;
  margin-left: -11px;
  transition: all 0.3s ease;
}
.nav-toggle-bar { top: 50%; margin-top: -1.25px; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle.open .nav-toggle-bar { background: transparent; }
.nav-toggle.open .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 768px) {
  .header { height: 72px; }
  .header-logo { font-size: 46px; }
  .header .wrapper { gap: 6px; padding: 0 14px; }
  .header-sub { position: static; transform: none; text-align: left; white-space: normal; }

  .header-sub-en { font-size: 13px; }
  .header-sub-zh { font-size: 20px; }
  .nav { height: auto; }
  .nav .nav-inner { position: relative; height: 44px; }
  .nav-toggle { display: block; }
  .nav-list { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: #07C160; box-shadow: 0 8px 24px rgba(0,0,0,0.15); height: auto; padding: 4px 0; z-index: 200; }
  .nav-list.open { display: flex; }
  .nav-item { height: auto; width: 100%; }
  .nav-link { height: 44px; padding: 0 16px; font-size: 15px; justify-content: flex-start; }
  .nav-lang { margin-left: 0; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-radius: 0; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; background: #A8EAC4; }
  .dropdown.open { max-height: 160px; }
  .dropdown-link { padding-left: 32px; font-size: 14px; }
  .page-container { padding: 16px 14px; }
  .page-container h1 { font-size: 22px; }
  .hero-banner { padding: 28px 16px; }
  .hero-banner h1 { font-size: 24px; }
  .hero-banner .tagline { font-size: 14px; }
  .quick-links { grid-template-columns: 1fr 1fr; gap: 10px; }
  .quick-link { padding: 12px 10px; font-size: 13px; min-height: 44px; }
  .adv-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .adv-card { padding: 16px; }
  .adv-card .icon { font-size: 26px; }
  .adv-card h4 { font-size: 14px; }
  .app-row .app-tag { font-size: 12px; padding: 5px 12px; margin: 3px; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100vw; margin-left: calc(-50vw + 50%); scrollbar-width: thin; }
  .table-wrap::-webkit-scrollbar { height: 4px; }
  .table-wrap::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }
  .table-wrap::after { content: "← 左右滑动 →"; display: block; text-align: center; font-size: 11px; color: #bbb; padding: 4px 0 0; }
  .auto-table { font-size: 12px; }
  .auto-table th, .auto-table td { padding: 7px 5px; white-space: nowrap; }
  .solutions-table { font-size: 13px; }
  .solutions-table th, .solutions-table td { padding: 8px 6px; }
  .solutions-table tbody td:first-child,
  .solutions-table tbody td:last-child { white-space: normal; }
  .news-timeline { padding-left: 28px; }
  .news-item { padding: 14px 16px; margin-bottom: 20px; }
  .news-item::before { left: -22px; width: 10px; height: 10px; top: 22px; }
  .news-title { font-size: 15px; }
  .contact-grid { gap: 16px; }
  .contact-grid .contact-card { font-size: 13px; padding: 18px 20px; line-height: 2; }
  .footer { font-size: 12px; padding: 16px 0; }
  .footer .wrapper { padding: 0 14px; }
  body { padding-bottom: env(safe-area-inset-bottom, 0); }
  .footer { padding-bottom: max(16px, calc(16px + env(safe-area-inset-bottom))); }
}

@media (max-width: 420px) {
  .header { height: 56px; }
  .header-logo { font-size: 32px; }
  .header-sub-zh { font-size: 17px; }
  .header-sub-en { font-size: 12px; }
  .quick-links { grid-template-columns: 1fr 1fr; gap: 8px; }
  .adv-grid { grid-template-columns: 1fr; }
  .hero-banner h1 { font-size: 18px; }
  .hero-banner .tagline { font-size: 13px; }
}

@media (hover: hover) and (pointer: fine) {
  .nav-link:hover, .nav-item:hover > .nav-link { color: #fff; background: #52B788; }
  .nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
}

















