/* 公共导航栏和尾部样式 */

/* 通用样式 */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, Arial, sans-serif; color: #111; }
a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* 导航栏样式 */
.header { 
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0; 
  z-index: 20; 
  background: rgba(255, 255, 255, 0.95); 
  backdrop-filter: saturate(180%) blur(16px); 
  border: none; 
  outline: none; 
  box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
  overflow: visible;
}
.header-inner { 
  display: flex; 
  align-items: center; 
  justify-content: flex-start; 
  height: 64px; 
}
.brand { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  font-weight: 700; 
  letter-spacing: 0.3px; 
  margin-left: 0px; 
}
.logo { 
  display: flex; 
  align-items: center; 
}
.logo-icon { 
  display: block; 
  width: 406px; 
  height: 40px; 
  object-fit: contain; 
}
.brand-badge { 
  width: 22px; 
  height: 22px; 
  border-radius: 6px; 
  background: linear-gradient(135deg,#6b8cff,#b388ff); 
  display: grid; 
  place-items: center; 
  color: #fff; 
  font-size: 12px; 
  font-weight: 700; 
}
.nav { 
  display: flex; 
  align-items: center; 
  gap: 2rem; 
  margin-left: auto; 
  margin-right: 12px; 
}
.nav-link { 
  color: #444; 
  font-weight: 600; 
  transition: all 0.3s ease; 
  padding: 8px 16px; 
  border-radius: 20px; 
  position: relative; 
}
.nav-link:hover { 
  color: #ff6b6b; 
  background: rgba(255,107,107,0.1); 
}
.nav-link.active { 
  color: #ff6b6b; 
  background: rgba(255,107,107,0.15); 
  font-weight: 700; 
}

/* 产品下拉菜单 */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.dropdown-arrow {
  transition: transform 0.2s ease;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #111;
  color: #fff;
  border-radius: 8px;
  overflow: hidden;
  min-width: 150px;
  display: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  z-index: 1000;
  margin-top: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.dropdown-menu.show {
  display: block !important;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 14px;
  color: #fff;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(255,255,255,0.08);
}

/* 语言下拉菜单 */
.lang-wrap { 
  position: relative; 
}
.lang-trigger { 
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
  padding: 6px 12px; 
  background: #f3f4f6; 
  border-radius: 999px; 
  cursor: pointer; 
  font-weight: 600; 
}
.lang-menu { 
  position: absolute; 
  right: -100px; 
  margin-top: 8px; 
  background: #111; 
  color: #fff; 
  border-radius: 10px; 
  overflow: hidden; 
  min-width: 180px; 
  display: none; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.15); 
}
.lang-menu a { 
  display: block; 
  padding: 10px 14px; 
  color: #fff; 
}
.lang-menu a:hover { 
  background: rgba(255,255,255,0.08); 
}
.lang-wrap.open .lang-menu { 
  display: block; 
}

/* 尾部样式 */
.footer { 
  background: #333; 
  color: #fff; 
  padding: 3rem 2rem 1rem; 
  margin-top: 28px; 
}
.footer-content { 
  max-width: 1200px; 
  margin: 0 auto; 
}
.footer-main { 
  display: grid; 
  grid-template-columns: 1fr 2fr; 
  gap: 4rem; 
  margin-bottom: 2rem; 
  padding-bottom: 2rem; 
  border-bottom: 1px solid #555; 
}
.footer-company h3 { 
  font-size: 1.5rem; 
  font-weight: 600; 
  margin-bottom: 1rem; 
}
.footer-company .company-logo { 
  display: block; 
  height: auto; 
  max-width: 100%; 
  margin-bottom: 1rem; 
}
.footer-company p { 
  color: #ccc; 
  line-height: 1.6; 
  margin-bottom: 1.5rem; 
}
.contact-info { 
  display: flex; 
  flex-direction: column; 
  gap: 0.75rem; 
}
.contact-item { 
  display: flex; 
  align-items: center; 
  gap: 0.5rem; 
  color: #ccc; 
}
.footer-links { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 2rem; 
}
.footer-column h4 { 
  font-weight: 600; 
  margin-bottom: 1rem; 
  color: #fff; 
}
.footer-column ul { 
  list-style: none; 
  padding-left: 0; 
  margin: 0; 
  display: grid; 
  grid-auto-rows: 32px; 
  row-gap: 8px; 
}
.footer-column li { 
  list-style: none; 
}
.footer-column a { 
  color: #ccc; 
  text-decoration: none; 
  transition: color 0.3s ease; 
}
.footer-column a:hover { 
  color: #ff6b6b; 
}
.footer-bottom { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  color: #ccc; 
  font-size: 0.9rem; 
  padding-top: 0; 
}

/* 尾部语言下拉菜单 */
.language-dropdown { 
  position: relative; 
  display: inline-block; 
}
.language-selector { 
  display: flex; 
  align-items: center; 
  gap: 0.5rem; 
  color: #fff; 
  cursor: default; 
}
.language-dropdown-content { 
  display: none; 
  position: absolute; 
  right: 0; 
  background-color: rgba(0, 0, 0, 0.9); 
  min-width: 120px; 
  box-shadow: 0 8px 16px rgba(0,0,0,0.2); 
  z-index: 1; 
  border-radius: 8px; 
  margin-top: 0.5rem; 
}
.language-dropdown-content a { 
  color: #fff; 
  padding: 12px 16px; 
  text-decoration: none; 
  display: block; 
  transition: background-color 0.3s; 
}
.language-dropdown-content a:hover { 
  background-color: rgba(255, 107, 107, 0.2); 
}
.language-dropdown.active .language-dropdown-content { 
  display: block; 
}

/* 禁用尾部语言交互 */
#footerLanguageSelector { 
  pointer-events: none; 
  cursor: default; 
}
.footer .language-dropdown:hover .language-dropdown-content { 
  display: none; 
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .footer-main { 
    grid-template-columns: 1fr; 
  }
}
@media (max-width: 640px) {
  .nav { 
    display: none; 
  }
  .footer-main { 
    grid-template-columns: 1fr; 
  }
  .footer-links { 
    grid-template-columns: 1fr; 
  }
}
@media (max-width: 900px) {
  .nav-link { 
    padding: 6px 12px; 
    font-size: 14px; 
  }
}
