@charset "UTF-8";
/* ===================================
   Mobile Navigation Styles — Brand80
   完全参照 Brand75/css/mobile-nav.css 模式
   With dark/light theme support
   =================================== */

/* ===== Desktop: hide mobile nav ===== */
@media screen and (min-width: 951px) {
  .top {
    display: none !important;
  }
}

/* ===== Mobile: show mobile nav ===== */
@media screen and (max-width: 950px) {
  .top {
    height: 44px;
    background-color: #e9ebf0f0;
    width: 100%;
    top: 0;
    position: fixed;
    z-index: 1000;
    border-bottom: 1px solid #ffffff85;
  }

  .wrapper-dropdown-5 {
    width: 44px;
    border-radius: 5px;
    cursor: pointer;
    outline: none;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -ms-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
    height: 44px;
    position: absolute;
    left: 0;
    top: 0;
  }

  .wrapper-dropdown-5 .dropdown {
    position: fixed;
    left: 0;
    right: 0;
    list-style: none;
    -webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -ms-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
    max-height: 0;
    overflow: hidden;
    width: 100%;
    background-color: #e9ebf0f0;
    border-bottom-width: 1px;
    border-bottom-color: #C1C1C1;
    height: 100vh;
  }

  .wrapper-dropdown-5.active .dropdown {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    max-height: 100vh;
    margin-top: 0px;
  }

  /* 注意：media_time_ny.css 中有 .logo{display:none!important}，需用 .top .logo 更高权重覆盖 */
  .top .logo {
    height: 44px;
    width: 44px;
    display: block !important;
    margin: 0 auto !important;
    padding: 0 !important;
    float: none !important;
    position: unset;
    z-index: 1;
  }

  .top .logo img {
    display: block;
    width: 44px;
    height: 44px;
  }

  #pencil {
    height: 44px;
    width: 44px;
    position: absolute;
    right: 0;
    top: 0;
    margin: 0;
    padding: 0;
    float: none;
  }

  #pencil img {
    display: block;
    width: 44px;
    height: 44px;
  }

  .index_nav3 {
    height: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 95%;
    margin: auto;
    margin-top: 15px;
  }

  .index_nav_icon {
    width: 100%;
    float: left;
    text-align: center;
    box-shadow: 0 0 5px rgb(0 0 0 / 4%) !important;
    border: 1px solid #ffffffeb !important;
    background-color: #f6f6f6a8;
    border-radius: 10px;
  }

  .index_nav_icon a {
    text-decoration: none;
    display: block;
    color: #000000;
    height: 41px;
    padding-top: 20px;
  }
}

/* ===== Desktop Theme Toggle (floating, since page has no header) ===== */
#theme-toggle-li {
  position: fixed;
  top: 8px;
  right: 10px;
  z-index: 1001;
  width: 40px;
  height: 40px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

#theme-toggle-li:hover {
  background: rgba(255, 255, 255, 0.1);
}

#theme-toggle-li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none !important;
}

#theme-toggle-li .theme-icon-sun {
  display: none;
  color: #f1c40f;
}

#theme-toggle-li .theme-icon-moon {
  display: block;
  color: #9ea2a9;
}

html[data-theme="dark"] #theme-toggle-li .theme-icon-sun {
  display: block;
}

html[data-theme="dark"] #theme-toggle-li .theme-icon-moon {
  display: none;
}

html[data-theme="dark"] #theme-toggle-li:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Hide desktop toggle on mobile (mobile uses #theme-toggle-mobile) */
@media screen and (max-width: 950px) {
  #theme-toggle-li {
    display: none !important;
  }
}

/* ===== Dark Mode Overrides — Mobile Nav ===== */
@media screen and (max-width: 950px) {
  html[data-theme="dark"] .top {
    background-color: #000000cf !important;
    border-bottom: 1px solid #25252585 !important;
  }

  html[data-theme="dark"] .wrapper-dropdown-5 {
    background-image: url(https://www.qijishow.com/down/assets/images/nav_icon2.png) !important;
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }

  html[data-theme="dark"] .wrapper-dropdown-5 img {
    display: none !important;
  }

  html[data-theme="dark"] .top .logo {
    background-image: url(https://www.qijishow.com/down/assets/images/logo2.png) !important;
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }

  html[data-theme="dark"] .top .logo img {
    display: none !important;
  }

  html[data-theme="dark"] #pencil {
    background-image: url(https://www.qijishow.com/down/assets/images/pencil_icon2.png) !important;
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }

  html[data-theme="dark"] #pencil img {
    opacity: 0 !important;
  }

  html[data-theme="dark"] .wrapper-dropdown-5 .dropdown {
    background-color: #121212fa !important;
    height: 100vh !important;
  }

  html[data-theme="dark"] .wrapper-dropdown-5.active .dropdown {
    margin-top: 42px !important;
    max-height: 100vh !important;
  }

  html[data-theme="dark"] .index_nav_icon {
    background-color: #2d2d2d !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
  }

  html[data-theme="dark"] .index_nav_icon a {
    color: #ffffff !important;
    height: 41px;
    padding-top: 20px;
  }
}

/* ===== Dark Mode Page Body — Brand80 default dark ===== */


/* Fix: ensure theme toggle SVGs are visible */
#theme-toggle-mobile svg {
  opacity: 1 !important;
}
