/* ========== 站点头部：#2e2f36 深底 + 朱红点缀 ========== */
.site_header {
  --hdr-bg: #2e2f36;
  --hdr-bg-hover: #383940;
  --hdr-line: rgba(255, 255, 255, 0.1);
  --hdr-text: rgba(255, 255, 255, 0.78);
  --hdr-text-dim: rgba(255, 255, 255, 0.5);
  --hdr-white: #ffffff;
  --hdr-red: #e74c3c;
  --hdr-red-deep: #c0392b;
}
.site_header,
.site_header .main_header {
  background: var(--hdr-bg);
}

/* ========== header_top ========== */
.site_header .header_top {
  background: var(--hdr-bg);
  border-bottom: 1px solid var(--hdr-line);
  position: relative;
  z-index: 999;
}
.site_header .header_top::after {
  display: none;
}
.site_header .header_top .container {
  padding-top: 0;
  padding-bottom: 0;
}
.site_header .header_top .row {
  min-height: 36px;
}

.site_header .header_contact_us {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 36px;
}
.site_header .header_contact_item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--hdr-text-dim);
  font-size: 12px;
  padding: 0;
  transition: color 0.25s;
}
.site_header .header_contact_item:hover,
.site_header .header_contact_item a:hover {
  color: var(--hdr-white);
}
.site_header .header_contact_item i {
  font-size: 13px;
  color: var(--hdr-red);
}
.site_header .header_contact_item a {
  color: var(--hdr-text-dim);
  text-decoration: none;
  transition: color 0.25s;
}
.site_header .header_contact_divider {
  width: 1px;
  height: 12px;
  background: var(--hdr-line);
}

.site_header .header_account_area {
  text-align: right;
}
.site_header .header_account_area > ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  height: 36px;
  margin: 0;
  padding: 0;
}
.site_header .header_account_area > ul > li {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding: 0 14px;
  border: none;
  height: 36px;
}
.site_header .header_account_area > ul > li::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 12px;
  background: var(--hdr-line);
}
.site_header .header_account_area > ul > li:last-child::after {
  display: none;
}
.site_header .header_account_area > ul > li:last-child {
  border: none;
  padding-right: 0;
}
.site_header .header_account_area > ul > li > a {
  font-size: 12px;
  line-height: 1;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--hdr-text);
  text-decoration: none;
  transition: color 0.25s;
  white-space: nowrap;
}
.site_header .header_account_area > ul > li > a:hover {
  color: var(--hdr-white);
  transform: none;
}
.site_header .header_account_area > ul > li > a i {
  font-size: 12px;
}

.site_header .header_account_area .btn-login a {
  background: transparent;
  border: 1px solid var(--hdr-line);
  padding: 4px 13px;
  border-radius: 14px;
  color: var(--hdr-white) !important;
  box-shadow: none;
}
.site_header .header_account_area .btn-login a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--hdr-white) !important;
  transform: none;
}
.site_header .header_account_area .btn-register a {
  background: var(--hdr-red);
  border: 1px solid var(--hdr-red);
  color: #fff !important;
  padding: 4px 13px;
  border-radius: 14px;
  box-shadow: none;
}
.site_header .header_account_area .btn-register a:hover {
  background: var(--hdr-red-deep);
  border-color: var(--hdr-red-deep);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.35);
  transform: translateY(-1px);
  color: #fff !important;
}
.site_header .header_account_area .btn-login::after,
.site_header .header_account_area .btn-register::after {
  display: none;
}

/* ========== header_middle ========== */
.site_header .header_middle {
  background: var(--hdr-bg);
  padding: 16px 0;
  position: relative;
  z-index: 998;
  border-bottom: none;
}
.site_header .header_middle .container > .row_middle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site_header .header_middle .middle_left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.site_header .header_middle .canvas_open a {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--hdr-white);
  font-size: 20px;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}
.site_header .header_middle .canvas_open a:hover {
  background: var(--hdr-red);
  color: #fff;
}
.site_header .header_middle .logo {
  padding: 0;
}
.site_header .header_middle .logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.25s;
}
.site_header .header_middle .logo a:hover {
  opacity: 0.88;
}
.site_header .header_middle .logo img {
  max-height: 44px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}
.site_header .header_middle .logo .brand_tagline {
  display: flex;
  flex-direction: column;
  padding-left: 14px;
  border-left: 2px solid var(--hdr-red);
  line-height: 1.3;
}
.site_header .header_middle .logo .brand_tagline .tagline_main {
  font-size: 15px;
  font-weight: 700;
  color: var(--hdr-white);
  letter-spacing: 0.5px;
}
.site_header .header_middle .logo .brand_tagline .tagline_sub {
  font-size: 11px;
  color: var(--hdr-text-dim);
  letter-spacing: 0.4px;
}

