#tool-name {
  display: none;
}

#tool-body .tool-header {
  text-align: center;
  margin-bottom: 35px;
}

#tool-body .tool-header div {
  font-size: 28px;
  font-weight: 500;
}

.tool-header p {
  color: #888;
  margin-top: 10px;
}

#tool-body .signature-tool-wrapper {
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

#tool-body .font-preload {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  z-index: -1;
}

#tool-body .layui-card {
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

#tool-body .layui-tab-title {
  border-bottom-color: #eee;
}

#tool-body .compact-form-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 12px;
}

#tool-body .compact-form-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

#tool-body .compact-form-group label {
  color: #666;
  font-size: 14px;
  white-space: nowrap;
}

#tool-body .layui-colorpicker {
  margin: 0;
  padding: 0;
  line-height: 1;
  border: 1px solid #e6e6e6;
}
#tool-body .layui-form-switch{
  margin-top: 0;
}
#tool-body .canvas-container {
  border: 2px dashed #d2d2d2;
  background-color: #fff;
  background-image: linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0), linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  margin: 10px 0 15px 0;
  transition: all 0.3s ease;
}

#tool-body canvas {
  display: block;
  cursor: crosshair;
  width: 100%;
  height: 350px;
}

#tool-body .action-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

@media screen and (max-width: 768px) {
  #tool-body canvas {
    height: 300px;
  }

  #tool-body .action-bar .layui-btn {
    flex: 1 1 calc(50% - 10px);
    margin: 0;
    padding: 0;
    font-size: 13px;
  }

  #tool-body .action-bar .layui-btn-primary {
/*     flex: 1 1 100%; */
  }
}

.theme-dark-mode #tool-body .layui-card {
  background-color: #222222;
  border-color: #333333;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.theme-dark-mode #tool-body .layui-tab-title li {
  color: #a0a0a0;
}

.theme-dark-mode #tool-body .layui-tab-title .layui-this {
  color: #2196F3;
  font-weight: bold;
}

.theme-dark-mode #tool-body .layui-tab-title {
  border-bottom-color: #444;
}

.theme-dark-mode #tool-body .compact-form-group label {
  color: #cccccc;
}

.theme-dark-mode #tool-body .layui-input,
.theme-dark-mode #tool-body .layui-select,
.theme-dark-mode #tool-body select {
  background-color: #333333 !important;
  color: #eeeeee !important;
  border-color: #555555 !important;
}

.theme-dark-mode #tool-body .layui-colorpicker {
  border-color: #555;
}

.theme-dark-mode #tool-body .canvas-container {
  border-color: #555555;
  background-color: #2a2a2a;
  background-image: linear-gradient(45deg, #333333 25%, transparent 25%, transparent 75%, #333333 75%, #333333), linear-gradient(45deg, #333333 25%, transparent 25%, transparent 75%, #333333 75%, #333333);
}

.theme-dark-mode #tool-body .layui-btn-primary {
  background-color: #333333;
  color: #eeeeee;
  border-color: #555555;
}

.theme-dark-mode #tool-body .layui-btn-primary:hover {
  border-color: #888;
  color: #fff;
}

.theme-dark-mode #tool-body .layui-elem-field legend {
  color: #eeeeee;
}

.theme-dark-mode #tool-body .layui-elem-field {
  border-color: #444;
}

.theme-dark-mode #tool-body .layui-text {
  color: #aaaaaa;
}