/* ============================================================
   styles/help.css — 帮助面板
   （原 styles/main.css 拆解而来：1407~1573 行）
   ============================================================ */

#help-panel {
  z-index: 90;
}

.help-panel {
  width: min(640px, 94vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: linear-gradient(180deg, #1c1f38, #141628);
  border: 1px solid rgba(255, 226, 150, 0.18);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.help-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.help-head h2 {
  margin: 0;
  font-size: 16px;
  color: #ffe296;
  letter-spacing: 0.1em;
}

.help-head button {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #cfc6b8;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.12s;
}

.help-head button:hover {
  background: rgba(255, 120, 120, 0.2);
  color: #ffb3b3;
}

.help-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.help-tab {
  padding: 9px 18px;
  border: none;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.12s;
  position: relative;
  bottom: -1px;
}

.help-tab:hover {
  color: #cfc6b8;
}

.help-tab.active {
  color: #ffe296;
  background: rgba(255, 226, 150, 0.08);
  border-bottom: 2px solid #ffe296;
}

.help-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.help-body::-webkit-scrollbar { width: 8px; }
.help-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.help-section {
  margin-bottom: 20px;
}

.help-section:last-child {
  margin-bottom: 0;
}

.help-section-title {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.15em;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.help-key-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 7px 0;
  font-size: 13px;
  color: #cfc6b8;
}

.help-key-row .hk {
  display: inline-block;
  min-width: 88px;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(255, 226, 150, 0.1);
  border: 1px solid rgba(255, 226, 150, 0.22);
  color: #ffe296;
  font-family: ui-monospace, "Consolas", monospace;
  font-size: 12px;
  text-align: center;
}

.help-tip {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.9;
  padding: 2px 0;
}

.help-credit-row {
  display: flex;
  gap: 16px;
  padding: 7px 0;
  font-size: 13px;
  color: #cfc6b8;
}

.help-credit-row .cr-label {
  min-width: 96px;
  color: rgba(255, 255, 255, 0.45);
}

.help-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.help-foot b {
  color: #ffe296;
}
