/* ============================================
   Header & Footer 共享样式
   适用于所有页面
   ============================================ */

/* ---- Header ---- */

#brx-header.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 100%) !important;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

#brx-header.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header__logo img {
  width: 140px;
  height: auto;
  display: block;
}

/* Desktop nav */
.site-header__nav {
  display: none;
}

.site-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav > li {
  position: relative;
}

.site-nav > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 600;
  font-family: "Akshar", sans-serif;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.site-nav > li > a:hover,
.site-nav > li > a[aria-current="page"] {
  color: #4caf50;
}

.site-nav > li > a i {
  font-size: 10px;
  opacity: 0.7;
}

/* Dropdown */
.site-nav__dropdown {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: rgba(0, 0, 0, 0.95);
  border-radius: 10px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.site-nav__dropdown--sub {
  top: 0;
  left: 100%;
  margin-left: 4px;
}

.has-dropdown:hover > .site-nav__dropdown,
.has-dropdown:focus-within > .site-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-nav__dropdown li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: all 0.2s ease;
}

.site-nav__dropdown li a:hover,
.site-nav__dropdown li a.is-active {
  color: #4caf50;
  background: rgba(76, 175, 80, 0.08);
}

.site-nav__dropdown li a.is-active {
  font-weight: 600;
}

.site-nav__dropdown li a i {
  font-size: 10px;
  opacity: 0.5;
}

/* Header actions */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language switcher */
.lang-switcher {
  position: relative;
}

.lang-switcher__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-switcher__btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.lang-switcher__btn i {
  font-size: 14px;
}

.lang-switcher__arrow {
  font-size: 9px !important;
  transition: transform 0.3s ease;
}

.lang-switcher:hover .lang-switcher__arrow {
  transform: rotate(180deg);
}

.lang-switcher__menu {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 160px;
  background: rgba(0, 0, 0, 0.95);
  border-radius: 10px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.lang-switcher:hover .lang-switcher__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switcher__menu li a {
  display: block;
  padding: 9px 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: all 0.2s ease;
}

.lang-switcher__menu li a:hover,
.lang-switcher__menu li a.is-active {
  color: #4caf50;
  background: rgba(76, 175, 80, 0.08);
}

/* Mobile toggle */
.site-header__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.site-header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile menu */
.site-header__mobile {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: #0a0a0a;
  padding: 80px 0 30px;
  overflow-y: auto;
  transition: left 0.3s ease;
  z-index: 999;
}

.site-header.is-mobile-open .site-header__mobile {
  left: 0;
}

.site-header__mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header__mobile li a {
  display: block;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}

.site-header__mobile li a:hover {
  color: #4caf50;
  padding-left: 30px;
}

.site-header__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
}

.site-header.is-mobile-open .site-header__overlay {
  opacity: 1;
  visibility: visible;
}

/* Desktop breakpoint */
@media (min-width: 992px) {
  .site-header__nav {
    display: block;
  }

  .site-header__toggle {
    display: none;
  }
}

/* ---- Footer ---- */

.site-footer {
  background: #0a0a0a;
  padding: 50px 16px 0;
}

.site-footer__main {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-bottom: 40px;
}

/* Brand column */
.site-footer__brand {
  text-align: center;
}

.site-footer__logo {
  width: 120px;
  height: auto;
  margin-bottom: 16px;
}

.site-footer__company {
  color: #ffffff;
  font-family: "Archivo", sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
}

.site-footer__tagline {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  margin: 0 0 18px;
}

.site-footer__social {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.site-footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.site-footer__social a:hover {
  background: #4caf50;
  transform: translateY(-2px);
}

/* Navigation column */
.site-footer__nav {
  text-align: center;
}

.site-footer__heading {
  color: #ffffff;
  font-family: "Archivo", sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 18px;
  position: relative;
  padding-bottom: 10px;
}

.site-footer__heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  background: #4caf50;
  border-radius: 1px;
}

.site-footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}

.site-footer__nav li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer__nav li a:hover {
  color: #4caf50;
}

/* Contact column */
.site-footer__contact {
  text-align: center;
}

.site-footer__contact p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.site-footer__contact p i {
  color: #4caf50;
  font-size: 15px;
  width: 18px;
  text-align: center;
}

.site-footer__contact a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer__contact a:hover {
  color: #4caf50;
}

/* Bottom bar */
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 16px;
  text-align: center;
}

.site-footer__bottom p {
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
  margin: 4px 0;
}

.site-footer__bottom a {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer__bottom a:hover {
  color: rgba(255, 255, 255, 0.6);
}

.site-footer__bottom span {
  margin: 0 6px;
  opacity: 0.5;
}

/* ---- Tablet (768px+) ---- */
@media (min-width: 768px) {
  .site-footer {
    padding: 60px 24px 0;
  }

  .site-footer__main {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
  }

  .site-footer__brand {
    flex: 1 1 100%;
    text-align: left;
  }

  .site-footer__logo {
    margin-bottom: 12px;
  }

  .site-footer__social {
    justify-content: flex-start;
  }

  .site-footer__nav,
  .site-footer__contact {
    flex: 1 1 calc(50% - 20px);
    text-align: left;
  }

  .site-footer__heading::after {
    left: 0;
    transform: none;
  }

  .site-footer__nav ul {
    justify-content: flex-start;
  }

  .site-footer__contact p {
    justify-content: flex-start;
  }

  .site-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* ---- Desktop (992px+) ---- */
@media (min-width: 992px) {
  .site-footer__main {
    flex-wrap: nowrap;
    gap: 60px;
  }

  .site-footer__brand {
    flex: 1;
  }

  .site-footer__nav {
    flex: 0 0 200px;
  }

  .site-footer__contact {
    flex: 0 0 300px;
  }
}

/* ============================================
   Page Hero — Reusable Page Banner
   Usage: <section class="page-hero">...</section>
   ============================================ */
.page-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 100px 20px 50px 10vw;
  background-color: #0d0d0d;
  background-image:
    linear-gradient(135deg, rgba(13, 13, 13, 0.55) 0%, rgba(26, 26, 46, 0.45) 50%, rgba(15, 52, 96, 0.55) 100%),
    var(--page-hero-bg, none);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  text-align: left;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(76, 175, 80, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto 0 0;
}

.page-hero__title {
  font-size: clamp(22px, 4.5vw, 38px);
  font-weight: 700;
  font-family: "Archivo", sans-serif;
  color: #ffffff;
  line-height: 1.35;
  margin: 0 0 14px;
}

.page-hero__subtitle {
  font-size: clamp(13px, 2vw, 16px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 28px;
}

.page-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.page-hero__btn {
  display: inline-block;
  padding: 13px 32px;
  font-size: 15px;
  font-weight: 600;
  font-family: "Archivo", sans-serif;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.page-hero__btn--primary {
  color: #ffffff;
  background: #4caf50;
  border-color: #4caf50;
}

.page-hero__btn--primary:hover {
  background: #43a047;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(76, 175, 80, 0.35);
}

.page-hero__btn--outline {
  color: #ffffff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
}

.page-hero__btn--outline:hover {
  border-color: #4caf50;
  color: #4caf50;
  transform: translateY(-2px);
}

@media (min-width: 576px) {
  .page-hero__actions {
    flex-direction: row;
    justify-content: flex-start;
    gap: 16px;
  }
}

@media (max-width: 767px) {
  .page-hero {
    background-attachment: scroll;
  }
}
