* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  max-width: 70vw;
  width: 500px;
  min-width: 360px;
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

h1 {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
  font-size: 24px;
}

.input-section {
  text-align: center;
  margin-bottom: 20px;
}

#codeInput {
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  text-align: center;
  transition: border-color 0.3s;
}

#codeInput:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.button-section {
  text-align: center;
  margin-bottom: 30px;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  margin: 0 10px;
  transition: all 0.3s;
}

.btn-primary {
  background-color: #667eea;
  color: white;
}

.btn-primary:hover {
  background-color: #5a6fd8;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #5a6268;
  transform: translateY(-2px);
}

.result-section h3 {
  color: #333;
  margin-bottom: 15px;
  text-align: center;
}

.result-display {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 20px;
  min-height: 100px;
  font-size: 14px;
  line-height: 1.6;
}

.result-display p {
  color: #666;
  text-align: center;
}

.loading {
  color: #667eea;
  text-align: center;
}

.error {
  padding: 20px;
  border-radius: 10px;
  font-family: math;
  text-align: center;
  color: #dc3545;
  background: #f8d7da;
  border-color: #f5c6cb;
  h4{
    font-size: 18px;
    margin: 10px 0;
  }
  p{
    text-align: left;
  }
}

.success {
  padding: 20px;
  border-radius: 10px;
  font-family: math;
  text-align: center;
  color: #155724;
  background: #d4edda;
  border-color: #c3e6cb;
  h4{
    font-size: 18px;
    margin: 10px 0;
  }
  p{
    text-align: left;
    margin-bottom: 15px;
  }
}
.expiration_time{
  display: flex;
  align-items: center;
  .expiration-time{
    font-family: fantasy;
    margin-left: 10px;
  }
}