:root {
  --bg0: #0b1c22;
  --bg1: #123038;
  --bg2: #1a4550;
  --surface: rgba(247, 250, 249, 0.94);
  --ink: #102a2e;
  --ink-soft: #3d5a63;
  --line: #c5d5d9;
  --accent: #0d8a78;
  --accent-deep: #0a6b5d;
  --warn: #b45309;
  --err: #b91c1c;
  --ok: #0f766e;
  --shadow: 0 18px 50px rgba(8, 28, 34, 0.28);
  --radius: 18px;
  --font-display: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(45, 180, 160, 0.28), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(20, 90, 110, 0.35), transparent 50%),
    linear-gradient(160deg, var(--bg0), var(--bg1) 45%, var(--bg2));
  background-attachment: fixed;
}

.page {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 56px;
}

.brand {
  color: #e8f6f4;
  margin-bottom: 22px;
}

.brand-mark {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7fd4c5;
  margin-bottom: 10px;
}

.brand h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.brand p {
  margin: 10px 0 0;
  color: #b7d2d4;
  font-size: 15px;
  line-height: 1.6;
  max-width: 36em;
}

.panel {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px 30px;
  backdrop-filter: blur(8px);
}

.alert {
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
}

.alert-err {
  background: #fef2f2;
  color: var(--err);
  border: 1px solid #fecaca;
}

.alert-ok {
  background: #ecfdf5;
  color: var(--ok);
  border: 1px solid #a7f3d0;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #16343c;
  margin-bottom: 8px;
}

.field .hint {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.req {
  color: var(--warn);
  font-weight: 700;
}

textarea,
input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

textarea:focus,
input[type="text"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 138, 120, 0.18);
}

.field-lead {
  margin: -2px 0 12px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.uploader {
  display: block;
  border: 1.5px dashed #9db5bb;
  border-radius: 14px;
  padding: 16px 14px;
  background: #f4faf9;
  text-align: left;
  margin-bottom: 12px;
}

.uploader-title {
  font-size: 14px;
  font-weight: 700;
  color: #16343c;
  margin-bottom: 10px;
}

.uploader input[type="file"] {
  width: 100%;
  font-size: 14px;
}

.preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.preview-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.preview-card img,
.preview-card video {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
  background: #0b1c22;
}

.preview-card .meta {
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink-soft);
  word-break: break-all;
}

.actions {
  margin-top: 8px;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #13a08c, var(--accent-deep));
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 13px 20px;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(10, 107, 93, 0.28);
  transition: transform 0.12s ease, filter 0.12s ease;
}

.btn:hover {
  filter: brightness(1.05);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.foot {
  margin-top: 18px;
  text-align: center;
  color: #8fb0b4;
  font-size: 12px;
}

.success-card {
  text-align: center;
  padding: 18px 8px 8px;
}

.success-card .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.12);
  color: var(--ok);
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 700;
}

.success-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.success-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.success-card .mono {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #eef5f4;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
  color: #24535b;
}

.success-card .back {
  display: inline-block;
  margin-top: 22px;
  color: var(--accent-deep);
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 520px) {
  .page {
    width: calc(100% - 20px);
    padding-top: 22px;
  }

  .panel {
    padding: 22px 16px 24px;
  }
}
