﻿

/* ========================================
   基础样式
   ======================================== */
body {
  margin: 0 auto;
  font-size: 14px;
  font-family: "Microsoft Yahei", "Hiragino Sans GB", Arial, sans-serif;
  line-height: 1.6;
  min-width: 320px;
  background: #fff;
  color: #333;
}
ul, dl, dd, h1, h2, h3, h4, h5, h6, form, p { padding: 0; margin: 0; }
ul { list-style: none; }
* { margin: 0; padding: 0; box-sizing: border-box; }
img { border: 0; max-width: 100%; }
a { color: #a78bfa; text-decoration: none; transition: color 0.2s; }
a:hover { color: #c4b5fd; }
.clear { clear: both; }

/* ========================================
   Site Header - 桌面端
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9000;
  background: linear-gradient(90deg, #1a0d2e 0%, #0d1a2d 100%);
  border-bottom: 1px solid rgba(139,92,246,0.15);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}
.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.3), rgba(99,102,241,0.2), transparent);
}
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
}

/* Header Logo */
.header-logo { flex-shrink: 0; }
.header-logo img { height: 48px; transition: opacity 0.2s; }
.header-logo:hover img { opacity: 0.85; }

/* Header Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 32px;
}
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.nav-item:hover, .nav-item.active {
  color: #fff;
  background: rgba(255,255,255,0.12);
}
.nav-link-main {
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.nav-link-main:hover { color: inherit; }

/* Nav Arrow */
.nav-arrow {
  width: 10px;
  height: 10px;
  margin-left: 4px;
  opacity: 0.7;
  transition: transform 0.2s;
  pointer-events: none;
  display: inline-block;
}
.has-dropdown.open .nav-arrow {
  transform: rotate(180deg);
}

/* Nav Highlight */
.nav-highlight {
  color: #a78bfa !important;
  font-weight: 500;
}
.nav-highlight:hover { color: #c4b5fd !important; }

/* Nav External Links */
.nav-external {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(34,197,94,0.15) 0%, rgba(16,185,129,0.15) 100%);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 20px;
  color: #4ade80 !important;
  font-weight: 500;
  padding: 6px 14px 6px 10px !important;
  transition: all 0.25s ease;
}
.nav-external:hover {
  background: linear-gradient(135deg, rgba(34,197,94,0.25) 0%, rgba(16,185,129,0.25) 100%);
  border-color: rgba(34,197,94,0.5);
  color: #86efac !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34,197,94,0.2);
}
.nav-external-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  flex-shrink: 0;
}

/* Dropdown Base */
.has-dropdown { position: relative; }
.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 280px;
  padding: 12px;
  background: rgba(15, 15, 25, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(139,92,246,0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
}
.has-dropdown.open .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}
.mega-dropdown .dropdown-panel { display: none; }

/* Mega Menu */
.mega-dropdown .mega-panel {
  position: fixed;
  top: 64px;
  left: 50%;
  width: 920px;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(15, 15, 25, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 25px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(139,92,246,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(10px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
}
.mega-dropdown.open .mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.mega-inner {
  display: flex;
  padding: 24px;
}
.mega-section {
  flex: 1;
  padding: 0 16px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.mega-section:last-child { border-right: none; }
.mega-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mega-icon { font-size: 14px; }
.mega-items { display: flex; flex-direction: column; gap: 4px; }
.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
}
.mega-item:hover { background: rgba(139,92,246,0.1); }
.mega-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
}
.mega-item-icon svg { width: 20px; height: 20px; stroke: #fff; }
.gradient-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.gradient-purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.gradient-cyan { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.gradient-green { background: linear-gradient(135deg, #10b981, #059669); }
.gradient-yellow { background: linear-gradient(135deg, #f59e0b, #d97706); }
.gradient-indigo { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.gradient-orange { background: linear-gradient(135deg, #f97316, #ea580c); }
.gradient-pink { background: linear-gradient(135deg, #ec4899, #db2777); }
.mega-item-content { flex: 1; min-width: 0; }
.mega-item-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}
.item-hot, .item-new {
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  border-radius: 4px;
}
.item-hot { background: linear-gradient(135deg, #ef4444, #f97316); }
.item-new { background: linear-gradient(135deg, #10b981, #06b6d4); }
.mega-item-desc {
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}
.mega-featured {
  width: 220px;
  padding: 0 0 0 20px;
  flex-shrink: 0;
}
.featured-card {
  padding: 20px;
  background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(99,102,241,0.1));
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 16px;
}
.featured-label {
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 600;
  color: #a78bfa;
  background: rgba(139,92,246,0.2);
  border-radius: 20px;
}
.featured-title {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.featured-desc {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.featured-btn {
  display: inline-block;
  padding: 10px 20px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}
.featured-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(139,92,246,0.4);
  color: #fff;
}
.featured-links { margin-top: 16px; }
.featured-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  color: #94a3b8;
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
}
.featured-link:last-child { border-bottom: none; }
.featured-link:hover { color: #fff; }
.featured-link svg { width: 12px; height: 12px; stroke: currentColor; }

/* Solution & Support Panels */
.solution-panel, .support-panel { min-width: 420px; }
.solution-grid, .support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 12px;
}
.solution-item, .support-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
  min-width: 180px;
}
.solution-item:hover, .support-item:hover { background: rgba(139,92,246,0.1); }
.solution-icon, .support-icon { font-size: 28px; }
.solution-content, .support-text { flex: 1; }
.solution-title { color: #fff; font-size: 14px; font-weight: 500; }
.solution-desc { color: #64748b; font-size: 12px; }
.support-text strong { display: block; color: #fff; font-size: 14px; font-weight: 500; }
.support-text span { color: #64748b; font-size: 12px; }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.btn-login, .btn-register, .btn-console {
  padding: 4px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-login {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-login:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
}
.btn-register {
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  border: none;
}
.btn-register:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(139,92,246,0.4);
}
.btn-console {
  color: #a78bfa;
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.3);
}
.btn-console:hover {
  color: #c4b5fd;
  background: rgba(139,92,246,0.15);
  border-color: rgba(139,92,246,0.5);
}
.btn-lang {
  padding: 6px 10px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-lang:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* Header User Menu */
.header-user-menu { position: relative; }
.header-user-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.2s;
}
.header-user-trigger:hover {
  background: rgba(139,92,246,0.15);
  border-color: rgba(139,92,246,0.3);
}
.header-user-avatar {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.header-user-name {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-user-arrow {
  width: 16px;
  height: 16px;
  fill: #94a3b8;
  transition: transform 0.2s;
}
.header-user-menu:hover .header-user-arrow { transform: rotate(180deg); }
.header-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  padding: 8px;
  background: #0f0f1a;
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s;
  z-index: 9999;
}
.header-user-menu:hover .header-user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.header-user-dropdown-header {
  padding: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-user-dropdown-name {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.header-user-dropdown-id {
  color: #64748b;
  font-size: 12px;
  margin-top: 2px;
}
.header-user-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.15s;
}
.header-user-dropdown a:hover {
  color: #fff;
  background: rgba(139,92,246,0.2);
}
.header-user-dropdown a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  opacity: 0.7;
}
.header-user-dropdown-divider {
  height: 1px;
  margin: 6px 0;
  background: rgba(255,255,255,0.06);
}
.header-user-dropdown .logout-link { color: #ef4444; }
.header-user-dropdown .logout-link:hover { background: rgba(239,68,68,0.1); }

/* ========================================
   Site Footer
   ======================================== */
.site-footer {
  background: linear-gradient(90deg, #1a0d2e 0%, #0d1a2d 100%);
  border-top: 1px solid rgba(139,92,246,0.15);
  padding: 32px 0 16px;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.footer-logo img { height: 52px; opacity: 0.9; }
.footer-desc { margin: 12px 0 0; color: rgba(255,255,255,0.7); font-size: 13px; }
.footer-runtime {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 12px;
  color: #8b5cf6;
  font-size: 12px;
  background: rgba(139,92,246,0.1);
  border-radius: 4px;
}
.site-footer:not(.mega-footer) .footer-col h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.site-footer:not(.mega-footer) .footer-col ul { list-style: none; }
.site-footer:not(.mega-footer) .footer-col li { margin: 6px 0; }
.site-footer:not(.mega-footer) .footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer:not(.mega-footer) .footer-col a:hover { color: #fff; }
.contact-line { color: #64748b; font-size: 13px; margin: 6px 0; }
.telegram-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 12px;
  color: #0088cc;
  font-size: 12px;
  background: rgba(0,136,204,0.1);
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}
.telegram-link:hover { background: rgba(0,136,204,0.15); }
.telegram-link img { width: 16px; height: 16px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-copyright { color: #64748b; font-size: 12px; }
.footer-links a {
  color: #64748b;
  font-size: 12px;
  margin-left: 20px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

/* ========================================
   移动端导航 - 基础样式
   ======================================== */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-nav-overlay.active {
  display: block;
  opacity: 1;
}
.mobile-nav-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  margin-right: 12px;
}
.mobile-nav-btn:hover,
.mobile-nav-btn:active {
  background: rgba(139,92,246,0.25);
  border-color: rgba(139,92,246,0.4);
}
.mobile-nav-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 16px;
  position: relative;
}
.mobile-nav-icon span {
  display: block;
  width: 18px;
  height: 2px;
  background: #a78bfa;
  border-radius: 2px;
  transition: all 0.3s ease;
  position: absolute;
  left: 1px;
}
.mobile-nav-icon span:nth-child(1) { top: 0; }
.mobile-nav-icon span:nth-child(2) { top: 7px; }
.mobile-nav-icon span:nth-child(3) { top: 14px; }
.mobile-nav-btn.active .mobile-nav-icon span:nth-child(1) {
  transform: rotate(45deg);
  top: 7px;
}
.mobile-nav-btn.active .mobile-nav-icon span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}
.mobile-nav-btn.active .mobile-nav-icon span:nth-child(3) {
  transform: rotate(-45deg);
  top: 7px;
}
.mobile-nav-header { display: none; }
body.mobile-nav-open { overflow: hidden; }

/* ========================================
   移动端媒体查询 (992px以下)
   ======================================== */
@media screen and (max-width: 992px) {
  .site-header { z-index: 100001 !important; }
  .mobile-nav-btn { display: flex; }
  .header-container { padding: 0 16px; height: 60px; }
  .header-logo img { height: 40px; }

  /* 导航抽屉 */
  .header-nav {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 320px !important;
    max-width: 88vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: linear-gradient(180deg, #12081f 0%, #0a1628 50%, #0d0d1a 100%) !important;
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 100000 !important;
    transform: translateX(-100%) !important;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow-y: auto !important;
    box-shadow: 4px 0 40px rgba(0,0,0,0.6), 0 0 80px rgba(139,92,246,0.1) !important;
    border-right: 1px solid rgba(139,92,246,0.15) !important;
  }
  .header-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: radial-gradient(ellipse at top left, rgba(139,92,246,0.15) 0%, transparent 60%);
    pointer-events: none;
  }
  .header-nav.active { transform: translateX(0) !important; }

  /* 导航头部 */
  .mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(180deg, rgba(139,92,246,0.08) 0%, transparent 100%);
    border-bottom: 1px solid rgba(139,92,246,0.12);
    flex-shrink: 0;
  }
  .mobile-nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
    flex-shrink: 0;
  }
  .mobile-nav-logo .cloud-icon {
    width: 18px;
    height: 18px;
    color: #fff;
  }
  .mobile-nav-title {
    flex: 1;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-left: 10px;
  }
  .mobile-nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    margin-left: 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.25s ease;
  }
  .mobile-nav-close svg { width: 12px; height: 12px; }
  .mobile-nav-close:hover,
  .mobile-nav-close:active {
    background: rgba(239,68,68,0.15);
    border-color: rgba(239,68,68,0.3);
    color: #f87171;
    transform: rotate(90deg);
  }

  /* 导航项 */
  .header-nav .nav-item:first-of-type { margin-top: 8px; }
  .header-nav .nav-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    margin: 2px 10px;
    font-size: 15px;
    font-weight: 500;
    color: #e2e8f0;
    border-radius: 12px;
    border-bottom: none;
    transition: all 0.2s ease;
  }
  .header-nav .nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #8b5cf6, #6366f1);
    border-radius: 0 3px 3px 0;
    transition: height 0.2s ease;
  }
  .header-nav .nav-item:hover,
  .header-nav .nav-item:active {
    background: rgba(139,92,246,0.1);
    color: #fff;
  }
  .header-nav .nav-item:active::before { height: 20px; }

  /* 下拉菜单 */
  .header-nav .has-dropdown {
    position: relative;
    display: block !important;
    margin: 2px 10px;
    border-radius: 12px;
    overflow: visible;
  }
  .header-nav .has-dropdown > .nav-link-main {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    width: 100%;
    min-height: 48px;
    font-size: 15px;
    font-weight: 500;
    color: #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .header-nav .has-dropdown > .nav-link-main:active {
    background: rgba(139,92,246,0.15);
  }
  .header-nav .has-dropdown > .nav-link-main .nav-arrow {
    width: 18px;
    height: 18px;
    padding: 4px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .header-nav .has-dropdown.mobile-open > .nav-link-main {
    background: rgba(139,92,246,0.12);
    color: #fff;
  }
  .header-nav .has-dropdown.mobile-open > .nav-link-main .nav-arrow {
    transform: rotate(180deg);
    background: rgba(139,92,246,0.3);
  }

  /* 下拉面板 */
  .header-nav .dropdown-panel,
  .header-nav .mega-panel {
    position: static !important;
    display: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    background: rgba(0,0,0,0.2) !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: inset 0 1px 0 rgba(139,92,246,0.1) !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    padding: 8px 10px 12px !important;
    overflow: visible !important;
  }
  .header-nav .has-dropdown.mobile-open .dropdown-panel,
  .header-nav .has-dropdown.mobile-open .mega-panel {
    display: block !important;
    animation: slideDown 0.25s ease;
  }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Mega menu 移动端 */
  .header-nav .mega-inner { display: block !important; padding: 0 !important; }
  .header-nav .mega-section { border: none !important; padding: 0 !important; }
  .header-nav .mega-section-title {
    display: block !important;
    padding: 10px 16px 6px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: #64748b !important;
    background: none !important;
    border: none !important;
  }
  .header-nav .mega-section-title .mega-icon { display: none !important; }
  .header-nav .mega-items { display: block !important; }
  .header-nav .mega-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 16px !important;
    margin: 2px 8px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
  }
  .header-nav .mega-item-icon {
    display: flex !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 8px !important;
  }
  .header-nav .mega-item-icon svg { width: 16px !important; height: 16px !important; }
  .header-nav .mega-item-content { flex: 1 !important; }
  .header-nav .mega-item-title {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #e2e8f0 !important;
  }
  .header-nav .mega-item-title .item-hot,
  .header-nav .mega-item-title .item-new {
    display: inline-block !important;
    padding: 1px 5px !important;
    font-size: 9px !important;
    margin-left: 6px !important;
  }
  .header-nav .mega-item-desc { display: none !important; }
  .header-nav .mega-item:hover,
  .header-nav .mega-item:active { background: rgba(139,92,246,0.12) !important; }
  .header-nav .mega-featured { display: none !important; }

  /* 解决方案面板 */
  .header-nav .solution-panel,
  .header-nav .support-panel {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .header-nav .solution-grid { display: block !important; padding: 0 !important; }
  .header-nav .solution-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 16px !important;
    margin: 2px 0 !important;
    border-radius: 8px !important;
  }
  .header-nav .solution-icon {
    display: flex !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    background: rgba(139,92,246,0.15) !important;
    border-radius: 8px !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
  }
  .header-nav .solution-content { flex: 1 !important; min-width: 0 !important; }
  .header-nav .solution-title { font-size: 14px !important; font-weight: 500 !important; color: #e2e8f0 !important; white-space: nowrap !important; }
  .header-nav .solution-desc { display: none !important; }
  .header-nav .solution-item:hover { background: rgba(139,92,246,0.12) !important; }

  /* 支持面板 */
  .header-nav .support-grid { display: block !important; padding: 0 !important; }
  .header-nav .support-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 16px !important;
    margin: 2px 0 !important;
    border-radius: 8px !important;
  }
  .header-nav .support-icon {
    display: flex !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    background: rgba(139,92,246,0.15) !important;
    border-radius: 8px !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
  }
  .header-nav .support-icon svg { width: 18px !important; height: 18px !important; }
  .header-nav .support-text { flex: 1 !important; min-width: 0 !important; }
  .header-nav .support-text strong { font-size: 14px !important; font-weight: 500 !important; color: #e2e8f0 !important; white-space: nowrap !important; }
  .header-nav .support-text span { display: none !important; }
  .header-nav .support-item:hover { background: rgba(139,92,246,0.12) !important; }

  /* 外部链接 */
  .header-nav .nav-external {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    margin: 2px 10px;
    font-size: 15px;
    font-weight: 500;
    color: #e2e8f0;
    border-radius: 12px;
    background: transparent;
    border: none;
  }
  .header-nav .nav-external:hover { background: rgba(139,92,246,0.1); }
  .header-nav .nav-external .nav-external-icon { width: 18px; height: 18px; opacity: 0.7; }

  /* 高亮按钮 */
  .header-nav .nav-highlight {
    display: block;
    padding: 12px 20px;
    margin: 12px 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(139,92,246,0.3);
  }
  .header-nav .nav-highlight:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139,92,246,0.4);
  }

  /* 底部留白 */
  .header-nav::after {
    content: '';
    display: block;
    height: 30px;
    flex-shrink: 0;
  }

  /* Header 操作区 */
  .header-actions { gap: 8px; }
  .header-actions .btn-login,
  .header-actions .btn-register,
  .header-actions .btn-console {
    padding: 8px 12px;
    font-size: 13px;
  }
  .header-actions .btn-lang { padding: 6px 8px; font-size: 11px; }
  .header-user-name { display: none; }
  .header-user-trigger { padding: 4px 8px 4px 4px; }
}


@media screen and (max-width: 600px) {
  .header-container { padding: 0 12px; height: 56px; }
  .mobile-nav-btn { width: 36px; height: 36px; margin-right: 8px; }
  .header-logo img { height: 36px; }
  .header-nav { width: 260px !important; }
  .header-actions .btn-login,
  .header-actions .btn-register,
  .header-actions .btn-console {
    padding: 6px 10px;
    font-size: 12px;
  }
  .header-actions .btn-lang { padding: 6px 8px; font-size: 11px; }

  /* Footer 响应式 */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .footer-links a { margin: 0 10px; }
}

/* ========================================
   通用工具类
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.hidden { display: none !important; }
.visible { display: block !important; }

/* ========================================
   语言下拉菜单样式（修复版，适配头部暗黑主题，无冲突）
   ======================================== */
.lang-dropdown {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
/* 统一头部按钮样式，与原有btn-lang对齐，消除冲突 */
.lang-dropdown .btn-lang {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 10px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  outline: none !important;
}
.lang-dropdown .btn-lang:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.15) !important;
}
.lang-dropdown .btn-lang img {
  width: 16px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}
/* 下拉菜单主体 - 完全适配头部暗黑风格 */
.lang-dropdown .dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 100px;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  background: rgba(15, 15, 25, 0.98) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
}
/* 下拉显示状态（统一类名，消除hover与show冲突） */
.lang-dropdown .dropdown-menu.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}
/* 下拉项样式 */
.lang-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  text-decoration: none;
  color: #e2e8f0;
  font-size: 13px;
  white-space: nowrap;
  transition: background 0.2s;
}
.lang-dropdown .dropdown-item:hover {
  background: rgba(139,92,246,0.15);
  color: #fff;
}
.lang-dropdown .dropdown-item img {
  width: 16px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}
/* 移动端适配 */
@media screen and (max-width: 600px) {
  .lang-dropdown {
    margin-left: 4px;
  }
  .lang-dropdown .btn-lang {
    padding: 5px 8px !important;
    font-size: 11px !important;
  }
  .lang-dropdown .dropdown-menu {
    min-width: 100px;
    right: 0;
  }
  .header-actions .btn-login,
  .header-actions .btn-register {
    padding: 0 8px !important;
    font-size: 12px !important;
    min-height: 30px !important;
  }
  .header-actions .btn-lang {
    padding: 0 6px !important;
    font-size: 11px !important;
    min-height: 30px !important;
  }
  .header-container { padding: 0 12px; height: 56px; }
  .mobile-nav-btn { width: 36px; height: 36px; margin-right: 8px; }
  .header-logo img { height: 36px; }
  .header-nav { width: 260px !important; }
  .header-actions .btn-login,
  .header-actions .btn-register,
  .header-actions .btn-console {
    padding: 6px 10px;
    font-size: 12px;
  }
  .header-actions .btn-lang { padding: 6px 8px; font-size: 11px; }

  /* Footer 响应式 */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .footer-links a { margin: 0 10px; }
}

/* ========================================
   移动端统一按钮高度：用户中心 / 退出 / 语言 完全对齐
   ======================================== */
@media screen and (max-width: 992px) {
  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  /* 统一所有操作按钮基础尺寸与居中 */
  .header-actions .btn-login,
  .header-actions .btn-register,
  .header-actions .btn-lang {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 32px !important;
    height: auto !important;
    padding: 0 10px !important;
    font-size: 13px !important;
    line-height: 1 !important;
    white-space: nowrap;
    border-radius: 8px !important;
    box-sizing: border-box !important;
  }
  /* 语言按钮单独精细对齐 */
  .header-actions .btn-lang {
    gap: 6px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
    min-height: 32px !important;
  }
  .header-actions .btn-lang img {
    flex-shrink: 0;
    margin: 0;
  }
}
