/*
 * ailhj-theme.css - AI Global Styles
 * - Brand variables (:root)
 * - Override zibll color classes (b-* / c-*)
 * - Button extensions (.but.ailhj-btn-*)
 * - Dark theme overrides (.dark-theme)
 * - Slider tabs
 * - Global utilities
 *
 * All custom global styles go here. Component-specific styles go in ailhj-{name}.css
 */

/* ============================================================
   Brand Variables
   ============================================================ */
:root {
  /* Primary blue */
  --ailhj-blue: #0172ff;
  --ailhj-blue-light: #43aaff;
  --ailhj-blue-dark: #0038ff;
  --ailhj-blue-deep: #0055ff;
  --ailhj-blue-grad: linear-gradient(92deg, #008eff, #0038ff 52%, #0055ff);

  /* Blue opacity scale (mirrors zibll focus-color-opacity* naming) */
  --ailhj-blue-op05: rgba(1, 114, 255, 0.05);
  --ailhj-blue-op1: rgba(1, 114, 255, 0.1);
  --ailhj-blue-op15: rgba(1, 114, 255, 0.15);
  --ailhj-blue-op3: rgba(1, 114, 255, 0.3);
  --ailhj-blue-op6: rgba(1, 114, 255, 0.6);
  --ailhj-blue-op9: rgba(1, 114, 255, 0.9);
  --ailhj-blue-shadow: rgba(1, 114, 255, 0.35);

  /* Extended palette - aligned with zibll b-* / c-* class names */
  --ailhj-red: #f03e3e;
  --ailhj-red-light: #ff6b6b;
  --ailhj-red-dark: #c92a2a;
  --ailhj-red-op05: rgba(240, 62, 62, 0.05);
  --ailhj-red-op1: rgba(240, 62, 62, 0.1);
  --ailhj-red-op15: rgba(240, 62, 62, 0.15);
  --ailhj-red-op3: rgba(240, 62, 62, 0.3);
  --ailhj-red-op6: rgba(240, 62, 62, 0.6);
  --ailhj-red-op9: rgba(240, 62, 62, 0.9);

  --ailhj-orange: #f76707;
  --ailhj-orange-op1: rgba(247, 103, 7, 0.1);

  --ailhj-yellow: #f59f00;
  --ailhj-yellow-op1: rgba(245, 159, 0, 0.1);

  --ailhj-green: #2f9e44;
  --ailhj-green-op1: rgba(47, 158, 68, 0.1);

  --ailhj-cyan: #0c8599;
  --ailhj-cyan-op1: rgba(12, 133, 153, 0.1);

  --ailhj-purple: #7048e8;
  --ailhj-purple-op1: rgba(112, 72, 232, 0.1);
  /* Transition */
  --ailhj-transition: 0.25s ease;
}

/* ============================================================
   Override zibll body variables (light mode)
   ============================================================ */
body {
  /* Theme color - replaces default pink #f04494 */
  --theme-color: var(--ailhj-blue);
  --usercenter-bg-color: #f7fbfd !important;
  --focus-color: var(--ailhj-blue) !important;
  --focus-shadow-color: var(--ailhj-blue-shadow);
  --focus-color-opacity1: var(--ailhj-blue-op1);
  --focus-color-opacity05: var(--ailhj-blue-op05);
  --focus-color-opacity3: var(--ailhj-blue-op3);
  --focus-color-opacity6: var(--ailhj-blue-op6);
  /* Layout */
  --mian-max-width: 1280px;
  --main-radius: 8px !important;
  --model-radius: 16px !important;
  --posts-card-scale: 70%;
  --posts-list-scale: 70%;
  --single-cover-scale: 35%;

  /* Text */
  --key-color: #1a1d23;
  --main-color: #3d4350;
  --muted-color: #6b7280;
  --muted-2-color: #9ca3af;
  --muted-3-color: #c4c9d4;
  --muted-4-color: #e2e5eb;

  /* Background */
  --body-bg-color: #f0f2f5;
  --main-bg-color: #ffffff;
  --muted-bg-color: #e8eaed;

  /* Borders */
  --main-border-color: rgba(30, 40, 60, 0.07);
  --muted-border-color: rgba(30, 40, 60, 0.03);

  /* Shadow */
  --main-shadow: rgba(1, 114, 255, 0.06);

  /* Glassmorphism */
  --blur-bg: rgba(255, 255, 255, 0.85) !important;
  --float-btn-bg: rgba(210, 220, 240, 0.45);

  /* Header / Footer inherit from above */
  --header-bg: var(--blur-bg);
  --header-color: var(--main-color);
  --footer-bg: var(--main-bg-color);
  --footer-color: var(--muted-2-color);
  --border-radius: 8px;
  background: var(--usercenter-bg-color);
}
/* ============================================================
   Override zibll color classes
   Only --this-bg / --this-color are changed; class structure untouched
   ============================================================ */
/* 首页全宽 */
body.home .container {
    max-width: 100% !important;
}
/* Blue */
.b-blue {
  --this-bg: var(--ailhj-blue);
}
.b-blue-2 {
  --this-bg: var(--ailhj-blue-dark);
}
.c-blue {
  --this-color: var(--ailhj-blue);
  --this-bg: var(--ailhj-blue-op1);
}
.c-blue-2 {
  --this-color: var(--ailhj-blue-dark);
  --this-bg: var(--ailhj-blue-op1);
}

/* Red */
.b-red {
  --this-bg: var(--ailhj-red);
}
.c-red {
  --this-color: var(--ailhj-red);
  --this-bg: var(--ailhj-red-op1);
}

/* Orange / Yellow */
.b-yellow {
  --this-bg: var(--ailhj-orange);
}
.c-yellow {
  --this-color: var(--ailhj-orange);
  --this-bg: var(--ailhj-orange-op1);
}
.c-yellow-2 {
  --this-color: var(--ailhj-yellow);
  --this-bg: var(--ailhj-yellow-op1);
}

/* Green */
.b-green {
  --this-bg: var(--ailhj-green);
}
.c-green {
  --this-color: var(--ailhj-green);
  --this-bg: var(--ailhj-green-op1);
}

/* Cyan */
.b-cyan {
  --this-bg: var(--ailhj-cyan);
}
.c-cyan {
  --this-color: var(--ailhj-cyan);
  --this-bg: var(--ailhj-cyan-op1);
}

/* Purple */
.b-purple {
  --this-bg: var(--ailhj-purple);
}
.c-purple {
  --this-color: var(--ailhj-purple);
  --this-bg: var(--ailhj-purple-op1);
}

/* ============================================================
   Button extensions (must be used together with .but)
   ============================================================ */

/* Solid primary */
.but.ailhj-btn-primary {
  --this-bg: var(--ailhj-blue-grad);
  --this-color: #fff;
  --this-border: transparent;
  font-weight: 500;
}
.but.ailhj-btn-primary:hover {
  opacity: 0.88;
}

.badg,
.but,
.post-page-numbers {
  border: none;
}

/* Gradient - alias of primary */
.but.ailhj-btn-grad {
  --this-bg: var(--ailhj-blue-grad);
  --this-color: #fff;
  --this-border: transparent;
  font-weight: 500;
}
.but.ailhj-btn-grad:hover {
  opacity: 0.88;
}

/* White solid - dark text */
.but.ailhj-btn-white {
  --this-bg: #ffffff;
  --this-color: #1a1d23;
  --this-border: transparent;
  font-weight: 500;
}
.but.ailhj-btn-white:hover {
  opacity: 0.88;
}

/* Outline */
.but.ailhj-btn-outline {
  --this-bg: var(--ailhj-blue);
  --this-color: var(--ailhj-blue);
  background: transparent;
  --this-border: var(--ailhj-blue);
  border: 1px solid var(--this-border);
}
.but.ailhj-btn-outline:hover {
  background: var(--ailhj-blue);
  --this-color: #fff;
  opacity: 1;
}

/* Ghost (glassmorphism, for dark backgrounds) */
.but.ailhj-btn-ghost {
  --this-bg: var(--ailhj-blue-op15);
  --this-color: var(--ailhj-blue);
  --this-border: var(--ailhj-blue-op15);
  backdrop-filter: blur(4px);
}
.but.ailhj-btn-ghost:hover {
  --this-bg: var(--ailhj-blue-op1);
  box-shadow: 0 0 0 1px var(--ailhj-blue);
  opacity: 1;
}

/* Focus ring for all ailhj buttons */
.but.ailhj-btn-primary:focus,
.but.ailhj-btn-grad:focus,
.but.ailhj-btn-outline:focus,
.but.ailhj-btn-ghost:focus {
  box-shadow: 0 0 0 0px var(--ailhj-blue-shadow);
  outline: none;
}

/* ============================================================
   Dark theme overrides
   ============================================================ */
.dark-theme {
  --theme-color: var(--ailhj-blue);
  --focus-color: var(--ailhj-blue);
  --focus-shadow-color: var(--ailhj-blue-shadow);

  /* Background layers */
  --body-bg-color: #0d1117;
  --main-bg-color: #161b22;
  --muted-bg-color: #1c2128;

  /* Text layers */
  --key-color: #e6edf3;
  --main-color: #b1bac4;
  --muted-color: #8b949e;
  --muted-2-color: #6e7681;
  --muted-3-color: #484f58;
  --muted-4-color: #30363d;

  /* Borders */
  --main-border-color: rgba(99, 110, 123, 0.15);
  --muted-border-color: rgba(99, 110, 123, 0.06);

  /* Shadows */
  --main-shadow: rgba(0, 0, 0, 0.3);

  /* Glassmorphism / float buttons */
  --blur-bg: rgba(22, 27, 34, 0.85);
  --float-btn-bg: rgba(30, 40, 55, 0.6);

  /* Header / Footer */
  --header-bg: rgba(13, 17, 23, 0.9);
  --header-color: #b1bac4;
  --footer-bg: #161b22;
  --footer-color: #6e7681;
}

/* ============================================================
   Slider tabs (progress indicator)
   Shown when banner count >= 2 (injected by JS).
   Positioned bottom-left, aligned with left-conter content edge.
   ============================================================ */
.ailhj-slider-tabs {
  position: absolute;
  bottom: 20%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  padding-left: calc((100% - var(--mian-max-width)) / 2 + 15px);
  gap: 8px;
  z-index: 10;
  pointer-events: none;
}

.ailhj-slider-tab {
  position: relative;
  width: 32px;
  height: 5px;
  border-radius: 3px;
  cursor: pointer;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
  transition: width 0.3s ease;
}

.ailhj-slider-tab.active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: #ffffff;
  transition: width linear var(--tab-duration, 4s);
  animation: none;
}

