/* Base Styles */
:root {
  --text-color: #333333;
  --primary-color: #4a6fa5;
  --secondary-color: #e6e6e6;
  --accent-color: #ff6b6b;
  --border-color: #dddddd;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --selected-color: #4a90e2;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-image: radial-gradient(rgba(68, 68, 68, 0.5) 1px, transparent 0);
  background-size: 50px 50px; /* 点阵间距 */
  color: var(--text-color);
  line-height: 1.6;
  font-family: cursive;
}

p{
    background-color: #ffffff;
    font-family: Cambria, "Cambria Math", stixgeneral, "Times New Roman", Times, serif;
    font-size: 19px;
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 20px;
}

header .btn-lg {
    font-size: 1rem;
    margin: 0 15px;
    background-color: crimson;
}

header .btn-lg:hover {
    background-color: darkred;
}

header .btn-lg:focus {
    background-color: darkred;
}

h1 {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

button {
  background-color: var(--secondary-color);
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

button:hover {
  background-color: var(--primary-color);
  color: white;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button:disabled:hover {
  background-color: var(--secondary-color);
  color: var(--text-color);
}

select {
  padding: 8px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background-color: white;
  cursor: pointer;
}

footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.8rem;
  color: #888;
}

/* Responsive styles */
@media (min-width: 768px) {
  main {
    flex-direction: row;
  }
  
  .tools-container {
    width: 250px;
    flex-shrink: 0;
  }
  
  .canvas-container {
    flex: 1;
  }
}