* {
  margin: 0;
  padding: 0;

}

:root {
  --primary-color: #6e45e2;
  --secondary-color: #45b0e2;
  --accent-color: #ff7e5f;
  --bg-color: #f1f2f3;
  --card-bg: #ffffff;
  --text-color: #333333;
  --border-color: #e0e0e0;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

body {
  background-color: var(--bg-color);
}

.container {
  max-width: 1640px;
  min-width: 1240px;
  margin: 25px auto;
  width: 100%;
  box-sizing: border-box;
}

.container *{
  box-sizing: border-box;
}

header {
  text-align: center;
  margin-bottom: 25px;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
}

header  p{
  font-size: 1rem;
  color: #666;
  margin: 0 auto;
}

.main-content {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.control-panel {
  flex: 0 0 450px;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  height: fit-content;
}

.preview-area {
  flex: 1;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 25px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.panel-title {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.panel-title span {
  font-size: 1.8rem;
}

.control-group {
  margin-bottom: 10px;
}

.control-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-weight: 500;
  font-size: 0.9rem;
}

.value-display {
  background: var(--bg-color);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.9rem;
  min-width: 40px;
  text-align: center;
}

.slider-container {
  position: relative;
  height: 30px;
  display: flex;
  align-items: center;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 2px solid var(--primary-color);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.button-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 15px;
}

button {
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
}

.btn-primary {
  background: var(--primary-color);
}

.btn-secondary {
  background: var(--accent-color);
}

.btn-accent {
  background: var(--secondary-color);
}

.btn-reset {
  background: #f1f2f3;
  color: var(--text-color);
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background: #5d38c9;
}

.btn-secondary:hover {
  background: #ff6a4a;
}

.btn-accent:hover {
  background: #2f86af;
}

.preview-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(45deg, #f1f2f3 25%, transparent 25%, transparent 75%, #f1f2f3 75%),
    linear-gradient(45deg, #f1f2f3 25%, transparent 25%, transparent 75%, #f1f2f3 75%);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px dashed #d1d1d1;
}

#preview-canvas {
  max-width: 100%;
  max-height: 600px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.placeholder-text {
  color: #aaa;
  font-size: 1.1rem;
  text-align: center;
  padding: 40px;
}

.features {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 25px;
}

.features-title {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.feature-desc {
  color: #666;
  line-height: 1.6;
}

footer {
  text-align: center;
  color: #777;
  font-size: 0.95rem;
}

.notice-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

.notice {
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 15px 35px;
  border-radius: 50px;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.notice.show {
  opacity: 1;
}
