* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 20px auto;
  color: #333;
}

.container *{
  box-sizing: border-box;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

header p{
  font-size: 1.1rem;
  opacity: 0.9;
}
.handle-box ,.footer{
  width: 100%;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 25px;
}

.upload-area {
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 25px;
  position: relative;
}

.upload-area:hover {
  border-color: #3498db;
  background-color: #f8f9fa;
}

.upload-area.active {
  border-color: #3498db;
  background-color: #e8f4fc;
}

.upload-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.upload-text {
  font-size: 18px;
  margin-bottom: 10px;
}

.upload-hint {
  color: #7f8c8d;
  font-size: 14px;
}

.file-input {
  display: none;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 25px;
}

button {
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  background-color: #3498db;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #2980b9;
}

button:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}

.clear-btn {
  background-color: #e74c3c;
}

.clear-btn:hover {
  background-color: #c0392b;
}

.download-btn {
  background-color: #2ecc71;
}

.download-btn:hover {
  background-color: #27ae60;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
}

.result-table th,
.result-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.result-table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.result-table tr:hover {
  background-color: #f5f5f5;
}

.preview-img {
  max-width: 100px;
  max-height: 100px;
  cursor: pointer;
  transition: transform 0.3s;
}

.preview-img:hover {
  transform: scale(1.5);
}

.footer h3{
  font-size: 20px;
}

.footer p{
  color: #7f8c8d;
  font-size: 14px;
  margin-top: 10px;
}

.notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 12px 24px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1000;
}

.notice.show {
  opacity: 1;
}

.zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.zoom-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.zoomed-img {
  max-width: 90%;
  max-height: 90%;
}

.close-zoom {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 30px;
  cursor: pointer;
}
