/* ===========================================================
   九天剑域 · 小小修行者   —— 清新国风 Q 版 UI
   =========================================================== */
:root {
  --bg1: #edf7ef;
  --bg2: #d6ebdf;
  --card: rgba(255, 255, 255, .92);
  --gold: #d9b26a;
  --gold-deep: #8a6b3a;
  --green: #6fbf8b;
  --green-deep: #3f8f6b;
  --ink: #4a3b2a;
  --muted: #8a9a90;
  --line: rgba(201, 176, 126, .55);
  --shadow: 0 6px 18px rgba(80, 110, 90, .16);
}

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

html, body {
  margin: 0; padding: 0; height: 100%;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: #cfe3d6;
}

body {
  display: flex; justify-content: center;
  background: radial-gradient(circle at 50% 0%, #f4fbf5 0%, #cfe3d6 70%);
}

.phone {
  position: relative;
  width: 100%; max-width: 460px; height: 100%;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 100%);
  box-shadow: 0 0 30px rgba(60, 90, 70, .18);
  overflow: hidden;
}

/* ---------------- 顶部 HUD ---------------- */
.hud {
  flex: none; padding: 10px 12px 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .6));
  border-bottom: 1px solid var(--line);
}
.hud-hero { display: flex; align-items: center; gap: 10px; }
.hero-avatar {
  width: 56px; height: 62px; flex: none;
  background: radial-gradient(circle at 50% 70%, #fff 0%, #e8f5ea 70%);
  border: 1.5px solid var(--line); border-radius: 14px;
}
.hud-info { flex: 1; min-width: 0; }
.hud-name { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 700; }
.hud-name .realm {
  font-style: normal; font-size: 11px; font-weight: 500; color: #fff;
  background: linear-gradient(135deg, #8fbf9f, #5b9e78);
  padding: 1px 7px; border-radius: 9px;
}
.hud-power { font-size: 12px; color: var(--muted); margin-top: 3px; }
.hud-power b { color: #d19b2f; font-size: 16px; }
.hud-res { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; }
.res { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.gold { background: linear-gradient(135deg, #ffdf8a, #d9a13c); }
.dot.stone { background: linear-gradient(135deg, #a9e6f5, #4f9fc0); }
.btn-mini {
  margin-left: auto; border: 1px solid var(--gold); color: var(--gold-deep);
  background: #fff8e8; border-radius: 12px; padding: 3px 10px; font-size: 12px; cursor: pointer;
}
.btn-mini + .btn-mini { margin-left: 0; }
.btn-mini:active { transform: scale(.95); }

/* ---------------- 视图容器 ---------------- */
.view { flex: 1; overflow-y: auto; padding: 10px 12px 78px; }
.hidden { display: none !important; }
.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 12px; box-shadow: var(--shadow);
}
.panel-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.tag {
  font-size: 13px; font-weight: 700; color: #fff; padding: 2px 10px; border-radius: 10px;
  background: linear-gradient(135deg, #7fc99a, #4e9e73);
}
.muted { color: var(--muted); font-size: 12px; }

/* ---------------- 历练关卡 ---------------- */
.stage-list { display: flex; flex-direction: column; gap: 8px; }
.stage-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f7fbf7);
}
.stage-item.cleared { background: linear-gradient(180deg, #f3fbf4, #eaf6ec); }
.stage-no {
  width: 30px; height: 30px; flex: none; border-radius: 9px; color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #9b8ad6, #6f5aa0);
}
.stage-item.cleared .stage-no { background: linear-gradient(135deg, #7fc99a, #4e9e73); }
.stage-main { flex: 1; min-width: 0; }
.stage-name { font-size: 14px; font-weight: 700; }
.stage-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.stage-sub b { color: #d19b2f; }
.hint { padding: 1px 6px; border-radius: 8px; font-size: 10px; margin-left: 4px; }
.hint.easy { background: #e6f6ea; color: #3f8f6b; }
.hint.even { background: #fff5e0; color: #c08a2e; }
.hint.risk { background: #ffeee6; color: #c9693f; }
.hint.danger { background: #ffe4e4; color: #c0392b; }
.btn-fight {
  border: none; border-radius: 11px; padding: 7px 14px; color: #fff; font-size: 13px; font-weight: 600;
  background: linear-gradient(135deg, #7fc99a, #4e9e73); cursor: pointer; flex: none;
}
.btn-fight:active { transform: scale(.96); }

/* ---------------- 装备环 ---------------- */
.equip-panel { padding-bottom: 8px; }
.equip-ring {
  position: relative; height: 300px; margin: 4px auto 6px; max-width: 340px;
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #eef8f0 55%, #e2f1e6 100%);
  border-radius: 50%;
  border: 1px dashed rgba(160, 190, 170, .6);
}
.hero-slot {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 118px; height: 150px;
}
.hero-big { width: 100%; height: 100%; }
.slot-box {
  position: absolute; transform: translate(-50%, -50%);
  width: 74px; padding: 4px 2px; text-align: center; cursor: pointer;
  background: rgba(255, 255, 255, .95);
  border: 1.5px solid var(--line); border-radius: 12px;
  box-shadow: 0 3px 8px rgba(90, 120, 100, .12);
}
.slot-box.empty { opacity: .72; background: rgba(255, 255, 255, .7); border-style: dashed; }
.slot-box .ico { width: 30px; height: 30px; display: block; margin: 0 auto; }
.slot-box .sname { font-size: 11px; font-weight: 600; margin-top: 1px; }
.slot-box .sitem { font-size: 10px; color: var(--green-deep); margin-top: 1px; }
.slot-box .slv {
  display: inline-block; margin-top: 2px; font-size: 10px; color: #fff; padding: 0 5px; border-radius: 7px;
  background: linear-gradient(135deg, #ffcf6f, #e29b34);
}
.slot-box.empty .slv { background: #c3ccc6; }

.equip-summary { margin-top: 6px; }
.collect-line { font-size: 13px; text-align: center; }
.collect-line b { color: #d19b2f; font-size: 15px; }
.milestones { display: flex; gap: 6px; margin-top: 8px; }
.ms {
  flex: 1; text-align: center; font-size: 10px; padding: 5px 2px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
}
.ms.on { background: linear-gradient(135deg, #fff3d6, #ffe4a8); color: var(--gold-deep); border-color: var(--gold); font-weight: 700; }
.ms b { display: block; font-size: 12px; }

.equip-actions { display: flex; gap: 8px; margin: 10px 0 8px; }
.btn {
  flex: 1; border: none; border-radius: 12px; padding: 9px 0; font-size: 14px; font-weight: 600;
  color: #fff; background: linear-gradient(135deg, #7fc99a, #4e9e73); cursor: pointer;
}
.btn.ghost { color: var(--green-deep); background: #fff; border: 1px solid var(--green); }
.btn:active { transform: scale(.97); }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 6px 4px; text-align: center;
}
.stat span { display: block; font-size: 11px; color: var(--muted); }
.stat b { font-size: 14px; color: var(--ink); }
.stat b.up { color: #d19b2f; }

/* ---------------- 背包 / 图鉴 ---------------- */
.filters { display: flex; gap: 5px; flex-wrap: wrap; }
.chip {
  font-size: 11px; padding: 2px 8px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
}
.chip.on { background: var(--green); color: #fff; border-color: var(--green); }
.bag-count { margin: 2px 0 8px; }
.bag-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.item-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; cursor: pointer;
  position: relative;
}
.item-card.on { box-shadow: inset 0 0 0 2px var(--green); }
.q-1 { border-color: #c9c9c9; }
.q-2 { border-color: #8fd3a8; }
.q-3 { border-color: #7fb6e8; }
.q-4 { border-color: #b18ce0; }
.q-5 { border-color: #f0a54a; }
.item-top { display: flex; align-items: center; gap: 6px; }
.item-top .ico { width: 26px; height: 26px; flex: none; }
.item-name { font-size: 13px; font-weight: 700; }
.item-q { font-size: 10px; color: var(--muted); }
.item-lv {
  position: absolute; right: 6px; top: 6px; font-size: 10px; color: #fff; padding: 0 5px; border-radius: 7px;
  background: linear-gradient(135deg, #ffcf6f, #e29b34);
}
.item-stat { font-size: 11px; color: #5c6f63; margin-top: 5px; line-height: 1.5; }
.item-stat i { font-style: normal; color: var(--green-deep); }
.item-ops { display: flex; gap: 6px; margin-top: 6px; }
.item-ops button {
  flex: 1; font-size: 11px; padding: 4px 0; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--green); color: var(--green-deep); background: #fff;
}
.item-ops button.up { border-color: var(--gold); color: var(--gold-deep); background: #fff8e8; }
.wear-flag { font-size: 10px; color: #fff; background: var(--green); border-radius: 6px; padding: 0 4px; }

/* ---------------- 战斗 ---------------- */
#viewBattle { padding: 8px 10px 70px; display: flex; flex-direction: column; gap: 8px; }
.battle-top {
  display: flex; align-items: center; gap: 6px; padding: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; position: relative;
}
.fighter { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.fighter.right { justify-content: flex-end; }
.mini-avatar { width: 38px; height: 44px; flex: none; }
.mini-avatar.boss { width: 40px; height: 46px; }
.fi-info { min-width: 0; flex: 1; }
.fi-info.right { text-align: right; }
.fi-name { font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.fi-name .power { font-style: normal; font-size: 11px; color: #d19b2f; }
.hpbar {
  position: relative; height: 14px; margin-top: 4px; border-radius: 8px; overflow: hidden;
  background: #3a3a3a; border: 1px solid #222;
}
.hp-fill { position: absolute; inset: 0; width: 100%; transition: width .35s ease; }
.hp-fill.p { background: linear-gradient(90deg, #7fe0a0, #4bbf7a); }
.hp-fill.m { background: linear-gradient(90deg, #ff8b7a, #d63b2f); }
.hp-text {
  position: absolute; inset: 0; font-size: 10px; color: #fff; text-align: center; line-height: 14px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}
.vs {
  width: 34px; height: 34px; flex: none; border-radius: 50%; color: #fff; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f0a54a, #d9532f); box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
.auto-badge {
  position: absolute; right: 50%; transform: translateX(50%); bottom: -8px;
  font-size: 10px; padding: 1px 8px; border-radius: 8px; border: 1px solid var(--muted); background: #fff; color: var(--muted);
  cursor: pointer;
}
.auto-badge.on { border-color: var(--green); color: #fff; background: var(--green); }

.battle-scene {
  position: relative; height: 190px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: #dff0f6;
}
.scene-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.unit { position: absolute; bottom: 18px; transition: transform .18s ease; }
.unit-p { left: 16%; width: 90px; height: 112px; }
.unit-pet { left: 4%; width: 46px; height: 40px; bottom: 16px; }
.unit-m { right: 12%; width: 100px; height: 124px; }
.unit.atk-p { transform: translateX(38px) scale(1.04); }
.unit.atk-m { transform: translateX(-38px) scale(1.04); }
.unit.hit { animation: shake .28s ease; }
@keyframes shake {
  0%, 100% { filter: none; }
  30% { transform: translateX(-6px); filter: brightness(1.5) saturate(.4); }
  60% { transform: translateX(6px); }
}
.battle-title {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  font-size: 13px; font-weight: 700; color: #fff; padding: 2px 12px; border-radius: 10px;
  background: rgba(60, 50, 40, .45); letter-spacing: 1px;
}
.float-layer { position: absolute; inset: 0; pointer-events: none; }
.float-text {
  position: absolute; font-size: 18px; font-weight: 800; color: #ff5a4d;
  text-shadow: 0 2px 0 #fff, 0 0 8px rgba(255, 120, 90, .8);
  animation: rise 1s ease-out forwards;
}
.float-text.crit { font-size: 24px; color: #ffb300; }
.float-text.heal { color: #4bbf7a; }
@keyframes rise {
  0% { opacity: 0; transform: translateY(6px) scale(.7); }
  25% { opacity: 1; transform: translateY(-6px) scale(1.15); }
  100% { opacity: 0; transform: translateY(-42px) scale(1); }
}

.battle-log {
  height: 132px; overflow-y: auto; padding: 8px; font-size: 12px; line-height: 1.7;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: 12px;
}
.log-row { color: #55665c; }
.log-row .r { color: var(--muted); }
.log-row .dmg { color: #d9532f; font-weight: 700; }
.log-row .dmg.crit { color: #e08b00; }
.log-row.win { color: var(--green-deep); font-weight: 700; }
.log-row.lose { color: #c0392b; font-weight: 700; }

.battle-foot { display: flex; align-items: center; gap: 10px; }
.battle-foot .btn { flex: none; padding: 9px 16px; }

/* ---------------- 底部导航 ---------------- */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 60px; display: flex;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), #f2f8f3);
  border-top: 1px solid var(--line);
}
.tab {
  flex: 1; border: none; background: none; cursor: pointer; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 12px;
}
.tab.active { color: var(--green-deep); font-weight: 700; }
.tab span { padding-bottom: 2px; border-bottom: 2px solid transparent; }
.tab.active span { border-color: var(--green); }

/* ---------------- 弹层 / 提示 ---------------- */
.sheet-mask { position: absolute; inset: 0; background: rgba(30, 40, 35, .45); z-index: 20; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 21; max-height: 74%;
  background: #fff; border-radius: 18px 18px 0 0; display: flex; flex-direction: column;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, .2);
  animation: up .22s ease;
}
@keyframes up { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet-head {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.sheet-head b { font-size: 15px; }
.sheet-head .close { border: none; background: none; font-size: 24px; color: var(--muted); cursor: pointer; }
.sheet-body { padding: 12px 14px 20px; overflow-y: auto; font-size: 13px; line-height: 1.8; }
.toast {
  /* v34：改为 fixed + 最高层级。原先 absolute + z-index 30 会被 z-index 50 的
     登录遮罩盖住，导致登录/注册页的所有提示都看不见。 */
  position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 9999;
  background: rgba(40, 50, 45, .92); color: #fff; font-size: 13px; padding: 8px 16px; border-radius: 12px;
  animation: fade .2s ease; max-width: 80%; text-align: center;
  pointer-events: none;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* 弹层内的装备详情 */
.detail { display: flex; gap: 10px; align-items: flex-start; }
.detail .ico { width: 52px; height: 52px; flex: none; border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
.detail h4 { margin: 0 0 2px; font-size: 15px; }
.detail .sub { font-size: 11px; color: var(--muted); }
.attr-line { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0; font-size: 12px; }
.attr-line span { background: #f4f9f5; border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; }
.up-box { border: 1px dashed var(--gold); border-radius: 12px; padding: 10px; margin-top: 10px; background: #fffaf0; }
.up-box .cost { font-size: 12px; color: var(--muted); }
.suit-item, .codex-item { border-bottom: 1px dashed var(--line); padding: 6px 0; }
.suit-item b, .codex-item b { color: var(--green-deep); }
.codex-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.codex-cell {
  border: 1px solid var(--line); border-radius: 10px; padding: 6px 2px; text-align: center; font-size: 11px;
  background: #fff;
}
.codex-cell.off { opacity: .45; }
.codex-cell .ico { width: 22px; height: 22px; }

/* ================= v2 新增 ================= */
.dot.jade { background: linear-gradient(135deg, #c7f0e0, #3f9e83); }
.dot.imm { background: linear-gradient(135deg, #ffd1e6, #c7569a); }
.btn-more {
  border: 1px solid var(--line); background: #fff; color: var(--green-deep);
  border-radius: 10px; width: 34px; height: 34px; font-size: 18px; cursor: pointer; flex: none;
}

/* 登录 */
.login-mask {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 0%, #f4fbf5 0%, #cfe3d6 70%); padding: 16px;
}
.login-card {
  width: 100%; max-width: 380px; max-height: 94vh; overflow-y: auto; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px 18px 22px;
  box-shadow: 0 10px 30px rgba(60, 90, 70, .2);
}
.login-hero { width: 96px; height: 120px; }
.login-card h1 { margin: 4px 0 2px; font-size: 20px; letter-spacing: 1px; }
.login-card p { margin: 0 0 14px; }
.login-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 12px; }
.ltab {
  padding: 4px 18px; border-radius: 12px; font-size: 13px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
}
.ltab.on { background: var(--green); color: #fff; border-color: var(--green); font-weight: 700; }
.inp {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  font-size: 14px; margin-bottom: 10px; background: #fff; color: var(--ink); outline: none;
}
.inp:focus { border-color: var(--green); }
.btn.big { width: 100%; margin-top: 4px; padding: 11px 0; font-size: 15px; }
.login-tip { margin-top: 12px; font-size: 11px; line-height: 1.6; }

/* 境界 */
.realm-panel { margin-bottom: 10px; }
.realm-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.realm-head b { font-size: 15px; }
.expbar { height: 12px; border-radius: 7px; background: #e7efe9; overflow: hidden; margin: 8px 0 4px; }
.exp-fill { height: 100%; width: 0; background: linear-gradient(90deg, #9fd8ff, #4a90d9); transition: width .3s; }

/* 灵宠 */
.pet-list { display: flex; flex-direction: column; gap: 8px; }
.pet-card {
  display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff;
}
.pet-card.on { box-shadow: inset 0 0 0 2px var(--green); }
.pet-ico { width: 46px; height: 46px; flex: none; border-radius: 12px; background: #f4f9f5; padding: 4px; border: 1px solid var(--line); }
.pet-main { flex: 1; min-width: 0; }
.pet-name { font-size: 14px; font-weight: 700; }
.pet-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.pet-stat { font-size: 11px; margin-top: 2px; }
.pet-ops { display: flex; flex-direction: column; gap: 4px; }
.pet-ops button {
  font-size: 11px; padding: 3px 8px; border-radius: 8px; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--green); color: var(--green-deep); background: #fff;
}
.pet-ops button.gold { border-color: var(--gold); color: var(--gold-deep); background: #fff8e8; }
.pet-dex { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dex-cell { border: 1px solid var(--line); border-radius: 10px; padding: 6px 2px; text-align: center; font-size: 11px; background: #fff; }
.dex-cell.off { opacity: .5; }
.dex-cell .ico { width: 30px; height: 30px; }
.dex-cell button { margin-top: 3px; font-size: 10px; padding: 2px 6px; border-radius: 7px; border: 1px solid var(--gold); background: #fff8e8; color: var(--gold-deep); cursor: pointer; }

/* 竞技 / 排行 */
.rank-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.rank-row {
  display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; margin-bottom: 6px; font-size: 12px;
}
.rank-row.me { background: linear-gradient(90deg, #f2fbf3, #e6f5ea); border-color: var(--green); }
.rank-no { width: 24px; height: 24px; flex: none; border-radius: 7px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 12px; background: #b3c2b8; }
.rank-no.top1 { background: linear-gradient(135deg, #ffd76a, #e09b2d); }
.rank-no.top2 { background: linear-gradient(135deg, #d9e2e8, #97a7b3); }
.rank-no.top3 { background: linear-gradient(135deg, #e6b489, #c07c22); }
.rank-main { flex: 1; min-width: 0; }
.rank-name { font-weight: 700; font-size: 13px; }
.rank-sub { color: var(--muted); font-size: 11px; }
.btn-fight.sm { padding: 5px 10px; font-size: 12px; }

/* 商城 */
.shop-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.shop-card { border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; }
.shop-card .top { display: flex; gap: 6px; align-items: center; }
.shop-card .ico { width: 34px; height: 34px; flex: none; }
.shop-name { font-size: 13px; font-weight: 700; }
.shop-desc { font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.5; min-height: 30px; }
.shop-buy { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.price { flex: 1; font-size: 12px; font-weight: 700; color: var(--gold-deep); }
.shop-buy button { font-size: 11px; padding: 4px 10px; border-radius: 8px; border: none; color: #fff; background: linear-gradient(135deg, #7fc99a, #4e9e73); cursor: pointer; }
.redeem-box { display: flex; gap: 6px; align-items: center; }
.redeem-box .inp { margin-bottom: 0; flex: 1; }
.code-list { margin-top: 8px; }
.code-row { display: flex; justify-content: space-between; font-size: 12px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.code-row .c { font-weight: 700; letter-spacing: 1px; }
.code-row .used { color: var(--green-deep); }

/* 道具列表 */
.item-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.item-cell { border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; }
.item-cell .top { display: flex; gap: 6px; align-items: center; }
.item-cell .ico { width: 30px; height: 30px; flex: none; }
.item-cell .n { font-size: 13px; font-weight: 700; }
.item-cell .q { font-size: 11px; color: var(--muted); }
.item-cell .d { font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.item-cell button { margin-top: 6px; width: 100%; font-size: 12px; padding: 4px 0; border-radius: 8px; border: 1px solid var(--green); background: #fff; color: var(--green-deep); cursor: pointer; }

/* 世界BOSS */
.boss-card { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: linear-gradient(180deg, #fff, #fdf6f2); margin-bottom: 10px; }
.boss-name { font-size: 15px; font-weight: 700; }
.boss-hpbar { position: relative; height: 18px; border-radius: 9px; background: #3a3a3a; overflow: hidden; margin: 8px 0 6px; }
.boss-hpfill { position: absolute; inset: 0; width: 100%; background: linear-gradient(90deg, #ff8b7a, #d63b2f); transition: width .4s; }
.boss-hptext { position: absolute; inset: 0; text-align: center; font-size: 11px; color: #fff; line-height: 18px; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.boss-ops { display: flex; gap: 8px; align-items: center; }
.boss-ops .btn { flex: none; padding: 7px 14px; font-size: 13px; }
.dead-tag { color: #c0392b; font-weight: 700; font-size: 12px; }

/* 好友 */
.friend-row { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 6px; }
.friend-row .fm { flex: 1; min-width: 0; }
.friend-row .fn { font-size: 13px; font-weight: 700; }
.friend-row .fs { font-size: 11px; color: var(--muted); }
.friend-row button { font-size: 11px; padding: 4px 9px; border-radius: 8px; border: 1px solid var(--green); background: #fff; color: var(--green-deep); cursor: pointer; }
.friend-row button.gray { border-color: var(--muted); color: var(--muted); }
.search-box { display: flex; gap: 6px; margin-bottom: 8px; }
.search-box .inp { margin-bottom: 0; flex: 1; }

/* 更多菜单 */
.menu-list { display: flex; flex-direction: column; gap: 8px; }
.menu-item {
  display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; font-size: 14px; cursor: pointer;
}
.menu-item .mi-sub { margin-left: auto; font-size: 11px; color: var(--muted); }
.menu-item.danger { color: #c0392b; border-color: #f0b8b8; }

/* ================= v3 新增 ================= */
.vip-badge {
  font-size: 10px; padding: 1px 6px; border-radius: 8px; color: #fff; font-weight: 700;
  background: linear-gradient(135deg, #f0c46a, #d08a2a);
}
.avatar-wrap { position: relative; width: 54px; height: 62px; flex: none; }
.halo-ring {
  position: absolute; left: -8px; top: -8px; width: 70px; height: 78px; border-radius: 50%;
  pointer-events: none; opacity: .9;
}
.halo-ring.big { left: -18px; top: -18px; width: 136px; height: 150px; }
.halo-ring.spin {
  background: radial-gradient(circle, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 62%);
  border: 2px solid var(--halo-color, #7fc99a);
  box-shadow: 0 0 12px var(--halo-color, #7fc99a), inset 0 0 14px var(--halo-color, #7fc99a);
  animation: haloSpin 3.6s linear infinite, haloPulse 2.4s ease-in-out infinite;
}
@keyframes haloSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes haloPulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

/* 历练分类与分页 */
.cat-tabs { display: flex; gap: 6px; margin-bottom: 8px; overflow-x: auto; padding-bottom: 2px; }
.cat-tabs .chip { white-space: nowrap; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 10px; }
.pager button {
  border: 1px solid var(--line); background: #fff; color: var(--green-deep);
  border-radius: 10px; padding: 5px 12px; font-size: 13px; cursor: pointer;
}
.pager button[disabled] { opacity: .45; }
.pager .pi { font-size: 12px; color: var(--muted); }
.stage-ops { display: flex; flex-direction: column; gap: 4px; }
.btn-sweep {
  border: 1px solid var(--gold); background: #fff8e8; color: var(--gold-deep);
  border-radius: 10px; padding: 5px 10px; font-size: 12px; cursor: pointer; white-space: nowrap;
}

/* 子 tab */
.sub-tabs { display: flex; gap: 6px; margin-bottom: 8px; overflow-x: auto; }

/* 仓库 */
.wh-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.wh-cell {
  position: relative; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  padding: 4px 2px; text-align: center; min-height: 62px;
}
.wh-cell.empty { background: #f6faf7; border-style: dashed; }
.wh-cell .ico { width: 30px; height: 30px; }
.wh-cell .nm { font-size: 10px; line-height: 1.2; margin-top: 1px; overflow: hidden; }
.wh-cell .qt { position: absolute; right: 3px; bottom: 2px; font-size: 10px; font-weight: 700; color: var(--green-deep); }
.wh-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.wh-head .btn-mini { flex: none; }

/* VIP */
.vip-card {
  border: 1px solid var(--gold); border-radius: 14px; padding: 10px;
  background: linear-gradient(135deg, #fffaf0, #fff3dd); margin-bottom: 10px;
}
.vip-top { display: flex; align-items: center; gap: 8px; }
.vip-lv { font-size: 22px; font-weight: 800; color: var(--gold-deep); }
.vip-expbar { height: 12px; border-radius: 7px; background: #f0e2c4; overflow: hidden; margin: 8px 0 4px; }
.vip-expfill { height: 100%; width: 0; background: linear-gradient(90deg, #f5d383, #d99a2c); }
.vip-priv { font-size: 12px; color: var(--ink); line-height: 1.6; }
.vip-charge { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.vip-charge button {
  border: 1px solid var(--gold); background: #fff; color: var(--gold-deep);
  border-radius: 10px; padding: 6px 0; font-size: 12px; cursor: pointer;
}
.vip-shop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.vip-goods {
  border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 5px 2px; text-align: center;
}
.vip-goods.bought { opacity: .45; }
.vip-goods .ico { width: 28px; height: 28px; }
.vip-goods .nm { font-size: 10px; line-height: 1.2; }
.vip-goods .pr { font-size: 11px; font-weight: 700; color: var(--gold-deep); }
.vip-goods button {
  margin-top: 2px; width: 100%; font-size: 10px; padding: 2px 0; border-radius: 7px;
  border: 1px solid var(--green); background: #fff; color: var(--green-deep); cursor: pointer;
}

/* 元神卡片 */
.ys-card {
  position: relative; border-radius: 16px; padding: 14px; text-align: center; color: #fff;
  background: linear-gradient(160deg, #6f8fb8 0%, #3f5a80 55%, #2b3d5c 100%);
  box-shadow: 0 6px 18px rgba(60, 90, 130, .3); overflow: hidden;
}
.ys-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(255,255,255,.25), transparent 60%);
  /* v33：这层高光铺满整张卡片且是 absolute，绘制顺序在所有 static 子元素之上，
     会把卡内所有点击（尤其是点称号打开名号系统）全部吃掉 —— 表现为「点了没反应」。
     它只是装饰，必须让出点击。 */
  pointer-events: none;
}
.ys-title {
  display: inline-block; position: relative; z-index: 1; cursor: pointer;
  margin-top: 8px; padding: 3px 14px; border-radius: 12px;
  background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.5); font-size: 13px; font-weight: 700;
}
.ys-card .ys-hero { width: 130px; height: 150px; }
.ys-card .ys-realm { font-size: 20px; font-weight: 800; letter-spacing: 2px; }
.ys-card .ys-sub { font-size: 12px; opacity: .9; margin-top: 4px; }
.ys-ops { display: flex; gap: 8px; margin-top: 10px; }
.ys-ops .btn { flex: 1; }
.ys-expbar { height: 10px; border-radius: 6px; background: rgba(255,255,255,.25); overflow: hidden; margin: 8px 0; }
.ys-expfill { height: 100%; width: 0; background: linear-gradient(90deg, #cfe6ff, #8fb8ef); }

/* 名号 */
.title-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.title-cell {
  border: 1px solid var(--line); border-radius: 10px; padding: 7px; background: #fff; font-size: 12px;
}
.title-cell.on { box-shadow: inset 0 0 0 2px var(--green); }
.title-cell.off { opacity: .5; }
.title-cell .tn { font-weight: 700; font-size: 13px; }
.title-cell .td { font-size: 11px; color: var(--muted); margin-top: 2px; }
.title-cell button {
  margin-top: 4px; width: 100%; font-size: 11px; padding: 3px 0; border-radius: 7px;
  border: 1px solid var(--green); background: #fff; color: var(--green-deep); cursor: pointer;
}

/* 形象面板 */
.avatar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.avatar-cell {
  border: 1px solid var(--line); border-radius: 12px; padding: 6px; text-align: center; background: #fff;
}
.avatar-cell.on { box-shadow: inset 0 0 0 2px var(--green); }
.avatar-cell .av { width: 62px; height: 78px; }
.avatar-cell .an { font-size: 12px; font-weight: 700; }
.avatar-cell .ad { font-size: 10px; color: var(--muted); line-height: 1.4; }
.avatar-cell button {
  margin-top: 4px; width: 100%; font-size: 11px; padding: 3px 0; border-radius: 7px;
  border: 1px solid var(--gold); background: #fff8e8; color: var(--gold-deep); cursor: pointer;
}
.halo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.halo-cell { border: 1px solid var(--line); border-radius: 10px; padding: 6px; text-align: center; background: #fff; }
.halo-cell.on { box-shadow: inset 0 0 0 2px var(--green); }
.halo-dot {
  width: 34px; height: 34px; margin: 0 auto; border-radius: 50%;
  border: 2px solid; animation: haloSpin 3.6s linear infinite;
}
.halo-cell .hn { font-size: 11px; font-weight: 700; margin-top: 3px; }
.halo-cell .hs { font-size: 10px; color: var(--muted); }
.halo-cell button {
  margin-top: 3px; width: 100%; font-size: 10px; padding: 2px 0; border-radius: 7px;
  border: 1px solid var(--green); background: #fff; color: var(--green-deep); cursor: pointer;
}

/* 聊天 */
.chat-box {
  border: 1px solid var(--line); border-radius: 12px; background: #fbfdfb; padding: 8px;
  max-height: 300px; overflow-y: auto; margin-bottom: 8px;
}
.chat-msg { font-size: 12px; line-height: 1.6; margin-bottom: 4px; word-break: break-all; }
.chat-msg .who { color: var(--green-deep); font-weight: 700; margin-right: 4px; }
.chat-msg.me .who { color: var(--gold-deep); }
.chat-msg .tm { color: #b6c0b9; font-size: 10px; margin-left: 4px; }
.chat-input { display: flex; gap: 6px; }
.chat-input .inp { flex: 1; margin-bottom: 0; }
.chat-tabs { display: flex; gap: 6px; margin-bottom: 6px; }

/* 任务 */
.quest-row {
  border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 8px; margin-bottom: 6px;
}
.quest-row.done { background: linear-gradient(90deg, #f2fbf3, #e6f5ea); border-color: var(--green); }
.quest-row.claimed { opacity: .55; }
.qr-top { display: flex; align-items: center; gap: 6px; }
.qr-name { font-size: 13px; font-weight: 700; flex: 1; min-width: 0; }
.qr-prog { font-size: 11px; color: var(--muted); }
.qr-bar { height: 6px; border-radius: 4px; background: #e7efe9; overflow: hidden; margin: 5px 0; }
.qr-fill { height: 100%; background: linear-gradient(90deg, #9fd8ff, #4a90d9); }
.qr-rw { font-size: 11px; color: var(--muted); }
.quest-tools { margin-bottom: 8px; }
.role-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: #fff; margin-bottom: 8px;
}
.role-card.on { border-color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.role-card.lock { opacity: .7; background: #f6faf7; }

/* ================= v4 ================= */
.meditate-card {
  border: 1px solid var(--line); border-radius: 16px; padding: 12px; text-align: center;
  background: linear-gradient(180deg, #f4fbf5, #e9f5ec); margin-bottom: 10px;
}
.meditate-scene { position: relative; height: 190px; display: flex; align-items: center; justify-content: center; }
.meditate-hero { width: 130px; height: 160px; z-index: 2; animation: meditate 3.4s ease-in-out infinite; }
@keyframes meditate {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.02); }
}
.qi-ring {
  position: absolute; border-radius: 50%; border: 2px solid var(--green);
  opacity: .35; animation: qiUp 4s linear infinite;
}
.qi-ring.r1 { width: 90px; height: 90px; }
.qi-ring.r2 { width: 130px; height: 130px; animation-delay: 1.2s; }
.qi-ring.r3 { width: 170px; height: 170px; animation-delay: 2.4s; }
@keyframes qiUp {
  0% { transform: translateY(30px) scale(.7); opacity: 0; }
  40% { opacity: .45; }
  100% { transform: translateY(-40px) scale(1.15); opacity: 0; }
}
.meditate-pet { position: absolute; right: 14%; bottom: 12%; width: 48px; z-index: 2; }
.meditate-pet svg { width: 48px; height: 40px; }
.meditate-name { font-size: 17px; margin-top: 4px; }
.meditate-name em { font-style: normal; color: var(--green-deep); margin-left: 6px; font-size: 13px; }
.meditate-sub { font-size: 12px; color: var(--muted); margin: 4px 0 8px; }
.afk-bar {
  position: relative; height: 20px; border-radius: 10px; background: #e2efe6; overflow: hidden; margin: 6px 0;
}
.afk-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, #9fd8ff, #4a90d9, #9fd8ff);
  background-size: 200% 100%; animation: flow 2.4s linear infinite;
}
@keyframes flow { from { background-position: 0 0; } to { background-position: -200% 0; } }
.afk-bar span {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #23405c;
}
.meditate-gain { display: flex; justify-content: space-around; font-size: 12px; color: var(--muted); }
.meditate-gain b { color: var(--green-deep); font-size: 14px; }
.meditate-ops { display: flex; gap: 8px; margin-top: 10px; }
.meditate-ops .btn { flex: 1; }
.ys-mini b { font-size: 15px; }
.ys-mini .ys-expbar { background: #e2efe6; }
.ys-mini .ys-expfill { background: linear-gradient(90deg, #9fd8ff, #4a90d9); }
.afk-battle { font-size: 12px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.quick-grid button {
  border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 0;
  font-size: 11px; color: var(--green-deep); cursor: pointer;
}
.stage-auto { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pet-space { font-size: 12px; color: var(--muted); margin-bottom: 6px; }

/* 通用部位页 */
.gear-types { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 8px; padding-bottom: 2px; }
.gear-types .chip { white-space: nowrap; }
.gear-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.gear-slot {
  border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 6px 2px; text-align: center;
}
.gear-slot.filled { border-color: var(--green); background: #f2fbf4; }
.gear-slot .ico { width: 26px; height: 26px; }
.gear-slot .sn { font-size: 10px; margin-top: 2px; }
.gear-slot .sg { font-size: 10px; color: var(--gold-deep); }
.gear-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.gear-item { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 7px; font-size: 11px; }
.gear-item.on { border-color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.gear-item .gn { font-weight: 700; font-size: 12px; }
.gear-item .ga { color: var(--muted); line-height: 1.4; }
.gear-item .ops { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.gear-item .ops button {
  flex: 1; font-size: 10px; padding: 2px 0; border-radius: 6px;
  border: 1px solid var(--green); background: #fff; color: var(--green-deep); cursor: pointer;
}
.gear-pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 10px; }

/* 经脉 / 灵根 */
.meridian-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mer-cell { border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: #fff; text-align: center; }
.mer-cell.on { background: #f2fbf4; border-color: var(--green); }
.mer-cell.off { opacity: .6; }
.mer-cell .mn { font-size: 11px; font-weight: 700; }
.mer-cell .mc { font-size: 10px; color: var(--muted); }
.mer-cell button {
  margin-top: 3px; width: 100%; font-size: 10px; padding: 2px 0; border-radius: 6px;
  border: 1px solid var(--green); background: #fff; color: var(--green-deep); cursor: pointer;
}
.root-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.root-cell { border: 1px solid var(--line); border-radius: 10px; padding: 7px; background: #fff; font-size: 11px; }
.root-cell.on { border-color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }

/* 洞府 */
.cave-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.cave-cell {
  position: relative; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 8px;
  background: #f6faf7; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 9px; text-align: center; cursor: pointer;
}
.cave-cell.built { background: #eaf6ec; border-color: var(--green); }
.cave-cell.locked::after { content: '锁'; position: absolute; right: 2px; top: 1px; font-size: 8px; color: var(--gold-deep); }
.cave-cell .cb { font-size: 10px; font-weight: 700; line-height: 1.1; }
.cave-cell .cl { font-size: 9px; color: var(--muted); }
.cave-ops { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.cave-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.cave-list button {
  border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 0;
  font-size: 11px; cursor: pointer; color: var(--green-deep);
}

/* 技能 */
.skill-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.skill-cell { border: 1px solid var(--line); border-radius: 10px; padding: 7px; background: #fff; font-size: 11px; }
.skill-cell.on { border-color: var(--green); }
.skill-cell .sn { font-weight: 700; font-size: 13px; }
.skill-cell .sd { color: var(--muted); line-height: 1.4; }
.skill-slots { display: flex; gap: 6px; margin-bottom: 8px; }
.skill-slot {
  flex: 1; border: 1px dashed var(--line); border-radius: 10px; padding: 6px 2px; text-align: center;
  font-size: 10px; background: #fff;
}
.skill-slot.filled { border-style: solid; border-color: var(--green); background: #f2fbf4; }

/* 宗门 / 国家 */
.sect-card { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: #fff; margin-bottom: 8px; }
.sect-card h4 { margin: 0 0 4px; }
.org-row {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px; background: #fff; margin-bottom: 6px;
}
.org-row .on { flex: 1; min-width: 0; }
.org-row .on .n { font-weight: 700; font-size: 13px; }
.org-row .on .s { font-size: 11px; color: var(--muted); }

/* ============ v5 修正 ============ */
/* 装备子分类分组：每组独立横向滚动，功能不再被挤出屏幕 */
.et-group { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.et-gname {
  flex: 0 0 auto; font-size: 11px; color: var(--green-deep); font-weight: 700;
  padding: 2px 6px; border-radius: 6px; background: #eaf6ec;
}
.et-chips {
  display: flex; gap: 6px; overflow-x: auto; flex: 1;
  scrollbar-width: none; padding-bottom: 2px;
}
.et-chips::-webkit-scrollbar { display: none; }
.et-chips .chip { flex: 0 0 auto; }

/* 打坐页：避免与顶部 HUD 重复展示信息 */
.meditate-card .meditate-name { font-size: 15px; }
.ys-mini { cursor: pointer; }
.ys-mini:hover { background: #f2fbf4; }

/* VIP 特权表 */
.vip-priv-table { width: 100%; font-size: 11px; border-collapse: collapse; margin-top: 6px; }
.vip-priv-table td { padding: 3px 4px; border-bottom: 1px dashed var(--line); }
.vip-priv-table td:first-child { color: var(--muted); width: 40%; }
.vip-priv-table td:last-child { text-align: right; color: var(--green-deep); font-weight: 700; }
.vip-charge .rate-note { font-size: 10px; color: var(--muted); text-align: center; margin-top: 4px; }

/* ============ v8 ============ */
/* 世界BOSS 复活提示 */
.boss-card.dead { opacity: .96; }
.boss-revive {
  margin: 6px 0 2px; font-size: 12px; color: #b4533c;
  background: #fff4ef; border: 1px dashed #e8b09c; border-radius: 8px; padding: 5px 8px;
}
.boss-revive b { color: var(--green-deep); }
.revive-left { font-variant-numeric: tabular-nums; }
.dead-tag { font-size: 12px; color: var(--muted); padding: 4px 8px; border-radius: 8px; background: #f2f2f0; }

/* 设置页 */
.set-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 2px; border-bottom: 1px dashed var(--line);
}
.set-row:last-child { border-bottom: none; }
.set-row b { font-size: 13px; }
.set-row .muted { font-size: 11px; }
.set-row .btn-mini.on { background: var(--green-deep); color: #fff; }
.set-row .btn-mini.danger { color: #b4533c; border-color: #e8b09c; }

/* ============ v9 组织页（宗门 / 国家 / 世界 / 道盟）============ */
.org-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; margin-bottom: 10px;
}
.org-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.org-title .lvl {
  font-size: 11px; font-weight: 600; color: #fff; background: var(--green-deep);
  border-radius: 6px; padding: 1px 6px;
}
.org-notice {
  margin: 6px 0; font-size: 12px; color: #6b7a6b; background: var(--green-soft);
  border-radius: 8px; padding: 6px 8px;
}
.org-ops { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.org-ops .btn-mini.off { opacity: .55; }
.org-ops .btn-mini.danger { color: #b4533c; border-color: #e8b09c; }
.in-tag {
  font-size: 11px; color: var(--green-deep); border: 1px solid var(--green-deep);
  border-radius: 6px; padding: 2px 6px; white-space: nowrap;
}
.cd-tag { font-size: 11px; color: #b4533c; white-space: nowrap; }
.row-ops { display: flex; gap: 4px; flex-shrink: 0; }
.row-ops .btn-mini { font-size: 11px; padding: 2px 6px; }
.org-row .s.muted { font-size: 11px; }

/* v9：技能上限与消耗提示 */
.skill-cell .sd.cap { color: #b4533c; font-size: 11px; }
.skill-cell .sd.cost { color: #6b7a6b; font-size: 11px; }

/* ============ v9 修正：光环位置 ============
   .halo-ring 基类的负偏移（left/top:-8px）只对 54×62 的小头像容器成立
   （-8 + 70/2 = 27 = 54/2，垂直同理，是精确居中的）。
   但打坐页 / 装备页用的是 .big 变体，定位基准变成了几百像素宽的场景容器，
   沿用同样的偏移思路就会粘死在左上角外面——实测光环中心比角色中心偏左 154px，
   还被容器左边界裁掉一块。
   这里改用 50% + 负 margin 居中：不能用 translate(-50%,-50%)，
   因为 .spin 动画本身要占用 transform 做旋转，会被覆盖。 */
.meditate-scene .halo-ring.big {
  left: 50%; top: 50%;
  margin-left: -85px; margin-top: -100px;
  width: 170px; height: 192px;
}
.hero-slot .halo-ring.big {
  left: 50%; top: 50%;
  margin-left: -75px; margin-top: -91px;
  width: 150px; height: 182px;
}

/* v11：装备子页统一加载态（切页时先占位，杜绝看到上一个功能的残留） */
.eq-loading {
  padding: 26px 12px; text-align: center; color: var(--muted); font-size: 13px;
}
.eq-loading::after {
  content: ''; display: block; width: 22px; height: 22px; margin: 10px auto 0;
  border: 2px solid var(--green); border-top-color: transparent; border-radius: 50%;
  animation: eqSpin .8s linear infinite;
}
@keyframes eqSpin { to { transform: rotate(360deg); } }

/* ============ 序章 · 牵丝傀儡 ============ */
.pl-mask {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(circle at 50% 40%, #10202a 0%, #060d12 70%, #04080b 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 14px; animation: plIn .45s ease both; overflow-y: auto;
}
.pl-mask.pl-out { animation: plOut .42s ease both; }
@keyframes plIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes plOut { to { opacity: 0; transform: scale(1.03); } }
.pl-box {
  width: 100%; max-width: 420px; background: rgba(255,255,255,.055);
  border: 1px solid rgba(160,200,175,.22); border-radius: 18px;
  padding: 14px 15px 16px; backdrop-filter: blur(3px);
  box-shadow: 0 18px 50px rgba(0,0,0,.5);
}
.pl-stage { border-radius: 12px; overflow: hidden; background: #060d12; }
.pl-art { display: block; width: 100%; height: auto; }
.pl-title {
  margin: 12px 0 8px; font-size: 16px; letter-spacing: 2px;
  color: var(--green-deep, #4e8c68); text-align: center; font-weight: 700;
}
.pl-lines p {
  margin: 0 0 5px; font-size: 13.5px; line-height: 1.85; color: #e7f0ea;
  text-align: center; animation: plLine .5s ease both;
}
.pl-lines p.sp { height: 6px; }
@keyframes plLine { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pl-cap {
  margin-top: 9px; padding-top: 9px; font-size: 11.5px; line-height: 1.7;
  color: rgba(200,220,210,.62); text-align: center;
  border-top: 1px dashed rgba(160,200,175,.2);
}
.pl-bar {
  height: 3px; border-radius: 3px; background: rgba(255,255,255,.1);
  margin: 12px 0 10px; overflow: hidden;
}
.pl-bar i {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #4e8c68, #7fc99a);
  transition: width .4s ease;
}
.pl-ops { display: flex; gap: 8px; }
.pl-btn {
  flex: 1; border: none; border-radius: 11px; padding: 9px 0;
  font-size: 14px; font-weight: 600; cursor: pointer;
  background: linear-gradient(135deg, #5da77c, #4e8c68); color: #fff;
}
.pl-btn.ghost { background: rgba(255,255,255,.09); color: #cfded6; }
.pl-btn:active { transform: translateY(1px); }
.pl-dots { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.pl-dots i {
  width: 6px; height: 6px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.2); transition: all .25s;
}
.pl-dots i.on { background: var(--green, #7fc99a); width: 18px; border-radius: 3px; }

/* ============ v14：设置页 音乐 / 全屏特效 ============ */
.fx-picker {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px;
}
.fx-chip {
  border: 1px solid var(--line); background: #fff; color: var(--green-deep);
  border-radius: 12px; padding: 6px 11px; font-size: 12.5px; cursor: pointer;
}
.fx-chip.on {
  background: linear-gradient(135deg, #5da77c, #4e8c68);
  color: #fff; border-color: transparent; font-weight: 600;
}
.set-range {
  flex: none; width: 130px; accent-color: var(--green, #4e8c68);
}
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ============ v18：背包装备管理 ============ */
.melt-bar {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin: 6px 0 8px; padding: 6px 8px;
  background: rgba(255, 255, 255, .6);
  border: 1px dashed var(--line); border-radius: 10px;
}
.melt-bar select {
  border: 1px solid var(--line); background: #fff; color: var(--green-deep);
  border-radius: 8px; padding: 4px 6px; font-size: 12px;
}
.item-ops { display: flex; gap: 4px; flex-wrap: wrap; }
.item-ops button.danger {
  background: #fff; color: #c2507a; border: 1px solid rgba(194, 80, 122, .42);
}

/* ============ v20：打坐页 · 突破境界面板 ============ */
.brk-panel {
  margin-top: 12px; padding: 10px 12px;
  background: linear-gradient(160deg, rgba(255,255,255,.92), rgba(238,248,242,.92));
  border: 1px solid var(--line); border-radius: 14px;
}
.brk-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.brk-bar {
  height: 10px; background: rgba(160,190,170,.22);
  border-radius: 6px; overflow: hidden;
}
.brk-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, #e8c46a, #d8a24a);
  transition: width .5s ease;
}
.brk-req { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; }
.brk-req .rq { padding: 2px 7px; border-radius: 8px; }
.brk-req .rq.ok { background: rgba(78,140,104,.14); color: #2f7f5f; }
.brk-req .rq.no { background: rgba(194,80,122,.12); color: #b0456b; }
.brk-req .muted { flex: 1 0 100%; }

/* ============ v20：VIP 升级动画 ============ */
@keyframes vipPop {
  0%   { transform: scale(.4) translateY(28px); opacity: 0; }
  55%  { transform: scale(1.14) translateY(0); opacity: 1; }
  75%  { transform: scale(.96); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes vipGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,196,106,0); }
  50%      { box-shadow: 0 0 22px 7px rgba(232,196,106,.85); }
}
@keyframes vipRay {
  0%   { transform: rotate(0deg) scale(.5); opacity: 0; }
  25%  { opacity: .95; }
  100% { transform: rotate(180deg) scale(1.5); opacity: 0; }
}
@keyframes vipRing {
  0%   { transform: scale(.3); opacity: .95; }
  100% { transform: scale(2.6); opacity: 0; }
}
@keyframes vipSpark {
  0%   { transform: translateY(0) scale(.6); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateY(-130px) scale(1); opacity: 0; }
}
@keyframes vipNum {
  0%   { transform: scale(.2) rotate(-16deg); opacity: 0; }
  50%  { transform: scale(1.28) rotate(4deg); opacity: 1; }
  70%  { transform: scale(.94) rotate(-2deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes vipShine {
  0%   { transform: translateX(-130%) skewX(-22deg); }
  100% { transform: translateX(230%) skewX(-22deg); }
}
@keyframes vipFade { to { opacity: 0; visibility: hidden; } }
@keyframes vipBarGrow { from { width: 0 !important; } }

.vipup-mask {
  position: fixed; inset: 0; z-index: 9600;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 45%, rgba(38,26,8,.9), rgba(6,4,2,.96));
  animation: vipFade .55s ease 2.5s both;
}
.vipup-box { position: relative; text-align: center; color: #f6e6bd; }
.vipup-rays {
  position: absolute; left: 50%; top: 46%; width: 340px; height: 340px;
  margin: -170px 0 0 -170px; pointer-events: none;
  background: conic-gradient(from 0deg,
    rgba(232,196,106,.34) 0deg 7deg, transparent 7deg 30deg,
    rgba(232,196,106,.34) 30deg 37deg, transparent 37deg 60deg,
    rgba(232,196,106,.34) 60deg 67deg, transparent 67deg 90deg,
    rgba(232,196,106,.34) 90deg 97deg, transparent 97deg 120deg,
    rgba(232,196,106,.34) 120deg 127deg, transparent 127deg 150deg,
    rgba(232,196,106,.34) 150deg 157deg, transparent 157deg 180deg,
    rgba(232,196,106,.34) 180deg 187deg, transparent 187deg 210deg,
    rgba(232,196,106,.34) 210deg 217deg, transparent 217deg 240deg,
    rgba(232,196,106,.34) 240deg 247deg, transparent 247deg 270deg,
    rgba(232,196,106,.34) 270deg 277deg, transparent 277deg 300deg,
    rgba(232,196,106,.34) 300deg 307deg, transparent 307deg 330deg,
    rgba(232,196,106,.34) 330deg 337deg, transparent 337deg 360deg);
  animation: vipRay 2.5s linear infinite;
}
.vipup-ring {
  position: absolute; left: 50%; top: 46%; width: 150px; height: 150px;
  margin: -75px 0 0 -75px; border-radius: 50%;
  border: 3px solid rgba(232,196,106,.9); pointer-events: none;
  animation: vipRing 1.25s ease-out infinite;
}
.vipup-badge {
  position: relative; width: 148px; height: 148px; margin: 0 auto 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 34%, #fff4d2, #e8c46a 46%, #b8862f 100%);
  border: 3px solid #ffeab0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #4a3410;
  animation: vipPop .62s cubic-bezier(.2,1.4,.4,1) both, vipGlow 1.7s ease-in-out .5s infinite;
  overflow: hidden;
}
.vipup-badge::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.62), transparent);
  animation: vipShine 1.9s ease-in-out .5s infinite;
}
.vipup-badge .lb { font-size: 15px; letter-spacing: 4px; font-weight: 700; }
.vipup-badge .lv {
  font-size: 46px; font-weight: 900; line-height: 1;
  animation: vipNum .8s cubic-bezier(.2,1.5,.4,1) .18s both;
}
.vipup-title { font-size: 19px; font-weight: 800; letter-spacing: 2px; }
.vipup-sub { font-size: 12.5px; color: rgba(246,230,189,.75); margin-top: 6px; }
.vipup-bar {
  width: 220px; height: 8px; margin: 12px auto 0;
  background: rgba(255,255,255,.14); border-radius: 5px; overflow: hidden;
}
.vipup-bar i {
  display: block; height: 100%; border-radius: 5px;
  background: linear-gradient(90deg, #e8c46a, #fff4d2);
  animation: vipBarGrow 1.1s ease .3s both;
}
.vipup-spark {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: #ffe9a8; pointer-events: none;
  animation: vipSpark 1.6s ease-out infinite;
}

/* v20：VIP 氪金所需灵药说明 */
.vip-herb { margin: 6px 0 2px; }
.vip-herb .vh {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--muted); padding: 3px 0;
}
.vip-herb .vh-k {
  flex: none; min-width: 32px; text-align: center; font-style: normal;
  background: rgba(78,140,104,.12); color: var(--green-deep);
  border-radius: 6px; padding: 1px 5px; font-size: 11px;
}

/* ============ v21：登录 / 注册 / 找回 ============ */
.lpane { display: block; }
.lpane.hidden { display: none; }
.gender-row {
  display: flex; align-items: center; gap: 8px;
  margin: 6px 0; font-size: 13px;
}
.gender-row .gd {
  padding: 4px 14px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  display: inline-flex; align-items: center; gap: 4px;
}
.gender-row .gd.on { background: var(--green); color: #fff; border-color: var(--green); }
.gender-row .gd input { display: none; }
.agree-row { margin: 8px 0 4px; font-size: 12px; color: var(--muted); }
.agree-row label { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.agree-row input { width: 15px; height: 15px; accent-color: var(--green-deep); }
.ag-link { color: var(--green-deep); text-decoration: underline; }

/* ============ v21：历练四大地图 ============ */
.map-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 2px; }
.map-tabs .chip { display: inline-flex; align-items: center; gap: 4px; }
.map-tabs .chip .cnt {
  font-style: normal; font-size: 10px; padding: 0 5px; border-radius: 7px;
  background: rgba(78,140,104,.14); color: var(--green-deep);
}
.map-tabs .chip.on .cnt { background: rgba(255,255,255,.32); color: #fff; }
.stage-item.locked { opacity: .62; }
.stage-item.locked .btn-fight.disabled {
  background: #ddd; color: #888; border-color: #ccc; cursor: not-allowed;
}
.lock-tag {
  font-size: 10px; padding: 1px 6px; border-radius: 8px; margin-left: 5px;
  background: rgba(194,80,122,.14); color: #b0456b;
}
.lock-reason { font-size: 11px; color: #b0456b; margin-top: 3px; }

/* ============ v21：形象 / 光环 横版分类 ============ */
.h-tabs {
  display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 6px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.h-tabs::-webkit-scrollbar { display: none; }
.h-chip {
  flex: none; font-size: 12px; padding: 5px 12px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
}
.h-chip i { font-style: normal; font-size: 10px; opacity: .7; }
.h-chip.on { background: var(--green); color: #fff; border-color: var(--green); }
/* 形象卡：站立 + 打坐 双姿态 */
.av-pair { display: flex; gap: 4px; justify-content: center; }
.av-pair .av { width: 46px; height: 58px; }
.av-pair .av.med { opacity: .78; }
.av-tag {
  font-style: normal; font-size: 10px; margin-left: 4px; padding: 0 5px;
  border-radius: 7px; background: rgba(78,140,104,.14); color: var(--green-deep);
}
.hstyle {
  font-size: 10px; color: #a06a20; margin-top: 2px;
}
/* 打坐呼吸 */
@keyframes medBreath {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-2px) scale(1.015); }
}
.meditate-hero.breath { animation: medBreath 3.6s ease-in-out infinite; }

/* ============ v21：邀请系统 ============ */
.invite-code-box {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 12px; margin-top: 4px;
  background: linear-gradient(135deg, rgba(232,196,106,.16), rgba(78,140,104,.12));
  border: 1px solid var(--line);
}
.invite-code-box b {
  flex: 1; font-size: 17px; letter-spacing: 2px; color: var(--green-deep);
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

/* ============ v21：光环特效（飞剑绕身 / 经文绕体） ============ */
.halo-fx {
  position: absolute; left: 50%; top: 50%;
  width: 0; height: 0; pointer-events: none;
}
/* 飞剑绕角色飞行 */
@keyframes fxSwordOrbit {
  from { transform: rotate(0deg) translateX(var(--hr, 76px)) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(var(--hr, 76px)) rotate(-360deg); }
}
@keyframes fxSwordSpin {
  0%, 100% { filter: drop-shadow(0 0 3px var(--hc)); opacity: .85; }
  50%      { filter: drop-shadow(0 0 8px var(--hc)); opacity: 1; }
}
.halo-fx .fx-sword {
  position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  color: var(--hc, #cfe0f0);
  animation: fxSwordOrbit 3.9s linear infinite, fxSwordSpin 1.9s ease-in-out infinite;
}
.halo-fx .fx-sword svg { width: 100%; height: 100%; display: block; }
/* 道纹文字围绕飞行 */
@keyframes fxWordOrbit {
  from { transform: rotate(0deg) translateY(var(--hr, -70px)) rotate(0deg); }
  to   { transform: rotate(360deg) translateY(var(--hr, -70px)) rotate(-360deg); }
}
@keyframes fxWordGlow {
  0%, 100% { opacity: .55; text-shadow: 0 0 4px var(--hc); }
  50%      { opacity: 1;   text-shadow: 0 0 10px var(--hc); }
}
.halo-fx .fx-word {
  position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  font-size: 15px; line-height: 26px; text-align: center;
  font-weight: 700; color: var(--hc, #e8d9a8); font-style: normal;
  animation: fxWordOrbit 8s linear infinite, fxWordGlow 2.6s ease-in-out infinite;
}
.halo-fx .fx-wordring {
  position: absolute; width: 128px; height: 128px; margin: -64px 0 0 -64px;
  border-radius: 50%; border: 1.5px dashed var(--hc, #e8d9a8);
  opacity: .5; animation: spin 12s linear infinite;
}

/* ============ v23：战斗页 继续战斗 / 自动挂机开关 ============ */
.battle-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.battle-foot .muted { flex: 1; min-width: 90px; }
.afk-switch {
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
  font-size: 12px; color: var(--muted);
  padding: 4px 9px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
}
.afk-switch input { width: 15px; height: 15px; accent-color: var(--green-deep); }
.afk-switch.on { background: var(--green); color: #fff; border-color: var(--green); }

/* ============ v23：任务多分类横版页签 ============ */
.quest-tabs {
  display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 6px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.quest-tabs::-webkit-scrollbar { display: none; }
.quest-tabs .chip { flex: none; white-space: nowrap; }

/* ================= v28 灵宠系统 ================= */
.sub-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; }
.sub-tabs .chip { flex: none; }
.pet-hero { display: flex; gap: 10px; align-items: center; }
.pet-hero .pet-ico { width: 52px; height: 52px; flex: none; }
.pet-sec { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.pet-sec-h { font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--green-deep); }
.pet-eq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pet-eq-cell {
  border: 1px solid var(--line); border-radius: 10px; padding: 8px;
  background: linear-gradient(180deg, #fff, #fafdfb); box-shadow: var(--shadow-sm);
}
.pet-eq-cell.empty { opacity: .72; background: #f7f9f7; }
.peq-slot { font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.peq-name { font-size: 13px; font-weight: 700; }
.peq-stat { font-size: 11px; }
.peq-ops { margin-top: 5px; display: flex; gap: 5px; flex-wrap: wrap; }
.peq-sel { font-size: 12px; padding: 3px; border-radius: 7px; border: 1px solid var(--line); width: 100%; }
.iv-bar { display: flex; align-items: center; gap: 7px; margin: 4px 0; font-size: 12px; }
.iv-bar > span { width: 32px; flex: none; color: var(--muted); }
.iv-bar > b { width: 34px; text-align: right; flex: none; }
.iv-track {
  flex: 1; height: 8px; border-radius: 5px; background: #eef3ef; overflow: hidden;
}
.iv-fill {
  height: 100%; border-radius: 5px;
  background: linear-gradient(90deg, #9ed9b4, #4e9e73);
  transition: width .3s ease;
}
.pet-lockrow { display: flex; gap: 10px; font-size: 12px; color: var(--muted); margin: 4px 0 7px; }
.pet-lockrow label { display: inline-flex; align-items: center; gap: 3px; }
.talent-chip {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 6px 6px 0;
  padding: 4px 9px; border-radius: 9px; font-size: 12px;
  background: linear-gradient(180deg, #fff8e8, #fdefd2); border: 1px solid var(--line);
}
.talent-chip b { color: var(--gold-deep); }
.bond-card {
  border: 1px solid var(--line); border-radius: 10px; padding: 9px; margin-bottom: 8px;
  background: linear-gradient(180deg, #fff, #fafdfb); box-shadow: var(--shadow-sm);
}
.bond-card.on {
  border-color: var(--green);
  background: linear-gradient(180deg, #f3fbf4, #e9f6ec);
  box-shadow: 0 0 0 2px rgba(127, 201, 154, .25), var(--shadow-sm);
}
.bond-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 13px; }
.bond-members { display: flex; gap: 5px; flex-wrap: wrap; margin: 6px 0; }
.dispatch-card {
  border: 1px solid var(--line); border-radius: 10px; padding: 9px; margin-bottom: 8px;
  background: linear-gradient(180deg, #fff, #fafdfb); box-shadow: var(--shadow-sm);
  font-size: 13px;
}
.dispatch-card.done { border-color: var(--gold); background: linear-gradient(180deg, #fffaf0, #fdf3df); }
.dispatch-card button {
  margin-top: 5px; border: none; border-radius: 9px; padding: 5px 12px;
  font-size: 12px; color: #fff; background: linear-gradient(135deg, #7fc99a, #4e9e73); cursor: pointer;
}
.dispatch-card button[disabled] { background: #c3ccc5; cursor: default; }
.chip-row { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 6px; }
.pet-box { max-height: 84vh; }

/* ================= v29 炼丹系统 ================= */
.alc-furnace { display: flex; align-items: center; gap: 10px; }
.alc-furnace-ico { width: 46px; height: 46px; flex: none; border-radius: 12px;
  background: linear-gradient(180deg, #fff4e0, #fce9c8); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; }
.alc-furnace-main { flex: 1; min-width: 0; }
.alc-lv { font-size: 14px; font-weight: 700; color: var(--gold-deep); margin-bottom: 3px; }
.alc-run, .alc-card {
  border: 1px solid var(--line); border-radius: 10px; padding: 9px; margin-bottom: 8px;
  background: linear-gradient(180deg, #fff, #fafdfb); box-shadow: var(--shadow-sm); font-size: 13px;
}
.alc-run.done { border-color: var(--gold); background: linear-gradient(180deg, #fffaf0, #fdf3df); }
.alc-card.off { opacity: .78; }
.alc-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 3px; }
.alc-mats { display: flex; gap: 5px; flex-wrap: wrap; margin: 6px 0; }
.alc-mats .chip.lack { color: #c0392b; border-color: #e8b4ae; background: #fdf1f0; }
.alc-run button, .alc-card button {
  margin-top: 5px; border: none; border-radius: 9px; padding: 5px 12px;
  font-size: 12px; color: #fff; background: linear-gradient(135deg, #7fc99a, #4e9e73); cursor: pointer;
}
.alc-run button[disabled], .alc-card button[disabled] { background: #c3ccc5; cursor: default; }
