:root {
  --bg-dark: #050505;
  --bg-card: rgba(20, 20, 20, 0.8);
  --fg-primary: #FFFFFF;
  --fg-secondary: rgba(255, 255, 255, 0.7);
  --fg-muted: rgba(255, 255, 255, 0.5);
  --accent: #4080f0;
  --accent-gold: #FFD369;
  --border: rgba(255, 255, 255, 0.08);
  --glow: rgba(45, 255, 153, 0.15);
  --success: #4080f0;
  --error: #FF6B6B;
  --product-bg-brightness: 0.8;
  --product-bg-blur: 0px;
  --product-bg-scale: 1.05;
  --product-bg-filter: brightness(var(--product-bg-brightness)) blur(var(--product-bg-blur));
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--fg-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(64, 128, 240, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(255, 211, 105, 0.05), transparent);
  pointer-events: none;
  z-index: 0;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav.scrolled { height: 64px; background: rgba(5, 5, 5, 0.95); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.nav-logo-icon {
  width: 257px;
  height: 49px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: var(--bg-dark);
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-size: 20px;
  color: var(--fg-muted);
  text-decoration: none;
  font-weight: 300;
  letter-spacing: 0.02em;
  transition: all 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #4080f0, #8B5CF6);
  transition: width 0.3s ease;
}

.nav-link:hover { color: var(--fg-primary); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--fg-primary); }
.nav-link.active::after { width: 100%; }

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  display: flex;
  min-width: 520px;
  max-width: calc(100vw - 48px);
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 100;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}

.nav-dropdown-two-column {
  display: flex;
  width: 100%;
}

.nav-dropdown-left {
  width: 160px;
  background: rgba(255, 255, 255, 0.02);
  padding: 8px;
  flex-shrink: 0;
}

.nav-dropdown-cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 8px;
  white-space: nowrap;
}

.nav-dropdown-cat-item:hover,
.nav-dropdown-cat-item.active {
  background: rgba(64, 128, 240, 0.1);
  color: #fff;
}

.nav-dropdown-cat-item.active {
  color: var(--accent);
}

.nav-dropdown-cat-icon {
  width: 28px;
  height: 28px;
  background: rgba(64, 128, 240, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-dropdown-cat-icon svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.nav-dropdown-cat-name {
  flex: 1;
  font-weight: 500;
}

.nav-dropdown-cat-arrow {
  width: 14px;
  height: 14px;
  opacity: 0.3;
  transition: all 0.2s ease;
}

.nav-dropdown-cat-item:hover .nav-dropdown-cat-arrow,
.nav-dropdown-cat-item.active .nav-dropdown-cat-arrow {
  opacity: 0.6;
  transform: translateX(2px);
}

.nav-dropdown-right {
  flex: 1;
  padding: 8px;
  min-width: 320px;
}

.nav-dropdown-series-panel {
  display: none;
}

.nav-dropdown-series-panel.active {
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.nav-dropdown-series-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-dropdown-series-item:hover {
  background: rgba(64, 128, 240, 0.08);
  color: #fff;
}

.nav-dropdown-series-name {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  min-width: 65px;
  transition: color 0.2s ease;
}

.nav-dropdown-series-item:hover .nav-dropdown-series-name {
  color: var(--accent);
}

.nav-dropdown-series-desc {
  flex: 1;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-dropdown-series-specs {
  font-size: 8px;
  color: var(--accent-gold);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  background: rgba(255, 211, 105, 0.08);
  flex-shrink: 0;
}



.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fg-primary);
  transition: all 0.3s ease;
  border-radius: 1px;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 5, 5, 0.98);
  backdrop-filter: blur(30px);
  z-index: 999;
  padding: 32px 24px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: none;
  overflow-y: auto;
}

.mobile-menu.open { transform: translateX(0); }

.mobile-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--fg-secondary);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.mobile-menu-link:hover, .mobile-menu-link.active { 
  color: var(--fg-primary); 
}

