/* ============================================================
   《决战千年》文字游戏 —— 样式
   暗色奇幻风：墨黑底 + 鎏金描边 + 朱红生命
   ============================================================ */

:root {
  --bg-0:      #080a0e;
  --bg-1:      #0f1219;
  --bg-2:      #151a24;
  --panel:     rgba(21, 26, 36, .88);
  --panel-2:   rgba(30, 37, 50, .7);
  --line:      #2a3346;
  --line-soft: #1d2432;

  --txt:       #d8dee9;
  --txt-dim:   #8a93a6;
  --txt-faint: #5c6577;

  --gold:      #d9b26a;
  --gold-dim:  #8a7343;
  --gold-glow: rgba(217, 178, 106, .35);

  --blue:      #6fb3ff;
  --red:       #e05a4a;
  --red-deep:  #8c2f27;
  --green:     #6fcf97;
  --purple:    #b18cf0;
  --crit:      #ffd166;

  --font-title: "STZhongsong", "Songti SC", "Noto Serif SC", "SimSun", serif;
  --font-body:  "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;

  /* 全局只有手机端一套布局：宽屏（电脑）时把游戏收成一条居中的手机宽竖栏 */
  --app-w: 560px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--txt);
  background:
    radial-gradient(1200px 700px at 15% -10%, #1a2233 0%, transparent 60%),
    radial-gradient(900px 600px at 100% 0%, #1d1a2b 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 40%, var(--bg-0));
  background-attachment: fixed;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  -webkit-tap-highlight-color: transparent;
}

button, .btn, .chip, .mob-item, .tab, .area-card, .opp-btn, .forge-btn, .opp-card {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.hidden { display: none !important; }

/* ============================================================
   统一手机端：没有独立的桌面版
   —— 电脑宽屏打开时，只把游戏收成一条居中的手机宽度竖栏，
      布局、字号、底部导航全部与手机端完全一致
   ============================================================ */
#game {
  max-width: var(--app-w);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
}

/* 宽屏（电脑）打开时，让这条「手机宽竖栏」有明确的边界，两侧露出背景 */
@media (min-width: 561px) {
  #game {
    background: linear-gradient(180deg, rgba(14, 17, 24, .55), rgba(8, 10, 14, .72));
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .055), 0 0 90px rgba(0, 0, 0, .65);
  }
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2b3446; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #3a465d; }

/* ================= 开场 / 创建角色 ================= */
/* 背景＝武将立绘大图 assets/img/boot-bg.webp（1920×1078 转 1600 宽 webp）。
   图里自带金色书法「决战千年」，所以页面上不再叠文字标题：
   宽屏整屏 cover、卡片靠下，让上方书法字露出来；
   窄屏图按 48% 屏高铺在顶部（标题四个字刚好占满屏宽），下方渐变到纯黑接卡片。 */
.screen.overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: flex-end; justify-content: center;
  overflow-y: auto; padding: 20px 20px 5vh;
  background-color: #06070a;
  background-image:
    radial-gradient(760px 520px at 50% 26%, rgba(217,178,106,.08), transparent 70%),
    linear-gradient(180deg, rgba(6,7,10,.10) 0%, rgba(6,7,10,.04) 34%, rgba(6,7,10,.44) 68%, rgba(6,7,10,.90) 100%),
    url("img/boot-bg.webp");
  background-repeat: no-repeat;
  background-size: auto, auto, cover;
  background-position: center, center, center top;
}

.boot-box {
  width: min(560px, 92vw);
  max-width: var(--app-w);
  margin: 0 auto;
  padding: 30px 40px 28px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(24,29,40,.95), rgba(14,17,23,.95));
  box-shadow: 0 30px 90px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.04);
  animation: rise .7s cubic-bezier(.2,.8,.3,1);
}
@keyframes rise { from { opacity:0; transform: translateY(24px) scale(.97); } }

.boot-loading { color: var(--txt-dim); font-size: 14px; padding: 22px 0; }
.dots { display:inline-flex; gap:5px; margin-bottom:12px; }
.dots i {
  width:7px; height:7px; border-radius:50%; background: var(--gold); opacity:.3;
  animation: blink 1.2s infinite;
}
.dots i:nth-child(2){ animation-delay:.2s } .dots i:nth-child(3){ animation-delay:.4s }
@keyframes blink { 0%,100%{opacity:.25; transform:scale(.8)} 50%{opacity:1; transform:scale(1.15)} }

.field-label { display:block; text-align:left; font-size:12px; color:var(--txt-faint); letter-spacing:.16em; margin-bottom:8px; }
.name-row { display:flex; gap:10px; }
/* 「醒来」+「随机取名」并排：醒来占满剩余宽度，随机按钮固定宽 */
.name-acts { display:flex; gap:10px; flex:0 0 auto; }
.name-acts #createBtn { flex:1; }

#nameInput {
  flex:1; padding: 14px 16px; font-size:15px; color: var(--txt);
  background: #0b0e14; border:1px solid var(--line); border-radius:10px;
  outline:none; font-family: inherit; transition: .2s;
}
#nameInput:focus { border-color: var(--gold-dim); box-shadow: 0 0 0 3px rgba(217,178,106,.1); }

.quick-names { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin-top:14px; }
.quick-names span {
  cursor:pointer; font-size:12px; padding:5px 12px; border-radius:20px;
  border:1px solid var(--line-soft); color:var(--txt-faint); transition:.18s;
}
.quick-names span:hover { color: var(--gold); border-color: var(--gold-dim); background: rgba(217,178,106,.06); }

