/* 全局样式 */
body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Inter", sans-serif;
  background: #f0f0f0;
  overflow: hidden;
}

/* 公告弹窗样式 */
.announcement-modal {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.announcement-content {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 100%;
  text-align: center;
  position: relative;
  animation: slideIn 0.5s ease;
}

.announcement-content h2 {
  margin-top: 0;
  font-size: 1.8rem;
  color: #333;
}

.announcement-content p {
  font-size: 1rem;
  color: #555;
  margin: 15px 0;
}

.tips {
  text-align: left;
  margin-top: 20px;
}

.tips ul {
  list-style-type: disc;
  padding-left: 20px;
  margin: 10px 0;
}

.tips li {
  font-size: 0.9rem;
  color: #555;
  margin: 5px 0;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-button:hover {
  color: #333;
}

/* 工具栏样式 */
.toolbar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 20px;
  border-radius: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.tool-button {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 16px;
  color: #333;
  transition: background 0.3s ease, transform 0.2s ease;
}

.tool-button.active {
  background: #ff7e5f;
  color: white;
}

.tool-button:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
}

.tool-button:active {
  transform: translateY(0);
}

/* 画布样式 */
canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: white;
  cursor: crosshair;
}

/* 弹窗样式 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 300px;
  width: 100%;
}

.modal-content h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: #333;
}

.modal-content label {
  display: block;
  margin: 10px 0 5px;
  font-size: 0.9rem;
  color: #555;
}

.modal-content input[type="range"] {
  width: 100%;
  margin-bottom: 15px;
}

.modal-close {
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  background: #ff7e5f;
  color: white;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.modal-close:hover {
  background: #feb47b;
}

/* 动画 */
@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
