* {
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
}

.container {
  width: 100%;
  max-width: 1500px;
  min-width: 1240px;
  margin: 20px auto;
}

.container * {
  box-sizing: border-box;
}

.header {
  text-align: center;
  margin-bottom: 30px;
  width: 100%;
}

.header h1 {
  font-size: 2.4rem;
  color: #2c3e50;
  margin: 10px auto;
  background: linear-gradient(90deg, #1FBCB6, #3498db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}

.header h1::after {
  content: "🖼️➡️📄";
  position: absolute;
  right: -70px;
  top: 50%;
  transform: translateY(-50%);
}

.header p {
  font-size: 1rem;
  color: #7f8c8d;
  max-width: 90%;
  margin: 0 auto;
  line-height: 1.5;
}

.card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 25px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.tool-card,
.info-card {
  flex: 1;
  min-width: 100%;
  margin-bottom: 20px;
}

.card h2 {
  color: #2c3e50;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #eaeaea;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card h3 {
  color: #2c3e50;
  margin-bottom: 25px;
  font-size: 1.3rem;
}

.section {
  margin-bottom: 20px;
}

.file-upload {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px dashed #e0e6ed;
  margin-bottom: 25px;
}

.upload-area {
  display: flex;
  gap: 15px;
  align-items: center;
}

#img {
  flex: 1;
  padding: 12px;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
  background: white;
  font-size: 1rem;
}

.btn {
  background: linear-gradient(135deg, #1FBCB6 0%, #16a085 100%);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(31, 188, 182, 0.4);
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.preview-area {
  display: none;
  flex-direction: column;
  gap: 10px;
}

#imgShow {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  border: 1px solid #eee;
  align-self: center;
  display: none;
}

.textarea-container {
  position: relative;
}

#conte {
  width: 100%;
  height: 250px;
  padding: 20px;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  background: #f8f9fa;
  resize: vertical;
  line-height: 1.5;
}

.result-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

#succ {
  color: #27ae60;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

#succ.show {
  opacity: 1;
}

#len {
  margin-top: 10px;
  font-size: 1rem;
  color: #7f8c8d;
  font-style: italic;
}

/* 信息卡片样式 */
.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.benefit {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.benefit-icon {
  font-size: 1.8rem;
  min-width: 40px;
  text-align: center;
  padding-top: 5px;
}

.benefit-content h3 {
  color: #2c3e50;
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.benefit-content p {
  color: #7f8c8d;
  line-height: 1.6;
}

.usage-steps {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 12px;
  margin-top: 30px;
}

.usage-steps h3 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.step:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.step-number {
  background: #1FBCB6;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content h4 {
  color: #2c3e50;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.step-content p {
  color: #7f8c8d;
  line-height: 1.6;
}

.footer {
  text-align: center;
  color: #7f8c8d;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  width: 100%;
  max-width: 1400px;
}
