/**
 * SuperX Theme - Global Site CSS
 * Styles specific to the Global site type
 */

/* Global site uses the default blue primary color */
body.site-type-global {
  /* Primary color already set in main.css */
}

/* Global specific branding adjustments */
.site-type-global .superx-header {
  /* Default header style */
}

.site-type-global .superx-footer {
  /* Default footer style */
}


.site-type-global .main-content-grid{
  padding-top:5px;
}

/* ============================================
   Header
   ============================================ */
.site-type-global .superx-header .superx-header-inner .superx-header-actions{
  gap:2px;
}
.site-type-global .superx-header .superx-header-inner .superx-header-actions .superx-top-action{
  padding-right:15px;
}
.site-type-global .superx-site-btn{
  background: transparent;
  border: none;
}
.site-type-global .superx-site-btn:hover {
  background: var(--superx-bg-gray);
  border-color: var(--superx-border-dark);
  color: var(--superx-text-primary);
}
.site-type-global .superx-site-btn i {
  font-size:1.2rem;
}
/* Badge needs a visible background since the button is transparent */
.site-type-global .superx-lang-badge {
  background: var(--superx-bg-light, #f5f5f5);
  border-color: var(--superx-border);
}

.site-type-global .superx-language-btn{
  border:none;
  background: transparent;
}
.site-type-global .superx-language-btn:hover{
  background: var(--superx-bg-gray);
  border-color: var(--superx-border-dark);
  color: var(--superx-text-primary);
}
.site-type-global .superx-language-btn i {
  font-size:1.3rem;
}

/* ============================================
   Front content
   ============================================ */
.front-top-latest-news {
  max-width:100%;
  overflow:hidden;
  background-color:var(--superx-primary);
}
.front-top-latest-news .slick-list{
  max-width: var(--superx-container-width);
  margin:10px auto;
  color:#fff;
  text-align: center;
}
.front-top-latest-news .slick-list .views-field{
  display:inline-block;
}
.front-top-latest-news .slick-list .views-field time{
  padding-right: 10px;
}
.front-top-latest-news .slick-list .views-field time::after{
  content:": ";
}
.front-top-latest-news .slick-list .views-field a{
  color:#fff;
}

  /* ============================================
     After content
     ============================================ */

.front-bottom-latest-news {
  max-width:90%;
  margin:auto;
}

.front-bottom-latest-news .b-grid > .grid{
  padding: 0 10px 10px 10px;
}
.front-bottom-latest-news .b-grid{
  margin: 0 0;
}

.front-bottom-latest-news .slick-list {
  padding-top:3px;
}

.front-bottom-latest-news .slide .grid__content:hover{
  transform: translateY(-3px); /* 向上移动1px */
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative; /* 确保transform正常工作 */
}

.front-bottom-latest-news .slide .grid__content .slide{
  background-color: rgb(255, 255, 255);
  color: rgba(0, 0, 0, 0.87);
  box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
  transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 4px;
  overflow: hidden;
  border-width: 1px;
  border-style: solid;
  border-color: rgba(180, 180, 180, 0.6);
  border-image: initial;
  height:300px;
  padding: 24px 20px 24px 20px;
}
.front-bottom-latest-news .slide .grid__content:hover .slide{
  border-color: var(--superx-primary-light); /* 或其他亮色变量 */
  box-shadow: 0px 4px 8px -1px rgba(0, 0, 0, 0.25); /* 增强阴影效果 */
}

.front-bottom-latest-news .slide .grid__content .news-category{
  display:inline-block;
  font-size: 16px;
  font-weight: 500;
  height: fit-content;
  margin-left: 0px;
  padding: 2px 8px;
  color: rgb(15, 59, 149);
  background: #e6f4ff;
}
.front-bottom-latest-news .slide .grid__content time{
  display:block;
  margin: 10px 0 15px 0;
  color: var(--superx-text-muted);
}
.front-bottom-latest-news .slide .grid__content a{
  display:block;
  margin: 10px 0 15px 0;
  color: var(--superx-text-primary);
  font-size:1.3rem;
  font-weight:400;
}

.front-bottom-latest-news  .slick-arrow::before{
  color: var(--superx-primary-light);
}

.front-bottom-latest-news .slick-prev {
  left: -5%;
}

.front-bottom-latest-news .slick-next {
  right: -5%;
}

  /* ============================================
     Footer
     ============================================ */
.footer_menu_tel_link{
  display:inline-block;
}
.footer_menu_tel_link::before {
  content: "\f5c1";/*bi-telephone-fill*/
  font-family: bootstrap-icons !important;
  margin-right:5px;
  vertical-align: bottom;
}
.footer_menu_email_link{
  display:inline-block;
}
.footer_menu_email_link::before {
  content: "\f84c";/*bi-envelope-paper*/
  font-family: bootstrap-icons !important;
  margin-right:5px;
  vertical-align: bottom;
}

@media (max-width: 860px) {
  .superx-footer-logo{
    margin-bottom:0;
  }
  .superx-footer-column ul{
    margin-bottom:0px;
  }
  .superx-footer-column ul li{
    margin-bottom:20px;
  }
  .superx-footer-column ul li ul li{
    margin-bottom:0px;
  }
}


/* ============================================
   Administrator (/themes/custom/superx/css/main_global.css下同步修改)
   ============================================ */
li#navigation-link-menu-link-contentcc1eee42-1def-4e19-8f51-11863640837f span,
li#navigation-link-menu-link-content29f47b76-4e71-4e1c-870a-4cbdaf73262c span,
li#navigation-link-menu-link-content29f47b76-4e71-4e1c-870a-4cbdaf73262c span,
.global_switch_link_css span{
  color:#0444c4;
}

li#navigation-link-menu-link-contentcc1eee42-1def-4e19-8f51-11863640837f a::before,
li#navigation-link-menu-link-contenta7788255-619f-4f4a-8ad0-5191cbee0b50 a::before,
li#navigation-link-menu-link-content29f47b76-4e71-4e1c-870a-4cbdaf73262c a::before,
.global_switch_link_css::before {
  color: #0444c4 !important;
}

/* ============================================
   Language links merged into Site Selector
   (default/global site only)
   ============================================ */

/* Divider between site items and language items */
.superx-site-lang-divider {
  border: none;
  border-top: 1px solid var(--superx-border, #e0e0e0);
  margin: 6px 12px;
}

/* "Language" label */
.superx-site-lang-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--superx-text-muted, #999);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px 2px;
}

/* Language option inside the site dropdown */
.superx-lang-in-site {
  font-size: 13px;
}

/* Active / current language highlight */
.superx-lang-in-site.active,
.superx-lang-in-site.session-active {
  background-color: rgba(var(--superx-primary-rgb, 15,59,148), 0.1);
  color: var(--superx-primary, #0f3b94);
  font-weight: 600;
}

/* ── Mobile: language items in site selector flat list ── */
@media (max-width: 991px) {
  .superx-site-lang-divider {
    margin: 8px 0;
  }
  .superx-site-lang-label {
    padding: 4px 0 2px;
    margin-bottom: 4px;
  }
  .superx-site-selector .superx-lang-in-site {
    display: block;
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: var(--superx-radius-sm, 6px);
    background-color: var(--superx-bg-light, #f7f7f7);
    border: 1px solid transparent;
  }
  .superx-site-selector .superx-lang-in-site:hover {
    background-color: var(--superx-bg-gray, #eee);
    border-color: var(--superx-border, #e0e0e0);
    text-decoration: none;
  }
  .superx-site-selector .superx-lang-in-site.active,
  .superx-site-selector .superx-lang-in-site.session-active {
    background-color: rgba(var(--superx-primary-rgb, 15,59,148), 0.1);
    border-color: var(--superx-primary, #0f3b94);
    color: var(--superx-primary, #0f3b94);
  }
}

/* ============================================
   Translation Notice Overlay
   ============================================ */

/* Full-viewport backdrop — placed outside header, z-index beats everything */
.superx-translation-notice-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  /* Centre the card with flex */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  /* Default hidden state — JS removes [hidden] to reveal */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  /* Reset any inherited transforms / stacking from parent containers */
  transform: none !important;
}

/* Visible state */
.superx-translation-notice-overlay:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

/* Card */
.superx-translation-notice-card {
  position: relative;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  padding: 36px 40px 30px;
  max-width: 500px;
  width: calc(100% - 48px);
  text-align: center;
  transform: translateY(-16px);
  transition: transform 0.25s ease;
}

.superx-translation-notice-overlay:not([hidden]) .superx-translation-notice-card {
  transform: translateY(0);
}


/* English notice line */
.superx-translation-notice-en {
  font-size: 15px;
  color: var(--superx-text-primary, #1a1a2e);
  margin: 0 0 8px;
  line-height: 1.65;
  font-weight: 500;
}

/* Native-language notice line */
.superx-translation-notice-native {
  font-size: 14px;
  color: var(--superx-text-secondary, #555);
  margin: 0 0 26px;
  line-height: 1.65;
}

.superx-translation-notice-native:empty {
  margin-bottom: 12px;
}

/* Action buttons row */
.superx-translation-notice-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Shared button base ── */
.superx-translation-notice-confirm,
.superx-translation-notice-cancel {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 9px 24px;
  border-radius: 7px;
  cursor: pointer;
  transition: opacity 0.18s ease, background-color 0.18s ease;
  line-height: 1.3;
  gap: 2px;
}

/* English line inside button */
.notice-btn-en {
  font-size: 14px;
  font-weight: 600;
  display: block;
}

/* Native line inside button — hidden when empty */
.notice-btn-native {
  font-size: 12px;
  font-weight: 400;
  display: block;
  opacity: 0.85;
}

.notice-btn-native:empty {
  display: none;
}

/* Confirm button */
.superx-translation-notice-confirm {
  border: none;
  background-color: var(--superx-primary, #0f3b94);
  color: #fff;
}

.superx-translation-notice-confirm:hover {
  opacity: 0.88;
}

/* Cancel button */
.superx-translation-notice-cancel {
  border: 1px solid var(--superx-border, #d0d0d0);
  background-color: transparent;
  color: var(--superx-text-secondary, #555);
}

.superx-translation-notice-cancel:hover {
  background-color: var(--superx-bg-light, #f5f5f5);
}

/* ── Mobile (≤ 600 px): bottom-sheet style ── */
@media (max-width: 600px) {
  .superx-translation-notice-overlay {
    align-items: flex-end;
  }

  .superx-translation-notice-card {
    width: 100%;
    max-width: 100%;
    border-radius: 18px 18px 0 0;
    padding: 28px 24px 36px;
    transform: translateY(50px);
  }

  .superx-translation-notice-overlay:not([hidden]) .superx-translation-notice-card {
    transform: translateY(0);
  }

  .superx-translation-notice-actions {
    gap: 10px;
  }

  .superx-translation-notice-confirm,
  .superx-translation-notice-cancel {
    flex: 1;
    min-width: 0;
  }
}


/* ============================================
    Administrator Porgress
============================================ */
.toolbar-loading .progress, .toolbar-loading .progress-stacked {
  --bs-progress-height: 2rem;
  --bs-progress-font-size: 1.2rem;
  --bs-progress-bg: var(--bs-secondary-bg);
}
.toolbar-loading .progress__bar{
  background: #0f3b94;
}
.toolbar-loading .progress__track{
  min-width:400px;
  margin-right: 20px;
  margin-left: 15px;
}
.toolbar-loading .progress__percentage{
  margin-right: 10px;
}
