/* ============================================================
   Glassmorphism Skin v4.0 — 渐变玻璃拟态
   结构与 JS 钩子保持兼容：所有 display/active 规则与原版一致
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  width: 100%;
  height: auto;
  position: relative;
  background: linear-gradient(160deg, #0b0f2a 0%, #171233 35%, #0d2137 70%, #0a1830 100%);
  background-attachment: fixed;
  color: #eef1ff;
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}
/* 浮动光斑（玻璃拟态背景氛围） */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
body::before {
  width: 520px;
  height: 520px;
  left: -140px;
  top: -120px;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
  animation: orbFloat 14s ease-in-out infinite alternate;
}
body::after {
  width: 460px;
  height: 460px;
  right: -120px;
  bottom: -100px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  animation: orbFloat 18s ease-in-out infinite alternate-reverse;
}
@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.15); }
}
div,
a {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
li {
  list-style: none;
}
.gold_spade {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}
/* ---------- 首页开始 ---------- */
.gold_spade .home {
  display: none;
  width: 100%;
  padding: 24px 16px 130px;
  box-sizing: border-box;
  max-width: 700px;
  margin: 0 auto;
}
.gold_spade .home.active {
  display: block;
}
.gold_spade .home .top {
  width: 100%;
  height: 160px;
  border-radius: 20px;
  background-image: url("../image/top.jpg?v=2.1");
  background-size: contain;
  margin-bottom: 10px;
}
.gold_spade .home .toggle_list {
  display: flex;
}
.gold_spade .home .toggle_list li {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
}
.gold_spade .home .toggle_list li img {
  width: 40px;
  height: 40px;
  margin-bottom: 5px;
}
/* 卡密到期时间 */
.gold_spade .endtime {
  font-size: 14px !important;
  padding: 0 0 12px 6px !important;
  margin-top: 0 !important;
  color: rgba(238, 241, 255, 0.85) !important;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gold_spade .endtime span {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}
/* ---------- 选择列表区域 ---------- */
.gold_spade .home .choices {
  display: none;
  margin: 0;
  border-radius: 20px;
  color: #eef1ff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 8px 32px rgba(2, 6, 23, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 14px;
}
.gold_spade .home .choices .t {
  border-radius: 14px 14px 0 0;
  height: 40px;
  line-height: 40px;
  color: #fff;
  font-weight: 600;
  font-size: 22px;
  text-align: center;
}
.gold_spade .home .choices .c {
  padding: 6px;
}
/* 分类玻璃卡片 */
.gold_spade .home .choices .c .li {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
  border-radius: 16px;
  padding: 6px 0;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.gold_spade .home .choices .c .li:hover {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.18);
}
.gold_spade .home .choices .c .title {
  height: 30px;
  line-height: 30px;
  color: #fff;
  font-size: 15px;
  text-align: left;
  padding-left: 20px;
  margin: 5px 0;
  font-weight: bold;
  background: linear-gradient(135deg, #c4b5fd, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gold_spade .home .choices .c .t1 {
  padding-left: 20px;
  font-size: 13px;
  color: rgba(238, 241, 255, 0.55);
  margin-bottom: 4px;
}
.gold_spade .home .choices .li .title span {
  float: right;
  width: 30px;
  height: 30px;
  margin-right: 10px;
  background: url("/static/image/jt.png") no-repeat center;
}
.gold_spade .home .choices .li.active .title span {
  float: right;
  width: 30px;
  height: 30px;
  margin-right: 10px;
  background: url("/static/image/jt1.png") no-repeat center;
}
/* 功能选项（CSS 绘制玻璃勾选框，替代旧贴图） */
.gold_spade .home .choices .c .sub_nav { display: none; }
.gold_spade .home .choices .c .li.active .sub_nav { display: block !important; }
.gold_spade .home .choices .c .sub_nav li {
  font-weight: 600;
  font-size: 13px;
  line-height: 30px;
  color: rgba(238, 241, 255, 0.9);
  background: none;
  padding-left: 25px;
  margin: 6px 16px 6px 20px;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.gold_spade .home .choices .c .sub_nav li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 15px;
  height: 15px;
  border-radius: 5px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
  transition: all 0.2s ease;
}
/* 勾选加固：禁 WebView 字体自动放大（防 ✓ 字形被撑大错位），裁切溢出；选中态方框高亮 */
.gold_spade .home .choices .c .sub_nav li { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.gold_spade .home .choices .c .sub_nav li::after { overflow: hidden; }
.gold_spade .home .choices .c .sub_nav li.active::before {
  border-color: rgba(52, 211, 153, 0.9);
  background: rgba(52, 211, 153, 0.22);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}
.gold_spade .home .choices .c .sub_nav li:hover {
  background: rgba(255, 255, 255, 0.06);
}
.gold_spade .home .choices .c .sub_nav li.active::before {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  border-color: transparent;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
}
/* 勾选标记：与勾选框同几何的 flex 居中遮罩，杜绝字形偏移错位 */
.gold_spade .home .choices .c .sub_nav li::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  pointer-events: none;
}
.gold_spade .home .choices .c .sub_nav li.active::after {
  content: "";
  /* SVG 矢量勾：纯几何居中，不受系统字体度量/字体放大影响 */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12l5 5 11-11' fill='none' stroke='%23ffffff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
}
.gold_spade .home .choices .c .sub_nav.s1 li.active {
  color: #fff;
}
.gold_spade .home .choices .c .sub_nav.s2 li.active {
  color: #fff;
}
.gold_spade .home .choices .c .sub_nav.s3 li.active {
  color: #fff;
}
/* 单选组（radio）：圆点样式 */
.gold_spade .home .choices .c .sub_nav.radio li::before {
  border-radius: 50%;
}
.gold_spade .home .choices .c .sub_nav.radio li.active::after {
  content: "";
  background: radial-gradient(circle, #fff 0 2.5px, transparent 3px);
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9));
}
.gold_spade .home .choices .c .sub_nav.radio li.active {
  color: #fff;
}
.gold_spade .home .choices.active {
  display: block;
}
.gold_spade .home .choices .choice_item {
  color: #fff;
}
.gold_spade .home .choices .choice_item > p {
  width: 100%;
  text-align: center;
  font-size: 20px;
  margin-bottom: 5px;
}
/* ---------- 我的区域 ---------- */
.gold_spade .mine {
  display: none;
  position: relative;
  height: 100vh;
  width: 100%;
  padding: 20px 0 130px;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}
.gold_spade .mine.active {
  display: flex;
}
.gold_spade .mine .user_info .avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto;
  border: 3px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.4);
}
.gold_spade .mine .user_info .username {
  color: #fff;
  text-align: center;
  font-size: 22px;
  margin-top: 10px;
}
/* 退出登录按钮 */
.logout_div .logout_btn {
  display: block;
  width: 110px;
  margin: 20px auto 0 auto;
  padding: 8px 0;
  font-size: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  box-sizing: border-box;
  text-align: center;
  color: rgba(238, 241, 255, 0.85);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}
