/* ===== 红色警戒 · 战地指挥 H5 样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --panel-bg: #1a1e17;
  --panel-2: #22281e;
  --line: #3a4234;
  --line-hi: #5a6a48;
  --text: #cdd6b4;
  --text-dim: #7d8768;
  --amber: #ffcf5e;
  --green: #9fd86a;
  --red: #e0665a;
  --blue: #5aa7e0;
  --font: "Consolas", "Courier New", "Microsoft YaHei", monospace;
}

html, body { height: 100%; overflow: hidden; background: #0d0f0b; color: var(--text); font-family: var(--font); }
#app { display: flex; flex-direction: column; height: 100vh; width: 100vw; }

/* ===== 顶部栏 ===== */
#topbar {
  display: flex; align-items: center; justify-content: space-between;
  height: 46px; padding: 0 14px;
  background: linear-gradient(180deg, #2a3022, #1a1e15);
  border-bottom: 2px solid var(--line-hi);
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
  z-index: 10; flex: 0 0 auto;
}
.logo { font-size: 17px; color: var(--amber); letter-spacing: 2px; font-weight: bold; text-shadow: 0 0 8px rgba(255,207,94,.35); }
.logo-sub { font-size: 11px; color: var(--text-dim); letter-spacing: 1px; }
.stat { display: flex; gap: 22px; }
.stat-item { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--green); }
.stat-item .s-label { color: var(--text-dim); font-size: 12px; }
#stat-money { color: var(--amber); }
#stat-power.neg { color: var(--red); }
.top-right { display: flex; gap: 8px; }
.btn {
  background: linear-gradient(180deg, #333b2b, #232a1e);
  border: 1px solid var(--line-hi); color: var(--text);
  padding: 4px 12px; cursor: pointer; font-family: var(--font); font-size: 13px;
  border-radius: 3px;
}
.btn:hover { border-color: var(--amber); color: var(--amber); }
.btn.active { border-color: var(--amber); color: var(--amber); background: #3a3a24; }
.btn-danger { border-color: #6a3a3a; color: #e8a090; }
.btn-danger:hover { border-color: #ff7a6f; color: #ff7a6f; background: #3a1f1f; }

/* ===== 主内容区（左侧面板 + 右侧战场，水平排列） ===== */
#main { display: flex; flex-direction: row; flex: 1 1 auto; min-height: 0; min-width: 0; }

/* ===== 舞台 ===== */
#stage { position: relative; flex: 1 1 auto; overflow: hidden; background: #14170f; min-width: 0; }
#field { width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: none; }
#field g { }

/* 战场装饰层 */
.terrain-base { fill: #232b1a; }
.grass-dot { fill: #2b351f; }

/* 小地图 */
#minimap-wrap {
  position: absolute; right: 12px; bottom: 12px; width: 230px; height: 144px;
  border: 2px solid var(--line-hi); background: #0a0c08; border-radius: 3px;
  box-shadow: 0 0 12px rgba(0,0,0,.6); z-index: 8; cursor: pointer; opacity: .92;
}
#minimap { width: 100%; height: 100%; }
#minimap .mm-bg { fill: #14170f; }
#minimap .mm-terrain { fill: #1d2415; }
#minimap .mm-water { fill: #16324a; }
#minimap .mm-ore { fill: #e6c74a; }
#minimap .mm-tree { fill: #2f4a26; }
#minimap .mm-rock { fill: #4a4f45; }
#minimap .mm-unit-p { fill: #6fc0ff; }
#minimap .mm-unit-e { fill: #ff7a6f; }
#minimap .mm-bld-p { fill: #2f7fd0; }
#minimap .mm-bld-e { fill: #d0483f; }
#minimap .mm-cam { fill: none; stroke: #ffffff; stroke-width: 2; opacity: .5; }
#minimap .mm-bld-p.cyard { fill: #aee3ff; }
#minimap .mm-bld-e.cyard { fill: #ffc2b8; }

/* 提示条 */
#alert-line {
  position: absolute; left: 50%; top: 12px; transform: translateX(-50%);
  font-size: 15px; letter-spacing: 2px; color: var(--amber);
  text-shadow: 0 0 10px rgba(255,207,94,.6); pointer-events: none;
  text-align: center; opacity: 0; transition: opacity .3s; z-index: 9;
  white-space: pre-line;
}
#alert-line.show { opacity: 1; }

#tooltip { position: absolute; pointer-events: none; background: rgba(10,12,8,.9); border: 1px solid var(--line-hi); color: var(--text); padding: 4px 8px; font-size: 12px; border-radius: 3px; display: none; z-index: 12; }

/* ===== 右侧面板 ===== */
#sidebar {
  width: 268px; flex: 0 0 auto; background: var(--panel-bg);
  border-left: 2px solid var(--line-hi);
  display: flex; flex-direction: column; overflow-y: auto; z-index: 10;
}
#sel-panel { padding: 10px; border-bottom: 1px solid var(--line); min-height: 120px; }
#sel-title { font-size: 13px; color: var(--amber); margin-bottom: 6px; }
#sel-info { font-size: 12px; color: var(--text-dim); line-height: 1.7; }
#sel-info .hpbar { width: 100%; height: 8px; background: #14170f; border: 1px solid var(--line); border-radius: 2px; margin: 4px 0; overflow: hidden; }
#sel-info .hpbar i { display: block; height: 100%; background: linear-gradient(90deg,#6dd06a,#3c9a3c); }
#sel-info .hpbar i.low { background: linear-gradient(90deg,#e0c04a,#c07a2a); }
#sel-info .hpbar i.crit { background: linear-gradient(90deg,#e0665a,#a03028); }
#sel-actions { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
#sel-actions .btn { font-size: 12px; padding: 3px 9px; }

.panel-title { padding: 8px 10px 4px; font-size: 12px; color: var(--text-dim); letter-spacing: 2px; border-top: 1px solid var(--line); }

#build-menu { padding: 8px 10px; flex: 1 1 auto; }
.menu-group { margin-bottom: 10px; }
.menu-group .g-title { font-size: 11px; color: var(--text-dim); margin-bottom: 5px; letter-spacing: 1px; }
.build-btn {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: linear-gradient(180deg, #262c20, #1c2117);
  border: 1px solid var(--line); border-radius: 3px; color: var(--text);
  padding: 6px 8px; margin-bottom: 5px; cursor: pointer; text-align: left; font-family: var(--font);
  position: relative; overflow: hidden;
}
.build-btn:hover { border-color: var(--amber); }
.build-btn.disabled { opacity: .4; cursor: not-allowed; }
.build-btn .ico {
  width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid var(--line-hi);
  border-radius: 3px; background: #10130d; position: relative;
}
.build-btn .nm { font-size: 13px; color: var(--amber); }
.build-btn .cost { font-size: 11px; color: var(--text-dim); margin-left: auto; }
.build-btn .cost.hot { color: var(--green); }
.build-btn .qty { position: absolute; right: 6px; top: 22px; font-size: 10px; color: var(--green); }
.build-btn .queue-bar { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--green); }
.build-btn .key { position: absolute; left: 3px; top: 1px; font-size: 9px; color: var(--text-dim); }

#cmd-help { padding: 10px; font-size: 11px; color: var(--text-dim); line-height: 1.8; border-top: 1px solid var(--line); }

/* ===== 遮罩 ===== */
#overlay {
  position: fixed; inset: 0; background: rgba(5,7,4,.82); z-index: 50;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px);
}
#overlay-box {
  width: 560px; max-width: 92vw; background: var(--panel-bg);
  border: 2px solid var(--line-hi); border-radius: 6px; padding: 30px 36px;
  text-align: center; box-shadow: 0 0 40px rgba(0,0,0,.8);
}
.overlay-title { font-size: 34px; color: var(--amber); letter-spacing: 6px; text-shadow: 0 0 18px rgba(255,207,94,.4); margin-bottom: 6px; }
.overlay-sub { font-size: 12px; color: var(--text-dim); margin-bottom: 22px; letter-spacing: 1px; }
#overlay-msg { font-size: 15px; color: var(--text); line-height: 1.9; margin-bottom: 18px; }
#overlay-msg b { color: var(--red); }
.overlay-tips { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: 12px; color: var(--text-dim); margin-bottom: 24px; text-align: left; }
.overlay-tips span::before { content: "▸ "; color: var(--green); }
.btn-big {
  font-family: var(--font); font-size: 18px; letter-spacing: 6px; color: #1a1e15;
  background: linear-gradient(180deg, var(--amber), #c9952f);
  border: 1px solid #8a6a1a; border-radius: 4px; padding: 12px 40px; cursor: pointer;
}
.btn-big:hover { filter: brightness(1.12); }

/* ===== 帮助弹窗 ===== */
#help-modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 60; display: flex; align-items: center; justify-content: center; }
#help-modal.hidden { display: none; }
.modal-box { width: 520px; max-width: 92vw; background: var(--panel-bg); border: 2px solid var(--line-hi); border-radius: 6px; padding: 22px 26px; }
.modal-box h3 { color: var(--amber); font-size: 15px; margin: 10px 0 8px; letter-spacing: 2px; }
.modal-box table { width: 100%; border-collapse: collapse; font-size: 13px; }
.modal-box td { border-bottom: 1px solid var(--line); padding: 4px 6px; }
.modal-box td:first-child { color: var(--green); white-space: nowrap; }
.modal-box p { font-size: 13px; color: var(--text-dim); line-height: 1.8; }
.modal-box .btn { margin-top: 14px; }

/* 滚动条 */
#sidebar::-webkit-scrollbar { width: 8px; }
#sidebar::-webkit-scrollbar-thumb { background: #3a4234; border-radius: 4px; }

/* ===== 战役系统 ===== */
.overlay-btns { display: flex; gap: 16px; justify-content: center; }
.btn-secondary { background: linear-gradient(180deg, #3a4234, #2a3028); color: var(--text); border: 1px solid var(--line-hi); }
.btn-secondary:hover { filter: brightness(1.2); }

/* 难度选择 */
.difficulty-select { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 20px; }
.diff-label { font-size: 13px; color: var(--text-dim); letter-spacing: 1px; }
.diff-btn {
  font-family: var(--font); font-size: 13px; padding: 6px 18px; cursor: pointer;
  background: #1c2117; color: var(--text-dim); border: 1px solid var(--line); border-radius: 3px;
  transition: all .15s;
}
.diff-btn:hover { border-color: var(--line-hi); color: var(--text); }
.diff-btn.active { background: linear-gradient(180deg, #3a5a3a, #2a4a2a); color: #7ce04a; border-color: #5a8a4a; }
.diff-btn[data-diff="hard"].active { background: linear-gradient(180deg, #5a2a2a, #4a1a1a); color: #ff7a6f; border-color: #8a3a3a; }

/* 遭遇战设置 */
.skirmish-settings { margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.ss-row { display: flex; align-items: center; gap: 6px; }
.ss-label { font-size: 12px; color: var(--text-dim); width: 40px; text-align: right; letter-spacing: 1px; white-space: nowrap; }
.ss-btn {
  font-family: var(--font); font-size: 12px; padding: 4px 12px; cursor: pointer;
  background: #1c2117; color: var(--text-dim); border: 1px solid var(--line); border-radius: 3px;
  transition: all .15s;
}
.ss-btn:hover { border-color: var(--line-hi); color: var(--text); }
.ss-btn.active { background: linear-gradient(180deg, #3a4a5a, #2a3a4a); color: #7ac0e0; border-color: #4a6a8a; }

/* 任务目标面板 */
#objectives-panel {
  position: absolute; left: 12px; top: 12px; width: 240px;
  background: rgba(10,12,8,.88); border: 1px solid var(--line-hi); border-radius: 4px;
  padding: 10px 12px; z-index: 7; pointer-events: none;
}
#objectives-panel.hidden { display: none; }
.obj-title { font-size: 12px; color: var(--amber); letter-spacing: 2px; margin-bottom: 8px; border-bottom: 1px solid var(--line); padding-bottom: 5px; }
.obj-item { font-size: 12px; color: var(--text-dim); line-height: 1.6; padding: 2px 0; display: flex; align-items: flex-start; gap: 6px; }
.obj-item .obj-mark { color: var(--red); flex-shrink: 0; }
.obj-item.done { color: var(--green); text-decoration: line-through; opacity: .7; }
.obj-item.done .obj-mark { color: var(--green); }
.obj-item.secondary { opacity: .65; font-size: 11px; }

/* 关卡选择界面 */
#campaign-select { position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 55; display: flex; align-items: center; justify-content: center; }
#campaign-select.hidden { display: none; }
.campaign-box { width: 640px; max-width: 94vw; background: var(--panel-bg); border: 2px solid var(--line-hi); border-radius: 6px; padding: 28px 32px; box-shadow: 0 0 40px rgba(0,0,0,.8); }
.campaign-title { font-size: 26px; color: var(--amber); letter-spacing: 4px; text-align: center; text-shadow: 0 0 14px rgba(255,207,94,.35); }
.campaign-sub { font-size: 12px; color: var(--text-dim); text-align: center; margin: 6px 0 22px; letter-spacing: 1px; }
#campaign-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.campaign-item {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  background: linear-gradient(180deg, #262c20, #1c2117); border: 1px solid var(--line);
  border-radius: 4px; cursor: pointer; transition: all .15s;
}
.campaign-item:hover { border-color: var(--amber); background: linear-gradient(180deg, #2e3626, #22281c); }
.campaign-item.locked { opacity: .45; cursor: not-allowed; }
.campaign-item.locked:hover { border-color: var(--line); background: linear-gradient(180deg, #262c20, #1c2117); }
.campaign-item .ci-num { font-size: 13px; color: var(--text-dim); width: 50px; flex-shrink: 0; }
.campaign-item .ci-name { font-size: 16px; color: var(--text); flex: 1; }
.campaign-item .ci-status { font-size: 11px; color: var(--green); }
.campaign-item.locked .ci-status { color: var(--text-dim); }
.campaign-footer { text-align: center; }

/* 剧情简报界面 */
#briefing-modal { position: fixed; inset: 0; background: rgba(0,0,0,.8); z-index: 58; display: flex; align-items: center; justify-content: center; }
#briefing-modal.hidden { display: none; }
.briefing-box { width: 600px; max-width: 94vw; background: var(--panel-bg); border: 2px solid var(--line-hi); border-radius: 6px; padding: 28px 32px; box-shadow: 0 0 50px rgba(0,0,0,.9); }
.briefing-header { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.briefing-num { font-size: 13px; color: var(--text-dim); letter-spacing: 2px; }
.briefing-name { font-size: 24px; color: var(--amber); letter-spacing: 3px; text-shadow: 0 0 12px rgba(255,207,94,.3); }
.briefing-story { font-size: 14px; color: var(--text); line-height: 2; margin-bottom: 20px; text-align: justify; }
.briefing-objectives { background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 4px; padding: 12px 16px; margin-bottom: 22px; }
.bo-title { font-size: 12px; color: var(--amber); letter-spacing: 2px; margin-bottom: 8px; }
.bo-item { font-size: 13px; color: var(--text); line-height: 1.8; padding: 2px 0; display: flex; gap: 8px; align-items: flex-start; }
.bo-item .bo-mark { color: var(--red); flex-shrink: 0; }
.bo-item.secondary { color: var(--text-dim); font-size: 12px; }
.bo-item.secondary .bo-mark { color: var(--text-dim); }
.briefing-btns { display: flex; gap: 14px; justify-content: center; }

/* ===== 美化动画 ===== */

/* 灯光闪烁 */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.blink-light { animation: blink 1.2s ease-in-out infinite; }

/* 雷达天线旋转 */
@keyframes radar-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.radar-antenna { transform-origin: center; animation: radar-spin 4s linear infinite; }

/* 雷达扫描线 */
@keyframes radar-scan-anim {
  0% { transform: translateX(-8px); opacity: 0.3; }
  50% { transform: translateX(8px); opacity: 0.8; }
  100% { transform: translateX(-8px); opacity: 0.3; }
}
.radar-scan { animation: radar-scan-anim 2s ease-in-out infinite; }

/* 雷达信号波 */
@keyframes radar-wave-anim {
  0% { r: 4; opacity: 0.5; }
  100% { r: 16; opacity: 0; }
}
.radar-wave { animation: radar-wave-anim 2s ease-out infinite; }
.radar-wave:nth-child(2) { animation-delay: 0.6s; }
.radar-wave:nth-child(3) { animation-delay: 1.2s; }

/* 工厂齿轮旋转 */
@keyframes gear-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.factory-gear { transform-origin: center; animation: gear-spin 6s linear infinite; }

/* 科技核心呼吸 */
@keyframes tech-core-pulse {
  0%, 100% { opacity: 0.6; r: 5; }
  50% { opacity: 0.9; r: 6.5; }
}
.tech-core { animation: tech-core-pulse 2s ease-in-out infinite; }

/* 科技外环旋转 */
@keyframes tech-ring-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.tech-ring { transform-origin: center; animation: tech-ring-spin 8s linear infinite; }

/* 棱镜能量环脉动 */
@keyframes prism-ring-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}
.prism-ring { animation: prism-ring-pulse 1.5s ease-in-out infinite; }
.prism-ring:nth-child(2) { animation-delay: 0.3s; }
.prism-ring:nth-child(3) { animation-delay: 0.6s; }
.prism-ring:nth-child(4) { animation-delay: 0.9s; }

/* 棱镜顶部发光 */
@keyframes prism-top-glow {
  0%, 100% { filter: drop-shadow(0 0 2px #4a8aff); }
  50% { filter: drop-shadow(0 0 6px #4a8aff); }
}
.prism-top { animation: prism-top-glow 2s ease-in-out infinite; }

/* 棱镜光束 */
@keyframes prism-beam-anim {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.9; }
}
.prism-beam { animation: prism-beam-anim 1s ease-in-out infinite; }

/* 电厂闪电闪烁 */
@keyframes power-bolt-flash {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 1px #ffd23f); }
  50% { opacity: 0.7; filter: drop-shadow(0 0 4px #ffd23f); }
}
.power-bolt { animation: power-bolt-flash 0.8s ease-in-out infinite; }

/* 湖泊波纹 */
@keyframes lake-wave-anim {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.1); }
}
.lake-wave { transform-origin: center; animation: lake-wave-anim 3s ease-in-out infinite; }

/* 选中环旋转 */
@keyframes sel-ring-rotate {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 20; }
}
.ent .sel-ring { animation: sel-ring-rotate 1s linear infinite; }

/* 等级星级闪烁 */
@keyframes star-glow {
  0%, 100% { filter: drop-shadow(0 0 1px currentColor); }
  50% { filter: drop-shadow(0 0 3px currentColor); }
}
.lvstars text { animation: star-glow 1.5s ease-in-out infinite; }

/* 建造按钮悬停发光 */
.build-btn:hover {
  box-shadow: 0 0 8px rgba(255,207,94,.2), inset 0 0 8px rgba(255,207,94,.05);
}
.build-btn:hover .ico {
  border-color: var(--amber);
  box-shadow: 0 0 6px rgba(255,207,94,.3);
}

/* 按钮通用悬停 */
.btn:hover {
  box-shadow: 0 0 6px rgba(255,207,94,.2);
}
.btn.active {
  box-shadow: 0 0 8px rgba(255,207,94,.25), inset 0 0 6px rgba(255,207,94,.1);
}

/* 血条发光 */
#sel-info .hpbar {
  box-shadow: 0 0 4px rgba(0,0,0,.5);
}
#sel-info .hpbar i {
  box-shadow: 0 0 4px currentColor;
}

/* 面板标题装饰 */
.panel-title {
  position: relative;
  padding-left: 14px;
}
.panel-title::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 12px;
  background: var(--amber);
  border-radius: 1px;
}

/* 顶部栏装饰线 */
#topbar::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  opacity: 0.5;
}

/* 侧边栏装饰 */
#sidebar {
  box-shadow: -4px 0 12px rgba(0,0,0,.4);
}

/* 小地图装饰 */
#minimap-wrap {
  box-shadow: 0 0 12px rgba(0,0,0,.6), inset 0 0 8px rgba(0,0,0,.3);
}

/* 提示条发光 */
#alert-line {
  text-shadow: 0 0 10px rgba(255,207,94,.6), 0 0 20px rgba(255,207,94,.3);
}

/* 遮罩标题发光 */
.overlay-title {
  text-shadow: 0 0 18px rgba(255,207,94,.4), 0 0 40px rgba(255,207,94,.2);
}

/* 大按钮发光 */
.btn-big {
  box-shadow: 0 0 12px rgba(255,207,94,.3), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn-big:hover {
  box-shadow: 0 0 20px rgba(255,207,94,.5), inset 0 1px 0 rgba(255,255,255,.3);
}

/* 任务目标面板装饰 */
#objectives-panel {
  box-shadow: 0 0 12px rgba(0,0,0,.5);
  backdrop-filter: blur(2px);
}
.obj-title {
  text-shadow: 0 0 6px rgba(255,207,94,.3);
}

/* 战役关卡项悬停 */
.campaign-item:hover {
  box-shadow: 0 0 10px rgba(255,207,94,.15);
}

/* 难度按钮选中发光 */
.diff-btn.active {
  box-shadow: 0 0 8px rgba(124,224,74,.3);
}
.diff-btn[data-diff="hard"].active {
  box-shadow: 0 0 8px rgba(255,122,111,.3);
}

/* 遭遇战按钮选中发光 */
.ss-btn.active {
  box-shadow: 0 0 8px rgba(122,192,224,.3);
}

/* 建造队列进度条发光 */
.build-btn .queue-bar {
  box-shadow: 0 0 4px var(--green);
}

/* 生产光点 */
.spawnmark {
  filter: drop-shadow(0 0 3px #ffd23f);
}

/* 巡逻路径线 */
.patrol-path {
  filter: drop-shadow(0 0 2px currentColor);
}

/* 放置幽灵 */
#layer-ghost rect {
  filter: drop-shadow(0 0 4px currentColor);
}

/* 单位阴影 */
.ent .shadow {
  filter: blur(1px);
}

/* 建筑阴影 */
.b-base {
  filter: drop-shadow(2px 2px 3px rgba(0,0,0,.4));
}

/* 矿石发光 */
.ore polygon {
  filter: drop-shadow(0 0 1px rgba(230,199,74,.3));
}

/* 树木阴影 */
#layer-terrain g circle {
  filter: none;
}

/* 滚动条美化 */
#sidebar::-webkit-scrollbar {
  width: 6px;
}
#sidebar::-webkit-scrollbar-track {
  background: #14170f;
}
#sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3a4234, #2a3028);
  border-radius: 3px;
}
#sidebar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #4a5244, #3a4038);
}

/* 全局过渡 */
* {
  transition: border-color .15s, color .15s, background .15s, box-shadow .15s;
}

/* 禁用过渡的元素 */
.ent, .ent *, #layer-terrain *, #layer-ore *, .boom, .part, .proj, .flash, .levelup {
  transition: none;
}
