:root {
  --bg0: #0b1a2b;
  --bg1: #143556;
  --card: rgba(255, 255, 255, 0.94);
  --text: #122033;
  --muted: #5a6b7d;
  --accent: #1f7aef;
  --accent2: #0d9488;
  --danger: #c0392b;
  --radius: 14px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, #1d4f82 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #0f766e 0%, transparent 45%),
    linear-gradient(165deg, var(--bg0), var(--bg1) 55%, #0c2238);
  background-attachment: fixed;
}

.page {
  max-width: 520px;
  margin: 0 auto;
  padding: 28px 16px 48px;
}

.hero {
  color: #e8f1ff;
  margin-bottom: 18px;
  animation: fadeUp 0.55s ease both;
}
.brand {
  margin: 0 0 6px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  opacity: 0.85;
}
.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 5vw, 2rem);
  font-weight: 700;
}
.sub { margin: 0; color: #b7c8dc; font-size: 0.95rem; line-height: 1.45; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 16px 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 14px;
  animation: fadeUp 0.65s ease 0.08s both;
}

label { display: grid; gap: 6px; font-size: 0.92rem; }
label span { color: var(--muted); font-weight: 600; }
label em { color: var(--danger); font-style: normal; }

input, textarea, button {
  font: inherit;
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d5dee8;
  padding: 12px 12px;
  background: #fff;
}
textarea { resize: vertical; min-height: 72px; }
input:focus, textarea:focus {
  outline: 2px solid rgba(31, 122, 239, 0.35);
  border-color: var(--accent);
}

.file-label input[type="file"] {
  padding: 10px;
  background: #f4f7fb;
}
.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.file-list li {
  font-size: 0.86rem;
  color: var(--text);
  background: #eef3f9;
  border-radius: 8px;
  padding: 8px 10px;
  word-break: break-all;
}

.progress-wrap { display: grid; gap: 8px; }
.progress-wrap.hidden { display: none; }
.progress-bar {
  height: 10px;
  background: #e2eaf3;
  border-radius: 999px;
  overflow: hidden;
}
#progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.2s ease;
}
#progress-text { margin: 0; font-size: 0.85rem; color: var(--muted); }

button#submit {
  border: none;
  background: linear-gradient(135deg, var(--accent), #155dcf);
  color: #fff;
  font-weight: 700;
  padding: 14px 12px;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
button#submit:hover { filter: brightness(1.05); }
button#submit:active { transform: scale(0.98); }
button#submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.msg { margin: 0; min-height: 1.2em; font-size: 0.9rem; color: var(--muted); }
.msg.ok { color: #0f766e; font-weight: 600; }
.msg.err { color: var(--danger); font-weight: 600; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 380px) {
  .page { padding: 20px 12px 36px; }
  .card { padding: 14px 12px 16px; }
}
