* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #a855f7;
  --primary-dark: #7c3aed;
  --pink: #ec4899;
  --bg: #0f0a1e;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --success: #10b981;
  --error: #ef4444;
}

html, body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

.bg-blobs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}

.blob-1 { width: 500px; height: 500px; background: var(--primary); top: -100px; left: -100px; }
.blob-2 { width: 400px; height: 400px; background: var(--pink); bottom: -100px; right: -50px; animation-delay: -7s; }
.blob-3 { width: 300px; height: 300px; background: #3b82f6; top: 40%; right: 20%; animation-delay: -14s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 40px) scale(0.9); }
}

main {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

header { text-align: center; margin-bottom: 32px; }

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #d8b4fe 50%, #f9a8d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.subtitle { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 16px; }

.badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.badge {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.status {
  text-align: center;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: all 0.3s;
}

.status.working {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.3);
  color: #d8b4fe;
}

.status.success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.status.error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.dropzone {
  border: 2px dashed var(--border);
  border-radius: 24px;
  background: var(--surface);
  padding: 60px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
}

.dropzone:hover, .dropzone:focus, .dropzone.drag-over {
  border-color: var(--primary);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.dropzone.drag-over {
  border-style: solid;
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.15);
}

.dropzone-inner .icon { font-size: 4rem; margin-bottom: 16px; }
.hint { font-size: 1.1rem; font-weight: 500; margin-bottom: 8px; }
.sub-hint { color: var(--text-muted); font-size: 0.9rem; }

.hidden { display: none !important; }

.result { animation: fadeUp 0.4s ease-out; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.compare-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 700px) {
  .compare-wrap { grid-template-columns: 1fr; }
}

.pane {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.pane-title {
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.pane-img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  min-height: 300px;
  background: rgba(0, 0, 0, 0.2);
}

.pane-img img { max-width: 100%; max-height: 400px; border-radius: 8px; }

.checkered {
  background-image:
    linear-gradient(45deg, #333 25%, transparent 25%),
    linear-gradient(-45deg, #333 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #333 75%),
    linear-gradient(-45deg, transparent 75%, #333 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  padding: 12px 28px;
  border-radius: 12px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--pink) 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(168, 85, 247, 0.5);
}

.btn.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn.secondary:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
}

footer {
  margin-top: 60px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer a { color: #d8b4fe; text-decoration: none; }
footer a:hover { text-decoration: underline; }
