* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1600px;
  min-width: 1240px;
  margin: 20px auto;
  color: #333;
}

.container * {
  box-sizing: border-box;
}

header {
  width: 100%;
  margin-bottom: 25px;
  text-align: center;
}

header h1 {
  font-size: 28px;
  margin-bottom: 5px;
}

header p {
  font-size: 16px;
  opacity: 0.9;
}

.tool-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 25px;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
  align-items: center;
}

.control-group {
  display: flex;
  align-items: center;
}

.control-group label {
  margin-right: 4px;
  font-weight: 500;
  font-size: 15px;
}

.controls select,
.controls input[type="number"] {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.controls input[type="number"] {
  width: 80px;
}

.button-group {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.btn {
  padding: 12px 36px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.btn.primary {
  background-color: #3498db;
  color: white;
}

.btn.primary:hover {
  background-color: #2980b9;
}

.btn:not(.primary) {
  background-color: #ecf0f1;
  color: #333;
}

.btn:not(.primary):hover {
  background-color: #d5dbdb;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.preview-area {
  display: flex;
  gap: 20px;
  min-height: 500px;
}

.editor-container,
.result-container {
  flex: 1;
  border: 1px dashed #ddd;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.editor-placeholder,
.result-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #95a5a6;
  text-align: center;
  padding: 20px;
}

.editor-placeholder .placeholder-content {
  text-align: center;
}

.editor-placeholder .icon {
  font-size: 50px;
  margin-bottom: 15px;
}

.result-container {
  display: flex;
  flex-direction: column;
}

.result-container h3 {
  text-align: center;
  margin: 15px 0;
  color: #2c3e50;
}

.result-container #result-canvas{
  max-width: 300px;
  margin: auto;
}
.result-actions {
  text-align: center;
  padding: 15px;
}

.hint {
  font-size: 13px;
  color: #7f8c8d;
  margin-top: 8px;
}

footer {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.footer-content {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-content p{
  margin-bottom: 15px;
}

.footer-content>div {
  flex: 1;
}

footer h3 {
  color: #2c3e50;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 15px;
  font-size: 1.2em;
}

footer ul,
footer ol {
  padding-left: 20px;
}

footer li {
  margin-top: 10px;
}

.copyright {
  text-align: center;
  color: #7f8c8d;
  font-size: 0.9em;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 12px 25px;
  border-radius: 4px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1000;
  pointer-events: none;
}

.notice.show {
  opacity: 1;
}

/* 拖放区域高亮样式 */
.editor-container.highlight {
  border-color: #3498db;
  background-color: rgba(52, 152, 219, 0.1);
}

.custom-dpi input[type="number"] {
  width: 80px;
}
