* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1600px;
  min-width: 1240px;
  margin: 25px auto;
  color: #333;
  display: flex;
  flex-direction: column;
}

.container * {
  box-sizing: border-box;
}

/* 头部样式 */
header {
  position: relative;
  margin-bottom: 20px;
  text-align: center;
}

header h1 {
  font-size: 32px;
  margin-bottom: 5px;
}

header p {
  font-size: 16px;
  line-height: 1.6;
}

.tool-container {
  display: flex;
  gap: 25px;
  margin-bottom: 25px;
}

.panel {
  flex: 1;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.panel-header {
  position: relative;
  background: #f8f9fa;
  padding: 15px 20px;
  border-bottom: 1px solid #eaeaea;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-title {
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-content {
  flex: 1;
  position: relative;
}

textarea {
  width: 100%;
  height: 100%;
  min-height: 460px;
  padding: 15px;
  border: none;
  resize: none;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
  outline: none;
  background: #fff;
  color: #333;
}


.json-input {
  border-right: 1px solid #eee;
}

.controls {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  align-items: center;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

label {
  font-weight: 500;
  font-size: 15px;
}

select,
input[type="number"] {
  padding: 10px 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  background: white;
}

.buttons {
  display: flex;
  gap: 15px;
  margin-left: auto;
}

.btn {
  padding: 14px 35px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);

}

.btn-primary {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
}

.btn-secondary {
  background: #e1e2e3;
  color: #333;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5d0fc7 0%, #1c6cf8 100%);
}

.info-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 20px;
  margin-bottom: 25px;
}

.section-title {
  font-size: 1.4rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f2f5;
  display: flex;
  align-items: center;
  gap: 10px;
}

.steps {
  display: flex;
  gap: 25px;
}

.step {
  flex: 1;
  background: #f8fafc;
  border-radius: 10px;
  padding: 25px;
  border-left: 4px solid #6a11cb;
}

.step-number {
  display: inline-block;
  background: #6a11cb;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  text-align: center;
  line-height: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.faq-item {
  flex: 1 1 calc(50% - 20px);
  background: #f8fafc;
  padding: 20px;
  border-radius: 10px;
  border-left: 3px solid #2575fc;
}

.faq-question {
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notice {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 15px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.notice.show {
  opacity: 1;
  visibility: visible;
}

footer {
  text-align: center;
  color: #666;
  font-size: 14px;
}

.char-count {
  position: absolute;
  bottom: 10px;
  right: 15px;
  background: rgba(255, 255, 255, 0.7);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: #666;
}

.empty-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #aaa;
  font-size: 15px;
  text-align: center;
  pointer-events: none;
}
