/* ==========================================================
   ToKen101 公共样式：全站统一的导航栏、页脚、认证卡片
   包含：主题色变量、玻璃液态导航栏、磨砂页脚、登录/注册表单
   ========================================================== */
:root {
  /* 导航栏主题色（rgb 三元组 + 派生色），供导航栏、分隔线、粒子、页脚共用 */
  --nav-c: 40, 87, 147;
  --nav-c1: rgb(94, 129, 174);
  --nav-c2: rgb(40, 87, 147);
  --nav-c3: rgb(30, 65, 110);
}

/* ================== 顶部玻璃液态导航栏 ================== */
html { height: 100%; scroll-behavior: smooth; }
body { min-height: 100%; }
/* 锚点跳转时为固定导航栏留出余量：64px 导航栏 + 32px 呼吸 */
section[id] { scroll-margin-top: 96px; }

/* fixed：无论页面滚到哪里（含滚到最底部）都始终吸附在视口顶部 */
.lb-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1030;
  background:
    linear-gradient(90deg, rgba(var(--nav-c), .22), rgba(var(--nav-c), .08)),
    rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(var(--nav-c), .22);
  box-shadow: 0 6px 24px rgba(43, 52, 69, .06);
  transition: background .3s ease, box-shadow .3s ease;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lb-nav {
    background: linear-gradient(90deg, rgba(var(--nav-c), .22), rgba(var(--nav-c), .08)), rgba(255, 255, 255, .92);
  }
}
.lb-nav.scrolled {
  background:
    linear-gradient(90deg, rgba(var(--nav-c), .32), rgba(var(--nav-c), .12)),
    rgba(255, 255, 255, .72);
  box-shadow: 0 8px 30px rgba(43, 52, 69, .12);
}

/* 液态流光：三团缓慢漂移并通过 blur 融在一起的彩色光斑 */
/* 关键：Bootstrap .container 默认 max-width，但在 flex 容器里如果子项没有显式宽度会被压成 0。
   给 nav 内的 container + inner 都显式设 width，确保 flex 布局有正确参考宽度 */
.lb-nav .container { width: 100%; flex: 1 1 auto; }
.lb-nav-inner { width: 100%; }
.lb-nav-blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.lb-nav-blobs span {
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  filter: blur(46px);
  opacity: .5;
  will-change: transform;
}
.lb-nav-blobs span:nth-child(1) {
  top: -220px; left: 4%;
  background: radial-gradient(circle at 40% 40%, var(--nav-c1), transparent 70%);
  animation: lb-float-a 18s ease-in-out infinite;
}
.lb-nav-blobs span:nth-child(2) {
  top: -240px; right: 6%;
  background: radial-gradient(circle at 40% 40%, var(--nav-c2), transparent 70%);
  animation: lb-float-b 24s ease-in-out infinite;
}
.lb-nav-blobs span:nth-child(3) {
  top: -260px; left: 44%;
  background: radial-gradient(circle at 40% 40%, var(--nav-c3), transparent 70%);
  animation: lb-float-c 30s ease-in-out infinite;
}
@keyframes lb-float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(90px, 46px) scale(1.22); }
}
@keyframes lb-float-b {
  0%, 100% { transform: translate(0, 0) scale(1.1); }
  50%      { transform: translate(-110px, 40px) scale(.9); }
}
@keyframes lb-float-c {
  0%, 100% { transform: translate(0, 0) scale(.95); }
  50%      { transform: translate(-70px, 60px) scale(1.25); }
}

/* 顶部高光细线，强化玻璃质感 */
.lb-nav::after {
  content: "";
  position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95), transparent);
}

.lb-nav-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 1rem;
  height: 64px;
}
/* 占位：fixed 导航栏脱离文档流，需补出同样高度避免首屏内容被遮。
   注意：Cartzilla 主题给 body 设了 display:flex; flex-direction:column 且 html,body{height:100%}，
   于是 body 变成「高度固定为视口、内容溢出」的列向 flex 容器，空占位元素会被 flex-shrink 压成 0，
   所以必须显式禁止收缩（flex: 0 0 64px），单靠 height 无效 */
