:root {
  color-scheme: dark;
  --bg: #06100e;
  --bg-soft: #0a1916;
  --card: rgba(14, 32, 28, 0.72);
  --card-solid: #0e201c;
  --border: rgba(117, 240, 197, 0.14);
  --border-strong: rgba(117, 240, 197, 0.32);
  --text: #e9f7f1;
  --muted: #8fa9a1;
  --muted-strong: #b9cec7;
  --accent: #35f0a8;
  --accent-soft: rgba(53, 240, 168, 0.12);
  --accent-2: #4cc9f0;
  --danger: #ff7a7a;
  --danger-soft: rgba(255, 122, 122, 0.12);
  --warning: #ffcf6b;
  --warning-soft: rgba(255, 207, 107, 0.12);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --font-sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono",
    monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 5%, rgba(53, 240, 168, 0.08), transparent 45%),
    radial-gradient(circle at 85% 25%, rgba(76, 201, 240, 0.07), transparent 42%),
    linear-gradient(180deg, #06100e 0%, #081513 55%, #050d0b 100%);
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 240, 200, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 240, 200, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 12%, rgba(0, 0, 0, 0.9), transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 12%, rgba(0, 0, 0, 0.9), transparent 72%);
}

.glow {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.45;
}

.glow-a {
  top: -180px;
  left: -120px;
  background: rgba(53, 240, 168, 0.28);
}

.glow-b {
  top: 120px;
  right: -220px;
  background: rgba(76, 201, 240, 0.22);
}

.page {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 52px 20px 64px;
}

.hero {
  margin-bottom: 28px;
  animation: rise 0.6s ease both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted-strong);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--accent);
  background: linear-gradient(145deg, rgba(53, 240, 168, 0.18), rgba(76, 201, 240, 0.08));
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 0 16px rgba(53, 240, 168, 0.12);
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

.brand-name {
  color: var(--text);
}

.brand-badge {
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 22px 0 10px;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.24;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.hero h1 span {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 15px;
}

.banner {
  margin-bottom: 18px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-strong);
  font-size: 14px;
  animation: rise 0.4s ease both;
}

.banner-warning {
  border-color: rgba(255, 207, 107, 0.35);
  background: var(--warning-soft);
  color: #ffe4a8;
}

.banner-error {
  border-color: rgba(255, 122, 122, 0.35);
  background: var(--danger-soft);
  color: #ffc2c2;
}

.card {
  position: relative;
  margin-bottom: 18px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: rise 0.6s ease both;
}

.card:nth-of-type(2) {
  animation-delay: 0.05s;
}

.card:nth-of-type(3) {
  animation-delay: 0.1s;
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.card-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.meta {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 500;
}

.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrap input {
  width: 100%;
  height: 46px;
  padding: 0 46px 0 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(4, 12, 10, 0.55);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.password-wrap input::placeholder {
  color: #5f776f;
}

.password-wrap input:focus {
  outline: none;
  border-color: var(--border-strong);
  background: rgba(4, 12, 10, 0.8);
  box-shadow: 0 0 0 3px rgba(53, 240, 168, 0.1);
}

.password-wrap input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ghost-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted-strong);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ghost-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
}

.icon-btn {
  position: absolute;
  right: 6px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  color: var(--muted);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border: none;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.icon-eye-off {
  display: none;
}

.icon-btn.is-visible .icon-eye {
  display: none;
}

.icon-btn.is-visible .icon-eye-off {
  display: block;
}

.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 178px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(117, 240, 197, 0.28);
  background:
    radial-gradient(circle at 50% 0%, rgba(53, 240, 168, 0.07), transparent 62%),
    rgba(4, 12, 10, 0.35);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.dropzone:hover,
.dropzone:focus-visible {
  outline: none;
  border-color: var(--border-strong);
  background:
    radial-gradient(circle at 50% 0%, rgba(53, 240, 168, 0.12), transparent 62%),
    rgba(4, 12, 10, 0.45);
}

.dropzone.is-dragover {
  border-color: var(--accent);
  background:
    radial-gradient(circle at 50% 0%, rgba(53, 240, 168, 0.18), transparent 65%),
    rgba(4, 12, 10, 0.5);
  transform: translateY(-1px);
}

.dropzone.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.drop-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 4px;
  border-radius: 14px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border);
}

.drop-icon svg {
  width: 24px;
  height: 24px;
}

.drop-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.drop-sub {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}

.pending {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(4, 12, 10, 0.4);
}

.preview {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  flex: 0 0 auto;
}

.pending-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  gap: 2px;
}

.pending-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}

.pending-info span {
  color: var(--muted);
  font-size: 12px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(120deg, var(--accent) 0%, #2fd6e6 100%);
  color: #04241a;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 30px rgba(53, 240, 168, 0.18);
}

.primary-btn svg {
  width: 17px;
  height: 17px;
}

.primary-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(53, 240, 168, 0.26);
}

.primary-btn:active:not(:disabled) {
  transform: translateY(0);
}

.primary-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.progress {
  position: relative;
  flex: 1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.18s ease;
}

.status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.status.is-success {
  color: var(--accent);
}

.status.is-error {
  color: var(--danger);
}

.status.is-warning {
  color: var(--warning);
}

.results {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 12px;
  color: var(--muted);
  text-align: center;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border);
  background: rgba(4, 12, 10, 0.25);
}

.empty svg {
  width: 26px;
  height: 26px;
  color: #5f776f;
}

.empty p {
  margin: 0;
  font-size: 13px;
}

.result {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(4, 12, 10, 0.4);
  animation: rise 0.3s ease both;
}

.thumb {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.result-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.result-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.result-time {
  color: var(--muted);
  font-size: 11.5px;
}

.result-url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  text-decoration: none;
}

.result-url:hover {
  color: var(--accent);
}

.result-meta {
  color: var(--muted);
  font-size: 11.5px;
}

.copy-btn {
  flex: 0 0 auto;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-strong);
  font-family: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.copy-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.copy-btn.is-copied {
  color: var(--accent);
  border-color: var(--border-strong);
  background: var(--accent-soft);
}

.code-block {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(3, 10, 8, 0.7);
  color: #c8e8dd;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
}

.code-block code {
  font-family: inherit;
}

.hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  color: #5f776f;
  font-size: 12px;
}

.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #5f776f;
}

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

@media (max-width: 640px) {
  .page {
    padding: 32px 14px 48px;
  }

  .card {
    padding: 18px;
    border-radius: 18px;
  }

  .card-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .meta {
    text-align: left;
  }

  .actions {
    flex-wrap: wrap;
  }

  .primary-btn {
    width: 100%;
  }

  .progress {
    width: 100%;
  }

  .result {
    flex-wrap: wrap;
  }

  .copy-btn {
    width: 100%;
  }

  .footer {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}