/* ========== 基础 ========== */
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
:root{
  --blue:#4D96FF; --green:#6BCB77; --purple:#9D4EDD;
  --yellow:#FFD93D; --red:#FF6B6B;
  --bg:#0F0F23; --bg-2:#1E1B4B;
  --card:#1A1A33; --card-2:#232347;
  --nav-h: 56px; --bottom-h: 68px;
}
html,body{ height:100%; overflow:hidden; }
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"PingFang SC","Microsoft YaHei",sans-serif;
  background:var(--bg); color:#FFFFFF; user-select:none; touch-action:manipulation;
}

/* ========== 全局星空背景 ========== */
.starfield{
  position:fixed; inset:0;
  z-index:0;
  background:linear-gradient(180deg,#1E1B4B 0%,#191640 50%,#0F0F23 100%);
  pointer-events:none;
}

/* ========== 顶部导航栏（立体感） ========== */
.top-nav{
  position:fixed; top:0; left:0; right:0; height:var(--nav-h);
  display:flex; align-items:center; justify-content:space-between;
  padding:0 12px;
  background:linear-gradient(180deg,#2D1B69 0%,#1E1B4B 100%);
  border-bottom:1px solid rgba(157,78,221,0.4);
  box-shadow:
    0 2px 0 rgba(157,78,221,0.15) inset,
    0 4px 20px rgba(0,0,0,0.5),
    0 1px 0 rgba(255,255,255,0.08) inset;
  z-index:100;
}
.top-nav::after{
  content:'';
  position:absolute;
  bottom:-1px; left:0; right:0;
  height:2px;
  background:linear-gradient(90deg,
    transparent,
    rgba(77,150,255,0.5),
    rgba(157,78,221,0.7),
    rgba(255,107,157,0.5),
    transparent);
}
.nav-left{ display:flex; align-items:center; gap:8px; flex:1; min-width:0; }
.game-logo{
  display:flex; align-items:center; gap:6px;
  font-size:15px; font-weight:800;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.game-logo .logo-text{
  background:linear-gradient(90deg,#FFD93D,#FF6B9D,#4D96FF);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
  filter:drop-shadow(0 0 8px rgba(255,107,157,0.5));
}
.nav-right{ display:flex; align-items:center; gap:6px; flex-shrink:0; }
.nav-btn{
  padding:6px 12px; border:1px solid rgba(255,255,255,0.15);
  border-radius:16px; background:rgba(255,255,255,0.06);
  color:#fff; font-size:12px; font-weight:600;
  cursor:pointer; transition:all .15s; white-space:nowrap;
}
.nav-btn:active{ transform:scale(.95); }
.nav-btn.primary{
  background:linear-gradient(180deg,#5FA8FF,#4D96FF,#3A7BD5);
  border:0;
  box-shadow:
    0 4px 12px rgba(77,150,255,0.5),
    0 1px 0 rgba(255,255,255,0.3) inset,
    0 -2px 0 rgba(0,0,0,0.15) inset;
}
.nav-btn.hidden{ display:none; }

/* 音效开关 */
.audio-btn{
  padding:6px 10px;
  min-width:36px;
  display:flex; align-items:center; justify-content:center;
  font-size:14px;
  background:linear-gradient(180deg,rgba(255,217,61,0.2),rgba(255,159,67,0.1));
  border-color:rgba(255,217,61,0.4);
}
.audio-btn.muted{
  background:linear-gradient(180deg,rgba(255,107,107,0.15),rgba(255,107,107,0.05));
  border-color:rgba(255,107,107,0.3);
  color:rgba(255,255,255,0.5);
}

/* ========== 语言切换 ========== */
.lang-switcher{ position:relative; flex-shrink:0; }
.lang-globe-btn{
  width:32px; height:32px; border-radius:50%;
  border:1px solid rgba(255,255,255,0.2);
  background:rgba(255,255,255,0.06);
  color:#4D96FF; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
.lang-globe-btn:active{ transform:scale(.9); }
.lang-dropdown{
  position:absolute; top:40px; right:0;
  background:#1A1A33; border-radius:14px;
  box-shadow:0 10px 40px rgba(0,0,0,0.6);
  border:1px solid rgba(255,255,255,0.1);
  padding:6px; min-width:180px; display:none;
  z-index:200;
}
.lang-dropdown.show{ display:block; }
.lang-option{
  display:flex; align-items:center; gap:10px;
  padding:10px 14px; border-radius:10px;
  font-size:14px; color:#E5E7EB; cursor:pointer;
}
.lang-option:hover{ background:rgba(77,150,255,0.15); }
.lang-option.active{ background:rgba(77,150,255,0.25); color:#4D96FF; font-weight:700; }
.lang-option .flag{ font-size:18px; }

/* ========== 主内容区（透明以显示星空） ========== */
#appMain{
  position:fixed; top:var(--nav-h); left:0; right:0; bottom:var(--bottom-h);
  overflow-y:auto; overflow-x:hidden; -webkit-overflow-scrolling:touch;
  background:transparent;
  z-index:1;
}
.tab-page{ display:none; min-height:100%; position:relative; }
.tab-page.active{ display:block; }

#tab-game{ background:transparent; height:100%; overflow:hidden; }
#tab-game .game-canvas{
  position:absolute; top:0; left:0;
  width:100%; height:100%; display:block; touch-action:none;
}

.page-content{
  padding:24px 16px 30px;
  max-width:520px; margin:0 auto; min-height:100vh;
  background:transparent;
  position:relative;
  z-index:1;
}
.page-title{
  font-size:22px; font-weight:800; margin-bottom:18px;
  background:linear-gradient(90deg,#4D96FF,#9D4EDD);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  background-clip:text;
}
.page-subtitle{ font-size:16px; font-weight:700; margin:22px 0 14px; color:#FFFFFF; }

/* ========== 底部导航栏（立体感） ========== */
.bottom-nav{
  position:fixed; bottom:0; left:0; right:0; height:var(--bottom-h);
  background:linear-gradient(180deg,#232347 0%,#151530 100%);
  display:flex; align-items:center; justify-content:space-around;
  border-top:1px solid rgba(157,78,221,0.3);
  box-shadow:
    0 -4px 24px rgba(0,0,0,0.55),
    0 1px 0 rgba(255,255,255,0.08) inset;
  z-index:90;
  padding-bottom:env(safe-area-inset-bottom, 0);
}
.bottom-nav::before{
  content:'';
  position:absolute;
  top:-1px; left:0; right:0;
  height:2px;
  background:linear-gradient(90deg,
    transparent,
    rgba(77,150,255,0.5),
    rgba(157,78,221,0.7),
    rgba(255,107,157,0.5),
    transparent);
}
.nav-item{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:3px; flex:1; height:100%; cursor:pointer;
  color:rgba(255,255,255,0.5);
  position:relative;
  transition:transform .15s;
}
.nav-item:active{ transform:scale(.92); }
.nav-item.active{ color:#fff; }

.nav-icon-wrap{
  width:34px; height:34px;
  border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,
    color-mix(in srgb, var(--c1) 22%, transparent),
    color-mix(in srgb, var(--c2) 12%, transparent));
  border:1px solid rgba(255,255,255,0.08);
  transition:all .25s;
  position:relative;
}
.nav-item.active .nav-icon-wrap{
  background:linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow:
    0 6px 16px color-mix(in srgb, var(--c1) 50%, transparent),
    0 1px 0 rgba(255,255,255,0.35) inset,
    0 -2px 0 rgba(0,0,0,0.2) inset;
  transform:translateY(-2px);
}
.nav-icon{ font-size:18px; filter:drop-shadow(0 1px 2px rgba(0,0,0,0.3)); }
.nav-label{ font-size:10px; font-weight:600; letter-spacing:0.2px; }
.nav-item.active .nav-label{
  background:linear-gradient(90deg,var(--c1),var(--c2));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
}

/* ========== 屏幕层 ========== */
#screens{ position:absolute; inset:0; z-index:40; pointer-events:none; }
.screen{
  position:absolute; inset:0; display:none;
  align-items:center; justify-content:center; padding:20px;
  pointer-events:auto; overflow-y:auto;
  background:rgba(15,15,35,0.88); backdrop-filter:blur(8px);
}
.screen.active{ display:flex; }

/* ========== Overlay ========== */
#overlays{ position:fixed; inset:0; z-index:150; pointer-events:none; }
.overlay{
  position:absolute; inset:0;
  background:linear-gradient(180deg,#1E1B4B 0%,#0F0F23 100%);
  display:none; flex-direction:column; pointer-events:auto;
  overflow-y:auto; -webkit-overflow-scrolling:touch;
}
.overlay.show{ display:flex; }

.overlay-header{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px;
  background:linear-gradient(180deg,#2D1B69,#1E1B4B);
  border-bottom:1px solid rgba(157,78,221,0.3);
  box-shadow:0 4px 20px rgba(0,0,0,0.5);
  position:sticky; top:0; z-index:2; flex-shrink:0;
  padding-top:calc(12px + env(safe-area-inset-top, 0));
}
.overlay-back{
  width:36px; height:36px; border-radius:50%; border:0;
  background:rgba(255,255,255,0.08); color:#fff; font-size:20px;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.overlay-back:active{ background:rgba(255,255,255,0.15); }
.overlay-title{ font-size:16px; font-weight:700; text-align:center; flex:1; }
.overlay-body{
  flex:1; padding:20px 16px 32px;
  max-width:480px; margin:0 auto;
  width:100%; box-sizing:border-box;
}

/* ========== 表单字段 ========== */
.field-group{ margin-bottom:16px; }
.field-label{
  display:block; font-size:13px;
  color:rgba(255,255,255,0.65); margin-bottom:8px; font-weight:600;
}
.amount-row{ display:flex; gap:10px; align-items:stretch; }
.amount-row .input{ flex:1; margin:0; }
.btn-all{
  padding:0 18px; border:1px solid rgba(77,150,255,0.4);
  background:rgba(77,150,255,0.15); color:#4D96FF;
  font-size:13px; font-weight:700; border-radius:12px;
  cursor:pointer; white-space:nowrap;
}
.btn-all:active{ transform:scale(.95); }

.info-row{
  display:flex; justify-content:space-between;
  padding:10px 0; font-size:14px;
  color:rgba(255,255,255,0.7);
  border-bottom:1px dashed rgba(255,255,255,0.08);
}
.info-row b{ color:#fff; font-weight:700; }

/* 自定义下拉 */
.custom-select{ position:relative; width:100%; }
.custom-select-trigger{
  width:100%;
  display:flex; align-items:center; justify-content:space-between;
  padding:13px 16px; border-radius:12px;
  border:1px solid rgba(255,255,255,0.1);
  background:rgba(255,255,255,0.04);
  color:#fff; font-size:15px; cursor:pointer; font-family:inherit;
  transition:border-color .2s, background .2s;
}
.custom-select-trigger:hover{ border-color:rgba(77,150,255,0.5); }
.custom-select.open .custom-select-trigger{
  border-color:#4D96FF;
  background:rgba(77,150,255,0.08);
}
.custom-select-arrow{
  color:rgba(255,255,255,0.6);
  transition:transform .2s; flex-shrink:0;
}
.custom-select.open .custom-select-arrow{ transform:rotate(180deg); }

.custom-select-options{
  position:absolute;
  top:calc(100% + 6px);
  left:0; right:0;
  background:#1A1A33;
  border:1px solid rgba(255,255,255,0.12);
  border-radius:12px;
  box-shadow:0 10px 40px rgba(0,0,0,0.6);
  padding:6px;
  display:none;
  z-index:10;
  max-height:240px;
  overflow-y:auto;
}
.custom-select.open .custom-select-options{ display:block; }
.custom-select-option{
  display:flex; align-items:center; gap:10px;
  padding:12px 14px; border-radius:8px;
  font-size:14px; color:#E5E7EB; cursor:pointer;
  transition:background .15s;
}
.custom-select-option:hover{ background:rgba(77,150,255,0.15); }
.custom-select-option.active{
  background:rgba(77,150,255,0.22);
  color:#fff; font-weight:700;
}
.chain-badge{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:38px; height:22px;
  border-radius:6px; font-size:10px; font-weight:800;
  color:#fff; padding:0 6px; letter-spacing:0.3px;
}

/* ========== 卡片（玻璃质感） ========== */
.card{
  width:100%; max-width:400px;
  background:linear-gradient(160deg,rgba(35,35,71,0.95),rgba(26,26,51,0.95));
  border:1px solid rgba(255,255,255,0.1);
  border-radius:20px; padding:26px 22px;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.6),
    0 1px 0 rgba(255,255,255,0.1) inset;
  display:flex; flex-direction:column; gap:12px; margin:auto;
  backdrop-filter:blur(10px);
}
.logo{
  font-size:26px; font-weight:900; text-align:center; line-height:1.2;
  background:linear-gradient(90deg,#4D96FF,#9D4EDD,#FF6B9D);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  background-clip:text;
}
.sub{ text-align:center; font-size:13px; color:rgba(255,255,255,0.5); }
.promo{
  background:rgba(255,217,61,0.12); border:1px dashed rgba(255,217,61,0.4);
  border-radius:12px; padding:10px; font-size:13px; font-weight:700;
  color:#FFD93D; text-align:center;
}
.promo-big{
  font-size:18px; font-weight:900; text-align:center; color:#FFD93D;
  padding:16px; background:rgba(255,217,61,0.12);
  border:1px solid rgba(255,217,61,0.3);
  border-radius:16px; line-height:1.4;
}

/* ========== 输入框 ========== */
.input{
  width:100%; padding:13px 16px; border-radius:12px;
  border:1px solid rgba(255,255,255,0.1);
  background:rgba(255,255,255,0.04);
  color:#FFFFFF; font-size:15px; outline:none;
  transition:border-color .2s, background .2s;
  font-family:inherit;
}
.input::placeholder{ color:rgba(255,255,255,0.35); }
.input:focus{
  border-color:#4D96FF;
  background:rgba(77,150,255,0.08);
  box-shadow:0 0 0 3px rgba(77,150,255,0.15);
}

/* ========== 按钮 ========== */
.btn{
  width:100%; padding:13px; border:0; border-radius:12px; font-size:15px;
  font-weight:700; cursor:pointer; transition:transform .1s;
  font-family:inherit;
}
.btn:active{ transform:scale(.97); }
.btn-primary{
  background:linear-gradient(180deg,#5FA8FF,#4D96FF,#3A7BD5);
  color:#fff;
  box-shadow:
    0 8px 24px rgba(77,150,255,0.4),
    0 1px 0 rgba(255,255,255,0.3) inset,
    0 -2px 0 rgba(0,0,0,0.15) inset;
}
.btn-soft{ background:rgba(77,150,255,0.15); color:#4D96FF; }
.btn-ghost{
  background:transparent; color:rgba(255,255,255,0.5);
  font-weight:500; font-size:13px; padding:8px;
}
.btn-lg{ padding:16px; font-size:16px; }
.btn:disabled{ opacity:.5; cursor:not-allowed; transform:none; }

/* ========== 余额 / 结算 ========== */
.balance-big{ text-align:center; font-size:13px; color:rgba(255,255,255,0.5); }
.balance-big b{ display:block; font-size:30px; color:#6BCB77; margin-top:4px; }
.points-row{ text-align:center; font-size:14px; color:rgba(255,255,255,0.6); }
.points-row b{ color:#A78BFA; }

.result-row{
  display:flex; justify-content:space-between; padding:10px 0;
  border-bottom:1px dashed rgba(255,255,255,0.08); font-size:14px;
  color:rgba(255,255,255,0.7);
}
.result-row b{ color:#6BCB77; font-weight:700; }
.levelup-info{ display:flex; flex-direction:column; gap:4px; padding:10px 0; }

/* ========== 转盘 ========== */
.wheel-wrap{ display:flex; justify-content:center; margin:10px 0 24px; }
.wheel-wrap canvas{
  max-width:100%;
  filter:drop-shadow(0 8px 32px rgba(77,150,255,0.4));
}
.wheel-actions{
  display:flex; flex-direction:column; gap:12px;
  margin-bottom:24px;
}
.wheel-btn{
  display:flex; align-items:center; gap:14px;
  width:100%; padding:16px 18px;
  border:0; border-radius:16px;
  cursor:pointer; text-align:left;
  transition:transform .12s;
  font-family:inherit; position:relative; overflow:hidden;
}
.wheel-btn:active{ transform:scale(.97); }
.wheel-btn-free{
  background:linear-gradient(135deg,#4D96FF,#9D4EDD);
  box-shadow:0 10px 28px rgba(77,150,255,0.45);
}
.wheel-btn-free::before{
  content:''; position:absolute;
  top:-50%; left:-50%;
  width:200%; height:200%;
  background:linear-gradient(45deg,transparent 30%,rgba(255,255,255,0.2) 50%,transparent 70%);
  animation:shine 3s infinite;
}
@keyframes shine{
  0%{ transform:translateX(-100%) translateY(-100%) rotate(45deg); }
  100%{ transform:translateX(100%) translateY(100%) rotate(45deg); }
}
.wheel-btn-points{
  background:linear-gradient(135deg,rgba(157,78,221,0.25),rgba(255,217,61,0.15));
  border:2px solid rgba(157,78,221,0.4);
  box-shadow:0 6px 20px rgba(157,78,221,0.25);
}
.wheel-btn-icon{
  font-size:34px; flex-shrink:0;
  filter:drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}
.wheel-btn-body{ display:flex; flex-direction:column; gap:4px; flex:1; min-width:0; }
.wheel-btn-title{ font-size:17px; font-weight:800; color:#fff; letter-spacing:0.3px; }
.wheel-btn-sub{ font-size:12px; color:rgba(255,255,255,0.75); }
.wheel-btn-sub b{ color:#FFD93D; font-weight:800; }

.wheel-rules{
  background:linear-gradient(160deg,rgba(35,35,71,0.7),rgba(26,26,51,0.7));
  border:1px solid rgba(255,255,255,0.08);
  border-radius:16px; padding:18px 20px;
}
.rules-title{
  font-size:15px; font-weight:800; color:#FFD93D;
  margin-bottom:12px; display:flex; align-items:center; gap:8px;
}
.rules-title::before{ content:'📋'; font-size:18px; }
.rules-list{ list-style:none; display:flex; flex-direction:column; gap:10px; }
.rules-list li{
  display:flex; align-items:flex-start; gap:10px;
  font-size:13px; color:rgba(255,255,255,0.75); line-height:1.55;
}
.rule-dot{
  width:6px; height:6px; border-radius:50%;
  background:linear-gradient(135deg,#4D96FF,#9D4EDD);
  margin-top:7px; flex-shrink:0;
  box-shadow:0 0 6px rgba(77,150,255,0.6);
}

/* ========== 记录列表 ========== */
.records{ font-size:13px; color:rgba(255,255,255,0.7); }
.records .item{
  display:flex; justify-content:space-between; align-items:center;
  padding:14px 16px;
  background:linear-gradient(160deg,rgba(35,35,71,0.85),rgba(26,26,51,0.85));
  border-radius:14px; margin-bottom:10px;
  border:1px solid rgba(255,255,255,0.06);
  backdrop-filter:blur(6px);
}
.records .item .left{ display:flex; flex-direction:column; gap:4px; }
.records .item .right{ text-align:right; }
.records .item .sub{ font-size:11px; color:rgba(255,255,255,0.4); }
.records .item .amt{ font-weight:800; color:#6BCB77; font-size:15px; }
.records .item .amt.negative{ color:#FF6B6B; }
.records .item .badge{
  display:inline-block; padding:2px 8px; border-radius:8px;
  font-size:10px; font-weight:700;
}
.badge.pending{ background:rgba(255,217,61,0.2); color:#FFD93D; }
.badge.approved{ background:rgba(77,150,255,0.2); color:#4D96FF; }
.badge.paid{ background:rgba(107,203,119,0.2); color:#6BCB77; }
.badge.rejected,.badge.failed{ background:rgba(255,107,107,0.2); color:#FF6B6B; }

.empty-tip{
  text-align:center; padding:60px 20px;
  color:rgba(255,255,255,0.35); font-size:14px;
}

/* ========== 签到 ========== */
.checkin-card{
  background:linear-gradient(160deg,rgba(35,35,71,0.9),rgba(26,26,51,0.9));
  border-radius:20px; padding:28px 20px;
  border:1px solid rgba(255,255,255,0.08);
  backdrop-filter:blur(10px);
}
.checkin-streak{
  display:flex; flex-direction:column; align-items:center;
  margin-bottom:24px;
}
.streak-num{
  font-size:64px; font-weight:900;
  background:linear-gradient(180deg,#FFD93D,#FF9F43);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  background-clip:text; line-height:1;
  filter:drop-shadow(0 4px 12px rgba(255,217,61,0.4));
}
.streak-label{ font-size:13px; color:rgba(255,255,255,0.6); margin-top:8px; }
.checkin-rewards{
  display:grid; grid-template-columns:repeat(7, 1fr);
  gap:6px; margin-bottom:24px;
}
.checkin-rewards .day{
  display:flex; flex-direction:column; align-items:center;
  gap:4px; padding:8px 4px; border-radius:10px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.06);
  font-size:10px; color:rgba(255,255,255,0.5);
}
.checkin-rewards .day.done{
  background:linear-gradient(160deg,rgba(107,203,119,0.25),rgba(107,203,119,0.1));
  border-color:rgba(107,203,119,0.4); color:#6BCB77;
}
.checkin-rewards .day.today{
  background:linear-gradient(160deg,rgba(255,217,61,0.25),rgba(255,159,67,0.1));
  border-color:rgba(255,217,61,0.5); color:#FFD93D;
  box-shadow:0 0 12px rgba(255,217,61,0.3);
}
.checkin-rewards .day .num{ font-size:14px; font-weight:800; color:#fff; }

/* ========== 邀请 ========== */
.invite-box{
  display:flex; flex-direction:column; align-items:center; gap:6px;
  background:rgba(107,203,119,0.12);
  border:1px solid rgba(107,203,119,0.3);
  border-radius:14px; padding:18px; margin-bottom:14px;
}
.invite-box b{ font-size:24px; color:#6BCB77; letter-spacing:3px; }

/* ========== 说明页 ========== */
.guide-card{
  background:linear-gradient(160deg,rgba(35,35,71,0.9),rgba(26,26,51,0.9));
  border-radius:16px; border:1px solid rgba(255,255,255,0.08);
  padding:8px 0; margin-bottom:8px;
  backdrop-filter:blur(10px);
}
.guide-step{
  display:flex; align-items:center; gap:14px;
  padding:14px 18px; border-bottom:1px solid rgba(255,255,255,0.06);
}
.guide-step:last-child{ border-bottom:none; }
.step-num{
  width:32px; height:32px; border-radius:50%;
  background:linear-gradient(135deg,#4D96FF,#9D4EDD);
  color:#fff; display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:15px; flex-shrink:0;
  box-shadow:0 4px 12px rgba(77,150,255,0.4);
}
.guide-step p{ font-size:14px; color:rgba(255,255,255,0.8); line-height:1.5; }

.reward-card{
  background:linear-gradient(135deg,rgba(255,217,61,0.15),rgba(255,159,67,0.1));
  border:1px solid rgba(255,217,61,0.25);
  border-radius:16px; padding:16px;
}
.reward-row{
  display:flex; align-items:center; gap:12px; padding:10px 0;
}
.reward-row span{ font-size:22px; }
.reward-row p{ font-size:14px; color:#FFD93D; font-weight:600; line-height:1.4; }

/* ========== 我的 ========== */
.profile-header{
  display:flex; align-items:center; gap:14px;
  padding:20px;
  background:linear-gradient(135deg,#4D96FF,#9D4EDD);
  border-radius:18px; color:#fff; margin-bottom:16px;
  box-shadow:
    0 12px 32px rgba(77,150,255,0.4),
    0 1px 0 rgba(255,255,255,0.2) inset;
}
.avatar{
  width:58px; height:58px; border-radius:50%;
  background:rgba(255,255,255,0.25);
  display:flex; align-items:center; justify-content:center;
  font-size:30px; flex-shrink:0;
  border:2px solid rgba(255,255,255,0.3);
}
.profile-info{ flex:1; min-width:0; }
.profile-info h3{
  font-size:18px; margin:0 0 6px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.profile-meta{ font-size:13px; opacity:.9; display:flex; gap:8px; align-items:center; }
.profile-meta b{
  background:rgba(255,255,255,0.25);
  padding:2px 10px; border-radius:10px; font-size:12px;
}

.balance-card{
  background:linear-gradient(160deg,rgba(35,35,71,0.9),rgba(26,26,51,0.9));
  border-radius:18px; border:1px solid rgba(255,255,255,0.08);
  padding:22px 20px; text-align:center; margin-bottom:16px;
  backdrop-filter:blur(10px);
}
.balance-label{ font-size:13px; color:rgba(255,255,255,0.5); }
.balance-value{
  font-size:34px; font-weight:800; color:#6BCB77;
  margin:8px 0 4px; letter-spacing:-1px;
  filter:drop-shadow(0 2px 8px rgba(107,203,119,0.4));
}
.balance-points{ font-size:13px; color:rgba(255,255,255,0.5); }
.balance-points b{ color:#A78BFA; font-size:15px; }
.balance-actions{ display:flex; gap:10px; margin-top:16px; }
.balance-actions .btn{ flex:1; padding:12px; font-size:14px; }

.me-menu{
  background:linear-gradient(160deg,rgba(35,35,71,0.9),rgba(26,26,51,0.9));
  border-radius:18px; overflow:hidden;
  border:1px solid rgba(255,255,255,0.08);
  backdrop-filter:blur(10px);
}
.me-item{
  display:flex; align-items:center; gap:12px;
  padding:16px 18px; font-size:15px; color:rgba(255,255,255,0.85);
  cursor:pointer; border-bottom:1px solid rgba(255,255,255,0.06);
}
.me-item:last-child{ border-bottom:none; }
.me-item:active{ background:rgba(255,255,255,0.04); }
.me-item span:first-child{ font-size:18px; width:24px; text-align:center; }

.login-prompt{
  background:rgba(255,217,61,0.12);
  border:1px solid rgba(255,217,61,0.3);
  border-radius:16px; padding:20px;
  text-align:center; margin-bottom:16px;
}
.login-prompt p{ font-size:14px; color:#FFD93D; margin-bottom:12px; }

/* ========== 弹窗 ========== */
.modal{
  position:fixed; inset:0; z-index:120; display:none;
  align-items:center; justify-content:center; padding:24px;
  background:rgba(0,0,0,0.7); backdrop-filter:blur(8px);
}
.modal.show{ display:flex; }
.modal-box{
  position:relative; width:100%; max-width:340px;
  background:linear-gradient(160deg,#232347,#1A1A33);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:20px; padding:26px 20px;
  display:flex; flex-direction:column; gap:16px;
  box-shadow:0 20px 60px rgba(0,0,0,0.6);
}
.modal-close{
  position:absolute; top:8px; right:12px;
  border:0; background:transparent; font-size:24px;
  color:rgba(255,255,255,0.4);
  cursor:pointer; padding:4px 12px; line-height:1;
}
.welcome-box{ text-align:center; }
.welcome-icon{ font-size:56px; line-height:1; }
.welcome-title{
  font-size:20px; font-weight:800;
  background:linear-gradient(90deg,#FFD93D,#FF9F43);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  background-clip:text;
}
.welcome-amount{
  font-size:44px; font-weight:900;
  background:linear-gradient(90deg,#FFD93D,#FF6B9D);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  background-clip:text; line-height:1; letter-spacing:-2px;
}
.welcome-amount span{ font-size:18px; }
.welcome-desc{ font-size:13px; color:rgba(255,255,255,0.7); }

.trial-box{ text-align:center; }
.trial-icon{ font-size:52px; line-height:1; }
.trial-title{
  font-size:20px; font-weight:800;
  background:linear-gradient(90deg,#4D96FF,#9D4EDD);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  background-clip:text;
}
.trial-desc{ font-size:14px; color:rgba(255,255,255,0.7); line-height:1.5; }

/* ========== 加载 / Toast ========== */
.loading{
  position:fixed; inset:0; z-index:200;
  display:flex; align-items:center; justify-content:center;
  background:rgba(15,15,35,0.7); backdrop-filter:blur(4px);
}
.loading.hidden{ display:none; }
.spinner{
  width:44px; height:44px;
  border:4px solid rgba(255,255,255,0.1);
  border-top-color:#4D96FF;
  border-radius:50%; animation:spin .8s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg); } }

.hidden{ display:none !important; }

.toast{
  position:fixed; left:50%; top:80px; transform:translateX(-50%);
  background:rgba(30,27,75,0.95); color:#fff;
  padding:10px 18px; border-radius:12px;
  border:1px solid rgba(255,255,255,0.1);
  font-size:14px; z-index:300;
  max-width:80%; text-align:center;
  box-shadow:0 8px 24px rgba(0,0,0,0.4);
}

@media (min-width:768px){
  .card{ max-width:440px; }
  .logo{ font-size:28px; }
  .page-content{ max-width:560px; }
  .top-nav{ padding:0 20px; }
  .overlay-body{ max-width:560px; }
}
/* ========== 音量控制面板 ========== */
.audio-panel{
  position:fixed;
  top:64px;
  right:12px;
  z-index:180;
  width:220px;
  background:linear-gradient(160deg,#232347,#1A1A33);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:16px;
  box-shadow:0 12px 40px rgba(0,0,0,0.6);
  padding:14px;
  display:none;
  animation:audioPop .2s ease;
}
.audio-panel.show{ display:block; }
@keyframes audioPop{
  from{ opacity:0; transform:translateY(-8px) scale(.96); }
  to{ opacity:1; transform:translateY(0) scale(1); }
}
.audio-panel-header{
  display:flex; justify-content:space-between; align-items:center;
  font-size:13px; font-weight:700;
  color:#FFD93D;
  margin-bottom:12px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.audio-panel-close{
  border:0; background:transparent; font-size:18px;
  color:rgba(255,255,255,0.5);
  cursor:pointer; padding:0 4px; line-height:1;
}
.audio-panel-body{ display:flex; flex-direction:column; gap:12px; }
.audio-row{
  display:flex; align-items:center; justify-content:space-between;
  font-size:13px;
  color:rgba(255,255,255,0.8);
}
.audio-row.column{
  flex-direction:column; align-items:stretch; gap:8px;
}
.audio-row label{ font-weight:600; }

/* 开关 */
.switch{
  width:40px; height:22px;
  border-radius:11px;
  background:rgba(255,255,255,0.15);
  position:relative;
  cursor:pointer;
  transition:background .2s;
  flex-shrink:0;
}
.switch::after{
  content:'';
  position:absolute; top:2px; left:2px;
  width:18px; height:18px;
  border-radius:50%;
  background:#fff;
  transition:transform .2s;
  box-shadow:0 2px 4px rgba(0,0,0,0.3);
}
.switch[data-on="1"]{
  background:linear-gradient(90deg,#4D96FF,#9D4EDD);
}
.switch[data-on="1"]::after{
  transform:translateX(18px);
}

/* 音量滑块 */
.vol-slider{
  width:100%;
  height:6px;
  border-radius:3px;
  -webkit-appearance:none;
  appearance:none;
  background:linear-gradient(90deg,#4D96FF,#9D4EDD);
  outline:none;
}
.vol-slider::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:18px; height:18px;
  border-radius:50%;
  background:#fff;
  cursor:pointer;
  box-shadow:0 2px 6px rgba(0,0,0,0.4);
}
.vol-slider::-moz-range-thumb{
  width:18px; height:18px;
  border-radius:50%;
  background:#fff;
  border:0;
  cursor:pointer;
  box-shadow:0 2px 6px rgba(0,0,0,0.4);
}

/* ========== 邀请奖励说明 ========== */
.invite-rules{
  background:linear-gradient(160deg,rgba(35,35,71,0.9),rgba(26,26,51,0.9));
  border:1px solid rgba(107,203,119,0.25);
  border-radius:16px;
  padding:18px 20px;
  margin-top:22px;
  backdrop-filter:blur(10px);
}
.invite-rules .rules-title{
  color:#6BCB77;
}
.invite-rules .rules-title::before{
  content:'🎁';
}
.invite-rules .rule-dot{
  background:linear-gradient(135deg,#6BCB77,#4ECDC4);
  box-shadow:0 0 6px rgba(107,203,119,0.6);
}
.invite-rules .rules-list li{
  color:rgba(255,255,255,0.78);
}
.invite-rules .rules-list b{
  color:#FFD93D;
  font-weight:800;
  margin:0 2px;
}

/* ========== "我的"页面登录按钮组（分离+层次感） ========== */
.login-prompt-actions{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top:16px;
}
.login-prompt-actions .btn{
  padding:14px;
  font-size:15px;
  border-radius:12px;
}
/* 主按钮（注册）加强视觉 */
.login-prompt-actions .btn.btn-primary{
  background:linear-gradient(180deg,#5FA8FF,#4D96FF,#3A7BD5);
  box-shadow:
    0 8px 24px rgba(77,150,255,0.45),
    0 1px 0 rgba(255,255,255,0.3) inset,
    0 -2px 0 rgba(0,0,0,0.15) inset;
}
/* 次按钮（登录）用描边风格，与主按钮区分 */
.login-prompt-actions .btn.btn-soft{
  background:rgba(255,255,255,0.06);
  border:1.5px solid rgba(77,150,255,0.5);
  color:#8CC0FF;
  font-weight:600;
}
.login-prompt-actions .btn.btn-soft:active{
  background:rgba(77,150,255,0.15);
}
/* ========== 注册页 - 密码强度 ========== */
.input-with-icon{ position:relative; }
.input-with-icon .input{ padding-right:44px; }
.pass-toggle{
  position:absolute; right:8px; top:50%; transform:translateY(-50%);
  border:0; background:transparent; color:rgba(255,255,255,0.5);
  font-size:16px; cursor:pointer; padding:4px 8px; line-height:1;
}
.input-check{
  position:absolute; right:12px; top:50%; transform:translateY(-50%);
  font-size:16px; font-weight:800; color:#6BCB77; pointer-events:none;
}
.input-check:empty{ display:none; }

.pwd-strength{
  display:flex; align-items:center; gap:8px;
  margin:-6px 0 4px;
}
.pwd-bar{
  display:flex; gap:4px; flex:1;
}
.pwd-seg{
  flex:1; height:4px; border-radius:2px;
  background:rgba(255,255,255,0.1);
  transition:background .25s;
}
.pwd-text{
  font-size:11px; font-weight:700;
  color:rgba(255,255,255,0.4);
  min-width:44px; text-align:right;
}
.field-hint{
  font-size:11px;
  color:rgba(255,255,255,0.4);
  margin:-6px 0 4px;
  min-height:14px;
}
.field-hint.ok{ color:#6BCB77; }
.field-hint.err{ color:#FF6B6B; }

/* ========== 头像 ========== */
.avatar-wrap{
  position:relative;
  flex-shrink:0;
}
.avatar-wrap .avatar{ overflow:hidden; }
.avatar img{
  width:100%; height:100%; object-fit:cover; border-radius:50%;
  display:block;
}
.avatar-edit{
  position:absolute; bottom:-2px; right:-2px;
  width:22px; height:22px; border-radius:50%;
  border:2px solid #4D96FF;
  background:#fff;
  color:#4D96FF;
  font-size:11px; font-weight:800;
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 2px 8px rgba(0,0,0,0.3);
}
.avatar-edit:active{ transform:scale(.9); }

.avatar-edit-wrap{
  display:flex; flex-direction:column; align-items:center;
  gap:12px; margin-bottom:24px;
}
.avatar-large{
  width:100px; height:100px; border-radius:50%;
  background:linear-gradient(135deg,#4D96FF,#9D4EDD);
  display:flex; align-items:center; justify-content:center;
  font-size:48px;
  box-shadow:0 10px 30px rgba(77,150,255,0.4);
  overflow:hidden;
  border:3px solid rgba(255,255,255,0.15);
}
.avatar-large img{
  width:100%; height:100%; object-fit:cover; display:block;
}

/* 主次按钮视觉分离 */
.login-prompt-actions{
  display:flex; flex-direction:column;
  gap:14px; margin-top:16px;
}
.login-prompt-actions .btn{ padding:14px; font-size:15px; border-radius:12px; }
.login-prompt-actions .btn.btn-primary{
  background:linear-gradient(180deg,#5FA8FF,#4D96FF,#3A7BD5);
  box-shadow:0 8px 24px rgba(77,150,255,0.45),
             0 1px 0 rgba(255,255,255,0.3) inset,
             0 -2px 0 rgba(0,0,0,0.15) inset;
}
.login-prompt-actions .btn.btn-soft{
  background:rgba(255,255,255,0.06);
  border:1.5px solid rgba(77,150,255,0.5);
  color:#8CC0FF;
  font-weight:600;
}
/* ========== ★ 注册奖励弹窗 ========== */
.bonus-box{
  position:relative;
  text-align:center;
  overflow:hidden;
  border:1px solid rgba(255,217,61,0.35);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.6),
    0 0 80px rgba(255,217,61,0.25),
    0 1px 0 rgba(255,217,61,0.4) inset;
  animation:bonusPop .5s cubic-bezier(.17,.89,.32,1.49);
}
@keyframes bonusPop{
  0%{ opacity:0; transform:scale(.6) rotate(-4deg); }
  60%{ opacity:1; transform:scale(1.05) rotate(1deg); }
  100%{ opacity:1; transform:scale(1) rotate(0); }
}
.bonus-glow{
  position:absolute;
  top:-50%; left:50%;
  transform:translateX(-50%);
  width:280px; height:280px;
  background:radial-gradient(circle,rgba(255,217,61,0.45) 0%,rgba(255,217,61,0) 65%);
  pointer-events:none;
  animation:bonusGlow 2.5s ease-in-out infinite;
}
@keyframes bonusGlow{
  0%,100%{ transform:translateX(-50%) scale(1); opacity:.8; }
  50%{ transform:translateX(-50%) scale(1.15); opacity:1; }
}
.bonus-icon{
  position:relative;
  font-size:64px;
  line-height:1;
  margin-bottom:6px;
  filter:drop-shadow(0 6px 16px rgba(255,217,61,0.5));
  animation:bonusBounce 1.4s ease infinite;
}
@keyframes bonusBounce{
  0%,100%{ transform:translateY(0) rotate(0); }
  25%{ transform:translateY(-6px) rotate(-6deg); }
  50%{ transform:translateY(0) rotate(0); }
  75%{ transform:translateY(-3px) rotate(6deg); }
}
.bonus-title{
  position:relative;
  font-size:18px;
  font-weight:800;
  color:#FFD93D;
  letter-spacing:1px;
  margin-bottom:12px;
}
.bonus-amount{
  position:relative;
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap:4px;
  font-size:56px;
  font-weight:900;
  line-height:1;
  letter-spacing:-2px;
  background:linear-gradient(180deg,#FFE97A 0%,#FFD93D 40%,#FF9F43 100%);
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent;
  filter:drop-shadow(0 4px 14px rgba(255,159,67,0.55));
  animation:bonusShine 2s ease-in-out infinite;
  margin-bottom:14px;
}
@keyframes bonusShine{
  0%,100%{ filter:drop-shadow(0 4px 14px rgba(255,159,67,0.55)); }
  50%{ filter:drop-shadow(0 6px 22px rgba(255,217,61,0.85)); }
}
.bonus-plus{
  font-size:32px;
  font-weight:900;
  margin-right:2px;
}
.bonus-unit{
  font-size:22px;
  font-weight:800;
  margin-left:4px;
  letter-spacing:0;
}
.bonus-desc{
  position:relative;
  font-size:13px;
  color:rgba(255,255,255,0.7);
  margin-bottom:18px;
}
.bonus-info{
  position:relative;
  background:rgba(255,217,61,0.08);
  border:1px dashed rgba(255,217,61,0.35);
  border-radius:12px;
  padding:12px 14px;
  margin-bottom:18px;
}
.bonus-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:6px 0;
  font-size:13px;
  color:rgba(255,255,255,0.65);
}
.bonus-row:first-child{ border-bottom:1px dashed rgba(255,217,61,0.2); }
.bonus-row b{
  font-size:16px;
  font-weight:800;
  color:#6BCB77;
  letter-spacing:0.5px;
}
.bonus-row:last-child b{
  color:#A78BFA;
}
/* ========== ★ 邀请记录状态样式 ========== */
.invite-item .right{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:3px;
  flex-shrink:0;
  max-width:55%;
}
.invite-item .amt.pending{
  color:#FFD93D;
  background:rgba(255,217,61,0.12);
  border:1px solid rgba(255,217,61,0.35);
  font-size:11px;
  font-weight:700;
  padding:3px 9px;
  border-radius:8px;
  letter-spacing:0.5px;
}
.invite-item .sub-note{
  font-size:10px;
  color:rgba(255,255,255,0.4);
  line-height:1.35;
  text-align:right;
}
.invite-item .amt{
  font-size:14px;
}

/* ========== ★ 邀请汇总 ========== */
.invite-summary{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  padding:14px 16px;
  margin-top:14px;
  background:linear-gradient(160deg,rgba(107,203,119,0.1),rgba(78,205,196,0.05));
  border:1px solid rgba(107,203,119,0.2);
  border-radius:14px;
  font-size:12px;
  color:rgba(255,255,255,0.7);
  line-height:1.6;
}
.invite-summary b{
  color:#fff;
  font-size:14px;
  font-weight:800;
}
.invite-summary b.green{
  color:#6BCB77;
}
.invite-summary .sep{
  color:rgba(255,255,255,0.25);
  margin:0 2px;
}
.invite-summary:empty{ display:none; }

/* ========== 阿拉伯语文本方向（仅文本 RTL，布局仍 LTR） ========== */
/* 让阿拉伯语文本自然从右到左显示，但不影响整体布局 */
[lang="ar"] .card,
[lang="ar"] .page-content,
[lang="ar"] .overlay-body,
[lang="ar"] .modal-box,
[lang="ar"] .trans-table td,
[lang="ar"] p,
[lang="ar"] label,
[lang="ar"] span:not(.nav-icon):not(.logo-text):not(.game-logo):not(.flag) {
  /* 阿拉伯文本由浏览器自动处理方向，无需额外设置 */
}

/* 阿拉伯语输入框：文字右对齐更自然 */
[lang="ar"] input.input,
[lang="ar"] textarea.trans-input {
  direction: rtl;
  text-align: right;
}

/* 阿拉伯语的按钮文字：保持居中 */
[lang="ar"] .btn,
[lang="ar"] button {
  /* 不变 */
}

/* 阿拉伯语的 toast 提示 */
[lang="ar"] .toast {
  direction: rtl;
}

/* ========== ★ 失败重玩弹窗 ========== */
.retry-box {
  text-align: center;
  border: 1px solid rgba(77,150,255,0.35);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.6),
    0 0 60px rgba(77,150,255,0.2),
    0 1px 0 rgba(77,150,255,0.4) inset;
  animation: bonusPop .4s cubic-bezier(.17,.89,.32,1.49);
}
.retry-icon {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 8px;
  animation: rotateLoop 3s linear infinite;
}
@keyframes rotateLoop {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.retry-title {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(90deg, #4D96FF, #9D4EDD);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.retry-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 16px;
}
.retry-desc b {
  color: #FFD93D;
  font-size: 16px;
  font-weight: 800;
  margin: 0 2px;
}
.retry-box .btn {
  margin-top: 4px;
}

/* ========== ★ TG 客服（顶栏图标） ========== */
.tg-nav-btn {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
  color: #fff;
  cursor: pointer;
  display: none;              /* 默认隐藏，由 JS 根据配置显示 */
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  box-shadow:
    0 2px 10px rgba(42, 171, 238, 0.55),
    0 0 14px rgba(42, 171, 238, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 -1px 0 rgba(0, 0, 0, 0.15) inset;
  transition: transform .15s, box-shadow .2s;
  overflow: visible;
}
.tg-nav-btn.show {
  display: flex;
}
.tg-nav-btn:active {
  transform: scale(0.9);
}
.tg-nav-btn:hover {
  box-shadow:
    0 4px 14px rgba(42, 171, 238, 0.7),
    0 0 20px rgba(42, 171, 238, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 -1px 0 rgba(0, 0, 0, 0.15) inset;
}

/* TG 飞机图标 */
.tg-nav-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
  /* 微调使其视觉居中 */
  margin-left: -1px;
  margin-top: 1px;
}

/* 高亮脉冲环（吸引注意） */
.tg-nav-btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid rgba(42, 171, 238, 0.7);
  animation: tgRing 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes tgRing {
  0%   { transform: scale(0.9); opacity: 0.9; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* 小屏适配：与其他图标保持一致 */
@media (max-width: 360px) {
  .tg-nav-btn {
    width: 30px;
    height: 30px;
  }
  .tg-nav-btn svg {
    width: 16px;
    height: 16px;
  }
}

/* ========== 信息页面（关于我们等） ========== */
.page-text-content {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  /* 支持纯文本换行和 HTML 渲染 */
  white-space: pre-wrap;
  word-break: break-word;
  padding-bottom: 32px;
}
/* 如果内容包含 HTML 标签，可以去掉 pre-wrap，或者通过 JS 动态判断 */
.page-text-content.html-mode {
  white-space: normal;
}
.page-text-content p {
  margin-bottom: 12px;
}
.page-text-content h1, 
.page-text-content h2, 
.page-text-content h3 {
  color: #FFD93D;
  margin: 20px 0 10px;
}
.page-text-content a {
  color: #4D96FF;
  text-decoration: underline;
}

/* ========== ★ 独立信息页面完美弹窗 ========== */
#overlays {
  position: fixed;
  inset: 0;
  z-index: 150;           /* 确保在最顶层 */
  pointer-events: none;
}

.overlay {
  position: absolute;
  inset: 0;
  /* 确保有完整的深色背景，不透明 */
  background: linear-gradient(180deg, #1E1B4B 0%, #0F0F23 100%);
  display: none; 
  flex-direction: column; 
  pointer-events: auto;
  overflow-y: auto; 
  -webkit-overflow-scrolling: touch;
}
.overlay.show { 
  display: flex; 
}

/* 通用页面内容展示区排版 */
.page-text-content {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  white-space: pre-wrap;       /* 保留原生换行 */
  word-break: break-word;
  padding: 20px 24px 60px;
  background: transparent;
}
/* 如果内容是 HTML，取消 pre-wrap */
.page-text-content.html-mode {
  white-space: normal;
}
/* ★ 公共信息菜单（未登录也显示） */
.info-menu {
  margin-bottom: 24px;
}