/* ============================================================
   首页入口层：透明毛玻璃卡片（参考极简落地页风格）
   与 custom-landing.js 配套；仅首页且未登录时出现
   ============================================================ */

html.xjc-landing-active,
html.xjc-landing-active body {
  overflow: hidden !important;
}

/* 隐藏原有的首页模板，避免和入口层叠在一起 */
html.xjc-landing-active .template1-wrapper {
  visibility: hidden !important;
  opacity: 0 !important;
}

#xjc-landing {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: "Inter", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: #fff;
  animation: xjc-fade .5s ease both;
}

@keyframes xjc-fade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.xjc-glass {
  width: 100%;
  max-width: 420px;
  padding: 34px 28px 28px;
  border-radius: 24px;
  background: rgba(8, 16, 28, .38);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
  text-align: center;
}

.xjc-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,.10));
  border: 1px solid rgba(255, 255, 255, .28);
  display: flex;
  align-items: center;
  justify-content: center;
}
.xjc-logo img[src=""] { display: none; }
.xjc-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.xjc-glass h1 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.xjc-glass .xjc-sub {
  margin: 0 0 26px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .82);
}

.xjc-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.xjc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.xjc-btn:active { transform: scale(.97); }

.xjc-btn-primary {
  color: #06202e;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.xjc-btn-primary:hover { background: #fff; }

.xjc-btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .26);
}
.xjc-btn-ghost:hover { background: rgba(255, 255, 255, .22); }

.xjc-browse {
  margin-top: 18px;
  display: inline-block;
  font-size: 13px;
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, .35);
  cursor: pointer;
}
.xjc-browse:hover { color: #fff; }

.xjc-footer {
  margin-top: 22px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .72);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
  text-align: center;
  line-height: 1.9;
}
.xjc-footer a {
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
}
.xjc-footer a:hover { color: #fff; }
.xjc-footer .sep { opacity: .45; margin: 0 8px; }

@media (max-width: 380px) {
  .xjc-glass { padding: 28px 20px 24px; border-radius: 20px; }
  .xjc-glass h1 { font-size: 22px; }
}

/* 右下角：换背景按钮 */
.xjc-shuffle {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 9999;
  padding: 9px 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  cursor: pointer;

  transition: background .18s ease, transform .18s ease;
}
.xjc-shuffle:hover { background: rgba(255, 255, 255, .24); }
.xjc-shuffle:active { transform: scale(.96); }
