/* =========================================================
   传奇永恒 · 样式
   ========================================================= */
:root {
  --bg: #141414;
  --bg2: #1b1b1b;
  --panel: rgba(30, 30, 30, 0.92);
  --panel-2: rgba(38, 38, 38, 0.94);
  --line: #303030;
  --line-2: #3f3f3f;
  --ice: #f0b45a;
  --ice-deep: #c07f2e;
  --gold: #ffc46b;
  --gold-deep: #a8792f;
  --txt: #e6e6e6;
  --dim: #9a9a9a;
  --red: #ff6b6b;
  --green: #74d99a;
  --purple: #b98cff;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #0c0c0c;
  color: var(--txt);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  overscroll-behavior: none;
}

body {
  display: flex;
  justify-content: center;
}

.hidden { display: none !important; }

#app {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 12% -10%, rgba(196, 138, 58, 0.20), transparent 62%),
    radial-gradient(90% 60% at 105% 105%, rgba(150, 96, 36, 0.14), transparent 62%),
    linear-gradient(180deg, #1a1a1a 0%, #141414 55%, #101010 100%);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.9);
}

#app::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 70% 15%, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1px 1px at 85% 60%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 35% 80%, rgba(255, 255, 255, 0.22), transparent);
  opacity: 0.7;
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
}

/* ================= 启动页 ================= */
.splash {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #070b12;
  color: var(--dim);
  font-size: 13px;
  letter-spacing: 0.2em;
}

/* ================= 品牌 ================= */
.brand {
  text-align: center;
  padding: 24px 24px 10px;
}

.brand-logo {
  display: block;
  width: 230px;
  max-width: 78%;
  height: auto;
  margin: 0 auto 14px;
  border-radius: 10px;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.5);
}

.brand-sigil {
  width: 84px;
  height: 84px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  color: var(--ice);
  border: 1px solid rgba(127, 212, 255, 0.35);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, rgba(127, 212, 255, 0.18), transparent 70%);
  box-shadow: 0 0 30px rgba(127, 212, 255, 0.25), inset 0 0 24px rgba(127, 212, 255, 0.12);
  animation: sigilPulse 4s ease-in-out infinite;
}

@keyframes sigilPulse {
  0%, 100% { box-shadow: 0 0 22px rgba(127, 212, 255, 0.2), inset 0 0 18px rgba(127, 212, 255, 0.1); }
  50% { box-shadow: 0 0 40px rgba(127, 212, 255, 0.4), inset 0 0 26px rgba(127, 212, 255, 0.18); }
}

.brand h1 {
  margin: 0;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: 34px;
  letter-spacing: 0.18em;
  color: #eaf5ff;
  text-shadow: 0 0 24px rgba(127, 212, 255, 0.35);
}

.brand-sub {
  margin: 6px 0 0;
  font-size: 10px;
  letter-spacing: 0.5em;
  color: var(--gold);
  opacity: 0.8;
}

.brand-desc {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.08em;
}

.brand.small { padding-top: 40px; }
.brand.small h1 { font-size: 26px; }

