* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 25px auto;
  position: relative;
  color: #333;
}

.container *{
  box-sizing: border-box;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 25px;
  width: 100%;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

header p{
  opacity: 0.9;
  font-size: 1.1rem;
}

.upload-area {
  border: 2px dashed #bdc3c7;
  border-radius: 8px;
  padding: 30px 20px;
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 25px;
  background-color: #f8f9fa;
}

.upload-area:hover {
  border-color: #3498db;
  background-color: #f0f7fd;
}

.upload-icon {
  font-size: 48px;
  margin-bottom: 15px;
  display: block;
}

.upload-text {
  font-size: 18px;
  margin-bottom: 10px;
}

.upload-hint {
  color: #7f8c8d;
  font-size: 14px;
}

#fileInput {
  display: none;
}

.preview-section {
  display: none;
  margin-bottom: 25px;
}

.preview-title {
  font-size: 20px;
  margin-bottom: 15px;
  color: #2c3e50;
  display: flex;
  align-items: center;
}

.preview-title span {
  margin-right: 10px;
}

.preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.page-preview {
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

.page-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.page-number {
  text-align: center;
  padding: 5px;
  background-color: #f8f9fa;
  font-size: 12px;
  color: #7f8c8d;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
}

.btn {
  padding: 12px 42px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn span {
  margin-right: 8px;
}

.btn-primary {
  background-color: #3498db;
  color: white;
}

.btn-primary:hover {
  background-color: #2980b9;
}

.btn-secondary {
  background-color: #e74c3c;
  color: white;
}

.btn-secondary:hover {
  background-color: #c0392b;
}

.info-section{
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 25px;
}

.info-section h2{
  font-size: 20px;
  margin-bottom: 15px;
}
.info-section p{
  margin-bottom: 20px;
  opacity: 0.8;
}
.features {
  display: flex;
  gap: 20px;
}

.feature-card {
  flex: 1;
  padding: 15px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 15px;
  display: block;
}

.feature-title {
  font-size: 18px;
  margin-bottom: 10px;
  color: #2c3e50;
}

.feature-desc {
  color: #7f8c8d;
  font-size: 14px;
  line-height: 1.5;
}

.previeview-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
}

.notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1000;
}

.notice.show {
  opacity: 1;
}

footer {
  text-align: center;
  color: #7f8c8d;
  font-size: 14px;
}

.loading {
  display: none;
  text-align: center;
  margin: 20px 0;
}

.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
