* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { width: 100%; height: 100%; overflow: hidden; background: #16202c; }
#c { display: block; width: 100%; height: 100%; }

/* 顶栏 */
#title-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 46px;
  display: flex; align-items: center; gap: 12px; padding: 0 18px;
  background: linear-gradient(180deg, rgba(16,28,42,0.92), rgba(16,28,42,0.78));
  color: #e8eef4; z-index: 20;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(120,160,200,0.25);
}
#title-bar .logo { color: #39c2ff; font-size: 18px; }
#title-bar .title { font-size: 17px; font-weight: 600; letter-spacing: 1px; }
#title-bar .sub { font-size: 12px; color: #9fb4c8; margin-left: 6px; }
#mode-select {
  margin-left: auto; background: rgba(40,60,84,0.9); color: #cfe2f2;
  border: 1px solid rgba(120,160,200,0.35); border-radius: 6px;
  padding: 4px 10px; font-size: 13px; cursor: pointer;
}

/* 左侧面板 */
#left-panel {
  position: fixed; top: 58px; left: 12px; bottom: 44px; width: 216px;
  background: rgba(16,28,42,0.82); backdrop-filter: blur(8px);
  border: 1px solid rgba(120,160,200,0.22); border-radius: 10px;
  padding: 12px 10px; overflow-y: auto; z-index: 15;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #d7e3ee;
}
.panel-title {
  font-size: 12px; color: #7fa3c2; letter-spacing: 2px;
  margin: 10px 4px 8px; border-left: 3px solid #39c2ff; padding-left: 8px;
}
.panel-title:first-child { margin-top: 0; }
.sec-item {
  padding: 7px 12px; margin: 2px 0; border-radius: 6px;
  font-size: 13.5px; cursor: pointer; transition: all .15s;
  border: 1px solid transparent;
}
.sec-item:hover { background: rgba(57,194,255,0.12); }
.sec-item.active {
  background: rgba(57,194,255,0.18); border-color: rgba(57,194,255,0.45);
  color: #bfe9ff;
}
.tgl-row {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 12px; font-size: 13px; cursor: pointer; border-radius: 6px;
}
.tgl-row:hover { background: rgba(57,194,255,0.08); }
.tgl-row input { accent-color: #39c2ff; width: 14px; height: 14px; }

/* 信息卡 */
#info-card {
  position: fixed; top: 58px; right: 12px; width: 250px;
  background: rgba(16,28,42,0.9); backdrop-filter: blur(8px);
  border: 1px solid rgba(120,160,200,0.3); border-radius: 10px;
  padding: 14px 16px; z-index: 15; display: none;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #d7e3ee; box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}
#info-card.show { display: block; animation: pop .18s ease-out; }
@keyframes pop { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }
#info-card .close {
  position: absolute; top: 8px; right: 10px; background: none; border: none;
  color: #7fa3c2; font-size: 14px; cursor: pointer;
}
#info-card .close:hover { color: #fff; }
#info-card .eq-name { font-size: 15.5px; font-weight: 600; color: #eef5fb; margin-bottom: 4px; }
#info-card .eq-meta { font-size: 12px; color: #39c2ff; margin-bottom: 8px; }
#info-card .eq-params { list-style: none; }
#info-card .eq-params li {
  font-size: 12.5px; color: #a9c0d4; padding: 3px 0 3px 12px; position: relative;
}
#info-card .eq-params li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 5px; height: 5px; border-radius: 50%; background: #39c2ff;
}

/* 图例 */
#legend {
  position: fixed; bottom: 44px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 16px; padding: 8px 18px;
  background: rgba(16,28,42,0.78); border: 1px solid rgba(120,160,200,0.22);
  border-radius: 20px; z-index: 15;
  font-family: "PingFang SC", sans-serif; font-size: 12px; color: #c7d8e6;
}
.lg-item { display: flex; align-items: center; gap: 6px; }
.lg-item i { width: 14px; height: 5px; border-radius: 2px; display: inline-block; }

/* 状态与提示 */
#stats {
  position: fixed; bottom: 12px; right: 14px; z-index: 15;
  font-family: "SF Mono", Menlo, monospace; font-size: 11px; color: #6f8ba3;
}
#hint {
  position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%);
  font-family: "PingFang SC", sans-serif; font-size: 12px; color: #7d94a9; z-index: 14;
}
