/* =========================================================
   LQS · 第二版视觉系统「Paper & Signal」
   ---------------------------------------------------------
   与 build 面板彻底区分：
   - 布局：顶部命令栏 + 分组标签 + 页签条，无左侧栏
   - 色彩：暖纸底 / 墨黑硬边 / 信号橙 / 柠檬高亮
   - 造型：2px 墨线 + 硬投影（neo-brutal），方角标签
   - 字体：衬线大标题 + 系统无衬线正文 + 等宽数字
   ========================================================= */

/* ---------------- 设计变量 ---------------- */
:root {
  --p-paper: #f2ede0;
  --p-paper-2: #e9e2d0;
  --p-card: #fffdf6;
  --p-ink: #121212;
  --p-ink-soft: #34322c;
  --p-muted: #6d675a;
  --p-dim: #928a79;
  --p-orange: #ff5a1f;
  --p-orange-soft: #ffe3d5;
  --p-violet: #5936f0;
  --p-violet-soft: #e6e0ff;
  --p-lime: #e7ff4d;
  --p-green: #0f7a3d;
  --p-green-soft: #dcf2e4;
  --p-red: #c81e1e;
  --p-red-soft: #ffe0e0;
  --p-shadow: 5px 5px 0 var(--p-ink);
  --p-shadow-sm: 3px 3px 0 var(--p-ink);
  --p-radius: 14px;
  --p-radius-sm: 9px;

  /* 覆盖 style.css 基线变量 */
  --blue-600: #d94a12;
  --blue-500: #ff5a1f;
  --blue-800: #121212;
  --blue-100: #ffe3d5;
  --blue-50: #fff1e9;

  --slate-900: #121212;
  --slate-800: #24221d;
  --slate-700: #3b382f;
  --slate-600: #565145;
  --slate-500: #6d675a;
  --slate-400: #928a79;
  --slate-300: #b8b09c;
  --slate-200: #d8d0bc;
  --slate-100: #e9e2d0;
  --slate-50: #f2ede0;

  --green: #0f7a3d;
  --green-50: #dcf2e4;
  --green-700: #0b5c2e;

  --orange: #b45309;
  --orange-600: #92400e;
  --orange-50: #fff2d6;

  --purple: #5936f0;
  --purple-50: #e6e0ff;

  --red: #c81e1e;
  --red-600: #a51818;
  --red-50: #ffe0e0;
  --red-100: #ffc9c9;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-card: 5px 5px 0 #121212;
  --shadow-pop: 8px 8px 0 #121212;
}

/* ---------------- 全局 ---------------- */
html, body {
  background: var(--p-paper);
  color: var(--p-ink);
  font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(18, 18, 18, 0.10) 1px, transparent 0);
  background-size: 22px 22px;
}

#app { position: relative; z-index: 1; }

.boot { color: var(--p-muted); font-size: 14px; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--p-paper-2); }
::-webkit-scrollbar-thumb {
  background: var(--p-ink);
  border: 3px solid var(--p-paper-2);
  border-radius: 8px;
}

.mono { font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace; }
.muted { color: var(--p-muted); }
.text-green { color: var(--p-green); }
.text-red { color: var(--p-red); }
a { color: var(--p-orange); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- 顶部命令栏 ---------------- */
.app-layout { display: block; min-height: 100vh; }
.sidebar, .sidebar-overlay, .top-navbar { display: none !important; }
.main-content { margin-left: 0 !important; display: flex; flex-direction: column; min-width: 0; }

.lqs-topbar {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(242, 237, 224, 0.94);
  backdrop-filter: blur(16px) saturate(120%);
  border-bottom: 2px solid var(--p-ink);
}

.lqs-topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 72px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.lqs-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
}

.lqs-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  background: #ffffff;
  border: 2px solid var(--p-ink);
  border-radius: 10px;
  padding: 3px;
  box-shadow: var(--p-shadow-sm);
}

.lqs-wordmark {
  font-family: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--p-ink);
}

.lqs-wordmark .lqs-dot { color: var(--p-orange); }

.lqs-brand-sub {
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--p-muted);
  text-transform: uppercase;
  white-space: nowrap;
}

/* 一级：分组标签 */
.lqs-group-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  flex: 1;
  min-width: 0;
  scrollbar-width: none;
}
.lqs-group-tabs::-webkit-scrollbar { display: none; }