.site_header .header_middle .middle_right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.site_header .header_middle .action_card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid var(--hdr-line);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s, background 0.25s;
  position: relative;
}
.site_header .header_middle .action_card:hover {
  border-color: rgba(231, 76, 60, 0.55);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}
.site_header .header_middle .action_card .card_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 15px;
  flex-shrink: 0;
}
.site_header .header_middle .action_card .card_text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.site_header .header_middle .action_card .card_text .card_label {
  font-size: 10px;
  color: var(--hdr-text-dim);
  text-transform: none;
  letter-spacing: 0.3px;
}
.site_header .header_middle .action_card .card_text .card_title {
  font-size: 13px;
  font-weight: 600;
  color: var(--hdr-white);
}

.site_header .header_middle .action_card.card_wishlist .card_icon {
  background: rgba(231, 76, 60, 0.16);
  color: #ff7a6c;
}
.site_header .header_middle .action_card.card_wishlist:hover .card_icon {
  background: var(--hdr-red);
  color: #fff;
}
.site_header .header_middle .action_card.card_wishlist span.item_count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  background: var(--hdr-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  padding: 0 5px;
  z-index: 2;
}

.site_header .header_middle .action_card.card_cart {
  border-color: var(--hdr-red);
  background: var(--hdr-red);
}
.site_header .header_middle .action_card.card_cart .card_icon {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 15px;
}
.site_header .header_middle .action_card.card_cart .card_text .card_label,
.site_header .header_middle .action_card.card_cart .card_text .card_title {
  color: #fff;
}
.site_header .header_middle .action_card.card_cart:hover {
  background: var(--hdr-red-deep);
  border-color: var(--hdr-red-deep);
  box-shadow: 0 8px 20px rgba(231, 76, 60, 0.35);
}
.site_header .header_middle .action_card.card_cart:hover .card_icon {
  background: rgba(255, 255, 255, 0.2);
}
.site_header .header_middle .action_card.card_cart:hover .card_text .card_label,
.site_header .header_middle .action_card.card_cart:hover .card_text .card_title {
  color: #fff;
}
.site_header .header_middle .action_card.card_cart span.item_count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  background: #1a1b20;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  padding: 0 5px;
  z-index: 2;
}

