* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f7fb;
  color: #1d2433;
}

body {
  min-height: 100vh;
}

.page {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 16px 40px;
}

.hero {
  margin-bottom: 20px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1a56db, #3b82f6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 10px 25px rgba(26, 86, 219, 0.22);
}

h1 {
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1.2;
}

.subtitle {
  margin: 0;
  color: #536079;
  font-size: 15px;
  line-height: 1.5;
}

.card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
  border: 1px solid #e6ebf3;
}

.badge {
  display: inline-block;
  background: #eef4ff;
  color: #1a56db;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.note {
  margin-top: 0;
  margin-bottom: 22px;
  color: #4c5870;
  line-height: 1.6;
}

.upload-area {
  border: 2px dashed #c9d5ea;
  border-radius: 16px;
  padding: 20px;
  background: #f9fbff;
  text-align: center;
  margin-bottom: 18px;
}

.file-label {
  display: inline-block;
  background: #1a56db;
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.file-label:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

input[type="file"] {
  display: none;
}

.file-name {
  margin-top: 14px;
  font-size: 14px;
  color: #52607a;
  word-break: break-word;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: #16a34a;
  color: #fff;
}

.btn.primary:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  transform: none;
}

.btn.secondary {
  background: #e8edf5;
  color: #1d2433;
}

.progress-wrap {
  margin-bottom: 16px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: #52607a;
  margin-bottom: 8px;
}

.progress-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #e9eef7;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1a56db, #16a34a);
  transition: width 0.25s ease;
}

.message {
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.message.info {
  background: #eef5ff;
  color: #1e429f;
  border: 1px solid #d7e6ff;
}

.message.success {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #c9f1d7;
}

.message.error {
  background: #fff1f2;
  color: #b42318;
  border: 1px solid #ffd5d9;
}

.tips {
  border-top: 1px solid #edf1f7;
  padding-top: 20px;
}

.tips h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.tips ul {
  margin: 0;
  padding-left: 18px;
  color: #55627b;
  line-height: 1.8;
}

.footer {
  text-align: center;
  margin-top: 18px;
  color: #7b879c;
  font-size: 13px;
}

@media (max-width: 640px) {
  .page {
    padding: 20px 12px 32px;
  }

  .card {
    padding: 18px;
    border-radius: 16px;
  }

  .logo-wrap {
    align-items: flex-start;
  }

  .logo {
    width: 56px;
    height: 56px;
    font-size: 18px;
  }

  h1 {
    font-size: 24px;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .progress-label {
    flex-direction: column;
    align-items: flex-start;
  }
}