﻿:root {
  --accent-a: #7d4cff;
  --accent-b: #13d6c5;
  --accent-c: #ffb547;
  --surface: #111827;
  --panel: #182235;
  --panel-2: #22314d;
  --line: rgba(129, 140, 248, 0.28);
  --line-strong: rgba(19, 214, 197, 0.45);
  --text: #f3f7ff;
  --muted: #a8b3cf;
}

html, body, #root {
  background:
    radial-gradient(circle at 20% 15%, rgba(125, 76, 255, 0.28), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(19, 214, 197, 0.2), transparent 26%),
    linear-gradient(180deg, #0a1020 0%, #0f1729 45%, #0d1424 100%) !important;
  color: var(--text);
}

#root {
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    radial-gradient(circle at top, rgba(125, 76, 255, 0.15), transparent 42%);
  background-size: 24px 24px, 24px 24px, auto;
}

.qq-window {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.95), rgba(9, 13, 24, 0.98));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(125, 76, 255, 0.18);
  border-radius: 14px;
  overflow: hidden;
}

.qq-titlebar {
  background: linear-gradient(135deg, #19253f 0%, #24345d 45%, #1a3144 100%);
  border-bottom: 1px solid rgba(19, 214, 197, 0.35);
  text-shadow: none;
}

.qq-title {
  color: #f7fbff;
  letter-spacing: 0;
}

.qq-titlebar-right {
  gap: 8px;
}

.language-button,
.about-button,
.share-button {
  background: linear-gradient(180deg, rgba(245, 247, 255, 0.98), rgba(212, 221, 245, 0.98));
  color: #162033;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 1px 0 rgba(255,255,255,0.75) inset, 0 6px 16px rgba(0,0,0,0.16);
  text-shadow: none;
}

.language-button:hover,
.about-button:hover,
.share-button:hover {
  background: linear-gradient(180deg, #ffffff, #dbe4ff);
  border-color: rgba(19, 214, 197, 0.65);
}

.qq-show-display,
.share-display-container {
  background: linear-gradient(180deg, #ffffff, #dde6ff) !important;
  border: 1px solid rgba(19, 214, 197, 0.38) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.qq-show-display:after,
.share-display-container:after {
  border-color: rgba(125, 76, 255, 0.35) !important;
}

.category-selector,
.item-selector {
  background: linear-gradient(180deg, #1b2640 0%, #101929 100%);
  border: 1px solid rgba(125, 76, 255, 0.24);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.category-selector:before,
.item-selector:before {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent 64%);
}

.category-title,
.item-selector-title,
.item-selector-placeholder,
.category-name,
.item-name {
  color: #f4f7ff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

.category-item,
.item-thumbnail {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(125, 76, 255, 0.18);
}

.category-item:hover,
.category-item.selected,
.item-thumbnail:hover,
.item-thumbnail.selected {
  background: linear-gradient(180deg, #24345d, #17233a);
  border-color: rgba(19, 214, 197, 0.6);
}

.category-item:hover .category-name,
.category-item.selected .category-name,
.item-thumbnail:hover .item-name,
.item-thumbnail.selected .item-name {
  color: #ffffff;
}

.selected-indicator,
.category-item .category-thumbnail .selected-indicator {
  background: linear-gradient(180deg, var(--accent-b), #0fa5a2) !important;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #4660a8, #1e3357);
  border: 1px solid rgba(255,255,255,0.2);
}

.qq-ui-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(17, 24, 39, 0.92);
  color: #f5f7ff;
  border: 1px solid rgba(19, 214, 197, 0.35);
  box-shadow: 0 14px 34px rgba(0,0,0,0.28);
  font: 12px/1.3 Unifont, monospace;
}

@media (max-width: 900px) {
  .qq-titlebar-right {
    gap: 4px;
  }
}