@media (max-width: 991px) {
  .site_header .header_middle {
    padding: 12px 0;
  }
  .site_header .header_middle .canvas_open a {
    display: inline-flex;
  }
  .site_header .header_middle .logo img {
    max-height: 36px;
  }
  .site_header .header_middle .logo .brand_tagline {
    display: none;
  }
  .site_header .header_middle .action_card {
    padding: 7px 10px;
    gap: 6px;
  }
  .site_header .header_middle .action_card .card_icon {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  .site_header .header_middle .action_card .card_text .card_title {
    font-size: 12px;
  }
}
@media (max-width: 767px) {
  .site_header .header_middle {
    padding: 10px 0;
  }
  .site_header .header_middle .container > .row_middle {
    gap: 10px;
  }
  .site_header .header_middle .middle_left {
    gap: 10px;
  }
  .site_header .header_middle .canvas_open a {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .site_header .header_middle .logo img {
    max-height: 32px;
  }
  .site_header .header_middle .middle_right {
    gap: 8px;
  }
  .site_header .header_middle .action_card {
    padding: 6px;
    border-radius: 10px;
    gap: 0;
    justify-content: center;
  }
  .site_header .header_middle .action_card .card_text {
    display: none;
  }
  .site_header .header_middle .action_card .card_icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
  }
}
@media (max-width: 575px) {
  .site_header .header_middle .canvas_open a {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
  .site_header .header_middle .logo img {
    max-height: 28px;
  }
  .site_header .header_middle .action_card .card_icon {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 991px) {
  .site_header .header_top .container {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .site_header .header_top .row {
    flex-direction: column;
    gap: 6px;
  }
  .site_header .header_contact_us {
    justify-content: center;
    flex-wrap: wrap;
    height: auto;
    gap: 12px;
  }
  .site_header .header_contact_divider {
    display: none;
  }
  .site_header .header_account_area {
    text-align: center;
  }
  .site_header .header_account_area > ul {
    justify-content: center;
    flex-wrap: wrap;
    height: auto;
  }
  .site_header .header_account_area > ul > li {
    height: auto;
    padding: 0 10px;
  }
  .site_header .header_account_area > ul > li > a {
    font-size: 12px;
    line-height: 28px;
  }
}
@media (max-width: 480px) {
  .site_header .header_contact_item {
    font-size: 11px;
  }
  .site_header .header_account_area > ul > li {
    padding: 0 6px;
  }
  .site_header .header_account_area > ul > li::after {
    display: none;
  }
}

/* ========== header_bottom 导航 ========== */
.site_header .header_bottom {
  background: var(--hdr-bg);
  position: relative;
  z-index: 997;
  border-bottom: none;
  box-shadow: none;
}
.site_header .header_bottom::before {
  display: none;
}
.site_header .header_bottom::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  height: 2px;
  background: var(--hdr-red);
  opacity: 1;
}
.site_header .header_bottom .container {
  position: relative;
}
.site_header .header_bottom .col-lg-12 {
  padding: 0;
}
.site_header .header_bottom .offset-lg-1 {
  margin-left: 0;
}

.site_header .main_menu {
  position: relative;
}
.site_header .main_menu nav {
  display: flex;
}
.site_header .main_menu nav > ul {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 0;
}
.site_header .main_menu nav > ul > li {
  position: relative;
  margin: 0;
}

.site_header .main_menu nav > ul > li > a {
  display: flex;
  align-items: center;
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--hdr-text);
  text-decoration: none;
  text-transform: none;
  padding: 0 22px;
  height: 48px;
  line-height: 1;
  letter-spacing: 0.2px;
  border-top: none;
  background: transparent;
  transition: color 0.25s, background 0.25s;
  z-index: 1;
}
.site_header .main_menu nav > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 22px;
  height: 3px;
  background: var(--hdr-red);
  border-radius: 3px 3px 0 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.site_header .main_menu nav > ul > li:hover > a,
.site_header .main_menu nav > ul > li > a:hover {
  color: var(--hdr-white);
  background: var(--hdr-bg-hover);
  border-top: none;
}
.site_header .main_menu nav > ul > li > a:hover::after {
  transform: translateX(-50%) scaleX(1);
}
.site_header .main_menu nav > ul > li > a.active {
  color: var(--hdr-white);
  font-weight: 700;
  background: transparent;
  border-top: none;
}
.site_header .main_menu nav > ul > li > a.active::after {
  transform: translateX(-50%) scaleX(1);
  width: 28px;
  background: var(--hdr-red);
}

.site_header .main_menu nav > ul > li:first-child > a {
  padding-left: 4px;
}
.site_header .main_menu nav > ul > li:first-child > a::before {
  display: none;
}

.site_header .main_menu nav > ul > li > ul.sub_menu {
  display: block;
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  position: absolute;
  top: 100%;
  left: 0;
  background: #26272d;
  min-width: 180px;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--hdr-line);
  max-height: none;
  transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
  z-index: 99;
}
.site_header .main_menu nav > ul > li:hover > ul.sub_menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  max-height: none;
  padding: 8px 0;
}
.site_header .main_menu nav > ul > li > ul.sub_menu li {
  list-style: none;
}
.site_header .main_menu nav > ul > li > ul.sub_menu li a {
  display: block;
  padding: 8px 18px;
  font-size: 13px;
  color: var(--hdr-text);
  text-decoration: none;
  transition: color 0.2s, background 0.2s, padding-left 0.2s;
  position: relative;
}
.site_header .main_menu nav > ul > li > ul.sub_menu li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 3px;
  height: 14px;
  background: var(--hdr-red);
  border-radius: 0 2px 2px 0;
  transition: transform 0.2s;
}
.site_header .main_menu nav > ul > li > ul.sub_menu li a:hover {
  color: var(--hdr-white);
  background: rgba(231, 76, 60, 0.12);
  padding-left: 24px;
}
.site_header .main_menu nav > ul > li > ul.sub_menu li a:hover::before {
  transform: translateY(-50%) scale(1);
}

.site_header .main_menu nav > ul > li .mega_menu {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #26272d;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--hdr-line);
  padding: 20px;
  min-width: 500px;
  max-height: none;
  transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
  z-index: 99;
}
.site_header .main_menu nav > ul > li:hover .mega_menu {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  max-height: none;
  padding: 20px;
}

.site_header .header_bottom.sticky-header.sticky {
  background: rgba(46, 47, 54, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  animation: headerSlideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.site_header .header_bottom.sticky-header.sticky::after {
  opacity: 1;
}
.site_header .header_bottom.sticky-header.sticky .main_menu nav > ul > li > a {
  height: 44px;
}
@keyframes headerSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 1199px) {
  .site_header .main_menu nav > ul > li > a {
    padding: 0 14px;
    font-size: 13px;
  }
  .site_header .main_menu nav > ul > li:first-child > a {
    padding-left: 0;
  }
}
@media (max-width: 991px) {
  .site_header .header_bottom {
    display: none;
  }
  .site_header .header_bottom.sticky-header.sticky {
    position: inherit;
    box-shadow: inherit;
    animation: none;
    background: inherit;
  }
}
