/* ---------- 全局重置 ---------- */
:root {
  --footer-bg: rgba(30, 30, 30, 0.9);
  --footer-tx-color: #d0d0d0;
  --footer-bd-c: #333;
  --editor-bg: #1e1e1e;
  --select-tx-color: #f0f0f0;
  --logo-color: #f0f0f0;
  --header-shadow: rgba(0, 0, 0, 0.5);
  --header-bg: #2d2d2d;
  --header-border-bottom-c: #3d3d3d;
  --setting-bg: rgba(0, 0, 0, 1);
}
:root {
  --font: Fira Code, JetBrains Mono, Noto Sans SC, monospace;
  --header-height: 52px;
}
:root {
  --setting-ZIndex: 100;
  --header-ZIndex: 10;
  --editor-ZIndex: 0;
  --footer-ZIndex: 5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  background: var(--editor-bg);
}
.app-header {
  display: flex;
  justify-content: space-between;
}
.right {
  position: fixed;
  right: 0;
  height: var(--header-height);
  z-index: var(--header-ZIndex);
  background: #2d2d2d;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--header-border-bottom-c);
  box-shadow: 0 0 8px var(--header-shadow);
}
.right .account {
  color: #f0f0f0;
  cursor: pointer;
}
/* ---------- 顶部栏 ---------- */
.left {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: var(--header-ZIndex);
  background: var(--header-bg);
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--header-border-bottom-c);
  box-shadow: 0 2px 8px var(--header-shadow);
}

.left .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--logo-color);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.left .LangSelect,
.left .ThemeSelect {
  margin-left: 0.55rem;
  max-width: 170px;
  min-height: 32px;
}
.sel-item span {
  color: var(--select-tx-color);
}
.left .sel-item {
  display: flex;
  min-width: 260px;
  align-items: center;
  margin-left: 1rem;
}
@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

/* ---------- 编辑器容器 ---------- */
.editor-container {
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--editor-ZIndex);
  background: var(--editor-bg);
  overflow: hidden;
}

/* ---------- 右下角信息 ---------- */
.editor-footer {
  position: fixed;
  bottom: 0;
  text-align: end;
  display: inline-block;
  right: 0;
  width: 100%;
  height: 28px;
  z-index: var(--footer-ZIndex);
  color: var(--footer-tx-color);
  font-size: 12px;
  font-family: var(--font);
  background: var(--footer-bg);
  padding: 6px 14px;
  backdrop-filter: blur(8px);
  border: 1px solid var(--footer-bd-c);
  user-select: none;
  pointer-events: none;
}
.settingPage {
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  border-width: medium;
  border-style: none;
  border-color: currentcolor;
  position: fixed;
  border-image: initial;
  z-index: var(--setting-ZIndex);
  background-color: var(--setting-bg);
  opacity: 1;
  pointer-events: auto;
  display: block;
}
/* ---------- 响应式 ---------- */
@media (max-width: 600px) {
  .app-header .logo span {
    display: none;
  }

  .app-header .status .text {
    display: none;
  }

  .app-header .badge {
    font-size: 10px;
    padding: 2px 10px;
  }
}