/* ================= 登录 ================= */
.login-screen {
  overflow-y: auto;
  justify-content: center;
  padding-bottom: 24px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.login-panel {
  margin: 8px 20px 24px;
  padding: 18px;
}

.login-foot {
  margin: 0 20px 8px;
  text-align: center;
  font-size: 10px;
  line-height: 1.7;
  color: var(--dim);
  opacity: 0.7;
  letter-spacing: 0.02em;
}

/* 登录页 · 免责声明入口 */
.login-legal {
  display: block;
  width: fit-content;
  margin: 0 auto 10px;
  padding: 5px 16px;
  border: 1px solid rgba(196, 138, 58, 0.5);
  border-radius: 999px;
  background: rgba(196, 138, 58, 0.1);
  color: var(--gold);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.login-legal:hover,
.login-legal:active {
  color: #fff2d8;
  border-color: var(--gold);
  background: rgba(196, 138, 58, 0.22);
}

/* 登录页 · ICP 备案号（暂隐藏，需要显示时把 display 改为 block） */
.login-beian {
  display: none;
  margin: 0 0 12px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.03em;
}
.login-beian a {
  color: var(--dim);
  opacity: 0.6;
  text-decoration: none;
}
.login-beian a:hover {
  color: var(--gold);
  opacity: 1;
}

.seg {
  display: flex;
  gap: 6px;
  padding: 4px;
  margin-bottom: 16px;
  background: rgba(6, 12, 20, 0.8);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.seg-btn {
  flex: 1;
  padding: 9px 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--dim);
  font-size: 13px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: 0.2s;
}

.seg-btn.active {
  color: #06121d;
  background: linear-gradient(135deg, #2f7fae, #7fd4ff);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(60, 160, 220, 0.3);
}

.field {
  display: block;
  margin-bottom: 12px;
}

.field span {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--dim);
}

.field input,
.inline-form input {
  width: 100%;
  padding: 12px 13px;
  font-size: 16px;
  color: var(--txt);
  background: rgba(5, 10, 17, 0.9);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  transition: 0.2s;
}

.field input:focus,
.inline-form input:focus {
  border-color: rgba(127, 212, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(127, 212, 255, 0.1);
}

.field input::placeholder,
.inline-form input::placeholder { color: #4a5a70; }

/* 注册验证题 */
#field-challenge > span:first-child { display: flex; align-items: center; justify-content: space-between; }
.chal-q { display: block; margin-bottom: 6px; font-size: 15px; letter-spacing: 0.05em; color: var(--gold, #ffcf7a); }
.link-btn { border: 0; background: none; padding: 0; color: #7fd4ff; font-size: 11px; cursor: pointer; letter-spacing: 0.05em; }
.link-btn:hover { text-decoration: underline; }

.form-err {
  min-height: 16px;
  margin: 4px 0 10px;
  font-size: 12px;
  color: var(--red);
}

.login-hint {
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.7;
  color: #5f7189;
  text-align: center;
}

/* ================= 按钮 ================= */
.btn {
  display: block;
  width: 100%;
  padding: 13px;
  border: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: transform 0.1s, filter 0.2s;
  font-family: inherit;
}

.btn:active { transform: scale(0.975); }
.btn:disabled { opacity: 0.45; pointer-events: none; }

.btn.primary {
  color: #05121d;
  background: linear-gradient(135deg, #2f7fae 0%, #7fd4ff 60%, #bdeaff 100%);
  box-shadow: 0 8px 24px rgba(60, 160, 220, 0.28);
}

.btn.gold {
  color: #1d1204;
  background: linear-gradient(135deg, #a8792f, #e9b96b 60%, #ffe0a6);
  box-shadow: 0 8px 24px rgba(220, 170, 90, 0.22);
}

.btn.danger {
  color: #ffdada;
  background: linear-gradient(135deg, rgba(120, 30, 40, 0.9), rgba(70, 18, 28, 0.9));
  border: 1px solid rgba(255, 107, 107, 0.45);
}

.btn.ghost {
  color: var(--ice);
  background: rgba(14, 26, 42, 0.7);
  border: 1px solid rgba(127, 212, 255, 0.3);
}

.btn.big {
  padding: 16px;
  font-size: 17px;
  letter-spacing: 0.2em;
}

.btn.small {
  width: auto;
  padding: 9px 16px;
  font-size: 12px;
}

/* ================= 职业选择 ================= */
.class-screen { overflow-y: auto; }

.class-list {
  padding: 8px 18px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.class-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(19, 30, 46, 0.95), rgba(9, 15, 25, 0.95));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s, border-color 0.2s;
  cursor: pointer;
}

.class-card:active { transform: scale(0.985); }
.class-card:hover { border-color: var(--c); }

.cc-glow {
  position: absolute;
  top: -40px;
  right: -30px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--c);
  opacity: 0.16;
  filter: blur(30px);
}

.cc-rune {
  font-size: 34px;
  color: var(--c);
  text-shadow: 0 0 18px var(--c);
}

.cc-name {
  margin-top: 4px;
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 22px;
  letter-spacing: 0.14em;
  color: #f0f8ff;
}

.cc-desc {
  margin: 6px 0 8px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--dim);
}

.cc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.cc-tags span {
  padding: 2px 8px;
  font-size: 10px;
  border-radius: 20px;
  color: var(--c);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.cc-stats div {
  padding: 7px 8px;
  border-radius: 9px;
  background: rgba(5, 10, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.cc-stats span { display: block; font-size: 9px; color: var(--dim); }
.cc-stats b { display: block; font-size: 13px; color: #e8f4ff; }
.cc-stats i { display: block; font-size: 9px; font-style: normal; color: #5f7189; }

.cc-go {
  padding: 10px 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: #06121d;
  font-weight: 700;
  background: linear-gradient(135deg, var(--c), rgba(255, 255, 255, 0.85));
  border-radius: 9px;
  opacity: 0.9;
}

/* ================= 主界面 ================= */
.main-screen {
  display: flex;
  flex-direction: column;
}

.topbar {
  position: relative;
  z-index: 3;
  padding: 10px 14px 0;
  background: linear-gradient(180deg, rgba(10, 17, 28, 0.98), rgba(10, 17, 28, 0.88));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.top-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--c, var(--ice));
  border: 1px solid var(--c, var(--ice));
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, rgba(127, 212, 255, 0.14), transparent 70%);
  box-shadow: 0 0 16px rgba(127, 212, 255, 0.15);
}

/* 头像可点击：打开「角色属性」面板 */
.avatar.clickable {
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.avatar.clickable:hover { box-shadow: 0 0 20px rgba(127, 212, 255, 0.35); }
.avatar.clickable:active { transform: scale(0.94); }

/* 角色属性面板：第一行头像 / 名称 / 等级 / 职业 / 战力，第二行起属性网格 */
.hero-info-panel {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--c, var(--ice));
  background:
    radial-gradient(100% 120% at 100% 0%, rgba(127, 212, 255, 0.08), transparent 60%),
    linear-gradient(160deg, rgba(18, 29, 45, 0.96), rgba(9, 15, 24, 0.96));
}
.hi-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.hi-avatar {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  color: var(--c, var(--ice));
  border: 1.5px solid var(--c, var(--ice));
  border-radius: 50%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}
.hi-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hi-name {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  color: #eaf4ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hi-name span { margin-left: 5px; font-size: 10.5px; color: var(--gold); font-weight: 500; }
.hi-cls {
  flex: 0 0 auto;
  padding: 1px 5px;
  font-size: 10px;
  color: var(--c, var(--ice));
  border: 1px solid var(--c, var(--ice));
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0.9;
}
.hi-power { margin-left: auto; text-align: right; line-height: 1.25; }
.hi-power span { display: block; font-size: 9px; color: var(--dim); letter-spacing: 0.12em; }
.hi-power b { font-size: 16px; color: #ffd86b; font-variant-numeric: tabular-nums; }

.idbox { flex: 1; min-width: 0; }

.idline {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
}

.idline b {
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #eef7ff;
  letter-spacing: 0.04em;
}

.idline .lv {
  padding: 1px 6px;
  font-size: 10px;
  border-radius: 20px;
  color: var(--gold);
  background: rgba(233, 185, 107, 0.1);
  border: 1px solid rgba(233, 185, 107, 0.25);
}

.cls-tag { font-size: 11px; letter-spacing: 0.1em; }

.power-line {
  margin-top: 3px;
  font-size: 10px;
  color: var(--dim);
}

.power-line b { color: var(--ice); font-size: 12px; }
.online-mini { color: #54657b; }

.card-tag {
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 9px;
  letter-spacing: 0.06em;
  border-radius: 5px;
  color: #ffdca8;
  background: rgba(255, 196, 107, 0.14);
  border: 1px solid rgba(255, 196, 107, 0.38);
}

.top-row { position: relative; }
.ver-tag {
  position: absolute;
  left: 50%;
  top: 3px;
  transform: translateX(-50%);
  font-size: 10.5px;
  letter-spacing: .6px;
  color: #74849a;
  font-variant-numeric: tabular-nums;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid rgba(120, 150, 190, .22);
  background: rgba(14, 24, 38, .45);
  pointer-events: none;
}

/* 顶栏右上角：永恒挂机精灵徽章 + 资源列 */
.right-stack {
  margin-left: auto;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.ver-tag.sprite-entry {
  position: static;
  transform: none;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 2px 10px;
  border-radius: 7px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.35;
  color: #ffe6ad;
  background: linear-gradient(180deg, rgba(74, 52, 16, .92), rgba(28, 20, 8, .94));
  border: 1px solid rgba(255, 205, 110, .9);
  box-shadow: 0 0 9px rgba(255, 196, 96, .28), inset 0 0 8px rgba(255, 206, 110, .12);
  text-shadow: 0 0 9px rgba(255, 196, 96, .5);
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
}
.ver-tag.sprite-entry .ver-no {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  color: #ffcf7a;
  font-variant-numeric: tabular-nums;
}
.ver-tag.sprite-entry:active {
  color: #fff2c9;
  background: linear-gradient(180deg, rgba(96, 68, 22, .95), rgba(40, 28, 10, .95));
}

.res-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 10.5px;
  color: #c9d9ea;
  font-variant-numeric: tabular-nums;
}

.res-col span:nth-child(1) { color: #9fd8ff; }
.res-col span:nth-child(2) { color: #f1d191; }
.res-col span:nth-child(3) { color: #cfb2ff; }

.bar {
  position: relative;
  height: 11px;
  border-radius: 7px;
  background: #0a1420;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: 7px;
  transition: width 0.35s ease;
  background: linear-gradient(90deg, #1d6f9b, #7fd4ff);
}

.bar b {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8.5px;
  font-weight: 500;
  color: #eaf6ff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  letter-spacing: 0.04em;
}

.exp-line {
  height: 14px;
  margin: 7px -14px 0;
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(233, 185, 107, 0.16);
  position: relative;
  overflow: hidden;
}

.exp-line i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #8a6420, #e9b96b);
  transition: width 0.35s ease;
  box-shadow: 0 0 8px rgba(233, 185, 107, 0.7);
}

.exp-line b {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8.5px;
  font-weight: 500;
  color: #f4e3bc;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 2;
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px 22px;
  -webkit-overflow-scrolling: touch;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.page::-webkit-scrollbar,
.sheet-body::-webkit-scrollbar,
.log::-webkit-scrollbar { width: 0; height: 0; }

/* ================= 顶部导航（位于经验条下方） ================= */
.tabs {
  position: relative;
  z-index: 5;
  display: flex;
  padding: 4px 6px;
  background: rgba(7, 12, 20, 0.96);
  border-bottom: 1px solid var(--line);
}

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7px 0 6px;
  border: 0;
  background: transparent;
  color: #5f7189;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.2s;
  font-family: inherit;
}

/* 顶部导航配色：五个页签各用一种主色 */
.tab[data-tab="battle"] { color: #ffb066; }
.tab[data-tab="profile"] { color: #9fd8ff; }
.tab[data-tab="market"] { color: #c9a4ff; }
.tab[data-tab="journey"] { color: #8fe3c3; }
.tab[data-tab="menu"] { color: #f5d08a; }
.tab.active {
  filter: brightness(1.3);
  text-shadow: 0 0 10px currentColor;
  transform: translateY(-1px);
}

/* ================= 战斗 ================= */
.zone-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.zone-bar.has-bg {
  position: relative;
  min-height: 92px;
  padding: 0 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.zone-bar.has-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 9, 15, 0.42), rgba(5, 9, 15, 0.86));
}

.zone-bar.has-bg > * { position: relative; z-index: 1; }

.zone-bar.has-bg .zone-title strong {
  font-size: 17px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.zone-bar.has-bg .zone-title span {
  color: #c3d6ea;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.zone-nav {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(16, 25, 40, 0.9);
  color: var(--ice);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.zone-nav:active { transform: scale(0.94); }

.zone-title { flex: 1; text-align: center; }

.zone-title strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: #eaf5ff;
}

.zone-title span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.05em;
}

.wave-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
  justify-content: center;
}

.wave-dot {
  flex: 0 0 auto;
  min-width: 64px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(11, 19, 31, 0.9);
  color: #6a7c93;
  font-size: 10.5px;
  cursor: pointer;
  transition: 0.15s;
  font-family: inherit;
}

.wave-dot.on {
  color: #04141f;
  font-weight: 700;
  background: linear-gradient(160deg, #4fa9d6, #a5e2ff);
  border-color: rgba(127, 212, 255, 0.7);
  box-shadow: 0 0 12px rgba(127, 212, 255, 0.35);
}

.wave-dot.boss { color: #c99a52; }
.wave-dot.boss.on { color: #241403; background: linear-gradient(160deg, #b48338, #ffd58e); }
.wave-dot.boss::after { content: ""; }

.hero-hp {
  margin-bottom: 10px;
  padding: 9px 12px 10px;
  border-radius: 12px;
  border: 1px solid rgba(127, 212, 255, 0.22);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(90, 190, 150, 0.14), transparent 60%),
    linear-gradient(155deg, rgba(18, 34, 40, 0.95), rgba(8, 15, 21, 0.95));
}

.hh-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 11px;
}

.hh-head strong { color: #dff2ff; letter-spacing: 0.03em; }
.hh-head span { color: #86a3bb; font-size: 9.5px; }

.hero-bar { height: 15px; }
.hero-bar i { background: linear-gradient(90deg, #2c8a63, #7cf0b0); }
.hero-hp.low .hero-bar i {
  background: linear-gradient(90deg, #8c2f2f, #ff7a5c);
  animation: hpPulse 0.9s ease-in-out infinite;
}

@keyframes hpPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.62; }
}

.foe-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(110% 100% at 0% 0%, rgba(80, 150, 200, 0.14), transparent 60%),
    linear-gradient(155deg, rgba(20, 32, 49, 0.95), rgba(9, 15, 24, 0.95));
  overflow: hidden;
}

.foe-card.boss {
  border-color: rgba(233, 185, 107, 0.45);
  background:
    radial-gradient(110% 100% at 0% 0%, rgba(220, 140, 70, 0.18), transparent 60%),
    linear-gradient(155deg, rgba(38, 27, 22, 0.95), rgba(14, 10, 12, 0.95));
  box-shadow: 0 0 26px rgba(233, 185, 107, 0.12);
}

/* 同一波位重新刷出的敌人：淡入 + 短暂「新一波」角标，
   与"残血首领突然回满"在视觉上区分开 */
.foe-card.fresh {
  animation: foeSpawn 0.42s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes foeSpawn {
  0% { opacity: 0; transform: translateY(7px) scale(0.985); }
  100% { opacity: 1; transform: none; }
}
.foe-fresh {
  position: absolute;
  top: 5px;
  right: 8px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.5px;
  color: #141414;
  background: linear-gradient(120deg, #ffd88a, #e9b96b);
  pointer-events: none;
  animation: freshFade 1.6s ease-out forwards;
}
@keyframes freshFade {
  0% { opacity: 0; transform: scale(0.7); }
  18% { opacity: 1; transform: scale(1); }
  70% { opacity: 1; }
  100% { opacity: 0; }
}

/* 多怪网格 */
.foe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.foe-grid .foe-card {
  padding: 8px 10px;
  gap: 8px;
  border-radius: 10px;
}
.foe-grid .foe-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  font-size: 14px;
  border-radius: 6px;
}
.foe-grid .foe-info { min-width: 0; flex: 1; }
.foe-grid .foe-name { font-size: 10px; gap: 4px; }
.foe-grid .foe-name span { font-size: 8.5px; }
.foe-grid .foe-name .boss-tag { font-size: 8px; padding: 0 4px; }
.foe-grid .foe-bar { height: 12px; }
.foe-grid .foe-bar b { font-size: 10px; font-weight: 600; }
.foe-grid .foe-card.boss .foe-bar { height: 16px; }
.foe-grid .foe-card.boss .foe-bar b { font-size: 12px; }
.foe-grid .boss { grid-column: 1 / -1; }

.foe-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #7a8ea5;
  margin: 6px 2px 4px;
}
.foe-count { color: #b9cde0; }

.squad-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 2px 2px;
}
.squad-label {
  font-size: 10px;
  color: #7a8ea5;
  letter-spacing: 0.05em;
}

.salvage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(12, 21, 33, 0.75);
  font-size: 10px;
  color: #7a8ea5;
}
.salvage-bar b { color: #8fd8b0; font-weight: 500; }

.sv-panel { padding: 2px 0 12px; }

.sv-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 600;
  color: #eaf6ff;
  letter-spacing: 0.03em;
}
.sv-icon { color: #6ed6a0; font-size: 16px; }

.sv-desc {
  margin: 8px 0 14px;
  font-size: 11px;
  line-height: 1.7;
  color: #8fa4ba;
}

.sv-list { display: flex; flex-direction: column; gap: 8px; }

/* 套装选择：每个套装的自动分解开关互相独立 */
.sv-sets { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.sv-set {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(12, 20, 32, 0.9);
  color: #8fa4ba;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  transition: 0.15s;
}
.sv-set.on {
  border-color: rgba(127, 212, 255, 0.5);
  background: rgba(24, 52, 74, 0.9);
  color: #cfeeff;
}
.bag-salvage .sv-sets { margin-bottom: 8px; }

.sv-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(18, 30, 46, 0.9), rgba(9, 15, 24, 0.9));
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: 0.15s;
}
.sv-row.on {
  border-color: rgba(110, 214, 160, 0.42);
  background: linear-gradient(155deg, rgba(20, 44, 36, 0.9), rgba(9, 20, 18, 0.9));
}

.sv-check {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.3);
  color: #04141f;
  font-size: 12px;
  font-weight: 700;
}
.sv-row.on .sv-check {
  background: linear-gradient(160deg, #4fbf8a, #9dffcb);
  border-color: rgba(110, 214, 160, 0.8);
}

/* 未勾选行的名称原本继承 button 默认黑色，改成明亮色提升可读性 */
.sv-name { flex: 1; text-align: left; font-weight: 600; color: #d5e6f7; }
/* 勾选后的文字更亮眼：高亮名称与勾选符号 */
.sv-row.on .sv-name {
  color: #d8ffe9;
  text-shadow: 0 0 10px rgba(110, 214, 160, 0.45), 0 0 3px rgba(110, 214, 160, 0.35);
}
.sv-row.on .sv-check {
  color: #06251a;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 12px rgba(110, 214, 160, 0.4);
}

.sv-tag {
  font-size: 9.5px;
  color: #a9c1d8;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
}
.sv-row.on .sv-tag { color: #9dffcb; background: rgba(110, 214, 160, 0.12); }

.sv-note {
  margin: 14px 0 0;
  font-size: 10px;
  line-height: 1.7;
  color: #6d8199;
}

.foe-icon {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.foe-info { flex: 1; min-width: 0; }

.foe-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
  color: #eef8ff;
  letter-spacing: 0.04em;
}

.foe-name span { font-size: 10px; color: var(--dim); font-weight: 400; }

.boss-tag {
  padding: 1px 6px;
  font-size: 9px;
  font-style: normal;
  border-radius: 4px;
  color: #241403;
  background: linear-gradient(135deg, #c9963f, #ffd994);
}

.boss-tag.zerk {
  color: #ffe3e8;
  background: linear-gradient(135deg, #8f1f34, #ff5f7e);
}

.foe-card.zerk {
  border-color: rgba(255, 95, 126, 0.55);
  background:
    radial-gradient(110% 100% at 0% 0%, rgba(255, 60, 95, 0.22), transparent 60%),
    linear-gradient(155deg, rgba(45, 16, 24, 0.96), rgba(16, 8, 12, 0.96));
  box-shadow: 0 0 28px rgba(255, 95, 126, 0.16);
}

.foe-bar { margin: 8px 0 5px; height: 13px; }
.foe-bar i {
  background: linear-gradient(90deg, #8c2f2f, #ff7a5c 60%, #ffb37a);
  /* 血条现在完全由服务端结算值驱动（每 500ms 一帧），加个短过渡让掉血更顺 */
  transition: width 0.28s linear;
}

.foe-meta { font-size: 10px; color: #6f8199; letter-spacing: 0.04em; }

.mini-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.mini-stats div {
  padding: 8px 4px;
  text-align: center;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.mini-stats span { display: block; font-size: 9px; color: var(--dim); }
.mini-stats b { display: block; margin-top: 2px; font-size: 12px; color: #dcecfb; }

.log {
  height: 172px;
  margin-top: 10px;
  padding: 10px 11px;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(4, 8, 14, 0.92);
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 10.5px;
  line-height: 1.65;
  color: #8ea3bb;
  -webkit-overflow-scrolling: touch;
}

.log-line { word-break: break-all; }
.log-line.good { color: #8fe0c0; }
.log-line.bad { color: #ff8a8a; }
.log-line.crit { color: #ffd166; }
.log-line.dim { color: #667a92; }

.battle-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.battle-actions .btn { flex: 1; }

.switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--dim);
  white-space: nowrap;
  padding: 8px 4px;
}

.switch input {
  width: 18px;
  height: 18px;
  accent-color: #4fa9d6;
}

.glog-box {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(12, 19, 30, 0.6);
}

.glog-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 0.24em;
  color: #4f6178;
  margin-bottom: 5px;
  cursor: pointer;
}

.glog-title .glog-more {
  letter-spacing: 0.06em;
  color: #6f86a3;
  font-size: 9px;
}

.glog-title:active { opacity: 0.7; }

/* ================= 全服动态 · 世界聊天 ================= */
.wl-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: rgba(8, 13, 21, 0.82);
  border: 1px solid var(--line);
}

.wl-tab {
  flex: 1;
  padding: 8px 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.14em;
  cursor: pointer;
}

.wl-tab.on {
  color: #071019;
  background: linear-gradient(135deg, #2f7fae, #7fd4ff);
  font-weight: 700;
}

.wl-hint {
  font-size: 10px;
  color: #6b7d92;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.wl-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 180px;
  padding-bottom: 8px;
}

.wl-list.chat { min-height: 260px; }

/* 全服动态翻页 */
.wl-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 0 2px;
}
.wl-pager span {
  font-size: 10.5px;
  color: #6b7d92;
  letter-spacing: 0.04em;
}
.wl-pager .mini-btn { min-width: 64px; }

.wl-line {
  display: flex;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 11.5px;
  line-height: 1.6;
  color: #9fb2c7;
}

.wl-line i {
  flex: 0 0 auto;
  font-style: normal;
  color: #5d718c;
  font-size: 10.5px;
  padding-top: 1px;
}

.wl-line span { flex: 1; word-break: break-all; }

.wl-chat {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 2px 8px;
  padding: 7px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.045);
}

.wl-chat i {
  grid-row: 1 / span 2;
  font-style: normal;
  font-size: 10.5px;
  color: #5d718c;
  padding-top: 2px;
}

.wl-chat b {
  font-size: 11.5px;
  color: #ffc46b;
  letter-spacing: 0.04em;
}

.wl-chat b em {
  font-style: normal;
  font-size: 9.5px;
  color: #6f86a3;
  margin-left: 6px;
}

.wl-chat span {
  font-size: 12px;
  line-height: 1.55;
  color: #cfe0f2;
  word-break: break-all;
}

.wl-empty {
  padding: 26px 10px;
  text-align: center;
  font-size: 11px;
  color: #5d718c;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.wl-send {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.wl-send input {
  flex: 1;
  min-width: 0;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: rgba(8, 13, 21, 0.9);
  color: var(--txt);
  font-size: 12px;
  outline: none;
}

.wl-send input:focus { border-color: rgba(127, 212, 255, 0.45); }

.glog-line {
  font-size: 10px;
  line-height: 1.7;
  color: #7d90a7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ================= 背包 ================= */
.hero-card {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--c, var(--ice));
  background:
    radial-gradient(100% 120% at 100% 0%, rgba(127, 212, 255, 0.08), transparent 60%),
    linear-gradient(160deg, rgba(18, 29, 45, 0.96), rgba(9, 15, 24, 0.96));
}

/* ===== 称号 ===== */
.title-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}
.title-badge {
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  background: rgba(12, 20, 32, 0.7);
  opacity: 0.55;
}
.title-badge.on {
  opacity: 1;
  border-style: solid;
  border-color: var(--tc, #ffd479);
  background: linear-gradient(160deg, rgba(20, 32, 48, 0.96), rgba(10, 17, 27, 0.96));
  box-shadow: 0 0 12px rgba(255, 212, 121, 0.18);
}
.title-badge b {
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--tc, #ffd479);
}
.title-badge span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: #7d8fa4;
}
.title-badge em {
  display: block;
  margin-top: 5px;
  font-style: normal;
  font-size: 10.5px;
  color: #cfe1f2;
}
.title-badge.on em { color: var(--tc, #ffd479); }
.title-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 10px 0 4px; }
.title-pager span { font-size: 12px; color: #9fb0c6; }
.title-pager .btn[disabled] { opacity: .4; }

.hero-head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.hero-avatar {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--c, var(--ice));
  border: 1px solid var(--c, var(--ice));
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
}

.hero-id { flex: 1; min-width: 0; }

.hero-name {
  font-size: 16px;
  font-weight: 700;
  color: #f0f8ff;
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.hero-name span { font-size: 10px; color: var(--gold); font-weight: 500; }
.hero-cls { margin-top: 2px; font-size: 10px; color: var(--dim); line-height: 1.5; }

.hero-power { text-align: right; }
.hero-power span { display: block; font-size: 9px; color: var(--dim); letter-spacing: 0.16em; }
.hero-power b { font-size: 17px; color: var(--ice); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.stat-grid div {
  padding: 7px 9px;
  border-radius: 9px;
  background: rgba(5, 10, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.stat-grid span { display: block; font-size: 9px; color: var(--dim); }
.stat-grid b { display: block; margin-top: 2px; font-size: 12px; color: #dcedfd; }

.sec-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 18px 2px 9px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #a9c4dd;
}

.sec-title span { font-size: 10px; letter-spacing: 0.04em; color: #5f7189; }

.equip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.equip-slot {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-2);
  background: var(--panel);
  min-height: 92px;
}

.equip-slot.filled { border-left-color: var(--q); }

.es-head {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #667a92;
}

.es-head span { font-size: 13px; }

.es-name {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--q, #cfe0f2);
}

.es-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 5px;
}

.es-stats span,
.ir-stats span {
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 9px;
  color: #a8bdd4;
  background: rgba(255, 255, 255, 0.045);
  white-space: nowrap;
}

.es-btns, .ir-btns, .rr-btns, .rs-btns, .gc-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

/* 强化消耗提示行（装备栏位按钮下方） */
.es-cost {
  margin-top: 5px;
  font-size: 9px;
  color: #8fa3ba;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.es-empty {
  margin-top: 18px;
  text-align: center;
  font-size: 11px;
  color: #3d4d63;
  letter-spacing: 0.2em;
}

.mini-btn {
  padding: 5px 8px;
  border-radius: 7px;
  border: 1px solid var(--line-2);
  background: rgba(24, 37, 55, 0.9);
  color: #cfe0f2;
  font-size: 10px;
  cursor: pointer;
  font-family: inherit;
  transition: 0.15s;
  white-space: nowrap;
}

.mini-btn:active { transform: scale(0.95); }
.mini-btn:disabled { opacity: 0.4; pointer-events: none; }

/* 洗炼属性：神话紫 / 洪荒金，独立一行，与普通属性区分开 */
.affix-line {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 9.5px;
  color: #e7d6ff;
  background: linear-gradient(90deg, rgba(150, 90, 255, 0.22), rgba(150, 90, 255, 0.04));
  border: 1px solid rgba(160, 110, 255, 0.35);
  white-space: nowrap;
}
.affix-line em {
  font-style: normal;
  font-size: 8.5px;
  letter-spacing: 0.08em;
  padding: 0 4px;
  border-radius: 3px;
  color: #d9c2ff;
  background: rgba(150, 90, 255, 0.28);
}
/* 洪荒品质金框（装备卡片带 data-q） */
[data-q="5"] .affix-line {
  color: #ffe9b8;
  background: linear-gradient(90deg, rgba(255, 170, 60, 0.24), rgba(255, 170, 60, 0.04));
  border-color: rgba(255, 180, 70, 0.45);
}
[data-q="5"] .affix-line em { color: #ffe0a0; background: rgba(255, 170, 60, 0.3); }
/* 洗炼按钮与洪荒属性同一行右侧 */
.affix-line .mini-btn { margin-left: auto; flex: none; padding: 2px 8px; font-size: 9px; }
/* 未洗炼的洪荒装备：属性行降亮度，提示需要洗炼 */
.affix-line.empty { opacity: 0.55; letter-spacing: 0.04em; }

.mini-btn.reforge {
  color: #efdcff;
  border-color: rgba(170, 115, 255, 0.55);
  background: linear-gradient(180deg, rgba(96, 54, 160, 0.75), rgba(58, 32, 104, 0.85));
}
[data-q="5"] .mini-btn.reforge {
  color: #ffeccb;
  border-color: rgba(255, 185, 80, 0.55);
  background: linear-gradient(180deg, rgba(140, 92, 24, 0.8), rgba(84, 54, 12, 0.9));
}

.ir-reforge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px dashed rgba(160, 110, 255, 0.35);
  background: rgba(90, 60, 150, 0.12);
}
.ir-reforge span { font-size: 9.5px; color: #a99bc4; line-height: 1.5; }

.mini-btn.gold {
  color: #1d1204;
  border-color: #d8a956;
  background: linear-gradient(135deg, #c6984b, #f0cf94);
  font-weight: 700;
}

.mini-btn.danger {
  color: #ffb3b3;
  border-color: rgba(255, 107, 107, 0.35);
  background: rgba(90, 26, 34, 0.5);
}

.mini-btn.done {
  color: #5f7189;
  background: rgba(30, 42, 58, 0.5);
  border-color: transparent;
}

/* 出生印记：不可分解，以静态标签占位代替分解按钮 */
.mini-btn.birth-tag {
  color: #8fa4ba;
  border-color: rgba(143, 164, 186, 0.28);
  background: rgba(22, 33, 48, 0.7);
  cursor: default;
  pointer-events: none;
}
.mini-btn.birth-tag::before { content: '◇ '; color: #7f93a9; }

/* 商会：挂售 / 货架行 */
.mk-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  margin-bottom: 7px;
  border-radius: 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--q, var(--line-2));
  background: var(--panel);
}

.mk-main { flex: 1; min-width: 0; }
.mk-name { font-size: 12.5px; color: #e7f2ff; font-weight: 600; }
.mk-name em { font-style: normal; color: #ffd479; font-size: 10.5px; margin-left: 3px; }
.mk-sub { font-size: 10.5px; color: var(--dim); margin-top: 2px; }
.mk-seller { font-size: 10px; color: #8fa4ba; margin-top: 2px; }
.mk-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.mk-side b { color: #ffd479; font-size: 13px; }
.mk-side em { font-style: normal; font-size: 9.5px; color: var(--dim); }
.mini-btn.buy {
  color: #1d1204;
  border-color: #7fe0a8;
  background: linear-gradient(135deg, #58b985, #a6ecc4);
  font-weight: 700;
}

.bag-list { display: flex; flex-direction: column; gap: 7px; }

.icard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.icard {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid var(--q, #5c7fa3);
  background: linear-gradient(155deg, rgba(20, 32, 47, 0.92), rgba(9, 15, 24, 0.95));
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.12s, border-color 0.15s;
}
.icard:active { transform: scale(0.97); }

.icard-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 17px;
  color: var(--q, #9fc3e0);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.icard-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 26px;
}

.icard-name {
  font-size: 11px;
  font-weight: 600;
  color: #e6f2ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.icard-name em { font-style: normal; font-size: 9px; color: var(--gold); margin-left: 3px; }

.icard-meta { font-size: 9px; color: #7a8ea5; }

.icard-n {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 1px 5px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  color: #0b1520;
  background: linear-gradient(160deg, #c9963f, #ffd994);
}

.idetail-top { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }

.idetail-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  font-size: 24px;
  color: var(--q, #9fc3e0);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.idetail-name { font-size: 15px; font-weight: 600; color: var(--q, #e6f2ff); letter-spacing: 0.02em; }
.idetail-name em { font-style: normal; font-size: 11px; color: var(--gold); }
.idetail-sub { margin-top: 3px; font-size: 10px; color: #8fa4ba; }
.idetail-price { margin-top: 11px; font-size: 10px; color: var(--dim); }
.cmp { margin-top: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.28); border-radius: 8px; overflow: hidden; }
.cmp-head { padding: 7px 10px; font-size: 10px; letter-spacing: 1px; color: var(--gold); background: rgba(240, 180, 90, 0.08); border-bottom: 1px solid var(--line); }
.cmp table { width: 100%; border-collapse: collapse; font-size: 11px; }
.cmp th, .cmp td { padding: 5px 8px; text-align: right; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.cmp th:first-child, .cmp td:first-child { text-align: left; color: var(--dim); }
.cmp th { font-weight: 500; font-size: 10px; color: var(--dim); background: rgba(255, 255, 255, 0.02); }
.cmp td.up { color: var(--green); }
.cmp td.down { color: var(--red); }
.cmp-eq { margin-top: 11px; font-size: 10px; color: var(--green); }

.idetail-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.idetail-btns .btn { width: 100%; padding: 10px 6px; font-size: 12px; }

.bag-tools, .imp-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 9.5px;
  line-height: 1.5;
  color: #667a92;
}
.bag-tools span, .imp-tools span { flex: 1; }

.bag-salvage, .imp-salvage {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(10, 17, 27, 0.85);
}
.bag-salvage .sv-row, .imp-salvage .sv-row { padding: 9px 10px; }

.bag-salvage-foot, .imp-salvage-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 10.5px;
  color: #8fa4ba;
}
.bag-salvage-foot b, .imp-salvage-foot b { color: #ffd08a; font-size: 12px; }

.ir-btns.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  align-content: center;
}
.ir-btns.grid2 .mini-btn { padding: 5px 8px; }

.item-row {
  display: flex;
  gap: 8px;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--q);
  background: var(--panel);
}

.ir-main { flex: 1; min-width: 0; }

.ir-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--q, #dceaf7);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.ir-name em { font-style: normal; font-size: 10px; color: var(--gold); }
.ir-q { font-size: 8.5px; padding: 1px 5px; border-radius: 4px; color: #8fa4bb; background: rgba(255, 255, 255, 0.05); }
.ir-sub { margin-top: 2px; font-size: 9.5px; color: #667a92; }
.ir-stats { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 5px; }

.ir-btns {
  flex-direction: column;
  justify-content: center;
  margin-top: 0;
  flex: 0 0 auto;
}

.empty-note {
  padding: 26px 10px;
  text-align: center;
  font-size: 11px;
  color: #4e6076;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.07);
}

/* 仙界副本当日首领额度用完：醒目提示，显示在第一个首领上方 */
.boss-cap-banner {
  margin: 8px 0 6px;
  padding: 14px 12px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .5px;
  line-height: 1.6;
  color: #ffcf6b;
  border-radius: 12px;
  border: 1px solid rgba(255, 190, 90, 0.38);
  background: radial-gradient(circle at 50% 25%, rgba(255, 170, 60, 0.13), rgba(10, 16, 26, 0.25));
  text-shadow: 0 0 14px rgba(255, 170, 60, 0.4);
  animation: capDoneGlow 2.2s ease-in-out infinite;
}
.boss-cap-banner b { color: #ffe2a6; font-variant-numeric: tabular-nums; }
.boss-cap-banner i {
  font-style: normal;
  font-size: 11px;
  font-weight: 400;
  margin-left: 6px;
  opacity: .75;
}
.foe-grid:empty { display: none; }
@keyframes capDoneGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 170, 60, 0); }
  50% { box-shadow: 0 0 22px rgba(255, 170, 60, 0.22); }
}

.hint {
  margin-top: 10px;
  font-size: 10px;
  line-height: 1.75;
  color: #5a6c84;
}

/* ================= 传送 ================= */
.zone-card {
  position: relative;
  padding: 13px 14px;
  margin-bottom: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(17, 28, 43, 0.92), rgba(9, 14, 23, 0.94));
  overflow: hidden;
}

.zc-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}

.zone-card > *:not(.zc-bg) { position: relative; z-index: 1; }
.zone-card > .zc-bg + * { position: relative; z-index: 1; }

.zone-card.current {
  border-color: rgba(127, 212, 255, 0.4);
  box-shadow: 0 0 22px rgba(127, 212, 255, 0.08);
}

.zone-card.locked { opacity: 0.5; }

.zc-head { display: flex; align-items: center; gap: 9px; }
.zc-icon { font-size: 24px; }
.zc-title { flex: 1; }
.zc-title b { display: block; font-size: 14px; color: #e6f2ff; letter-spacing: 0.08em; }
.zc-title span { display: block; font-size: 9.5px; color: var(--dim); }

.tag {
  padding: 1px 6px;
  font-size: 9px;
  font-style: normal;
  border-radius: 4px;
  color: var(--ice);
  border: 1px solid rgba(127, 212, 255, 0.3);
  background: rgba(127, 212, 255, 0.08);
}

.zc-desc { margin: 8px 0 6px; font-size: 10.5px; line-height: 1.65; color: #7d8ea6; }
.zc-mobs { font-size: 10px; color: #93a8c0; }
.zc-boss { margin: 5px 0 9px; font-size: 10px; color: #c99a52; }
/* 首领神话掉落标签：跟随首领本身，不随地图 */
.zc-mythic {
  margin-left: 6px; padding: 1px 5px; border-radius: 6px;
  font-style: normal; font-size: 9px; white-space: nowrap;
  color: #f0d9ff; border: 1px solid rgba(196, 148, 255, 0.35);
  background: rgba(150, 96, 220, 0.16);
}
.zc-lock { padding: 8px 0 2px; font-size: 10px; color: #4f6178; text-align: center; }
.zc-gate { margin: 2px 0 6px; font-size: 10px; color: #b79cff; }

/* 传送 · 总分组拉起 */
.zone-group {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(17, 28, 43, 0.92), rgba(9, 14, 23, 0.94));
  margin-bottom: 10px;
  overflow: hidden;
}
.zone-group-head { display: flex; align-items: center; gap: 9px; padding: 15px 14px; cursor: pointer; }
.zone-group-head b { font-size: 15px; color: #e6f2ff; letter-spacing: 0.12em; }
.zone-group-head .zg-sub { flex: 1; font-size: 10px; color: var(--dim); }
.zone-group-body { padding: 0 12px 12px; }
.zone-group-body .zone-card { margin-bottom: 10px; }
.zone-group-body .zone-card:last-child { margin-bottom: 0; }
.zc-head-plain { display: flex; align-items: center; gap: 9px; }
.zc-body-static { display: block; padding-top: 2px; }
/* 旧版逐张拉起（已弃用，保留以防样式串扰） */
.zc-head { cursor: pointer; }
.zc-caret { margin-left: auto; padding-left: 8px; font-size: 10px; color: var(--dim); }
.zc-go { margin-left: 8px; }
.zc-body { display: none; padding-top: 2px; }
.zone-card.open .zc-body { display: block; }
.zone-sep {
  text-align: center; color: var(--dim); font-size: 11px;
  letter-spacing: 0.25em; margin: 16px 0 10px;
}
.zone-card.newmap {
  border-style: dashed;
  border-color: rgba(127, 212, 255, 0.28);
  opacity: 0.92;
}
.zone-card.newmap .zc-icon { color: var(--gold); }
.zone-card.newmap .zc-title b { color: #e6f2ff; }
.zone-card.newmap .zc-body-nosub { display: block; padding-top: 2px; }
/* 仙界入口未达 10 转：整体压暗、按钮不可点 */
.fairy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.fairy-grid .zone-card {
  margin-bottom: 0;
  padding: 10px 10px;
}
.fairy-grid .zc-title span { font-size: 10px; }
.zone-card.fairy-lock { opacity: 0.45; }
.zone-card.fairy-lock .zc-title span { color: var(--dim); }
/* 整卡点击直达：隐藏进入按钮，压紧卡片 */
.zone-card.fairy-go { cursor: pointer; padding: 8px 10px; overflow: hidden; min-height: 58px; }
.zone-card.fairy-go .zc-head-plain { justify-content: center; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9); }
.zone-card.fairy-go:active { transform: scale(0.97); }
.zone-card.fairy-go .zc-title { flex-direction: column; align-items: center; gap: 1px; text-align: center; }
.fairy-grid .zc-bg { opacity: 0.5; }

/* 背包 · 资源条 */
.res-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.res-strip > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 9px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.res-strip span { font-size: 9px; color: var(--dim); }
.res-strip b { font-size: 12px; color: #e2eefb; }

/* ================= 菜单 ================= */
.menu-head { margin: 4px 2px 14px; }
.menu-title { font-family: "Songti SC", "Noto Serif SC", serif; font-size: 22px; letter-spacing: 0.2em; color: #eaf5ff; }
.menu-sub { margin-top: 4px; font-size: 10px; color: var(--dim); letter-spacing: 0.06em; }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.menu-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  aspect-ratio: 1 / 1;
  border-radius: 13px;
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 80% at 50% 0%, rgba(127, 212, 255, 0.07), transparent 70%),
    rgba(16, 25, 40, 0.85);
  color: #b9cde0;
  cursor: pointer;
  transition: 0.15s;
  font-family: inherit;
}

.menu-tile:active { transform: scale(0.955); border-color: var(--ice); }
.mt-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
/* 旅途菜单配色：与入口条同一思路，名称主色（去掉单字图标） */
.menu-tile[data-key="guidetask"] .mt-name { color: #9fd8ff; }
.menu-tile[data-key="monthcard"] .mt-name { color: #f5d08a; }
.menu-tile[data-key="shop"] .mt-name { color: #c9a4ff; }
.menu-tile[data-key="mount"] .mt-name { color: #8fe3c3; }
.menu-tile[data-key="pet"] .mt-name { color: #ffcf7f; }
.menu-tile[data-key="juling"] .mt-name { color: #9fe0ff; }
.menu-tile[data-key="codex"] .mt-name { color: #b9e08a; }
.menu-tile[data-key="achievement"] .mt-name { color: #ffd97f; }
.menu-tile[data-key="title"] .mt-name { color: #e2c3ff; }
.menu-tile[data-key="rebirth"] .mt-name { color: #ff9ab5; }
.menu-tile[data-key="mail"] .mt-name { color: #a8d8ff; }
.menu-tile[data-key="rank"] .mt-name { color: #ffe08a; }
.menu-tile[data-key="guild"] .mt-name { color: #9fc4ff; }
.menu-tile[data-key="guide"] .mt-name { color: #b0c8e0; }

.badge {
  position: absolute;
  top: 4px;
  right: 5px;
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8.5px;
  font-style: normal;
  color: #fff;
  background: #e5536b;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(229, 83, 107, 0.5);
}

.menu-foot {
  margin-top: 22px;
  text-align: center;
  font-size: 9.5px;
  letter-spacing: 0.4em;
  color: #3d4d63;
}

/* ================= 面板 ================= */
.sheet {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(100% 50% at 50% -10%, rgba(70, 150, 200, 0.16), transparent 60%),
    #080d16;
  animation: sheetUp 0.24s cubic-bezier(0.2, 0.8, 0.3, 1);
}

@keyframes sheetUp {
  from { transform: translateY(28px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.sheet-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 15, 24, 0.92);
}

.sheet-back {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(20, 32, 48, 0.8);
  color: var(--ice);
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}

.sheet-title {
  flex: 1;
  text-align: center;
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 17px;
  letter-spacing: 0.2em;
  color: #eaf5ff;
}

.sheet-online { font-size: 9.5px; color: #4f6178; white-space: nowrap; }

.sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px calc(30px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
}

.panel-card {
  padding: 14px;
  margin-bottom: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.panel-card.center { text-align: center; }
.big-icon { font-size: 32px; line-height: 1; margin-bottom: 8px; color: var(--ice); }
.muted { font-size: 10.5px; line-height: 1.8; color: #74879e; }

/* 符文塔 */
.tower-hero {
  padding: 18px 16px;
  border-radius: 16px;
  border: 1px solid rgba(127, 212, 255, 0.25);
  background:
    radial-gradient(100% 100% at 50% 0%, rgba(127, 212, 255, 0.13), transparent 65%),
    linear-gradient(160deg, rgba(18, 30, 47, 0.95), rgba(8, 13, 21, 0.95));
  text-align: center;
}

.tower-floor {
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 15px;
  letter-spacing: 0.14em;
  color: #a9c4dd;
}

.tower-floor b { font-size: 30px; color: var(--ice); margin: 0 4px; }
.tower-floor span { font-size: 10px; color: #5f7189; }

.tower-foe {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 14px 0;
  text-align: left;
}

.tf-icon { font-size: 34px; }
.tower-foe b { display: block; font-size: 13px; color: #e6f2ff; }
.tower-foe span { display: block; font-size: 9.5px; color: var(--dim); margin-top: 3px; }

.tower-reward {
  margin-bottom: 14px;
  font-size: 10.5px;
  color: #c9a96b;
}

/* 天关守卫成长属性（防暴 / 防吸 / 暴击 / 伤害加成） */
.tw-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: -4px 0 12px;
}

.tw-stats span {
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid rgba(127, 212, 255, 0.22);
  background: rgba(127, 212, 255, 0.08);
  font-size: 9.5px;
  color: #9fd8ff;
}

/* 天关周榜奖励 */
.tw-week .tw-week-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tw-week .tw-week-row div {
  flex: 1 1 calc(20% - 6px);
  min-width: 62px;
  padding: 7px 4px;
  border-radius: 9px;
  border: 1px solid rgba(201, 169, 107, 0.28);
  background: rgba(201, 169, 107, 0.07);
  text-align: center;
}

.tw-week .tw-week-row span {
  display: block;
  font-size: 9px;
  color: #8d9bb0;
}

.tw-week .tw-week-row b {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #f0cf8a;
}

/* 商店 */
.shop-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.shop-icon { font-size: 24px; }
.shop-main { flex: 1; min-width: 0; }
.shop-main b { display: block; font-size: 12.5px; color: #e2eefb; }

/* 限购商品：今日已购次数 + 售罄置灰 */
.shop-limit {
  margin-left: 6px;
  padding: 1px 6px;
  font-style: normal;
  font-size: 9px;
  border-radius: 5px;
  color: #ffd79a;
  background: rgba(255, 198, 107, 0.12);
  border: 1px solid rgba(255, 198, 107, 0.28);
}

.shop-card.sold { opacity: 0.45; }

/* 每日在线奖励 */
.online-list { margin-bottom: 10px; }
.task-row.done { opacity: 0.6; }
.shop-main span { display: block; margin-top: 2px; font-size: 9.5px; color: var(--dim); }

/* 许愿 */
.wish-hero {
  padding: 24px 18px;
  border-radius: 16px;
  border: 1px solid rgba(127, 212, 255, 0.2);
  background:
    radial-gradient(90% 90% at 50% 0%, rgba(127, 212, 255, 0.16), transparent 70%),
    linear-gradient(160deg, rgba(18, 30, 47, 0.95), rgba(8, 13, 21, 0.95));
  text-align: center;
}

.wish-icon { font-size: 34px; color: var(--ice); animation: sigilPulse 4s infinite; border-radius: 50%; }
.wish-hero p { margin: 10px 0 16px; font-size: 11px; line-height: 1.8; color: #91a6bd; }
.wish-btns { display: flex; flex-direction: column; gap: 8px; }

.wish-pool { display: flex; flex-wrap: wrap; gap: 6px; }
.wish-pool span {
  padding: 4px 8px;
  font-size: 10px;
  border-radius: 7px;
  color: #a8bdd4;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 坐骑 / 宠物 */
.grow-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.grow-card.active {
  border-color: rgba(127, 212, 255, 0.4);
  background:
    radial-gradient(100% 100% at 0% 0%, rgba(127, 212, 255, 0.08), transparent 60%),
    var(--panel);
}

.gc-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
}

.gc-body { flex: 1; min-width: 0; }
.gc-title { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: 12.5px; color: #e2eefb; }
.gc-title .lvl { font-size: 9px; color: var(--gold); }
.gc-desc { margin-top: 2px; font-size: 9.5px; color: var(--dim); }
.gc-act { flex: 0 0 auto; }
.gc-btns { margin-top: 0; flex-direction: column; }

/* 兽栏：未激活 / 已满级的坐骑与生肖收纳区 */
.stable-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 13px;
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1px dashed rgba(240, 180, 90, 0.4);
  background: rgba(240, 180, 90, 0.05);
  cursor: pointer;
  text-align: left;
}

.stable-entry span {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-size: 15px;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.25);
}

.stable-entry div { flex: 1; min-width: 0; }
.stable-entry b { display: block; font-size: 12.5px; color: #e2eefb; }
.stable-entry em { display: block; font-style: normal; font-size: 9px; color: var(--dim); margin-top: 1px; }
.stable-entry i { font-style: normal; font-size: 16px; color: var(--dim); }
.stable-entry:active { transform: scale(0.98); }

.stable-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.stable-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 8px 9px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

.stable-card.active {
  border-style: solid;
  border-color: rgba(127, 212, 255, 0.38);
  background:
    radial-gradient(100% 100% at 50% 0%, rgba(127, 212, 255, 0.07), transparent 65%),
    rgba(255, 255, 255, 0.02);
}

.stable-card .sc-pic {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(0, 0, 0, 0.25);
}

.stable-card .sc-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stable-card .sc-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  font-size: 11.5px;
  color: #e2eefb;
}

.stable-card .sc-meta {
  font-size: 9px;
  color: var(--dim);
  line-height: 1.4;
  min-height: 13px;
}

.stable-card .sc-act {
  width: 100%;
  margin-top: 2px;
}

.stable-card .sc-act .mini-btn {
  width: 100%;
}

.stable-empty {
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  text-align: center;
  font-size: 10px;
  color: var(--dim);
}

/* 符文 */
.rune-slots { display: flex; flex-direction: column; gap: 7px; }

/* 技能与印记 */
.skill-head {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(240, 180, 90, 0.28);
  background: linear-gradient(150deg, rgba(60, 42, 18, 0.75), rgba(20, 16, 10, 0.85));
}

.sh-name {
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.sh-desc {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--dim);
}

.essence-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 2px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(185, 140, 255, 0.3);
  background: linear-gradient(150deg, rgba(52, 36, 80, 0.55), rgba(18, 14, 26, 0.85));
  font-size: 11px;
  color: var(--dim);
}

.essence-bar b {
  font-size: 16px;
  color: var(--purple);
  letter-spacing: 0.04em;
}

.essence-bar i {
  margin-left: auto;
  font-style: normal;
  font-size: 10px;
  color: var(--dim);
}

/* ================= 战神印（烈火 + 半月 双印合一） ================= */
.zss-card {
  margin: 8px 0 4px;
  padding: 12px;
  border-radius: 13px;
  border: 1px solid rgba(255, 120, 90, 0.4);
  background: linear-gradient(150deg, rgba(84, 40, 26, 0.6), rgba(26, 16, 14, 0.9));
  box-shadow: 0 0 22px rgba(255, 120, 60, 0.1) inset;
}

.zss-card.on {
  border-color: rgba(255, 170, 80, 0.75);
  box-shadow: 0 0 26px rgba(255, 150, 60, 0.22) inset;
}

.zss-card.locked {
  border-color: rgba(120, 130, 150, 0.4);
  background: linear-gradient(150deg, rgba(44, 44, 56, 0.6), rgba(18, 18, 24, 0.9));
}

.zss-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.zss-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #ffe1b0;
  background: linear-gradient(145deg, #8a3b1e, #3a1a10);
  border: 1px solid rgba(255, 170, 90, 0.55);
  text-shadow: 0 0 10px rgba(255, 150, 60, 0.7);
  flex: none;
}

.zss-head b {
  display: block;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  color: #ffd9a0;
}

.zss-head i {
  display: block;
  font-style: normal;
  font-size: 10.5px;
  color: var(--dim);
}

.zss-reqs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.zss-reqs span {
  padding: 4px 9px;
  border-radius: 8px;
  border: 1px solid rgba(255, 90, 90, 0.35);
  background: rgba(255, 90, 90, 0.08);
  font-size: 10.5px;
  color: #ff9d9d;
}

.zss-reqs span.ok {
  border-color: rgba(110, 230, 140, 0.45);
  background: rgba(110, 230, 140, 0.1);
  color: #8fe6a8;
}

.zss-eff {
  margin-top: 9px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--dim);
}

.zss-orb {
  margin-top: 7px;
  font-size: 11px;
  color: var(--dim);
}

.zss-orb b {
  color: var(--purple);
  font-size: 13px;
}

.zss-act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

/* 天关限时战斗条 */
.tower-bar {
  margin-bottom: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(240, 180, 90, 0.4);
  background: linear-gradient(150deg, rgba(70, 48, 20, 0.75), rgba(22, 18, 14, 0.92));
  box-shadow: 0 0 22px rgba(240, 150, 60, 0.12) inset;
}

.tb-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.tb-head strong {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.tb-head span {
  font-size: 12px;
  font-weight: 700;
  color: #ff9d5c;
}

.tb-track {
  height: 6px;
  margin: 7px 0 6px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tb-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ff7a3c, var(--gold));
  transition: width 0.1s linear;
}

.tb-sub {
  font-size: 10px;
  color: var(--dim);
}

.tower-result {
  margin-bottom: 8px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(150deg, rgba(30, 34, 44, 0.92), rgba(16, 18, 24, 0.96));
}

.tower-result.win {
  border-color: rgba(240, 190, 90, 0.5);
  box-shadow: 0 0 20px rgba(240, 170, 60, 0.12) inset;
}

.tower-result.lose {
  border-color: rgba(255, 95, 110, 0.42);
}

.tr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.tr-head strong {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.tr-head em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.tower-result.win .tr-head em { color: #ffd479; }
.tower-result.lose .tr-head em { color: #ff6b7d; }

.tr-sub {
  font-size: 11px;
  color: var(--dim);
  margin-bottom: 9px;
}

.tr-btns {
  display: flex;
  gap: 8px;
}

.tr-btns .mini-btn { flex: 1; }

.imprint-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.imprint {
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(24, 24, 24, 0.95), rgba(14, 14, 14, 0.95));
}

.imprint.on {
  border-color: rgba(255, 196, 107, 0.55);
  box-shadow: 0 0 18px rgba(255, 196, 107, 0.14), inset 0 0 20px rgba(255, 196, 107, 0.06);
}

/* 印记系统已取消锁定功能 */

.imp-top {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.imp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 13px;
  color: var(--gold);
  border: 1px solid rgba(255, 196, 107, 0.35);
  border-radius: 50%;
  background: rgba(255, 196, 107, 0.08);
  flex: 0 0 26px;
}

.imp-top b {
  font-size: 14px;
  letter-spacing: 0.06em;
}

.imp-top i {
  margin-left: auto;
  font-style: normal;
  font-size: 10px;
  color: var(--dim);
}

.imp-effect {
  margin: 6px 0 5px;
  font-size: 11px;
  line-height: 1.55;
  color: var(--green);
}

.imp-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.imp-stats span {
  padding: 2px 8px;
  font-size: 10px;
  border-radius: 20px;
  color: var(--ice);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.imp-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.imp-btns .mini-btn {
  flex: 1 1 30%;
  padding: 7px 6px;
  font-size: 11px;
}

.imp-btns .mini-btn[data-act="imprint-enhance"] { flex: 1 1 100%; }

.imp-btns .mini-btn:disabled {
  opacity: 0.45;
  pointer-events: none;
}

.rune-slot {
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px dashed var(--line-2);
  background: rgba(12, 19, 30, 0.7);
}

.rune-slot.filled {
  border-style: solid;
  border-color: rgba(185, 140, 255, 0.35);
  background:
    radial-gradient(100% 100% at 0% 0%, rgba(185, 140, 255, 0.1), transparent 60%),
    var(--panel);
}

.rs-title { font-size: 9px; letter-spacing: 0.18em; color: #5f7189; }
.rs-rune { margin-top: 4px; font-size: 12.5px; color: #d9c6ff; }
.rs-rune b { color: var(--gold); font-size: 10px; }
.rs-desc { margin-top: 2px; font-size: 9.5px; color: var(--dim); }
.rs-empty { margin-top: 7px; font-size: 10px; color: #3d4d63; letter-spacing: 0.16em; }

.rune-bag { display: flex; flex-direction: column; gap: 7px; }

.rune-row {
  display: flex;
  gap: 8px;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.rr-main { flex: 1; min-width: 0; }
.rr-name { font-size: 12px; color: #d9c6ff; }
.rr-name b { font-size: 10px; color: var(--gold); }
.rr-desc { margin-top: 2px; font-size: 9.5px; color: var(--dim); }
.rr-btns { flex-direction: column; margin-top: 0; }

/* 图鉴 */
.equip-codex {
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.ec-bar {
  font-size: 11px;
  color: var(--dim);
  padding: 6px 8px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.ec-bar b { color: var(--gold); }

.ec-set { margin-bottom: 9px; }
.ec-set:last-child { margin-bottom: 0; }

.ec-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #dfeaf7;
  margin-bottom: 5px;
}

.ec-title span { font-size: 9.5px; color: var(--dim); }

.ec-slots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}

.ec-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 5px 0 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  opacity: 0.42;
}

.ec-slot i {
  font-style: normal;
  font-size: 13px;
  color: #cfd9e6;
}

.ec-slot span { font-size: 9px; color: var(--dim); }

.ec-slot.on {
  opacity: 1;
  border-color: rgba(240, 190, 90, 0.5);
  background: rgba(240, 190, 90, 0.12);
}

.ec-slot.on i { color: var(--gold); }
.ec-slot.on span { color: #f4d9a0; }

.codex-zone {
  padding: 12px;
  margin-bottom: 9px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.cz-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #e2eefb;
  letter-spacing: 0.06em;
}

.cz-head span { margin-left: auto; font-size: 9.5px; color: var(--gold); }

.cz-mobs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 10px;
  margin: 9px 0;
}

.cz-mob {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #8fa4bb;
}

.cz-mob b { margin-left: auto; font-size: 9.5px; color: #c9d9ea; font-weight: 500; }
.cz-mob.boss { color: #c99a52; }

.cz-claims { display: flex; flex-wrap: wrap; gap: 5px; }

/* 杀怪奖励档位：达标即自动发放，不再有「领取」按钮，只显示进度与发放状态 */
.cz-step {
  position: relative;
  flex: 1 1 30%;
  min-width: 92px;
  padding: 6px 8px 7px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(20, 26, 36, 0.8);
  overflow: hidden;
  font-size: 9px;
  color: #8fa4bb;
}

.cz-step span { display: block; color: #c9d9ea; }

.cz-step b {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  font-weight: 500;
  color: #7f93a8;
}

.cz-step i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(87, 168, 255, 0.7), rgba(255, 181, 69, 0.7));
}

.cz-step.ok {
  border-color: rgba(116, 217, 154, 0.3);
  background: rgba(28, 44, 38, 0.7);
}

.cz-step.ok span { color: #a9e0c0; }
.cz-step.ok b { color: var(--green); }

/* 转生 */
.rb-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(196, 150, 255, 0.28);
  background: linear-gradient(135deg, rgba(126, 87, 194, 0.16), rgba(30, 41, 59, 0.5));
}

.rb-count {
  font-size: 30px;
  font-weight: 800;
  color: #d3b6ff;
  line-height: 1;
  white-space: nowrap;
}

.rb-count i {
  font-style: normal;
  font-size: 12px;
  margin-left: 3px;
  color: #9a7fd0;
}

.rb-brief { flex: 1; min-width: 0; }
.rb-line { font-size: 11.5px; color: #e2eefb; }
.rb-line b { color: #d3b6ff; }
.rb-line em { font-style: normal; font-size: 9px; color: var(--dim); margin-left: 4px; }
.rb-line.dim { margin-top: 3px; font-size: 9.5px; color: var(--dim); }

.rb-cost {
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.rb-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--dim);
  padding: 3px 0;
}

.rb-row b.ok { color: #7fe0a8; }
.rb-row b.lack { color: #ff8f8f; }

/* 单次 / 批量按钮并排 */
.up-row { display: flex; gap: 8px; margin-top: 8px; }
.up-row .btn { flex: 1; padding: 12px 6px; font-size: 12.5px; letter-spacing: 0.04em; }

/* 转生天赋加点 */
.talent-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 11.5px;
}

.talent-row.maxed { border-color: rgba(127, 224, 168, 0.45); }
.talent-row .tl-name { color: #e2eefb; min-width: 62px; }
.talent-row .tl-txt { flex: 1; color: var(--dim); font-size: 10.5px; }
.talent-row .tl-lv { color: #d3b6ff; }
.talent-row .mini-btn { flex: none; }

/* 邮件 */
.mail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 11px;
  color: var(--dim);
}
.mail-btns { display: flex; gap: 6px; }
}

.mail-card {
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.mail-card.claimed { opacity: 0.55; }

.mail-top { display: flex; justify-content: space-between; gap: 8px; }
.mail-top b { font-size: 12.5px; color: #e2eefb; }
.mail-top span { font-size: 9px; color: #5f7189; }
.mail-card p { margin: 6px 0 8px; font-size: 10px; line-height: 1.7; color: #7d8ea6; }

.mail-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mail-reward { font-size: 10px; color: var(--gold); }

/* 签到 */
.checkin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.checkin-day {
  padding: 9px 3px;
  text-align: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(12, 19, 30, 0.75);
}

.checkin-day.next {
  border-color: rgba(233, 185, 107, 0.55);
  background: rgba(60, 44, 20, 0.5);
  box-shadow: 0 0 14px rgba(233, 185, 107, 0.12);
}

.checkin-day.done { opacity: 0.45; }

.cd-day { display: block; font-size: 8.5px; color: #5f7189; }
.cd-icon { display: block; margin: 3px 0; font-size: 16px; }
.cd-label { display: block; font-size: 8px; color: #93a8c0; line-height: 1.3; }

/* 战令 */
.task-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.task-row:last-child { border-bottom: 0; }
.task-main { flex: 1; min-width: 0; }
.task-title { font-size: 12px; color: #e2eefb; display: flex; align-items: center; gap: 6px; }
.task-title .tag.ok { color: var(--green); border-color: rgba(95, 224, 160, 0.4); background: rgba(95, 224, 160, 0.08); }
.task-desc { margin-top: 2px; font-size: 9.5px; color: var(--dim); }

.task-bar {
  position: relative;
  height: 6px;
  margin-top: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.task-bar i { display: block; height: 100%; background: linear-gradient(90deg, #2f7fae, #7fd4ff); }
.task-bar span { position: absolute; right: 0; top: -14px; font-size: 8px; color: #5f7189; }

/* 排行 */
.rank-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  margin-bottom: 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.rank-row[data-act] { cursor: pointer; }
.rank-row[data-act]:active { transform: scale(0.995); }

/* ===== 排行榜 · 玩家信息弹窗 ===== */
.insp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}
.insp-grid > div {
  padding: 7px 9px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(12, 20, 32, 0.72);
}
.insp-grid span { display: block; font-size: 10px; color: #6b7d92; }
.insp-grid b { display: block; margin-top: 2px; font-size: 12px; color: #dbe8f5; }
.insp-sub {
  margin: 10px 0 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #8fa3b8;
}
.insp-eqs { display: flex; flex-direction: column; gap: 6px; }
.insp-eq {
  padding: 7px 9px;
  border-radius: 9px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--q, #9db2c6);
  background: rgba(10, 17, 27, 0.72);
}
.insp-eq b { display: block; font-size: 12px; color: var(--q, #dbe8f5); }
.insp-eq span { display: block; margin-top: 1px; font-size: 10px; color: #7d8fa4; }
.insp-eq em { display: block; margin-top: 3px; font-style: normal; font-size: 10.5px; color: #b9cbdc; }
.insp-eq i { display: block; margin-top: 2px; font-style: normal; font-size: 10.5px; color: #ffd48a; }

.rank-no {
  width: 18px;
  text-align: center;
  font-size: 12px;
  color: #5f7189;
  font-variant-numeric: tabular-nums;
}

.rank-no.top { color: var(--gold); font-weight: 700; }

.rank-avatar {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--c);
  border: 1px solid var(--c);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
}

.rank-main { flex: 1; min-width: 0; }
.rank-main b { display: block; font-size: 12px; color: #e2eefb; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-main span { display: block; font-size: 9px; color: var(--dim); }
.rank-power { font-size: 11px; color: var(--ice); }

.rank-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3a4b60;
}

.rank-dot.on { background: var(--green); box-shadow: 0 0 6px var(--green); }

/* 公会 */
.guild-name {
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 22px;
  letter-spacing: 0.16em;
  color: #f0e0c0;
  margin: 4px 0;
}

.guild-buff {
  margin: 8px 0 14px;
  padding: 8px;
  font-size: 10.5px;
  color: var(--gold);
  border-radius: 8px;
  background: rgba(233, 185, 107, 0.07);
  border: 1px solid rgba(233, 185, 107, 0.18);
}

.guild-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  margin-bottom: 7px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.guild-main { flex: 1; min-width: 0; }
.guild-main b { display: block; font-size: 12.5px; color: #e2eefb; }
.guild-main b em { margin-left: 5px; font-size: 9px; font-style: normal; color: var(--gold); }
.guild-main span { display: block; margin-top: 2px; font-size: 9.5px; color: var(--dim); }

/* 公会六模块 */
.gd-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(233, 185, 107, 0.2);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(78, 55, 26, 0.34), rgba(15, 25, 39, 0.86));
}
.gd-head .big-icon { margin: 0; }
.gd-head-main { flex: 1; min-width: 0; }
.gd-head-main .guild-name { margin: 0 0 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-head-main > span { font-size: 9.5px; color: #9db0c5; }

/* 帮派战旗 */
.gd-flag {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid rgba(233, 185, 107, 0.28);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(78, 48, 18, 0.5), rgba(15, 25, 39, 0.9));
}
.gd-flag-pic {
  position: relative;
  flex: none;
  width: 64px;
  height: 76px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 214, 130, 0.5), transparent 62%),
    linear-gradient(160deg, rgba(120, 62, 12, 0.9), rgba(40, 20, 6, 0.95));
  border: 1px solid rgba(233, 185, 107, 0.35);
  box-shadow: inset 0 0 18px rgba(255, 176, 56, 0.22), 0 0 14px rgba(255, 148, 24, 0.14);
}
.gd-flag-pic i {
  font-style: normal;
  font-size: 30px;
  font-weight: 800;
  color: #ffe4a8;
  text-shadow: 0 0 12px rgba(255, 178, 64, 0.8);
}
.gd-flag-pic b {
  position: absolute;
  right: 5px;
  bottom: 5px;
  padding: 1px 5px;
  border-radius: 6px;
  background: rgba(8, 12, 20, 0.72);
  color: #ffd48a;
  font-size: 9px;
}
.gd-flag-main { flex: 1; min-width: 0; }
.gd-flag-main b { display: block; font-size: 13px; color: #ffe4b0; }
.gd-flag-main b em { margin-left: 5px; font-size: 9.5px; font-style: normal; color: #d3a95f; }
.gd-flag-main span { display: block; margin-top: 3px; font-size: 9.5px; color: #9fb3c8; }
.gd-flag-main > em { display: block; margin-top: 3px; font-size: 9px; font-style: normal; color: #b69868; }
.gd-flag > .mini-btn { flex: none; }
.gd-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
  margin: 10px 0;
  padding: 4px;
  border-radius: 10px;
  background: rgba(7, 13, 22, 0.72);
  border: 1px solid var(--line);
}
.gd-tabs button {
  min-width: 0;
  padding: 7px 1px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #71859c;
  font-family: inherit;
  font-size: 9px;
  white-space: nowrap;
  cursor: pointer;
}
.gd-tabs button.on { color: #241705; background: linear-gradient(135deg, #c6984b, #f0cf94); font-weight: 700; }
.gd-body { min-height: 220px; }
.gd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.gd-grid > div { padding: 9px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); }
.gd-grid span { display: block; font-size: 9px; color: var(--dim); }
.gd-grid b { display: block; margin-top: 3px; font-size: 12px; color: #e2eefb; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-progress { margin-top: 10px; padding: 10px; border-radius: 9px; background: rgba(10, 18, 29, 0.68); }
.gd-progress > div:first-child { display: flex; justify-content: space-between; font-size: 10px; color: var(--dim); }
.gd-progress b { color: var(--ice); }
.gd-progress .task-bar { height: 7px; margin-top: 8px; }
.gd-progress .task-bar i { background: linear-gradient(90deg, #a87532, #f0cf94); }
.gd-leave { width: 100%; margin-top: 10px; }
.gd-balance { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; padding: 9px 10px; border-radius: 9px; background: rgba(233, 185, 107, 0.07); color: #9baec2; font-size: 10px; }
.gd-balance b { color: var(--gold); font-size: 14px; }
.gd-balance span { margin-left: auto; color: var(--dim); font-size: 9px; }
.gd-row, .gd-member {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 7px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
}
.gd-row-main, .gd-member-main { flex: 1; min-width: 0; }
.gd-row-main b, .gd-member-main b { display: block; font-size: 12px; color: #e2eefb; }
.gd-row-main b em { margin-left: 5px; color: var(--gold); font-size: 10px; font-style: normal; }
.gd-row-main span, .gd-member-main span { display: block; margin-top: 3px; color: var(--dim); font-size: 9.5px; line-height: 1.45; }
.gd-row-main > em { display: block; margin-top: 3px; color: #b69868; font-size: 9px; font-style: normal; }
.gd-row > .mini-btn { flex: none; }
.gd-skill-acts { display: flex; gap: 5px; flex: none; }
.gd-member .rank-dot { flex: none; }
.gd-member-main b em { margin-left: 5px; padding: 1px 4px; border-radius: 4px; background: rgba(127, 212, 255, 0.08); color: #8ca4bb; font-size: 8px; font-style: normal; font-weight: 400; }
.gd-member-main b em.leader { color: var(--gold); background: rgba(233, 185, 107, 0.1); }
.gd-member-acts { display: flex; gap: 4px; flex: none; }
.gd-logs { border: 1px solid var(--line); border-radius: 11px; background: rgba(10, 17, 28, 0.6); overflow: hidden; }
.gd-logs > div:not(.empty-note) { display: flex; gap: 9px; padding: 9px 10px; border-bottom: 1px dashed rgba(255, 255, 255, 0.055); font-size: 10px; line-height: 1.45; }
.gd-logs > div:last-child { border-bottom: 0; }
.gd-logs time { flex: none; color: #5f7189; font-variant-numeric: tabular-nums; }
.gd-logs span { color: #a9bed2; }

.inline-form { display: flex; gap: 7px; margin-top: 9px; }
.inline-form input { flex: 1; padding: 9px 11px; font-size: 14px; }

.invite-code {
  margin: 10px 0 12px;
  font-size: 30px;
  letter-spacing: 0.34em;
  color: var(--ice);
  text-shadow: 0 0 20px rgba(127, 212, 255, 0.4);
  font-family: "SFMono-Regular", Menlo, monospace;
}

/* 指南 */
.guide h4 {
  margin: 18px 0 6px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.guide h4:first-child { margin-top: 4px; }

.guide p {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.9;
  color: #879ab2;
}

/* ================= 弹窗 / Toast ================= */
.modal {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 5, 9, 0.86);
  animation: fadeIn 0.18s ease;
}

.modal-card {
  width: 100%;
  max-height: 76%;
  overflow-y: auto;
  padding: 20px 18px 16px;
  border-radius: 16px;
  border: 1px solid rgba(127, 212, 255, 0.25);
  background:
    radial-gradient(100% 80% at 50% 0%, rgba(127, 212, 255, 0.1), transparent 60%),
    #0d1727;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  animation: popIn 0.22s ease;
}

@keyframes popIn {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.modal-card h3 {
  margin: 0 0 12px;
  text-align: center;
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 17px;
  letter-spacing: 0.14em;
  color: var(--ice);
}

.modal-card p {
  margin: 5px 0;
  font-size: 11.5px;
  line-height: 1.8;
  color: #a8bdd4;
  text-align: center;
}

.modal-card .btn { margin-top: 14px; }

.modal-actions { display: flex; gap: 10px; margin-top: 14px; }
.modal-actions .btn { flex: 1; margin-top: 0; }
/* 自定义输入弹窗（替代浏览器原生 prompt） */
#iprompt-input {
  width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink, #eee);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  outline: none;
  box-sizing: border-box;
}
#iprompt-input:focus { border-color: var(--gold, #c9a96b); }

.toast {
  position: absolute;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom));
  z-index: 70;
  max-width: 86%;
  padding: 9px 15px;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  background: rgba(18, 30, 47, 0.96);
  color: #cfe0f2;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: 0.22s;
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }
/* 装备 / 强化等不满足条件的错误提示放大，确保玩家看清失败原因 */
.toast.bad {
  border-color: rgba(255, 107, 107, 0.7);
  color: #ffd2d2;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 20px;
  line-height: 1.55;
}
.toast.good { border-color: rgba(127, 212, 255, 0.45); color: #bfe9ff; }

/* ================= 击杀资源飘字 ================= */
.gain-layer {
  position: absolute;
  left: 0;
  right: 0;
  top: 21%;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.gain-pop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  animation: gainRise 1.8s ease-out forwards;
}

.gain-pop span {
  max-width: 86vw;
  padding: 3px 12px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-align: center;
  border-radius: 12px;
  background: rgba(14, 14, 14, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  white-space: normal;
  word-break: break-all;
}

.gain-pop .gain-gold { color: var(--gold); text-shadow: 0 0 12px rgba(255, 196, 107, 0.55); }
.gain-pop .gain-exp { color: #a9d7ff; text-shadow: 0 0 12px rgba(127, 190, 255, 0.45); }
.gain-pop .gain-soul { color: var(--purple); text-shadow: 0 0 12px rgba(185, 140, 255, 0.5); }
.gain-pop .gain-diamond { color: #7fe0c4; text-shadow: 0 0 12px rgba(127, 224, 196, 0.5); }
.gain-pop .gain-item { color: #ffe6a8; text-shadow: 0 0 12px rgba(255, 230, 168, 0.45); }
.gain-pop .gain-mat { color: #ffb37a; text-shadow: 0 0 12px rgba(255, 150, 92, 0.5); }

@keyframes gainRise {
  0% { opacity: 0; transform: translateY(16px) scale(0.9); }
  16% { opacity: 1; transform: translateY(0) scale(1); }
  68% { opacity: 1; transform: translateY(-14px) scale(1); }
  100% { opacity: 0; transform: translateY(-46px) scale(1); }
}

/* ================= 怪物扣血飘字 ================= */
.dmg-layer {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
}

.dmg-float {
  position: absolute;
  font-size: 17px;
  font-weight: 800;
  color: #ffd27a;
  text-shadow: 0 0 10px rgba(255, 130, 60, 0.75), 0 2px 4px rgba(0, 0, 0, 0.9);
  animation: dmgRise 0.95s ease-out forwards;
}

.dmg-float.crit {
  font-size: 21px;
  color: #ff8a5c;
}

.dmg-float.hurt {
  font-size: 15px;
  color: #ff5f6e;
  text-shadow: 0 0 10px rgba(255, 60, 80, 0.8), 0 2px 4px rgba(0, 0, 0, 0.9);
}

@keyframes dmgRise {
  0% { opacity: 0; transform: translate(-50%, -40%) scale(0.7); }
  20% { opacity: 1; transform: translate(-50%, -70%) scale(1.08); }
  100% { opacity: 0; transform: translate(-50%, -180%) scale(1); }
}

/* ================= 周卡 ================= */
.mc-hero {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 196, 107, 0.28);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255, 196, 107, 0.16), transparent 58%),
    linear-gradient(155deg, rgba(46, 34, 16, 0.95), rgba(18, 16, 13, 0.96));
}

.mc-hero.on {
  border-color: rgba(255, 196, 107, 0.6);
  box-shadow: 0 0 26px rgba(255, 170, 60, 0.16), inset 0 0 22px rgba(255, 196, 107, 0.06);
}

.mc-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  font-size: 19px;
  font-weight: 700;
  color: #ffdca8;
  border-radius: 12px;
  border: 1px solid rgba(255, 196, 107, 0.5);
  background: linear-gradient(150deg, rgba(255, 196, 107, 0.25), rgba(255, 140, 60, 0.08));
  box-shadow: inset 0 0 14px rgba(255, 196, 107, 0.18);
}

.mc-hero-main {
  flex: 1;
  min-width: 0;
}

.mc-hero-main strong {
  display: block;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.mc-hero-main span {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--dim);
}

.mc-price {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  color: #ffdca8;
}

.mc-list {
  display: grid;
  gap: 7px;
  margin-bottom: 11px;
}

.mc-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(26, 26, 26, 0.95), rgba(15, 15, 15, 0.95));
}

.mc-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  font-size: 11px;
  color: var(--gold);
  border-radius: 50%;
  border: 1px solid rgba(255, 196, 107, 0.32);
  background: rgba(255, 196, 107, 0.08);
}

.mc-row b {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  color: #e8f1fb;
  letter-spacing: 0.02em;
}

.mc-row em {
  font-style: normal;
  font-size: 9.5px;
  color: #6f8296;
}

/* ================= 坐骑草料 ================= */
.feed-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid rgba(140, 205, 150, 0.3);
  background: linear-gradient(150deg, rgba(28, 48, 32, 0.6), rgba(15, 20, 16, 0.9));
  font-size: 11px;
  color: var(--dim);
}

.fb-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  font-size: 11px;
  color: #a6e6b4;
  border-radius: 7px;
  border: 1px solid rgba(140, 205, 150, 0.4);
  background: rgba(140, 205, 150, 0.1);
}

.fb-name { color: #cfe8d4; }

.feed-bar b {
  font-size: 15px;
  color: #a6e6b4;
}

.feed-bar i {
  margin-left: auto;
  font-style: normal;
  font-size: 9.5px;
  color: #6f8296;
}

/* 坐骑满级总属性面板 */
.mount-max-summary {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid rgba(255, 196, 92, 0.35);
  background: linear-gradient(150deg, rgba(58, 44, 20, 0.7), rgba(20, 18, 12, 0.9));
}
.mms-title {
  font-size: 11px;
  color: #ffd479;
  font-weight: 700;
}
.mms-title em {
  margin-left: 6px;
  font-style: normal;
  font-size: 9px;
  font-weight: 400;
  color: var(--dim);
}
.mms-stats {
  display: flex;
  gap: 18px;
  margin-top: 8px;
  font-size: 10.5px;
  color: #c8d4e0;
}
.mms-stats b {
  color: #ffcf5a;
  font-size: 15px;
  margin-left: 3px;
}
.mms-detail {
  margin-top: 7px;
  font-size: 9px;
  line-height: 1.5;
  color: #8a94a3;
}

/* 生肖满级总属性：紫色主题，与坐骑金色区分 */
.pet-max-summary {
  border-color: rgba(185, 140, 255, 0.35);
  background: linear-gradient(150deg, rgba(50, 38, 70, 0.7), rgba(18, 14, 24, 0.9));
}
.pet-max-summary .mms-title { color: #d4b0ff; }
.pet-max-summary .mms-stats b { color: #c9a0ff; }

/* ================= 印记触发特效 ================= */
.fx-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
  overflow: hidden;
  pointer-events: none;
}

.imp-fx {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  animation: fxFade 1s ease-out forwards;
}

.imp-fx::before {
  content: "";
  position: absolute;
  inset: 0;
  animation: fxFade 0.6s ease-out forwards;
}

.imp-fx.huo::before {
  background: radial-gradient(60% 45% at 50% 46%, rgba(255, 120, 50, 0.3), rgba(255, 60, 20, 0.06) 55%, transparent 78%);
}

.imp-fx.yue::before {
  background: radial-gradient(60% 45% at 50% 46%, rgba(140, 210, 255, 0.28), rgba(120, 140, 255, 0.06) 55%, transparent 78%);
}

/* 基本剑术：白刃轻光（低调出招） */
.imp-fx.jbs::before {
  background: radial-gradient(45% 34% at 50% 46%, rgba(255, 255, 255, 0.16), transparent 72%);
}

/* 攻杀剑法：赤红剑气 */
.imp-fx.gs::before {
  background: radial-gradient(60% 45% at 50% 46%, rgba(255, 80, 70, 0.3), rgba(200, 30, 30, 0.08) 55%, transparent 78%);
}

/* 刺杀剑法：幽紫穿透 */
.imp-fx.cs::before {
  background: radial-gradient(60% 45% at 50% 46%, rgba(190, 130, 255, 0.3), rgba(120, 60, 220, 0.08) 55%, transparent 78%);
}

/* 雷霆剑法：紫电雷光 */
.imp-fx.lei::before {
  background: radial-gradient(60% 45% at 50% 46%, rgba(140, 175, 255, 0.3), rgba(90, 120, 255, 0.08) 55%, transparent 78%);
}

/* 开天怒斩：暗金裂天 */
.imp-fx.kt::before {
  background: radial-gradient(60% 45% at 50% 46%, rgba(255, 205, 90, 0.28), rgba(200, 120, 20, 0.08) 55%, transparent 78%);
}

/* 逐日神剑：金阳焚天 */
.imp-fx.ri::before {
  background: radial-gradient(62% 46% at 50% 46%, rgba(255, 240, 160, 0.34), rgba(255, 140, 40, 0.1) 55%, transparent 80%);
}

.fx-ring {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 2px solid rgba(255, 210, 150, 0.85);
  animation: fxRing 0.85s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

.imp-fx.yue .fx-ring {
  border-color: rgba(160, 220, 255, 0.85);
}

.imp-fx.jbs .fx-ring {
  border-color: rgba(255, 255, 255, 0.7);
  width: 100px;
  height: 100px;
}

.imp-fx.gs .fx-ring {
  border-color: rgba(255, 140, 110, 0.85);
}

.imp-fx.cs .fx-ring {
  border-color: rgba(200, 150, 255, 0.85);
}

.imp-fx.lei .fx-ring {
  border-color: rgba(170, 200, 255, 0.9);
}

.imp-fx.kt .fx-ring {
  border-color: rgba(255, 220, 130, 0.9);
}

.imp-fx.ri .fx-ring {
  border-color: rgba(255, 245, 190, 0.95);
}

.fx-slash {
  position: absolute;
  width: 190%;
  height: 5px;
  border-radius: 6px;
  background: linear-gradient(90deg, transparent, rgba(255, 130, 50, 0.9), #ffe0a8, rgba(255, 130, 50, 0.9), transparent);
  box-shadow: 0 0 24px rgba(255, 130, 50, 0.8);
  transform: rotate(-22deg) scaleX(0.2);
  animation: fxSlash 0.62s ease-out forwards;
}

.fx-arc {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: rgba(150, 220, 255, 0.95);
  border-right-color: rgba(185, 140, 255, 0.9);
  transform: rotate(-50deg) scale(0.5);
  animation: fxArc 0.8s ease-out forwards;
}

.fx-word {
  position: relative;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.16em;
  animation: fxWord 0.95s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

.imp-fx.huo .fx-word {
  color: #ffd9a8;
  text-shadow: 0 0 12px rgba(255, 110, 40, 0.95), 0 0 34px rgba(255, 70, 20, 0.7), 0 2px 6px rgba(0, 0, 0, 0.9);
}

.imp-fx.yue .fx-word {
  color: #e6f7ff;
  text-shadow: 0 0 12px rgba(130, 210, 255, 0.95), 0 0 34px rgba(120, 140, 255, 0.7), 0 2px 6px rgba(0, 0, 0, 0.9);
}

.imp-fx.jbs .fx-word {
  color: #ffffff;
  font-size: 24px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 26px rgba(220, 230, 255, 0.6), 0 2px 6px rgba(0, 0, 0, 0.9);
}

.imp-fx.gs .fx-word {
  color: #ffd6cc;
  text-shadow: 0 0 12px rgba(255, 70, 50, 0.95), 0 0 34px rgba(210, 30, 30, 0.7), 0 2px 6px rgba(0, 0, 0, 0.9);
}

.imp-fx.cs .fx-word {
  color: #ecd9ff;
  text-shadow: 0 0 12px rgba(170, 90, 255, 0.95), 0 0 34px rgba(120, 50, 220, 0.7), 0 2px 6px rgba(0, 0, 0, 0.9);
}

.imp-fx.lei .fx-word {
  color: #e7eeff;
  text-shadow: 0 0 12px rgba(120, 165, 255, 0.95), 0 0 34px rgba(90, 120, 255, 0.7), 0 2px 6px rgba(0, 0, 0, 0.9);
}

.imp-fx.kt .fx-word {
  color: #fff0c8;
  text-shadow: 0 0 12px rgba(255, 190, 60, 0.95), 0 0 36px rgba(230, 120, 20, 0.7), 0 2px 6px rgba(0, 0, 0, 0.9);
}

.imp-fx.ri .fx-word {
  color: #fffbe0;
  font-size: 34px;
  text-shadow: 0 0 14px rgba(255, 220, 90, 0.98), 0 0 40px rgba(255, 150, 40, 0.75), 0 2px 6px rgba(0, 0, 0, 0.9);
}

.fx-sub {
  position: relative;
  font-size: 10.5px;
  font-style: normal;
  letter-spacing: 0.22em;
  color: #ffdca8;
  opacity: 0;
  animation: fxSub 1s ease-out forwards;
}

.imp-fx.yue .fx-sub { color: #bfe6ff; }
.imp-fx.jbs .fx-sub { color: #e8eefc; }
.imp-fx.gs .fx-sub { color: #ffc0b0; }
.imp-fx.cs .fx-sub { color: #dcc2ff; }
.imp-fx.lei .fx-sub { color: #c9d8ff; }
.imp-fx.kt .fx-sub { color: #ffe3a8; }
.imp-fx.ri .fx-sub { color: #ffeab0; }

/* 技能面板：施展中标记 */
.sk-cur { color: #ffb14e; }

@keyframes fxFade {
  0% { opacity: 0; }
  12% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes fxRing {
  0% { opacity: 0.9; transform: scale(0.25); }
  100% { opacity: 0; transform: scale(2.1); }
}

@keyframes fxSlash {
  0% { opacity: 0; transform: rotate(-22deg) scaleX(0.15); }
  22% { opacity: 1; transform: rotate(-22deg) scaleX(1); }
  60% { opacity: 0.9; transform: rotate(-22deg) scaleX(1); }
  100% { opacity: 0; transform: rotate(-22deg) scaleX(1) translateY(-10px); }
}

@keyframes fxArc {
  0% { opacity: 0; transform: rotate(-50deg) scale(0.4); }
  30% { opacity: 1; transform: rotate(10deg) scale(1); }
  100% { opacity: 0; transform: rotate(90deg) scale(1.25); }
}

@keyframes fxWord {
  0% { opacity: 0; transform: scale(1.6) translateY(6px); }
  22% { opacity: 1; transform: scale(1) translateY(0); }
  70% { opacity: 1; transform: scale(1) translateY(-4px); }
  100% { opacity: 0; transform: scale(1.04) translateY(-16px); }
}

@keyframes fxSub {
  0%, 20% { opacity: 0; transform: translateY(6px); }
  40% { opacity: 0.95; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-10px); }
}

/* ================= 桌面适配 ================= */
@media (min-width: 560px) {
  #app {
    border-left: 1px solid rgba(255, 255, 255, 0.04);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
  }
}

@media (max-height: 680px) {
  .brand { padding-top: 14px; }
  .brand-sigil { width: 64px; height: 64px; font-size: 34px; }
  .brand h1 { font-size: 28px; }
  .log { height: 130px; }
}

/* ================= 成就（怪物图鉴） ================= */
.ach-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.ach-bar > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 9px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(40, 34, 24, 0.7), rgba(16, 16, 14, 0.9));
}

.ach-bar span { font-size: 9px; color: var(--dim); }
.ach-bar b { font-size: 13px; color: var(--gold); }
.ach-bar.four { grid-template-columns: repeat(2, 1fr); }

/* ================= 天关层数排行 ================= */
.tw-rank { margin: 12px 0 10px; }
.tw-rank .rank-row { padding: 8px 10px; }
.tw-rank .sec-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* ================= 套装属性 ================= */
/* ================= 终局地图强化 / 防暴 · 防吸标签 ================= */
.boss-tag.resist {
  color: #dff4ff;
  background: linear-gradient(135deg, #2a5d7a, #7fd4ff);
}
.boss-tag.absorb {
  color: #e9ffe6;
  background: linear-gradient(135deg, #2a7a45, #7fe0a0);
}

.zc-buff {
  margin: 2px 0 6px;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 10px;
  line-height: 1.5;
  color: #ffc9a6;
  border: 1px dashed rgba(255, 138, 92, 0.38);
  background: rgba(255, 120, 70, 0.08);
}

/* ================= 分解额外材料 ================= */
.ip-mat {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-style: normal;
  color: #ffb37a;
  letter-spacing: 0.02em;
}

.bag-salvage-foot .ip-mat {
  display: inline;
  margin-left: 6px;
}

/* ================= 英雄 ================= */
.hero-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(52, 30, 20, 0.9), rgba(16, 14, 14, 0.95));
  margin-bottom: 8px;
}

.hero-card.active {
  border-color: rgba(255, 150, 70, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 130, 50, 0.18) inset, 0 6px 18px rgba(255, 90, 20, 0.16);
}

.hc-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  color: #ffd8ad;
  background: radial-gradient(circle at 35% 30%, #ff9b52, #7a2b12 70%);
  box-shadow: 0 0 14px rgba(255, 120, 50, 0.4);
}

.hc-body { flex: 1; min-width: 0; }
.hc-title { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text); font-weight: 700; }
.hc-desc { margin-top: 4px; font-size: 11px; line-height: 1.55; color: var(--dim); }
.hc-desc b { color: #ffb478; }

.hc-actions { display: flex; gap: 8px; margin-bottom: 12px; }
.hc-actions .btn { flex: 1; }

.tag.inv {
  color: #d8f6ff;
  background: rgba(80, 180, 230, 0.18);
  border: 1px solid rgba(120, 210, 255, 0.4);
}

.tag.on { color: #ffe3b0; background: rgba(255, 160, 60, 0.18); border: 1px solid rgba(255, 170, 70, 0.45); }

.combo-card {
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.combo-card.on {
  border-style: solid;
  border-color: rgba(255, 140, 60, 0.5);
  background: linear-gradient(150deg, rgba(70, 30, 14, 0.8), rgba(20, 14, 12, 0.9));
}

.cc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; }
.cc-row span { color: var(--dim); }
.cc-row b { color: var(--gold); font-size: 12px; }

.cc-track {
  height: 6px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.cc-track i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #ff8a3d, #ffd06a);
  transition: width 0.25s ease;
}

.cc-hint { font-size: 10px; color: var(--dim); letter-spacing: 0.02em; }
.combo-card .btn { margin-top: 2px; }

/* 火龙之心淬炼 */
.heartup-card { border-color: rgba(255, 138, 92, 0.42); }

/* 战斗页英雄状态条 */
.hero-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  margin-bottom: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 150, 70, 0.32);
  background: linear-gradient(120deg, rgba(70, 30, 14, 0.7), rgba(18, 14, 12, 0.9));
}

.hs-ic {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 11px;
  color: #ffd8ad;
  background: radial-gradient(circle at 35% 30%, #ff9b52, #7a2b12 70%);
}

.hs-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hs-body b { font-size: 12px; color: var(--text); }
.hs-body em { font-size: 9px; font-style: normal; color: var(--dim); }

.hs-combo {
  font-size: 9px;
  padding: 3px 7px;
  border-radius: 8px;
  color: #ffd9a8;
  border: 1px solid rgba(255, 160, 70, 0.4);
  background: rgba(255, 140, 50, 0.12);
}

/* 合击特效 */
.imp-fx.long::before {
  background: radial-gradient(60% 45% at 50% 46%, rgba(255, 90, 30, 0.4), rgba(255, 40, 10, 0.1) 55%, transparent 78%);
}

.imp-fx.long .fx-ring {
  border-color: rgba(255, 170, 90, 0.9);
  border-width: 3px;
}

.imp-fx.long .fx-word {
  color: #fff0d0;
  text-shadow: 0 0 14px rgba(255, 90, 30, 1), 0 0 40px rgba(255, 50, 10, 0.8), 0 2px 6px rgba(0, 0, 0, 0.9);
}

/* 战神印特效：烈火印与半月合体，金紫双色 */
.imp-fx.zss::before {
  background:
    radial-gradient(52% 40% at 50% 44%, rgba(255, 205, 90, 0.34), rgba(190, 110, 255, 0.14) 54%, transparent 78%),
    radial-gradient(80% 60% at 50% 50%, rgba(255, 170, 60, 0.12), transparent 72%);
}

.imp-fx.zss .fx-ring {
  border-color: rgba(255, 226, 150, 0.95);
  border-width: 3px;
  box-shadow: 0 0 26px rgba(255, 190, 70, 0.75), inset 0 0 22px rgba(190, 120, 255, 0.35);
}

.imp-fx.zss .fx-slash {
  background: linear-gradient(90deg, transparent, rgba(255, 190, 80, 0.95), #fff6d8, rgba(200, 130, 255, 0.95), transparent);
  box-shadow: 0 0 30px rgba(255, 190, 70, 0.9), 0 0 60px rgba(180, 110, 255, 0.5);
}

.imp-fx.zss .fx-arc {
  border-top-color: rgba(255, 226, 150, 0.95);
  border-right-color: rgba(200, 140, 255, 0.95);
  filter: drop-shadow(0 0 12px rgba(255, 190, 80, 0.7));
}

.imp-fx.zss .fx-word {
  color: #fff8e2;
  text-shadow:
    0 0 14px rgba(255, 190, 60, 1),
    0 0 36px rgba(255, 140, 40, 0.85),
    0 0 60px rgba(180, 110, 255, 0.6),
    0 2px 6px rgba(0, 0, 0, 0.9);
}

.imp-fx.zss .fx-sub {
  color: #ffe7ae;
  text-shadow: 0 0 10px rgba(255, 180, 60, 0.85);
}

/* ================= 红字全服公告（神话掉落 / 首爆） ================= */
.ann-layer {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(6px + env(safe-area-inset-top));
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  pointer-events: none;
}

.ann-item {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 7px 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 90, 90, 0.5);
  background: linear-gradient(90deg, rgba(60, 8, 8, 0.92), rgba(28, 6, 6, 0.94) 45%, rgba(60, 8, 8, 0.92));
  box-shadow: 0 6px 22px rgba(140, 20, 20, 0.45), inset 0 0 18px rgba(255, 70, 70, 0.12);
  animation: annIn 0.34s cubic-bezier(0.2, 1.1, 0.4, 1) both;
  transition: opacity 0.5s, transform 0.5s;
}

.ann-item.out { opacity: 0; transform: translateY(-8px); }

.ann-tag {
  flex: none;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid rgba(255, 110, 110, 0.65);
  background: rgba(255, 60, 60, 0.16);
  color: #ffb0b0;
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.08em;
}

.ann-txt {
  font-size: 11px;
  line-height: 1.45;
  color: #ff6a6a;
  letter-spacing: 0.02em;
  text-shadow: 0 0 10px rgba(255, 60, 60, 0.55);
}

.ann-item.mythic .ann-txt { color: #ff5f5f; font-weight: 700; }

@keyframes annIn {
  from { opacity: 0; transform: translateY(-14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ================= 首爆 / 首杀记录 ================= */
.fs-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  margin-bottom: 10px;
}

.fs-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(24, 22, 20, 0.85);
  font-size: 9.5px;
  color: #9aa7b6;
}

.fs-chip span {
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: rgba(255, 95, 126, 0.14);
  color: #ff8ea1;
  font-size: 9px;
}

.fs-chip b { margin-left: auto; font-size: 9px; font-weight: 600; color: #c8a06a; }
.fs-chip.ok { border-color: rgba(116, 217, 154, 0.35); color: #a9cbb8; }
.fs-chip.ok b { color: var(--green); }

/* 洪荒·火龙首爆：沿用七彩边框，与神话两档区分开 */
.fs-chip.exo {
  border-color: rgba(255, 138, 61, 0.45);
  background: linear-gradient(120deg, rgba(255, 95, 126, 0.12), rgba(255, 181, 69, 0.1), rgba(127, 231, 255, 0.12));
}

.fs-chip.exo span { background: rgba(255, 181, 69, 0.16); color: #ffc46a; }
.fs-chip.exo b { color: #ffb545; }

.fs-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 8px;
  padding: 9px 11px;
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.fs-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #8fa4bb;
}

.fs-row em { font-style: normal; }
.fs-row b { margin-left: auto; font-size: 9px; font-weight: 500; color: #7d8ea3; }
.fs-row.ok { color: #c9a970; }
.fs-row.ok b { color: var(--gold); }

/* ================= 装备强化加成展示 ================= */
.ir-enh {
  margin-top: 8px;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px dashed rgba(116, 217, 154, 0.38);
  background: rgba(60, 140, 96, 0.12);
  font-size: 9.5px;
  color: #9fe0bb;
}

/* 装备转生要求：满足时低调，未满足时放大并高亮，避免玩家忽略 */
.ir-req {
  margin-top: 8px;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 10px;
  line-height: 1.5;
}
.ir-req.ok {
  border: 1px dashed rgba(116, 217, 154, 0.34);
  background: rgba(60, 140, 96, 0.1);
  color: #8fd6ab;
}
.ir-req.bad {
  border: 1px solid rgba(255, 107, 107, 0.6);
  background: rgba(150, 40, 40, 0.22);
  color: #ffd0d0;
  font-size: 13px;
  font-weight: 700;
}

/* ================= 英雄激活形态 ================= */
.hc-next {
  margin-top: 6px;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px dashed rgba(255, 140, 70, 0.35);
  background: rgba(120, 48, 16, 0.16);
  font-size: 9.5px;
  line-height: 1.5;
  color: #e6b58c;
}

.hc-next b { color: #ffb478; }

.hc-desc em {
  font-style: normal;
  color: #ffb478;
  font-weight: 600;
}

.hc-desc em.hc-awake { color: #ff7a4d; }

/* ================= BOSS / 人物头像图 ================= */
.foe-icon img,
.avatar img,
.hero-avatar img,
.rank-avatar img,
.hc-icon img,
.hs-ic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  border-radius: inherit;
  display: block;
}

/* 首领卡边框随狂暴状态强调 */
.foe-card.boss .foe-icon img { box-shadow: inset 0 0 12px rgba(255, 170, 60, 0.25); }

/* ================= 套装属性（按当前穿戴实时判定） ================= */
.set-bonus {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.sb-row {
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.sb-row.on {
  border-color: rgba(255, 190, 90, 0.45);
  background: rgba(255, 180, 70, 0.08);
}

.sb-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #dfeaf7;
}

.sb-name b { font-size: 10px; font-weight: 500; color: var(--dim); }
.sb-row.on .sb-name b { color: var(--gold); }

.sb-txt { margin-top: 5px; font-size: 10px; color: #9aa7b6; }
.set-bonus .setbonus-txt { color: #ff5f5f; font-weight: 600; }
.sb-state { margin-top: 4px; font-size: 9.5px; color: var(--dim); }
.sb-row.on .sb-state { color: var(--gold); }

@media (max-width: 400px) {
  .set-bonus { grid-template-columns: 1fr; }
}

/* ===== 神话品质：装备名用品质色（背包 / 装备栏此前恒为白色） ===== */
[data-q="4"] .icard-name,
[data-q="4"] .es-name,
[data-q="4"] .idetail-name {
  color: #ff5f7e;
}

/* ===== 洪荒品质：装备名七彩流光（仅品质 5 的容器内生效） ===== */
@keyframes qex-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
[data-q="5"] .icard-name,
[data-q="5"] .es-name,
[data-q="5"] .idetail-name {
  background-image: linear-gradient(90deg, #ff4d6d, #ffb84d, #ffe94d, #6bff8f, #4dd2ff, #b47cff, #ff4d6d);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: qex-flow 3.2s linear infinite;
  filter: drop-shadow(0 0 6px rgba(255, 138, 61, 0.35));
}
/* 强化等级等子元素保留自己的颜色，避免被父级的渐变裁切吞掉 */
[data-q="5"] .icard-name em,
[data-q="5"] .idetail-name em {
  -webkit-text-fill-color: #ffd58e;
  color: #ffd58e;
}

/* ===== 混沌品质（特戒专属）：名字同样是七彩流光，配色更偏紫红以区别于洪荒 ===== */
[data-q="6"] .icard-name,
[data-q="6"] .es-name,
[data-q="6"] .idetail-name {
  background-image: linear-gradient(90deg, #ff4dd2, #b47cff, #7fdcff, #a6ff7f, #ffe94d, #ff7a4d, #ff4dd2);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: qex-flow 3.2s linear infinite;
  filter: drop-shadow(0 0 7px rgba(217, 75, 255, 0.5));
}
[data-q="6"] .icard-name em,
[data-q="6"] .idetail-name em {
  -webkit-text-fill-color: #ffd58e;
  color: #ffd58e;
}

/* ===== 挂机战斗统计（可收起 / 展开） ===== */
.bst-card {
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 190, 90, 0.26);
  background: linear-gradient(160deg, rgba(40, 31, 19, 0.92), rgba(13, 12, 10, 0.96));
  overflow: hidden;
}
.bst-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  background: none;
  border: 0;
  cursor: pointer;
  color: #f0d9a8;
  font-size: 12px;
  text-align: left;
}
.bst-ico {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(255, 190, 90, 0.18);
  color: #ffd58e;
  font-size: 10px;
}
.bst-title { font-weight: 600; letter-spacing: 0.5px; }
.bst-brief { margin-left: auto; min-width: 0; flex-shrink: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; color: #a08a63; }
.bst-brief .bst-dia { font-style: normal; color: #7fe0c4; font-weight: 600; }
.bst-arrow { font-size: 10px; color: #a08a63; transition: transform 0.18s ease; }
.bst-card.collapsed .bst-arrow { transform: rotate(-90deg); }
.bst-card.collapsed .bst-body { display: none; }

.bst-body { padding: 0 12px 10px; }
.bst-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 11px;
  color: #9aa7b6;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}
.bst-line b { font-size: 12px; color: #efe6d5; }
.bst-line.dia span { color: #8fb6a9; }
.bst-line.dia b { color: #7fe0c4; }

.bst-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}
.bst-grid div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 10px;
  color: #8c9aab;
}
.bst-grid b { font-size: 11px; color: #ffd58e; }
.bst-grid.dps b { color: #7fe7ff; }

.bst-q {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 6px;
}
.bst-q span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 10px;
}
.bst-q i { font-style: normal; color: var(--q, #93a3b8); }
.bst-q b { font-size: 11px; color: #efe6d5; }
.bst-note { margin-top: 8px; font-size: 9.5px; color: #5a6c84; }

/* ===== 战斗日志（可收起 / 展开） ===== */
.log-card {
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid rgba(110, 180, 255, 0.22);
  background: linear-gradient(160deg, rgba(18, 28, 40, 0.9), rgba(9, 12, 17, 0.96));
  overflow: hidden;
}
.log-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  background: none;
  border: 0;
  cursor: pointer;
  color: #c9dcef;
  font-size: 12px;
  text-align: left;
}
.log-ico {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(110, 200, 255, 0.16);
  color: #9fe0ff;
  font-size: 10px;
}
.log-title { font-weight: 600; letter-spacing: 0.5px; }
.log-brief {
  margin-left: auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  color: #6f88a3;
}
.log-arrow { font-size: 10px; color: #6f88a3; transition: transform 0.18s ease; }
.log-card.collapsed .log-arrow { transform: rotate(-90deg); }
.log-card.collapsed .log { display: none; }
.log-card .log {
  margin: 0 10px 10px;
  height: 168px;
  border-radius: 9px;
}

/* ===== 战斗出战伙伴（坐骑 / 生肖） ===== */
.ally-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
}
.ally-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 7px 9px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.ally-chip.on.mount {
  border-color: rgba(127, 212, 255, 0.34);
  background: linear-gradient(120deg, rgba(18, 46, 62, 0.82), rgba(13, 15, 20, 0.9));
}
.ally-chip.on.pet {
  border-color: rgba(185, 140, 255, 0.34);
  background: linear-gradient(120deg, rgba(42, 26, 60, 0.82), rgba(13, 15, 20, 0.9));
}
.ally-ic {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 11px;
  color: #dbe9f7;
  background: radial-gradient(circle at 35% 30%, #4a6b8a, #16202c 72%);
}
.ally-chip.on.mount .ally-ic {
  background: radial-gradient(circle at 35% 30%, #7fd4ff, #14435c 72%);
  color: #eaf9ff;
}
.ally-chip.on.pet .ally-ic {
  background: radial-gradient(circle at 35% 30%, #b98cff, #2f1a4d 72%);
  color: #f4ecff;
}
.ally-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ally-body b {
  display: block;
  font-size: 11.5px;
  color: #e6eef8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ally-lv { font-size: 9px; font-weight: 400; color: #8fa4bb; }
.ally-body em {
  font-style: normal;
  font-size: 9px;
  color: #8fa4bb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ally-chip.off .ally-ic { filter: grayscale(1); opacity: 0.5; }
.ally-chip.off .ally-body b { color: #6b7d92; }
.ally-chip.off .ally-body em { color: #55677c; }

/* ===== 拘灵 ===== */
.jl-top { display: flex; gap: 8px; align-items: stretch; margin-bottom: 7px; }
.jl-top .jl-sum { flex: 1; margin-bottom: 0; }
/* 分页控件：右上角，上一页 / 页码 / 下一页 */
.jl-page {
  flex: 0 0 auto; display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 3px;
  padding: 5px 8px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--panel);
}
.jl-page b { font-size: 11px; color: var(--gold); font-variant-numeric: tabular-nums; }
.jl-page .mini-btn { padding: 3px 8px; font-size: 10px; }

/* 仙界副本当日首领进度（与额度用完提示共用同一位置，二选一显示） */

.jl-sum { display: flex; gap: 8px; margin-bottom: 7px; }
.jl-sum > div {
  flex: 1; padding: 9px 10px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--panel);
  display: flex; flex-direction: column; gap: 3px;
}
.jl-sum span { font-size: 10px; color: var(--dim); }
.jl-sum b { font-size: 15px; color: var(--gold); font-variant-numeric: tabular-nums; }
.jl-tip { font-size: 10px; color: var(--dim); margin: 0 2px 9px; }

.jl-card {
  position: relative; display: flex; gap: 8px; padding: 8px; margin-bottom: 0;
  border-radius: 13px; border: 1px solid var(--line); background: var(--panel); overflow: hidden;
}
.jl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 560px) { .jl-grid { grid-template-columns: repeat(2, 1fr); } }
/* 升 1 级 / 升 5 级一排，升 10 级独占下一排 */
.jl-act { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.jl-act .mini-btn:last-child { grid-column: 1 / -1; }
.jl-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 100% at 0% 0%, rgba(185, 140, 255, 0.09), transparent 62%);
}
.jl-card.maxed { border-color: rgba(255, 196, 107, 0.34); }
.jl-card.locked { opacity: 0.62; }

.jl-pic {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 9px;
  border: 1px solid var(--line-2); background-color: #202020;
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center; position: relative;
  align-self: center;   /* 卡片变高时头像始终垂直居中 */
}
.jl-pic i { font-style: normal; font-size: 18px; color: #7a6a55; }
.jl-pic b {
  position: absolute; right: 3px; bottom: 1px; font-size: 9px; font-weight: 600;
  color: #ffe6bb; text-shadow: 0 0 4px #000, 0 1px 2px #000;
}

.jl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.jl-title { display: flex; align-items: baseline; gap: 6px; font-size: 12px; font-weight: 600; }
.jl-title em { font-style: normal; font-size: 10px; font-weight: 500; color: var(--purple); }
.jl-bar { height: 4px; border-radius: 2px; background: #2a2a2a; overflow: hidden; }
.jl-bar i { display: block; height: 100%; background: linear-gradient(90deg, #7f6bff, #b98cff); }
.jl-card.maxed .jl-bar i { background: linear-gradient(90deg, #c07f2e, #ffc46b); }
.jl-nums { display: flex; gap: 10px; font-size: 10px; color: var(--dim); }
.jl-nums b { color: #e0d2ff; font-weight: 600; font-variant-numeric: tabular-nums; }
.jl-nums .dim { color: #6f6f6f; margin-left: auto; }
.jl-act .mini-btn { font-size: 10px; padding: 4px 6px; text-align: center; }
.jl-done { font-size: 10px; color: var(--gold); }

/* ===== 试炼入口条（天关 / 世界BOSS / 卧龙山庄 / 至尊幻境） ===== */
.gate-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}
.gate-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 2px 7px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(42, 34, 24, 0.9), rgba(20, 18, 14, 0.92));
  color: var(--txt);
  font-family: inherit;
  cursor: pointer;
  transition: 0.15s;
}
.gate-tile:active { transform: scale(0.96); }
.gate-tile.off { opacity: 0.55; }
.gate-tile b { font-size: 11px; font-weight: 600; letter-spacing: 0.02em; }
.gate-tile em {
  font-style: normal;
  font-size: 9px;
  color: #b09a7c;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* 入口文字配色：每个功能一组主色 / 同色系暗调，名称与下方小字都着色 */
.gate-tile[data-key="tower"] b { color: #f5d08a; }
.gate-tile[data-key="tower"] em { color: #c2a065; }
.gate-tile[data-key="artifact"] b { color: #c9a4ff; }
.gate-tile[data-key="artifact"] em { color: #9678cc; }
.gate-tile[data-key="noble"] b { color: #ffcb82; }
.gate-tile[data-key="noble"] em { color: #bd9358; }
.gate-tile[data-key="mirage"] b { color: #8fd9ff; }
.gate-tile[data-key="mirage"] em { color: #69a8c4; }
.gate-tile[data-key="beta"] b { color: #ffa287; }
.gate-tile[data-key="beta"] em { color: #c07a63; }
.gate-tile[data-key="skill"] b { color: #ffc078; }
.gate-tile[data-key="skill"] em { color: #bf8752; }
.gate-tile[data-key="wish"] b { color: #ffa6bf; }
.gate-tile[data-key="wish"] em { color: #c07b8c; }
.gate-tile[data-key="welfare"] b { color: #d8ec8a; }
.gate-tile[data-key="welfare"] em { color: #9aa862; }

/* 幻境战斗条 */
.zone-bar.mir {
  position: relative;
  min-height: 68px;
  padding: 0 10px;
  border-radius: 14px;
  border: 1px solid rgba(185, 140, 255, 0.4);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.zone-bar.mir::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(24, 12, 40, 0.55), rgba(10, 6, 18, 0.9));
}
.zone-bar.mir > * { position: relative; z-index: 1; }
.zone-bar.mir .zone-title strong { color: #e6d6ff; text-shadow: 0 2px 12px #000; }
.zone-bar.mir .zone-title span { color: #cbb8ee; }
.zone-bar.mir #mirage-left { color: var(--gold); font-variant-numeric: tabular-nums; }
.zone-nav.wide {
  flex: 0 0 auto;
  width: auto;
  height: 30px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 11px;
  color: #e6d6ff;
  border-color: rgba(185, 140, 255, 0.4);
  background: rgba(38, 22, 60, 0.9);
}

/* ===== 世界BOSS ===== */
.wb-hero {
  display: flex; gap: 10px; align-items: center;
  padding: 12px; margin-bottom: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 120, 90, 0.34);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255, 110, 80, 0.16), transparent 62%),
    linear-gradient(160deg, rgba(46, 20, 16, 0.95), rgba(18, 11, 10, 0.95));
}
.wb-hero.dead { filter: grayscale(0.5); opacity: 0.8; }
.wb-face {
  flex: 0 0 58px; width: 58px; height: 58px; border-radius: 12px;
  border: 1px solid var(--line-2);
  background-color: #201414; background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
}
.wb-face i { font-style: normal; font-size: 20px; color: #a5715f; }
.wb-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.wb-title { display: flex; align-items: baseline; gap: 6px; }
.wb-title b { font-size: 15px; color: #ffd9c8; letter-spacing: 0.04em; }
.wb-title em { font-style: normal; font-size: 10px; color: #ff9d7c; }
.wb-sub { font-size: 9.5px; color: #b39086; }
.wb-bar { height: 12px; }
.wb-bar i { background: linear-gradient(90deg, #8e2b1c, #ff8a5c); }
.wb-state { font-size: 9.5px; color: #c9a291; font-variant-numeric: tabular-nums; }
.wb-stats { display: flex; gap: 8px; margin: 8px 0 4px; }
.wb-stats > div {
  flex: 1; padding: 8px 10px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--panel);
  display: flex; flex-direction: column; gap: 2px;
}
.wb-stats span { font-size: 9.5px; color: var(--dim); }
.wb-stats b { font-size: 13px; color: var(--gold); font-variant-numeric: tabular-nums; }
.wb-rank { margin-bottom: 8px; }
.wb-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 9px; margin-bottom: 4px;
  border-radius: 9px; border: 1px solid var(--line);
  background: var(--panel);
  font-size: 11px;
}
.wb-row.me { border-color: rgba(255, 196, 107, 0.4); background: rgba(58, 42, 20, 0.55); }
.wb-row b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.wb-row em { font-style: normal; color: #ffb48a; font-variant-numeric: tabular-nums; }
.wb-row span { font-size: 9.5px; color: var(--dim); width: 42px; text-align: right; }
/* 爵位一览：祝福文字较长，名称 / 状态占第一行，祝福另起一行显示，避免拥挤截断 */
.wb-row.noble-row { flex-wrap: wrap; align-items: flex-start; row-gap: 3px; }
.wb-row.noble-row b { white-space: normal; overflow: visible; }
.wb-row.noble-row span { order: 2; width: auto; max-width: 48%; text-align: right; line-height: 1.5; }
.wb-row.noble-row em { order: 3; flex: 1 0 100%; line-height: 1.55; white-space: normal; word-break: break-word; }
.wb-no {
  font-style: normal; width: 18px; height: 18px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 9.5px; font-weight: 700; color: #8fa4ba;
  background: rgba(255, 255, 255, 0.06);
}
.wb-no.top { color: #1d1204; background: linear-gradient(135deg, #c6984b, #f0cf94); }

/* ===== 卧龙山庄 ===== */
.vl-hero {
  display: flex; gap: 10px; align-items: center;
  padding: 12px; margin-bottom: 8px;
  border-radius: 14px;
  border: 1px solid rgba(140, 210, 150, 0.3);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(110, 200, 130, 0.14), transparent 62%),
    linear-gradient(160deg, rgba(20, 38, 24, 0.95), rgba(12, 20, 14, 0.95));
}
.vl-face {
  flex: 0 0 58px; width: 58px; height: 58px; border-radius: 12px;
  border: 1px solid var(--line-2);
  background-color: #142015; background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
}
.vl-face i { font-style: normal; font-size: 20px; color: #6f9a76; }
.vl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.vl-title { display: flex; align-items: baseline; gap: 6px; }
.vl-title b { font-size: 15px; color: #d9f2dd; }
.vl-title em { font-style: normal; font-size: 10px; color: #9ad6a0; }
.vl-sub { font-size: 9.5px; color: #96b39c; }
.vl-try { font-size: 9.5px; color: #c8dcc9; }
.vl-reward {
  padding: 9px 11px; margin: 8px 0;
  border-radius: 11px; border: 1px solid var(--line);
  background: var(--panel);
}
.vr-line { font-size: 10px; color: #c9b18a; line-height: 1.7; }

/* ===== 至尊幻境 ===== */
.mi-pool {
  padding: 11px 12px; margin-bottom: 8px;
  border-radius: 13px;
  border: 1px solid rgba(185, 140, 255, 0.32);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(150, 110, 255, 0.16), transparent 62%),
    linear-gradient(160deg, rgba(30, 20, 48, 0.95), rgba(14, 11, 22, 0.95));
}
.mp-head { display: flex; align-items: baseline; justify-content: space-between; }
.mp-head b { font-size: 13px; color: #e6d6ff; font-variant-numeric: tabular-nums; }
.mp-head span { font-size: 10px; color: #b9a6dd; font-variant-numeric: tabular-nums; }
.mp-track { height: 5px; margin: 7px 0 6px; border-radius: 4px; background: #241a36; overflow: hidden; }
.mp-track i { display: block; height: 100%; background: linear-gradient(90deg, #7f6bff, #b98cff); transition: width 0.3s; }
.mp-sub { font-size: 9.5px; color: #a795c4; line-height: 1.6; }
.mp-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(185, 140, 255, 0.18); }
.mp-buy span { font-size: 10px; color: #c9b6e6; font-variant-numeric: tabular-nums; }
.mp-buy-btns { display: flex; gap: 6px; width: 100%; }
.mp-buy .mini-btn { flex: 1; padding: 6px 4px; font-size: 10px; }
.mi-buy { display: flex; gap: 6px; margin-bottom: 8px; }
.mi-buy .mini-btn { flex: 1; padding: 7px 4px; font-size: 10px; }
.mi-live {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 11px; margin-bottom: 8px;
  border-radius: 11px; border: 1px solid rgba(255, 196, 107, 0.34);
  background: rgba(52, 38, 18, 0.6);
  font-size: 10.5px; color: #ffe0b0;
}
/* 幻境地图两图一行 */
.mi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin-bottom: 8px; }
.mi-grid .empty-note { grid-column: 1 / -1; }
.mi-card {
  display: flex; flex-direction: column; gap: 5px; padding: 6px;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel); overflow: hidden; position: relative; min-width: 0;
}
.mi-card.on { border-color: rgba(185, 140, 255, 0.5); box-shadow: 0 0 18px rgba(150, 110, 255, 0.14) inset; }
.mi-card.locked { opacity: 0.6; }
.mi-pic {
  flex: 0 0 auto; width: 100%; aspect-ratio: 1 / 1; border-radius: 7px;
  border: 1px solid var(--line-2);
  background-color: #1a1424; background-size: cover; background-position: center;
  position: relative; display: flex; align-items: flex-end; justify-content: flex-end;
}
.mi-pic b {
  font-size: 8.5px; font-weight: 600; color: #ffe6bb;
  text-shadow: 0 0 4px #000, 0 1px 2px #000; padding: 1px 3px;
}
.mi-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mi-sub { font-size: 8.5px; color: var(--dim); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mi-nums { display: flex; flex-wrap: wrap; gap: 2px 6px; font-size: 8.5px; color: #b9a6dd; }
.mi-nums .dim { color: #6f6f6f; }
.mi-drops { font-size: 8.5px; color: #c8b6e8; line-height: 1.4; word-break: break-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mi-act { margin-top: auto; }
.mi-act .mini-btn { font-size: 9.5px; width: 100%; padding: 4px 2px; }

/* 试炼实时面板（世界BOSS / 卧龙山庄共用） */
.duel-card {
  padding: 10px 12px; margin-bottom: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 150, 100, 0.34);
  background: linear-gradient(160deg, rgba(58, 34, 20, 0.9), rgba(20, 14, 10, 0.92));
}
.duel-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.duel-head b { font-size: 12px; color: #ffcf9a; letter-spacing: 0.06em; }
.duel-head span { font-size: 11px; font-weight: 700; color: #ff9d5c; font-variant-numeric: tabular-nums; }
.duel-sub { margin-top: 6px; font-size: 9.5px; color: #c0a086; line-height: 1.6; }

/* 试炼条（世界BOSS / 卧龙山庄交战中）：与天关条同位置，整条可点回面板 */
.tower-bar.trial {
  display: block;
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  border-color: rgba(255, 150, 100, 0.42);
  background: linear-gradient(150deg, rgba(64, 34, 18, 0.8), rgba(22, 16, 12, 0.92));
}
.tower-bar.trial .tb-sub { margin-top: 4px; font-size: 9.5px; color: #c9a488; }

/* =========================================================
   攻略页（g2）：金色标题 + 横向滚动标签栏 + 单栏小节
   ========================================================= */
.guide2 { padding: 2px 0 8px; }
.g2-tabs {
  display: flex; gap: 6px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 8px 10px; margin-bottom: 10px;
  border-radius: 12px;
  background: rgba(22, 22, 22, 0.9);
  border: 1px solid var(--line);
  scrollbar-width: none;
}
.g2-tabs::-webkit-scrollbar { display: none; }
.g2-tab {
  flex: 0 0 auto;
  padding: 5px 12px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--dim);
  font-size: 11.5px; font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.g2-tab.on {
  color: var(--gold);
  border-color: var(--gold-deep);
  background: rgba(160, 118, 46, 0.16);
}
.g2-body { padding: 0 2px; }
.g2-body h4 {
  margin: 14px 0 6px;
  font-size: 13px; font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.g2-body h4:first-child { margin-top: 2px; }
.g2-body p {
  margin: 0 0 4px;
  font-size: 11.5px; line-height: 1.8;
  color: var(--txt);
}
.g2-body b { color: var(--gold); font-weight: 600; }
/* 点开标签后，顶部先给一段该系统说明 */
.g2-intro {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--gold-deep);
  background: rgba(160, 118, 46, 0.10);
}
.g2-intro b { display: block; margin-bottom: 4px; font-size: 12.5px; color: var(--gold); font-weight: 700; }
.g2-intro p { margin: 0; font-size: 11.5px; line-height: 1.8; color: var(--txt); }

/* 坐骑 / 生肖卡片与出战格的图片填充 */
.gc-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.ally-ic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* ===== 仙界修炼 ===== */
.fairy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 8px;
}
.fairy-row .fy-ic {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  flex: none;
}
.fairy-row .fy-body { flex: 1; min-width: 0; }
.fairy-row .fy-name { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.fairy-row .fy-tag { font-size: 9px; font-weight: 400; color: #8fa3ba; border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; padding: 1px 6px; }
.fairy-row .fy-desc { font-size: 10px; color: #8fa3ba; margin-top: 3px; line-height: 1.5; }
.art-top {
  display: flex; gap: 8px; margin-top: 8px;
}
.art-top > div {
  flex: 1; min-width: 0;
  padding: 7px 8px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel);
  display: flex; flex-direction: column; gap: 2px;
}
.art-top span { font-size: 9px; color: var(--dim); }
.art-top b { font-size: 12.5px; color: var(--gold); font-variant-numeric: tabular-nums; }
.art-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.art-row {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 12px;
  border: 1px solid rgba(150, 110, 255, 0.28);
  background: linear-gradient(160deg, rgba(34, 24, 52, 0.9), rgba(16, 12, 24, 0.9));
}
.art-row.locked { opacity: 0.5; border-color: var(--line); }
.art-ic {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #e2c3ff;
  border: 1px solid rgba(185, 140, 255, 0.35);
  background: rgba(150, 110, 255, 0.12);
}
.art-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.art-title { display: flex; align-items: baseline; gap: 6px; }
.art-title b { font-size: 12px; color: #e6d6ff; }
.art-title em { font-style: normal; font-size: 8.5px; color: #b98cff; border: 1px solid rgba(185, 140, 255, 0.3); border-radius: 4px; padding: 0 3px; }
.art-sub { font-size: 9px; color: #a795c4; font-variant-numeric: tabular-nums; }
.art-track { height: 4px; border-radius: 3px; background: #241a36; overflow: hidden; }
.art-track i { display: block; height: 100%; background: linear-gradient(90deg, #7f6bff, #b98cff); }
.art-lock { font-size: 9.5px; color: var(--dim); }
/* 神器专属效果：直接写在对应神器条目下方 */
.art-fx { display: flex; flex-direction: column; gap: 3px; margin-top: 2px; }
.art-fx p { margin: 0; font-size: 9.5px; line-height: 1.55; color: #a795c4; }
.art-fx b { color: #ffd479; font-weight: 600; font-variant-numeric: tabular-nums; }


/* ===== 境界 ===== */
.jj-hero { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 10px; background: linear-gradient(135deg, rgba(255,212,121,0.10), rgba(127,212,168,0.06)); border: 1px solid rgba(255,212,121,0.18); }
.jj-big { font-size: 22px; font-weight: 700; color: #ffe3a3; letter-spacing: 2px; display: flex; align-items: baseline; gap: 10px; }
.jj-big em { font-style: normal; font-size: 13px; color: #7fd4a8; letter-spacing: 1px; }
.jj-bonus { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: #9aa4b2; }
.jj-bonus b { color: #7fe0a0; font-variant-numeric: tabular-nums; }
.jj-dots { display: flex; gap: 6px; margin: 10px 0; }
.jj-dot { flex: 1; text-align: center; font-size: 11px; padding: 5px 0; border-radius: 6px; background: rgba(255,255,255,0.04); color: #6f7885; }
.jj-dot.done { background: rgba(127,212,168,0.14); color: #7fd4a8; }
.jj-dot.on { background: rgba(255,212,121,0.16); color: #ffd479; font-weight: 600; }
.fairy-row .fy-tag.open { color: #7fd4a8; border-color: rgba(127,212,168,0.4); background: rgba(127,212,168,0.08); }

/* ===== 新手引导浮层 ===== */
.guide-hud {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 40;
  width: min(230px, 62vw);
  pointer-events: none;
}
.guide-hud .guide-card,
.guide-hud .guide-fold-btn { pointer-events: auto; }
.guide-card {
  background: linear-gradient(160deg, rgba(28,38,54,0.96), rgba(18,26,40,0.96));
  border: 1px solid rgba(255,196,107,0.35);
  border-radius: 10px;
  padding: 9px 10px 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
}
.guide-head { display: flex; align-items: center; gap: 6px; }
.guide-badge {
  font-size: 10px; font-weight: 700; color: #1a1408;
  background: linear-gradient(90deg, #ffd98a, #ffb547);
  padding: 2px 7px; border-radius: 8px; white-space: nowrap;
}
.guide-count { font-size: 10px; color: var(--gold); margin-left: auto; }
.guide-fold {
  width: 20px; height: 20px; line-height: 18px; text-align: center;
  border: 1px solid rgba(255,255,255,0.18); border-radius: 5px;
  background: rgba(255,255,255,0.05); color: var(--dim); font-size: 14px; cursor: pointer;
}
.guide-name {
  margin-top: 7px; font-size: 13px; font-weight: 700; color: #ffe9c4;
  display: flex; align-items: center; gap: 6px;
}
.guide-name .tag.ok { color: var(--green); border-color: rgba(116,217,154,0.4); background: rgba(116,217,154,0.1); font-size: 9px; }
.guide-desc { margin-top: 3px; font-size: 10.5px; color: #b9c6d6; line-height: 1.5; }
.guide-bar {
  position: relative; height: 7px; margin-top: 8px; border-radius: 5px;
  background: rgba(255,255,255,0.08); overflow: hidden;
}
.guide-bar i { display: block; height: 100%; background: linear-gradient(90deg, #c07f2e, #ffd479); transition: width .3s; }
.guide-bar span { position: absolute; right: 2px; top: -12px; font-size: 9px; color: var(--gold); }
.guide-reward { margin-top: 8px; font-size: 10px; color: var(--dim); }
.guide-actions { display: flex; gap: 6px; margin-top: 9px; }
.guide-actions .btn { flex: 1; font-size: 11px; padding: 6px 4px; }
.guide-fold-btn {
  position: relative; width: 40px; height: 40px; margin-left: auto;
  border-radius: 50%; border: 2px solid rgba(255,196,107,0.6);
  background: linear-gradient(160deg, rgba(40,52,70,0.96), rgba(20,28,42,0.96));
  color: var(--gold); font-size: 11px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.guide-fold-btn .gf-step { display: block; font-size: 16px; line-height: 20px; }

/* ===== 新手指引面板步骤 ===== */
.guide-step {
  display: flex; gap: 10px; padding: 11px 4px;
  border-bottom: 1px dashed rgba(255,255,255,0.07);
}
.guide-step:last-child { border-bottom: 0; }
.guide-step .gs-no {
  flex: 0 0 24px; width: 24px; height: 24px; line-height: 22px; text-align: center;
  border-radius: 50%; font-size: 11px; font-weight: 700;
  border: 1px solid rgba(255,255,255,0.2); color: var(--dim);
}
.guide-step.done .gs-no { color: #10281a; background: var(--green); border-color: var(--green); }
.guide-step.current .gs-no { color: #1a1408; background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,196,107,0.15); }
.guide-step .gs-main { flex: 1; min-width: 0; }
.guide-step .gs-title { font-size: 12px; color: #e2eefb; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.guide-step .gs-title .tag { font-size: 9px; }
.guide-step .gs-desc { margin-top: 3px; font-size: 10px; color: #b9c6d6; line-height: 1.5; }
.guide-step .gs-hint { margin-top: 4px; font-size: 9.5px; color: #ffd479; line-height: 1.5; }
.guide-step .gs-reward { margin-top: 3px; font-size: 9.5px; color: var(--dim); }
.guide-step .gs-chapter { font-size: 11px; color: var(--gold); font-weight: 700; margin-bottom: 3px; }
.guide-step .gs-story { font-size: 9.5px; color: #93a8c0; line-height: 1.55; margin-bottom: 5px; text-align: justify; }

/* 浮层剧情：默认两行截断，点击展开 */
.guide-chapter { margin-top: 7px; font-size: 10px; color: var(--gold); font-weight: 700; }
.guide-story {
  margin-top: 3px; font-size: 9.5px; line-height: 1.5; color: #93a8c0;
  text-align: justify; cursor: pointer;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.guide-story.open { display: block; }
.guide-story::after { content: ' ▸ 点开看剧情'; color: #ffd479; font-size: 9px; }
.guide-story.open::after { content: ' ▾ 收起'; }

/* ===== 发奖台·结构化装备选择区 ===== */
.gear-pick {
  margin-top: 14px; padding: 11px 12px 4px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(8, 14, 24, 0.7);
}
.gear-on {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--gold);
  cursor: pointer; margin-bottom: 9px;
}
.gear-on input { width: 16px; height: 16px; accent-color: #c9a24a; cursor: pointer; }
.gear-kind { display: flex; gap: 6px; margin-bottom: 8px; }
.gear-kind .g2-tab { padding: 4px 11px; font-size: 11px; }
.gear-row { display: flex; gap: 10px; }
.gear-row .field { flex: 1; min-width: 0; }
.gear-pick .field { margin-bottom: 10px; }
.gear-pick select {
  width: 100%; padding: 10px 11px; font-size: 14px; font-family: inherit;
  color: var(--txt); background: rgba(5, 10, 17, 0.9);
  border: 1px solid var(--line); border-radius: 10px; outline: none;
}
.gear-pick select:focus { border-color: rgba(127, 212, 255, 0.6); }

/* 装备图鉴：部位属性明细 */
.ec-slot .ec-add {
  font-style: normal;
  font-size: 8px;
  line-height: 1.2;
  color: #7e90a6;
  white-space: nowrap;
}
.ec-slot.on .ec-add { color: #f4d9a0; }
.ec-title span { font-size: 9px; }

/* ===== 五行灵根：环形五角星 ===== */
.wx-total { color: #59c8ff; font-weight: 700; }
.wx-wheel {
  position: relative;
  width: min(100%, 330px);
  aspect-ratio: 1 / 1;
  margin: 14px auto 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 46%, rgba(120, 96, 60, 0.28), rgba(24, 20, 16, 0.96) 62%, rgba(12, 10, 8, 0.98) 100%);
  border: 2px solid #4a3b28;
  box-shadow: inset 0 0 34px rgba(0, 0, 0, 0.85), 0 0 0 4px rgba(0, 0, 0, 0.28), 0 0 18px rgba(255, 196, 107, 0.08);
}
.wx-wheel::before {
  content: ''; position: absolute; inset: 10px; border-radius: 50%;
  border: 1px solid rgba(255, 212, 121, 0.16);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.7);
}
.wx-wheel-inner { position: absolute; inset: 0; }
.wx-star { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wx-star line { fill: none; stroke-linecap: round; }
.wx-star-glow line { stroke-width: 3.2; opacity: 0.18; filter: blur(1.6px); }
.wx-star-line line { stroke-width: 0.9; opacity: 0.85; }
.wx-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 40% 35%, rgba(255, 220, 150, 0.16), rgba(20, 16, 12, 0.9) 70%);
  border: 1px solid rgba(255, 212, 121, 0.28);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.8), 0 0 12px rgba(255, 196, 107, 0.12);
  color: rgba(255, 220, 160, 0.34); font-size: 17px; font-weight: 700;
  line-height: 1.1; text-align: center; letter-spacing: 2px;
}
.wx-node {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: 78px; text-align: center; z-index: 2;
}
.wx-jin { left: 50%; top: 16%; }
.wx-shui { left: 87%; top: 40%; }
.wx-mu { left: 74%; top: 72%; }
.wx-huo { left: 26%; top: 72%; }
.wx-tu { left: 13%; top: 40%; }
.wx-orb {
  width: 42px; height: 42px; line-height: 38px; border-radius: 50%;
  font-size: 19px; font-weight: 700; color: #1a1408;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.65), var(--wc) 46%, rgba(0, 0, 0, 0.55) 118%);
  border: 2px solid var(--wc);
  box-shadow: 0 0 12px var(--wc), inset 0 0 8px rgba(0, 0, 0, 0.45);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.25);
}
.wx-lv { font-size: 12px; font-weight: 700; color: #8fe6a8; text-shadow: 0 1px 3px #000; white-space: nowrap; }
.wx-lv small { font-size: 9px; color: #7d8fa3; font-weight: 400; }
.wx-eff { font-size: 9.5px; color: #bcd0e4; white-space: nowrap; text-shadow: 0 1px 3px #000; }
.wx-legend {
  display: flex; flex-wrap: wrap; gap: 5px 10px; justify-content: center;
  font-size: 9.5px; line-height: 1.5; margin: 6px 0 12px;
}
.wx-legend span {
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px; padding: 2px 8px;
}

/* ===== 七星神剑：七把北斗剑修炼 ===== */
.qx-hero {
  display: flex; flex-direction: column; gap: 8px; padding: 12px;
  border-radius: 10px; margin-bottom: 10px;
  background: linear-gradient(135deg, rgba(255, 210, 127, 0.12), rgba(127, 216, 168, 0.05));
  border: 1px solid rgba(255, 210, 127, 0.2);
}
.qx-big { font-size: 16px; font-weight: 700; color: var(--gold); }
.qx-big em { font-style: normal; font-size: 11px; color: #d8c49a; margin-left: 6px; }
.qx-bonus { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 10px; color: #b9c6d6; }
.qx-bonus b { color: #ffe0a3; }
.qx-row {
  --qx-color: #ffd27f;
  padding: 10px 12px; margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07); border-left: 2px solid var(--qx-color); border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}
.qx-head { display: flex; align-items: center; gap: 10px; }
.qx-ic {
  flex: none; width: 32px; height: 32px; line-height: 30px; text-align: center;
  border-radius: 9px; font-size: 15px; font-weight: 700; color: #12141c;
  background: radial-gradient(circle at 34% 28%, #ffffff, var(--qx-color) 70%);
  border: 1px solid var(--qx-color); box-shadow: 0 0 10px var(--qx-color);
}
.qx-body { flex: 1; min-width: 0; }
.qx-name { font-size: 12px; font-weight: 700; color: var(--qx-color); display: flex; align-items: center; gap: 6px; }
.qx-desc { font-size: 10px; color: #8fa3ba; margin-top: 3px; }
.qx-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); margin-top: 6px; overflow: hidden; }
.qx-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.25), var(--qx-color)); }
.qx-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.qx-foot span { font-size: 9.5px; color: #93a8c0; }
.qx-acts { display: flex; gap: 6px; }
.qx-acts .mini-btn { font-size: 10px; }

/* ---------- 神王番天印（法宝） ---------- */
.fb-hero { display: flex; align-items: center; gap: 12px; padding: 12px; margin: 8px 0;
  border: 1px solid rgba(255, 106, 106, 0.18); border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 106, 106, 0.08), rgba(255, 255, 255, 0.02)); }
.fb-hero.on { border-color: rgba(255, 106, 106, 0.42); box-shadow: 0 0 16px rgba(255, 106, 106, 0.12) inset; }
.fb-seal { flex: none; width: 52px; height: 52px; line-height: 50px; text-align: center;
  font-size: 26px; font-weight: 700; color: #fbe3e3;
  border-radius: 12px; border: 2px solid #7a3b3b;
  background: radial-gradient(circle at 36% 28%, #b95353, #5a2222 72%);
  box-shadow: 0 0 14px rgba(255, 106, 106, 0.32); text-shadow: 0 1px 4px #000; }
.fb-hero.on .fb-seal { border-color: #ff6a6a; background: radial-gradient(circle at 36% 28%, #ff8a8a, #8a2e2e 72%); }
.fb-info { flex: 1; min-width: 0; }
.fb-name { font-size: 13px; font-weight: 700; color: #ff8a8a; display: flex; align-items: center; gap: 7px; }
.fb-lv { font-size: 10.5px; color: #b9c6d6; margin-top: 5px; }
.fb-lv b { color: #ffe0a3; }
.fb-bar { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.08); margin-top: 7px; overflow: hidden; }
.fb-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #b95353, #ff6a6a); }
.fb-bonus { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 10.5px; color: #b9c6d6; padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 10px; background: rgba(255, 255, 255, 0.02); }
.fb-bonus b { color: #8fe6a8; }
.fb-fx { font-size: 10px; color: #d8b9b9; margin: 8px 2px 2px; line-height: 1.6; }
.fb-fx b { color: #ff8a8a; }

/* ---------- 神龙属性（麒麟臂 / 龙神炼体 / 祖龙血脉 / 祖龙圣魂） ---------- */
.sl-bonus { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 10.5px; color: #b9c6d6;
  padding: 8px 12px; margin: 8px 0; border: 1px solid rgba(255, 176, 102, 0.14);
  border-radius: 10px; background: rgba(255, 176, 102, 0.05); }
.sl-bonus b { color: #ffd27f; }
.sl-row { border: 1px solid rgba(255, 176, 102, 0.14); border-radius: 12px; padding: 10px 12px; margin: 8px 0;
  background: rgba(255, 255, 255, 0.02); }
.sl-head { display: flex; align-items: center; gap: 10px; }
.sl-ic { flex: none; width: 40px; height: 40px; line-height: 38px; text-align: center; font-size: 19px; font-weight: 700;
  color: #fff2df; border-radius: 10px; border: 2px solid var(--sl-color, #ffb066);
  background: radial-gradient(circle at 36% 28%, rgba(255,176,102,0.5), rgba(90,50,20,0.65) 72%); }
.sl-body { flex: 1; min-width: 0; }
.sl-name { font-size: 12.5px; font-weight: 700; color: var(--sl-color, #ffb066); display: flex; align-items: center; gap: 7px; }
.sl-text { font-size: 10px; color: #b9c6d6; margin-top: 4px; }
/* 麒麟臂累计总属性：单独一行高亮，强调当前累计攻击 */
.sl-total { margin-top: 6px; font-size: 10.5px; color: #ffcf8a; display: flex; align-items: baseline; gap: 7px; }
.sl-total b { font-size: 15px; font-weight: 800; color: #ffdf8f; text-shadow: 0 0 9px rgba(255, 190, 90, 0.6); }
.sl-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); margin-top: 6px; overflow: hidden; }
.sl-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.25), var(--sl-color, #ffb066)); }
.sl-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.sl-foot span { font-size: 9.5px; color: #93a8c0; }
.sl-btns { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.sl-btns .btn { padding: 5px 12px; }

/* ===== 公测庆典 ===== */
.beta-panel { padding-bottom: 8px; }
.beta-hero {
  padding: 14px 12px 12px;
  border: 1px solid rgba(255, 202, 112, 0.28);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(93, 53, 20, 0.62), rgba(26, 20, 18, 0.96) 58%, rgba(18, 29, 38, 0.94));
  box-shadow: inset 0 1px rgba(255, 235, 190, 0.06), 0 8px 22px rgba(0, 0, 0, 0.16);
}
.beta-hero-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.beta-hero-title b { color: #ffe0a0; font-size: 19px; letter-spacing: 0.14em; text-shadow: 0 0 16px rgba(255, 190, 80, 0.25); }
.beta-hero-title span { color: #b9a787; font-size: 9.5px; letter-spacing: 0.08em; }
.beta-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 12px; }
.beta-stats div { padding: 8px 3px; text-align: center; border-radius: 9px; background: rgba(5, 10, 16, 0.34); border: 1px solid rgba(255, 220, 160, 0.07); }
.beta-stats b { display: block; color: #ffd479; font-size: 15px; font-variant-numeric: tabular-nums; }
.beta-stats span { display: block; margin-top: 3px; color: #8f9cab; font-size: 9px; }
.beta-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 10px 0 8px; padding: 7px; overflow: visible; }
.beta-tabs-2 { grid-template-columns: repeat(5, 1fr); margin-top: -4px; }
.beta-tabs .g2-tab { width: 100%; padding: 6px 2px; font-size: 10.5px; text-align: center; white-space: nowrap; }
.beta-tabs-2 .g2-tab { font-size: 10px; }
.beta-note { margin-bottom: 8px; padding: 8px 11px; border-left: 2px solid #c99b4b; border-radius: 0 8px 8px 0; background: rgba(201, 155, 75, 0.07); color: #b9ab93; font-size: 10px; line-height: 1.6; }
.beta-body { padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(10, 17, 27, 0.6); }
.beta-row { min-height: 65px; }
.beta-row.ready { background: linear-gradient(90deg, rgba(255, 196, 90, 0.035), transparent); }
.beta-row .mini-btn { flex: none; min-width: 54px; }
.beta-reward { color: #c5ad83; line-height: 1.55; }
.beta-price { margin-left: 4px; color: #ffd479; font-size: 9.5px; font-style: normal; font-weight: 400; white-space: nowrap; }
.beta-row.beta-skill-pack.hot { margin: 2px 0 8px; padding: 10px; border: 1px solid rgba(255, 206, 112, 0.55); border-radius: 10px; background: linear-gradient(90deg, rgba(255, 190, 70, 0.17), rgba(255, 190, 70, 0.04)); box-shadow: 0 0 12px rgba(255, 185, 70, 0.14), inset 0 0 12px rgba(255, 190, 70, 0.05); }
.beta-pack-name { color: #ffd479; text-shadow: 0 0 10px rgba(255, 190, 70, 0.4); }
.beta-hot { margin-left: 5px; padding: 1px 5px; border-radius: 6px; background: #ffb347; color: #2a1600; font-size: 8.5px; font-style: normal; font-weight: 700; white-space: nowrap; }
.beta-pack-btns { display: flex; flex: none; gap: 6px; }
.beta-pack-btns .mini-btn { min-width: 60px; }
.beta-goal-tabs { margin: 10px 0 4px; padding: 5px; background: rgba(255, 255, 255, 0.025); }
.beta-goal-tabs .g2-tab { flex: 1 0 auto; text-align: center; padding: 5px 8px; font-size: 10.5px; }
.beta-invest { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 3px; padding: 11px; border-radius: 10px; border: 1px solid rgba(255, 207, 122, 0.18); background: rgba(255, 196, 90, 0.06); }
.beta-invest.on { border-color: rgba(127, 212, 168, 0.24); background: rgba(127, 212, 168, 0.05); }
.beta-invest div { min-width: 0; }
.beta-invest b { display: block; color: #ffe0a0; font-size: 12px; }
.beta-invest span { display: block; margin-top: 4px; color: #9b927f; font-size: 9.5px; line-height: 1.5; }
.beta-invest em { color: #ffd479; font-size: 10px; font-style: normal; white-space: nowrap; }

/* ================= 首次登录 · 免责声明 ================= */
.legal-mask {
  position: absolute;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 14px;
  background: radial-gradient(120% 80% at 50% 0%, rgba(60, 42, 18, 0.55), rgba(4, 4, 4, 0.94) 68%);
  animation: fadeIn 0.18s ease;
}

.legal-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 100%;
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid #6d5122;
  background:
    radial-gradient(100% 60% at 50% 0%, rgba(196, 138, 58, 0.16), transparent 62%),
    linear-gradient(180deg, #201a12 0%, #171310 60%, #121009 100%);
  box-shadow:
    0 0 0 1px rgba(255, 214, 150, 0.08) inset,
    0 0 0 4px rgba(109, 81, 34, 0.22),
    0 22px 60px rgba(0, 0, 0, 0.72);
  animation: popIn 0.24s ease;
}

.legal-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(196, 138, 58, 0.28);
}

.legal-title h3 {
  margin: 0;
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #ffd479;
  text-shadow: 0 0 14px rgba(255, 190, 70, 0.35);
}

.legal-title i {
  color: #b8863c;
  font-size: 9px;
  font-style: normal;
  opacity: 0.8;
}

.legal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  margin: 8px 0 2px;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}

.legal-body p {
  margin: 0 0 9px;
  font-size: 11.5px;
  line-height: 1.85;
  color: #cbc1ad;
  text-align: justify;
}

.legal-body p b {
  margin-right: 5px;
  color: #e0a95a;
  font-weight: 700;
}

.legal-note {
  margin: 6px 0 10px;
  padding: 9px 11px;
  border: 1px solid rgba(196, 138, 58, 0.34);
  border-radius: 9px;
  background: rgba(255, 196, 90, 0.07);
  color: #d8c9a8;
  font-size: 10.5px;
  line-height: 1.7;
  text-align: justify;
}

.legal-check {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  color: #b9ad96;
  font-size: 11.5px;
  cursor: pointer;
  user-select: none;
}

.legal-check input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #d9a44f;
}

.legal-btns { display: flex; gap: 10px; }
.legal-btns .btn { flex: 1; padding: 11px; font-size: 13px; letter-spacing: 0.12em; }
.legal-btns .btn.ghost {
  color: #c9bda6;
  background: rgba(28, 24, 18, 0.9);
  border: 1px solid #4a3d28;
}

/* ================= 财富榜（金币 / 元宝 / 金龙 · 仅设计者可见） ================= */
.sec-title.dev-sec { margin-top: 16px; }
.sec-title.dev-sec span { color: #c9a86b; opacity: 0.9; }

.rank-power.w-gold { color: #ffc46b; }
.rank-power.w-diamond { color: #7fd4ff; }
.rank-power.w-soul { color: #b98cff; }

.dev-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(255, 196, 90, 0.16);
  color: #ffc46b;
  font-size: 8.5px;
  font-style: normal;
  font-weight: 700;
  vertical-align: 1px;
}

/* ===== 会员 VIP 属性徽章 ===== */
.rank-row.vip-now {
  border-color: rgba(255, 196, 107, 0.24);
  background: linear-gradient(135deg, rgba(255, 196, 107, 0.07), rgba(12, 20, 32, 0.92) 58%);
}
.vip-live {
  display: inline-block;
  margin-left: 2px;
  padding: 0 5px;
  border-radius: 99px;
  border: 1px solid rgba(255, 196, 107, 0.45);
  background: rgba(255, 196, 107, 0.14);
  box-shadow: 0 0 8px rgba(255, 196, 107, 0.25);
  color: #ffe4ae;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
  vertical-align: 1px;
}
.vip-bonus {
  color: transparent;
  background: linear-gradient(180deg, #fff3cf, #ffc46b 58%, #e39b2f);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 6px rgba(255, 180, 80, 0.35));
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.vip-bonus.next {
  background: linear-gradient(180deg, #ffe9c2, #ffb04a 58%, #e08a1e);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 6px rgba(255, 160, 60, 0.28));
  font-size: 14px;
}
.vip-stats { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.vip-stats .vip-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.012));
  font-size: 10px;
  line-height: 17px;
  white-space: nowrap;
}
.vip-chip::before {
  content: '';
  flex: 0 0 auto;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}
.vip-chip em { color: #8194a9; font-style: normal; }
.vip-chip b { color: currentColor; font-weight: 700; font-variant-numeric: tabular-nums; }
.vip-chip.vip-exp { color: #5fe3c0; border-color: rgba(95, 227, 192, 0.24); }
.vip-chip.vip-gold { color: #ffcf6b; border-color: rgba(255, 207, 107, 0.24); }
.vip-chip.vip-dia { color: #9fd0ff; border-color: rgba(159, 208, 255, 0.24); }
.vip-chip.vip-atk { color: #ff8f7a; border-color: rgba(255, 143, 122, 0.24); }
.vip-chip.vip-def { color: #8fb4ff; border-color: rgba(143, 180, 255, 0.24); }
.vip-chip.vip-hp { color: #7fe08a; border-color: rgba(127, 224, 138, 0.24); }
.vip-chip.vip-luck { color: #e2a6ff; border-color: rgba(226, 166, 255, 0.24); }
.vip-stats.active .vip-chip::before { animation: vipGlow 2.4s ease-in-out infinite; }
.vip-stats.active .vip-chip:nth-child(2)::before { animation-delay: 0.3s; }
.vip-stats.active .vip-chip:nth-child(3)::before { animation-delay: 0.6s; }
.vip-stats.active .vip-chip:nth-child(4)::before { animation-delay: 0.9s; }
.vip-stats.active .vip-chip:nth-child(5)::before { animation-delay: 1.2s; }
.vip-stats.active .vip-chip:nth-child(6)::before { animation-delay: 1.5s; }
.vip-stats.active .vip-chip:nth-child(7)::before { animation-delay: 1.8s; }
@keyframes vipGlow {
  0%, 100% { opacity: 0.45; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.25); }
}

/* ===== 九品莲台（40 转开放） ===== */
.lt-wrap { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0; }
.lt-visual { flex: 0 0 190px; text-align: center; background: radial-gradient(circle at 50% 40%, rgba(201,154,255,.16), rgba(0,0,0,.18) 70%); border: 1px solid rgba(255,212,121,.2); border-radius: 12px; padding: 8px 6px 12px; }
.lt-lotus-svg { width: 180px; height: 168px; display: block; margin: 0 auto; }
.lt-petal { fill: rgba(140,150,170,.14); stroke: rgba(180,190,210,.28); stroke-width: 1; transition: fill .25s, stroke .25s; }
.lt-petal.on { fill: rgba(255,212,121,.5); stroke: #ffd479; filter: drop-shadow(0 0 4px rgba(255,190,90,.7)); }
.lt-core { fill: rgba(201,154,255,.35); stroke: #c99aff; stroke-width: 1.5; }
.lt-core.full { fill: rgba(255,212,121,.55); stroke: #ffd479; filter: drop-shadow(0 0 8px rgba(255,190,90,.9)); }
.lt-core-text { fill: #fff3d6; font-size: 9px; font-weight: 700; }
.lt-tier-name { font-size: 14px; font-weight: 800; color: #ffd479; margin-top: 2px; text-shadow: 0 0 8px rgba(255,190,90,.5); }
.lt-tier-sub { font-size: 10px; color: #b9c6d6; margin-top: 3px; }
.lt-progress { height: 5px; background: rgba(255,255,255,.08); border-radius: 5px; overflow: hidden; margin: 8px 10px 0; }
.lt-progress i { display: block; height: 100%; background: linear-gradient(90deg, #c99aff, #ffd479); border-radius: 5px; transition: width .3s; }
.lt-progress-text { font-size: 9px; color: #8fa3ba; margin-top: 4px; }
.lt-panel { flex: 1; min-width: 220px; }
.lt-res { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.lt-need { font-size: 10px; padding: 4px 8px; border-radius: 6px; border: 1px solid rgba(255,255,255,.12); color: #9fb0c4; background: rgba(255,255,255,.03); }
.lt-need.ok { color: #7fd4a8; border-color: rgba(127,212,168,.35); background: rgba(127,212,168,.08); }
.lt-need.no { color: #ff8f7a; border-color: rgba(255,143,122,.3); }
.lt-next { border: 1px solid rgba(255,212,121,.16); border-radius: 10px; padding: 8px 10px; background: rgba(255,212,121,.04); }
.lt-next-title { font-size: 11px; font-weight: 700; color: #ffd479; margin-bottom: 5px; }
.lt-next-line { font-size: 10px; color: #c8d4e2; line-height: 1.7; }
.lt-acts { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0; }
.lt-acts .btn { flex: 1; min-width: 96px; }
.lt-current {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 212, 121, .38);
  background: linear-gradient(135deg, rgba(255, 212, 121, .12), rgba(201, 154, 255, .08) 45%, rgba(0, 0, 0, .28));
  box-shadow: 0 0 14px rgba(255, 190, 90, .14), inset 0 0 20px rgba(255, 212, 121, .06);
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.75;
  color: #fdf3dd;
  text-shadow: 0 0 8px rgba(255, 200, 100, .28);
  animation: ltCurrentPulse 3.6s ease-in-out infinite;
}
.lt-current::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 238, 190, .22), transparent);
  transform: skewX(-18deg);
  animation: ltCurrentShine 4s ease-in-out infinite;
  pointer-events: none;
}
.lt-current > span { position: relative; z-index: 1; }
.lt-current > span + span { border-top: 1px dashed rgba(255, 212, 121, .18); padding-top: 6px; }
.lt-current b {
  color: #ffd479;
  font-weight: 800;
  letter-spacing: .5px;
  text-shadow: 0 0 10px rgba(255, 190, 90, .6), 0 0 22px rgba(255, 170, 60, .3);
}
@keyframes ltCurrentShine {
  0% { left: -60%; }
  55%, 100% { left: 130%; }
}
@keyframes ltCurrentPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 190, 90, .12), inset 0 0 18px rgba(255, 212, 121, .05); }
  50% { box-shadow: 0 0 20px rgba(255, 190, 90, .22), inset 0 0 26px rgba(255, 212, 121, .1); }
}
.lt-powers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 8px 0; }
.lt-pow { border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 6px 8px; background: rgba(255,255,255,.02); opacity: .5; }
.lt-pow.on { opacity: 1; border-color: rgba(201,154,255,.45); background: rgba(201,154,255,.09); }
.lt-pow b { display: block; font-size: 10.5px; color: #c99aff; }
.lt-pow em { display: block; font-size: 9px; color: #9fb0c4; font-style: normal; margin-top: 2px; }