.logout_div .logout_btn:hover {
  background: rgba(244, 63, 94, 0.18);
  border-color: rgba(244, 63, 94, 0.45);
  color: #fecdd3;
}
/* 退出确认弹窗（玻璃） */
.logout_div .logout {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 74%;
  max-width: 340px;
  padding: 24px;
  box-sizing: border-box;
  background: rgba(20, 20, 45, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.6);
  z-index: 9999;
  color: #eef1ff;
}
.logout_div .logout.active {
  display: block;
}
.logout_div .logout h2 {
  font-size: 20px;
  margin-bottom: 15px;
}
.logout_div .logout p {
  font-size: 15px;
  margin-bottom: 30px;
  color: rgba(238, 241, 255, 0.75);
}
.logout_div .logout .buttons {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
}
.logout_div .logout .buttons div {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.logout_div .logout .buttons div:first-child {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  color: #fff;
  font-weight: 700;
  margin-right: 10px;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.35);
}
.logout_div .logout .buttons div:last-child {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(238, 241, 255, 0.8);
  margin-left: 10px;
}
/* ---------- 底部启动菜单 ---------- */
.gold_spade .menu {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  display: none;
  z-index: 500;
}
.gold_spade .menu.active {
  display: block;
}
.gold_spade .menu > .launch {
  height: 54px;
  width: 100%;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.92), rgba(6, 182, 212, 0.92));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: filter 0.2s ease;
}
.gold_spade .menu > .launch:hover {
  filter: brightness(1.12);
}
.gold_spade .menu > .launch.active {
  display: flex;
}
.gold_spade .menu > .launch .icon {
  width: 25px;
  height: 25px;
  background-image: url("../image/start.png");
  margin-right: 8px;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.7));
}
.gold_spade .menu > .launch .icon.active {
  background-image: url("../image/pause.png");
}
.gold_spade .menu > .toggle {
  height: 50px;
  width: 100%;
  display: flex;
  background: rgba(15, 15, 40, 0.7);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.gold_spade .menu > .toggle > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.gold_spade .menu > .toggle > div:nth-of-type(1).active {
  display: flex;
}
.gold_spade .menu > .toggle > div:nth-of-type(1).active > .icon {
  background-image: url("../image/home_active.png?v=1");
}
.gold_spade .menu > .toggle > div:nth-of-type(1) > .icon {
  background-image: url("../image/home.png");
}
.gold_spade .menu > .toggle > div:nth-of-type(2).active > .icon {
  background-image: url("../image/mine_active.png?v=1");
}
.gold_spade .menu > .toggle > div:nth-of-type(2) > .icon {
  background-image: url("../image/mine.png");
}
.gold_spade .menu > .toggle > div > .icon {
  width: 22px;
  height: 22px;
}
.gold_spade .menu > .toggle > div > .text {
  font-size: 12px;
  color: rgba(238, 241, 255, 0.65);
}
.gold_spade .menu > .toggle > div.active > .text {
  color: #a78bfa;
}
/* ---------- 登录区域 ---------- */
.gold_spade .login {
  display: none;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100%;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(124, 58, 237, 0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(6, 182, 212, 0.22) 0%, transparent 55%),
    rgba(5, 8, 26, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
}
.gold_spade .login.active {
  display: block;
}
.gold_spade .login .login_content {
  padding: 40px 30px 30px;
  border-radius: 24px;
  box-sizing: border-box;
  display: block;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  width: 300px;
  margin: 0 auto;
  margin-top: 22vh;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  box-shadow: 0 24px 64px rgba(2, 6, 23, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.gold_spade .login .login_content p {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #e9d5ff, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gold_spade .login .login_content input {
  width: 100%;
  outline: none;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 12px;
  box-sizing: border-box;
  margin-bottom: 10px;
  margin-top: 20px;
  font-size: 15px;
  letter-spacing: 1px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.gold_spade .login .login_content input:focus {
  border-color: rgba(139, 92, 246, 0.7);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}
.gold_spade .login .login_content input::-webkit-input-placeholder {
  font-size: 15px;
  color: rgba(238, 241, 255, 0.4);
}
.gold_spade .login .login_content .btn {
  display: block;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  border: none;
  color: white;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 6px;
  width: 100%;
  height: 44px;
  line-height: 44px;
  text-align: center;
  border-radius: 14px;
  margin: 20px auto 10px auto;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
  transition: transform 0.15s ease, box-shadow 0.25s ease, filter 0.2s ease;
}
.gold_spade .login .login_content .btn:hover {
  filter: brightness(1.15);
  box-shadow: 0 10px 32px rgba(6, 182, 212, 0.5);
}
.gold_spade .login .login_content .btn:active {
  transform: scale(0.97);
}
/* ---------- loading ---------- */
.gold_spade .loading {
  display: none;
  width: 50%;
  max-width: 260px;
  height: 130px;
  background: rgba(15, 15, 40, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: 20px;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 2000;
}
.gold_spade .loading.active {
  display: flex;
}
.gold_spade .loading > .icon {
  width: 50px;
  height: 50px;
  background-image: url("../image/loading.gif");
  margin-bottom: 5px;
}
.gold_spade .loading > .text {
  font-size: 16px;
  color: #fff;
}
/* ---------- 轻提示 ---------- */
.gold_spade .tip {
  display: none;
  padding: 12px 24px;
  box-sizing: border-box;
  background: rgba(15, 15, 40, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  font-size: 15px;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 14px;
  width: auto;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.5);
  z-index: 2100;
}
.gold_spade .tip.active {
  display: block;
}
/* ---------- 欢迎弹窗 ---------- */
.gold_spade .helper {
  box-shadow: 0 24px 64px rgba(2, 6, 23, 0.6);
  display: none;
  width: 82%;
  max-width: 400px;
  background: rgba(20, 20, 45, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 20px;
  overflow: hidden;
  box-sizing: border-box;
  z-index: 9999;
}
.gold_spade .helper.active {
  display: block;
}
.gold_spade .helper > .title {
  padding: 16px 0;
  text-align: center;
  font-size: 20px;
  color: #fff;
  font-weight: bold;
}
.gold_spade .helper > .content {
  padding: 10px 18px;
  box-sizing: border-box;
  font-size: 15px;
  overflow: scroll;
  color: rgba(238, 241, 255, 0.85);
  line-height: 25px;
  max-height: 50vh;
}
.gold_spade .helper > .content .operation .title {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  color: #ffffff;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 6px;
}
.gold_spade .helper > .content .operation .content_box {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(238, 241, 255, 0.6);
  line-height: 25px;
}
.gold_spade .helper > .buttons {
  left: 0;
  bottom: 0;
  background: transparent;
  width: 100%;
  display: flex;
  padding: 0 18px 18px;
  box-sizing: border-box;
}
.gold_spade .helper > .buttons > .btn {
  flex: 100%;
  padding: 13px 0;
  text-align: center;
  box-sizing: border-box;
  border: none;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  color: #fff;
  font-weight: 700;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}
/* ---------- 登录提示 / 信息 ---------- */
.login_tip {
  width: 90%;
  max-width: 300px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 13px;
  line-height: 22px;
  box-sizing: border-box;
  color: rgba(238, 241, 255, 0.65);
  border-radius: 14px;
  margin: 18px auto 0;
}
.login_info {
  text-align: center;
  padding: 5px 22px;
  font-size: 12px;
  line-height: 21px;
  color: rgba(103, 232, 249, 0.75);
  max-width: 340px;
  margin: 14px auto 0;
}
.version {
  display: flex;
  justify-content: center;
  font-size: 11px;
  color: rgba(238, 241, 255, 0.45);
  margin: 14px 0 10px 0;
  letter-spacing: 1px;
}
/* ---------- 操作流程按钮与内容 ---------- */
.czbtn {
  color: #67e8f9;
  font-size: 17px;
  text-align: center;
  font-weight: 700;
  display: block;
  cursor: pointer;
  padding: 10px 0;
  transition: text-shadow 0.2s ease;
}
.czbtn:hover {
  text-shadow: 0 0 12px rgba(103, 232, 249, 0.8);
}
.czcon {
  margin: 6px 0 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: rgba(238, 241, 255, 0.75);
  font-size: 13px;
  line-height: 25px;
  height: 300px;
  overflow-y: auto;
  border-radius: 14px;
}
.czcon::-webkit-scrollbar {
  width: 6px;
}
.czcon::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  border-radius: 3px;
}
/* ---------- 遮罩 ---------- */
.gold_spade .zhezhao {
  display: none;
  position: fixed;
  height: 100vh;
  width: 100%;
  background: rgba(5, 8, 26, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  top: 0;
  left: 0;
}

/* ============================================================
   FX v5.0 — 炫酷动效层（纯追加，不破坏 v4 结构与 JS 钩子）
   ============================================================ */
@property --fx-ang {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* 星尘画布（由 JS 注入，body 直下） */
#fx-stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* 极光色带：随时间缓慢流动变换色相 */
.gold_spade::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 35% at 25% 20%, rgba(124, 58, 237, 0.22), transparent 65%),
    radial-gradient(ellipse 55% 40% at 78% 68%, rgba(6, 182, 212, 0.2), transparent 65%),
    radial-gradient(ellipse 45% 30% at 50% 90%, rgba(236, 72, 153, 0.14), transparent 60%);
  animation: auroraShift 22s ease-in-out infinite alternate;
  filter: blur(30px);
}
@keyframes auroraShift {
  0%   { transform: translate3d(-3%, -2%, 0) rotate(-2deg) scale(1);   filter: blur(30px) hue-rotate(0deg); }
  50%  { transform: translate3d(3%, 2%, 0)  rotate(1.5deg) scale(1.08); filter: blur(34px) hue-rotate(28deg); }
  100% { transform: translate3d(-2%, 3%, 0) rotate(-1deg) scale(1.04);  filter: blur(30px) hue-rotate(-18deg); }
}

/* ---------- 通用进场动效 ---------- */
@keyframes fxSlideUp {
  from { opacity: 0; transform: translateY(26px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fxPop {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.72); }
  62%  { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
  82%  { transform: translate(-50%, -50%) scale(0.97); }
  100% { transform: translate(-50%, -50%) scale(1); }
}
@keyframes fxToast {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  55%  { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
  75%  { transform: translate(-50%, -50%) scale(0.95); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* 登录卡片：弹入 + 旋转流光描边 */
.gold_spade .login.active .login_content {
  animation: fxCardIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes fxCardIn {
  from { opacity: 0; transform: translateY(34px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.gold_spade .login .login_content {
  position: relative;
}
.gold_spade .login .login_content::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--fx-ang),
    transparent 0deg, rgba(139, 92, 246, 0.9) 60deg,
    rgba(6, 182, 212, 0.9) 120deg, transparent 190deg,
    transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  animation: fxBorderSpin 3.6s linear infinite;
  pointer-events: none;
}
@keyframes fxBorderSpin {
  to { --fx-ang: 360deg; }
}

/* 登录标题：流光渐变字 + 呼吸光晕 */
.gold_spade .login .login_content > p {
  background: linear-gradient(120deg, #e9d5ff 10%, #67e8f9 30%, #a78bfa 50%, #67e8f9 70%, #e9d5ff 90%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: fxTitleFlow 4s linear infinite, fxTitleGlow 2.6s ease-in-out infinite alternate;
}
@keyframes fxTitleFlow {
  from { background-position: 0% 0; }
  to   { background-position: -220% 0; }
}
@keyframes fxTitleGlow {
  from { filter: drop-shadow(0 0 4px rgba(139, 92, 246, 0.35)); }
  to   { filter: drop-shadow(0 0 14px rgba(6, 182, 212, 0.65)); }
}

/* 登录按钮：扫光 + 悬浮上浮 */
.gold_spade .login .login_content .btn {
  position: relative;
  overflow: hidden;
}
.gold_spade .login .login_content .btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-22deg);
  animation: fxShimmer 2.8s ease-in-out infinite;
}
@keyframes fxShimmer {
  0%   { left: -80%; }
  55%  { left: 130%; }
  100% { left: 130%; }
}

/* 输入框聚焦呼吸 */
.gold_spade .login .login_content input:focus {
  animation: fxInputBreath 1.8s ease-in-out infinite alternate;
}
@keyframes fxInputBreath {
  from { box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18); }
  to   { box-shadow: 0 0 0 6px rgba(6, 182, 212, 0.3); }
}

/* 到期时间条滑入 */
.gold_spade .home.active .endtime {
  animation: fxSlideUp 0.6s ease both;
}

/* 功能卡片逐个滑入 + 悬浮抬升 */
.gold_spade .home .choices.active .c .li {
  animation: fxSlideUp 0.55s ease both;
}
.gold_spade .home .choices.active .c .li:nth-child(1) { animation-delay: 0.05s; }
.gold_spade .home .choices.active .c .li:nth-child(2) { animation-delay: 0.13s; }
.gold_spade .home .choices.active .c .li:nth-child(3) { animation-delay: 0.21s; }
.gold_spade .home .choices.active .c .li:nth-child(4) { animation-delay: 0.29s; }
.gold_spade .home .choices.active .c .li:nth-child(5) { animation-delay: 0.37s; }
.gold_spade .home .choices.active .c .li:nth-child(n+6) { animation-delay: 0.45s; }
.gold_spade .home .choices .c .li:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 34px rgba(124, 58, 237, 0.28);
}

/* 选项点击：选中框弹跳 */
.gold_spade .home .choices .c .sub_nav li {
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}
.gold_spade .home .choices .c .sub_nav li:active {
  transform: scale(0.96);
}
.gold_spade .home .choices .c .sub_nav li.active {
  animation: fxCheckPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes fxCheckPop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* 启动条：流光渐变滚动 + 运行中雷达脉冲 */
.gold_spade .menu > .launch {
  background-size: 220% 220%;
  animation: fxLaunchFlow 5s ease-in-out infinite;
}
@keyframes fxLaunchFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.gold_spade .menu.active > .launch {
  animation: fxLaunchFlow 5s ease-in-out infinite, fxLaunchUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes fxLaunchUp {
  from { transform: translateY(64px); }
  to   { transform: translateY(0); }
}
.gold_spade .launch .icon.active {
  animation: fxRadar 1.3s ease-out infinite;
}
@keyframes fxRadar {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.65); }
  100% { box-shadow: 0 0 0 18px rgba(255, 255, 255, 0); }
}

/* loading：CSS 双环旋转，替代静态 gif 观感 */
.gold_spade .loading > .icon {
  background-image: none !important;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-top-color: #8b5cf6;
  border-right-color: #06b6d4;
  animation: fxSpin 0.8s linear infinite;
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.35);
}
@keyframes fxSpin {
  to { transform: rotate(360deg); }
}
.gold_spade .loading {
  animation: fxPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* 轻提示：Q 弹出场 */
.gold_spade .tip.active {
  animation: fxToast 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* 弹窗（欢迎 / 退出）弹簧入场 */
.gold_spade .helper.active,
.logout_div .logout.active {
  animation: fxPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* 操作流程按钮呼吸提醒 */
.czbtn {
  animation: fxCue 2.4s ease-in-out infinite;
}
@keyframes fxCue {
  0%, 100% { opacity: 0.75; }
  50%      { opacity: 1; }
}

/* 降低动态偏好时关闭全部动效 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #fx-stars { display: none; }
}

/* ============================================================
   Mobile v5.1 — 手机端适配（≤640px）
   ============================================================ */
@media (max-width: 640px) {
  /* 登录页：宽度随屏，输入框≥16px 防 iOS 聚焦自动缩放 */
  .gold_spade .login .login_content {
    width: 86%;
    max-width: 320px;
    margin-top: 16vh;
    padding: 34px 22px 26px;
  }
  .gold_spade .login .login_content > p { font-size: 26px; letter-spacing: 1px; }
  .gold_spade .login .login_content input { font-size: 16px; padding: 13px; }
  .gold_spade .login .login_content .btn { letter-spacing: 4px; height: 46px; line-height: 46px; }
  .login_tip { width: 88%; font-size: 12px; line-height: 20px; }
  .login_info { width: 88%; padding: 5px 12px; font-size: 12px; }

  /* 功能选择页：压缩留白、增大点按热区 */
  .gold_spade .home { padding: 12px 10px 122px; }
  .gold_spade .home .choices { padding: 10px; border-radius: 16px; }
  .gold_spade .home .choices .c { padding: 2px; }
  .gold_spade .home .choices .c .li { margin-bottom: 12px; border-radius: 14px; }
  .gold_spade .home .choices .c .title { font-size: 16px; padding-left: 14px; height: 34px; line-height: 34px; margin: 4px 0; }
  .gold_spade .home .choices .c .t1 { padding-left: 14px; padding-right: 10px; font-size: 12px; }
  .gold_spade .home .choices .c .sub_nav li {
    font-size: 14px;
    line-height: 42px;
    margin: 7px 8px 7px 12px;
    padding-left: 34px;
  }
  .gold_spade .home .choices .c .sub_nav li::before { top: 12px; width: 17px; height: 17px; left: 4px; }
  .gold_spade .home .choices .c .sub_nav li::after { left: 4px; top: 12px; width: 17px; height: 17px; font-size: 11px; }

  /* 操作流程 */
  .czbtn { font-size: 15px; padding: 12px 0; }
  .czcon { height: 250px; font-size: 12px; line-height: 22px; padding: 12px; }

  /* 底部启动栏加高，易点按 */
  .gold_spade .menu > .launch { height: 58px; font-size: 18px; letter-spacing: 6px; }

  /* 提示条允许换行，避免长文案溢出屏幕 */
  .gold_spade .tip {
    white-space: normal;
    width: 80vw;
    max-width: 320px;
    text-align: center;
    line-height: 22px;
  }

  /* 弹窗类 */
  .gold_spade .helper { width: 90%; max-width: none; }
  .gold_spade .helper > .content { max-height: 55vh; font-size: 14px; padding: 10px 14px; }
  .gold_spade .helper > .buttons { padding: 0 14px 14px; }
  .logout_div .logout { width: 86%; }
  .logout_div .logout_btn { margin-top: 14px; }

  /* 触屏设备关闭 hover 位移，避免“粘住”悬浮态 */
  .gold_spade .home .choices .c .li:hover { transform: none; }
}

/* ============================================================
   GAME HUD v6.0 — 品牌头 / 游戏感氛围 / 启动爆发特效
   ============================================================ */
/* 透视网格地面（合成波风格） */
.fx_grid {
  position: fixed;
  left: -20%;
  right: -20%;
  bottom: -4%;
  height: 36vh;
  pointer-events: none;
  z-index: 0;
  background:
    repeating-linear-gradient(90deg, rgba(103, 232, 249, 0.14) 0 1px, transparent 1px 52px),
    repeating-linear-gradient(0deg, rgba(139, 92, 246, 0.16) 0 1px, transparent 1px 36px);
  transform: perspective(420px) rotateX(58deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(transparent, #000 45%);
  mask-image: linear-gradient(transparent, #000 45%);
  animation: fxGridMove 2.6s linear infinite;
}
@keyframes fxGridMove {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 0, 0 36px; }
}
/* 扫描线 + 暗角（游戏 HUD 质感） */
.gold_spade::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 450;
  background:
    radial-gradient(ellipse at center, transparent 58%, rgba(2, 6, 23, 0.4) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 3px);
}
/* ---------- HUD 品牌头 ---------- */
.gold_spade .expire_warn {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 0 2px 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.18), rgba(251, 146, 60, 0.16));
  border: 1px solid rgba(244, 63, 94, 0.5);
  color: #fecdd3;
  font-size: 13px;
  font-weight: 700;
  animation: fxSlideUp 0.5s ease both, fxWarnPulse 1.6s ease-in-out infinite;
}
.gold_spade .expire_warn.active {
  display: flex;
}
.gold_spade .expire_warn .ew_icon {
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #f43f5e, #fb923c);
  color: #fff;
  font-style: normal;
  font-weight: 900;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.8);
}
@keyframes fxWarnPulse {
  0%, 100% { box-shadow: inset 0 0 18px rgba(244, 63, 94, 0.15), 0 0 10px rgba(244, 63, 94, 0.2); }
  50%      { box-shadow: inset 0 0 26px rgba(244, 63, 94, 0.3), 0 0 22px rgba(244, 63, 94, 0.45); }
}
.gold_spade .hud .endtime_v.warn {
  color: #fb7185 !important;
  text-shadow: 0 0 10px rgba(244, 63, 94, 0.7);
  animation: fxCue 1.2s ease-in-out infinite;
}
.gold_spade .hud {
  padding: 2px 2px 12px;
}
.gold_spade .hud .hud_brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
}
.gold_spade .hud .hud_logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.55), 0 0 44px rgba(6, 182, 212, 0.28);
}
.gold_spade .hud .hud_logo img {
  width: 100%;
  height: 100%;
  display: block;
}
.gold_spade .hud .hud_logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.38) 50%, transparent 68%);
  animation: fxShimmer 3.2s ease-in-out infinite;
}
.gold_spade .hud .hud_name {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 4px;
  background: linear-gradient(120deg, #e9d5ff 10%, #67e8f9 40%, #a78bfa 70%, #67e8f9 90%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fxTitleFlow 4s linear infinite;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.45));
}
.gold_spade .hud .hud_sub {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(103, 232, 249, 0.8);
  margin-top: 3px;
}
.gold_spade .hud .hud_dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: fxDot 1.6s ease-in-out infinite;
}
@keyframes fxDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.75); }
}
.gold_spade .hud .hud_stats {
  display: flex;
  gap: 8px;
}
.gold_spade .hud .hud_stat {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 12px;
  color: rgba(238, 241, 255, 0.6);
  animation: fxSlideUp 0.5s ease both;
}
.gold_spade .hud .hud_stat span {
  color: #67e8f9;
  font-weight: 700;
}
.gold_spade .hud .hud_stat.ff span {
  color: #34d399;
  text-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
}
/* 防封日期横幅：功能框内、选项上方 */
.gold_spade .home .choices .ff_banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 4px;
  gap: 8px;
  margin: 2px 4px 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.16), rgba(6, 182, 212, 0.12));
  border: 1px solid rgba(52, 211, 153, 0.42);
  box-shadow: inset 0 0 18px rgba(52, 211, 153, 0.12), 0 0 14px rgba(52, 211, 153, 0.18);
  font-size: 13px;
  font-weight: 600;
  color: rgba(238, 241, 255, 0.82);
  position: relative;
  overflow: hidden;
  animation: fxSlideUp 0.5s ease both;
}
.gold_spade .home .choices .ff_banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: skewX(-22deg);
  animation: fxShimmer 3.4s ease-in-out infinite;
}
.gold_spade .home .choices .ff_banner .ff_shield {
  width: 18px;
  height: 18px;
  flex: none;
  background: linear-gradient(135deg, #34d399, #06b6d4);
  clip-path: polygon(50% 0, 100% 22%, 100% 60%, 50% 100%, 0 60%, 0 22%);
  filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.9));
}
.gold_spade .home .choices .ff_banner span {
  color: #34d399;
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.7);
}
.gold_spade .home .choices .ff_banner .ff_tag {
  margin-left: auto;
  font-style: normal;
  font-size: 10px;
  letter-spacing: 1px;
  color: #0b0f2a;
  background: linear-gradient(135deg, #34d399, #67e8f9);
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 700;
}
/* 最新北京时间：与防封更新日期并排，青色等宽数字 */
.gold_spade .home .choices .ff_banner .ff_bj {
  color: rgba(238, 241, 255, 0.72);
  font-weight: 600;
  letter-spacing: 0;
  text-shadow: none;
}
.gold_spade .home .choices .ff_banner .ff_bj .ff_bjtime {
  color: #67e8f9;
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(103, 232, 249, 0.7);
  font-variant-numeric: tabular-nums;
}
/* ---------- 卡片 HUD 角标 + 标题光条 ---------- */
.gold_spade .home .choices .c .li {
  position: relative;
}
.gold_spade .home .choices .c .li::before,
.gold_spade .home .choices .c .li::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  z-index: 2;
}
.gold_spade .home .choices .c .li::before {
  left: -1px;
  top: -1px;
  border-left: 2px solid rgba(103, 232, 249, 0.7);
  border-top: 2px solid rgba(103, 232, 249, 0.7);
  border-top-left-radius: 16px;
}
.gold_spade .home .choices .c .li::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid rgba(139, 92, 246, 0.7);
  border-bottom: 2px solid rgba(139, 92, 246, 0.7);
  border-bottom-right-radius: 16px;
}
.gold_spade .home .choices .c .title {
  position: relative;
}
.gold_spade .home .choices .c .title::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, #8b5cf6, #06b6d4);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.8);
}
/* ---------- 登录页 LOGO ---------- */
.gold_spade .login .login_logo {
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.6), 0 0 60px rgba(6, 182, 212, 0.3);
}
.gold_spade .login .login_logo img {
  width: 100%;
  height: 100%;
  display: block;
}
.gold_spade .login .login_logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.38) 50%, transparent 68%);
  animation: fxShimmer 3.2s ease-in-out infinite;
}
/* ---------- 运行中启动条：能量斜纹流动 ---------- */
.gold_spade .menu > .launch {
  position: relative;
  overflow: hidden;
}
.gold_spade .menu > .launch.running {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.94), rgba(6, 182, 212, 0.94));
  box-shadow: 0 -6px 32px rgba(16, 185, 129, 0.5);
}
.gold_spade .menu > .launch.running::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.16) 0 12px, transparent 12px 26px);
  animation: fxEnergy 1s linear infinite;
  pointer-events: none;
}
@keyframes fxEnergy {
  from { background-position: 0 0; }
  to   { background-position: 52px 0; }
}
/* ---------- 启动成功：全屏爆发特效 ---------- */
.gold_spade .boom {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2600;
  pointer-events: none;
  overflow: hidden;
}
.gold_spade .boom.active {
  display: block;
}
.gold_spade .boom .boom_flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.92), rgba(139, 92, 246, 0.4) 38%, transparent 72%);
  animation: fxFlash 1s ease-out both;
}
@keyframes fxFlash {
  0%   { opacity: 0; }
  12%  { opacity: 1; }
  100% { opacity: 0; }
}
.gold_spade .boom .boom_ring {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-radius: 50%;
  border: 2px solid rgba(103, 232, 249, 0.85);
  animation: fxRing 1.5s cubic-bezier(0.2, 0.6, 0.3, 1) both;
}
.gold_spade .boom .boom_ring.r2 {
  border-color: rgba(139, 92, 246, 0.85);
  animation-delay: 0.18s;
}
.gold_spade .boom .boom_ring.r3 {
  border-color: rgba(236, 72, 153, 0.75);
  animation-delay: 0.36s;
}
@keyframes fxRing {
  from { transform: scale(0.2); opacity: 1; }
  to   { transform: scale(15); opacity: 0; }
}
.gold_spade .boom .boom_sparks i {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: #67e8f9;
  box-shadow: 0 0 10px #67e8f9;
  animation: fxSpark 1.2s ease-out both;
}
.gold_spade .boom .boom_sparks i:nth-child(even) {
  background: #a78bfa;
  box-shadow: 0 0 10px #a78bfa;
}
.gold_spade .boom .boom_sparks i:nth-child(3n) {
  background: #ec4899;
  box-shadow: 0 0 10px #ec4899;
}
.gold_spade .boom .boom_sparks i:nth-child(1)  { --a: 0deg; }
.gold_spade .boom .boom_sparks i:nth-child(2)  { --a: 30deg; }
.gold_spade .boom .boom_sparks i:nth-child(3)  { --a: 60deg; }
.gold_spade .boom .boom_sparks i:nth-child(4)  { --a: 90deg; }
.gold_spade .boom .boom_sparks i:nth-child(5)  { --a: 120deg; }
.gold_spade .boom .boom_sparks i:nth-child(6)  { --a: 150deg; }
.gold_spade .boom .boom_sparks i:nth-child(7)  { --a: 180deg; }
.gold_spade .boom .boom_sparks i:nth-child(8)  { --a: 210deg; }
.gold_spade .boom .boom_sparks i:nth-child(9)  { --a: 240deg; }
.gold_spade .boom .boom_sparks i:nth-child(10) { --a: 270deg; }
.gold_spade .boom .boom_sparks i:nth-child(11) { --a: 300deg; }
.gold_spade .boom .boom_sparks i:nth-child(12) { --a: 330deg; }
@keyframes fxSpark {
  from { transform: rotate(var(--a)) translateY(-34px) scale(1); opacity: 1; }
  to   { transform: rotate(var(--a)) translateY(-210px) scale(0.3); opacity: 0; }
}
.gold_spade .boom .boom_core {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  text-align: center;
  animation: fxCoreIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}