.ailhj-slider-tab.active.running::after {
  width: 100%;
}

@media (max-width: 992px) {
  .ailhj-slider-tabs {
    padding-left: 20px;
    bottom: 20px;
  }
  .sidebar {
    display: block;
}
}

@media (max-width: 576px) {
  .ailhj-slider-tabs {
    display: none;
  }
  .sidebar {
    display: none;
}
.mobile-navbar {
    z-index: 997;
    position: fixed;
    top: 0;
    bottom: 0;
    background: var(--main-bg-color);
    width: 281px;
    padding: 20px 20px 70px;
    transition: transform .5s;
}
}

/* ============================================================
   Utilities
   ============================================================ */

/* 待支付按钮 - 覆盖子比主题默认粉色，使用主题色 */
.float-right-wait-pay .wait-pay-btn {
  --this-bg: var(--ailhj-blue-op9) !important;
  --this-color: #ffffff !important;
}

/* 禁用顶部导航开通会员按钮的 hover 下拉卡片 */
.navbar-but .hover-show .hover-show-con.sub-vip-card {
  display: none !important;
}

/* Slide text color token - overridden per nav theme below */
:root {
  --ailhj-slide-text-color: var(--key-color);
}

@media (min-width: 1240px) {
  .left-conter {
    width: auto;
    padding: 0 calc((100% - var(--mian-max-width)) / 2 + 15px);
    text-shadow: none;
  }
  .slide-title {
    font-weight: bold;
  }
  .left-conter .slide-title,
  .left-conter .slide-desc {
    color: var(--ailhj-slide-text-color);
  }
  .slide-desc {
    font-size: 16px !important;
    max-width: 493px;
  }
  .slide-header .slide-text {
    padding-top: 0;
  }
}

