:root {
  color-scheme: light;
  --ink: #182230;
  --muted: #667085;
  --line: #d9e0ea;
  --blue: #2458d3;
  --blue-dark: #1844ae;
  --pale: #eef4ff;
  --success: #087a55;
  --danger: #b42318;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(36, 88, 211, .13), transparent 28rem),
    linear-gradient(135deg, #f8faff 0%, #edf3ff 100%);
}

.page-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 72px;
  align-items: center;
  padding: 56px 0;
}

.brand-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: white;
  font-size: 24px;
  font-weight: 800;
  background: var(--blue);
  box-shadow: 0 14px 34px rgba(36, 88, 211, .24);
}

.eyebrow {
  margin: 30px 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
}

h1 { margin: 0; font-size: clamp(36px, 5vw, 60px); letter-spacing: -.04em; }
.summary { max-width: 440px; margin: 22px 0 34px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.rules { display: grid; gap: 14px; }
.rules div { display: flex; gap: 14px; align-items: center; }
.rules span { color: var(--blue); font-size: 12px; font-weight: 800; }
.rules p { margin: 0; font-size: 14px; }

.card {
  padding: 36px;
  border: 1px solid rgba(217, 224, 234, .9);
  border-radius: 26px;
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 26px 70px rgba(36, 56, 100, .13);
  backdrop-filter: blur(16px);
}

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; margin-bottom: 20px; }
label > span { display: block; margin-bottom: 9px; font-size: 14px; font-weight: 700; }
input:not([type="file"]) {
  width: 100%;
  height: 48px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(36, 88, 211, .1); }

.drop-zone {
  min-height: 180px;
  padding: 28px 20px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1.5px dashed #a8b5c9;
  border-radius: 16px;
  background: #f8faff;
  cursor: pointer;
  text-align: center;
  transition: .2s ease;
}
.drop-zone:hover, .drop-zone.dragging, .drop-zone:focus { border-color: var(--blue); background: var(--pale); outline: none; }
.upload-icon { width: 42px; height: 42px; margin-bottom: 13px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); font-size: 24px; background: #dce8ff; }
.drop-zone strong { font-size: 16px; }
.drop-zone p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

.file-list { display: grid; gap: 8px; margin-top: 14px; }
.file-item { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: 9px; background: #f3f6fb; font-size: 13px; }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { flex: none; color: var(--muted); }

button {
  position: relative;
  width: 100%;
  height: 52px;
  margin-top: 22px;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  color: white;
  background: var(--blue);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
button:hover { background: var(--blue-dark); transform: translateY(-1px); }
button:disabled { cursor: wait; opacity: .75; transform: none; }
.button-progress { position: absolute; inset: auto 0 0; height: 3px; width: var(--progress, 0%); background: #a9c3ff; transition: width .2s; }
.status { min-height: 22px; margin-top: 14px; font-size: 14px; line-height: 1.6; }
.status.success { color: var(--success); }
.status.error { color: var(--danger); }

@media (max-width: 820px) {
  .page-shell { grid-template-columns: 1fr; gap: 34px; padding: 38px 0; }
  .intro { text-align: center; }
  .brand-mark { margin: 0 auto; }
  .summary { margin-left: auto; margin-right: auto; }
  .rules { width: fit-content; margin: 0 auto; text-align: left; }
}

@media (max-width: 540px) {
  .page-shell { width: min(100% - 24px, 1120px); padding: 22px 0; }
  .card { padding: 22px 18px; border-radius: 20px; }
  .grid { grid-template-columns: 1fr; gap: 0; }
  .drop-zone { min-height: 150px; }
}
