/* 造梦三国界面复刻 · 增强样式（叠加在 jm-skin.css 之上） */
.jr-panel{font-family:"Microsoft YaHei","PingFang SC",sans-serif;color:#f4e3bd;min-height:100%}

/* 左侧角色卡 */
.jr-hero{background:linear-gradient(180deg,#3a1d10f2,#24130cf2);border:2px solid #b98c3f;border-radius:6px;padding:7px 8px;margin-bottom:8px;box-shadow:inset 0 0 12px #0008,0 2px 6px #0006}
.jr-hero-top{display:flex;align-items:center;gap:6px}
.jr-avatar{width:40px;height:40px;flex:0 0 40px;border-radius:50%;border:2px solid #e2c26a;background:radial-gradient(circle at 50% 35%,#8e5b32,#3a2115);display:flex;align-items:center;justify-content:center;font-size:17px;color:#ffe9b8;font-weight:700;box-shadow:0 0 0 2px #5c3418,0 2px 5px #0008}
.jr-hero-id{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.35}
.jr-hero-id b{font-size:13px;color:#ffe9b8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jr-hero-id span{font-size:10px;color:#d6b98a}
.jr-hero-id small{font-size:9px;color:#9c835a}
.jr-power{display:flex;flex-direction:column;align-items:center;border:1px solid #a67b2e;border-radius:4px;padding:2px 5px;background:#1b0d08}
.jr-power i{font-size:9px;color:#cbb489;font-style:normal}
.jr-power b{font-size:14px;color:#ffd678}
.jr-bars{display:flex;flex-direction:column;gap:2px;margin:6px 0}
.jr-bar{display:block;height:5px;border:1px solid #8a6b38;border-radius:3px;background:#160b07;overflow:hidden}
.jr-bar i{display:block;height:100%;background:linear-gradient(90deg,#a8322a,#e8644a)}
.jr-bar.mp i{background:linear-gradient(90deg,#2b5aa8,#5aa8e8)}
.jr-bar.exp i{background:linear-gradient(90deg,#a67b2e,#e8c76a)}
.jr-deputy{display:flex;gap:6px;justify-content:center;margin:5px 0}
.jr-dep-slot{width:34px;height:34px;border-radius:4px;border:1px solid #b98c3f;background:#2b1a13;display:flex;align-items:center;justify-content:center;font-size:13px;color:#ffe9b8}
.jr-money{display:flex;gap:8px;justify-content:center;font-size:10px;color:#f2dcae}
.jr-money span{display:flex;align-items:center;gap:2px}
.jr-money img{width:13px;height:13px;object-fit:contain}

/* 人物页 */
.jr-npc{display:flex;align-items:center;justify-content:space-between;padding:6px 8px;margin-bottom:5px;border:1px solid #6d4a22;border-radius:4px;background:linear-gradient(90deg,#3a1d10e6,#2a150ce6)}
.jr-npc-name{font-size:12px;color:#ffe9b8}
.jr-npc-name em{color:#ff7a5c;font-style:normal;font-weight:700}
.jr-dialog{padding:3px 12px;border:1px solid #d6b568;border-radius:10px;background:linear-gradient(180deg,#7a4b1e,#4a2a10);color:#ffe9b8;font-size:11px;cursor:pointer}
.jr-dialog:disabled{opacity:.45;cursor:not-allowed}
.jr-gold-btn{display:block;width:100%;margin-top:8px;padding:8px;border:1px solid #e6c26a;border-radius:4px;background:linear-gradient(180deg,#c79a3f,#8a6524);color:#fff4d6;font-size:12px;cursor:pointer}
.jr-gold-btn:disabled{opacity:.45}

/* 设施页 */
.jr-fac-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px}
.jr-fac{position:relative;height:60px;display:flex;align-items:center;gap:5px;padding:4px 8px;border:1px solid #8a6b38;border-radius:4px;background:#2e1a10 url('../assets/ui/panel-red.png') repeat;background-size:cover;color:#ffe9b8;font-size:14px;cursor:pointer;overflow:hidden}
.jr-fac-icon{width:44px;height:46px;flex:0 0 44px;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:700;color:#ffe9b8;border:1px solid #d6b568;border-radius:4px;background:radial-gradient(circle at 50% 35%,#7a4b1e,#2a150c);text-shadow:0 1px 3px #000}
.jr-fac span{position:relative;z-index:1;text-shadow:0 1px 3px #000}
.jr-fac:active{transform:translateY(1px)}

/* 移动页 */
.jr-map-mini{position:relative;margin-bottom:8px;border:2px solid #b98c3f;border-radius:4px;overflow:hidden;height:88px}
.jr-map-mini img{width:100%;height:100%;object-fit:cover}
.jr-pin{position:absolute;left:48%;top:42%;width:12px;height:12px;background:#e33;border:2px solid #fff;border-radius:50%;box-shadow:0 0 6px #000}
.jr-place-list{display:flex;flex-direction:column;gap:5px}
.jr-place{display:flex;align-items:center;gap:7px;padding:5px 7px;border:1px solid #8a6b38;border-radius:4px;background:linear-gradient(90deg,#3a1d10e6,#2a150ce6);color:#ffe9b8;font-size:12px;cursor:pointer}
.jr-place img{width:36px;height:30px;object-fit:cover;border-radius:2px}
.jr-arrow{color:#e8c76a}

/* 功能页 */
.jr-func-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}
.jr-func{padding:11px 2px;border:1px solid #8a6b38;border-radius:4px;background:linear-gradient(180deg,#4a2a14,#2a160c);color:#ffe9b8;font-size:12px;cursor:pointer;box-shadow:inset 0 0 8px #0005}
.jr-func:active{transform:translateY(1px);background:linear-gradient(180deg,#6d4a22,#3a1d10)}
.jr-hotkey-panel{margin-top:12px;border:1px solid #8a6b38;border-radius:4px;background:#24130c;overflow:hidden}
.jr-hotkey-title{display:flex;justify-content:space-between;padding:6px 9px;background:linear-gradient(90deg,#5c3418,#2e1a10);color:#ffe9b8;font-size:12px}
.jr-hotkey-title span{color:#e8c76a}
.jr-hotkey-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;padding:7px}
.jr-hotkey-grid button{padding:8px 2px;border:1px solid #6d4a22;border-radius:4px;background:#3a1d10;color:#e8d5a8;font-size:10px;cursor:pointer}

/* 状态页 */
.jr-status-tabs{display:flex;gap:3px;margin-bottom:8px}
.jr-status-tab{flex:1;padding:6px 2px;border:1px solid #8a6b38;border-radius:3px 3px 0 0;background:#2a160c;color:#cbb489;font-size:11px;cursor:pointer}
.jr-status-tab.active{background:linear-gradient(180deg,#c79a3f,#8a6524);color:#fff4d6;border-color:#e6c26a}
.jr-info,.jr-attr,.jr-equip,.jr-power-detail,.jr-life{padding:8px;border:1px solid #8a6b38;border-radius:4px;background:linear-gradient(180deg,#3a1d10e6,#24130ce6)}
.jr-info-line{display:flex;justify-content:space-between;padding:4px 2px;border-bottom:1px dashed #6d4a2255;font-size:11px}
.jr-info-line span{color:#cbb489}
.jr-info-line b{color:#ffe9b8}
.jr-info-btns{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:8px 0}
.jr-info-btns button{padding:5px;border:1px solid #8a6b38;border-radius:3px;background:#2a160c;color:#e8d5a8;font-size:10px;cursor:pointer}
.jr-points{padding:5px;background:#1b0d08;border-radius:3px;font-size:11px;color:#cbb489;margin-bottom:6px}
.jr-points b{color:#ffd678}
.jr-attr-line{display:flex;align-items:center;gap:6px;padding:4px 2px;font-size:11px}
.jr-attr-line span{flex:1;color:#cbb489}
.jr-attr-line b{width:24px;text-align:center;color:#ffe9b8}
.jr-attr-line button{width:20px;height:20px;border:1px solid #d6b568;border-radius:3px;background:#6d4a22;color:#fff;font-size:12px;cursor:pointer}
.jr-attr-derived{display:grid;grid-template-columns:1fr 1fr;gap:2px 8px;margin-top:8px;padding-top:8px;border-top:1px dashed #6d4a22;font-size:10px}
.jr-attr-derived span{color:#cbb489}
.jr-attr-derived b{color:#ffe9b8;text-align:right}
.jr-equip{display:flex;gap:10px;justify-content:center;padding:14px}
.jr-equip-figure img{width:70px;height:96px;object-fit:contain}
.jr-equip-slots{display:grid;grid-template-columns:repeat(2,1fr);gap:5px;align-content:center}
.jr-equip-slot{width:44px;height:40px;border:2px solid #d6b568;border-radius:4px;background:#1b0d08;color:#d6b568;font-size:18px;cursor:pointer}
.jr-power-head{display:flex;align-items:center;gap:6px;padding-bottom:8px;border-bottom:1px solid #6d4a22;font-size:12px}
.jr-power-head b{color:#ffd678;font-size:16px}
.jr-power-head span{margin-left:auto;color:#cbb489;font-size:10px}
.jr-power-grid{display:grid;grid-template-columns:1fr 1fr;gap:3px 10px;margin-top:8px;font-size:10px}
.jr-power-grid span{color:#cbb489}
.jr-power-grid b{color:#ffe9b8;text-align:right}
.jr-life-row{padding:6px 2px;border-bottom:1px dashed #6d4a2255}
.jr-life-row b{display:block;font-size:11px;color:#ffe9b8}
.jr-life-row span{font-size:10px;color:#cbb489;line-height:1.5}

/* 副将页 */
.jr-dep-head{display:flex;justify-content:space-between;align-items:center;padding:6px 8px;border:1px solid #8a6b38;border-radius:4px;background:#2a160c;font-size:11px}
.jr-dep-head button{padding:4px 10px;border:1px solid #d6b568;border-radius:10px;background:#6d4a22;color:#fff4d6;font-size:10px;cursor:pointer}
.jr-dep-power{text-align:center;padding:8px;font-size:11px;color:#cbb489}
.jr-dep-power b{color:#ffd678;font-size:15px}
.jr-dep-list{display:flex;flex-direction:column;gap:4px;max-height:320px;overflow:auto}
.jr-dep-row{display:flex;align-items:center;gap:7px;padding:5px 7px;border:1px solid #6d4a22;border-radius:4px;background:#2e1a10}
.jr-dep-avatar{width:32px;height:32px;border-radius:4px;border:1px solid #b98c3f;background:#1b0d08;display:flex;align-items:center;justify-content:center;color:#ffe9b8}
.jr-dep-info{flex:1;display:flex;flex-direction:column;font-size:11px}
.jr-dep-info small{color:#cbb489}
.jr-dep-row button{padding:3px 9px;border:1px solid #d6b568;border-radius:10px;background:#6d4a22;color:#fff4d6;font-size:10px;cursor:pointer}
.jr-empty{padding:20px;text-align:center;color:#cbb489;font-size:11px}

/* 钱庄 / 地图搜索 / 公告 */
.jr-bank-title{text-align:center;padding:8px;border:1px solid #8a6b38;border-radius:4px;background:#2a160c;font-size:11px;color:#cbb489;margin-bottom:8px}
.jr-bank-title b{color:#ffd678}
.jr-bank-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px}
.jr-bank-grid button{padding:10px 2px;border:1px solid #8a6b38;border-radius:4px;background:linear-gradient(180deg,#4a2a14,#2a160c);color:#ffe9b8;font-size:11px;cursor:pointer}
.jr-mapsearch h3,.jr-notice h3{margin:0 0 8px;font-size:14px;color:#ffe6a8;text-align:center}
.jr-ms-line{padding:6px 2px;font-size:11px;color:#cbb489;border-bottom:1px dashed #6d4a2255}
.jr-mapsearch label{display:block;margin:8px 0;font-size:11px;color:#cbb489}
.jr-mapsearch input{width:100%;margin-top:4px;padding:6px;border:1px solid #8a6b38;border-radius:3px;background:#1b0d08;color:#ffe9b8;font-size:11px}
.jr-ms-btns{display:flex;gap:6px;margin-bottom:8px}
.jr-ms-btns button{flex:1;padding:6px;border:1px solid #8a6b38;border-radius:3px;background:#4a2a14;color:#ffe9b8;font-size:11px;cursor:pointer}
.jr-notice-tabs{display:flex;gap:3px;margin-bottom:8px}
.jr-notice-tabs button{flex:1;padding:6px 2px;border:1px solid #8a6b38;border-radius:3px;background:#2a160c;color:#cbb489;font-size:10px;cursor:pointer}
.jr-notice-tabs button.active{background:#6d4a22;color:#ffe9b8}
.jr-notice-body{padding:12px;border:1px solid #6d4a22;border-radius:4px;background:#24130c;font-size:11px;line-height:1.7;color:#e8d5a8}

/* ===== 造梦三国 深度复刻补充（v20261130a） ===== */
/* 状态页顶部人物展示：深蓝金边 + 立绘 + 五维雷达 */
.jr-showcase{position:relative;height:150px;margin:-8px -8px 8px;border:2px solid #b98c3f;border-radius:4px;overflow:hidden;
  background:linear-gradient(115deg,#1a2740 0%,#243858 42%,#10192b 100%);box-shadow:inset 0 0 18px #0008}
.jr-showcase:before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 74% 32%,#3a5a8a55,transparent 60%);pointer-events:none}
.jr-showcase:after{content:'';position:absolute;left:0;right:0;bottom:0;height:14px;
  background:linear-gradient(180deg,transparent,#c9a24a88);pointer-events:none}
.jr-showcase-card{position:absolute;right:8px;top:-6px;height:158px;width:auto;object-fit:contain;
  filter:drop-shadow(0 2px 6px #000a)}
.jr-showcase-info{position:absolute;left:10px;top:8px;display:flex;flex-direction:column;gap:2px;z-index:2}
.jr-showcase-info b{font-size:16px;color:#fff2cc;text-shadow:0 2px 4px #000,0 0 8px #000}
.jr-showcase-info span{font-size:10px;color:#cfe0f5;text-shadow:0 1px 3px #000}
.jr-radar{position:absolute;left:6px;bottom:2px;z-index:2;opacity:.95}

/* 状态五页签：深蓝底 / 选中金蓝渐变 */
.jr-status-tabs{gap:2px}
.jr-status-tab{border:1px solid #3a5a8a;background:linear-gradient(180deg,#1c3352,#12243c);color:#bcd4ee;
  font-size:11px;border-radius:3px}
.jr-status-tab.active{background:linear-gradient(180deg,#3d7fc0,#1c4d86);border-color:#8fc8f0;color:#fff;
  box-shadow:0 0 8px #4a9fe055,inset 0 0 6px #ffffff22}

/* 设施图标：真机裁图 */
.jr-fac-icon{background:radial-gradient(circle at 50% 40%,#5a3a18,#2a160c);overflow:hidden}
.jr-fac-icon img{width:38px;height:38px;object-fit:contain;display:block;filter:drop-shadow(0 1px 2px #000a)}

/* 副将页：紫金面板 */
.jr-deputy-purple{background:linear-gradient(180deg,#2a0f3a,#1a0826);border:2px solid #6d3a8a}
.jr-dep-title{text-align:center;font-size:16px;font-weight:700;color:#ff5a5a;letter-spacing:4px;padding:4px 0 8px;
  text-shadow:0 2px 4px #000}
.jr-deputy-purple .jr-dep-head{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:6px;white-space:nowrap;
  background:linear-gradient(90deg,#7a1f7a,#3a1040);border-color:#a24fb0;padding:5px 6px}
.jr-dep-badge{display:inline-block;white-space:nowrap;padding:3px 9px;border:2px solid #ff7a4a;border-radius:8px;background:#c81f1f;color:#fff;font-weight:700;font-size:11px;
  box-shadow:0 1px 3px #000}
.jr-deputy-purple .jr-dep-head button{display:inline-block;white-space:nowrap;padding:3px 9px;border:2px solid #ff7a4a;border-radius:8px;background:#c81f1f;color:#fff;font-weight:700;font-size:11px}
.jr-deputy-purple .jr-dep-power{color:#ffe9b8;font-size:12px;text-align:left;padding:10px 4px 6px;white-space:nowrap}
.jr-deputy-purple .jr-dep-list{gap:6px;max-height:none}
.jr-deputy-purple .jr-dep-row{display:flex;flex-direction:row;align-items:center;justify-content:space-between;white-space:nowrap;
  background:linear-gradient(90deg,#5a2470,#3a1650);border-color:#8a4a9a;padding:8px 8px}
.jr-deputy-purple .jr-dep-info{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jr-deputy-purple .jr-dep-info b{color:#fff;font-size:12px;white-space:nowrap}
.jr-deputy-purple .jr-dep-row button{white-space:nowrap;flex:0 0 auto;border:2px solid #d070e0;border-radius:10px;background:linear-gradient(180deg,#9c3ab0,#6a1f80);
  color:#fff;font-weight:700;padding:4px 9px;font-size:11px}
.jr-dep-get{display:block;width:100%;margin-top:10px;padding:9px 4px;border:1px solid #8a4a9a;border-radius:4px;white-space:nowrap;font-size:11px;
  background:linear-gradient(180deg,#5a2470,#3a1650);color:#fff;cursor:pointer}
.jr-back-btn{display:block;margin:12px 0 0 auto;padding:7px 20px;border:2px solid #e6c26a;border-radius:8px;
  background:linear-gradient(180deg,#e8c452,#b8860b);color:#3a1d10;font-size:14px;font-weight:700;cursor:pointer}

/* 属性页加减按钮：绿立体 */
.jr-attr-line button{background:linear-gradient(180deg,#8ed43e,#4a9a1e);border:1px solid #2f6e12;color:#fff;font-weight:700}

/* 二级子页（副将/状态/钱庄/公告/地图搜索）占满主区宽度，避免窄栏挤压文字 */
.jm-stage:has(.jr-deputy-purple),
.jm-stage:has(.jr-status),
.jm-stage:has(.jr-bank),
.jm-stage:has(.jr-notice),
.jm-stage:has(.jr-mapsearch){ }
.jm-stage:has(.jr-deputy-purple) .jm-left,
.jm-stage:has(.jr-status) .jm-left,
.jm-stage:has(.jr-bank) .jm-left,
.jm-stage:has(.jr-notice) .jm-left,
.jm-stage:has(.jr-mapsearch) .jm-left{display:none}
.jm-stage:has(.jr-deputy-purple) .jm-panel,
.jm-stage:has(.jr-status) .jm-panel,
.jm-stage:has(.jr-bank) .jm-panel,
.jm-stage:has(.jr-notice) .jm-panel,
.jm-stage:has(.jr-mapsearch) .jm-panel{flex:1 1 100%;width:100%}
/* 子页宽度变大后恢复宽松排版 */
.jr-deputy-purple .jr-dep-head{justify-content:flex-start;padding:6px 10px}
.jr-deputy-purple .jr-dep-head button{padding:4px 12px;font-size:12px}
.jr-deputy-purple .jr-dep-power{font-size:14px;padding:12px 6px}
.jr-deputy-purple .jr-dep-row{padding:9px 12px}
.jr-deputy-purple .jr-dep-info b{font-size:14px}
.jr-deputy-purple .jr-dep-row button{padding:5px 16px;font-size:12px}
.jr-dep-get{padding:10px;font-size:13px}
/* 状态页占满宽度后，人物展示区加高，立绘与雷达更舒展 */
.jr-showcase{height:200px}
.jr-showcase-card{height:210px;right:16px}

/* 覆盖 .jr-deputy 基础横向 flex：副将子项应纵向堆叠 */
.jr-deputy.jr-deputy-purple{display:block}
.jr-deputy-purple .jr-dep-head,
.jr-deputy-purple .jr-dep-power,
.jr-deputy-purple .jr-dep-list,
.jr-deputy-purple .jr-dep-title,
.jr-deputy-purple .jr-dep-get,
.jr-deputy-purple .jr-back-btn{display:flex;width:100%;box-sizing:border-box}
.jr-deputy-purple .jr-dep-list{display:flex;flex-direction:column}
.jr-deputy-purple .jr-dep-title{display:block}

/* ===== BUG 修复 v20261130c：练级入口 + 等级提示 ===== */
.jr-level-tip{margin:0 0 8px;padding:7px 10px;border:1px solid #c98a2e;border-radius:4px;
  background:linear-gradient(180deg,#4a3410,#2e2008);color:#ffd98a;font-size:12px;text-align:center;line-height:1.4}
.jr-train-btn{display:block;width:100%;margin-top:8px;padding:11px;border:2px solid #d0702a;border-radius:8px;
  background:linear-gradient(180deg,#e08a2c,#a85012);color:#fff8e8;font-size:14px;font-weight:700;letter-spacing:1px;cursor:pointer;
  box-shadow:0 2px 6px #0006,inset 0 1px 0 #ffffff44}
.jr-train-btn:active{transform:translateY(1px)}