/* ============================================================
   Nav theme switcher (driven by ailhj-nav-theme.js)
   Applies when header has .ailhj-nav-light or .ailhj-nav-dark
   Only active while slider is visible (nav-fixed + show-slide + not scrolled)
   ============================================================ */

/* Shared transition for smooth color change */
.header.show-slide .navbar-top,
.header.show-slide .navbar-top a,
.header.show-slide .navbar-top .navbar-logo {
  transition:
    color 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease;
}

/* Light nav: dark text on bright slides */
body.nav-fixed:not(.body-scroll):not(.mobile-navbar-show)
  .header.show-slide.ailhj-nav-light {
  --header-color: #1a1d23;
  --header-bg: rgba(255, 255, 255, 0.15);
  --focus-color: var(--ailhj-blue);
}

/* Slide text color follows nav theme
   header is sibling before header-slider-container in DOM */
.header.show-slide.ailhj-nav-dark ~ .header-slider-container .slide-title,
.header.show-slide.ailhj-nav-dark ~ .header-slider-container .slide-desc {
  --ailhj-slide-text-color: #ffffff;
}

.header.show-slide.ailhj-nav-light ~ .header-slider-container .slide-title,
.header.show-slide.ailhj-nav-light ~ .header-slider-container .slide-desc {
  --ailhj-slide-text-color: var(--key-color);
}

