* {
  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-section {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.controls {
  flex: 1;
  background-color: #fff;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.group-box{
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.group-box .control-group{
  margin-bottom: 5px;
}

.dpi-custom {
  display: none;
}

.container label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #444;
}

.container select,
.container input[type="number"],
.container input[type="color"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background-color: white;
}

.tip{
  font-size: 15px;
  color: #7a7a7a;
  line-height: 1.5;
}

.tip a{
  font-weight: 600;
  text-decoration: none;
  color: #c0392b;
}

.buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

button {
  padding: 14px 7px;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
  flex: 1;
}

.btn-primary {
  background-color: #3498db;
  color: white;
}

.btn-primary:hover {
  background-color: #2980b9;
}

.btn-secondary {
  background-color: #e74c3c;
  color: white;
}

.btn-secondary:hover {
  background-color: #c0392b;
}

.preview {
  flex: 2;
  background-color: #fff;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  text-align: center;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.preview-placeholder {
  color: #999;
  font-size: 16px;
  margin-bottom: 20px;
}

.preview-image {
  max-width: 100%;
  max-height: 600px;
  display: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.footer {
  text-align: center;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  border-top: 1px solid #eee;
}

.features {
  display: flex;
  gap: 20px;
}

.feature {
  flex: 1;
  text-align: center;
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 25px;
}

.feature  .feature-icon {
  font-size: 42px;
  margin-bottom: 15px;
  display: block;
}

.feature h3{
  font-size: 18px;
  color: #333;
}

.footer p{
  margin-top: 15px;
}

.notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 14px;
  display: none;
  z-index: 1000;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.color-option {
  display: flex;
  align-items: center;
}

.color-box {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border: 1px solid #ddd;
}
