* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 800px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  padding: 40px;
  text-align: center;
  animation: fadeIn 0.6s ease;
  position: relative;
  overflow: hidden;
}

.container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header {
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.header h1 {
  color: #2c3e50;
  font-size: 2.5rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.header p {
  color: #7f8c8d;
  font-size: 1.1rem;
  margin-top: 10px;
}

.upload-area {
  border: 3px dashed #3498db;
  border-radius: 12px;
  padding: 50px 20px;
  margin: 30px 0;
  background: #f8f9fa;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.upload-area:hover,
.upload-area.dragover {
  background: #e3f2fd;
  border-color: #2980b9;
  transform: translateY(-3px);
}

.upload-area i {
  font-size: 64px;
  color: #3498db;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.upload-area:hover i {
  transform: scale(1.1);
}

.upload-area h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.upload-area p {
  color: #7f8c8d;
  font-size: 1.05rem;
  max-width: 80%;
  margin: 0 auto;
}

#fileInput {
  display: none;
}

.browse-btn {
  display: inline-block;
  background: #3498db;
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 25px;
  transition: all 0.3s ease;
  border: none;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
  position: relative;
  z-index: 1;
}

.browse-btn:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

.browse-btn:active {
  transform: translateY(1px);
}

.file-info {
  background: #e3f2fd;
  border-radius: 10px;
  padding: 20px;
  margin: 25px 0;
  text-align: left;
  display: none;
  animation: slideDown 0.4s ease;
  position: relative;
  z-index: 1;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.file-info h4 {
  color: #2c3e50;
  margin-bottom: 15px;
  border-bottom: 1px solid #b3e5fc;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.file-detail {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e0f7fa;
}

.detail-label {
  color: #7f8c8d;
  font-weight: 500;
}

.detail-value {
  color: #2c3e50;
  font-weight: 600;
}

.param-container {
  background: #e3f2fd;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  text-align: left;
  position: relative;
  z-index: 1;
}

.param-container h4 {
  color: #2c3e50;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.param-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.param-option {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #3498db;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(52, 152, 219, 0.3);
}

.param-option:hover {
  background: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 5px 12px rgba(52, 152, 219, 0.4);
}

.param-option.selected {
  background: #2ecc71;
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

.upload-btn {
  background: #2ecc71;
  color: white;
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  width: 100%;
  max-width: 300px;
  transition: all 0.3s ease;
  display: none;
  margin: 20px auto;
  box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
  position: relative;
  z-index: 1;
}

.upload-btn:hover {
  background: #27ae60;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(46, 204, 113, 0.4);
}

.upload-btn:active {
  transform: translateY(-1px);
}

.upload-btn:disabled {
  background: #95a5a6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.footer {
  margin-top: 30px;
  color: #7f8c8d;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.beian {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #e6e6e6;
  color: #999;
  font-size: 0.85rem;
}

.beian a {
  color: #999;
  text-decoration: none;
}

.beian a:hover {
  color: #3498db;
  text-decoration: underline;
}

.progress-container {
  width: 100%;
  height: 10px;
  background: #e0e0e0;
  border-radius: 5px;
  margin: 30px 0;
  display: none;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #3498db, #2ecc71);
  width: 0%;
  transition: width 0.4s ease;
}

.status-message {
  margin-top: 20px;
  font-weight: 600;
  min-height: 24px;
  padding: 10px;
  border-radius: 8px;
  position: relative;
  z-index: 1;
}

.result-container {
  background: #e8f5e9;
  border-radius: 12px;
  padding: 25px;
  margin-top: 30px;
  text-align: center;
  display: none;
  animation: slideUp 0.5s ease;
  position: relative;
  z-index: 1;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-container h3 {
  color: #2e7d32;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.links-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
}

.result-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #4CAF50;
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
  min-width: 160px;
}

.result-link:hover {
  background: #388E3C;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(76, 175, 80, 0.4);
}

.result-link i {
  margin-left: 8px;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .container {
    padding: 30px 20px;
  }

  .header h1 {
    font-size: 2rem;
  }

  .upload-area {
    padding: 40px 15px;
  }

  .upload-area h3 {
    font-size: 1.5rem;
  }

  .param-option {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }

  .result-link {
    width: 100%;
    max-width: 280px;
  }

  .links-container {
    flex-direction: column;
    align-items: center;
  }
}