.lqs-group-tab {
  border: 2px solid transparent;
  background: transparent;
  color: var(--p-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 8px 13px;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.lqs-group-tab:hover { color: var(--p-ink); border-bottom-color: var(--p-ink); }

.lqs-group-tab.active {
  color: var(--p-ink);
  border: 2px solid var(--p-ink);
  background: var(--p-lime);
  box-shadow: var(--p-shadow-sm);
}

/* 二级：当前分组的页签 */
.lqs-subbar {
  border-top: 1px dashed rgba(18, 18, 18, 0.22);
  background: rgba(233, 226, 208, 0.9);
}

.lqs-subbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.lqs-subbar-inner::-webkit-scrollbar { display: none; }

.lqs-page-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid var(--p-ink);
  background: var(--p-card);
  color: var(--p-ink-soft);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.lqs-page-link:hover { transform: translate(-1px, -1px); box-shadow: 2px 2px 0 var(--p-ink); }

.lqs-page-link.active {
  background: var(--p-ink);
  color: var(--p-lime);
  box-shadow: none;
}

.lqs-page-link .icon svg { width: 14px; height: 14px; }

/* 右侧用户区 */
.lqs-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lqs-user-meta { text-align: right; line-height: 1.25; }
.lqs-user-name { font-size: 12.5px; font-weight: 700; color: var(--p-ink); }
.lqs-user-role {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--p-muted);
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 2px solid var(--p-ink);
  background: var(--p-orange);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--p-shadow-sm);
  text-transform: uppercase;
  flex-shrink: 0;
}

.user-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.lqs-icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--p-ink);
  border-radius: 9px;
  background: var(--p-card);
  color: var(--p-ink);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}

.lqs-icon-btn:hover { background: var(--p-lime); transform: translate(-1px, -1px); box-shadow: 2px 2px 0 var(--p-ink); }
.lqs-icon-btn:active { transform: translate(1px, 1px); box-shadow: none; }

.lqs-only-mobile { display: none; }

/* 移动端导航抽屉 */
.lqs-mobile-nav {
  position: fixed;
  inset: 72px 0 0 0;
  z-index: 110;
  background: var(--p-paper);
  border-top: 2px solid var(--p-ink);
  overflow-y: auto;
  padding: 18px 18px 40px;
  display: none;
}

.lqs-mobile-group { margin-bottom: 18px; }
.lqs-mobile-group-title {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--p-muted);
  padding: 0 6px 8px;
  border-bottom: 1px dashed rgba(18, 18, 18, 0.25);
}

.lqs-mobile-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 10px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--p-ink-soft);
  cursor: pointer;
}

.lqs-mobile-link.active { background: var(--p-lime); border: 2px solid var(--p-ink); }
.lqs-mobile-link:hover { background: var(--p-paper-2); }

/* ---------------- 内容区 ---------------- */
.lqs-main { background: transparent; }

.lqs-container,
.content-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 28px 80px;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--p-ink);
}

.page-title {
  font-family: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--p-ink);
  line-height: 1.15;
}

.page-sub { font-size: 12.5px; color: var(--p-muted); margin-top: 6px; }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* 页面切换：淡入 + 上移，短促 */
.content-container > * { animation: lqs-page-in 0.28s cubic-bezier(0.22, 0.8, 0.25, 1); }
@keyframes lqs-page-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--p-card);
  border: 2px solid var(--p-ink);
  border-radius: var(--p-radius);
  padding: 20px 20px;
  box-shadow: var(--p-shadow);
  margin-bottom: 22px;
  position: relative;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--p-ink); }
.card:last-child { margin-bottom: 0; }
.card-flat { box-shadow: none; background: var(--p-paper-2); }

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--p-ink);
}

.card-title .icon {
  color: var(--p-ink);
  background: var(--p-lime);
  border: 2px solid var(--p-ink);
  border-radius: 7px;
  padding: 3px;
  line-height: 0;
}

.card-title .icon svg { width: 14px; height: 14px; }
.card-desc { font-size: 12px; color: var(--p-muted); margin-top: 4px; }
.card-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border: 2px solid var(--p-ink);
  border-radius: var(--p-radius-sm);
  background: var(--p-card);
  color: var(--p-ink);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  box-shadow: var(--p-shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:not(:disabled):hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--p-ink); }
.btn:not(:disabled):active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--p-ink); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