/* Slide buttons */
.slide-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  font-size: 18px;
}
.slide-buttons .but {
  font-size: 18px;
  min-width: 180px;
  padding: 10px 20px;
  border-radius: 12px !important;
  justify-content: center;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.slide-buttons .but .ailhj-arrow-icon {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  position: relative;
  animation: ailhj-slide-arrow 0.7s ease-in-out infinite;
}
@keyframes ailhj-slide-arrow {
  0% {
    left: 0px;
  }
  50% {
    left: 5px;
  }
  100% {
    left: 0px;
  }
}

@media (max-width: 576px) {
  .slide-buttons {
    gap: 8px;
    margin-top: 14px;
    font-size: 14px;
  }
  .slide-buttons .but {
    font-size: 14px;
    min-width: 120px;
    height: 44px;
    border-radius: 12px !important;
  }
}

/* Ensure logo SVG / img inherits the color variable */
body.nav-fixed:not(.body-scroll):not(.mobile-navbar-show)
  .header.show-slide.ailhj-nav-light
  .navbar-top,
body.nav-fixed:not(.body-scroll):not(.mobile-navbar-show)
  .header.show-slide.ailhj-nav-dark
  .navbar-top {
  color: var(--header-color);
}

/* ============================================================
   Nav - disable ripple wave on menu items (JS appends inline-styled div)
   ============================================================ */
.navbar-nav .menu-item > a {
  overflow: visible !important;
}
.navbar-nav .menu-item > a > div[style*="border-radius: 50%"] {
  display: none !important;
}
.navbar-nav > li:before {
  content: " ";
  position: absolute;
  bottom: 0;
  top: auto;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--focus-color);
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.3s;
}

.navbar-nav > li:hover:before,
.navbar-nav > li.current-menu-item:before,
.navbar-nav > li.current-menu-ancestor:before {
  opacity: 1;
}
.navbar-top {
  font-size: 16px;
}
.navbar-top .nav > li > a {
  padding-left: 24px;
  padding-right: 24px;
}

/* ============================================================
   Swiper nav buttons - circle style
   ============================================================ */
.new-swiper .swiper-button-prev,
.new-swiper .swiper-button-next {
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  color: #ffffff;
  text-shadow: none;
  transition:
    left 0.3s ease,
    right 0.3s ease,
    opacity 0.3s ease,
    background 0.25s ease;
}
.new-swiper .swiper-button-prev {
  left: 0;
  right: auto;
}
.new-swiper .swiper-button-next {
  right: 0;
  left: auto;
}

.swiper-container-initialized:hover .new-swiper .swiper-button-prev,
.new-swiper:hover .swiper-button-prev {
  left: 20px !important;
  opacity: 0.8;
}
.swiper-container-initialized:hover .new-swiper .swiper-button-next,
.new-swiper:hover .swiper-button-next {
  right: 20px !important;
  opacity: 0.8;
}
.new-swiper .swiper-button-prev:hover,
.new-swiper .swiper-button-next:hover {
  background: rgba(255, 255, 255, 0.32);
  opacity: 1;
}
.container-footer {
  max-width: var(--mian-max-width);
}
.container-header {
  max-width: 100%;
}
.navbar-nav > li > a {
  padding-bottom: 8px;
}

@property --vip-border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes vip-border-rotate {
  to {
    --vip-border-angle: 360deg;
  }
}

