* {
  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;
}

.tool-box,.preview-area{
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 25px;
}

.tool-box{
  display: flex;
  gap: 20px;
}

.handle{
  flex: 1;
}
.handle .tip{
  margin-top: 15px;
  font-size: 14px;
  color: #6a6a6a;
}

.upload-area {
  flex: 1;
  border: 2px dashed #bdc3c7;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.upload-area:hover {
  border-color: #3498db;
  background-color: #f8f9fa;
}

.upload-icon {
  font-size: 48px;
  margin-bottom: 10px;
}
.upload-area h3{
  font-size: 18px;
  margin-bottom: 5px;
}
.file-info {
  margin-top: 15px;
  font-size: 14px;
  color: #7f8c8d;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.control-group {
  flex: 1;
  min-width: 300px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #2c3e50;
}

input[type="text"],
input[type="file"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}

input[type="file"] {
  display: none;
}

.buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

button {
  padding: 12px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
  flex: 1;
}

.primary-btn {
  background-color: #3498db;
  color: white;
}

.primary-btn:hover {
  background-color: #2980b9;
}

.secondary-btn {
  background-color: #e74c3c;
  color: white;
}

.secondary-btn:hover {
  background-color: #c0392b;
}

.tertiary-btn {
  background-color: #95a5a6;
  color: white;
}

.tertiary-btn:hover {
  background-color: #7f8c8d;
}

.preview-area {
  margin-top: 30px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.box-title {
  font-size: 20px;
  margin-bottom: 15px;
  color: #2c3e50;
}

.preview-container {
  height: 200px;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: auto;
  background-color: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.preview-placeholder {
  text-align: center;
  color: #95a5a6;
}

.preview-icon {
  font-size: 60px;
  margin-bottom: 15px;
}

.page-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-thumbnail {
  width: 100px;
  height: 140px;
  border: 2px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
}

.page-thumbnail:hover {
  border-color: #3498db;
}

.page-thumbnail.selected {
  border-color: #e74c3c;
}

.page-number {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  text-align: center;
  padding: 3px 0;
  font-size: 12px;
}

.page-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #2c3e50;
  color: white;
  padding: 15px 30px;
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1000;
}

.notice.show {
  opacity: 1;
}

footer {
  text-align: center;
  color: #7f8c8d;
  font-size: 14px;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 25px;
}

.feature {
  flex: 1;
  background-color: white;
  padding: 15px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.feature-icon {
  font-size: 30px;
  margin-bottom: 15px;
}

.feature-title {
  font-size: 18px;
  margin-bottom: 10px;
  color: #2c3e50;
}

.instructions {
  background-color: white;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  margin-bottom: 25px;
}

.instructions ol {
  padding-left: 20px;
}

.instructions li {
  margin-top: 10px;
}

.progress-container {
  width: 100%;
  background-color: #f0f0f0;
  border-radius: 4px;
  margin: 10px 0;
  display: none;
}

.progress-bar {
  height: 20px;
  background-color: #3498db;
  border-radius: 4px;
  width: 0%;
}
