/* ============================================
   COMTELS Shared Header Styles
   ============================================ */

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.header-inner .logo {
  display: flex;
  align-items: center;
  position: absolute;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 36px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a {
  text-decoration: none;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}

.nav a:hover {
  color: var(--indigo);
}

.nav .cta {
  background: var(--indigo);
  color: white;
  padding: 10px 22px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
}

.nav .cta:hover {
  background: var(--indigo-dark);
  box-shadow: 0 4px 14px rgba(79, 70, 229, .3);
}

/* NAV DROPDOWN */
.nav-dropdown {
  position: relative
}

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

.nav-arrow {
  font-size: 10px;
  transition: transform .2s
}

.nav-dropdown:hover .nav-arrow {
  transform: rotate(180deg)
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -16px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .12);
  padding: 8px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all .2s;
  border: 1px solid var(--gray-100)
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0)
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  white-space: nowrap
}

.nav-dropdown-menu a:hover {
  background: var(--indigo-50);
  color: var(--indigo)
}

.nav-sub-dropdown {
  position: relative
}

.nav-sub-dropdown>a {
  display: block;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--gray-600);
  text-decoration: none;
  white-space: nowrap
}

.nav-sub-dropdown>a:hover {
  background: var(--indigo-50);
  color: var(--indigo)
}

.nav-sub-menu {
  position: absolute;
  left: 100%;
  top: -8px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .12);
  padding: 8px;
  min-width: 130px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-8px);
  transition: all .2s;
  border: 1px solid var(--gray-100)
}

.nav-sub-dropdown:hover .nav-sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0)
}

/* LANGUAGE SWITCH */
.lang-switch {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--gray-500);
}

.lang-switch a {
  color: var(--gray-500);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all .2s;
  font-weight: 500;
}

.lang-switch a:hover {
  color: var(--indigo);
  background: var(--indigo-50);
}

.lang-switch a.active {
  color: var(--indigo);
  font-weight: 600;
}

.lang-switch span {
  color: var(--gray-300);
}

/* TENCENT CLOUD BADGE */
.tencent-cloud-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  padding: 6px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0052d9, #1e88e5);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 82, 217, .3);
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .header-inner {
    padding: 0 24px;
  }
}