.lb-nav-spacer { height: 64px; flex: 0 0 64px; }
.lb-brand {
  display: flex; align-items: center; gap: .625rem;
  font-weight: 700; font-size: 1.0625rem;
  color: #2b3445; text-decoration: none;
  letter-spacing: .01em;
}
.lb-brand:hover { color: #2b3445; }
.lb-brand-dot {
  width: 28px; height: 28px; border-radius: 9px;
  background: linear-gradient(135deg, var(--nav-c1) 0%, var(--nav-c3) 100%);
  box-shadow: 0 4px 12px rgba(var(--nav-c), .45);
}

/* 切换导航栏配色的 10 个色卡 */
.lb-swatches {
  display: flex; align-items: center; gap: .375rem;
  padding-left: .875rem;
  border-left: 1px solid rgba(43, 52, 69, .12);
}
.lb-swatch {
  width: 16px; height: 16px; padding: 0;
  border-radius: 50%; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, .85);
  box-shadow: 0 1px 3px rgba(43, 52, 69, .28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.lb-swatch:hover { transform: scale(1.22); }
.lb-swatch.active {
  transform: scale(1.18);
  box-shadow: 0 0 0 2px rgba(var(--nav-c), .55), 0 1px 3px rgba(43, 52, 69, .28);
}

.lb-nav-links {
  list-style: none; margin: 0 0 0 auto; padding: 0;
  display: flex; align-items: center; gap: .25rem;
}
.lb-nav-links a {
  display: block; padding: .5rem .875rem;
  border-radius: .625rem;
  color: #4b5563; text-decoration: none;
  font-weight: 600; font-size: .9375rem;
  transition: background .25s ease, color .25s ease;
}
.lb-nav-links a:hover { color: #2b3445; background: rgba(255, 255, 255, .65); }
.lb-nav-links a.active { color: var(--nav-c2); background: rgba(var(--nav-c), .12); }

/* ---------- 下拉菜单（开始销售） ---------- */
.lb-nav-dropdown { position: relative; }
.lb-nav-item {
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .5rem .875rem;
  border-radius: .625rem;
  color: #4b5563; font-weight: 600; font-size: .9375rem;
  background: transparent; border: 0; cursor: pointer;
  font-family: inherit;
  transition: background .25s ease, color .25s ease;
}
.lb-nav-item:hover { color: #2b3445; background: rgba(255, 255, 255, .65); }
.lb-nav-caret { transition: transform .25s ease; }
.lb-nav-dropdown.open .lb-nav-caret { transform: rotate(180deg); }
.lb-nav-submenu {
  list-style: none; margin: 0; padding: .375rem;
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 160px;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(var(--nav-c), .2);
  border-radius: .75rem;
  box-shadow: 0 10px 30px rgba(var(--nav-c), .18);
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 10;
}
.lb-nav-dropdown:hover .lb-nav-submenu,
.lb-nav-dropdown.open .lb-nav-submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.lb-nav-submenu a {
  display: block; padding: .55rem .875rem;
  border-radius: .5rem;
  color: #4b5563; text-decoration: none;
  font-weight: 600; font-size: .875rem;
  transition: background .2s ease, color .2s ease;
}
.lb-nav-submenu a:hover { color: var(--nav-c2); background: rgba(var(--nav-c), .12); }

.dark .lb-nav-submenu {
  background: rgba(24, 28, 38, .94);
  border-color: rgba(var(--nav-c), .3);
}

.lb-icon-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #4b5563;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.lb-icon-btn:hover { background: var(--nav-c3); color: #fff; transform: translateY(-1px); }

.lb-nav-actions { display: flex; align-items: center; gap: .375rem; position: relative; }
.lb-cart-btn {
  position: relative;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #4b5563;
  cursor: pointer;
  text-decoration: none;
  transition: background .25s ease, color .25s ease, transform .25s ease;
  flex-shrink: 0;
}
.lb-cart-btn:hover { background: var(--nav-c3); color: #fff; transform: translateY(-1px); }

/* ===== 主题配色下拉菜单 ===== */
.lb-theme-dropdown { display: inline-flex; }
.lb-theme-btn {
  position: relative;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  color: #fff; cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .2s ease;
}
.lb-theme-btn:hover { background: var(--nav-c3); color: #fff; transform: translateY(-1px); }
.lb-theme-dropdown.open .lb-theme-btn { background: var(--nav-c3); color: #fff; border-color: var(--nav-c2); }
.lb-theme-panel {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 260px;
  padding: 16px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(var(--nav-c), .2);
  box-shadow: 0 12px 36px rgba(var(--nav-c), .18), 0 2px 8px rgba(0,0,0,.06);
  opacity: 0; visibility: hidden;
  transform: translateY(-8px) scale(.97);
  transition: opacity .2s ease, transform .22s ease, visibility .2s;
  z-index: 1000;
}
.lb-theme-dropdown.open .lb-theme-panel {
  opacity: 1; visibility: visible;
  transform: translateY(0) scale(1);
}
.lb-theme-title {
  font-size: .78rem; font-weight: 600; color: var(--nav-c);
  margin-bottom: 10px; padding-left: 2px;
  letter-spacing: .02em;
}
.lb-theme-panel .lb-swatches {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 10px; padding: 0; border: 0; background: transparent;
}
.lb-theme-panel .lb-swatch {
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  justify-self: center;
}
.lb-theme-panel .lb-swatch:hover {
  transform: none;
  border-color: rgba(var(--nav-c), .5);
  box-shadow: none;
}
.lb-theme-panel .lb-swatch.active {
  transform: none;
  border-color: rgba(var(--nav-c), .85);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 2px 6px rgba(var(--nav-c), .35);
}
/* ===== 主题下拉 END ===== */
.lb-cart-badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px;
  background: #ef4444;
  color: #fff; font-size: .68rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
  transform: scale(1);
  transition: transform .2s ease;
}
.lb-cart-badge[hidden] { display: none; }

.lb-nav-toggle { display: none; }

@media (max-width: 991.98px) {
  /* flex 容器空间不足时默认会压缩子项宽度：固定按钮尺寸，禁止被挤压 */
  .lb-nav-toggle { display: inline-flex; flex: 0 0 auto; margin-left: 0; }
  .lb-brand { flex-shrink: 0; }
  .lb-nav-actions { flex-shrink: 0; gap: .25rem; justify-content: flex-end; margin-left: auto; }
  .lb-cart-btn { flex: 0 0 auto; }
  .lb-theme-dropdown { flex: 0 0 auto; }
  .lb-theme-panel {
    right: 0;
    width: 240px;
    padding: 14px;
  }
  .lb-theme-panel .lb-swatches { gap: 6px; }
  .lb-theme-panel .lb-swatch { width: 32px; height: 32px; }
  .lb-nav-links {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding: .5rem;
    flex: 0 0 auto; justify-content: flex-start;
    background:
      linear-gradient(180deg, rgba(var(--nav-c), .22), rgba(var(--nav-c), .06)),
      rgba(255, 255, 255, .78);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    backdrop-filter: blur(18px) saturate(180%);
    border-top: 1px solid rgba(var(--nav-c), .25);
    box-shadow: 0 12px 30px rgba(var(--nav-c), .18);
  }
  .lb-nav.open .lb-nav-links { display: flex; }
  .lb-nav-links li + li { border-top: 1px solid rgba(var(--nav-c), .12); }
  .lb-nav-links a { padding: .75rem .875rem; border-radius: .5rem; }
  .lb-nav-links a:hover {
    color: var(--nav-c2);
    background: rgba(var(--nav-c), .14);
  }
  /* 移动端：下拉菜单内联展开，绝对定位变为相对定位 */
  .lb-nav-dropdown { position: static; }
  .lb-nav-item { width: 100%; justify-content: space-between; padding: .75rem .875rem; }
  .lb-nav-submenu {
    position: static; min-width: 0; opacity: 1; visibility: visible;
    transform: none; box-shadow: none; border: 0;
    background: rgba(var(--nav-c), .06); padding: .25rem .5rem; margin: .25rem 0;
  }
  .lb-nav-dropdown:not(.open) .lb-nav-submenu { display: none; }
  .lb-nav-submenu a { padding: .6rem .875rem; font-size: .9375rem; }
}

/* ================== 全站统一页脚 ================== */
.lb-footer {
  margin-top: 3rem;
  padding: 2.25rem 0 1.5rem;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid rgba(var(--nav-c), .12);
}
.lb-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.lb-footer-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .625rem;
}
.lb-footer-dot {
  width: 22px; height: 22px; border-radius: 7px;
  background: linear-gradient(135deg, var(--nav-c1) 0%, var(--nav-c3) 100%);
  box-shadow: 0 2px 6px rgba(var(--nav-c), .35);
  flex: 0 0 auto;
}
.lb-footer-name {
  font-weight: 700;
  font-size: 1rem;
  color: #2b3445;
  letter-spacing: .01em;
  margin-right: .75rem;
}
.lb-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.lb-footer-links a {
  font-size: .875rem;
  color: #6b7280;
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 4px;
  text-decoration-color: rgba(var(--nav-c), .5);
  padding: .25rem .75rem;
  border-radius: .375rem;
  transition: color .2s ease, background .2s ease, text-decoration-color .2s ease;
}
.lb-footer-links a:hover {
  color: rgb(var(--nav-c));
  background: rgba(var(--nav-c), .06);
  text-decoration-color: rgb(var(--nav-c));
}
.lb-footer-contact { display: flex; align-items: center; }
.lb-footer-email {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  color: #4b5563;
  text-decoration: none;
  padding: .4rem .75rem;
  border-radius: .5rem;
  border: 1px solid rgba(var(--nav-c), .18);
  background: rgba(255, 255, 255, .7);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.lb-footer-email:hover {
  color: rgb(var(--nav-c));
  border-color: rgba(var(--nav-c), .4);
  background: #fff;
}
.lb-footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(var(--nav-c), .1);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .25rem;
  font-size: .8125rem;
  color: #9ca3af;
}
.lb-footer-bottom a {
  color: #9ca3af;
  text-decoration: none;
  transition: color .2s ease;
}
.lb-footer-bottom a:hover { color: rgb(var(--nav-c)); }
.lb-footer-divider { opacity: .6; }

@media (max-width: 575.98px) {
  .lb-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .lb-footer-contact { width: 100%; }
  .lb-footer-email { width: 100%; justify-content: center; }
}

/* ================== 登录 / 注册页面 ================== */
.lb-auth {
  display: flex; align-items: center; justify-content: center;
  padding: 4rem 1rem;
  background:
    radial-gradient(60% 55% at 15% 8%, rgba(var(--nav-c), .14), transparent 65%),
    radial-gradient(55% 50% at 88% 88%, rgba(var(--nav-c), .12), transparent 60%),
    #f7f9fc;
}
.lb-auth-card {
  width: 100%; max-width: 440px;
  padding: 2.25rem 2rem;
  border: 1px solid rgba(var(--nav-c), .25);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, .74);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 1.5rem 3rem rgba(var(--nav-c), .18), 0 .25rem .75rem rgba(43, 52, 69, .08);
}
.lb-auth-title {
  margin: 0 0 .375rem;
  font-weight: 700; font-size: 1.5rem;
  color: #2b3445;
}
.lb-auth-sub { margin: 0 0 1.75rem; font-size: .9375rem; color: #6b7280; }
.lb-auth-field { margin-bottom: 1.125rem; }
.lb-auth-label {
  display: block; margin-bottom: .375rem;
  font-size: .875rem; font-weight: 600; color: #4b5563;
}
.lb-form-control {
  display: block; width: 100%; height: 46px;
  padding: .625rem .875rem;
  font-size: .9375rem; color: #2b3445;
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(var(--nav-c), .25);
  border-radius: .75rem;
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.lb-form-control::placeholder { color: #9ca3af; }
.lb-form-control:focus {
  border-color: rgba(var(--nav-c), .7);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(var(--nav-c), .18);
}
.lb-btn-solid {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; height: 46px;
  padding: 0 1.25rem;
  border: 0; border-radius: .75rem;
  background: linear-gradient(135deg, var(--nav-c1) 0%, var(--nav-c3) 100%);
  box-shadow: 0 8px 18px rgba(var(--nav-c), .35);
  color: #fff; font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.lb-btn-solid:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(var(--nav-c), .45); filter: brightness(1.04); color: #fff; }
.lb-btn-solid:active { transform: translateY(0); }
.lb-auth-alt {
  margin-top: 1.25rem;
  text-align: center; font-size: .875rem; color: #6b7280;
}
.lb-auth-alt a {
  color: rgb(var(--nav-c));
  font-weight: 600;
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 3px;
  text-decoration-color: rgba(var(--nav-c), .5);
}
.lb-auth-alt a:hover { color: var(--nav-c3); text-decoration-color: var(--nav-c3); }
.lb-auth-link {
  font-size: .875rem; font-weight: 600;
  color: rgb(var(--nav-c));
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 3px;
  text-decoration-color: rgba(var(--nav-c), .5);
}
.lb-auth-link:hover { color: var(--nav-c3); text-decoration-color: var(--nav-c3); }
.lb-form-check { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: #4b5563; }
.lb-form-check input { accent-color: var(--nav-c2); width: 16px; height: 16px; }

/* ================== 第三方登录（Telegram） ================== */
.lb-auth-divider {
  display: flex; align-items: center; gap: .75rem;
  margin: 1.25rem 0;
  color: #9ca3af; font-size: .8125rem;
}
.lb-auth-divider::before,
.lb-auth-divider::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(var(--nav-c), .18);
}
.lb-tg-login { display: flex; justify-content: center; min-height: 44px; }
.lb-tg-hint { margin: .625rem 0 0; text-align: center; font-size: .8125rem; color: #9ca3af; line-height: 1.5; }

/* ================== 移动端间距收紧 ================== */
@media (max-width: 767.98px) {
  .lb-auth { padding: 2.5rem 1rem 3.5rem; }
  .lb-footer { margin-top: 1.75rem; }
}

/* ================== 新版页面背景向下铺满 ================== */
body.lb-auth-page {
  min-height: 100vh;
  display: flex; flex-direction: column;
  background:
    radial-gradient(52% 34% at 88% 4%, rgba(var(--nav-c), .12), transparent 62%),
    radial-gradient(46% 30% at 8% 26%, rgba(var(--nav-c), .08), transparent 58%),
    linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
}
body.lb-auth-page .lb-auth { flex: 1 0 auto; background: none; }
body.lb-auth-page .lb-footer { margin-top: 0; }/* ==========================================================
   Cartzilla 核心组件补丁（替代丢失的远程 theme.min.css）
   覆盖首页实际用到的专属类，主题色跟随 --nav-c
   ========================================================== */

/* ---- 移动端工具栏 body 类：禁用，避免底部占位 ---- */
body.handheld-toolbar-enabled { padding-bottom: 0 !important; }

/* ---- ci-* 图标：用 SVG data-URI 伪元素替代字体 ---- */
.ci-heart, .ci-eye, .ci-cart, .ci-star,
.ci-star-filled, .ci-star-half, .ci-download,
.ci-arrow-left, .ci-arrow-right {
  font-style: normal; font-weight: 400;
  line-height: 1; display: inline-block;
  vertical-align: -2px;
  background-repeat: no-repeat; background-position: center;
  background-size: contain;
  width: 1em; height: 1em;
}

/* 心形 */
.ci-heart { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E"); }
/* 眼睛 */
.ci-eye { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
/* 购物车 */
.ci-cart { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E"); }
/* 星星空 */
.ci-star { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E"); }
/* 星星实 */
.ci-star-filled, .ci-star.active { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='currentColor' stroke='currentColor' stroke-width='1' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E"); }
/* 半星 */
.ci-star-half { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linejoin='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E"); }
/* 下载 */
.ci-download { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E"); }
/* 左右箭头 */
.ci-arrow-left { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='19' y1='12' x2='5' y2='12'/%3E%3Cpolyline points='12 19 5 12 12 5'/%3E%3C/svg%3E"); }
.ci-arrow-right { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E"); }

/* ---- 按钮增强 ---- */
.btn {
  transition: transform .2s, box-shadow .2s, background-color .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }

.btn-shadow { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.btn-shadow:hover { box-shadow: 0 10px 24px rgba(0,0,0,.14); }

.btn-icon {
  width: 2.4rem; height: 2.4rem; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: .6rem;
}
.btn-icon svg, .btn-icon i { font-size: 1rem; }

.btn-light { background: #fff; color: #343a40; border-color: #e5e7eb; }
.btn-light:hover { background: #f3f4f6; border-color: #d1d5db; color: var(--nav-c3); }

.btn-outline-accent {
  border: 1px solid rgba(var(--nav-c), .6);
  color: var(--nav-c3);
  background: transparent;
}
.btn-outline-accent:hover {
  background: rgba(var(--nav-c), .08);
  color: var(--nav-c3);
}

.btn-sm { font-size: .8125rem; padding: .35rem .75rem; border-radius: .5rem; }
.btn-lg { font-size: 1rem; padding: .65rem 1.4rem; border-radius: .6rem; }

/* ---- 收藏按钮 ---- */
.btn-wishlist {
  position: absolute; top: .75rem; right: .75rem;
  width: 2rem; height: 2rem; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 50%;
  color: #6b7280;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  z-index: 2;
  transition: all .2s ease;
}
.btn-wishlist:hover { color: #ef4444; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.14); transform: scale(1.08); }
.btn-wishlist .ci-heart { width: .9rem; height: .9rem; }

/* ---- 商品卡 ---- */
.card.product-card-alt {
  border: 1px solid rgba(0,0,0,.06);
  border-radius: .9rem;
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  background: #fff;
}
.card.product-card-alt:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--nav-c), .3);
  box-shadow: 0 18px 36px -18px rgba(var(--nav-c), .35);
}
.card.product-card-alt .card-body { padding: 1rem 1.1rem 1.2rem; }

.product-thumb {
  position: relative; width: 100%; aspect-ratio: 1/1;
  overflow: hidden; background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}
.product-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.card.product-card-alt:hover .product-thumb img { transform: scale(1.06); }

.product-card-actions {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) translateY(8px);
  display: flex; gap: .5rem;
  opacity: 0; visibility: hidden;
  transition: all .28s ease;
  z-index: 2;
}
.card.product-card-alt:hover .product-card-actions {
  opacity: 1; visibility: visible;
  transform: translate(-50%, -50%) translateY(0);
}

.product-thumb-overlay {
  position: absolute; inset: 0;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(1px);
  opacity: 0; transition: opacity .3s ease;
}
.card.product-card-alt:hover .product-thumb-overlay { opacity: 1; }

.product-title { margin: 0; font-size: .875rem; line-height: 1.45; font-weight: 600; }
.product-title a { color: #1f2937; text-decoration: none; transition: color .2s; }
.product-title a:hover { color: var(--nav-c3); }

.product-meta { color: #6b7280; font-size: .75rem; text-decoration: none; }
.product-meta:hover { color: var(--nav-c3); }

/* ---- 星级评分 ---- */
.star-rating {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: .85rem; line-height: 1;
}
.star-rating-icon {
  display: inline-block;
  color: #e5e7eb;
  width: .9rem; height: .9rem;
}
.star-rating-icon.active,
.star-rating-icon.ci-star-filled,
.star-rating-icon.ci-star-half { color: #f59e0b; }

/* ---- 主题卡 ---- */
.theme-card {
  border: 1px solid rgba(var(--nav-c), .2);
  box-shadow: 0 1rem 2rem rgba(var(--nav-c), .1), 0 .25rem .75rem rgba(43, 52, 69, .06);
  transition: border-color .25s, box-shadow .25s;
  border-radius: .85rem;
}
.theme-card:hover { box-shadow: 0 1.25rem 2.5rem rgba(var(--nav-c), .18), 0 .25rem .75rem rgba(43, 52, 69, .08); }

/* ---- tiny-slider ---- */
.tns-carousel { overflow: hidden; }
.tns-outer { position: relative; }
.tns-ovh { overflow: hidden; }
.tns-slider { display: flex; flex-wrap: wrap; align-items: stretch; }
.tns-item { flex: 0 0 auto; }
.tns-controls { display: none; }
.tns-nav { display: flex; justify-content: center; gap: 10px; margin-top: 1rem; }
.tns-nav button {
  width: 24px; height: 4px; padding: 0;
  border-radius: 3px; border: none;
  background: #d1d5db !important; cursor: pointer;
  transition: background-color .2s, width .2s, transform .2s;
}
.tns-nav button:hover { background: #9ca3af !important; }
.tns-nav button.tns-nav-active {
  background: #f59e0b !important;   /* 橙色 */
  width: 40px;
  transform: none;
  box-shadow: 0 2px 8px rgba(245, 158, 11, .4);
}

/* ---- Cartzilla 缺失的 utility 类 ---- */
/* 栅格行间距（首页 8 处 col 用的 mb-grid-gutter）*/
.mb-grid-gutter { margin-bottom: 1rem !important; }
.mt-grid-gutter { margin-top: 1rem !important; }

/* Cartzilla 文本辅助类 */
.bg-faded-accent { background-color: rgba(var(--nav-c), .1) !important; }
.text-accent { color: var(--nav-c3) !important; }
.fs-xs { font-size: .75rem; }
.fs-sm { font-size: .875rem; }
.fs-base { font-size: 1rem; }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }

/* ===== 多图悬停切换（提示词卡片）===== */
.product-thumb img {
  transition: opacity .4s ease, transform .5s ease !important;
}
.product-thumb.gallery-switching img { opacity: 0; }

/* ===== 返回顶部按钮 ===== */
.lb-back-top {
  position: fixed;
  right: 1.25rem;
  bottom: 5.5rem;
  z-index: 1040;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(var(--nav-c), .3);
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  color: rgb(var(--nav-c));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(var(--nav-c), .18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease, box-shadow .25s ease;
  padding: 0;
  line-height: 1;
}
.lb-back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lb-back-top:hover {
  box-shadow: 0 6px 24px rgba(var(--nav-c), .35);
  transform: translateY(-2px);
}
.lb-back-top svg {
  width: 1.25rem;
  height: 1.25rem;
}
.dark .lb-back-top {
  background: rgba(30, 30, 40, .7);
  border-color: rgba(var(--nav-c), .35);
  color: rgba(255, 255, 255, .9);
}
/* 手机端：底部右对齐，避开底部导航 */
@media (max-width: 767.98px) {
  .lb-back-top {
    right: 1rem;
    bottom: 5rem;
    width: 2.75rem;
    height: 2.75rem;
  }
}

/* ---------- 密码框查看/隐藏按钮 ---------- */
.lb-field { position: relative; }
.lb-field .lb-form-control { padding-right: 40px; }
.lb-pwd-toggle {
  /* 相对输入框垂直居中：.lb-field 同时含 label，不能用 top:50%（会算上 label 高度）
     输入框高 46px、按钮高 30px，(46-30)/2 = 8px，故贴底 8px 即为输入框垂直中线 */
  position: absolute; right: 8px; bottom: 8px;
  width: 30px; height: 30px;
  border: 0; background: transparent; color: #9ca3af;
  cursor: pointer; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .15s, background .15s;
}
.lb-pwd-toggle:hover { color: #4b5563; background: rgba(0,0,0,.04); }
.lb-pwd-toggle:active { background: rgba(0,0,0,.07); }
.lb-pwd-toggle svg { width: 18px; height: 18px; }

/* ================== 导航栏语言下拉 ================== */
.lb-lang-dropdown { position: relative; }
.lb-lang-btn {
  display: inline-flex; align-items: center; justify-content: center;
}
.lb-lang-panel.lb-lang-panel {
  /* 固定定位到屏幕右上角（导航栏高 64 + 间距 10），右边缘距屏幕 12px：
     不依赖锚点定位，任何窗口宽度下都完整落在屏幕内，杜绝左右溢出 */
  position: fixed;
  top: 74px;
  right: 12px;
  left: auto;
  min-width: 180px; max-height: 340px; overflow-y: auto;
  max-width: calc(100vw - 24px);
}
/* 语言下拉的展开态：选择器必须用 .lb-lang-dropdown.open（而非 .lb-theme-dropdown.open），
   否则面板会一直停留在 .lb-theme-panel 的 visibility:hidden / opacity:0，看起来像被遮挡 */
.lb-lang-dropdown.open .lb-lang-panel {
  opacity: 1; visibility: visible;
  transform: translateY(0) scale(1);
}
.lb-lang-dropdown.open .lb-lang-btn { background: var(--nav-c3); color: #fff; border-color: var(--nav-c2); }
.lb-lang-list {
  display: flex; flex-direction: column; gap: 2px;
  padding: 4px;
}
.lb-lang-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 12px;
  border: 0; border-radius: 8px; background: transparent;
  font-size: 13px; color: #4b5563;
  cursor: pointer; text-align: left;
  transition: background .15s ease;
}
.lb-lang-item:hover { background: rgba(var(--nav-c), .08); color: #1f2937; }
.lb-lang-item.lb-lang-active { background: rgba(var(--nav-c), .14); color: rgb(var(--nav-c)); font-weight: 600; }
.lb-lang-name { font-weight: 500; }
.lb-lang-code {
  font-size: 11px; color: #9ca3af;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .02em;
}
.lb-lang-item.lb-lang-active .lb-lang-code { color: rgba(var(--nav-c), .7); }
