/*
Theme Name: GISYXS Redesign
Theme URI: https://www.gisyxs.com/
Author: GIS研习社
Description: Tailwind-only redesign theme for GIS研习社.
Version: 0.1.0
Text Domain: gisyxs-redesign
*/

body .gisyxs-content :not(pre) > code {
  border-radius: 0.4rem;
  background: #ecfdf5;
  color: #047857;
  padding: 0.12rem 0.38rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
  font-weight: 700;
}

body .gisyxs-content pre {
  position: relative;
  margin: 1.75rem 0;
  overflow-x: auto;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0) 3rem),
    #0b1220;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
  color: #dbeafe;
  padding: 3.15rem 1.4rem 1.25rem;
  tab-size: 2;
}

body .gisyxs-content pre code {
  display: block;
  min-width: max-content;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.85;
  white-space: pre;
}

body .gisyxs-content pre .gisyxs-code-copy {
  position: absolute;
  top: 0.8rem;
  right: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #c7d2fe;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.5rem 0.72rem;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

body .gisyxs-content pre .gisyxs-code-copy:hover,
body .gisyxs-content pre .gisyxs-code-copy:focus-visible {
  border-color: rgba(16, 185, 129, 0.55);
  background: rgba(4, 120, 87, 0.92);
  color: #ecfdf5;
  outline: none;
  transform: translateY(-1px);
}

body .gisyxs-content pre .gisyxs-code-copy:disabled {
  cursor: default;
}

body .gisyxs-content pre .gisyxs-code-copy.is-copied {
  border-color: rgba(52, 211, 153, 0.7);
  background: rgba(6, 95, 70, 0.96);
  color: #d1fae5;
}

body .gisyxs-content pre .gisyxs-code-copy.is-failed {
  border-color: rgba(251, 146, 60, 0.6);
  background: rgba(124, 45, 18, 0.96);
  color: #ffedd5;
}

body .gisyxs-content pre .gisyxs-code-copy svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