/* 角色名查重提示：可用=绿，被占用=红，备选名可点 */
.name-hint { margin-top:8px; font-size:12px; line-height:1.6; color:#6fbf83; }
.name-hint.bad { color:#ffb4a8; }
.name-hint .name-pick {
  color: var(--gold); cursor: pointer; font-weight: 600;
  border-bottom: 1px dashed rgba(217,178,106,.5);
}
.name-hint .name-pick:hover { color:#ffe6a8; }

.boot-tip { margin-top:22px; font-size:11.5px; color:var(--txt-faint); line-height:1.7; }
.boot-error {
  margin-top:16px; padding:10px 14px; border-radius:8px; font-size:13px;
  color:#ffb4a8; background: rgba(224,90,74,.1); border:1px solid rgba(224,90,74,.3);
}

/* ---------- 免责声明（每个账号首次登录必看，盖在整站之上） ----------
   正文 7 条较长：面板限高、正文内部滚动，按钮与「不再提示」永远固定可见。 */
body.disc-lock { overflow: hidden; }

.disc-mask {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(4,5,8,.84);
  backdrop-filter: blur(6px);
  animation: discFade .2s ease-out;
}
@keyframes discFade { from { opacity: 0 } }

.disc-box {
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  display: flex; flex-direction: column;
  padding: 22px 22px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(24,29,40,.985), rgba(11,14,20,.985));
  box-shadow: 0 30px 90px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.05);
  animation: rise .3s cubic-bezier(.2,.8,.3,1);
}
.disc-head { text-align: center; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.disc-title {
  font-family: var(--font-title);
  font-size: 20px; letter-spacing: .26em; text-indent: .26em;
  color: var(--gold); text-shadow: 0 0 26px rgba(217,178,106,.3);
}
.disc-sub { margin-top: 7px; font-size: 12px; color: var(--txt-faint); letter-spacing: .08em; }

.disc-body {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  margin: 12px 0 4px; padding-right: 8px;
  font-size: 13px; line-height: 1.9; color: var(--txt-dim); text-align: left;
}
.disc-body ol { margin: 0; padding-left: 20px; }
.disc-body li { margin-bottom: 10px; }
.disc-body li::marker { color: var(--gold-dim); }
.disc-note {
  margin-top: 14px; padding: 10px 12px; border-radius: 9px;
  border: 1px solid rgba(217,178,106,.26); background: rgba(217,178,106,.055);
  color: var(--gold-dim); font-size: 12.5px; line-height: 1.8;
}

.disc-keep {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 2px 12px;
  font-size: 12.5px; color: var(--txt-dim); cursor: pointer; user-select: none;
}
.disc-keep input { width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer; }

.disc-acts { display: flex; gap: 10px; }
.disc-acts .btn { flex: 1 1 0; min-height: 46px; }
#discError { margin-top: 12px; }

/* ================= 账号：登录 / 注册 ================= */
.boot-auth, .boot-create { text-align: left; }

.auth-tabs {
  display: flex; gap: 6px; margin-bottom: 20px; padding: 5px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line-soft); border-radius: 12px;
}
.auth-tab {
  flex: 1; padding: 10px 0; cursor: pointer; border: 1px solid transparent;
  background: transparent; color: var(--txt-dim); border-radius: 9px;
  font-family: inherit; font-size: 13.5px; letter-spacing: .18em; transition: .18s;
}
.auth-tab:hover { color: var(--txt); }
.auth-tab.active {
  color: var(--gold);
  background: linear-gradient(180deg, rgba(217,178,106,.18), rgba(217,178,106,.05));
  border-color: rgba(217,178,106,.32);
}

.auth-form { display: flex; flex-direction: column; }
.auth-form .field-label { margin-bottom: 7px; }
.auth-form input {
  width: 100%; padding: 12px 14px; margin-bottom: 15px;
  font-size: 15px; color: var(--txt); font-family: inherit;
  background: #0b0e14; border: 1px solid var(--line); border-radius: 10px;
  outline: none; transition: .18s;
}
.auth-form input:focus { border-color: var(--gold-dim); box-shadow: 0 0 0 3px rgba(217,178,106,.1); }
.auth-form input::placeholder { color: #48505f; }
.auth-form .quick-names { margin-top: 2px; margin-bottom: 14px; }
.auth-form .btn-block { margin-top: 4px; }

/* 登录成功后的选区页（注册不选区，注册完 / 登录完在这里选） */
.boot-pick { text-align: left; }
.srv-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.srv-card {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 13px 15px; cursor: pointer; text-align: left;
  font-family: inherit; color: var(--txt);
  background: rgba(255,255,255,.025);
  border: 1px solid var(--line); border-radius: 12px;
  transition: .18s;
}
.srv-card:hover { border-color: var(--gold-dim); background: rgba(217,178,106,.07); }
.srv-card:disabled { opacity: .55; cursor: default; }
.srv-card-main { flex: 1; min-width: 0; }
.srv-card-name { display: block; font-size: 15px; letter-spacing: .04em; }
.srv-card-sub { display: block; margin-top: 4px; font-size: 12px; color: #5c6577; line-height: 1.5; }
.srv-card-sub b { color: var(--gold); font-weight: 500; }
.srv-card-sub .srv-empty { color: #6f7a8c; }
.srv-card-flag {
  display: inline-block; vertical-align: 2px; margin-left: 8px;
  padding: 1px 7px; font-size: 10.5px; letter-spacing: .02em; border-radius: 999px;
  color: var(--gold); background: rgba(217,178,106,.1); border: 1px solid rgba(217,178,106,.3);
}
.srv-card-go { flex: 0 0 auto; font-size: 12.5px; color: #6b7383; }
.srv-card:hover .srv-card-go { color: var(--gold); }
.pick-back {
  margin-top: 4px; background: transparent; color: var(--txt-dim);
  border: 1px solid var(--line); letter-spacing: .1em;
}
.pick-back:hover { color: var(--txt); border-color: var(--gold-dim); }
#bootPick .boot-error { margin: 0 0 12px; }

.boot-hello { font-size: 13px; color: var(--txt-dim); line-height: 1.75; margin-bottom: 18px; }
.boot-hello b { color: var(--gold); }

/* 建角页：提示角色将建在哪个区服（同一账号每个服各有一份存档） */
.boot-srv-tip {
  display: inline-block; margin: -6px 0 14px; padding: 7px 12px;
  font-size: 12.5px; color: var(--gold); line-height: 1.6;
  background: rgba(217,178,106,.08); border: 1px solid rgba(217,178,106,.22); border-radius: 9px;
}
.boot-srv-tip b { color: var(--gold); }

/* 顶栏账号区 */
.topbar-acts { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.tb-user {
  font-size: 12px; color: var(--txt-dim); white-space: nowrap;
  padding: 6px 11px; border-radius: 20px; max-width: 132px;
  background: var(--panel-2); border: 1px solid var(--line-soft);
  overflow: hidden; text-overflow: ellipsis;
}
.tb-user b { color: var(--gold); font-weight: 600; }

/* ================= 按钮 ================= */
.btn {
  font-family: inherit; font-size: 14px; cursor: pointer;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--txt);
  padding: 11px 18px; transition: .18s; white-space: nowrap;
}
.btn:hover:not(:disabled) { border-color: var(--gold-dim); color: #fff; background: #232b3b; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .38; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(180deg, #3a2f1a, #241d11);
  border-color: var(--gold-dim); color: var(--gold); font-weight: 600; letter-spacing:.1em;
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 0 22px rgba(217,178,106,.25); color:#f2d99a; }

.btn-ghost { background: transparent; color: var(--txt-dim); }
/* 建角页「随机取名」：淡金描边，跟主按钮区分但同高 */
.btn-rand {
  flex: 0 0 auto; padding-left: 15px; padding-right: 15px;
  color: #cdd4e2; background: rgba(217,178,106,.05);
  border-color: rgba(217,178,106,.3);
}
.btn-rand:hover:not(:disabled) { color: var(--gold); background: rgba(217,178,106,.13); border-color: var(--gold-dim); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-block { width: 100%; margin-top: 12px; }

.btn-battle {
  background: linear-gradient(180deg, #33202a, #1e1319);
  border-color: #6d3a3a; color: #f0b9a8; font-weight: 600;
}
.btn-battle:hover:not(:disabled) { box-shadow: 0 0 22px rgba(224,90,74,.25); border-color: #a04a42; }
.btn-battle.sub { font-weight: 400; }
.btn-heal { background: linear-gradient(180deg,#152a20,#0e1a14); border-color:#3d6a52; color: var(--green); }

/* ================= 顶栏 ================= */
.topbar {
  display: flex; align-items: center; gap: 22px;
  padding: 12px 22px;
  background: linear-gradient(180deg, rgba(18,22,31,.96), rgba(12,15,21,.92));
  border-bottom: 1px solid var(--line);
  /* 常驻顶部：固定定位（不是 sticky）——这样子页面打开、页面滚动时人物/等级/资源都还在
     z-index 高于专属页面（160），低于弹幕（200） */
  position: fixed; top: 0; left: 0; right: 0; z-index: 185;
  max-width: var(--app-w); margin: 0 auto;
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
}

.brand { display:flex; align-items:center; gap:9px; }
.brand-rune { color: var(--gold); font-size:20px; }
.brand-name {
  font-family: var(--font-title); font-size:20px; letter-spacing:.2em;
  color: var(--gold); font-weight:700;
}

.hero-line { display:flex; align-items:center; gap:16px; flex:1; min-width:260px; }
.hero-id { display:flex; flex-direction:column; line-height:1.25; }
.hero-name { font-size:15px; font-weight:600; color:#eef1f6; }
.hero-title { font-size:11px; color: var(--gold-dim); letter-spacing:.08em; }
/* 所在区服徽章（一套文件一套库，只是登录入口标签，让玩家知道自己落在哪个服） */
.hero-srv {
  align-self: center; flex: 0 0 auto;
  font-size: 11px; line-height: 1; letter-spacing: .02em;
  color: var(--gold-dim); background: rgba(217,178,106,.10);
  border: 1px solid rgba(217,178,106,.26); border-radius: 6px;
  padding: 4px 6px; white-space: nowrap;
}
.hero-lv { display:flex; align-items:baseline; gap:5px; font-size:12px; color:var(--txt-dim); }
.hero-lv b { color: var(--gold); font-size:16px; }
.hero-lv .lv-lv b { font-size:16px; }
.hero-lv .lv-zs b { font-size:14px; }
.hero-lv .lv-zs { color: var(--txt-dim); white-space: nowrap; }
.hero-lv .lv-zs.zero { opacity: .45; }
.hero-lv .lv-zs.zero b { color: var(--txt-dim); }
.hero-lv .lv-sep { color: var(--line); }

.res-group { display:flex; align-items:center; gap:8px; }
.res {
  display:flex; align-items:center; gap:6px; font-size:13px;
  padding: 6px 12px; border-radius: 20px;
  background: var(--panel-2); border:1px solid var(--line-soft);
}
.res-ico { font-size:12px; opacity:.9; }

/* 代币：金色盘龙古钱（assets/img/coin.svg），任何字号都清晰 */
.ico-coin {
  display: inline-block; flex: 0 0 auto;
  width: 15px; height: 15px;
  background: url(img/coin.svg) center / contain no-repeat;
  vertical-align: -2px;
}
.res-power { color: var(--gold); border-color: rgba(217,178,106,.28); }
.res-gold  { color: #e8c98a; }
.res-mat   { color: #9fd8f5; }
.res-rep   { color: #d5a4f0; }
.res-coupon { color: #6fd6bf; }
.res-zs    { color: #f2b8a0; border-color: rgba(242,184,160,.28); }
.res-coin  { color: #b9a8ff; border-color: rgba(163,143,255,.30); }

/* 赞助（原「充值卡密」）：顶栏「代币」后面的入口（可点，进赞助页） */
.res-redeem {
  cursor: pointer; color: var(--gold); font-weight: 600;
  border-color: rgba(217,178,106,.34);
  font-family: inherit;
  transition: .16s;
}
.res-redeem:hover { border-color: var(--gold-dim); background: rgba(217,178,106,.12); }
.res-mail { position: relative; }
@media (max-width: 480px) {
  .res-mail { padding: 5px 8px; }
  .res-mail .mail-txt { display: none; }   /* 窄屏只留 ✉️ 图标，省顶栏空间 */
}
.mail-dot {
  position: absolute; top: -4px; right: -4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #ff5a5a; box-shadow: 0 0 6px rgba(255,90,90,.8);
}
/* 邮箱页 */
.mail-list { display: flex; flex-direction: column; gap: 10px; }
.mail-card {
  background: var(--panel, rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 12px 14px;
}
.mail-t { font-weight: 700; margin-bottom: 4px; }
.mail-b { font-size: 13px; opacity: .85; line-height: 1.6; }
.mail-f { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.mail-time { font-size: 12px; opacity: .55; }
.mail-done { font-size: 12px; opacity: .45; }
/* 比武场排名奖励表 */
.bw-rw-acts { display: flex; gap: 10px; margin-top: 12px; }
.bw-rw-acts .btn { flex: 1; }
.bw-rw-pop { grid-template-columns: 1fr !important; }
.bw-rw-pop .bw-rw-row { padding: 8px 10px; }
.bw-rw { margin-top: 12px; }
.bw-rw-title { font-weight: 700; margin: 12px 0 6px; }
.bw-rw-title em { display: block; font-size: 12px; font-weight: 400; opacity: .6; font-style: normal; margin-top: 2px; }
.bw-rw-row {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 6px 10px; border-radius: 8px; font-size: 13px;
}
.bw-rw-row:nth-child(odd) { background: rgba(255,255,255,.03); }
.bw-rw-row.me { background: rgba(217,178,106,.14); outline: 1px solid rgba(217,178,106,.4); }
.bw-rw-row span { opacity: .7; white-space: nowrap; }
.res-redeem:active { transform: translateY(1px); }

.topbar-reset { flex: 0 0 auto; }

/* ================= 布局 ================= */
.layout {
  display: grid;
  grid-template-columns: 300px minmax(0,1fr) 340px;
  gap: 16px; padding: calc(var(--topbar-h, 0px) + 16px) 16px 16px; align-items: start;
  max-width: 1680px; margin: 0 auto;
}
.col { display:flex; flex-direction: column; gap: 16px; min-width:0; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.03);
}

.panel-head {
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; padding-bottom: 10px; margin-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.panel-head h3 {
  font-family: var(--font-title); font-size:15px; font-weight:700;
  letter-spacing:.14em; color: var(--gold);
}
.panel-hint { font-size:11.5px; color: var(--txt-faint); text-align:right; }

/* ================= 属性表 ================= */
.attr-list { display:flex; flex-direction:column; gap:2px; }
.attr-row {
  display:flex; align-items:center; gap:8px;
  padding: 6px 8px; border-radius:7px; font-size:13px;
  transition: background .15s;
}
.attr-row:hover { background: rgba(255,255,255,.025); }
.attr-row .ico { width:18px; text-align:center; font-size:12px; opacity:.85; }
.attr-row .lb { color: var(--txt-dim); flex:1; font-size:12.5px; }
.attr-row .vl { font-variant-numeric: tabular-nums; font-weight:600; color:#eef1f6; }
.attr-row .add { font-size:11px; color: var(--gold-dim); margin-left:4px; }
.attr-row .note { font-size:11px; color: var(--txt-faint); margin-left:5px; font-weight:400; }
.attr-row.em .vl { color: var(--gold); }
.attr-row.lv .vl { color: var(--blue); }
.attr-sep {
  height:1px; background: var(--line-soft); margin: 7px 4px;
}

.badge {
  font-size:11px; padding:3px 10px; border-radius:20px;
  background: rgba(217,178,106,.12); color: var(--gold); border:1px solid rgba(217,178,106,.25);
}
.mini-tip { font-size:11px; color:var(--txt-faint); margin-top:9px; text-align:center; }

.rebirth-desc { font-size:12px; line-height:1.8; color:var(--txt-dim); margin:0 0 10px; }
.rebirth-desc b { color:var(--gold); }

/* ================= 战绩 ================= */
.record-list { display:grid; grid-template-columns: 1fr 1fr; gap:7px; }
.record-item {
  background: var(--panel-2); border:1px solid var(--line-soft); border-radius:8px;
  padding:8px 10px;
}
.record-item .rk { font-size:11px; color:var(--txt-faint); }
.record-item .rv { font-size:15px; font-weight:600; color:#eef1f6; font-variant-numeric: tabular-nums; }

/* ================= 战斗舞台 ================= */
.arena .panel-head h3 { font-size:16px; }

.stage {
  display:grid; grid-template-columns: 1fr auto 1fr; gap:14px;
  align-items:center; margin: 6px 0 16px;
}
.fighter {
  border:1px solid var(--line-soft); border-radius:12px;
  padding: 14px 12px; text-align:center; position:relative;
  background: linear-gradient(180deg, rgba(35,42,58,.55), rgba(16,20,28,.55));
  transition: .25s;
}
.fighter.side-player { border-color: rgba(111,179,255,.28); }
.fighter.side-enemy  { border-color: rgba(224,90,74,.28); }
.fighter.dim { opacity:.55; }
.fighter.hit { animation: shake .32s; }
@keyframes shake {
  0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)}
  50%{transform:translateX(5px)} 75%{transform:translateX(-3px)}
}
.fx-avatar { font-size:40px; line-height:1.1; filter: drop-shadow(0 4px 12px rgba(0,0,0,.6)); }
.fx-name { font-size:13.5px; margin:8px 0 9px; color:#eef1f6; font-weight:600; }
.fx-name small { color: var(--txt-faint); font-weight:400; }

.hpbar {
  height:16px; border-radius:9px; background:#0a0c11;
  border:1px solid #2b3243; overflow:hidden; position:relative;
}
.hpbar i {
  display:block; height:100%; width:100%;
  background: linear-gradient(90deg, #2e7d55, #63c48e);
  transition: width .3s ease;
}
.hpbar.enemy i { background: linear-gradient(90deg, #8c2f27, #e05a4a); }
.hpbar span {
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-size:10.5px; color:#fff; text-shadow:0 1px 3px rgba(0,0,0,.9);
  font-variant-numeric: tabular-nums; letter-spacing:.03em;
}

.vs-mark {
  font-family: var(--font-title); font-size:19px; color: var(--gold-dim);
  letter-spacing:.05em; text-shadow: 0 0 16px rgba(217,178,106,.3);
}
.vs-mark.active { animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity:.35; transform:scale(1.12) } }

.actions { display:flex; flex-wrap:wrap; gap:9px; }
.actions .btn { flex: 1 1 auto; }
.actions #btnAuto { flex: 2 1 180px; }
.actions #btnHeal { flex: 0 0 96px; }
/* 自动战斗运行中：主按钮变「停止」，用朱红以示区分 */
#btnAuto.stop {
  background: linear-gradient(180deg, #a33a2c, #7d2a1f);
  border-color: #c9553f; color: #ffe6de;
  box-shadow: 0 0 16px rgba(224,90,74,.35);
}

/* ---- 打死怪之后的「寻怪」倒计时 ---- */
.seek-strip {
  display:flex; align-items:center; gap:9px; margin-top:10px;
  padding:9px 12px; border-radius:10px;
  border:1px solid rgba(217,178,106,.28);
  background: rgba(217,178,106,.07);
  animation: fadeIn .25s;
}
.seek-strip.hidden { display:none; }
.seek-ico { font-size:14px; animation: seekSpin 1.2s linear infinite; }
@keyframes seekSpin { to { transform: rotate(360deg); } }
.seek-txt { font-size:13px; color: var(--txt-dim); white-space:nowrap; }
.seek-txt b { color: var(--gold); font-variant-numeric: tabular-nums; }
.seek-bar {
  flex:1; height:6px; border-radius:99px; overflow:hidden;
  background: rgba(255,255,255,.07); border:1px solid var(--line-soft);
}
.seek-bar i {
  display:block; height:100%; width:0%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  transition: width .1s linear;
}

/* ================= 战斗日志 ================= */
.log-panel { flex:1; display:flex; flex-direction:column; min-height: 340px; }
.battle-log {
  flex:1; overflow-y:auto; max-height: 44vh; min-height: 260px;
  padding-right: 6px; font-size: 13px; line-height: 1.95;
  font-family: "Consolas", var(--font-body);
}
.log-line {
  padding: 3px 8px; border-radius:6px; margin-bottom:1px;
  animation: fadeIn .28s;
}
@keyframes fadeIn { from { opacity:0; transform: translateX(-6px); } }
.log-line b { color:#cfe0ff; }
.log-line em { font-style: normal; color:#ff9f7a; font-weight:700; font-variant-numeric: tabular-nums; }
.log-line i { font-style:normal; color: var(--crit); font-weight:700; }
.log-line s { text-decoration: none; font-size:11px; color: var(--txt-faint); }
.log-sys   { color: var(--txt-dim); font-style: italic; }
.log-p     { background: rgba(111,179,255,.055); }
.log-m     { background: rgba(224,90,74,.055); }
.log-crit  { background: rgba(255,209,102,.08); }
.log-stun  { color: #b79cff; background: rgba(140,110,255,.09); }
.log-revive{ color: #7fd4c8; background: rgba(80,200,180,.10); }
.log-skill { color: #ffd166; background: rgba(255,180,60,.10); }
.log-dodge { color: #8fd0ff; background: rgba(90,170,255,.10); }

/* 直购礼包：内容清单 + 价格高亮 */
.pk-row .pk-price { color: var(--gold); }
.pk-items {
  display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 8px;
}
.pk-it {
  font-size: 12px; color: var(--ink2, #b8c0cc);
  padding: 3px 8px; border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px; background: rgba(255,255,255,.04); white-space: nowrap;
}
.pk-it b { color: var(--gold); margin-left: 3px; font-weight: 600; }
.log-win   { color: var(--green); background: rgba(111,207,151,.08); font-weight:600; }
.log-lose  { color: #ff9a8a; background: rgba(224,90,74,.1); font-weight:600; }
.log-lvl   { color: var(--gold); background: rgba(217,178,106,.09); font-weight:600; }
.log-drop  { color: #9fd8f5; }
.log-empty { color: var(--txt-faint); font-style: italic; }

/* ================= 标签页 ================= */
.tabs {
  display:flex; gap:6px; background: var(--panel-2); padding:5px;
  border-radius:12px; border:1px solid var(--line);
}
.tab {
  flex:1; padding:9px 4px; font-size:12.5px; font-family:inherit; cursor:pointer;
  background:transparent; border:none; color: var(--txt-dim);
  border-radius:8px; transition:.18s;
}
.tab:hover { color: var(--txt); }
.tab.active { background: linear-gradient(180deg,#33291a,#201a10); color: var(--gold); font-weight:600; }
.tab-panel { max-height: 62vh; overflow-y:auto; }

/* ---- 地图 ---- */
.area-list { display:flex; flex-direction:column; gap:10px; }
.area-card {
  border:1px solid var(--line-soft); border-radius:11px; padding:11px 13px;
  background: var(--panel-2); cursor:pointer; transition:.18s;
}
.area-card:hover { border-color: var(--gold-dim); background:#222a3a; }
.area-card.active { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(217,178,106,.25), 0 0 22px rgba(217,178,106,.1); }
.area-card.locked { opacity:.42; cursor:not-allowed; }
.area-card.locked:hover { border-color: var(--line-soft); background: var(--panel-2); }
.area-top { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.area-name { font-size:14px; font-weight:600; color:#eef1f6; }
.area-lv { font-size:11px; color:var(--txt-faint); }

.area-desc { font-size:11.5px; color:var(--txt-dim); margin-top:5px; line-height:1.65; }
.area-tag {
  display:inline-block; font-size:10px; padding:1px 7px; border-radius:10px; margin-left:6px;
  border:1px solid currentColor;
}
.tag-clear { color: var(--green); }
.tag-lock  { color: #a08a6a; }

/* 二级地图卡片底部：敌人统计 + 进入提示 */
.area-foot {
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  margin-top:8px; font-size:11px; color:var(--txt-faint);
}
.area-go { display:flex; align-items:center; gap:2px; color:var(--txt-dim); }
.area-go i { font-style:normal; font-size:15px; color:var(--gold); line-height:1; }
.area-card:hover .area-go { color:var(--gold); }

/* ---- 三级：具体地图详情（怪物列表） ---- */
.area-detail { display:flex; flex-direction:column; gap:10px; }
.ad-head {
  border:1px solid var(--line-soft); border-radius:11px; padding:11px 13px;
  background: linear-gradient(180deg, rgba(217,178,106,.06), rgba(255,255,255,.015));
}
.ad-desc { font-size:11.5px; color:var(--txt-dim); line-height:1.65; }
.ad-meta {
  display:flex; justify-content:space-between; gap:8px; flex-wrap:wrap;
  margin-top:8px; padding-top:8px; border-top:1px dashed var(--line-soft);
  font-size:10.5px; color:var(--txt-faint);
}
.ad-meta span:last-child { color:var(--gold-dim); }
/* 本图装备掉落提示 */
.ad-drop {
  margin-top:7px; padding-top:7px; border-top:1px dashed var(--line-soft);
  font-size:10.5px; color:var(--green); font-variant-numeric: tabular-nums;
}
.ad-drop em { font-style:normal; color:var(--txt-faint); margin-left:4px; }
.ad-lock {
  font-size:12px; color:#c9a27a; line-height:1.7;
  border:1px dashed rgba(201,162,122,.35); border-radius:11px;
  background: rgba(201,162,122,.06); padding:11px 13px;
}

.mob-list { display:flex; flex-direction:column; gap:8px; }
.mob-item {
  display:flex; align-items:center; gap:10px; cursor:pointer; transition:.16s;
  border:1px solid var(--line-soft); border-radius:11px; padding:9px 11px;
  background: var(--panel-2);
}
.mob-item:hover { border-color: var(--gold-dim); background:#222a3a; }
.mob-item.sel {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(217,178,106,.25), 0 0 18px rgba(217,178,106,.08);
  background: rgba(217,178,106,.07);
}
.mob-item.cd { opacity:.45; cursor:not-allowed; }
.mob-item.cd:hover { border-color: var(--line-soft); background: var(--panel-2); }
.mob-item.random .mob-art { opacity:.85; }
.mob-art { font-size:22px; line-height:1; flex:0 0 auto; width:24px; text-align:center; }
.mob-info { flex:1 1 auto; min-width:0; }
.mob-name {
  font-size:13.5px; font-weight:600; color:#eef1f6;
  display:flex; align-items:center; gap:6px; flex-wrap:wrap;
}
.mob-item.boss .mob-name { color:#f0a08a; }
.mob-tag {
  font-size:9.5px; font-weight:400; padding:1px 6px; border-radius:9px;
  color:#f0a08a; border:1px solid rgba(224,90,74,.4); background: rgba(224,90,74,.08);
}
.mob-meta { font-size:10.5px; color:var(--txt-faint); margin-top:3px; }
.mob-pick {
  flex:0 0 auto; font-size:11px; padding:5px 11px; border-radius:14px;
  border:1px solid var(--line-soft); color:var(--txt-dim); white-space:nowrap;
}
.mob-item.sel .mob-pick { border-color:var(--gold); color:var(--gold); background: rgba(217,178,106,.1); }
.mob-item.boss .mob-pick { border-color: rgba(224,90,74,.35); color:#f0a08a; }
.mob-item.boss.sel .mob-pick { border-color: var(--red); color:#f0a08a; background: rgba(224,90,74,.12); }
.mob-item.cd .mob-pick { border-color: transparent; padding-right:0; font-size:10px; color:var(--txt-faint); }
.mob-pick .cd-t, .mob-pick .lock-t { font-style:normal; }
/* 有人正在挑战这只全服公共首领：淡金提示，比「刚被杀」稍微醒目一点 */
.mob-pick .lock-t { color:#e0b477; }

/* ---- 强化台 ---- */
.forge-head {
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  margin-bottom:12px; font-size:12px; color:var(--txt-dim); flex-wrap:wrap;
}
.forge-head b { font-weight:600; }
.gold-t { color:#e8c98a; } .mat-t { color:#9fd8f5; }
.forge-multi { display:flex; gap:5px; }
.chip {
  font-size:11px; padding:3px 10px; border-radius:14px; cursor:pointer; font-family:inherit;
  background:#0f131b; border:1px solid var(--line-soft); color:var(--txt-dim); transition:.15s;
}
.chip:hover { color:var(--gold); }
.chip.active { background: rgba(217,178,106,.14); border-color: var(--gold-dim); color: var(--gold); }

.forge-list { display:flex; flex-direction:column; gap:8px; }
.forge-item {
  display:grid; grid-template-columns: 26px 1fr auto; gap:10px; align-items:center;
  padding:9px 11px; border-radius:10px;
  background: var(--panel-2); border:1px solid var(--line-soft); transition:.15s;
}
.forge-item.can { border-color: rgba(217,178,106,.28); }
.forge-item.can:hover { background:#232b3b; }
.forge-item.max { opacity:.72; }
.forge-ico { font-size:15px; text-align:center; }
.forge-name { font-size:12.5px; color:#eef1f6; }
.forge-name small { color:var(--txt-faint); font-size:11px; margin-left:5px; }
.forge-sub { font-size:11px; color:var(--txt-faint); margin-top:3px; }
.forge-sub .up { color: var(--green); }
.forge-sub .cost { white-space: nowrap; }
.forge-lv { font-size:11px; color:var(--gold-dim); }
.forge-btn {
  font-family:inherit; font-size:11.5px; padding:6px 12px; border-radius:8px; cursor:pointer;
  background: #1b2130; border:1px solid var(--line); color: var(--txt-dim); transition:.15s;
  text-align:center; min-width:74px;
}
.forge-btn.can { border-color: var(--gold-dim); color: var(--gold); }
.forge-btn.can:hover { background:#2a2314; }
.forge-btn:disabled { opacity:.4; cursor:not-allowed; }

/* ---- 竞技场 ---- */
.arena-head { font-size:12px; color:var(--txt-dim); margin-bottom:11px; }
.arena-head b { color:var(--gold); }
.opp-list { display:flex; flex-direction:column; gap:9px; }
.opp-card {
  border:1px solid var(--line-soft); border-radius:10px; padding:10px 12px;
  background: var(--panel-2); display:flex; align-items:center; gap:11px; transition:.15s;
}
.opp-card:hover { border-color:#6d3a3a; background:#241b22; }
.opp-av { font-size:24px; }
.opp-info { flex:1; min-width:0; }
.opp-name { font-size:13px; font-weight:600; color:#eef1f6; }
.opp-meta { font-size:11px; color:var(--txt-faint); margin-top:3px; }
.opp-pw { color:#f0a08a; }
.opp-btn {
  font-family:inherit; font-size:11.5px; padding:7px 11px; border-radius:8px; cursor:pointer;
  background: linear-gradient(180deg,#33202a,#1e1319); border:1px solid #6d3a3a; color:#f0b9a8;
  transition:.15s; white-space:nowrap;
}
.opp-btn:hover:not(:disabled) { box-shadow:0 0 16px rgba(224,90,74,.3); }
.opp-btn:disabled { opacity:.4; cursor:not-allowed; }

/* ---- 排行榜 ---- */
.rank-list { display:flex; flex-direction:column; gap:6px; }
.rank-row {
  display:grid; grid-template-columns: 30px 1fr auto; gap:9px; align-items:center;
  padding:8px 11px; border-radius:9px;
  background: var(--panel-2); border:1px solid var(--line-soft); font-size:12.5px;
}
.rank-row.me { border-color: var(--gold); background: rgba(217,178,106,.07); }
.rank-no { font-family: var(--font-title); font-size:14px; color: var(--txt-faint); text-align:center; }
.rank-row:nth-child(1) .rank-no { color:#ffd166; }
.rank-row:nth-child(2) .rank-no { color:#d9d9d9; }
.rank-row:nth-child(3) .rank-no { color:#d09b6a; }
.rank-name { color:#eef1f6; font-weight:600; }
.rank-name small { color:var(--txt-faint); font-weight:400; margin-left:7px; font-size:11px; }
.rank-pw { color: var(--gold); font-variant-numeric: tabular-nums; }
.rank-meta { font-size:10.5px; color:var(--txt-faint); margin-top:2px; }
.rank-empty { text-align:center; color:var(--txt-faint); font-size:12.5px; padding:26px 0; }

/* ================= Toast ================= */
.toast-wrap {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  display:flex; flex-direction:column; gap:9px; align-items:flex-end;
}
.toast {
  padding: 11px 17px; border-radius:10px; font-size:13px; max-width: 340px;
  background: rgba(24,29,40,.97); border:1px solid var(--line); color: var(--txt);
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  animation: toastIn .3s cubic-bezier(.2,.9,.3,1);
}
.toast.ok  { border-color: rgba(111,207,151,.4); color:#b8f0d0; }
.toast.err { border-color: rgba(224,90,74,.45); color:#ffb4a8; }
.toast.gold{ border-color: rgba(217,178,106,.45); color:#f2d99a; }
@keyframes toastIn { from { opacity:0; transform: translateX(28px) } }
.toast.out { opacity:0; transform: translateX(28px); transition:.3s; }

/* ================= 底部导航（唯一布局，所有屏幕常驻） ================= */

/* ================= 响应式 ================= */

/* （旧的三栏桌面布局已移除：全部屏幕统一走下面这套手机端布局） */

/* ============================================================
   手机端布局（全局唯一版本：不再有桌面版，电脑端同样生效）
   单视图 + 底部导航，一次只看一个视图，战斗永远在首屏
   ============================================================ */
@media screen {

  /* ---------- 顶栏：压成两行，常驻显示生命与资源 ---------- */
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "hero reset"
      "res  res";
    gap: 7px 10px;
    padding: 8px 12px;
  }
  .brand { display: none; }

  .hero-line { grid-area: hero; gap: 4px 8px; flex-wrap: wrap; min-width: 0; }
  .hero-id { flex-direction: row; align-items: baseline; gap: 7px; min-width: 0; }
  .hero-name { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero-title { display: none; }
  .hero-lv { font-size: 12px; }
  .hero-srv { font-size: 10px; padding: 3px 5px; border-radius: 5px; }

  .topbar-acts {
    grid-area: reset; align-self: start;
    gap: 6px; flex-wrap: nowrap;
  }
  .topbar-acts .btn { padding: 6px 9px; font-size: 12px; border-radius: 8px; }
  .tb-user { max-width: 78px; font-size: 11.5px; padding: 5px 8px; }

  .res-group {
    grid-area: res;
    gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none;
    padding-bottom: 1px;
    -webkit-overflow-scrolling: touch;
  }
  .res-group::-webkit-scrollbar { display: none; }
  .res { padding: 4px 8px; font-size: 11.5px; flex: 0 0 auto; gap: 4px; }
  .res-group { gap: 5px; }

  /* ---------- 视图切换：一次只显示一个 ---------- */
  .layout { display: block; padding: calc(var(--topbar-h, 0px) + 10px) 10px calc(132px + env(safe-area-inset-bottom)); }
  .col { gap: 10px; }
  .tabs { display: none; }

  .col-left,
  .col-mid { display: none; }
  .tab-panel { display: none; max-height: none; overflow: visible; }

  body[data-mview="battle"] .col-mid { display: flex; }
  body[data-mview="me"] .col-left { display: flex; }
  body[data-mview="map"] #tab-map,
  body[data-mview="forge"] #tab-forge,
  body[data-mview="arena"] #tab-arena,
  body[data-mview="rank"] #tab-rank { display: block; }

  /* ---------- 面板：更紧凑、更好点 ---------- */
  .panel { padding: 12px 13px 14px; border-radius: 12px; }
  .panel-head { padding-bottom: 9px; margin-bottom: 10px; }
  .panel-head h3 { font-size: 15px; letter-spacing: .1em; }

  /* ---------- 战斗舞台：左右对垒（不再竖向堆叠） ---------- */
  .stage { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 8px; margin: 2px 0 12px; }
  .fighter { padding: 10px 8px; border-radius: 11px; }
  .fx-avatar { font-size: 30px; }
  .fx-name { font-size: 12px; margin: 6px 0 7px; line-height: 1.35; }
  .fx-name small { font-size: 10.5px; display: inline-block; }
  .vs-mark { font-size: 14px; }
  .hpbar { height: 15px; }
  .hpbar span { font-size: 10px; }

  /* ---------- 按钮：大触点，主按钮独占一行 ---------- */
  .btn { padding: 12px 12px; font-size: 14px; min-height: 44px; border-radius: 11px; }
  .btn-sm { min-height: 32px; padding: 6px 12px; font-size: 12px; }

  .actions { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
  .actions .btn { min-height: 46px; }
  .actions #btnAuto { grid-column: 1 / -1; font-size: 15px; }
  .actions #btnHeal { grid-column: 1 / -1; }

  .seek-strip { gap:7px; padding:8px 10px; }
  .seek-txt { font-size:12px; }

  /* ---------- 日志：固定高度内部滚动，不再把页面撑长 ---------- */
  .log-panel { min-height: 0; }
  .battle-log {
    max-height: 40vh; min-height: 170px;
    font-size: 12.5px; line-height: 1.85; padding-right: 4px;
    overscroll-behavior: contain;
  }
  .log-line { padding: 4px 7px; }
  .log-line s { font-size: 10.5px; }

  /* ---------- 属性表 / 战绩 ---------- */
  .attr-row { padding: 8px 6px; font-size: 13.5px; }
  .attr-row .lb { font-size: 13px; }
  .attr-row .vl { font-size: 13.5px; }
  .attr-row .add { font-size: 11.5px; }

  .btn-block { margin-top: 13px; }

  .record-list { gap: 6px; }
  .record-item { padding: 9px 10px; }
  .record-item .rv { font-size: 16px; }

  /* ---------- 地图 ---------- */
  .area-list, .forge-list, .opp-list, .rank-list { grid-template-columns: 1fr; }
  .area-card { padding: 12px 13px; }
  .area-name { font-size: 15px; }
  .area-desc { font-size: 12.5px; }
  .ad-desc { font-size: 12.5px; }
  .ad-meta { font-size: 11.5px; }
  .mob-item { padding: 10px 12px; gap: 11px; }
  .mob-art { font-size: 24px; width: 26px; }
  .mob-name { font-size: 14.5px; }
  .mob-meta { font-size: 11.5px; }
  .mob-pick { padding: 6px 13px; font-size: 12px; }

  /* ---------- 强化台 ---------- */
  .forge-head { gap: 8px; font-size: 12.5px; }
  .chip { padding: 7px 14px; font-size: 12.5px; }
  .forge-item { grid-template-columns: 24px minmax(0,1fr) auto; gap: 9px; padding: 11px 12px; }
  .forge-name { font-size: 13px; }
  .forge-name small { font-size: 11.5px; }
  .forge-sub { font-size: 11.5px; }
  .forge-btn { min-width: 82px; padding: 10px 8px; font-size: 12px; }

  /* ---------- 竞技场 ---------- */
  .opp-card { padding: 11px 12px; gap: 10px; }
  .opp-av { font-size: 22px; }
  .opp-name { font-size: 13.5px; }
  .opp-meta { font-size: 11.5px; }
  .opp-btn { padding: 10px 11px; font-size: 12px; min-width: 76px; }

  /* ---------- 排行榜 ---------- */
  .rank-row { grid-template-columns: 26px minmax(0,1fr) auto; gap: 8px; padding: 10px 12px; }
  .rank-name { font-size: 13px; }
  .rank-name small { display: block; margin: 2px 0 0; }
  .rank-pw { font-size: 13.5px; }

  /* ---------- 弹幕提示：抬到导航之上，铺满宽度 ---------- */
  .toast-wrap {
    left: 10px; right: 10px;
    max-width: var(--app-w); margin: 0 auto;
    bottom: calc(var(--mobnav-h, 74px) + 12px);
    align-items: stretch;
  }
  .toast { max-width: none; font-size: 13px; padding: 11px 14px; }

  /* ---------- 底部导航（两行，每行 6 个） ---------- */
  .mobnav {
    /* z-index 高于子页面（160），保证从导航进入的任何页面都还能看到/用到底部导航 */
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 190;
    /* 宽屏下与内容栏同宽并居中 */
    max-width: var(--app-w); margin: 0 auto;
    display: flex; flex-direction: column; gap: 2px;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(17,21,30,.97), rgba(8,10,14,.99));
    border-top: 1px solid var(--line);
    backdrop-filter: blur(14px);
    box-shadow: 0 -8px 26px rgba(0,0,0,.5);
  }
  .mobnav-row { display: grid; grid-template-columns: repeat(6, 1fr); }
  .mobnav-btn {
    position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 7px 2px 6px; border: none; background: none; cursor: pointer;
    font-family: inherit; font-size: 10.5px; line-height: 1;
    color: var(--txt-faint); border-radius: 10px; transition: .18s;
  }
  .mobnav-btn i { font-style: normal; font-size: 19px; line-height: 1; }
  .mobnav-btn.active { color: var(--gold); background: rgba(217,178,106,.09); }
  .mobnav-btn.active i { filter: drop-shadow(0 0 8px rgba(217,178,106,.5)); }
  /* 红点：下属入口有可领取 / 可提升内容时点亮 */
  .mobnav-btn.has-dot::after {
    content: ''; position: absolute; top: 4px; right: calc(50% - 17px);
    width: 9px; height: 9px; border-radius: 50%;
    background: #ff5a5a; box-shadow: 0 0 6px rgba(255,90,90,.85);
  }

  /* ---------- 聚合页（福利中心 / 提升中心） ---------- */
  .hub-wrap { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
  .hub-card {
    position: relative;
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 14px; border: 1px solid var(--line); border-radius: 12px;
    background: var(--panel-2); color: var(--txt); cursor: pointer; text-align: left;
    font-family: inherit; transition: .18s;
  }
  .hub-card:hover, .hub-card.can { border-color: rgba(217,178,106,.3); }
  .hub-card.can { background: rgba(217,178,106,.07); }
  /* 红点：该入口当前有可领取 / 可提升的内容 */
  .hub-card.dot::after {
    content: ''; position: absolute; top: 8px; right: 8px;
    width: 9px; height: 9px; border-radius: 50%;
    background: #ff5a5a; box-shadow: 0 0 6px rgba(255,90,90,.85);
  }
  .hub-ico { font-size: 26px; width: 34px; text-align: center; }
  .hub-mid { flex: 1; min-width: 0; }
  .hub-name { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
  .hub-sub { font-size: 12px; color: var(--txt-faint); margin-top: 3px; }
  .hub-badge { font-size: 11px; color: var(--gold); background: rgba(217,178,106,.12); padding: 1px 7px; border-radius: 8px; font-weight: 400; }
  .hub-go { font-size: 22px; color: var(--txt-faint); }

  /* 提升中心：一格一个系统，一行 5 个（图标在上、名字 / 进度在下） */
  .hub-wrap.cols5 { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  /* 提升中心：每行一个独立网格（行内不满 5 个就空右），行间距与格间距一致 */
  .hub-wrap.cols5 + .hub-wrap.cols5 { margin-top: 8px; }
  .hub-wrap.cols5 .hub-card {
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    padding: 11px 3px 9px; border-radius: 11px; text-align: center;
  }
  .hub-wrap.cols5 .hub-ico { font-size: 23px; width: auto; line-height: 1; }
  .hub-wrap.cols5 .hub-mid { flex: none; width: 100%; }
  .hub-wrap.cols5 .hub-name {
    display: block; font-size: 11.5px; font-weight: 600; line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .hub-wrap.cols5 .hub-badge {
    display: block; font-size: 9.5px; line-height: 1.35; padding: 0 5px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
  }
  .hub-wrap.cols5 .hub-sub, .hub-wrap.cols5 .hub-go { display: none; }

  /* ---------- 商城 ---------- */
  .cr-price { font-size: 12.5px; color: var(--gold-dim); margin-top: 4px; font-weight: 600; }
  .shop-row .cr-top { align-items: center; }
  .shop-row .cr-sub { font-size: 12px; color: var(--txt-faint); margin-top: 3px; }

  /* ---------- 开场页 ---------- */
  @media (max-width: 560px) {
    /* 窄屏：图铺顶部 48% 屏高（下移 24px 让开刘海/状态栏），下方渐变到纯黑接卡片 */
    .screen.overlay {
      align-items: flex-start;
      padding: 0 14px 40px;
      padding-top: calc(48vh + 24px);
      background-image:
        linear-gradient(180deg,
          rgba(6,7,10,0) 0, rgba(6,7,10,0) 36%,
          rgba(6,7,10,.50) 46%,
          #06070a calc(48vh + 24px), #06070a 100%),
        url("img/boot-bg.webp");
      background-size: auto, auto 48%;
      background-position: center, center 24px;
    }
  }
  .boot-box { width: 100%; padding: 30px 20px 26px; border-radius: 16px; }
  /* 免责声明：手机上更紧凑，正文照旧内部滚动 */
  .disc-mask { padding: 12px; }
  .disc-box { padding: 16px 16px 12px; border-radius: 14px; max-height: calc(100vh - 24px); }
  .disc-title { font-size: 18px; }
  .disc-body { font-size: 12.5px; line-height: 1.85; padding-right: 4px; }
  .disc-acts .btn { min-height: 44px; }
  .name-row { flex-direction: column; gap: 9px; }
  #nameInput { font-size: 16px; padding: 13px 14px; }
  .name-row .btn { min-height: 48px; }
}

/* ---- 超窄屏微调 ---- */
@media (max-width: 480px) {
  /* 「转 / 等级」压缩 + 资源格收窄，保证「战力 / 元宝 / 点券」都完整可见 */
  .hero-lv { gap: 4px; }
  .hero-lv b { font-size: 14px; }
  .hero-lv .lv-lv b { font-size: 14px; }
  .hero-lv .lv-zs b { font-size: 13px; }
}
@media (max-width: 360px) {
  .res { padding: 4px 7px; font-size: 11px; }
  .actions #btnAuto { font-size: 13.5px; }
  .mobnav-btn span { font-size: 10px; }
}

/* ============================================================
   属性页 · 功能入口（现在只保留「装备」，其余入口已迁到顶部/底部导航）
   ============================================================ */
.entry-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
/* 只剩一张卡时占满整行，不再半宽 */
.entry-grid.single { grid-template-columns: 1fr; }
.entry-card {
  position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:2px;
  padding:11px 12px; border-radius:11px; cursor:pointer; text-align:left;
  font-family:inherit; color:var(--txt); transition:.16s;
  border:1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.025);
}
.entry-card:hover { border-color:rgba(217,178,106,.45); background: rgba(217,178,106,.06); }
.entry-card.can { border-color:rgba(217,178,106,.5); box-shadow:0 0 14px rgba(217,178,106,.12); }
.entry-ico { font-size:20px; line-height:1.15; }
.entry-name { font-size:13px; font-weight:600; color:#eef1f6; }
.entry-sub { font-size:10.5px; color:var(--txt-faint); font-variant-numeric: tabular-nums; }
.entry-go { position:absolute; right:9px; top:50%; transform:translateY(-50%); font-size:17px; color:var(--txt-faint); }
.entry-card.can .entry-go { color: var(--gold); }

/* ============================================================
   地图 · 大地图（一级地图）
   ============================================================ */
.map-head { justify-content:flex-start; gap:9px; }
.map-title-wrap { flex:1 1 auto; display:flex; align-items:baseline; justify-content:space-between; gap:8px; min-width:0; }
.map-back {
  flex:0 0 auto; width:28px; height:28px; border-radius:8px; cursor:pointer;
  font-family:inherit; font-size:17px; line-height:1; padding:0;
  color:var(--txt-dim); background:rgba(255,255,255,.05); border:1px solid var(--line);
}
.map-back:hover { color:var(--gold); border-color:var(--gold-dim); }
/* 地图页右上角「副本」入口 */
.map-fuben {
  flex:0 0 auto; display:flex; align-items:center; gap:4px; cursor:pointer;
  padding:5px 10px; border-radius:8px; line-height:1.4;
  font-family:inherit; font-size:12px;
  color:var(--gold); background:rgba(217,178,106,.1);
  border:1px solid rgba(217,178,106,.35);
}
.map-fuben:hover { background:rgba(217,178,106,.2); border-color:var(--gold); }
/* 地图页右上角「特殊」入口（十境道场）：紫色，和副本区分开 */
.map-special {
  color:#b18cff; background:rgba(177,140,240,.12); border-color:rgba(177,140,240,.35);
}
.map-special:hover { background:rgba(177,140,240,.22); border-color:#b18cff; }
/* 地图页右上角「竞技」入口（比武场 + 攻城战）：橙红，和副本 / 特殊区分开 */
.map-arena {
  color:#ff9a5c; background:rgba(255,138,76,.1); border-color:rgba(255,154,92,.35);
}
.map-arena:hover { background:rgba(255,138,76,.2); border-color:#ff9a5c; }
.map-empty { font-size:12.5px; color:var(--txt-faint); text-align:center; padding:24px 0; }

.region-list { display:flex; flex-direction:column; gap:10px; }
.region-card {
  display:flex; align-items:center; gap:12px; cursor:pointer; transition:.16s;
  padding:13px 14px; border-radius:12px;
  border:1px solid var(--line); background: rgba(255,255,255,.02);
}
.region-card:hover { border-color:rgba(217,178,106,.5); background: rgba(217,178,106,.05); }
.region-art { font-size:30px; line-height:1; flex:0 0 auto; }
.region-info { flex:1 1 auto; min-width:0; }
.region-name { font-size:15px; font-weight:600; color:#eef1f6; display:flex; align-items:baseline; gap:7px; }
.region-name small { font-size:11px; font-weight:400; color:var(--txt-faint); }
.region-desc { font-size:11.5px; color:var(--txt-dim); line-height:1.6; margin-top:4px; }
.region-bar { height:4px; border-radius:2px; background:rgba(255,255,255,.07); margin:8px 0 5px; overflow:hidden; }
.region-bar i { display:block; height:100%; background:linear-gradient(90deg,var(--gold-dim),var(--gold)); }
.region-meta { display:flex; justify-content:space-between; gap:8px; font-size:10.5px; color:var(--txt-faint); }
.region-prog b { color:var(--gold); }
.region-go { flex:0 0 auto; display:flex; align-items:center; gap:3px; font-size:12px; color:var(--txt-dim); }
.region-go i { font-style:normal; font-size:17px; color:var(--gold); }

/* 未解锁的主城：条件未达成，卡片压暗、禁止进入 */
.region-card.locked { opacity:.62; cursor:not-allowed; }
.region-card.locked:hover { border-color:var(--line); background:rgba(255,255,255,.02); }
.region-tag {
  display:inline-block; font-size:10px; padding:1px 7px; border-radius:10px; margin-left:6px;
  border:1px solid currentColor; color:#a08a6a; font-weight:400;
}
/* 特殊地图（十境道场）：紫色标签 */
.region-tag.sp { color:#b18cff; }
.region-gate { font-size:11px; color:var(--gold-dim); margin-top:5px; line-height:1.5; }
.region-card.locked .region-gate { color:#a08a6a; }
.region-card.locked .region-go i { color:#a08a6a; }

/* ============================================================
   特殊地图：地图页右上角「🌌 特殊」入口 → 特殊地图列表 → 分类 → 层 → 怪物
   （分类页顶部只留面包屑，大地图的图标/简介只在列表卡里出现一次）
   ============================================================ */
.sp-tip { font-size:11.5px; color:var(--txt-faint); line-height:1.6; margin:0 0 10px; }
.sp-groups { display:flex; flex-direction:column; gap:10px; }
.sp-group {
  display:flex; align-items:center; gap:12px; padding:13px 14px; cursor:pointer;
  border-radius:12px; border:1px solid var(--line-soft); background:var(--panel-2);
  transition:border-color .15s, background .15s;
}
.sp-group:hover { border-color:var(--gold-dim); background:#222a3a; }
.sp-group-art { flex:0 0 auto; font-size:23px; line-height:1.2; }
.sp-group-info { flex:1 1 auto; min-width:0; }
.sp-group-name { font-size:14px; color:var(--txt); }
.sp-group-sub { font-size:11.5px; color:var(--gold); margin-top:2px; }
.sp-group-desc { font-size:11.5px; color:var(--txt-faint); line-height:1.55; margin-top:5px; }
.sp-group-meta { font-size:11.5px; color:var(--txt-dim); margin-top:6px; }
.sp-group-meta b { color:var(--gold); font-weight:400; }
.sp-group-go { flex:0 0 auto; display:flex; align-items:center; gap:3px; font-size:12px; color:var(--txt-dim); }
.sp-group-go i { font-style:normal; font-size:17px; color:var(--gold); }
.sp-bar { height:5px; border-radius:3px; background:rgba(255,255,255,.07); overflow:hidden; margin-top:8px; }
.sp-bar i { display:block; height:100%; border-radius:3px; background:linear-gradient(90deg, var(--gold-dim), var(--gold)); }

/* 页内面包屑 + 返回上一级 */
.sp-crumb { display:flex; align-items:center; gap:9px; margin-bottom:11px; font-size:12px; color:var(--txt-dim); }
.sp-back {
  flex:0 0 auto; cursor:pointer; font-family:inherit; font-size:12px; line-height:1.4;
  padding:4px 10px; border-radius:8px; color:var(--gold);
  background:rgba(217,178,106,.1); border:1px solid rgba(217,178,106,.32);
}
.sp-back:hover { background:rgba(217,178,106,.2); border-color:var(--gold); }

/* ============================================================
   专属页面（背包 / 转生 / 亢金龙角 / 通关文牒 / 晨钟 / 暮鼓 / 麻痹号角 / 紫金丹炉 / 天命神符 / 修仙 / 盘古战斧）
   整屏覆盖，从「属性」页的功能入口进入
   ============================================================ */
body.subpage-lock { overflow: hidden; }

.subpage {
  position: fixed; inset: 0; z-index: 160; overflow-y: auto;
  /* 宽屏（电脑）时与内容栏同宽并居中，手机上自然满宽 */
  max-width: var(--app-w); margin: 0 auto;
  /* 顶部信息常驻：从顶栏（人物/等级/资源）下方开始，顶栏不被盖住 */
  top: var(--topbar-h, 0px);
  /* 底部导航常驻：子页面底边让出导航高度（--mobnav-h 由 app.js 实测写入） */
  bottom: var(--mobnav-h, 0px);
  -webkit-overflow-scrolling: touch;
  /* 顶栏之下再叠一层底色，避免滚动时内容从顶栏缝隙里透出来 */
  border-top: 1px solid var(--line-soft);
  box-shadow: 0 -12px 26px rgba(0,0,0,.45);
  background:
    radial-gradient(1000px 600px at 20% -10%, #1a2233 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 45%, var(--bg-0));
}
.subpage-inner { max-width: 760px; margin: 0 auto; padding: 0 16px 44px; }
.subpage-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0 12px; margin-bottom: 14px;
  background: linear-gradient(180deg, rgba(8,10,14,.98) 66%, rgba(8,10,14,0));
  backdrop-filter: blur(8px);
}
/* 页头只留标题（2026-10-25 用户指定：去掉返回按钮与名字后面的小字） */
.subpage-title { font-family: var(--font-title); font-size: 19px; letter-spacing: .14em; color: #f0e6d2; }

.sub-hero { border: 1px solid var(--line); border-radius: 12px; padding: 14px 15px; background: rgba(255,255,255,.025); }
.sub-hero-top { display: flex; align-items: center; gap: 12px; }
.sub-hero-ico { font-size: 30px; line-height: 1; }
.sub-hero-txt { flex: 1 1 auto; min-width: 0; }
.sub-hero-name { font-size: 16px; font-weight: 600; color: #eef1f6; }
.sub-hero-lv { font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--gold); font-variant-numeric: tabular-nums; }
.sub-hero-lv i { font-style: normal; font-size: 12px; font-weight: 400; color: var(--txt-faint); }
.sub-hero-pct { font-size: 13px; color: var(--gold-dim); font-variant-numeric: tabular-nums; }
.sub-hero-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.07); margin-top: 12px; overflow: hidden; }
.sub-hero-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-dim), var(--gold)); }

.sub-res { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.sub-res-item {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 11px; border-radius: 9px; font-size: 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,.02);
  color: var(--txt-dim); font-variant-numeric: tabular-nums;
}
.sub-res-item i { font-style: normal; }
.sub-res-item.wide { flex: 1 1 100%; flex-wrap: wrap; }
.sub-res-item b { color: var(--txt); }
.sub-res-item b.ok  { color: var(--green); }
.sub-res-item b.bad { color: var(--red); }
.sub-res-item em { font-style: normal; color: var(--txt-faint); }

.sub-block {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 12px; background: rgba(255,255,255,.02);
}
.sub-block-head h4 { font-size: 12px; font-weight: 500; letter-spacing: .14em; color: var(--txt-faint); margin-bottom: 9px; }
.sub-eff {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 6px 0; font-size: 13px; border-bottom: 1px dashed rgba(255,255,255,.06);
}
.sub-eff:last-child { border-bottom: none; }
.se-lb { color: var(--txt-dim); }
.se-vl { color: var(--green); font-variant-numeric: tabular-nums; }
.sub-empty { font-size: 12px; color: var(--txt-faint); text-align: center; padding: 12px 0; }
.sub-done { font-size: 13px; letter-spacing: .1em; color: var(--green); text-align: center; padding: 6px 0; }
.sub-cost { font-size: 13.5px; color: var(--red); font-variant-numeric: tabular-nums; }
.sub-cost.ok { color: var(--green); }
.sub-note { font-size: 11.5px; color: var(--txt-faint); line-height: 1.8; margin-top: 14px; }
.sub-note b { color: var(--gold); font-weight: 600; }
/* --- 麻痹号角的特效说明 --- */
.sub-effect { display: flex; flex-direction: column; gap: 7px; }
.sub-effect p { font-size: 12.5px; color: var(--txt-dim); line-height: 1.7; }
.sub-effect p b { color: var(--txt-faint); font-weight: 500; }
.sub-effect p.nx { color: var(--txt-faint); }

/* --- 引魂灵灯：当前 / 下级属性双栏 + 两种提升模式 --- */
.ld-exp {
  margin-top: 8px; font-size: 12px; text-align: center;
  color: var(--txt-dim); font-variant-numeric: tabular-nums;
}
.ld-pair {
  display: grid; gap: 10px; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
}
.ld-pair .sub-block { padding: 10px 12px; margin-bottom: 0; }
.ld-pair .sub-eff { font-size: 12.5px; gap: 6px; padding: 5px 0; }
.ld-pair .sub-block-head h4 { margin-bottom: 6px; }
.ld-acts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0;
}
/* 只有一颗按钮的系统（天命神符 / 丹炉 / 钟鼓 / 号角 / 文牒 / 转生 / 修仙 / 盘古战斧）走单列 */
.ld-acts.one { grid-template-columns: 1fr; max-width: 320px; margin-left: auto; margin-right: auto; }
/* 消耗条：照主界面 —— 深底小药丸 + [名称] 拥有/需要（够了绿色、不够红色），名称用文字不用图标
   名称占位比图标宽，所以纵向排（每种货币一行），两列按钮宽度不一时也不会一高一低 */
.ld-act-cost {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 4px 8px; margin-bottom: 6px;
  border: 1px solid rgba(255,255,255,.10); border-radius: 9px;
  background: rgba(0,0,0,.30);
  font-size: 11.5px; line-height: 1.5;
}
/* 单列按钮（神符 / 金角 / 其余一键提升页）横向放得下，就一行排开 */
.ld-acts.one .ld-act-cost { flex-direction: row; gap: 10px; }
.ld-cost-item { display: inline-flex; align-items: baseline; gap: 3px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ld-cost-item i { font-size: 11px; font-style: normal; color: var(--txt-dim); }
.ld-cost-item b { font-weight: 700; }
.ld-cost-item em { font-style: normal; font-weight: 700; }
.ld-cost-item.ok b, .ld-cost-item.ok em { color: var(--green); }
.ld-cost-item.bad b, .ld-cost-item.bad em { color: var(--red); }
.ld-act-tip {
  font-size: 11.5px; color: var(--txt-faint); text-align: center;
  margin-bottom: 7px; line-height: 1.4;
}
@media (max-width: 380px) {
  .ld-acts { grid-template-columns: 1fr; }
}
.sub-ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.sub-ul li { font-size: 12px; color: var(--txt-dim); line-height: 1.7; }
.sub-ul b { color: var(--txt); }
.subpage .btn-block { margin-top: 4px; }

/* --- 背包页 --- */
.bag-page-grid { display: flex; flex-direction: column; gap: 9px; }
.bag-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: 11px;
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02);
}
.bag-item.empty { opacity: .4; }
.bi-ico { font-size: 24px; line-height: 1; flex: 0 0 auto; }
.bi-txt { flex: 1 1 auto; min-width: 0; }
.bi-name { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--txt); }
.bi-num { color: var(--gold); font-variant-numeric: tabular-nums; }
.bi-desc { font-size: 11.5px; color: var(--txt-faint); margin-top: 3px; line-height: 1.6; }
.bi-tier { font-size: 11.5px; color: var(--txt-faint); line-height: 1.7; }
.bi-tier b { color: var(--txt-dim, inherit); font-weight: 600; }
.bi-tier i { font-style: normal; color: var(--txt-faint); opacity: .75; margin-left: 5px; }
.bi-tier.got { opacity: .62; }
.bag-item.pill { border-color: rgba(217,178,106,.22); background: rgba(217,178,106,.045); }
.bag-item.card { border-color: rgba(93,196,149,.26); background: rgba(93,196,149,.05); }
.bag-item.card .bi-num { color: #7fd8a8; }
.bi-act { display: flex; flex-direction: row; align-items: center; gap: 5px; flex: 0 0 auto; }
.bi-act .btn { min-width: 54px; }
.bi-lock { font-size: 10.5px; color: var(--txt-faint); white-space: nowrap; }

/* --- 背包分类标签：道具 / 装备 / 回收 --- */
.bag-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 0; max-width: 560px; }
.bag-tab {
  flex: 1 1 0; min-width: 0; font-family: inherit; font-size: 12.5px; cursor: pointer; transition: .16s;
  padding: 9px 8px; border-radius: 10px; white-space: nowrap;
  border: 1px solid var(--line-soft); background: rgba(255,255,255,.02); color: var(--txt-dim);
}
.bag-tab:hover { border-color: var(--gold-dim); color: var(--txt); }
.bag-tab.on {
  border-color: rgba(217,178,106,.55); color: var(--gold); font-weight: 600;
  background: rgba(217,178,106,.08); box-shadow: 0 0 14px rgba(217,178,106,.10);
}
.bag-page-grid { margin-top: 10px; }
/* 剑甲（武器 / 衣服）在背包里单独描色，便于与普通部位区分 */
.bag-item.jianjia { border-color: rgba(224,90,74,.32); background: rgba(224,90,74,.045); }
.bag-item.jianjia .bi-num { color: #f0b9a8; }

/* ============================================================
   装备页 —— 10 个部位的穿戴 / 库存
   ============================================================ */
.eq-wrap { display: flex; flex-direction: column; gap: 9px; margin-top: 10px; }
.eq-item {
  border: 1px solid rgba(255,255,255,.08); border-radius: 11px;
  background: rgba(255,255,255,.02); overflow: hidden; transition: .16s;
}
.eq-item.open { border-color: rgba(217,178,106,.42); background: rgba(217,178,106,.045); }
.eq-head { display: flex; align-items: center; gap: 11px; padding: 11px 13px; cursor: pointer; }
.eq-head:hover { background: rgba(255,255,255,.025); }
.eq-ico { font-size: 22px; line-height: 1; flex: 0 0 auto; }
.eq-mid { flex: 1 1 auto; min-width: 0; }
.eq-nm { font-size: 13.5px; font-weight: 600; color: var(--txt); }
.eq-worn { font-size: 11.5px; color: var(--txt-faint); margin-top: 3px; }
.eq-worn b { color: var(--gold); font-weight: 600; }
.eq-worn em { font-style: normal; color: var(--txt-dim); }
.eq-none { color: var(--txt-faint); }
.eq-right { flex: 0 0 auto; text-align: right; }
.eq-stat { font-size: 11.5px; color: var(--green); font-variant-numeric: tabular-nums; }
.eq-own { font-size: 10.5px; color: var(--txt-faint); margin-top: 3px; font-variant-numeric: tabular-nums; }
.eq-list { border-top: 1px dashed rgba(255,255,255,.07); padding: 5px 11px 2px; }
.eq-row {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 2px; border-bottom: 1px dashed rgba(255,255,255,.05);
}
.eq-row:last-child { border-bottom: none; }
.eq-row.on { opacity: .6; }
.eq-rn { flex: 1 1 auto; min-width: 0; font-size: 12.5px; color: var(--txt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eq-rs { flex: 0 0 auto; font-size: 11.5px; color: var(--green); font-variant-numeric: tabular-nums; }
.eq-rc { flex: 0 0 auto; min-width: 34px; text-align: right; font-size: 11.5px; color: var(--gold); font-variant-numeric: tabular-nums; }
.eq-foot { padding: 6px 11px 10px; }
.btn-mini { font-size: 11.5px; padding: 5px 10px; border-radius: 8px; }
.btn-mini.ghost { background: transparent; color: var(--txt-dim); }

/* ============================================================
   五行灵珠 —— 5 个部位的特殊装备（不渲染珠子图案，2026-10-25）
   ============================================================ */

.orb-sum {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px;
  padding: 9px 12px; margin-bottom: 10px; border-radius: 10px;
  border: 1px solid rgba(217,178,106,.22); background: rgba(217,178,106,.05);
  font-size: 12px; color: var(--txt-faint); font-variant-numeric: tabular-nums;
}
.orb-sum b { color: var(--gold); font-weight: 600; }
.orb-sum b.pct { color: var(--gold); text-shadow: 0 0 10px var(--gold-glow); }

.orb-wrap { display: flex; flex-direction: column; gap: 9px; }
.orb-card {
  border: 1px solid rgba(255,255,255,.08); border-radius: 11px;
  background: rgba(255,255,255,.02); padding: 11px 13px; transition: .16s;
}
.orb-card.on { border-color: rgba(217,178,106,.42); background: rgba(217,178,106,.045); }
.orb-top { display: flex; align-items: center; gap: 11px; }
.orb-mid { flex: 1 1 auto; min-width: 0; }
.orb-name { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--txt); }
.orb-tier {
  font-size: 10.5px; font-weight: 500; line-height: 1.7; padding: 0 6px;
  border-radius: 5px; color: var(--gold);
  border: 1px solid rgba(217,178,106,.32); background: rgba(217,178,106,.09);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.orb-state { font-size: 11.5px; margin-top: 3px; color: var(--txt-faint); }
.orb-on   { color: var(--gold); }
.orb-have { color: var(--green); }
.orb-none { color: var(--txt-faint); }

/* 灵珠背包：一阶一行，各自可穿 */
.orb-bag {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 9px; padding-top: 9px; border-top: 1px dashed rgba(255,255,255,.07);
}
.orb-bag-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 11.5px; color: var(--txt-dim); font-variant-numeric: tabular-nums;
}
.orb-bag-row .ob-t { color: var(--txt); }
.orb-bag-row .ob-n { flex: 1 1 auto; color: var(--gold); }
.orb-bag-row.on .ob-t { color: var(--gold); }

.orb-stats {
  display: grid; gap: 6px 12px; margin-top: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 9px; border-top: 1px dashed rgba(255,255,255,.07);
}
.orb-stats span {
  font-size: 11.5px; color: var(--txt-dim); font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.orb-stats i { font-style: normal; color: var(--txt-faint); margin-right: 4px; }
.orb-stats .hi { grid-column: 1 / -1; color: var(--gold); padding-top: 2px; }
.orb-stats .hi i { color: var(--gold-dim); }

/* 灵珠属性：手机端 2 列（「切割加成」独占整行） */

/* ============================================================
   合成 —— 分类 + 配方
   ============================================================ */
.cr-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px; }
.cr-cat {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit; font-size: 12.5px; cursor: pointer; transition: .16s;
  padding: 7px 13px; border-radius: 9px;
  color: var(--txt-dim); border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}
.cr-cat:hover { border-color: var(--gold-dim); color: var(--txt); }
.cr-cat.on {
  color: var(--gold); border-color: rgba(217,178,106,.6);
  background: rgba(217,178,106,.09); box-shadow: 0 0 14px rgba(217,178,106,.1);
}
.cr-cat-ico { font-size: 14px; line-height: 1; }
/* 页签红点：二级分类里有可合成 / 可激活 / 可学习内容 */
.cr-cat { position: relative; }
.cr-cat.dot::after, .cr-subtab.dot::after {
  content: ''; position: absolute; top: -3px; right: -3px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff5a5a; box-shadow: 0 0 6px rgba(255,90,90,.85);
}
.cr-subs { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 8px; padding-left: 2px; }
.cr-subtab {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: inherit; font-size: 12px; cursor: pointer; transition: .16s;
  padding: 5px 11px; border-radius: 8px; white-space: nowrap;
  color: var(--txt-faint); border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.015);
}
.cr-subtab:hover { border-color: var(--gold-dim); color: var(--txt-dim); }
.cr-subtab.on {
  color: var(--gold); border-color: rgba(217,178,106,.45);
  background: rgba(217,178,106,.07);
}
.cr-subtab { position: relative; }
.cr-desc { font-size: 11.5px; color: var(--txt-faint); line-height: 1.7; margin-bottom: 10px; }

/* 合成三级页签：神戒 ★ ~ ★★★★★ */
.cr-stars { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 9px; padding-left: 2px; }
.cr-startab {
  font-family: inherit; font-size: 12px; cursor: pointer; transition: .16s;
  padding: 4px 10px; border-radius: 8px; letter-spacing: 1px;
  color: var(--txt-faint); border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.015);
}
.cr-startab:hover { border-color: var(--gold-dim); color: var(--txt-dim); }
.cr-startab.on {
  color: var(--gold); border-color: rgba(217,178,106,.5);
  background: rgba(217,178,106,.08); box-shadow: 0 0 12px rgba(217,178,106,.1);
}

/* ============================================================
   神戒 —— 6 个戒指位，每个独立穿戴
   ============================================================ */
.sj-wrap { display: flex; flex-direction: column; gap: 9px; }
.sj-card {
  border: 1px solid rgba(255,255,255,.08); border-radius: 11px;
  background: rgba(255,255,255,.02); padding: 11px 13px; transition: .16s;
}
.sj-card.on { border-color: rgba(217,178,106,.42); background: rgba(217,178,106,.045); }
.sj-top { display: flex; align-items: center; gap: 11px; }
.sj-mid { flex: 1 1 auto; min-width: 0; }
.sj-name {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--txt);
}
.sj-tag {
  font-size: 10.5px; font-weight: 500; line-height: 1.7; padding: 0 6px;
  border-radius: 5px; color: var(--gold); letter-spacing: 1px;
  border: 1px solid rgba(217,178,106,.32); background: rgba(217,178,106,.09);
}
.sj-state { font-size: 11.5px; margin-top: 3px; color: var(--txt-faint); }
.sj-on   { color: var(--gold); }
.sj-have { color: var(--green); }
.sj-none { color: var(--txt-faint); }

.sj-desc {
  margin-top: 9px; padding-top: 9px; font-size: 11.5px; line-height: 1.75;
  color: var(--txt-dim); border-top: 1px dashed rgba(255,255,255,.07);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   背包 · 特殊装备（神戒 / 五行灵珠 / 取经人）
   ============================================================ */
.spec-group { margin-top: 14px; }
.sub-res + .spec-group { margin-top: 10px; }
.spec-hd {
  display: flex; align-items: baseline; gap: 10px;
  padding: 0 2px 7px; font-size: 12.5px; font-weight: 600; color: var(--gold);
}
.spec-hd i {
  font-style: normal; font-size: 11px; font-weight: 400; color: var(--txt-faint);
  font-variant-numeric: tabular-nums;
}
.spec-list { display: flex; flex-direction: column; gap: 7px; }
.spec-row {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: 10px; transition: .16s;
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02);
}
.spec-row:hover { border-color: rgba(217,178,106,.28); }
.spec-dot {
  flex: 0 0 auto; display: inline-block; width: 26px; height: 26px; border-radius: 50%;
  box-shadow: inset 0 0 0 5px rgba(0,0,0,.55), 0 0 12px -4px currentColor;
}
.spec-mid { flex: 1 1 auto; min-width: 0; }
.spec-nm {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-size: 13px; font-weight: 600; color: var(--txt);
}
.spec-nm .spec-tier {
  font-size: 10px; font-weight: 500; line-height: 1.7; padding: 0 5px; border-radius: 5px;
  color: var(--gold); border: 1px solid rgba(217,178,106,.30); background: rgba(217,178,106,.08);
}
.spec-n { font-size: 11.5px; font-weight: 500; color: var(--txt-dim); font-variant-numeric: tabular-nums; }
.spec-desc {
  margin-top: 3px; font-size: 11px; line-height: 1.6; color: var(--txt-faint);
  font-variant-numeric: tabular-nums;
}
/* 比身上穿的更好：绿色向上箭头 */
.spec-up {
  flex: 0 0 auto; font-size: 15px; font-weight: 700; line-height: 1;
  color: var(--green); text-shadow: 0 0 10px rgba(90,214,140,.45);
}

.cr-wrap { display: flex; flex-direction: column; gap: 9px; }
/* 属性丹页：4 类分组 */
.pill-group { display: flex; flex-direction: column; gap: 9px; margin-bottom: 14px; }
.pill-group-title {
  font-size: 12.5px; font-weight: 700; color: var(--gold, #d9b26a);
  padding-left: 2px; letter-spacing: .5px;
}
/* 降魔图鉴：星级角标 ★N/10 */
.jm-star {
  display: inline-block; margin-left: 6px; padding: 0 7px;
  border-radius: 6px; border: 1px solid rgba(217,178,106,.45);
  background: rgba(217,178,106,.12); color: var(--gold);
  font-size: 10.5px; line-height: 1.7; vertical-align: 1px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* ---------- 提升中心 · 昆仑灵植（5 品质 × 各 20 株） ---------- */
/* 套装：一行 2 个（左=件数，右=进度；效果另起一行） */
.kl-sets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 12px 0 14px; }
.kl-set {
  display: grid; grid-template-columns: 1fr auto;
  grid-template-areas: "term cnt" "fx fx";
  align-items: center; gap: 1px 8px;
  padding: 6px 9px; border-radius: 9px; font-size: 11.5px;
  border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.02);
  color: var(--txt-faint);
}
.kl-set.on { border-color: rgba(217,178,106,.34); background: rgba(217,178,106,.05); color: var(--txt-dim); }
.kl-set-term { grid-area: term; font-weight: 600; letter-spacing: .5px; font-size: 11px; }
.kl-set.on .kl-set-term { color: var(--gold); }
.kl-set-fx { grid-area: fx; min-width: 0; line-height: 1.45; }
.kl-fx-i { white-space: nowrap; }
.kl-set-cnt { grid-area: cnt; font-variant-numeric: tabular-nums; font-size: 11px; }
.kl-set.on .kl-set-cnt { color: var(--gold); }
/* 5 列图鉴格（照参考图）：未激活 = 灰暗 + 绿色「点击激活」；已激活 = 品质色描边 + 左下角星级；
   右上角品质名，够卡可升星时换成橙色 ↑ 角标 */
.kl-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.kl-cell { display: flex; flex-direction: column; gap: 4px; min-width: 0; cursor: pointer; }
.kl-frame {
  position: relative; aspect-ratio: 1 / 1; border-radius: 9px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 1px solid rgba(255,255,255,.15);
  background: radial-gradient(circle at 50% 38%, rgba(255,255,255,.08), rgba(0,0,0,.62) 74%);
  box-shadow: inset 0 0 12px rgba(0,0,0,.55);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.kl-cell.on .kl-frame {
  border-color: var(--qc);
  background: radial-gradient(circle at 50% 38%, rgba(255,255,255,.17), rgba(0,0,0,.5) 76%);
  box-shadow: inset 0 0 16px -5px var(--qc), 0 0 9px -4px var(--qc);
}
.kl-cell:hover .kl-frame { transform: translateY(-1px); }
.kl-ico { font-size: clamp(17px, 4.4vw, 34px); line-height: 1; filter: grayscale(1) brightness(.62); }
.kl-cell.on .kl-ico { filter: none; }
.kl-q {
  position: absolute; top: 2px; right: 4px; font-size: 9.5px; font-weight: 700; letter-spacing: .5px;
  color: var(--qc); text-shadow: 0 1px 3px rgba(0,0,0,.9);
}
.kl-cell.off .kl-q { color: #8d8d8d; }
.kl-act {
  font-size: 12px; font-weight: 800; letter-spacing: .5px; line-height: 1; color: #3ff04a;
  text-shadow: 0 0 7px rgba(55,255,70,.85), 0 1px 3px rgba(0,0,0,.9), 0 0 16px rgba(30,220,50,.55);
}
.kl-st {
  position: absolute; left: 4px; bottom: 2px; font-size: 11px; font-weight: 800;
  color: #ffd24a; text-shadow: 0 1px 3px rgba(0,0,0,.95);
}
.kl-st b { font-size: 9px; }
.kl-up {
  position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; line-height: 1; color: #4a2200;
  background: linear-gradient(180deg, #ffc44d, #e8850f);
  box-shadow: 0 0 8px rgba(255,150,30,.75);
}
.kl-nm {
  font-size: 10.5px; text-align: center; color: var(--txt-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kl-cell.on .kl-nm { color: var(--txt); }
@media (max-width: 560px) {
  .kl-grid { gap: 6px; }
  .kl-act { font-size: 11px; letter-spacing: 0; }
  .kl-nm { font-size: 10px; }
  .kl-q { font-size: 9px; }
}
@media (min-width: 900px) {
  .kl-grid { gap: 10px; }
  .kl-act { font-size: 14px; }
  .kl-nm { font-size: 12px; }
  .kl-q { font-size: 11px; }
  .kl-st { font-size: 13px; }
  .kl-up { width: 19px; height: 19px; font-size: 13px; }
}

/* ---------- 副本 · 封魔塔（照设计稿：层号大字 / 收益对比 / 奖励格 / 前往挑战） ---------- */
.tw-hero { text-align: center; padding: 2px 0 4px; }
.tw-hero-txt {
  font-family: var(--font-title); font-size: 27px; font-weight: 800;
  letter-spacing: 3px; color: var(--gold);
  text-shadow: 0 2px 14px rgba(217,178,106,.45), 0 0 30px rgba(217,178,106,.18);
}
.tw-hero-sub { margin-top: 5px; font-size: 11.5px; color: var(--txt-faint); letter-spacing: .5px; }

.tw-sec {
  display: flex; align-items: center; gap: 9px;
  margin: 18px 0 10px; font-size: 12.5px; font-weight: 700;
  color: var(--gold); letter-spacing: 1px;
}
.tw-sec::before {
  content: ''; flex: 1 1 auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217,178,106,.45));
}
.tw-sec::after {
  content: ''; flex: 1 1 auto; height: 1px;
  background: linear-gradient(90deg, rgba(217,178,106,.45), transparent);
}
.tw-sec > span { flex: 0 0 auto; }
.tw-q {
  flex: 0 0 auto; width: 18px; height: 18px; padding: 0; border-radius: 50%;
  font-family: inherit; font-size: 11px; line-height: 16px; cursor: pointer;
  color: var(--gold); border: 1px solid var(--gold-dim); background: rgba(217,178,106,.08);
}
.tw-q:hover { border-color: var(--gold); background: rgba(217,178,106,.18); }

.tw-box {
  border: 1px solid rgba(217,178,106,.2); border-radius: 11px;
  background: rgba(0,0,0,.26); padding: 12px 13px;
}
.tw-earn { display: block; }
/* 表头单独一行，箭头只在两行数值之间垂直居中，保证左右对齐 */
.tw-earn-head { display: grid; grid-template-columns: 1fr 28px 1fr; gap: 6px; margin-bottom: 8px; }
.tw-earn-head span {
  text-align: center; font-size: 12px; font-weight: 700;
  color: var(--gold-dim); letter-spacing: .5px;
}
.tw-earn-head span:first-child { grid-column: 1; }
.tw-earn-head span:last-child { grid-column: 3; color: var(--gold); }
.tw-earn-body { display: grid; grid-template-columns: 1fr 28px 1fr; gap: 6px; align-items: center; }
.tw-line { font-size: 12px; color: var(--txt-dim); line-height: 1.95; text-align: center; }
.tw-line b { color: var(--txt); font-weight: 700; font-variant-numeric: tabular-nums; }
.tw-col.next .tw-line b { color: var(--green); }
.tw-arrow { text-align: center; line-height: 1; color: var(--green); font-size: 17px; opacity: .9; }

.tw-claim { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.tw-claim-l { flex: 1 1 auto; min-width: 0; }
.tw-claim-k { font-size: 12px; color: var(--txt-dim); }
.tw-claim-v { font-size: 12px; color: var(--txt-faint); margin-top: 3px; }
.tw-claim-v b { color: var(--gold); font-weight: 700; }

.tw-rewards { display: flex; justify-content: center; gap: 12px; }
.tw-item {
  width: 86px; padding: 10px 6px; text-align: center; border-radius: 9px;
  border: 1px solid rgba(217,178,106,.42);
  background: radial-gradient(circle at 50% 0%, rgba(217,178,106,.15), rgba(0,0,0,.35) 72%);
}
.tw-item-k { font-size: 11px; color: var(--txt-dim); letter-spacing: .5px; }
.tw-item-v {
  margin-top: 5px; font-size: 14px; font-weight: 800;
  color: var(--gold); font-variant-numeric: tabular-nums;
}

.tw-reccut {
  margin-top: 16px; text-align: center;
  font-size: 13px; font-weight: 700; color: #ff7a6b; letter-spacing: .3px;
}
/* 切割达到推荐值 → 绿字；没达到 → 红字 */
.tw-reccut.reached { color: var(--green); }
.tw-link {
  display: block; margin: 10px auto 0; padding: 4px 8px;
  background: none; border: 0; font-family: inherit;
  font-size: 12.5px; color: var(--green); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(111,207,151,.45);
}
.tw-link:hover { color: #8fe6b4; }
.tw-fight {
  display: block; width: 100%; max-width: 330px; margin: 10px auto 2px;
  padding: 13px 16px; border-radius: 11px; cursor: pointer; font-family: inherit;
  font-size: 15px; font-weight: 800; letter-spacing: 3px; color: #f3e3bd;
  border: 1px solid rgba(217,178,106,.75);
  background: linear-gradient(180deg, #4a3413, #241a0a 60%, #150f05);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.5), 0 6px 18px rgba(0,0,0,.45), 0 0 22px rgba(217,178,106,.14);
  transition: .16s;
}
.tw-fight:hover {
  border-color: var(--gold); transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.5), 0 6px 22px rgba(0,0,0,.5), 0 0 26px rgba(217,178,106,.3);
}
.tw-fight:active { transform: translateY(0); }
.tw-fight.off {
  color: var(--txt-faint); border-color: var(--line);
  background: rgba(255,255,255,.03); box-shadow: none; cursor: not-allowed;
}
.tw-last {
  margin-top: 14px; padding: 8px 11px; border-radius: 9px;
  border: 1px dashed rgba(217,178,106,.28); background: rgba(217,178,106,.05);
  font-size: 11.5px; color: var(--txt-dim); line-height: 1.7;
}
.tw-done { text-align: center; font-size: 12.5px; color: var(--gold); padding: 16px; }
/* 封魔塔里盘古战斧的加成提示（封魔体质生效时显示） */
.tw-pangu {
  margin-top: 8px; padding: 7px 11px; border-radius: 9px;
  border: 1px solid rgba(111,207,151,.26); background: rgba(111,207,151,.06);
  font-size: 11.5px; color: var(--green); line-height: 1.7;
}

/* ---------------- 提升中心 · 盘古战斧 ---------------- */
.pg-hero { text-align: center; padding: 4px 0 10px; }
.pg-tier {
  font-family: var(--font-title); font-size: 27px; color: var(--gold);
  letter-spacing: .05em; text-shadow: 0 0 14px var(--gold-glow);
}
.pg-bar {
  height: 5px; margin: 9px auto 0; max-width: 260px; border-radius: 4px;
  background: rgba(255,255,255,.07); overflow: hidden;
}
.pg-bar i {
  display: block; height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, #8a7343, #d9b26a);
}
.pg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pg-cell {
  padding: 8px 6px; border-radius: 9px; text-align: center;
  border: 1px solid var(--line-soft); background: rgba(255,255,255,.02);
}
.pg-k { font-size: 11px; color: var(--txt-faint); }
.pg-v { margin-top: 3px; font-size: 12.5px; color: var(--gold); font-variant-numeric: tabular-nums; }
.pg-fx {
  margin-top: 8px; padding: 9px 11px; border-radius: 10px;
  border: 1px solid var(--line-soft); background: rgba(255,255,255,.02);
}
.pg-fx.on { border-color: rgba(217,178,106,.3); background: rgba(217,178,106,.05); }
.pg-fx-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pg-fx-name { font-size: 13px; font-weight: 600; color: var(--txt-dim); }
.pg-fx.on .pg-fx-name { color: var(--gold); }
.pg-fx-tag {
  font-size: 10.5px; padding: 0 7px; line-height: 1.7; border-radius: 6px;
  color: var(--txt-faint); border: 1px solid var(--line); white-space: nowrap;
}
.pg-fx.on .pg-fx-tag {
  color: var(--green); border-color: rgba(120,200,150,.3); background: rgba(120,200,150,.1);
}
.pg-fx-desc { margin-top: 4px; font-size: 11.5px; color: var(--txt-dim); line-height: 1.7; }

/* ---------------- 福利 · 主城礼包 ---------------- */
/* 10 个主城标签：自动换行，保证浮屠山之后的主城也看得见（不做横向滚动） */
/* 特惠礼包 · 分组标题 */
.sp-sect {
  margin: 14px 0 8px; padding: 6px 10px;
  border-left: 3px solid rgba(217,178,106,.55);
  background: rgba(217,178,106,.08);
  color: var(--gold); font-weight: 700; font-size: 13px;
  border-radius: 6px;
}
.cp-tabs {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0 8px;
}
.cp-tab {
  flex: 0 0 auto; padding: 5px 11px; border-radius: 999px; cursor: pointer;
  font-size: 12px; color: var(--txt-dim); white-space: nowrap;
  border: 1px solid var(--line); background: rgba(255,255,255,.02);
  transition: .16s;
}
.cp-tab.on {
  color: #1a1408; border-color: var(--gold); background: var(--gold);
  font-weight: 600; box-shadow: 0 0 12px var(--gold-glow);
}
.cp-tab.got { color: var(--green); border-color: rgba(111,207,151,.4); }
.cp-tab.on.got { color: #1a1408; }
.cp-tab.lock { opacity: .42; }

.cp-hero {
  position: relative; border-radius: 14px; padding: 16px 14px 14px;
  border: 1px solid rgba(217,178,106,.26);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(217,178,106,.10), transparent 62%),
    rgba(21, 26, 36, .92);
  text-align: center;
}
.cp-h1 {
  font-family: var(--font-title); font-size: 19px; letter-spacing: .1em;
  color: var(--gold); text-shadow: 0 0 16px var(--gold-glow);
}
.cp-h2 {
  margin-top: 3px; font-family: var(--font-title); font-size: 14px;
  letter-spacing: .06em; color: var(--txt-dim);
}

.cp-items {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 7px; margin: 14px 0 12px;
}
.cp-it {
  border-radius: 9px; padding: 9px 5px; min-height: 58px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid rgba(217,178,106,.2);
  background: linear-gradient(180deg, rgba(217,178,106,.08), rgba(255,255,255,.015));
}
.cp-it-n { font-size: 11px; color: var(--txt); line-height: 1.35; }
.cp-it-q {
  margin-top: 4px; font-size: 12.5px; font-weight: 600;
  color: var(--gold); font-variant-numeric: tabular-nums;
}

.cp-prog { margin-top: 2px; }
.cp-prog-t { font-size: 12px; color: var(--txt-dim); }
.cp-prog-t b { color: var(--red); font-variant-numeric: tabular-nums; }
.cp-prog-t b.ok { color: var(--green); }
.cp-bar {
  height: 6px; margin-top: 6px; border-radius: 999px; overflow: hidden;
  background: rgba(255,255,255,.06);
}
.cp-bar i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--red), #ff9166);
}
.cp-bar i.ok { background: linear-gradient(90deg, #3f9d6b, var(--green)); }

.cp-btns { display: flex; gap: 10px; margin-top: 14px; }
.cp-buy, .cp-free {
  flex: 1 1 0; min-width: 0; padding: 11px 8px; border-radius: 10px; cursor: pointer;
  font-size: 13.5px; font-weight: 600; letter-spacing: .04em;
  border: 1px solid transparent; transition: .16s;
}
.cp-buy {
  color: #10230f;
  border-color: #2f7a3f;
  background: linear-gradient(180deg, #7fd06a, #3f9d4b);
  box-shadow: 0 0 14px rgba(111,207,151,.22);
}
.cp-buy span { font-size: 11px; opacity: .78; margin-right: 5px; }
.cp-buy b { font-variant-numeric: tabular-nums; }
.cp-free {
  color: var(--gold);
  border-color: rgba(217,178,106,.55);
  background: linear-gradient(180deg, rgba(217,178,106,.20), rgba(217,178,106,.07));
}
.cp-buy.off, .cp-free.off {
  cursor: not-allowed; color: var(--txt-faint); border-color: var(--line);
  background: rgba(255,255,255,.03); box-shadow: none;
}
.cp-hint { margin-top: 8px; font-size: 11px; color: var(--txt-faint); }
.cp-lock {
  margin-top: 14px; padding: 10px; border-radius: 10px;
  font-size: 12px; color: var(--txt-faint);
  border: 1px dashed var(--line); background: rgba(255,255,255,.02);
}
.cp-got {
  margin-top: 14px; padding: 10px; border-radius: 10px;
  font-size: 12.5px; font-weight: 600; color: var(--green);
  border: 1px solid rgba(111,207,151,.35); background: rgba(111,207,151,.08);
}

/* ---------------- 福利 · 五行礼包（五行盘 + 礼包卡） ---------------- */
.wx-wheel {
  position: relative; height: 330px; margin: 10px 0 12px;
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(217,178,106,.26);
  background:
    radial-gradient(70% 62% at 50% 46%, rgba(217,178,106,.16), transparent 70%),
    radial-gradient(120% 90% at 50% 110%, rgba(64,102,168,.18), transparent 60%),
    rgba(21, 26, 36, .92);
}
.wx-swirl {
  position: absolute; left: 50%; top: 46%; width: 190px; height: 190px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background:
    conic-gradient(from 0deg, rgba(217,178,106,.14), rgba(64,102,168,.16), rgba(224,90,74,.12), rgba(111,207,151,.12), rgba(177,140,240,.14), rgba(217,178,106,.14));
  filter: blur(2px);
  animation: wxSpin 14s linear infinite;
}
@keyframes wxSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.wx-node { position: absolute; width: 92px; text-align: center; }
.wx-node.p-top   { left: 50%; top: 8px;  transform: translateX(-50%); }
.wx-node.p-right { right: 4px; top: 74px; }
.wx-node.p-br    { right: 14px; bottom: 26px; }
.wx-node.p-bl    { left: 14px; bottom: 26px; }
.wx-node.p-left  { left: 4px; top: 74px; }

.wx-ball {
  width: 54px; height: 54px; margin: 0 auto; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title); font-size: 21px; color: #fff;
  border: 2px solid var(--wc, var(--gold));
  background:
    radial-gradient(circle at 34% 30%, rgba(255,255,255,.32), transparent 46%),
    radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--wc, #d9b26a) 62%, #10131a), #10131a 78%);
  box-shadow: 0 0 14px color-mix(in srgb, var(--wc, #d9b26a) 55%, transparent);
  text-shadow: 0 0 8px rgba(0,0,0,.6);
}
.wx-lab {
  margin-top: 5px; font-size: 11px; color: var(--txt-dim); white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,.7);
}
.wx-node.hit .wx-ball {
  border-color: #fff;
  box-shadow: 0 0 22px color-mix(in srgb, var(--wc, #d9b26a) 85%, transparent);
  animation: wxHit .9s ease-in-out 3;
}
@keyframes wxHit { 50% { transform: scale(1.14); } }
/* 已抽中过的珠子：绿色「已获得」缎带标（挂珠子上沿，微倾） */
.wx-got { position: absolute; top: -7px; left: 50%; z-index: 2;
  transform: translateX(-50%) rotate(-5deg);
  padding: 2px 9px; border-radius: 4px; white-space: nowrap;
  font-size: 11px; font-weight: 700; letter-spacing: .05em; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
  background: linear-gradient(180deg, #8fd964, #3f9e4d);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 2px 6px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.35);
  pointer-events: none; }

.wx-center {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  text-align: center;
}
.wx-count { font-size: 12.5px; color: var(--txt-dim); text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.wx-count b { color: var(--gold); font-variant-numeric: tabular-nums; }
.wx-go {
  margin-top: 9px; padding: 10px 26px; border-radius: 999px; cursor: pointer;
  font-size: 14.5px; font-weight: 700; letter-spacing: .14em;
  color: #10230f; border: 1px solid #2f7a3f;
  background: linear-gradient(180deg, #7fd06a, #3f9d4b);
  box-shadow: 0 0 16px rgba(111,207,151,.3);
}
.wx-go:disabled { cursor: not-allowed; color: var(--txt-faint); border-color: var(--line);
  background: rgba(255,255,255,.04); box-shadow: none; }

.wx-last {
  margin-bottom: 12px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid rgba(217,178,106,.3); background: rgba(217,178,106,.06);
}
.wx-last-h { font-size: 11.5px; color: var(--txt-dim); }
.wx-last-b { margin-top: 3px; font-size: 14px; font-weight: 600; color: var(--gold); }

.wx-packs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.wx-pack {
  border-radius: 11px; padding: 10px 10px 11px;
  border: 1px solid rgba(217,178,106,.22);
  background: linear-gradient(180deg, rgba(217,178,106,.07), rgba(255,255,255,.015));
  display: flex; flex-direction: column;
}
.wx-pack:last-child { grid-column: 1 / -1; }
.wx-pack-h { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.wx-pack-h span:first-child { font-size: 13px; font-weight: 600; color: var(--txt); }
.wx-price { font-size: 12px; color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wx-its { flex: 1 1 auto; margin: 8px 0 9px; display: flex; flex-direction: column; gap: 4px; }
.wx-it {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 11.5px; color: var(--txt-dim);
  border-bottom: 1px dashed var(--line-soft); padding-bottom: 3px;
}
.wx-it:last-child { border-bottom: 0; }
.wx-it b { color: var(--txt); font-variant-numeric: tabular-nums; }
.wx-buy {
  padding: 9px 6px; border-radius: 9px; cursor: pointer;
  font-size: 12.5px; font-weight: 600; letter-spacing: .03em;
  color: #1a1408; border: 1px solid transparent;
  background: linear-gradient(180deg, #e7c884, #c39a4e);
  box-shadow: 0 0 12px rgba(217,178,106,.22);
}
.wx-buy:disabled { cursor: not-allowed; color: var(--txt-faint); border-color: var(--line);
  background: rgba(255,255,255,.04); box-shadow: none; }
/* 已购买（每个礼包限购 1 次）：整卡置灰 */
.wx-pack.done { opacity: .62; }
.wx-pack.done .wx-buy { color: var(--txt-faint); border-color: var(--line);
  background: rgba(255,255,255,.04); box-shadow: none; }

/* ---------------- 福利 · 任务 · 大圣归来 ---------------- */
/* 阶段分组 */
.ds-list { display: flex; flex-direction: column; gap: 12px; }
.ds-stage { border: 1px solid var(--line-soft); border-radius: 12px; background: var(--panel-2); overflow: hidden; }
.ds-stage.claimed { opacity: .72; }
.ds-stage-head {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px;
  border-bottom: 1px solid var(--line-soft); background: rgba(255,255,255,.03);
}
.ds-stage-no {
  flex: 0 0 auto; width: 20px; height: 20px; line-height: 20px; text-align: center;
  border-radius: 50%; font-size: 11px; color: #1a1408;
  background: linear-gradient(180deg, #f0d193, var(--gold));
}
.ds-stage-note { flex: 1 1 auto; min-width: 0; font-size: 11.5px; color: var(--txt-dim); line-height: 1.5; }
.ds-stage-state { flex: 0 0 auto; font-size: 11px; padding: 2px 7px; border-radius: 4px; }
.ds-stage-state.done { color: #9fd6a8; border: 1px solid rgba(120,200,140,.4); background: rgba(120,200,140,.10); }
.ds-stage-state.ok { color: var(--gold); border: 1px solid var(--gold-dim); background: rgba(217,178,106,.12); }

/* 每张地图一行 */
.ds-rows { display: flex; flex-direction: column; }
.ds-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.ds-row:first-child { border-top: none; }
.ds-row-info { flex: 1 1 auto; min-width: 0; }
.ds-row-title { font-size: 12.5px; color: var(--txt); line-height: 1.45; }
.ds-row-goal { font-size: 11.5px; color: var(--txt-faint); margin-top: 2px; }
.ds-row.done .ds-row-title { color: var(--txt-dim); }
.ds-row.done .ds-row-goal { color: #7fae88; }

.ds-go {
  flex: 0 0 auto; padding: 6px 15px; border-radius: 7px; cursor: pointer;
  font-size: 12px; color: var(--gold); font-family: inherit;
  border: 1px solid var(--gold-dim); background: rgba(217,178,106,.10);
  transition: background .15s, border-color .15s;
}
.ds-go:hover { background: rgba(217,178,106,.2); border-color: var(--gold); }

/* 已完成：绿色斜章（照参考图） */
.ds-stamp {
  flex: 0 0 auto; padding: 3px 9px; border-radius: 4px; font-size: 11.5px;
  color: #eafff0; letter-spacing: 1px; transform: rotate(-6deg);
  border: 1px solid rgba(140,230,165,.75);
  background: linear-gradient(180deg, #35a25a, #1f7a3e);
  box-shadow: 0 2px 8px rgba(40,140,80,.28);
}

/* 底部：奖励 */
.ds-reward-box {
  margin-top: 14px; padding: 14px 14px 16px; border-radius: 12px;
  border: 1px solid rgba(217,178,106,.3);
  background: linear-gradient(180deg, rgba(217,178,106,.10), rgba(217,178,106,.02));
}
.ds-reward-title {
  position: relative; text-align: center; font-size: 14px; letter-spacing: 3px;
  color: var(--gold); font-family: var(--font-title); padding: 0 34px;
}
.ds-reward-title::before, .ds-reward-title::after {
  content: ''; position: absolute; top: 50%; width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim));
}
.ds-reward-title::before { left: 0; }
.ds-reward-title::after { right: 0; transform: scaleX(-1); }
.ds-rewards { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 11px; }
.ds-reward {
  flex: 0 0 calc((100% - 16px) / 3); min-width: 0; padding: 10px 8px; border-radius: 9px; text-align: center;
  border: 1px solid var(--line-soft); background: rgba(0,0,0,.22);
}
.ds-reward-name { display: block; font-size: 11.5px; color: var(--txt); line-height: 1.4; word-break: break-all; }
.ds-reward-num { display: block; font-size: 11.5px; color: var(--gold); margin-top: 4px; }
.ds-reward-empty { text-align: center; font-size: 12px; color: var(--txt-faint); padding: 14px 0 4px; }
.ds-claim {
  display: block; width: 100%; margin-top: 12px; padding: 10px 0; border-radius: 9px;
  font-size: 13.5px; letter-spacing: 2px; font-family: var(--font-title); cursor: not-allowed;
  color: var(--txt-faint); border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
}
.ds-claim.on {
  cursor: pointer; color: #2a1f08;
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, #f3d79c, var(--gold));
  box-shadow: 0 0 14px rgba(217,178,106,.3);
}
.ds-claim.on:hover { filter: brightness(1.06); }

/* ---------------- 提升中心 · 取经人（齐天大圣 / 天蓬元帅） ---------------- */
/* 二级分类页签（版式照合成页 cr-subs，但这个页面不带任何图案） */
.qj-tabs { display: flex; gap: 8px; margin-top: 10px; }
.qj-tab {
  flex: 1 1 0; min-width: 0; padding: 8px 10px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03);
  color: var(--txt-dim); font-size: 12.5px; font-weight: 600; transition: .16s;
}
.qj-tab.on {
  border-color: rgba(217,178,106,.5); background: rgba(217,178,106,.12); color: var(--gold);
}
/* 神装分类页签：套装数量可变，按内容宽度排（1 套时不会拉成一整条） */
.qj-tabs.ss-tabs { flex-wrap: wrap; }
.qj-tabs.ss-tabs .qj-tab { flex: 0 0 auto; padding-left: 14px; padding-right: 14px; }
.qj-sum {
  display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline;
  margin-top: 10px; padding: 9px 12px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.02);
  font-size: 11.5px; color: var(--txt-dim);
}
.qj-sum > span { color: var(--txt-faint); }
.qj-sum b { font-weight: 600; color: var(--gold); }

/* 套装效果（集齐全套 SSS 才亮） */
.qj-fx {
  margin-top: 10px; padding: 10px 12px; border-radius: 11px;
  border: 1px dashed rgba(255,255,255,.12); background: rgba(255,255,255,.02);
}
.qj-fx.on {
  border-style: solid; border-color: rgba(232,120,64,.45);
  background: linear-gradient(135deg, rgba(232,120,64,.14), rgba(232,120,64,.03));
}
.qj-fx-h {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; color: var(--txt-dim);
}
.qj-fx.on .qj-fx-h { color: #e87840; }
.qj-fx-t {
  margin-left: auto; flex: 0 0 auto; padding: 1px 7px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600;
  color: var(--txt-faint); border: 1px solid rgba(255,255,255,.1);
}
.qj-fx-t.on { color: #e87840; border-color: rgba(232,120,64,.45); background: rgba(232,120,64,.12); }
.qj-fx-d { margin-top: 5px; font-size: 11.5px; line-height: 1.7; color: var(--txt-dim); }
.qj-fx-d b { font-weight: 600; color: var(--gold); }
.qj-fx-s { margin-top: 6px; font-size: 10.5px; line-height: 1.6; color: var(--txt-faint); }
.qj-fx-lv {
  display: inline-block; margin: 0 6px 2px 0; padding: 1px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600; color: var(--txt-faint);
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.02);
}
.qj-fx-lv.on { color: #e87840; border-color: rgba(232,120,64,.5); background: rgba(232,120,64,.14); }

/* 部位列表沿用装备页的 .eq-* 版式 */
.eq-foot { display: flex; gap: 8px; }
/* 一行属性（攻 / 防 / 切割 / PK减伤），自动换行不挤在一起 */
.qj-statline {
  display: flex; flex-wrap: wrap; gap: 2px 10px;
  margin-top: 3px; font-size: 11px; color: var(--txt-dim);
}
.qj-statline span { white-space: nowrap; }
.qj-statline i { font-style: normal; color: var(--txt-faint); margin-right: 3px; }
/* 顶部「去合成」按钮 */
.qj-gocraft { margin-top: 10px; }

.cr-row {
  border: 1px solid rgba(255,255,255,.08); border-radius: 11px;
  background: rgba(255,255,255,.02); padding: 11px 13px; transition: .16s;
}
.cr-row.focus { border-color: rgba(217,178,106,.8); background: rgba(217,178,106,.1); }
/* 已持有：不再置灰（可以重复合成），只给一条淡淡的金边做区分 */
.cr-row.has { border-color: rgba(217,178,106,.26); }
.cr-top { display: flex; align-items: center; gap: 11px; }
.cr-mid { flex: 1 1 auto; min-width: 0; }
.cr-name { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--txt); }
.cr-sub { font-size: 11px; color: var(--txt-faint); margin-top: 3px; }
.cr-tag {
  display: inline-block; margin-left: 6px; padding: 0 7px;
  border-radius: 6px; border: 1px solid rgba(217,178,106,.3);
  background: rgba(217,178,106,.09); color: var(--gold);
  font-size: 10.5px; line-height: 1.7; vertical-align: 1px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.cr-tag.worn {
  color: var(--green); border-color: rgba(120,200,150,.3); background: rgba(120,200,150,.1);
}
/* 天蓬专属合成成功率（失败越多越高） */
.cr-tag.rate {
  color: #ffd166; border-color: rgba(255,209,102,.42); background: rgba(255,209,102,.13);
  font-weight: 700;
}

/* 装扮档位角标：活动 / 极品 / 套装 */
.fs-k {
  display: inline-block; margin-left: 6px; padding: 0 6px;
  border-radius: 6px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05); color: var(--txt-dim);
  font-size: 10px; line-height: 1.7; vertical-align: 1px; white-space: nowrap;
}
.fs-k.top {
  color: var(--gold); border-color: rgba(217,178,106,.45); background: rgba(217,178,106,.1);
}
.fs-k.set {
  color: #c9a0ff; border-color: rgba(180,130,255,.4); background: rgba(180,130,255,.1);
}
.cr-stats {
  margin-top: 9px; padding-top: 9px; border-top: 1px dashed rgba(255,255,255,.07);
  font-size: 11.5px; color: var(--txt-dim); line-height: 1.75;
  font-variant-numeric: tabular-nums;
}
.cr-cost {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px;
  font-size: 12px; color: var(--gold); font-variant-numeric: tabular-nums;
}
.cr-cost .lack { color: var(--red); }

/* 合成数量：- / 输入框 / + / 最大（对齐游戏里的批量合成控件） */
.cr-buy {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  margin-top: 9px; flex-wrap: wrap;
}
.cr-total { font-size: 11px; color: var(--gold-dim); font-variant-numeric: tabular-nums; margin-right: auto; }
.cr-qty { display: flex; align-items: stretch; gap: 4px; }
.cr-qty.off { opacity: .45; }
.qbtn {
  font-family: inherit; font-size: 13px; line-height: 1; cursor: pointer; transition: .14s;
  min-width: 28px; padding: 0 7px; border-radius: 6px;
  color: var(--txt-dim); border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(70,62,52,.85), rgba(38,34,29,.9));
}
.qbtn:hover:not(:disabled) { color: var(--gold); border-color: var(--gold-dim); }
.qbtn:disabled { opacity: .32; cursor: default; }
.qbtn.qmax {
  min-width: 42px; font-size: 11.5px; letter-spacing: .04em;
  color: var(--gold); border-color: rgba(217,178,106,.45);
  background: linear-gradient(180deg, rgba(96,66,38,.9), rgba(58,40,26,.95));
}
.qinp {
  width: 56px; height: 28px; text-align: center;
  font-family: inherit; font-size: 13px; font-variant-numeric: tabular-nums;
  color: var(--txt); background: #0c0f14;
  border: 1px solid rgba(255,255,255,.14); border-radius: 6px;
  -moz-appearance: textfield; appearance: textfield;
}
.qinp::-webkit-outer-spin-button, .qinp::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qinp:focus { outline: none; border-color: var(--gold-dim); box-shadow: 0 0 0 2px rgba(217,178,106,.12); }
.cr-ico { font-size: 22px; line-height: 1; flex: 0 0 40px; text-align: center; }
/* 商城格子布局：一行 4 个（2026-10-26 用户指定，照参考图） */
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.shop-cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 5px 9px; border: 1px solid var(--line); border-radius: 10px;
  background: rgba(255,255,255,.02); position: relative; text-align: center; min-width: 0;
}
.sp-name {
  font-size: 12.5px; font-weight: 600; color: var(--txt); line-height: 1.3;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sp-own {
  position: absolute; right: 3px; top: 3px;
  font-size: 10px; color: var(--txt-faint); font-weight: 400;
}
.sp-price { font-size: 12px; color: var(--gold); font-weight: 600; white-space: nowrap; }
.shop-cell .btn { width: 100%; padding: 5px 0; font-size: 12px; border-radius: 8px; }

/* ============================================================
   回收 —— 两栏按阶选择（对齐游戏内界面）
   ============================================================ */
.rc-cols { display: flex; gap: 9px; margin-top: 10px; align-items: flex-start; }
.rc-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.rc-title { font-size: 12px; color: var(--txt-dim); letter-spacing: .12em; padding-left: 2px; }
/* 一阶一格：每栏两列网格，格内竖排（阶数 / 件数） */
.rc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.rc-cell {
  display: flex; flex-direction: column; align-items: stretch; gap: 2px; width: 100%;
  font-family: inherit; text-align: left; cursor: pointer; transition: .16s;
  padding: 8px 9px; border-radius: 9px; color: var(--txt); line-height: 1.35;
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02);
}
.rc-cell:hover:not(:disabled) { border-color: var(--gold-dim); background: rgba(255,255,255,.045); }
.rc-cell.on {
  border-color: rgba(217,178,106,.6); background: rgba(217,178,106,.09);
  box-shadow: 0 0 14px rgba(217,178,106,.12);
}
.rc-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rc-dot {
  flex: 0 0 auto; width: 9px; height: 9px; border-radius: 3px; transition: .16s;
  border: 1px solid var(--txt-faint); background: transparent;
}
.rc-cell.on .rc-dot { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 8px var(--gold-glow); }
.rc-nm { flex: 1 1 auto; min-width: 0; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-ct { font-size: 10.5px; color: var(--gold); font-variant-numeric: tabular-nums; padding-left: 15px; }
.rc-cell.empty { opacity: .35; cursor: not-allowed; }
.rc-cell.empty .rc-ct { color: var(--txt-faint); }
.rc-foot { margin-top: 12px; }
.rc-reward { min-height: 21px; font-size: 12.5px; color: var(--txt-dim); line-height: 1.7; }
.rc-reward b { color: var(--gold); }
.rc-foot .btn-block { margin-top: 9px; }

/* ============================================================
   卡密充值页
   ============================================================ */
.rc-card {
  margin-top: 12px; padding: 14px 14px 12px;
  border-radius: 13px; border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
}
.rc-label { font-size: 12px; color: var(--txt-dim); letter-spacing: .12em; margin-bottom: 8px; }
.rc-len {
  margin-left: 7px; padding: 1px 6px; border-radius: 5px;
  font-size: 10.5px; letter-spacing: .04em;
  color: var(--gold); background: rgba(255,199,96,.10);
  border: 1px solid rgba(255,199,96,.22);
  font-variant-numeric: tabular-nums;
}
.rc-input {
  width: 100%; box-sizing: border-box;
  font-family: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
  font-size: 16px; font-weight: 500;
  letter-spacing: .02em; text-align: left;
  padding: 13px 12px; border-radius: 11px;
  color: var(--gold); background: #0a0d13; border: 1px solid var(--line);
  outline: none; transition: border-color .16s, box-shadow .16s;
}
.rc-input:focus { border-color: var(--gold-dim); box-shadow: 0 0 0 3px rgba(217,178,106,.10); }
.rc-input::placeholder { color: #3a4150; font-weight: 400; letter-spacing: 0; }
.rc-count {
  text-align: right; font-size: 11px; color: var(--txt-faint);
  margin: 6px 2px 0; font-variant-numeric: tabular-nums;
}
.rc-count.over { color: #ff7f7f; }
.rc-btn { margin-top: 10px; }
.rc-hint { font-size: 11.5px; color: var(--txt-faint); line-height: 1.7; margin: 9px 2px 0; }

/* 充值额度：四格（今日 / 今日真实 / 累计 / 累计真实）。
   「真实」只统计卡密代币，用金色描边区分；其余是充值卡 + 代币的合计。 */
.rc-quota {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  margin: 0 0 12px;
}
.rcq {
  display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap;
  padding: 9px 11px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255,255,255,.02);
  font-variant-numeric: tabular-nums;
}
.rcq-lb { font-size: 11px; color: var(--txt-faint); letter-spacing: .06em; }
.rcq b { font-size: 15px; color: var(--txt); font-weight: 600; }
.rcq-un { font-size: 11px; color: var(--txt-faint); }
.rcq.real { border-color: rgba(217,178,106,.26); background: rgba(217,178,106,.05); }
.rcq.real b { color: var(--gold); }

@media (min-width: 560px) {
  .rc-quota { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.rc-note {
  margin-top: 12px; padding: 12px 14px;
  border-radius: 12px; border: 1px dashed rgba(255,255,255,.10);
  background: rgba(255,255,255,.015);
}
.rc-note-title { font-size: 12px; color: var(--txt-dim); letter-spacing: .12em; margin-bottom: 7px; }
.rc-note ul { margin: 0; padding-left: 16px; }
.rc-note li { font-size: 12px; color: var(--txt-faint); line-height: 1.9; }
.rc-note b { color: var(--gold-dim); }

/* 购买卡密：外链按钮，橙色系，与金币/兑换主按钮区分开 */
.rc-buy {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 10px; padding: 12px 14px;
  border-radius: 12px; text-decoration: none; box-sizing: border-box;
  font-size: 14px; font-weight: 600; letter-spacing: .04em;
  color: #fff6ea;
  background: linear-gradient(135deg, #ff8a1f 0%, #f5500c 52%, #d93c05 100%);
  border: 1px solid rgba(255,196,140,.40);
  box-shadow: 0 6px 18px rgba(244,80,12,.22), inset 0 1px 0 rgba(255,255,255,.22);
  transition: transform .12s, box-shadow .18s, filter .16s;
}
.rc-buy:hover { filter: brightness(1.07); box-shadow: 0 8px 22px rgba(244,80,12,.32), inset 0 1px 0 rgba(255,255,255,.26); }
.rc-buy:active { transform: translateY(1px); filter: brightness(.97); }
.rc-buy-arrow { font-size: 13px; opacity: .8; margin-left: -1px; transition: transform .16s; }
.rc-buy:hover .rc-buy-arrow { transform: translateX(2px); }

/* ---- 专属页面 / 大地图：手机端微调（所有屏幕统一） ---- */
@media screen {
  /* 子页面底边已让出导航高度（.subpage bottom: var(--mobnav-h)），这里不用再叠安全区 */
  .subpage-inner { padding: 0 12px 24px; }
  .subpage-head { padding: 11px 0 10px; margin-bottom: 12px; }
  .subpage-title { font-size: 17px; }
  .sub-hero-ico { font-size: 26px; }
  .sub-hero-lv { font-size: 20px; }
  .sub-eff { font-size: 13.5px; padding: 8px 0; }
  .region-card { padding: 12px 13px; gap: 10px; }
  .region-art { font-size: 26px; }
  .region-name { font-size: 15.5px; }
  .entry-card { padding: 12px 12px; }
  .entry-ico { font-size: 21px; }
  /* 装备页 / 背包分类 / 回收：窄屏收字号，保证两栏不挤爆 */
  .bag-tab { font-size: 12px; padding: 8px 6px; }
  .bag-item { padding: 10px 11px; gap: 10px; }
  .bi-ico { font-size: 21px; }
  .eq-head { padding: 10px 11px; gap: 9px; }
  .eq-ico { font-size: 20px; }
  .eq-right { max-width: 47%; }
  .eq-stat, .eq-rs, .eq-rc { font-size: 11px; }
  .eq-list { padding: 4px 9px 2px; }
  .rc-cols { gap: 7px; }
  .rc-grid { gap: 5px; }
  .rc-cell { padding: 7px 8px; }
  .rc-nm { font-size: 11.5px; }
  .rc-ct { font-size: 10px; padding-left: 15px; }
  /* 卡密充值页：输入框保持 16px（iOS 不缩放），其余收一点 */
  .rc-card { padding: 12px 12px 10px; margin-top: 10px; }
  .rc-label { font-size: 11.5px; }
  .rc-input { font-size: 16px; padding: 12px 10px; }
  .rc-note { padding: 11px 12px; }
  .rc-note li { font-size: 11.5px; }
  .rc-buy { padding: 11px 12px; font-size: 13.5px; }
}


/* ============================================================
   福利 · 免费 · 开局 3000 抽
   ============================================================ */
@media screen {
  .fd-head {
    margin-top: 10px; padding: 14px 16px 12px; border-radius: 14px;
    border: 1px solid rgba(217,178,106,.30);
    background:
      radial-gradient(120% 120% at 50% 0%, rgba(217,178,106,.16), transparent 60%),
      linear-gradient(180deg, #241c12, #16120c);
    text-align: center;
  }
  .fd-crown { font-size: 14px; color: #f0d9a6; letter-spacing: .06em; }
  .fd-crown b { color: #ffd166; font-size: 18px; font-family: var(--font-title); }
  .fd-left { margin: 10px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .fd-left-num {
    font-size: 38px; line-height: 1; font-weight: 700; color: #ffd166;
    font-variant-numeric: tabular-nums; text-shadow: 0 0 22px rgba(255,209,102,.45);
  }
  .fd-left-txt { font-size: 11.5px; letter-spacing: .2em; color: var(--gold-dim); }

  .fd-pool { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 12px 0; }
  .fd-cell {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; padding: 8px 3px 7px; border-radius: 9px; text-align: center;
    border: 1px solid var(--line); background: rgba(255,255,255,.02);
  }
  .fd-cell.rare {
    border-color: rgba(255,209,102,.45); background: rgba(255,209,102,.07);
    box-shadow: inset 0 0 16px rgba(255,209,102,.10);
  }
  /* 一次性奖品（3 张装扮激活卡）已抽中 → 打勾并淡出 */
  .fd-cell.got {
    border-color: rgba(111,207,151,.45); background: rgba(111,207,151,.08);
    box-shadow: inset 0 0 16px rgba(111,207,151,.12);
  }
  .fd-cell.got .fd-name, .fd-cell.got .fd-amt { opacity: .62; }
  .fd-cell.got .fd-pct { color: var(--green); }
  /* 对勾压在原概率行上（名字在上方保持可读） */
  .fd-got {
    position: absolute; left: 0; right: 0; bottom: 0;
    display: flex; align-items: flex-end; justify-content: center;
    padding-bottom: 1px;
    font-size: 26px; font-weight: 700; line-height: 1; color: #5ce08a;
    text-shadow: 0 0 12px rgba(92,224,138,.8), 0 2px 5px rgba(0,0,0,.7);
    pointer-events: none;
  }
  .fd-name { font-size: 10.5px; color: var(--txt); line-height: 1.2; }
  .fd-amt { font-size: 10.5px; color: var(--gold); font-variant-numeric: tabular-nums; }
  .fd-pct { font-size: 9.5px; color: var(--txt-faint); font-variant-numeric: tabular-nums; }

  .fd-acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 14px; }
  .fd-btn {
    flex: 1 1 44%; padding: 13px 10px; border-radius: 12px; cursor: pointer;
    font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: .08em;
    border: 1px solid #8a6b2c; color: #2a1d0c;
    background: linear-gradient(180deg, #f6d27c, #d9a441);
    box-shadow: 0 6px 18px rgba(217,164,65,.22), inset 0 1px 0 rgba(255,255,255,.5);
    transition: .16s;
  }
  .fd-btn.on:hover { filter: brightness(1.05); }
  .fd-btn.on:active { transform: translateY(1px); }
  .fd-btn:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }
  .fd-acts .fd-btn:nth-child(3) { flex: 1 1 100%; }

  .fd-mils { display: grid; gap: 8px; margin-bottom: 12px; }
  .fd-mil {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    border-radius: 11px; border: 1px solid var(--line); background: rgba(255,255,255,.02);
  }
  .fd-mil.can { border-color: rgba(111,207,151,.4); background: rgba(111,207,151,.06); }
  .fd-mil.done { opacity: .62; }
  .fd-mil-ico { font-size: 20px; }
  .fd-mil-mid { flex: 1; min-width: 0; }
  .fd-mil-name { font-size: 12.5px; color: var(--txt); }
  .fd-mil-sub { font-size: 11px; color: var(--txt-faint); margin-top: 2px; }
  .fd-state { font-size: 11.5px; color: var(--txt-faint); }
  .fd-state.done { color: var(--green); }
  .fd-mini {
    padding: 7px 14px; border-radius: 9px; cursor: pointer; font-family: inherit;
    font-size: 12.5px; font-weight: 600; border: 1px solid #3d6a52; color: #d8f5e4;
    background: linear-gradient(180deg, #1d3a2a, #132318);
  }

  .fd-last {
    margin: 12px 0 0; padding: 11px 12px; border-radius: 12px;
    border: 1px dashed rgba(217,178,106,.28); background: rgba(217,178,106,.05);
  }
  .fd-last-head { font-size: 12px; color: var(--txt-dim); margin-bottom: 7px; }
  .fd-last-head b { color: #ffd166; }
  .fd-rare { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 7px; }
  .fd-rare span {
    font-size: 11.5px; color: #2a1d0c; padding: 2px 8px; border-radius: 8px; font-weight: 600;
    background: linear-gradient(180deg, #f6d27c, #d9a441);
  }
  .fd-gains { display: flex; flex-wrap: wrap; gap: 6px; }
  .fd-gain {
    font-size: 11.5px; color: var(--txt-dim); border: 1px solid var(--line);
    padding: 2px 8px; border-radius: 8px; background: rgba(255,255,255,.02);
  }

  @media (max-width: 380px) {
    .fd-pool { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
    .fd-cell { padding: 7px 2px 6px; border-radius: 8px; }
    .fd-name { font-size: 9.5px; }
    .fd-amt { font-size: 9.5px; }
    .fd-pct { font-size: 9px; }
    .fd-left-num { font-size: 32px; }
  }
}

/* ============================================================
   福利 · 开局 3000 抽 · 抽奖结果弹窗
   ============================================================ */
.fm-mask {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 18px; background: rgba(4,6,9,.66);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  animation: fmFade .16s ease-out;
}
.fm-mask.out { opacity: 0; transition: opacity .18s; }
@keyframes fmFade { from { opacity: 0 } }

.fm-card {
  width: 100%; max-width: 340px; max-height: 76vh;
  display: flex; flex-direction: column;
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(217,178,106,.38);
  background: linear-gradient(180deg, #221b12, #12100b);
  box-shadow: 0 24px 64px rgba(0,0,0,.72), inset 0 1px 0 rgba(255,255,255,.06);
  animation: fmRise .2s cubic-bezier(.2,.9,.3,1);
}
@keyframes fmRise { from { opacity: 0; transform: translateY(14px) scale(.98) } }

.fm-head { padding: 16px 16px 10px; text-align: center; }
.fm-title { font-family: var(--font-title); font-size: 16px; letter-spacing: .08em; color: #ffd166; }
.fm-sub { margin-top: 5px; font-size: 11.5px; color: var(--txt-faint); }
.fm-sub b { color: var(--gold); font-variant-numeric: tabular-nums; }

.fm-rare {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; justify-content: center;
  max-height: 30vh; overflow-y: auto;
}
.fm-rare span {
  font-size: 11.5px; font-weight: 600; color: #2a1d0c; padding: 3px 9px; border-radius: 8px;
  background: linear-gradient(180deg, #f6d27c, #d9a441);
}

.fm-list {
  flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 4px 16px 10px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px;
  align-content: start;
}
.fm-item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 6px;
  padding: 7px 9px; border-radius: 8px; font-size: 11.5px;
  border: 1px solid var(--line); background: rgba(255,255,255,.025);
}
.fm-item:only-child { grid-column: 1 / -1; justify-content: center; color: var(--txt-faint); }
.fm-name { color: var(--txt-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-num { color: var(--gold); font-variant-numeric: tabular-nums; flex: 0 0 auto; }

.fm-foot {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 14px; border-top: 1px solid var(--line);
  background: rgba(0,0,0,.18);
}
.fm-left { flex: 1; min-width: 0; font-size: 11px; line-height: 1.35; color: var(--txt-faint); }
.fm-ok {
  flex: 0 0 auto; padding: 10px 22px; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 700; letter-spacing: .06em;
  border: 1px solid #8a6b2c; color: #2a1d0c;
  background: linear-gradient(180deg, #f6d27c, #d9a441);
  box-shadow: 0 6px 18px rgba(217,164,65,.22), inset 0 1px 0 rgba(255,255,255,.5);
}
.fm-ok:active { transform: translateY(1px); }
.fm-ok:focus-visible { outline: 2px solid #ffd166; outline-offset: 2px; }

@media (max-width: 360px) {
  .fm-list { grid-template-columns: 1fr; }
  .fm-card { max-height: 82vh; }
}

/* ---------------- 福利·七日登录 ---------------- */
.l7-banner {
  margin: 4px 0 12px; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255,209,102,.08);
  font-size: 12.5px; line-height: 1.5; color: var(--txt);
}
.l7-banner b { color: #ffd166; }
.l7-cards {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 4px 0 12px;
}
.l7-card {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 2px 8px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
  font-family: inherit; color: var(--txt);
}
.l7-card:active { transform: translateY(1px); }
.l7-card.sel { border-color: #ffd166; box-shadow: 0 0 0 1px #ffd166 inset; }
.l7-card.done { opacity: .55; }
.l7-card.lock { opacity: .4; }
.l7-card.can { border-color: #7dd87d; }
.l7-num { font-size: 15px; font-weight: 800; color: #ffd166; line-height: 1.1; }
.l7-card.done .l7-num { color: var(--txt-faint); }
.l7-day { font-size: 10px; color: var(--txt-faint); white-space: nowrap; }
@media (max-width: 360px) {
  .l7-cards { grid-template-columns: repeat(4, 1fr); }
}

/* ---- 幸运翻牌（七日登录附加）：照活动图米色牌面 + 红 ? ---- */
.l7-lucky { margin: 4px 0 12px; }
.l7-lcards {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
}
.l7-lcard {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 12px 2px 6px; border-radius: 10px;
  border: 1px solid #b8946a; background: linear-gradient(180deg, #f6ecd8, #e8d9ba);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.45), 0 2px 4px rgba(0,0,0,.18);
}
.l7-lcard.canflip { cursor: pointer; border-color: #ffd166; box-shadow: 0 0 0 1px #ffd166, inset 0 0 0 2px rgba(255,255,255,.45); }
.l7-lcard.canflip:active { transform: translateY(1px); }
.l7-lcard.lock { opacity: .5; }
.l7-lcard.flipped { opacity: .92; }
.l7-lface {
  font-size: 22px; font-weight: 900; line-height: 1.1;
  color: #d33a2c; text-shadow: 0 1px 0 rgba(255,255,255,.6);
}
.l7-lcard.flipped .l7-lface { color: #2e7d32; }
.l7-lday { font-size: 10px; color: #6b5232; white-space: nowrap; }
.l7-lsum {
  margin-top: 8px; padding: 8px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: rgba(255,209,102,.08);
  font-size: 12.5px; color: var(--txt);
}
.l7-lsum b { color: #ffd166; font-size: 14px; letter-spacing: 1px; }
@media (max-width: 360px) {
  .l7-lcards { gap: 4px; }
  .l7-lcard { padding: 9px 1px 4px; }
  .l7-lface { font-size: 17px; }
}

/* ---------------- 福利·开服目标 ---------------- */
.og-banner {
  padding: 12px; border-radius: 10px; text-align: center;
  border: 1px solid #b8946a; background: linear-gradient(180deg, #3a2a18, #241a0e);
  color: #ffe9c2; font-size: 15px; font-weight: 700; letter-spacing: 1px;
  box-shadow: inset 0 0 12px rgba(255, 209, 102, .12);
}
.og-banner b { color: #7ddc7d; }
.og-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.og-tab {
  padding: 8px 4px; border-radius: 8px; font-size: 12.5px; font-weight: 700;
  border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--txt);
}
.og-tab.on { border-color: #ffd166; color: #ffd166; background: rgba(255,209,102,.12); }
.og-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; }
.og-head-l { flex: 1; min-width: 0; }
.og-head-name { font-size: 13px; font-weight: 800; color: var(--txt); }
.og-bar {
  margin-top: 5px; height: 10px; border-radius: 5px; overflow: hidden;
  border: 1px solid #b8946a; background: rgba(0,0,0,.35);
}
.og-bar span { display: block; height: 100%; background: linear-gradient(90deg, #43a047, #7ddc7d); transition: width .3s; }
.og-head-sub { margin-top: 3px; font-size: 11px; color: var(--txt2, #9a8f7d); }
.og-head-r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.og-bonus { font-size: 11.5px; color: #ffd166; max-width: 180px; text-align: right; }
.og-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.og-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
}
.og-row.can { border-color: #66bb6a; background: rgba(102,187,106,.10); }
.og-row.done { opacity: .72; }
.og-txt { font-size: 13px; font-weight: 700; color: #ffd166; line-height: 1.5; }
.og-row.can .og-txt { color: #7ddc7d; }
.og-row.done .og-txt { color: var(--txt2, #9a8f7d); text-decoration: line-through; }
.og-prog i { font-style: normal; color: #ff8a65; }
.og-row.can .og-prog i, .og-row.done .og-prog i { color: #7ddc7d; }

/* ==================== 公测庆典（福利中心） ==================== */
.og-tabs.c3 { grid-template-columns: repeat(3, 1fr); }
.og-tabs.c5 { grid-template-columns: repeat(5, 1fr); gap: 5px; }
.og-tabs.c5 .og-tab { padding: 8px 2px; font-size: 12px; letter-spacing: -.2px; }
.og-tabs.c6 { grid-template-columns: repeat(6, 1fr); gap: 4px; }
.og-tabs.c6 .og-tab { padding: 8px 1px; font-size: 11px; letter-spacing: -.4px; white-space: nowrap; }
/* 充值豪礼：未达标档位右侧「还差 N 元」不折行 */
.ch-need { white-space: nowrap; font-size: 11.5px; }
/* 福利 · 提升礼包：7 个二级分类一行排（4 字标题，收窄字号与内距保证不换行） */
.og-tabs.c7 { grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 0; }
.og-tabs.c7 .og-tab { padding: 8px 1px; font-size: 10.5px; letter-spacing: -.5px; white-space: nowrap; }
.upg-pack-body { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }

.cb-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: 10px;
  border: 1px solid #b8946a; background: linear-gradient(180deg, #3a2a18, #241a0e);
  box-shadow: inset 0 0 12px rgba(255, 209, 102, .12);
}
.cb-head-l { min-width: 0; }
.cb-pt { font-size: 15px; font-weight: 800; color: #ffe9c2; letter-spacing: .5px; }
.cb-pt b { color: #ffd166; font-size: 17px; }
.cb-sub { margin-top: 4px; font-size: 12px; color: #cbb89a; line-height: 1.45; }
.cb-sub b { color: #7ddc7d; font-weight: 700; }
.cb-head-r { font-size: 26px; line-height: 1; }

.cb-sec { margin: 14px 0 0; font-size: 12px; font-weight: 700; color: #ffd166; letter-spacing: .5px; }
.cb-rw {
  display: block; margin-top: 3px; font-size: 12px; font-weight: 600;
  color: #d8c9a8; line-height: 1.45;
}
.og-row.can .cb-rw { color: #a9e3ae; }

/* 全民庆典 · 两张积分里程表：固定 3 列格子（2026-10-30 用户指定，原为一行一条的 .og-row） */
.qm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.qm-cell {
  display: flex; flex-direction: column; gap: 4px;
  padding: 9px 8px; border-radius: 11px;
  border: 1px solid var(--line, rgba(255,255,255,.08));
  background: rgba(255,255,255,.03);
}
.qm-cell.can { border-color: rgba(102,187,106,.55); background: rgba(102,187,106,.10); }
.qm-cell.done { opacity: .6; }
.qm-h { font-size: 12.5px; font-weight: 700; color: #ffd166; line-height: 1.35; }
.qm-cell.can .qm-h { color: #7ddc7d; }
.qm-cell.done .qm-h { color: var(--txt2, #9a8f7d); text-decoration: line-through; }
.qm-rw { font-size: 11.5px; font-weight: 600; color: #d8c9a8; line-height: 1.4; word-break: break-all; }
.qm-cell.can .qm-rw { color: #a9e3ae; }
.qm-act { margin-top: auto; padding-top: 3px; }
.qm-act .fd-mini { width: 100%; }
.qm-f { display: block; font-size: 11px; color: var(--txt2, #9a8f7d); line-height: 1.4; }

/* 折扣礼包 · 每档右侧价格（2026-10-30：未解锁 / 已买的档也要显示代币数） */
.dc-act {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
}
.dc-price { font-size: 12.5px; font-weight: 700; color: #ffd166; white-space: nowrap; }
.dc-price.lock { color: #cbb89a; font-weight: 600; }
.dc-price.off { color: var(--txt-faint, #7c7466); font-weight: 600; }
.dc-lock { font-size: 11px; color: var(--txt-faint, #7c7466); white-space: nowrap; }

/* 折扣礼包 · 累计购买奖励：6 档固定 3 列 × 2 行（格子本体复用 .dr-cell） */
.cb-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.cb-tiers .dr-cell { gap: 5px; padding: 9px 8px; }
.cb-tiers .dr-need2 { font-size: 12px; }
.cb-tr { font-size: 11.5px; color: #d8c9a8; line-height: 1.4; word-break: break-all; }
.cb-tiers .dr-cell.got .cb-tr { color: var(--txt-faint, #7c7466); }
.cb-tiers .btn-mini { width: 100%; }
.cb-tiers .dr-got, .cb-tiers .dr-lock { font-size: 11.5px; }

/* ==================== 每日充值（福利中心） ==================== */
.dr-tier {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin-bottom: 8px;
  background: var(--panel2, rgba(255,255,255,.04));
  border: 1px solid var(--line, rgba(255,255,255,.08)); border-radius: 12px;
}
.dr-need {
  flex: 0 0 76px; text-align: center;
  font-size: 12px; color: var(--txt2, #9a8f7d); line-height: 1.5;
}
.dr-need b { display: block; font-size: 16px; color: #ffd166; }
.dr-items { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.dr-act { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.dr-left { font-size: 12px; color: var(--txt2, #9a8f7d); }
.dr-left.on { color: #7ddc7d; font-weight: 700; }
.dr-total-title {
  margin: 14px 0 8px; font-size: 14px; font-weight: 700; color: #ffd166;
}
.dr-total-title i { font-style: normal; font-size: 12px; font-weight: 400; color: var(--txt2, #9a8f7d); }
.dr-totals {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px;
}
.dr-cell {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 10px; border-radius: 12px;
  background: var(--panel2, rgba(255,255,255,.04));
  border: 1px solid var(--line, rgba(255,255,255,.08));
}
.dr-cell.can { border-color: rgba(125, 220, 125, .5); }
.dr-cell.got { opacity: .55; }
.dr-need2 { font-size: 12px; font-weight: 700; color: #ffd166; }
.dr-cell .dr-items { flex-wrap: wrap; }
.dr-got { font-size: 12px; color: var(--txt2, #9a8f7d); }
.dr-lock { font-size: 12px; color: var(--txt2, #9a8f7d); }

/* ---------------- 福利 · 超值投资 ---------------- */
.iv-plan {
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line, rgba(255,255,255,.08));
  border-radius: 10px;
  background: var(--panel2, rgba(255,255,255,.04));
}
.iv-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.iv-name { font-size: 15px; font-weight: 700; color: #ffd166; }

/* 超值投资横幅（激活 XX 每日领 XX + ¥328 金色按钮） */
.iv-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 12px; padding: 13px 16px; border-radius: 12px;
  border: 1px solid rgba(255, 196, 87, .45);
  background:
    radial-gradient(140px 70px at 15% 35%, rgba(255, 200, 100, .16), transparent 70%),
    linear-gradient(135deg, #4a2408, #7c450f 55%, #3a1c05);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, .45), 0 2px 8px rgba(0, 0, 0, .3);
}
.iv-banner-txt {
  font-size: 15.5px; font-weight: 800; letter-spacing: .5px; line-height: 1.4;
  background: linear-gradient(180deg, #ffefb5, #f8c44e 65%, #d98f2b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
}
.iv-banner-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.iv-unlock { font-size: 11px; font-weight: 700; color: #b6ff9a; text-shadow: 0 1px 2px rgba(0, 0, 0, .65); }
/* 类名沿用 iv-buy328（历史命名），文案现为「N 代币」，价格可被后台改 */
.iv-buy328 {
  min-width: 86px; padding: 6px 12px; border-radius: 9px; cursor: pointer;
  white-space: nowrap;
  border: 1px solid #ffd77a;
  background: linear-gradient(180deg, #f5cd70, #cb8c2e 60%, #9a621a);
  color: #4a2a05; font-size: 13.5px; font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: .15s;
}
.iv-buy328:active { transform: translateY(1px); filter: brightness(.94); }
.iv-banner-done {
  padding: 7px 16px; border-radius: 9px;
  border: 1px solid rgba(125, 220, 125, .4);
  color: #7ddc7d; font-size: 13px; font-weight: 800;
  background: rgba(125, 220, 125, .08);
}

/* ---------------- 福利 · 终身返利 ---------------- */
.lb-name { display: block; font-size: 13px; font-weight: 700; color: #ffd166; line-height: 1.35; }
.lb-flag { display: block; margin-top: 3px; font-size: 11px; font-weight: 700; color: #7ddc7d; }
.lb-daily { flex: 1 0 100%; font-size: 11.5px; color: var(--txt2, #9a8f7d); }

/* ---------------- 提升中心 · 财神 ---------------- */
.cs-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* 套装三档：一档一行，比一整段大字好读 */
.cs-set { display: flex; flex-direction: column; gap: 7px; margin-top: 8px; }
.cs-set-row {
  padding: 8px 10px; border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .02);
}
.cs-set-row.on {
  border-color: rgba(232, 120, 64, .45);
  background: linear-gradient(135deg, rgba(232, 120, 64, .13), rgba(232, 120, 64, .02));
}
.cs-set-top { display: flex; align-items: center; gap: 7px; }
.cs-set-lv {
  flex: 0 0 auto; padding: 0 6px; border-radius: 5px;
  font-size: 10.5px; font-weight: 700; line-height: 16px;
  color: var(--txt-faint); border: 1px solid rgba(255, 255, 255, .1);
  font-variant-numeric: tabular-nums;
}
.cs-set-row.on .cs-set-lv { color: #e87840; border-color: rgba(232, 120, 64, .45); background: rgba(232, 120, 64, .12); }
.cs-set-nm { font-size: 12px; font-weight: 700; color: var(--txt-dim); }
.cs-set-row.on .cs-set-nm { color: #e87840; }
.cs-set-tag {
  margin-left: auto; flex: 0 0 auto; padding: 0 7px; border-radius: 999px;
  font-size: 10px; font-weight: 700; line-height: 16px;
  color: #e87840; border: 1px solid rgba(232, 120, 64, .5); background: rgba(232, 120, 64, .16);
}
.cs-set-d { margin-top: 4px; font-size: 11.5px; line-height: 1.65; color: var(--txt-dim); }
.cs-set-row.on .cs-set-d { color: var(--txt); }

/* ============================================================
   竞技（比武场 + 攻城战，2026-10-31）
   ============================================================ */
.ar-list { display: flex; flex-direction: column; gap: 12px; }
.ar-card {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 14px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--gold-dim);
  background: linear-gradient(135deg, rgba(217, 178, 106, .12), rgba(217, 178, 106, .02));
  transition: .15s;
}
.ar-card:hover { border-color: var(--gold); background: linear-gradient(135deg, rgba(217, 178, 106, .2), rgba(217, 178, 106, .04)); }
.ar-ico {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; font-size: 21px;
  border: 1px solid rgba(217, 178, 106, .3); background: rgba(217, 178, 106, .14);
}
.ar-txt { flex: 1; min-width: 0; }
.ar-t { font-size: 15px; font-weight: 700; color: var(--gold); }
.ar-s { margin-top: 5px; font-size: 11.5px; line-height: 1.5; color: var(--txt-dim); }
.ar-go { flex: 0 0 auto; font-size: 12px; color: var(--gold); opacity: .85; }
/* 比武场：橙红，和地图页右上角的「竞技」同色系；攻城战走默认金色 */
.ar-card.bw {
  border-color: rgba(255, 154, 92, .35);
  background: linear-gradient(135deg, rgba(255, 138, 76, .12), rgba(255, 138, 76, .02));
}
.ar-card.bw:hover { border-color: #ff9a5c; background: linear-gradient(135deg, rgba(255, 138, 76, .2), rgba(255, 138, 76, .04)); }
.ar-card.bw .ar-ico { color: #ff9a5c; border-color: rgba(255, 154, 92, .35); background: rgba(255, 138, 76, .14); }
.ar-card.bw .ar-t, .ar-card.bw .ar-go { color: #ff9a5c; }

/* ============================================================
   仙盟 / 攻城战（2026-10-31）
   ============================================================ */
.gd-tip {
  padding: 9px 12px; border-radius: 9px; margin: 10px 0; font-size: 12px;
  border: 1px solid var(--red-deep); background: rgba(224, 90, 74, .08); color: #f0b9a8;
}
.gd-create { display: flex; gap: 8px; margin: 10px 0; align-items: center; }
.gd-input {
  flex: 1; min-width: 0; padding: 9px 11px; border-radius: 9px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--txt);
  font-family: inherit; font-size: 13px;
}
.gd-input:focus { outline: none; border-color: var(--gold-dim); box-shadow: 0 0 0 2px var(--gold-glow); }
.gd-input::placeholder { color: var(--txt-faint); }
.gd-notice {
  padding: 10px 12px; margin: 10px 0; font-size: 12.5px; color: var(--txt-dim);
  border-left: 3px solid var(--gold-dim); border-radius: 0 9px 9px 0;
  background: rgba(217, 178, 106, .05); word-break: break-all;
}
.gd-siege-entry {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 14px; margin: 12px 0; border-radius: 11px;
  border: 1px solid var(--gold-dim);
  background: linear-gradient(135deg, rgba(217, 178, 106, .12), rgba(217, 178, 106, .02));
}
.gd-se-t { font-size: 13.5px; font-weight: 700; color: var(--gold); }
.gd-se-s { font-size: 11.5px; color: var(--txt-dim); margin-top: 3px; }
.gd-foot { display: flex; gap: 8px; margin: 14px 0 6px; }
.gd-danger { color: var(--red) !important; border-color: var(--red-deep) !important; }
.gd-macts { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; max-width: 118px; }
.gd-mbtn {
  font-family: inherit; font-size: 10.5px; padding: 5px 8px; border-radius: 7px;
  background: rgba(30, 37, 50, .9); border: 1px solid var(--line);
  color: var(--txt-dim); cursor: pointer; white-space: nowrap; transition: .15s;
}
.gd-mbtn:hover { border-color: var(--gold-dim); color: var(--gold); }
.gd-mbtn.danger:hover { border-color: var(--red); color: var(--red); }
.gd-me {
  font-style: normal; font-size: 10px; color: var(--gold); margin-left: 6px;
  border: 1px solid var(--gold-dim); border-radius: 5px; padding: 0 4px;
}
.gd-flags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 12px 0; }
.gd-flag {
  display: flex; flex-direction: column; gap: 5px; padding: 10px 11px;
  border: 1px solid var(--line); border-radius: 11px; background: var(--panel-2);
}
.gd-flag.mine { border-color: var(--gold-dim); box-shadow: inset 0 0 0 1px rgba(217, 178, 106, .15); }
.gd-flag-n { font-size: 12.5px; font-weight: 700; color: var(--txt); }
.gd-flag-own { font-size: 11px; color: var(--gold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-flag-own.none { color: var(--txt-faint); }
.gd-flag-dmg { font-size: 11px; color: var(--txt-faint); font-variant-numeric: tabular-nums; }
.gd-hit {
  margin-top: 2px; padding: 7px 0; border-radius: 8px; cursor: pointer;
  font-family: inherit; font-size: 12px;
  background: linear-gradient(180deg, #33202a, #1e1319);
  border: 1px solid #6d3a3a; color: #f0b9a8; transition: .15s;
}
.gd-hit.gold {
  background: linear-gradient(180deg, #3a2f16, #221a0c);
  border-color: var(--gold-dim); color: var(--gold);
}
.gd-hit:hover:not(:disabled) { box-shadow: 0 0 14px rgba(224, 90, 74, .28); }
.gd-hit:disabled { opacity: .4; cursor: not-allowed; }
.gd-statue {
  display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; margin: 12px 0;
  border: 1px solid var(--gold-dim); border-radius: 12px;
  background: linear-gradient(160deg, rgba(217, 178, 106, .1), rgba(21, 26, 36, .9));
}
.gd-st-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.gd-st-n { font-size: 13.5px; font-weight: 700; color: var(--txt); }
.gd-st-own { font-size: 12px; color: var(--gold); }
.gd-st-own.none { color: var(--txt-faint); }
.gd-st-meta { font-size: 11.5px; color: var(--txt-dim); font-variant-numeric: tabular-nums; }
.gd-board { display: flex; flex-direction: column; gap: 5px; margin: 12px 0; }
.gd-brow {
  display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center;
  padding: 8px 11px; border-radius: 9px; font-size: 12.5px;
  background: var(--panel-2); border: 1px solid var(--line-soft);
}
.gd-brow.mine { border-color: var(--gold-dim); }
.gd-bno { color: var(--txt-faint); font-variant-numeric: tabular-nums; }
.gd-bname { color: var(--txt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-bdmg { color: #f0a08a; font-variant-numeric: tabular-nums; }
.gd-win {
  padding: 10px 12px; margin: 10px 0; border-radius: 10px; font-size: 12.5px;
  border: 1px solid var(--gold-dim); background: rgba(217, 178, 106, .08); color: var(--gold);
}
.gd-win.none { border-color: var(--line); background: rgba(255, 255, 255, .02); color: var(--txt-dim); }