.btn-primary { background: var(--p-orange); color: #ffffff; }
.btn-primary:not(:disabled):hover { background: #ff6f3c; }

.btn-secondary { background: var(--p-card); color: var(--p-ink); }
.btn-secondary:not(:disabled):hover { background: var(--p-lime); }

.btn-danger { background: var(--p-red); color: #ffffff; }
.btn-danger:not(:disabled):hover { background: #e02b2b; }

.btn-ghost {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--p-muted);
  padding: 6px 9px;
}
.btn-ghost:not(:disabled):hover { background: var(--p-paper-2); color: var(--p-ink); box-shadow: none; transform: none; }

.btn-sm { padding: 5px 10px; font-size: 12px; box-shadow: 2px 2px 0 var(--p-ink); }
.btn-block { width: 100%; }

/* ---------------- 表单 ---------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.form-grid .span-2 { grid-column: span 2; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--p-muted); }
.field-hint { font-size: 12px; color: var(--p-muted); line-height: 1.55; }
.field-error { font-size: 12px; color: var(--p-red); }

.input, .select, .textarea {
  width: 100%;
  padding: 9px 12px;
  border: 2px solid var(--p-ink);
  border-radius: var(--p-radius-sm);
  background: #ffffff;
  color: var(--p-ink);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}

.input:focus, .select:focus, .textarea:focus {
  background: #fffdf6;
  box-shadow: 3px 3px 0 var(--p-orange);
}

.input::placeholder, .textarea::placeholder { color: var(--p-dim); }
.textarea { min-height: 96px; resize: vertical; line-height: 1.55; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23121212' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 34px;
}

select option { background: #fffdf6; color: var(--p-ink); }

.checkbox { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; color: var(--p-ink-soft); user-select: none; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--p-orange); cursor: pointer; }

.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input[type="range"] { flex: 1; accent-color: var(--p-orange); }
.range-val { min-width: 34px; text-align: center; font-weight: 800; color: var(--p-orange); }

/* ---------------- 统计 / 键值 ---------------- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-bottom: 22px; }

.stat-card {
  position: relative;
  background: var(--p-card);
  border: 2px solid var(--p-ink);
  border-radius: var(--p-radius);
  padding: 18px 18px 16px;
  box-shadow: var(--p-shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.stat-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--p-ink); }
.stat-card::after { display: none; }

.stat-icon {
  width: 38px;
  height: 38px;
  border: 2px solid var(--p-ink);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: var(--p-lime);
  color: var(--p-ink);
}
.stat-icon svg { width: 20px; height: 20px; }

.stat-icon.blue { background: var(--p-orange-soft); color: var(--p-orange); }
.stat-icon.green { background: var(--p-green-soft); color: var(--p-green); }
.stat-icon.orange { background: #ffe7b8; color: #9a5b00; }
.stat-icon.purple { background: var(--p-violet-soft); color: var(--p-violet); }
.stat-icon.red { background: var(--p-red-soft); color: var(--p-red); }
.stat-icon.slate { background: var(--p-paper-2); color: var(--p-ink-soft); }

.stat-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--p-muted); margin-bottom: 6px; }

.stat-value {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 27px;
  font-weight: 700;
  color: var(--p-ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-desc { font-size: 12px; color: var(--p-muted); margin-top: 8px; }

.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }

.kv-item {
  background: #f7f2e4;
  border: 1.5px solid #ddd4bf;
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 0;
}

.kv-label { display: flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: 0.06em; color: var(--p-muted); margin-bottom: 4px; }
.kv-label svg { width: 13px; height: 13px; }
.kv-value { font-size: 13.5px; font-weight: 700; color: var(--p-ink); word-break: break-all; }

/* ---------------- 徽章 / 圆点 ---------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border: 1.5px solid var(--p-ink);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.6;
  background: var(--p-card);
  color: var(--p-ink);
  white-space: nowrap;
}

.badge.blue { background: var(--p-orange-soft); color: #b23c0c; }
.badge.green { background: var(--p-green-soft); color: var(--p-green); }
.badge.orange { background: #ffe7b8; color: #8a5200; }
.badge.purple { background: var(--p-violet-soft); color: var(--p-violet); }
.badge.red { background: var(--p-red-soft); color: var(--p-red); }
.badge.slate, .badge.gray { background: var(--p-paper-2); color: var(--p-ink-soft); }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; border: 1.5px solid var(--p-ink); }
.dot.green { background: var(--p-green); }
.dot.red { background: var(--p-red); }
.dot.orange { background: #f2a20c; }
.dot.slate { background: #b8b09c; }
.dot.blue { background: var(--p-orange); }

/* ---------------- 表格 ---------------- */
.table-wrap {
  overflow-x: auto;
  border: 2px solid var(--p-ink);
  border-radius: var(--p-radius-sm);
  background: var(--p-card);
  box-shadow: var(--p-shadow-sm);
}

.table { width: 100%; border-collapse: collapse; font-size: 13px; }

.table th {
  background: var(--p-ink);
  color: #f2ede0;
  text-align: left;
  padding: 10px 12px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 2px solid var(--p-ink);
}

.table th:first-child { border-top-left-radius: 0; }
.table th:last-child { border-top-right-radius: 0; }

.table td {
  padding: 10px 12px;
  color: var(--p-ink-soft);
  border-bottom: 1px dashed rgba(18, 18, 18, 0.28);
  vertical-align: middle;
}

.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: #fff4d6; }
.table .actions { display: flex; gap: 6px; }

/* ---------------- 弹窗 ---------------- */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(18, 18, 18, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal {
  width: 100%;
  max-width: 520px;
  background: var(--p-card);
  border: 2px solid var(--p-ink);
  border-radius: var(--p-radius);
  box-shadow: 10px 10px 0 var(--p-ink);
  color: var(--p-ink);
  max-height: 88vh;
  overflow: auto;
  animation: lqs-pop-in 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes lqs-pop-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.modal-title {
  padding: 16px 20px;
  border-bottom: 2px solid var(--p-ink);
  font-size: 16px;
  font-weight: 800;
  background: var(--p-lime);
}

.modal-body { padding: 18px 20px; color: var(--p-ink-soft); }
.modal-body .field-hint, .modal-body .muted { color: var(--p-muted); }

.modal-actions {
  padding: 14px 20px;
  border-top: 2px solid var(--p-ink);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: var(--p-paper-2);
}

/* ---------------- Toast ---------------- */
.toasts {
  position: fixed;
  top: 88px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}

.toast {
  background: var(--p-ink);
  color: #f2ede0;
  padding: 10px 18px;
  border: 2px solid var(--p-ink);
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 4px 4px 0 var(--p-orange);
  max-width: 560px;
}

/* ---------------- 空状态 / 加载 ---------------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 16px;
  color: var(--p-muted);
  font-size: 13px;
  text-align: center;
}

.empty-state .icon { color: var(--p-dim); }
.empty-state .icon svg { width: 34px; height: 34px; }

.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 32px; color: var(--p-muted); font-size: 13px; }

.spinner {
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(18, 18, 18, 0.2);
  border-top-color: var(--p-orange);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- 进度条 ---------------- */
.progress { height: 10px; background: var(--p-paper-2); border: 2px solid var(--p-ink); border-radius: 999px; overflow: hidden; min-width: 90px; }
.progress-bar { height: 100%; background: var(--p-orange); transition: width 0.3s ease; }
.progress-bar.green { background: var(--p-green); }
.progress-bar.red { background: var(--p-red); }
.progress-bar.orange { background: #f2a20c; }

/* ---------------- 日志 / 终端 ---------------- */
.log-view, .terminal {
  background: #101010;
  color: #d7f7c8;
  border: 2px solid var(--p-ink);
  border-radius: 10px;
  padding: 12px 14px;
  height: 320px;
  overflow-y: auto;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.7;
  box-shadow: inset 0 0 0 1px rgba(231, 255, 77, 0.08);
}

.terminal { height: 62vh; min-height: 320px; }
.terminal::-webkit-scrollbar { width: 10px; }
.terminal::-webkit-scrollbar-track { background: #101010; }
.terminal::-webkit-scrollbar-thumb { background: #3b3b3b; border-radius: 6px; }

.log-line { color: #d7f7c8; white-space: pre-wrap; word-break: break-all; }
.log-line .ts { color: #7c8b6a; margin-right: 8px; }
.log-line.warn { color: #ffd54a; }
.log-line.error { color: #ff7a6b; }
.log-line.debug { color: #9aa88b; }

/* ---------------- 标签 chips ---------------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 2px solid var(--p-ink);
  border-radius: 999px;
  background: var(--p-card);
  color: var(--p-ink-soft);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background 0.12s ease, color 0.12s ease, transform 0.12s ease;
}

.chip:hover { transform: translate(-1px, -1px); box-shadow: 2px 2px 0 var(--p-ink); }
.chip.active { background: var(--p-ink); color: var(--p-lime); box-shadow: none; }

/* ---------------- 公告弹窗 ---------------- */
.announce-mask {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(18, 18, 18, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.announce-card {
  width: 100%;
  max-width: 520px;
  background: var(--p-card);
  border: 2px solid var(--p-ink);
  border-radius: var(--p-radius);
  box-shadow: 10px 10px 0 var(--p-ink);
  overflow: hidden;
}

.announce-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--p-orange);
  color: #ffffff;
  border-bottom: 2px solid var(--p-ink);
  font-weight: 800;
}

.announce-body { padding: 18px; font-size: 13.5px; line-height: 1.7; color: var(--p-ink-soft); white-space: pre-wrap; }
.announce-card .btn { margin: 0 18px 18px; }

/* ---------------- 登录页 ---------------- */
.login-view {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: var(--p-paper);
}

.login-view.lqs-login { display: grid; overflow: visible; background: transparent; }

/* 左侧海报 */
.lqs-poster {
  position: relative;
  background: var(--p-ink);
  color: var(--p-paper);
  padding: 56px 56px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.lqs-poster::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  background: var(--p-orange);
  border-radius: 50%;
  opacity: 0.9;
}

.lqs-poster::before {
  content: "";
  position: absolute;
  right: 90px;
  top: 60px;
  width: 120px;
  height: 120px;
  border: 2px solid rgba(242, 237, 224, 0.35);
  transform: rotate(18deg);
}

.lqs-poster-kicker {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--p-lime);
  position: relative;
  z-index: 2;
}

.lqs-poster-title {
  font-family: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 26px 0 18px;
  position: relative;
  z-index: 2;
}

.lqs-poster-title span { color: var(--p-orange); }

.lqs-poster-desc {
  max-width: 420px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(242, 237, 224, 0.72);
  position: relative;
  z-index: 2;
}

.lqs-poster-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
  position: relative;
  z-index: 2;
}

.lqs-poster-meta span {
  border: 1px solid rgba(242, 237, 224, 0.4);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: rgba(242, 237, 224, 0.85);
}

.lqs-poster-foot {
  position: relative;
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 237, 224, 0.5);
  margin-top: 40px;
}

/* 右侧表单 */
.lqs-login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 32px;
  background: var(--p-paper);
  border-left: 2px solid var(--p-ink);
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--p-card);
  border: 2px solid var(--p-ink);
  border-radius: var(--p-radius);
  box-shadow: 8px 8px 0 var(--p-ink);
  padding: 28px 26px 24px;
}

.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }

.login-brand .lqs-logo {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  box-shadow: var(--p-shadow-sm);
}

.login-title { font-family: Georgia, "Times New Roman", "Songti SC", serif; font-size: 22px; font-weight: 700; }
.login-sub { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--p-muted); margin-top: 2px; }

.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-hint { font-size: 11.5px; color: var(--p-muted); line-height: 1.6; }

.login-error {
  margin-top: 14px;
  padding: 9px 12px;
  border: 2px solid var(--p-red);
  border-radius: 8px;
  background: var(--p-red-soft);
  color: var(--p-red);
  font-size: 12.5px;
}

.login-switch { margin-top: 16px; font-size: 12.5px; color: var(--p-muted); display: flex; gap: 6px; flex-wrap: wrap; }
.login-switch a { color: var(--p-orange); cursor: pointer; font-weight: 700; }
.login-foot { margin-top: 26px; font-size: 11px; letter-spacing: 0.08em; color: var(--p-dim); text-align: center; }

/* ---------------- 其它 ---------------- */
.hamburger { display: none; }
.sidebar-footer { display: none; }

/* 隐藏上一版登录页装饰（模板已不再使用，保险起见） */
.lqs-bg, .lqs-grid, .lqs-beam, .lqs-spotlight, .lqs-noise { display: none !important; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .lqs-topbar-inner { gap: 14px; padding: 0 18px; }
  .lqs-brand-sub { display: none; }
  .lqs-poster-title { font-size: 48px; }
  .lqs-poster { padding: 40px 36px 32px; }
}

@media (max-width: 920px) {
  .lqs-topbar-inner { height: 60px; }
  .lqs-group-tabs, .lqs-subbar, .lqs-user-meta { display: none; }
  .lqs-only-mobile { display: inline-flex; }
  .lqs-mobile-nav { display: block; top: 60px; }
  .lqs-container, .content-container { padding: 20px 16px 64px; }
  .page-title { font-size: 25px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .stats-grid { grid-template-columns: 1fr; gap: 14px; }
  .login-view { grid-template-columns: 1fr; }
  .lqs-poster { display: none; }
  .lqs-login-panel { border-left: none; padding: 28px 18px; }
  .login-card { box-shadow: 6px 6px 0 var(--p-ink); }
  .toasts { top: 72px; width: calc(100% - 24px); }
  .modal, .announce-card { box-shadow: 6px 6px 0 var(--p-ink); }
}

@media (prefers-reduced-motion: reduce) {
  .content-container > *, .modal { animation: none !important; }
  .card, .btn, .chip, .lqs-page-link { transition: none !important; }
}
