@charset "UTF-8";
/* ===================================
   Mobile Navigation Styles — eueui
   With dark/light theme support
   Page default: dark (#101524)
   =================================== */

/* ===== 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;
  }
  .#pencil a {
        padding: 0px !important;
  }
  .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;
  }
  .logo {
    height: 44px; width: 44px; display: block; margin: 0 auto !important;
    padding: 0 !important; float: none !important; position: relative; z-index: 1;
  }
  .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) ===== */
#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); }
@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"] .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"] .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; }
}

/* ===== Light Mode Page Body Overrides =====
   eueui page is dark by default (#101524); override to light */
html[data-theme="light"] { background-color: #f0f0f0 !important; }
html[data-theme="light"] #pencil a {     padding: 0px !important; }
html[data-theme="light"] body { background-color: #f0f0f0 !important; color: #333 !important; }
html[data-theme="light"] .ves a { color: #666 !important; }
html[data-theme="light"] .ves a:hover { background-color: #FFF2D9 !important; }
html[data-theme="light"] .ves > a:first-child { color: #333 !important; }
html[data-theme="light"] .cd-title h2 { color: #333 !important; }
html[data-theme="light"] .cd-title p { color: #666 !important; }
html[data-theme="light"] .cr { color: #999 !important; }
html[data-theme="light"] #eueui span { color: #F08519 !important; }
html[data-theme="light"] .moquu_haom { color: #F08519 !important; }
html[data-theme="light"] .logo2 img { filter: brightness(0.3); }
/* Scrollbar — light mode */
html[data-theme="light"] ::-webkit-scrollbar { width: 8px; height: 8px; }
html[data-theme="light"] ::-webkit-scrollbar-track { background: #e0e0e0; }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #c0c0c0; border-radius: 4px; }
html[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: #a0a0a0; }

/* ===== Dark Mode Page Body ===== */
html[data-theme="dark"] body { background-color: #101524 !important; }

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