/* ==========================================================================
   神行道俱乐部 — 离线存档版 增强样式
   仅在静态离线副本中使用：补齐原站依赖 JS 才能呈现的交互外观
   ========================================================================== */

/* ---------- 移动端抽屉菜单 ---------- */
.sxd-drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(3px);
}
.sxd-drawer-mask.is-open { display: block; }
.sxd-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 121;
  height: 100%;
  width: min(84vw, 320px);
  padding: 22px 20px;
  border-left: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateX(105%);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
  box-shadow: -18px 0 50px rgba(0, 0, 0, .55);
}
.sxd-drawer.is-open { transform: translateX(0); }
.sxd-drawer .sxd-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 10px;
  border-bottom: 1px solid hsl(var(--border));
}
.sxd-drawer .sxd-drawer-head span { font-size: 13px; letter-spacing: .22em; color: hsl(var(--primary)); }
.sxd-drawer .sxd-drawer-x {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent; cursor: pointer;
  color: hsl(var(--muted-foreground));
}
.sxd-drawer .sxd-drawer-x:hover { color: hsl(var(--primary)); }
.sxd-drawer a {
  padding: 12px 4px;
  font-size: 15px;
  letter-spacing: .06em;
  color: hsl(var(--foreground));
  border-bottom: 1px solid hsl(var(--border) / .45);
  transition: color .2s, padding-left .2s;
}
.sxd-drawer a:hover { color: hsl(var(--primary)); padding-left: 10px; }
.sxd-drawer a.is-current { color: hsl(var(--primary)); }

/* ---------- 当前栏目高亮 ---------- */
header nav a[data-sxd-current="1"] { color: hsl(var(--foreground)); }
header nav a[data-sxd-current="1"]::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 4px;
  background: hsl(var(--primary));
}

/* ---------- 图片灯箱 ---------- */
.sxd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .92);
  cursor: zoom-out;
  padding: 32px;
}
.sxd-lightbox.is-open { display: flex; }
.sxd-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .7);
}
.sxd-lightbox .sxd-lb-close {
  position: absolute;
  top: 18px; right: 22px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid hsl(var(--border));
  background: rgba(0, 0, 0, .5);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
img.sxd-zoomable { cursor: zoom-in; }

/* ---------- 回到顶部 ---------- */
.sxd-totop {
  position: fixed;
  right: 14px;
  bottom: 54px;
  z-index: 89;
  width: 38px; height: 38px;
  display: none;
  align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card) / .92);
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: color .2s, border-color .2s;
}
.sxd-totop.is-show { display: inline-flex; }
.sxd-totop:hover { color: hsl(var(--primary)); border-color: hsl(var(--primary) / .6); }
.sxd-totop svg { width: 16px; height: 16px; }

/* ---------- 表单离线提示 ---------- */
.sxd-form-lock { position: relative; }
.sxd-form-lock::after {
  content: "离线存档：表单不可提交";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(0, 0, 0, .55);
  color: hsl(var(--primary));
  font-size: 12px;
  letter-spacing: .08em;
  pointer-events: none;
}
.sxd-toast {
  position: fixed;
  left: 50%;
  top: 84px;
  transform: translateX(-50%);
  z-index: 220;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  opacity: 0;
  transition: opacity .25s, transform .25s;
}
.sxd-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(4px); }

/* ---------- 座驾欣赏：筛选下拉 ---------- */
.sxd-select-holder { position: relative; }
.sxd-select-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 60;
  min-width: 100%;
  max-height: 320px;
  overflow: auto;
  padding: 4px;
  border: 1px solid hsl(var(--border));
  border-radius: 6px;
  background: hsl(var(--popover));
  box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
}
.sxd-select-item {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: hsl(var(--popover-foreground));
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}
.sxd-select-item:hover { background: hsl(var(--secondary)); }
.sxd-select-item.is-active { color: hsl(var(--primary)); }
.sxd-filter-result {
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: .06em;
  color: hsl(var(--primary));
}
.sxd-tab-off { opacity: .55; cursor: not-allowed; }

/* ---------- 会员登录弹窗（扫码进入小程序） ---------- */
.sxd-login-mask {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(4px);
}
.sxd-login-mask.is-open { display: flex; }
.sxd-login-modal {
  position: relative;
  width: min(92vw, 360px);
  padding: 28px 24px 26px;
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  animation: sxd-login-pop .22s ease;
}
@keyframes sxd-login-pop {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.sxd-login-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid hsl(var(--border));
  background: transparent;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.sxd-login-x:hover { color: hsl(var(--primary)); border-color: hsl(var(--primary) / .6); }
.sxd-login-brand {
  font-size: 14px;
  letter-spacing: .22em;
  color: hsl(var(--primary));
  margin-bottom: 18px;
}
.sxd-login-qr {
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.sxd-login-qr img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sxd-login-tip { margin: 0 0 6px; font-size: 16px; font-weight: 600; color: hsl(var(--foreground)); }
.sxd-login-sub { margin: 0; font-size: 12px; color: hsl(var(--muted-foreground)); letter-spacing: .04em; }

/* ---------- 打印 ---------- */
@media print {
  .sxd-totop, .sxd-drawer, .sxd-drawer-mask { display: none !important; }
}