.payvip-icon {
  animation: vip-border-rotate 2.5s linear infinite;
  border: 1.5px solid transparent;
  background:
    linear-gradient(135deg, #2a1f00, #3d2e00) padding-box,
    conic-gradient(
        from var(--vip-border-angle),
        #3d2e00 40%,
        #ffd166 55%,
        #ffb700 65%,
        #3d2e00 80%
      )
      border-box;
  color: #ffd166;
  --this-color: #ffd166;
  text-shadow: 0 0 8px rgba(255, 183, 0, 0.5);
  font-weight: 500;
  position: relative;
  overflow: visible;
}
.relative-h {
  overflow: hidden;
  position: relative;
  flex: 1;
}
.filter-blur .header-slider-card .zib-widget {
  padding: 24px;
  background: #fff;
  box-shadow: none;
  border-radius: 12px;
  border: 1px solid var(--muted-bg-color);
}
.header-slider-card {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateY(50%);
  z-index: 10;
  margin-top: 0;
}

/* Reserve space below slider so card doesn't overlap next section */
.header-slider-container {
  margin-bottom: 0 !important;
  padding-bottom: 0px;
}

/* ============================================================
   icon-cover-card badge - trapezoid corner tag
   ============================================================ */
.icon-cover-card {
  position: relative;
  overflow: hidden;
}

.ailhj-card-tag {
  height: 24px;
  overflow: hidden;
  padding: 0 13px 0 16px;
  position: absolute;
  right: 0;
  top: 0;
  pointer-events: none;
}

.ailhj-card-tag-trap {
  background: var(--ailhj-blue-grad);
  border-radius: 8px;
  height: 32px;
  left: 0;
  position: absolute;
  top: 0;
  transform: matrix(1, 0, 0.3182, 1, 3, -8);
  width: 100%;
}

.ailhj-card-tag-text {
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  height: 24px;
  line-height: 24px;
  position: relative;
  white-space: nowrap;
  z-index: 1;
}

/* ============================================================
   icon-cover-card glassmorphism + hover
   Allow shadow to bleed out of flex row without clipping
   ============================================================ */

/* Prevent flex wrappers from clipping the card shadow */
.header-slider-card .flex-row {
  overflow: visible;
}
.header-slider-card .flex1 {
  overflow: visible;
  position: relative;
  z-index: 1;
}

.icon-cover-card.zib-widget {
  position: relative;
  z-index: 1;
  background: var(--blur-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--main-border-color);
  box-shadow: 0 4px 24px var(--main-shadow);
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    z-index 0s 0.25s;
}

.icon-cover-card.zib-widget:hover {
  border-color: transparent;
  box-shadow: 0 8px 20px #f1f1f1;
  z-index: 2;
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    z-index 0s;
}

.icon-cover-card.zib-widget:hover .icon-cover-desc .em12 {
  color: var(--focus-color);
  transition: color 0.25s ease;
}

.zib-widget {
  clear: both;
  background: none;
  padding: 0px;
  box-shadow: none;
  border-radius: 0;
  margin-bottom: 0px;
}

/* ============================================================
   System Notice Modal (#modal-system-notice)
   ============================================================ */
#modal-system-notice .modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  padding: 15px;
  background: linear-gradient(
    160deg,
    rgb(199, 223, 252) 0%,
    #ffffff 40%
  ) !important;
  overflow: visible !important;
  position: relative;
}

#modal-system-notice .modal-body,
#modal-system-notice .modal-colorful-header {
  background: transparent !important;
}

#modal-system-notice .modal-body h4 {
  font-size: 18px;
  font-weight: 500;
}

#modal-system-notice .modal-colorful-header .colorful-bg {
  background: transparent !important;
}

#modal-system-notice .modal-buts .but,
#modal-system-notice .modal-footer .but {
  padding: 0.5em 2em;
  border-radius: 6px;
}

#modal-system-notice .modal-buts {
  text-align: left;
}

/* close button - positioned outside modal-content top-right */
#modal-system-notice .modal-body > .close {
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.26);
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  right: -15px;
  top: -80px;
  border-radius: 150px;
  padding: 5px;
  font-size: 16px;
  opacity: 1;
  color: #fff;
}

#modal-system-notice .modal-body > .close:focus,
#modal-system-notice .modal-body > .close:hover {
  color: #ffffff !important;
  opacity: 1 !important;
}

#modal-system-notice .dialog-pay-vip {
  position: relative;
  z-index: 1;
}

#modal-system-notice .dialog-pay-vip::before {
  content: "";
  position: absolute;
  height: 8px;
  width: 50%;
  background-color: var(--ailhj-red);
  bottom: 0;
  left: 0;
  opacity: 0.2;
  z-index: 0;
}


.modal-content {
  box-shadow: none;
}
input[type="checkbox"],
input[type="radio"] {
  margin: 0;
  line-height: normal;
}

