/* ============ 奥格瑞玛 · 界面样式（经典旧世风格：深色皮革 + 金色描边） ============ */
:root {
  --gold: #ffd100;
  --gold2: #c9a44a;
  --gold3: #8a6a24;
  --ink: #140d07;
  --ui-font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", sans-serif;
  --title-font: "STKaiti", "KaiTi", "Kaiti SC", "STSong", "Songti SC", serif;
  --tex-leather: #231710;
  --tex-stone: #2a2622;
  --tex-parchment: #d8c8a0;
  --ui-scale: 1;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #000; color: #eee; font-family: var(--ui-font); user-select: none; -webkit-user-select: none; }
#app { position: fixed; inset: 0; }
#game { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24'><path d='M2 2 L18 9 L11 11 L9 18 Z' fill='%23c9a44a' stroke='%23201008' stroke-width='1.5'/></svg>") 2 2, default; }
#ui { position: absolute; inset: 0; pointer-events: none; font-size: 13px; }
#ui > * { pointer-events: auto; }
#ui > #errorText, #ui > #progressText, #ui > #zoneText, #ui > #toast, #ui > #fps, #ui > #interactHint, #ui > #targetingHint, #ui > #dragIcon, #ui > #tooltip { pointer-events: none; }
.hidden { display: none !important; }

/* ---------- 通用面板 ---------- */
.wow-panel {
  position: absolute;
  background: var(--tex-leather);
  background-size: 256px;
  border: 2px solid #0c0804;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px #5a4418, inset 0 0 0 3px #120c06, inset 0 0 0 4px var(--gold2), inset 0 0 0 5px #3a2a10, inset 0 0 40px rgba(0,0,0,0.6), 0 8px 26px rgba(0,0,0,0.75);
  color: #e8dcc0;
  padding: 36px 14px 14px;
  min-width: 200px;
}
.wow-panel::before, .wow-panel::after {
  content: ""; position: absolute; width: 14px; height: 14px; top: -4px; transform: rotate(45deg);
  background: linear-gradient(135deg, #ffe38a, #b8862a 60%, #5a3c10); border: 1px solid #2a1a06;
}
.wow-panel::before { left: -4px; }
.wow-panel::after { right: -4px; }
.wp-title {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  padding: 3px 28px; min-width: 50%; text-align: center; white-space: nowrap;
  font-family: var(--title-font); font-size: 17px; color: var(--gold); letter-spacing: 2px;
  text-shadow: 0 0 4px #000, 1px 1px 0 #000;
  background: linear-gradient(#4a1a10, #2a0c06); border: 1px solid var(--gold2); border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
  cursor: move;
}
.wp-close {
  position: absolute; top: 7px; right: 9px; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d8402a, #6a0e06); border: 1px solid var(--gold2);
  color: #ffe0c0; font-size: 14px; line-height: 20px; text-align: center; cursor: pointer; font-weight: bold;
}
.wp-close:hover { filter: brightness(1.3); }
.wp-body { position: relative; }
.wp-tabs { display: flex; gap: 2px; position: absolute; bottom: -30px; left: 14px; }
.wp-tab { padding: 5px 14px; background: linear-gradient(#3a2614, #1a100a); border: 1px solid var(--gold3); border-top: none; border-radius: 0 0 6px 6px; color: #c8b890; cursor: pointer; font-size: 13px; }
.wp-tab.active { background: linear-gradient(#6a3a1a, #3a1e0e); color: var(--gold); }

.btn {
  display: inline-block; padding: 4px 14px; min-width: 70px; text-align: center; cursor: pointer;
  background: linear-gradient(#a0200e, #5a0c04); border: 1px solid #1a0402; border-radius: 3px;
  box-shadow: inset 0 0 0 1px var(--gold2), 0 2px 3px rgba(0,0,0,0.6);
  color: var(--gold); font-size: 13px; text-shadow: 1px 1px 0 #000;
}
.btn:hover { filter: brightness(1.25); }
.btn:active { transform: translateY(1px); }
.btn.disabled { filter: grayscale(1) brightness(0.6); pointer-events: none; }
.btn.small { padding: 2px 8px; min-width: 0; font-size: 12px; }

.gold { color: var(--gold); }
.muted { color: #9a8a70; }
.en { color: #9a8a70; font-size: 11px; margin-left: 4px; }
.red { color: #ff3a2a; } .green { color: #1eff00; }
.sep { height: 1px; background: linear-gradient(90deg, transparent, var(--gold3), transparent); margin: 8px 0; }

.coin { margin-right: 4px; white-space: nowrap; }
.coin i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-left: 2px; vertical-align: -1px; box-shadow: inset -1px -1px 2px rgba(0,0,0,0.5); }
.c-g { background: radial-gradient(circle at 35% 35%, #fff2a0, #d8a820 60%, #8a6010); }
.c-s { background: radial-gradient(circle at 35% 35%, #ffffff, #b8b8c8 60%, #6a6a78); }
.c-c { background: radial-gradient(circle at 35% 35%, #ffc890, #b86a30 60%, #6a3410); }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.4); }
::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #8a6a24, #c9a44a); border-radius: 4px; }

/* ---------- 物品/技能格子 ---------- */
.slot {
  position: relative; width: 40px; height: 40px; border-radius: 4px;
  background: radial-gradient(circle at 50% 40%, #2a2420, #0a0806);
  box-shadow: inset 0 0 0 1px #000, inset 0 0 0 2px #4a3e2a, inset 0 0 6px rgba(0,0,0,0.9);
  background-size: cover; cursor: pointer;
}
.slot.has { box-shadow: inset 0 0 0 1px #000, 0 0 0 1px #3a2e1e; }
.slot .ic { position: absolute; inset: 2px; border-radius: 3px; background-size: cover; }
.slot .cnt { position: absolute; right: 3px; bottom: 1px; font-size: 12px; font-weight: bold; color: #fff; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; }
.slot .key { position: absolute; right: 3px; top: 1px; font-size: 11px; color: #e8e8e8; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000; }
.slot .cd { position: absolute; inset: 2px; border-radius: 3px; }
.slot .cdt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: bold; color: #ffe060; text-shadow: 0 0 3px #000, 1px 1px 0 #000; }
.slot.q0 .ic { box-shadow: inset 0 0 0 2px #9d9d9d88; } .slot.q2 .ic { box-shadow: inset 0 0 0 2px #1eff0088; }
.slot.q3 .ic { box-shadow: inset 0 0 0 2px #0070dd; } .slot.q4 .ic { box-shadow: inset 0 0 0 2px #a335ee; }
.slot.oor .ic { filter: sepia(1) hue-rotate(-50deg) saturate(4) brightness(0.8); }
.slot.oom .ic { filter: sepia(1) hue-rotate(180deg) saturate(3) brightness(0.7); }
.slot.unusable .ic { filter: grayscale(1) brightness(0.5); }
.slot.active .ic { box-shadow: inset 0 0 0 2px #ffe060, 0 0 8px #ffe060; }
.slot.flash .ic { filter: brightness(1.8); }
.slot:hover::after { content: ""; position: absolute; inset: 2px; border-radius: 3px; box-shadow: inset 0 0 0 2px rgba(255,240,180,0.6); pointer-events: none; }
.slot.drop-ok { box-shadow: 0 0 0 2px #40ff40; }

/* ---------- 单位框体 ---------- */
.unitframe { position: absolute; display: flex; align-items: center; }
#playerFrame { top: 16px; left: 18px; }
#targetFrame { top: 16px; left: 330px; }
.uf-portrait { position: relative; width: 74px; height: 74px; border-radius: 50%; overflow: visible; z-index: 2;
  background: radial-gradient(circle, #2a2018, #0a0604); box-shadow: 0 0 0 2px #0a0604, 0 0 0 4px var(--gold2), 0 0 0 5px #2a1a08, 0 4px 12px rgba(0,0,0,0.8); }
.uf-portrait canvas { width: 74px; height: 74px; border-radius: 50%; display: block; }
.uf-level { position: absolute; left: -6px; bottom: -4px; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(#3a2a1a, #120a04); border: 2px solid var(--gold2); color: var(--gold); font-weight: bold; font-size: 12px; text-align: center; line-height: 22px; }
.target .uf-level { left: auto; right: -6px; }
.uf-elite { position: absolute; inset: -14px; border-radius: 50%; pointer-events: none; display: none; }
.uf-elite.on { display: block; background: conic-gradient(from 200deg, transparent 0 20%, #e8c050 20% 24%, transparent 24% 76%, #e8c050 76% 80%, transparent 80%); -webkit-mask: radial-gradient(circle, transparent 48px, #000 49px); mask: radial-gradient(circle, transparent 48px, #000 49px); filter: drop-shadow(0 0 3px #000); }
.uf-elite.on::before { content: "精英"; position: absolute; top: -4px; right: -8px; font-size: 11px; color: #ffe070; font-family: var(--title-font); text-shadow: 1px 1px 0 #000; }
.uf-combat, .uf-rest { position: absolute; top: -4px; left: -4px; width: 20px; height: 20px; border-radius: 50%; display: none; font-size: 11px; font-weight: bold; text-align: center; line-height: 18px; }
.uf-combat { background: radial-gradient(#ff4a2a, #7a0a04); border: 1px solid #ffd0a0; }
.uf-combat::after { content: "⚔"; color: #fff; font-size: 11px; }
.uf-rest { background: radial-gradient(#6a6aff, #1a1a6a); border: 1px solid #c0c0ff; color: #fff; }
.uf-combat.on, .uf-rest.on { display: block; }
.uf-body { width: 190px; margin-left: -12px; padding: 5px 8px 6px 18px; background: linear-gradient(rgba(20,14,8,0.92), rgba(8,6,4,0.92)); border: 1px solid #0a0604; border-radius: 0 6px 6px 0; box-shadow: inset 0 0 0 1px var(--gold3), 0 3px 10px rgba(0,0,0,0.7); }
.target .uf-body { margin-left: 0; margin-right: -12px; padding: 5px 18px 6px 8px; border-radius: 6px 0 0 6px; }
.uf-name { font-size: 13px; font-weight: bold; color: #fff; text-shadow: 1px 1px 0 #000; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 1px 4px; border-radius: 2px; }
.uf-sub { font-size: 11px; color: #c8b890; margin-top: 2px; }
.bar { position: relative; height: 14px; background: #0a0604; border: 1px solid #000; margin-top: 2px; border-radius: 2px; overflow: hidden; box-shadow: inset 0 0 0 1px #2a2218; }
.bar .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; transition: width 0.12s linear; }
.bar.hp .fill { background: linear-gradient(#3ae03a, #0e8a0e 60%, #0a5a0a); }
.bar.mp .fill { background: linear-gradient(#3a7aff, #1a3ac8 60%, #0a1a7a); }
.bar.hp.hostile .fill { background: linear-gradient(#ff5a3a, #c81a0a 60%, #6a0a04); }
.bar .txt { position: absolute; inset: 0; text-align: center; font-size: 11px; line-height: 13px; color: #fff; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000; font-weight: bold; }
.uf-auras { position: absolute; top: 84px; left: 0; display: flex; flex-wrap: wrap; gap: 3px; width: 250px; }
.uf-castbar { position: absolute; top: 84px; right: 16px; width: 170px; height: 12px; background: #0a0604; border: 1px solid var(--gold3); border-radius: 2px; overflow: hidden; }
.uf-auras:not(:empty) ~ .uf-castbar { top: 112px; }
.uf-castbar .fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(#ffd040, #c08a10); }
.uf-castbar .txt { position: absolute; inset: 0; font-size: 10px; line-height: 11px; text-align: center; text-shadow: 1px 1px 0 #000; }
#totFrame { position: absolute; top: 96px; left: 560px; width: 110px; padding: 3px 5px; background: rgba(10,6,4,0.85); border: 1px solid var(--gold3); border-radius: 4px; font-size: 11px; }
#totFrame .bar { height: 7px; }

/* 增益图标 */
#buffs { position: absolute; top: 18px; right: 250px; display: flex; flex-direction: row-reverse; flex-wrap: wrap; gap: 5px; max-width: 420px; }
.aura { position: relative; width: 30px; height: 30px; border-radius: 3px; background-size: cover; box-shadow: 0 0 0 1px #000, 0 0 0 2px #4a3e2a; cursor: pointer; }
.aura.debuff { box-shadow: 0 0 0 1px #000, 0 0 0 2px #c81a0a; }
.aura.curse { box-shadow: 0 0 0 1px #000, 0 0 0 2px #9a3aff; }
.aura.poison { box-shadow: 0 0 0 1px #000, 0 0 0 2px #1a9a1a; }
.aura.magic { box-shadow: 0 0 0 1px #000, 0 0 0 2px #2a6aff; }
.aura .t { position: absolute; bottom: -14px; left: -6px; right: -6px; text-align: center; font-size: 10px; color: #ffe060; text-shadow: 1px 1px 0 #000; }
.aura .s { position: absolute; right: 1px; bottom: 0; font-size: 10px; font-weight: bold; color: #fff; text-shadow: 1px 1px 0 #000; }
.aura.expiring { animation: blink 0.5s infinite alternate; }
@keyframes blink { to { opacity: 0.35; } }
.uf-auras .aura { width: 22px; height: 22px; }
.uf-auras .aura .t { bottom: -12px; font-size: 9px; }

/* ---------- 小地图 ---------- */
#minimapWrap { position: absolute; top: 10px; right: 14px; width: 220px; }
#zoneLabel { text-align: center; font-family: var(--title-font); font-size: 15px; color: var(--gold); text-shadow: 1px 1px 0 #000, 0 0 6px #000; padding: 3px 0; margin: 0 20px 4px; background: linear-gradient(90deg, transparent, rgba(40,20,8,0.9) 20%, rgba(40,20,8,0.9) 80%, transparent); border-top: 1px solid var(--gold3); border-bottom: 1px solid var(--gold3); }
#zoneLabel.sanct { color: #69ccf0; }
#minimapRing { position: relative; width: 200px; height: 200px; margin: 0 auto; border-radius: 50%;
  box-shadow: 0 0 0 3px #1a1008, 0 0 0 6px var(--gold2), 0 0 0 8px #3a2408, 0 0 0 10px #8a6a2a, 0 6px 18px rgba(0,0,0,0.9); }
#minimap { width: 200px; height: 200px; border-radius: 50%; display: block; cursor: pointer; }
.mm-btn { position: absolute; width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #5a4a3a, #1a1008); border: 2px solid var(--gold2); color: var(--gold); text-align: center; line-height: 19px; font-weight: bold; cursor: pointer; font-size: 14px; }
.mm-btn:hover { filter: brightness(1.4); }
#mmZoomIn { right: -4px; bottom: 46px; } #mmZoomOut { right: 14px; bottom: 16px; }
#mmMapBtn { left: -4px; top: 30px; font-size: 11px; font-family: var(--title-font); }
#mmClock { position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); padding: 1px 10px; background: #120a04; border: 1px solid var(--gold2); border-radius: 8px; font-size: 11px; color: #e8dcc0; }
#mmCoords { text-align: center; margin-top: 16px; font-size: 12px; color: #e8dcc0; text-shadow: 1px 1px 0 #000; }

/* 任务追踪 */
#questTracker { position: absolute; top: 300px; right: 16px; width: 250px; max-height: 360px; overflow: hidden; text-shadow: 1px 1px 0 #000, 0 0 3px #000; }
.qt-title { color: var(--gold); font-weight: bold; font-size: 13px; margin-top: 8px; cursor: pointer; }
.qt-title.done { color: #1eff00; }
.qt-obj { color: #e8e8e8; font-size: 12px; padding-left: 12px; }
.qt-obj.done { color: #9a9a9a; }

/* ---------- 聊天框 ---------- */
#chat { position: absolute; left: 14px; bottom: 58px; width: 440px; }
#chatTabs { display: flex; gap: 2px; margin-bottom: 1px; }
#chatTabs .tab { padding: 2px 12px; font-size: 12px; background: rgba(20,12,6,0.7); border: 1px solid #3a2a14; border-bottom: none; border-radius: 4px 4px 0 0; color: #c8b890; cursor: pointer; }
#chatTabs .tab.active { background: rgba(40,24,10,0.85); color: var(--gold); }
#chatLog { height: 190px; overflow-y: auto; padding: 5px 7px; background: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.5)); border: 1px solid rgba(80,60,30,0.5); border-radius: 0 4px 4px 4px; font-size: 13px; line-height: 1.45; text-shadow: 1px 1px 0 #000, 0 0 2px #000; user-select: text; -webkit-user-select: text; }
#chatLog .ln { word-break: break-all; }
#chatLog .ch-say { color: #ffffff; } #chatLog .ch-yell { color: #ff4040; } #chatLog .ch-whisper { color: #ff80ff; }
#chatLog .ch-party { color: #aaaaff; } #chatLog .ch-general { color: #ffc0c0; } #chatLog .ch-sys { color: #ffff00; }
#chatLog .ch-emote { color: #ff8040; } #chatLog .ch-npc { color: #fffbc8; } #chatLog .ch-loot { color: #00aa00; }
#chatLog .ch-combat { color: #c0c0c0; font-size: 12px; }
#chatLog .ilink { cursor: pointer; }
#chatLog .ilink:hover { text-decoration: underline; }
#chatInputWrap { display: flex; align-items: center; margin-top: 2px; background: rgba(0,0,0,0.8); border: 1px solid var(--gold3); border-radius: 3px; padding: 2px 6px; }
#chatPrefix { color: #fff; margin-right: 4px; white-space: nowrap; }
#chatInput { flex: 1; background: transparent; border: none; outline: none; color: #fff; font-size: 13px; font-family: var(--ui-font); }

/* ---------- 动作条 ---------- */
#bottomBar { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; align-items: flex-end; gap: 10px; padding: 6px 10px 5px; background: linear-gradient(rgba(34,24,14,0.95), rgba(14,10,6,0.97)); border: 1px solid #0a0604; border-radius: 8px 8px 0 0; box-shadow: inset 0 0 0 1px var(--gold3), 0 -2px 14px rgba(0,0,0,0.6); }
#actionBar { display: flex; gap: 4px; }
#actionBar .slot { width: 44px; height: 44px; }
#barPager { display: flex; flex-direction: column; align-items: center; color: var(--gold); font-size: 11px; line-height: 14px; cursor: pointer; }
#barPager .pg-num { font-weight: bold; font-size: 13px; }
#barPager div:hover { color: #fff; }
#microMenu, #bagBar { display: flex; gap: 3px; }
.micro { width: 30px; height: 40px; border-radius: 3px; background-color: #2a0e06; background-size: 34px 34px; background-position: center; border: 1px solid #0a0402; box-shadow: inset 0 0 0 1px var(--gold3), inset 0 0 8px rgba(0,0,0,0.8); cursor: pointer; }
.endcap { position: absolute; bottom: -8px; width: 120px; height: 110px; pointer-events: none; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.8)); }
.endcap.left { left: -96px; }
.endcap.right { right: -96px; }
.micro:hover { filter: brightness(1.4); }
.micro.alert { animation: pulse 1s infinite alternate; }
@keyframes pulse { to { box-shadow: inset 0 0 0 1px var(--gold), 0 0 10px var(--gold); } }
#bagBar .slot { width: 34px; height: 34px; }
#xpBar { position: absolute; bottom: 0; left: 0; right: 0; height: 13px; background: #0a0604; border-top: 1px solid var(--gold3); }
#xpBar .fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(#b46aff, #6a2ab8 60%, #3a1070); transition: width 0.3s; }
#xpBar .rested { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(60,100,255,0.45); }
#xpBar .txt { position: absolute; inset: 0; text-align: center; font-size: 10px; line-height: 12px; color: #fff; text-shadow: 1px 1px 0 #000; opacity: 0.9; }
#xpBar::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(5% - 1px), rgba(0,0,0,0.7) calc(5% - 1px) 5%); pointer-events: none; }

/* ---------- 施法条 / 文字提示 ---------- */
#castBar { position: absolute; bottom: 180px; left: 50%; transform: translateX(-50%); width: 280px; height: 20px; background: #0a0604; border: 2px solid #1a1008; border-radius: 3px; box-shadow: 0 0 0 1px var(--gold2), 0 4px 10px rgba(0,0,0,0.8); overflow: hidden; }
#castBar .fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(#ffe070, #e0a010 55%, #9a6a08); }
#castBar.channel .fill { background: linear-gradient(#70ff70, #10a010 55%, #086a08); }
#castBar.fail .fill { background: linear-gradient(#ff5a3a, #c01a0a); width: 100% !important; }
#castBar.done .fill { background: linear-gradient(#aaffaa, #3ae03a); width: 100% !important; }
#castBar .spark { position: absolute; top: -4px; bottom: -4px; width: 10px; margin-left: -5px; background: radial-gradient(ellipse, rgba(255,255,255,0.95), rgba(255,255,255,0) 70%); }
#castBar .txt { position: absolute; inset: 0; text-align: center; line-height: 17px; font-size: 12px; color: #fff; text-shadow: 1px 1px 0 #000; }
#castBar .time { position: absolute; right: 6px; top: 0; line-height: 17px; font-size: 11px; color: #fff; text-shadow: 1px 1px 0 #000; }
#errorText { position: absolute; top: 17%; left: 50%; transform: translateX(-50%); text-align: center; }
#errorText .e { color: #ff2020; font-size: 17px; font-weight: bold; text-shadow: 1px 1px 0 #000, 0 0 4px #000; transition: opacity 0.5s; }
#progressText { position: absolute; top: 22%; left: 50%; transform: translateX(-50%); text-align: center; }
#progressText .e { color: #ffd100; font-size: 16px; font-weight: bold; text-shadow: 1px 1px 0 #000, 0 0 4px #000; transition: opacity 0.6s; }
#zoneText { position: absolute; top: 24%; left: 50%; transform: translateX(-50%); text-align: center; opacity: 0; transition: opacity 1s; }
#zoneText .main { font-family: var(--title-font); font-size: 46px; color: #ffd100; text-shadow: 2px 2px 0 #000, 0 0 12px #000; letter-spacing: 6px; }
#zoneText .sub { font-family: var(--title-font); font-size: 20px; color: #e8dcc0; text-shadow: 1px 1px 0 #000, 0 0 8px #000; }
#zoneText.pvp .main { color: #ff6060; } #zoneText.sanct .main { color: #69ccf0; }
#toast { position: absolute; top: 34%; left: 50%; transform: translateX(-50%); font-family: var(--title-font); font-size: 34px; color: #ffe040; text-shadow: 2px 2px 0 #000, 0 0 16px #a07000; opacity: 0; transition: opacity 0.6s; white-space: nowrap; }
#interactHint { position: absolute; bottom: 150px; left: 50%; transform: translateX(-50%); padding: 5px 16px; background: rgba(10,6,2,0.85); border: 1px solid var(--gold2); border-radius: 4px; color: #fff; font-size: 14px; }
#interactHint b { color: var(--gold); border: 1px solid var(--gold2); padding: 0 5px; border-radius: 3px; margin-right: 4px; }
#targetingHint { position: absolute; bottom: 150px; left: 50%; transform: translateX(-50%); padding: 5px 16px; background: rgba(10,20,40,0.85); border: 1px solid #6ac8ff; border-radius: 4px; color: #bfefff; }
#fps { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); font-size: 11px; color: #9a9a9a; text-shadow: 1px 1px 0 #000; }

/* ---------- 提示框（WoW 风格） ---------- */
#tooltip { position: absolute; z-index: 1000; max-width: 330px; min-width: 180px; padding: 8px 10px; background: rgba(6,8,22,0.94); border: 2px solid #8a8aa0; border-radius: 5px; box-shadow: 0 0 0 1px #000, 0 6px 16px rgba(0,0,0,0.8); font-size: 13px; line-height: 1.45; color: #fff; }
#tooltip .tt-name { font-size: 15px; font-weight: bold; }
#tooltip .tt-en { font-size: 11px; color: #8a8a9a; margin-top: -2px; }
#tooltip .tt-row { display: flex; justify-content: space-between; gap: 20px; }
#tooltip .tt-green { color: #1eff00; } #tooltip .tt-yellow { color: #ffd100; } #tooltip .tt-red { color: #ff2020; } #tooltip .tt-gray { color: #9a9a9a; }
#tooltip .tt-money { margin-top: 3px; } #tooltip .tt-hint { color: #40c040; font-size: 12px; margin-top: 4px; }
#tooltip .tt-desc { color: #ffd100; }
#dragIcon { position: absolute; z-index: 1001; width: 40px; height: 40px; background-size: cover; border-radius: 4px; opacity: 0.85; box-shadow: 0 0 8px #000; }

/* ---------- 窗口具体样式 ---------- */
#windows > .wow-panel { z-index: 10; }
.list { max-height: 420px; overflow-y: auto; }
.row { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 3px; cursor: pointer; }
.row:hover { background: rgba(255,210,100,0.12); }
.row.sel { background: rgba(255,210,100,0.22); box-shadow: inset 0 0 0 1px var(--gold3); }
.row .slot { flex: none; }

/* 背包 */
.bag-grid { display: grid; grid-template-columns: repeat(4, 42px); gap: 4px; }
.bag-block { margin-bottom: 8px; }
.bag-block .bh { font-size: 12px; color: var(--gold2); margin-bottom: 3px; }
.money-line { text-align: right; margin-top: 6px; font-size: 13px; }

/* 角色面板 */
.char-wrap { display: flex; gap: 10px; }
.char-col { display: flex; flex-direction: column; gap: 4px; }
.char-model { position: relative; width: 180px; height: 300px; border-radius: 6px; background: radial-gradient(ellipse at 50% 60%, #3a2a3a, #0a0608); box-shadow: inset 0 0 0 1px var(--gold3), inset 0 0 30px #000; }
.char-model canvas { width: 180px; height: 300px; }
.char-bottom { display: flex; justify-content: center; gap: 4px; margin-top: 6px; }
.stat-box { margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; font-size: 12px; background: rgba(0,0,0,0.35); padding: 8px; border-radius: 4px; box-shadow: inset 0 0 0 1px #3a2a14; }
.stat-box div { display: flex; justify-content: space-between; }
.stat-box b { color: #fff; font-weight: normal; }
.stat-box .buffed { color: #1eff00; } .stat-box .debuffed { color: #ff2020; }

/* 法术书 */
.sb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; min-height: 360px; align-content: start; }
.sb-entry { display: flex; gap: 8px; align-items: center; padding: 3px; border-radius: 4px; }
.sb-entry:hover { background: rgba(255,210,100,0.1); }
.sb-entry .nm { color: #ffd100; font-size: 13px; line-height: 1.2; }
.sb-entry .rk { color: #c8b890; font-size: 11px; }
.sb-entry.passive .nm { color: #c8b890; }
.sb-side { position: absolute; right: -44px; top: 40px; display: flex; flex-direction: column; gap: 6px; }
.sb-side .slot { width: 36px; height: 36px; }
.sb-side .slot.active { box-shadow: 0 0 0 2px var(--gold); }
.parchment { background: linear-gradient(rgba(216,200,160,0.1), rgba(0,0,0,0.2)); }

/* 任务日志 / 对话 */
.ql-wrap { display: flex; gap: 12px; }
.ql-list { width: 230px; max-height: 440px; overflow-y: auto; background: rgba(0,0,0,0.3); padding: 4px; border-radius: 4px; box-shadow: inset 0 0 0 1px #3a2a14; }
.ql-detail, .gossip-text { width: 330px; max-height: 440px; overflow-y: auto; padding: 10px 12px; color: #2a1a08; font-size: 13px; line-height: 1.65; border-radius: 4px; background: var(--tex-parchment); box-shadow: inset 0 0 0 1px #6a5024, inset 0 0 30px rgba(90,60,20,0.5); }
.ql-detail h3, .gossip-text h3 { margin: 0 0 6px; font-family: var(--title-font); color: #4a1a04; font-size: 18px; }
.ql-detail h4, .gossip-text h4 { margin: 10px 0 4px; font-family: var(--title-font); color: #4a1a04; font-size: 15px; }
.ql-detail .obj-done { color: #3a6a1a; }
.reward-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.reward { display: flex; align-items: center; gap: 6px; padding: 3px; border-radius: 4px; background: rgba(60,40,10,0.15); cursor: pointer; font-size: 12px; }
.reward.sel { box-shadow: inset 0 0 0 2px #c08010; background: rgba(255,200,80,0.35); }
.reward .slot { width: 34px; height: 34px; }
.gossip-opt { display: flex; align-items: center; gap: 6px; padding: 3px 4px; cursor: pointer; color: #1a0a00; border-radius: 3px; }
.gossip-opt:hover { background: rgba(120,70,10,0.2); }
.gossip-opt img.gi { width: 18px; height: 18px; border-radius: 3px; }
.gossip-opt .gi { width: 16px; height: 16px; display: inline-block; font-weight: bold; text-align: center; line-height: 16px; color: #ffd100; text-shadow: 0 0 2px #000, 1px 1px 0 #000; }
.dlg-buttons { display: flex; justify-content: space-between; margin-top: 10px; }

/* 天赋 */
.tal-wrap { display: flex; gap: 10px; }
.tal-tree { position: relative; width: 230px; padding: 8px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--gold3), inset 0 0 40px #000; }
.tal-tree h4 { margin: 0 0 6px; text-align: center; font-family: var(--title-font); color: var(--gold); font-size: 16px; }
.tal-grid { display: grid; grid-template-columns: repeat(4, 44px); grid-auto-rows: 52px; gap: 4px 10px; justify-content: center; }
.tal { position: relative; width: 40px; height: 40px; }
.tal .slot { width: 40px; height: 40px; }
.tal .pts { position: absolute; right: -8px; bottom: -8px; padding: 0 3px; min-width: 22px; text-align: center; font-size: 10px; background: #0a0604; border: 1px solid #5a5a5a; border-radius: 3px; color: #1eff00; }
.tal.maxed .pts { color: var(--gold); border-color: var(--gold2); }
.tal.locked .slot .ic { filter: grayscale(1) brightness(0.45); }
.tal.locked .pts { color: #8a8a8a; }
.tal-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 8px; flex-wrap: wrap; }

/* 训练师/商人 */
.tr-list { width: 420px; max-height: 380px; overflow-y: auto; background: rgba(0,0,0,0.3); padding: 4px; border-radius: 4px; box-shadow: inset 0 0 0 1px #3a2a14; }
.tr-row .nm { flex: 1; }
.tr-row.available .nm { color: #1eff00; } .tr-row.level .nm { color: #ff4040; } .tr-row.learned .nm { color: #7a7a7a; } .tr-row.prev .nm, .tr-row.talent .nm { color: #a08a60; }
.tr-row .lv { width: 60px; color: #c8b890; font-size: 11px; }
.tr-row .cost { width: 110px; text-align: right; }
.vd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 440px; }
.vd-item { display: flex; gap: 6px; align-items: center; padding: 3px; border-radius: 4px; background: rgba(0,0,0,0.25); cursor: pointer; }
.vd-item:hover { background: rgba(255,210,100,0.12); }
.vd-item .nm { font-size: 12px; line-height: 1.25; }
.vd-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 6px; }

/* 世界地图 */
#worldmap { position: absolute; inset: 0; z-index: 50; background: rgba(0,0,0,0.75); display: flex; align-items: center; justify-content: center; }
#worldmap .wm-frame { position: relative; padding: 38px 14px 14px; }
#worldmap canvas { display: block; border-radius: 4px; box-shadow: inset 0 0 0 1px #000; }
#worldmap .wm-legend { position: absolute; bottom: 20px; right: 24px; background: rgba(20,12,4,0.85); border: 1px solid var(--gold3); border-radius: 4px; padding: 6px 10px; font-size: 12px; line-height: 1.6; }

/* 死亡对话框 */
#deathDialog { position: absolute; top: 22%; left: 50%; transform: translateX(-50%); z-index: 60; padding: 18px 26px; text-align: center; background: rgba(10,6,4,0.92); border: 2px solid var(--gold2); border-radius: 6px; box-shadow: 0 8px 30px #000; }
#deathDialog .dd-t { font-family: var(--title-font); font-size: 22px; color: #e8dcc0; margin-bottom: 10px; }

/* 拾取窗口 */
.loot-row { display: flex; align-items: center; gap: 8px; padding: 3px; border-radius: 4px; cursor: pointer; }
.loot-row:hover { background: rgba(255,210,100,0.15); }

/* 游戏菜单 / 设置 */
.menu-col { display: flex; flex-direction: column; gap: 8px; width: 220px; }
.menu-col .btn { width: 100%; }
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 6px 0; font-size: 13px; }
.set-row input[type=range] { width: 140px; accent-color: #c9a44a; }
.seg { display: flex; gap: 4px; }
.seg .seg-btn { min-width: 38px; padding: 3px 8px; margin: 0; }
.seg .seg-btn.on { background: linear-gradient(#8a5a1a, #5a3408); color: #ffe9a8; border-color: #e0b050; }
.set-row input[type=checkbox] { accent-color: #c9a44a; width: 16px; height: 16px; }

/* 操作指引 */
#tutorial { position: absolute; inset: 0; z-index: 80; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; }
#tutorial .wow-panel { position: relative; width: 760px; max-width: 94vw; }
.kb-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.kb-table td { padding: 4px 6px; border-bottom: 1px solid rgba(201,164,74,0.2); }
.kb-table td.k { color: var(--gold); white-space: nowrap; font-weight: bold; }
.kb-table td.k kbd { display: inline-block; min-width: 20px; padding: 0 5px; margin: 0 1px; text-align: center; background: linear-gradient(#4a3a2a, #1a120a); border: 1px solid var(--gold3); border-radius: 3px; font-family: var(--ui-font); font-size: 12px; color: #fff; }
.tut-tip { color: #c8b890; font-size: 13px; line-height: 1.7; margin: 8px 0; }

/* 社交 */
.who-row { display: grid; grid-template-columns: 110px 40px 70px 60px 1fr; gap: 6px; padding: 3px 6px; font-size: 12px; }
.who-row.h { color: var(--gold); border-bottom: 1px solid var(--gold3); }

/* 拍卖行 */
.ah-row { display: grid; grid-template-columns: 34px 1fr 50px 50px 120px 60px; gap: 6px; align-items: center; padding: 3px 4px; font-size: 12px; border-radius: 3px; }
.ah-row:hover { background: rgba(255,210,100,0.1); }
.ah-row .slot { width: 30px; height: 30px; }

/* 飞行地图 */
.flight-opt { padding: 6px 10px; margin: 4px 0; background: rgba(0,0,0,0.3); border: 1px solid var(--gold3); border-radius: 4px; cursor: pointer; }
.flight-opt:hover { background: rgba(255,210,100,0.15); }

/* 加载界面 */
#loading { position: absolute; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 40%, #4a1a0a, #120604 70%, #000); }
#loading .ld-title { font-family: var(--title-font); font-size: 64px; color: #ffd100; letter-spacing: 16px; text-shadow: 3px 3px 0 #000, 0 0 30px #a03000; margin-top: -30px; }
#loading .ld-sub { font-size: 14px; color: #c8b890; letter-spacing: 6px; margin-bottom: 30px; }
#loading .ld-bar { width: 520px; height: 18px; border: 2px solid var(--gold2); border-radius: 3px; background: #0a0604; box-shadow: 0 0 0 1px #000, 0 4px 14px #000; overflow: hidden; }
#loading .ld-bar .fill { height: 100%; width: 0; background: linear-gradient(#ff8a2a, #b03a0a); transition: width 0.2s; }
#loading .ld-tip { margin-top: 14px; color: #c8b890; font-size: 13px; }
#loading.fade { opacity: 0; transition: opacity 0.8s; pointer-events: none; }
#loading .ld-hint { margin-top: 18px; max-width: 560px; text-align: center; font-size: 12px; color: #c8a070; line-height: 1.7; opacity: 0; animation: ldhint 0.6s ease 6s forwards; }
#loading .ld-hint code { color: #ffd100; }
@keyframes ldhint { to { opacity: 1; } }
