:root {
  --bg: #0a0e17;
  --panel: #121929;
  --panel-2: #1e293b;
  --line: #243044;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --green: #39ff14;
  --cyan: #00f5ff;
  --violet: #9d4edd;
  --pink: #ff4fd8;
  --radius: 12px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-green: 0 0 8px rgba(57, 255, 20, 0.35);
  --shadow-cyan: 0 0 8px rgba(0, 245, 255, 0.35);
  --shadow-violet: 0 0 8px rgba(157, 78, 221, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(30, 41, 59, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 41, 59, 0.35) 1px, transparent 1px);
  background-size: 22px 22px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transition: opacity 0.45s ease;
}

body.is-ready {
  opacity: 1;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
  z-index: 0;
  animation: float 7s ease-in-out infinite;
}

.orb-a {
  top: -4rem;
  left: -3rem;
  width: 12rem;
  height: 12rem;
  background: rgba(157, 78, 221, 0.12);
}

.orb-b {
  right: -2rem;
  bottom: -5rem;
  width: 16rem;
  height: 16rem;
  background: rgba(57, 255, 20, 0.08);
  animation-delay: 2s;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.25rem;
}

@media (min-width: 768px) {
  .wrap {
    padding: 1.75rem;
  }
}

.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease);
}

.panel:hover {
  transform: scale(1.002);
}

.panel-topbar {
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--violet));
  animation: pulse-bar 3s ease-in-out infinite;
}

.panel-head {
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid var(--line);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo {
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 0.65rem;
  background: #0f1624;
  border: 1px solid rgba(157, 78, 221, 0.35);
  color: var(--violet);
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: var(--shadow-violet);
  animation: float 6s ease-in-out infinite;
}

.brand-text h1 {
  margin: 0;
  font-size: clamp(1.15rem, 3.5vw, 1.55rem);
  font-weight: 700;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--violet);
  background: rgba(157, 78, 221, 0.18);
  border: 1px solid rgba(157, 78, 221, 0.35);
  border-radius: 999px;
}

.tagline {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: rgba(0, 245, 255, 0.85);
  font-style: italic;
}

.panel-body {
  display: grid;
  gap: 1.15rem;
  padding: 1.25rem;
}

@media (min-width: 900px) {
  .panel-body {
    grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr);
    gap: 1.25rem;
  }
}

.main-col,
.side-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.block {
  padding: 0.9rem;
  border-radius: 0.7rem;
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid var(--line);
  border-left: 2px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.block:hover {
  background: rgba(15, 22, 36, 0.55);
}

.block-green:hover {
  border-left-color: var(--green);
}

.block-cyan:hover {
  border-left-color: var(--cyan);
}

.block-violet:hover {
  border-left-color: var(--violet);
}

.block-title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.num {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.num-green {
  color: var(--green);
  background: rgba(57, 255, 20, 0.15);
  box-shadow: var(--shadow-green);
}

.num-cyan {
  color: var(--cyan);
  background: rgba(0, 245, 255, 0.15);
  box-shadow: var(--shadow-cyan);
}

.num-violet {
  color: var(--violet);
  background: rgba(157, 78, 221, 0.18);
  box-shadow: var(--shadow-violet);
}

.link-list {
  list-style: none;
  margin: 0 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.link-list a,
.plain-link {
  color: var(--cyan);
  text-decoration: none;
  word-break: break-all;
  text-shadow: 0 0 6px rgba(0, 245, 255, 0.25);
  transition: color 0.2s var(--ease);
}

.link-list a:hover,
.plain-link:hover {
  color: var(--pink);
  text-decoration: underline;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.6rem;
}

.link-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #64748b;
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.25rem;
  box-shadow: 0 0 0 2px rgba(100, 116, 139, 0.25);
}

.status-dot.is-ok {
  background: var(--green);
  box-shadow: 0 0 0 2px rgba(57, 255, 20, 0.25);
}

.status-dot.is-warn {
  background: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

.status-dot.is-bad {
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25);
}

.bookmark-hint {
  margin: 0.85rem 0 0 2rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-style: italic;
}

.tips-body {
  margin-left: 2rem;
  color: #d1d5db;
  font-size: 0.95rem;
}

.tips-body p {
  margin: 0 0 0.5rem;
}

.qq-box {
  margin-top: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(15, 22, 36, 0.75);
  border: 1px solid var(--line);
}

.qq-box strong {
  color: var(--green);
  font-weight: 600;
}

.side-card {
  padding: 1rem;
  border-radius: 0.7rem;
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid var(--line);
  transition: border-color 0.25s var(--ease);
}

.side-card:hover {
  border-color: rgba(157, 78, 221, 0.35);
}

.copy-btn {
  width: 100%;
  min-height: 2.85rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(157, 78, 221, 0.5);
  background: linear-gradient(90deg, rgba(0, 245, 255, 0.15), rgba(157, 78, 221, 0.18));
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-violet);
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.copy-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.copy-btn.is-ok {
  border-color: rgba(57, 255, 20, 0.55);
  box-shadow: var(--shadow-green);
}

.source-line {
  margin: 0.65rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
}

.hint {
  min-height: 1.2em;
  margin: 0.45rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--green);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.hint.is-visible {
  opacity: 1;
}

.side-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: #fff;
  font-weight: 600;
}

.chip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.4rem 0.55rem;
  border-radius: 0.45rem;
  background: rgba(15, 22, 36, 0.65);
  border: 1px solid transparent;
  color: var(--text);
  text-decoration: none;
  font: inherit;
  font-size: 0.82rem;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.chip:hover {
  background: rgba(10, 14, 23, 0.9);
  border-color: rgba(0, 245, 255, 0.35);
  color: var(--cyan);
}

.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 14, 0.72);
  backdrop-filter: blur(4px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(34rem, 100%);
  max-height: min(90vh, 40rem);
  overflow: auto;
  padding: 1.25rem;
  border-radius: 0.85rem;
  background: var(--panel);
  border: 1px solid rgba(157, 78, 221, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  color: #fff;
}

.modal-title {
  margin: 0 1.5rem 0.35rem 0;
  color: #fff;
  font-size: 1.1rem;
}

.modal-desc {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.donate-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.panel-foot {
  padding: 1rem 1.25rem 1.2rem;
  border-top: 1px solid var(--line);
  background: rgba(10, 14, 23, 0.45);
  text-align: center;
  color: #6b7280;
  font-size: 0.75rem;
}

.panel-foot p {
  margin: 0;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes pulse-bar {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  body {
    opacity: 1;
  }
}
