/* zhineng storefront: Dujiao-Next vault/JZ inspired dark shop */
:root {
  --vault-bg: #000;
  --vault-nav: #0a0f18;
  --vault-card: #202020;
  --vault-card-border: #454545;
  --vault-line: rgba(255, 255, 255, .18);
  --vault-text: #f7f7f8;
  --vault-muted: #9a9aa0;
  --vault-soft: #c8c8cc;
  --vault-blue: #2464d8;
  --vault-gold: #f5df28;
  --vault-cyan: #32b7e7;
  --vault-green: #0db24b;
}

html { font-size: 14px; scroll-behavior: smooth; }

body.zhineng-store {
  min-height: 100vh;
  color: var(--vault-text);
  background: var(--vault-bg);
  font-family: Inter, Rubik, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.zhineng-store a { text-decoration: none; }

.navbar-acg {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 58px;
  padding: 0;
  background: var(--vault-nav);
  border-bottom: 1px solid #222835;
  box-shadow: none;
}

.navbar-acg .container,
.vault-main,
.zh-footer .container {
  width: 100%;
  max-width: 1136px;
}

.navbar-acg .container {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.navbar-brand {
  gap: 10px;
  color: #fff !important;
  margin-right: 6px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(79, 131, 255, .7);
  box-shadow: 0 0 28px rgba(56, 123, 255, .26);
}

.brand-word {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0;
}

.navbar-acg .navbar-nav { gap: 8px; align-items: center; }

.navbar-acg .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 13px !important;
  border-radius: 999px;
  color: #f5f7fb !important;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.navbar-acg .nav-link.active,
.navbar-acg .nav-link:hover {
  background: var(--vault-blue);
  color: #fff !important;
}

.nav-icon { margin-right: 5px; }

.koi-lang-toggle,
.user-login-box .btn,
.user-info-box .btn {
  min-height: 34px;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  background: #03060b !important;
  color: #fff !important;
  box-shadow: none;
  font-size: 12px;
  font-weight: 850;
}

.user-login-box .btn-primary {
  background: var(--vault-blue) !important;
  border-color: var(--vault-blue) !important;
  color: #fff !important;
}

.user-info-box #username { color: #fff !important; }
.user-info-box #user-balance { color: #9aa4b2 !important; }
.dropdown-menu {
  background: #16181d;
  border: 1px solid #3a3a3a;
}
.dropdown-item { color: #f2f2f2; }
.dropdown-item:hover { color: #fff; background: #242933; }
.dropdown-divider { border-top-color: #383838; }

.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
}
.navbar-toggler-icon { filter: invert(1); }

.vault-main {
  margin: 0 auto;
  padding: 116px 16px 44px;
}

.vault-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.vault-section-head h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 27px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
}

.vault-section-head p {
  margin: 0;
  color: var(--vault-muted);
  font-size: 13px;
}

.vault-view-all {
  color: #b7becb;
  font-size: 13px;
  font-weight: 750;
}

.vault-view-all:hover { color: #fff; }

.vault-category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: -8px 0 18px;
}

.vault-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  color: #d6d9df;
  background: #1a1a1a;
  border: 1px solid #424242;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.vault-category.is-active,
.vault-category:hover {
  color: #fff;
  background: var(--vault-blue);
  border-color: var(--vault-blue);
}

.vault-products {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.vault-product-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  background: var(--vault-card);
  border: 1px solid var(--vault-card-border);
  border-radius: 6px;
  min-height: 408px;
  transition: transform .16s ease, border-color .16s ease;
}

.vault-product-card:hover {
  color: #fff;
  transform: translateY(-2px);
  border-color: #666;
}

.vault-product-card.is-soldout { opacity: .86; }

.vault-product-image {
  position: relative;
  height: 160px;
  flex: none;
  background-color: #d9d9d9;
  background-position: center;
  background-size: cover;
}

.vault-product-body {
  min-height: 248px;
  display: flex;
  flex-direction: column;
  padding: 13px 13px 12px;
}

.vault-category-name {
  margin: 0 0 8px;
  color: #a2a2a8;
  font-size: 11px;
  line-height: 1.35;
}

.vault-product-body h3 {
  min-height: 44px;
  margin: 0 0 10px;
  color: #fff;
  font-size: 15px;
  line-height: 1.42;
  font-weight: 900;
}

.vault-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.vault-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 9px;
  line-height: 18px;
  font-weight: 850;
  white-space: nowrap;
}

.vault-badge-gold {
  color: var(--vault-gold);
  background: rgba(245, 223, 40, .08);
  border: 1px solid rgba(245, 223, 40, .72);
}

.vault-badge-blue {
  color: var(--vault-cyan);
  background: rgba(50, 183, 231, .09);
  border: 1px solid rgba(50, 183, 231, .72);
}

.vault-badge-green {
  color: #b9ffcd;
  background: rgba(13, 178, 75, .12);
  border: 1px solid rgba(13, 178, 75, .72);
}

.vault-desc {
  min-height: 50px;
  margin: 0 0 18px;
  color: #aaa;
  font-size: 12px;
  line-height: 1.55;
}

.vault-card-bottom {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--vault-line);
  display: grid;
  grid-template-columns: 1fr 34px 18px;
  align-items: end;
  gap: 8px;
}

.vault-price-label {
  display: block;
  margin-bottom: 2px;
  color: #9a9aa0;
  font-size: 10px;
}

.vault-price {
  display: block;
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 950;
}

.vault-price small {
  color: #fff;
  font-size: 11px;
  margin-left: 3px;
}

.vault-cart {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: #fff;
  background: #000;
  font-size: 13px;
}

.vault-arrow {
  color: #8d8d92;
  font-weight: 800;
  line-height: 30px;
}

.vault-ribbon {
  position: absolute;
  left: -37px;
  top: 17px;
  width: 126px;
  transform: rotate(-45deg);
  background: #111;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 10px;
  font-weight: 950;
  padding: 5px 0;
}

.item-message,
.empty-products {
  grid-column: 1 / -1;
  padding: 26px 0;
  color: #aaa;
  font-weight: 800;
}

.vault-notice {
  margin-top: 34px;
  padding: 20px 0 0;
  border-top: 1px solid #252525;
  color: #aaa;
}

.vault-notice h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.vault-notice,
.vault-notice p {
  font-size: 13px;
  line-height: 1.6;
}

.vault-notice a { color: #6ea0ff; }

.zh-footer {
  padding: 22px 0 34px;
  color: #8f96a3;
  background: #000;
}

.zh-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #252525;
  padding-top: 18px;
}

.zh-footer strong { color: #fff; margin-right: 10px; }
.zh-footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.zh-footer a { color: #bec7d7; font-weight: 800; }
.zh-footer a:hover { color: #fff; }

.koi-lang-menu {
  background: #171b22 !important;
  border-color: #333947 !important;
  color: #fff !important;
}

.koi-lang-search input {
  background: #0c111a !important;
  color: #fff !important;
  border-color: #303746 !important;
}

@media (max-width: 1280px) {
  .vault-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
  .navbar-acg .navbar-collapse {
    margin-top: 10px;
    padding: 8px 0 12px;
  }
  .vault-main { padding-top: 54px; }
  .vault-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .brand-word { display: none; }
  .vault-main { padding: 34px 12px; }
  .vault-section-head { align-items: flex-start; flex-direction: column; }
  .vault-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .vault-product-image { height: 132px; }
  .vault-product-body { min-height: 260px; padding: 12px; }
  .vault-product-card { min-height: 392px; }
  .zh-footer .container { display: block; }
  .zh-footer-links { margin-top: 10px; }
}

@media (max-width: 460px) {
  .vault-products { grid-template-columns: 1fr; }
  .vault-product-image { height: 190px; }
  .vault-product-body { min-height: 230px; }
}