.badg-form:focus,
.form-control:focus {
  box-shadow: none !important;
}
.search-input {
  line-height: 25px;
  font-size: 15px;
  color: rgb(51, 51, 51);
  background: rgb(249, 249, 249) !important;
  border-width: 1px;
  border-style: solid;
  border-color: rgb(244, 244, 244);
  border-image: initial;
  padding: 7.5px 50px 7.5px 20px;
  border-radius: 50px;
}
.search-input:hover,
.search-input:focus {
  border-color: rgb(244, 244, 244);
}
.posts-item {
  background-image: linear-gradient(0deg, #fff, #eef1fb) !important;
  border: 1px solid #eef1fb;
  transition: all 0.5s;
  border: 1px solid #fff;
}

/* 文章页面专用样式 */
.single .article {
  position: relative;
  z-index: 50;
  border-top: none !important;
  box-shadow: none !important;
  overflow: unset;
  margin: 20px 300px 20px 180px;
}

/* 平板设备：减小左右边距，保持内容可读性 */
@media (max-width: 992px) and (min-width: 769px) {
  .single .article {
    margin: 20px 0px 20px 0px;
  }
}

/* 移动设备：移除边距，全宽显示 */
@media (max-width: 768px) {
  .single .article {
    margin: 0;
  }
}
.main-shadow {
  box-shadow: none;
}
.header {
  padding: 8px 20px;
  background: var(--header-bg);
  margin-bottom: 0;
  transition: 0.15s;
}

/* 只在文章详情页生效 */
body.single.nav-fixed {
  padding-top: 70px;
}

/* 文章详情页白色背景 */
body.single {
  background-color: #fff;
}

.nav-fixed .header {
    position: fixed;
    z-index: 999;
    width: 100%;
    top: 0;
    
}
.body-scroll .header {
    -webkit-backdrop-filter: saturate(5) blur(20px);
    backdrop-filter: saturate(5) blur(20px) !important;
    background-color: rgb(255, 255, 255, 0.8);
}

/* 订单详情等弹窗背景色为白色 */
.modal:has(#refresh_modal) .modal-content,
.modal.has-refresh-modal .modal-content {
    background: #fff;
}

.modal .body-bg .modal-content {
    background: #fff;
}
.modal-body{
    padding: 0px;
}
/* 只有订单详情弹窗(带full-sm body-bg的dialog)设置padding */
.modal:has(.full-sm.body-bg) .modal-body,
.modal.has-full-body-bg .modal-body {
    padding: 24px;
}

.site-layout-3 .content-layout {
    margin-left: calc(177px + 20px);
    margin-right: 30px;
}
/* Sidebar sticky positioning optimization - prevent layout shift */
.home .sidebar {
    float: left;
    width: 177px;
    position: -webkit-sticky;
    position: sticky;
    top: 88px;
    height: fit-content;
    /* Add will-change to hint browser for optimization */
    will-change: transform;
    /* Ensure sidebar starts at correct position */
    align-self: flex-start;
}

/* Ensure parent container uses flexbox to prevent initial jump */
.container-fluid .row,
.container .row {
    display: flex;
    flex-wrap: wrap;
}

/* Ensure sidebar column doesn't shrink */
.sidebar-column {
    flex-shrink: 0;
}
.home{
  background: #eff4f8;
}
.footer-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    backdrop-filter: blur(1px);
    bottom: 0;
    width: 100%;
    z-index: 1035;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    background: var(--header-bg);
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 5px var(--main-shadow);
    -webkit-backdrop-filter: saturate(5) blur(20px);
    backdrop-filter: saturate(5) blur(20px) !important;
    transition: transform .3s;
}

@media (max-width: 576px) {
  .footer,.footer-tabbar-placeholder{
    display: none;
  }

  /* Hide floating filter button on mobile */
  .float-right.round.position-bottom.filter {
    display: none !important;
  }

  #modal-system-notice .modal-content {
    width: 90vw !important;
    padding-top: 70px;
  }
.box-body, .box-header {
    padding: 0;
}
  .article-header.theme-box.clearfix.relative {
  display: none !important;
}

  #modal-system-notice .ailhj-popup-right {
    width: 100px;
    top: -50px;
  }

body.home .widget_ailhj_widget_search_hero {
    margin: 0 -15px;
    margin-bottom: 20px;
    
}
.article{
  margin: 0;
}
.ailhj-search-hero{
border-radius: 0 !important;
}

  .modal-backdrop {
    background: rgba(0, 0, 0, 0.6) !important;
  }
}


a:focus, a:hover {
    color: var(--main-color);
    outline: 0;
    text-decoration: none;
}