/* ============================================
   导航与页脚 - 极速未来仪表风
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(3, 4, 10, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
  transition: all 0.3s ease;
}

.navbar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(229, 57, 53, 0), rgba(229, 57, 53, 0.8), rgba(0, 255, 136, 0));
}

.navbar.scrolled {
  background: rgba(3, 4, 10, 0.95);
  padding: 6px 0;
}

.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.navbar-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: var(--font-tech);
  letter-spacing: 0.2em;
  font-size: 0.95rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.navbar-logo span {
  font-size: 1.1rem;
}

.navbar-status {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.6);
}

.navbar-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-secondary);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.8);
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: 14px;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.navbar-link {
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  padding: 8px 12px;
  border-radius: 999px;
  position: relative;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.navbar-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-secondary);
  transition: width 0.25s ease, left 0.25s ease;
}

.navbar-link:hover::after {
  width: 100%;
  left: 0;
}

.navbar-link .caret {
  font-size: 0.65rem;
  margin-left: 2px;
  display: inline-block;
  transform: translateY(-1px);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(5, 7, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 12px;
  list-style: none;
  min-width: 220px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.35s ease 0.12s, transform 0.35s ease 0.12s;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.55);
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}

.dropdown-item {
  padding: 10px 16px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.85);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.65rem;
}

.dropdown-item:hover {
  background: rgba(229, 57, 53, 0.2);
  color: #fff;
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 20px;
  height: 2px;
  background: #fff;
  display: block;
  transition: all 0.2s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .navbar-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(3, 4, 10, 0.95);
    padding: 20px;
    gap: 10px;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
  }

  .navbar-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .dropdown-menu {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    box-shadow: none;
  }

  .hamburger {
    display: flex;
  }
}

main {
  margin-top: 110px;
}

footer {
  margin-top: var(--spacing-2xl);
  background: radial-gradient(circle at 20% 20%, rgba(229, 57, 53, 0.15), transparent 45%),
              #04050c;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--spacing-2xl) var(--spacing-lg);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-xl);
}

.footer-section h3 {
  margin-bottom: var(--spacing-sm);
  letter-spacing: 0.2em;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--spacing-md) 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
  color: var(--color-secondary);
}
