* {
  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: 1rem;
  opacity: 0.9;
}

.main-content {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.upload-section,
.preview-section {
  width: calc(50% - 10px);
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  flex: 1;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
}

.drop-area {
  border: 3px dashed #6a89cc;
  border-radius: 10px;
  padding: 70px 20px;
  text-align: center;
  background-color: #f8f9ff;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 25px;
}

.drop-area:hover {
  background-color: #eef2ff;
  border-color: #4a69bd;
}

.drop-area p {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #555;
}

.file-input {
  display: none;
}

.upload-btn {
  background: #4a69bd;
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 50px;
  font-size: 1.1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.upload-btn:hover {
  background: #1e3799;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(74, 105, 189, 0.4);
}

.file-info {
  margin: 15px 0;
  padding: 12px;
  background: #edf2ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.action-btns {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.action-btn {
  flex: 1;
  padding: 14px;
  border-radius: 8px;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  font-weight: 600;
}

.convert-btn {
  background: #0abde3;
  color: white;
}

.convert-btn:hover {
  background: #01a3d4;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(10, 189, 227, 0.4);
}

.download-btn {
  background: #10ac84;
  color: white;
}

.download-btn:hover {
  background: #0d9d76;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(16, 172, 132, 0.4);
}

.clear-btn {
  background: #ff9f43;
  color: white;
}

.clear-btn:hover {
  background: #ff8c1a;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 159, 67, 0.4);
}

.preview-container {
  height: 570px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: auto;
  padding: 15px;
  line-height: 1.5;
  white-space: pre;
  margin-top: 10px;
}

.preview-container .tip{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: #7f8c8d;
  font-size: 15px;
}

.preview-container .tip .tip-tit{
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}

.feature-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #2c3e50;
}

.feature-desc {
  color: #7f8c8d;
  line-height: 1.6;
}

footer {
  text-align: center;
  color: #7f8c8d;
}

.notice {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.notice.show {
  opacity: 1;
  visibility: visible;
}

.instructions {
  margin-top: 25px;
  background: #fffde7;
  border-left: 4px solid #ffd600;
  padding: 15px;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
}

.instructions h3 {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.instructions ul {
  padding-left: 20px;
}

.instructions li {
  margin-top: 5px;
}

.highlight {
  background-color: #ffeb3b;
  padding: 0 5px;
  border-radius: 3px;
}

.disabled {
  opacity: 0.6;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}