@keyframes fxCoreIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.gold_spade .boom .boom_badge {
  width: 88px;
  height: 88px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.85), 0 0 100px rgba(6, 182, 212, 0.5);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
  animation: fxBadgePulse 1.4s ease-in-out infinite;
}
@keyframes fxBadgePulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
.gold_spade .boom .boom_title {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 8px;
  background: linear-gradient(120deg, #e9d5ff, #67e8f9, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(103, 232, 249, 0.7));
}
.gold_spade .boom .boom_sub {
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: 2px;
  color: rgba(238, 241, 255, 0.9);
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
}
/* 震屏反馈 */
body.shake .gold_spade {
  animation: fxShake 0.6s linear;
}
@keyframes fxShake {
  0%, 100% { transform: translate(0, 0); }
  20%      { transform: translate(-6px, 3px); }
  40%      { transform: translate(5px, -4px); }
  60%      { transform: translate(-4px, -3px); }
  80%      { transform: translate(4px, 3px); }
}
/* ---------- 移动端 HUD 适配 ---------- */
@media (max-width: 640px) {
  .gold_spade .hud .hud_logo { width: 44px; height: 44px; border-radius: 12px; }
  .gold_spade .hud .hud_name { font-size: 20px; letter-spacing: 3px; }
  .gold_spade .hud .hud_sub { font-size: 9px; letter-spacing: 1.5px; }
  .gold_spade .hud .hud_stat { font-size: 11px; padding: 8px 6px; gap: 4px; }
  .gold_spade .home .choices .ff_banner { font-size: 12px; padding: 9px 10px; margin: 2px 2px 8px; }
  .gold_spade .home .choices .ff_banner .ff_bj { margin-left: 0; }
  .gold_spade .expire_warn { font-size: 12px; padding: 9px 10px; margin: 0 0 10px; }
  .gold_spade .boom .boom_title { font-size: 26px; letter-spacing: 5px; }
  .gold_spade .boom .boom_badge { width: 72px; height: 72px; font-size: 38px; }
  .gold_spade .boom .boom_sub { font-size: 13px; }
}

/* ============================================================
   v6.2 STABLE LAYER — 安卓 WebView 整页高频闪烁修复
   ------------------------------------------------------------
   根因（按影响排序，均为“每帧全屏重绘”类开销）：
   1) 13 处 backdrop-filter，其中 .login / .zhezhao 是整屏 fixed 面，
      WebView 每帧都要回读背景重新模糊 → 整屏明暗抖动
   2) .gold_spade::before 极光层 inset:-20%（约 1.4 屏）且 keyframes 内
      改 filter:blur()，属非合成动画 → 主线程逐帧重新光栅
   3) body::before/::after 光斑 filter:blur(90px) + transform 动画
   4) .fx_grid 透视网格：background-position 动画 + 3D transform + mask
   5) .gold_spade::after 全屏 1px 重复扫描线，高分屏下摩尔纹抖动
   6) fxShimmer 动画 left（逐帧触发 layout）、fxTitleGlow 动画 filter
   7) fxBorderSpin 依赖 @property，旧内核 WebView 不支持时退化为离散
      跳变（描边频闪）
   修复原则：保留配色 / 发光 / 进场动效，去掉逐帧全屏重绘来源
   ============================================================ */

/* 1) 背景改为随文档滚动：fixed 附着在 WebView 下滚动即整屏重绘 */
html, body {
  background-attachment: scroll !important;
}

/* 2) 全局关闭 backdrop-filter，用加深底色补回“玻璃”观感 */
*, *::before, *::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.gold_spade .login {
  background:
    radial-gradient(ellipse at 20% 20%, rgba(124, 58, 237, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(6, 182, 212, 0.24) 0%, transparent 55%),
    rgba(5, 8, 26, 0.88) !important;
}
.gold_spade .login .login_content {
  background: linear-gradient(160deg, rgba(40, 36, 78, 0.94), rgba(17, 25, 51, 0.95)) !important;
}
.gold_spade .home .choices {
  background: linear-gradient(160deg, rgba(36, 33, 70, 0.9), rgba(15, 23, 47, 0.9)) !important;
}
.gold_spade .hud .hud_stat { background: rgba(20, 24, 54, 0.78) !important; }
.czcon { background: rgba(18, 22, 50, 0.78) !important; }
.login_tip { background: rgba(18, 22, 50, 0.66) !important; }
.gold_spade .zhezhao { background: rgba(5, 8, 26, 0.72) !important; }
.gold_spade .helper,
.logout_div .logout { background: rgba(23, 23, 52, 0.97) !important; }
.gold_spade .loading,
.gold_spade .tip { background: rgba(17, 17, 45, 0.96) !important; }
.gold_spade .menu > .toggle { background: rgba(15, 15, 40, 0.95) !important; }
.logout_div .logout_btn { background: rgba(255, 255, 255, 0.1) !important; }

/* 3) 极光层关闭（1.4 屏模糊 + keyframes 改 filter，闪烁主凶之一） */
.gold_spade::before { display: none !important; }

/* 4) 全屏扫描线只保留静态暗角，去掉 1px 重复渐变 */
.gold_spade::after {
  background: radial-gradient(ellipse at center, transparent 62%, rgba(2, 6, 23, 0.38) 100%) !important;
}

/* 5) 透视网格关闭（background-position 动画 + 3D transform + mask） */
.fx_grid { display: none !important; }

/* 6) 浮动光斑去掉 90px 模糊与位移动画，改为静态柔光 */
body::before, body::after {
  filter: none !important;
  animation: none !important;
  opacity: 0.3 !important;
}

/* 7) fxShimmer 原动画 left（逐帧 layout），改为合成层 transform；
      同时把各处 ::after 的起点固定，交由 translateX 位移 */
.gold_spade .login .login_content .btn::after,
.gold_spade .home .choices .ff_banner::after { left: 0 !important; }
.gold_spade .hud .hud_logo::after,
.gold_spade .login .login_logo::after {
  inset: 0 auto 0 -60% !important;
  width: 60% !important;
}
@keyframes fxShimmer {
  0%   { transform: skewX(-22deg) translateX(-170%); }
  55%  { transform: skewX(-22deg) translateX(320%); }
  100% { transform: skewX(-22deg) translateX(320%); }
}

/* 8) 登录标题：去掉逐帧重绘的 drop-shadow 动画，改静态光晕 */
.gold_spade .login .login_content > p {
  animation: fxTitleFlow 4s linear infinite !important;
  filter: drop-shadow(0 0 9px rgba(139, 92, 246, 0.5)) !important;
}

/* 9) 登录卡旋转描边：@property 驱动的 conic-gradient 逐帧重绘，
      旧内核还会退化成离散跳变 → 改为静态渐变描边 */
.gold_spade .login .login_content::after { animation: none !important; }

/* ============================================================
   v6.2 「启动成功」可读性修复
   原问题：.boom 是 z-index:2600 的整屏 fixed 层，boom_flash 仅 1s 就淡出，
   之后 ✓ / 启动成功 / 副标题直接压在功能列表上，标题又是
   background-clip:text 透明填充 → 与卡片内容混叠，看不清
   修复：常驻暗色蒙层 + 卡片底衬 + 标题改实色高亮，结束前整体淡出
   ============================================================ */
.gold_spade .boom::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 50% 44%, rgba(9, 12, 32, 0.74) 0%, rgba(5, 8, 26, 0.9) 62%, rgba(3, 5, 18, 0.95) 100%);
  animation: fxScrim 3s ease both;
}
@keyframes fxScrim {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { opacity: 0; }
}
.gold_spade .boom .boom_core {
  padding: 22px 28px 20px !important;
  border-radius: 22px !important;
  background: linear-gradient(160deg, rgba(33, 30, 68, 0.94), rgba(13, 20, 43, 0.96)) !important;
  border: 1px solid rgba(139, 92, 246, 0.5) !important;
  box-shadow: 0 22px 70px rgba(2, 6, 23, 0.8), 0 0 46px rgba(139, 92, 246, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  animation: fxCoreLife 3s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
}
@keyframes fxCoreLife {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  16%  { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
  24%  { transform: translate(-50%, -50%) scale(1); }
  84%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.96); }
}
.gold_spade .boom .boom_badge {
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 34px rgba(139, 92, 246, 0.9), 0 0 84px rgba(6, 182, 212, 0.55) !important;
}
/* 标题：透明渐变字在复杂背景上几乎不可读 → 改实色白 + 强发光 */
.gold_spade .boom .boom_title {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #fff !important;
  color: #fff !important;
  filter: none !important;
  text-shadow: 0 0 14px rgba(103, 232, 249, 0.95), 0 0 34px rgba(139, 92, 246, 0.8), 0 2px 6px rgba(0, 0, 0, 0.65) !important;
}
.gold_spade .boom .boom_sub {
  color: #fff !important;
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.85), 0 1px 4px rgba(0, 0, 0, 0.6) !important;
}