.mobile-menu-link svg { 
  width: 18px; 
  height: 18px; 
  opacity: 0.5; 
}

.mobile-dropdown {
  width: 100%;
}

.mobile-dropdown-trigger {
  cursor: pointer;
}

.mobile-dropdown-arrow {
  width: 18px;
  height: 18px;
  opacity: 0.5;
  transition: transform 0.3s ease;
}

.mobile-dropdown.open .mobile-dropdown-arrow {
  transform: rotate(90deg);
}

.mobile-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  overflow-y: auto;
  transition: max-height 0.4s ease;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  margin-top: 8px;
}

.mobile-dropdown.open .mobile-dropdown-menu {
  max-height: 500px;
}

.mobile-category-group {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-category-group:last-child {
  border-bottom: none;
}

.mobile-category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  color: var(--fg-secondary);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-category-header:active {
  background: rgba(64, 128, 240, 0.08);
}

.mobile-category-header.active {
  color: var(--accent);
}

.mobile-category-header.active .mobile-category-icon {
  background: rgba(64, 128, 240, 0.2);
}

.mobile-category-header.active .mobile-category-arrow {
  color: var(--accent);
  opacity: 0.8;
}

.mobile-category-icon {
  width: 28px;
  height: 28px;
  background: rgba(64, 128, 240, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-category-icon svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.mobile-category-name {
  flex: 1;
}

.mobile-category-arrow {
  width: 16px;
  height: 16px;
  opacity: 0.4;
  transition: all 0.2s ease;
}

.mobile-category-group.open .mobile-category-arrow {
  transform: rotate(90deg);
  color: var(--accent);
}

.mobile-category-items {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding-left: 12px;
}

.mobile-category-group.open .mobile-category-items {
  max-height: 300px;
}

.mobile-series-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 11px;
  transition: all 0.2s ease;
  border-radius: 8px;
  margin: 2px 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
}

.mobile-series-item:active {
  background: rgba(64, 128, 240, 0.08);
}

.mobile-series-name {
  font-weight: 500;
  color: var(--fg-primary);
  font-size: 11px;
}

.mobile-series-item svg {
  width: 14px;
  height: 14px;
  opacity: 0.3;
  flex-shrink: 0;
}

.footer {
  padding: 80px 48px 40px;
  border-top: 1px solid var(--border);
  background: transparent;
  position: relative;
  z-index: 1;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand {
  flex-shrink: 0;
  max-width: 280px;
}

.footer-brand p {
  font-size: 11px;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-top: 16px;
}

.footer-nav {
  display: flex;
  gap: 80px;
}

.footer-col {
  min-width: 120px;
}

.footer-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-primary);
  margin-bottom: 24px;
  height: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-link {
  font-size: 11px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.3s;
  line-height: 1.5;
}

.footer-link:hover { color: var(--fg-primary); }

.footer-contact-item {
  margin-bottom: 14px;
  line-height: 1.5;
}

.footer-contact-item:last-child { margin-bottom: 0; }

.footer-contact-label {
  font-size: 11px;
  color: var(--fg-muted);
}

.footer-contact-value {
  font-size: 11px;
  color: var(--fg-primary);
  font-weight: 500;
}

.footer-qrcode-col {
  min-width: 200px;
}

.footer-qrcodes {
  display: flex;
  gap: 20px;
}

.footer-qrcode-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-qrcode {
  width: 90px;
  height: 90px;
  background: #fff;
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.footer-qrcode img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-qrcode-label {
  font-size: 9px;
  color: var(--fg-muted);
  text-align: center;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-copyright {
  font-size: 10px;
  color: var(--fg-muted);
}

.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Page Footer (统一底部栏) ===== */
.page-footer {
  position: relative;
  padding: 60px 48px 30px;
  background: #0a0f1e;
}

.footer-curve {
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  height: 80px;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 100, 255, 0.5) 0%, rgba(0, 80, 200, 0.2) 50%, transparent 80%);
  pointer-events: none;
}

.page-footer .footer-content {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: nowrap;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.page-footer .footer-column {
  flex: 1;
  text-align: center;
}

.page-footer .footer-title {
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.page-footer .footer-list {
  list-style: none;
  padding: 0;
}

.page-footer .footer-list li {
  font-size: 9px;
  color: #ffffff;
  line-height: 2;
}

.page-footer .footer-contact p {
  font-size: 9px;
  color: #ffffff;
  line-height: 2;
}

.page-footer .contact-label {
  color: #ffffff;
}

.page-footer .contact-value {
  color: #ffffff;
}

.page-footer .footer-qr-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.page-footer .qr-item {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-footer .qr-code {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.page-footer .footer-copy {
  text-align: center;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

@media (max-width: 1024px) {
  .nav { padding: 0 24px; height: 64px; }
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .mobile-menu { display: block; top: 64px; }
  .footer { padding: 60px 24px 32px; }
  .footer-content { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

@media (max-width: 768px) {
  .nav { padding: 0 16px; height: 60px; }
  .nav-logo-icon {
    width: 180px !important;
    height: 34px !important;
  }
  .mobile-menu { top: 60px; }
  .footer { padding: 32px 16px 24px; }
  .footer-content { flex-direction: column; gap: 24px; }
  .footer-brand { max-width: 100%; text-align: center; order: 1; display: flex; flex-direction: column; align-items: center; }
  .footer-brand p { display: none; }
  .footer-brand .nav-logo { margin: 0 auto; }
  .footer-brand .nav-logo-icon { margin: 0 auto; }
  .footer-nav { flex-direction: column; gap: 20px; order: 3; }
  .footer-col { width: 100%; text-align: center; }
  .footer-col h4 { display: block; font-size: 11px; margin-bottom: 10px; text-align: center; }
  .footer-links { display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: center; gap: 0; white-space: nowrap; }
  .footer-links .footer-link { font-size: 9px; padding: 0 4px; }
  .footer-links .footer-link:not(:last-child)::after {
    content: '|';
    margin-left: 4px;
    color: var(--fg-muted);
    opacity: 0.3;
  }
  .footer-col:last-child h4 { display: none; }
  .footer-contact-item { text-align: center; display: inline-flex; flex-direction: row; align-items: baseline; margin: 0 4px; }
  .footer-contact-item .footer-contact-label { display: inline-block; margin-right: 2px; font-size: 8px; }
  .footer-contact-item .footer-contact-value { display: inline-block; font-size: 8px; }
  .footer-qrcode-col { display: block; width: 100%; order: 2; text-align: center; }
  .footer-qrcode-col h4 { display: block; text-align: center; margin-bottom: 12px; }
  .footer-qrcodes { justify-content: center; gap: 24px; display: flex; align-items: center; }
  .footer-qrcode { width: 70px; height: 70px; padding: 4px; }
  .footer-qrcode-label { font-size: 8px; }
  .footer-bottom { padding-top: 20px; order: 4; }
  .footer-copyright { font-size: 8px; text-align: center; }

  /* Page Footer Mobile */
  .page-footer {
    padding: 40px 16px 20px;
  }
  .footer-curve {
    top: -40px;
    height: 80px;
  }
  .page-footer .footer-content {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 12px;
  }
  .page-footer .footer-column {
    flex: 1;
    text-align: center;
    min-width: 0;
  }
  .page-footer .footer-title {
    font-size: 11px;
    margin-bottom: 16px;
  }
  .page-footer .footer-list li,
  .page-footer .footer-contact p {
    font-size: 9px;
    line-height: 2.2;
  }
  .page-footer .footer-qr-list {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
  .page-footer .qr-item {
    width: 70px;
    height: 70px;
  }
  .page-footer .qr-code {
    width: 50px;
    height: 50px;
  }
  .page-footer .footer-copy {
    font-size: 8px;
    padding-top: 16px;
  }
}