.mirror-guide-trigger {
  position: fixed;
  left: 12px;
  top: calc(50% + 147px);
  z-index: 50;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  backdrop-filter: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.mirror-guide-trigger:hover,
.mirror-guide-trigger.is-active {
  transform: translateY(-1px) scale(1.04);
  background: var(--c-bg-hover, rgba(255, 255, 255, 0.08));
  color: #fff;
  box-shadow: none;
}

.mirror-guide-trigger svg {
  width: 22px;
  height: 22px;
}

.mirror-guide-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1275;
  background: rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.mirror-guide-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mirror-guide-panel {
  position: fixed;
  left: 72px;
  top: 50%;
  z-index: 1285;
  width: min(720px, calc(100vw - 96px));
  max-height: min(82vh, 680px);
  transform: translateY(-50%) translateX(-14px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(27, 28, 31, 0.96), rgba(18, 19, 22, 0.96));
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(20px);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mirror-guide-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0) scale(1);
}

.mirror-guide-panel__scroll {
  max-height: min(82vh, 680px);
  overflow: auto;
  padding: 20px 20px 22px;
}

.mirror-guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.mirror-guide-title {
  margin: 0;
  font: 700 16px/1.2 "Microsoft YaHei", sans-serif;
  letter-spacing: 0.01em;
  color: #fff;
}

.mirror-guide-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 140ms ease, color 140ms ease;
}

.mirror-guide-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.mirror-guide-section {
  margin-top: 22px;
}

.mirror-guide-section:first-of-type {
  margin-top: 0;
}

.mirror-guide-section-title {
  margin: 0 0 12px;
  font: 700 13px/1.2 "Microsoft YaHei", sans-serif;
  color: rgba(244, 241, 255, 0.98);
}

.mirror-guide-divider {
  height: 1px;
  margin: 12px 0 10px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
}

.mirror-guide-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 54px;
}

.mirror-guide-action {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.mirror-guide-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.86);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.025);
}

.mirror-guide-icon svg {
  width: 15px;
  height: 15px;
}

.mirror-guide-action strong {
  display: block;
  margin: 1px 0 4px;
  font: 700 13px/1.2 "Microsoft YaHei", sans-serif;
  color: rgba(255, 255, 255, 0.94);
}

.mirror-guide-action p {
  margin: 0;
  font: 500 12px/1.45 "Microsoft YaHei", sans-serif;
  color: rgba(255, 255, 255, 0.56);
}

.mirror-guide-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mirror-guide-shortcut {
  min-height: 40px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.74);
  font: 600 12px/1.2 "Microsoft YaHei", sans-serif;
}

.mirror-guide-key {
  flex: 0 0 auto;
  max-width: 58%;
  padding: 4px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.92);
  font: 700 10px/1 "Consolas", "SFMono-Regular", monospace;
  white-space: nowrap;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.22);
}

.mirror-guide-advanced {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 54px;
}

body.mirror-fs-open .mirror-guide-trigger,
body.mirror-fs-open .mirror-guide-backdrop,
body.mirror-fs-open .mirror-guide-panel,
html[data-mirror-home="1"] .mirror-guide-trigger,
html[data-mirror-home="1"] .mirror-guide-backdrop,
html[data-mirror-home="1"] .mirror-guide-panel {
  display: none;
}

@media (max-width: 820px) {
  .mirror-guide-panel {
    left: 12px;
    right: 12px;
    width: auto;
    top: 54%;
  }

  .mirror-guide-actions,
  .mirror-guide-advanced,
  .mirror-guide-shortcuts {
    grid-template-columns: 1fr;
  }
}
