#tool-body .main-container {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

#tool-body .header {
  background: linear-gradient(135deg, #B52A27, #D32F2F);
  color: #F1D18A;
  padding: 20px;
  text-align: center;
}

#tool-body .header h1 {
  font-size: 24px;
  margin: 0;
  font-weight: 500;
}

#tool-body .header p {
  margin: 8px 0 0;
  font-size: 14px;
  opacity: 0.9;
}

#tool-body .content {
  padding: 25px;
}

#tool-body .control-group {
  margin-bottom: 25px;
}

#tool-body .control-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

#tool-body .voice-select {
  width: 100%;
}

#tool-body .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

#tool-body .status-panel {
  margin-top: 25px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 4px;
  border-left: 4px solid #B52A27;
  display: none;
}

#tool-body .status-playing {
  display: block;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { background-color: #f8f9fa; }
  50% { background-color: #fff3e0; }
  100% { background-color: #f8f9fa; }
}

#tool-body .footer {
  text-align: center;
  padding: 15px;
  font-size: 13px;
  color: #888;
  border-top: 1px solid #eee;
}

#tool-body .layui-textarea {
  min-height: 300px;
  font-size: 15px;
  line-height: 1.6;
}

#tool-body .layui-btn {
  font-weight: 500;
}

#tool-body .primary-btn {
  background-color: #B52A27;
  border-color: #B52A27;
}

#tool-body .primary-btn:hover {
  background-color: #9c2321;
  border-color: #9c2321;
}

#tool-body .secondary-btn {
  background-color: #f0f0f0;
  border-color: #d0d0d0;
  color: #555;
}

#tool-body .secondary-btn:hover {
  background-color: #e0e0e0;
  border-color: #c0c0c0;
}

#tool-body .icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

#tool-body .debug-info {
  margin-top: 15px;
  padding: 10px;
  background-color: #e8f4fc;
  border-radius: 4px;
  font-size: 12px;
  color: #555;
}

/* 夜间模式样式 */
.theme-dark-mode #tool-body .main-container {
  background-color: #2d2d2d;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.theme-dark-mode #tool-body .header {
  background: linear-gradient(135deg, #8B1A1A, #A52A2A);
  color: #F1D18A;
}

.theme-dark-mode #tool-body .content {
  background-color: #2d2d2d;
  color: #e0e0e0;
}

.theme-dark-mode #tool-body .control-label {
  color: #ccc;
}

.theme-dark-mode #tool-body .status-panel {
  background-color: #3a3a3a;
  color: #e0e0e0;
  border-left-color: #8B1A1A;
}

.theme-dark-mode #tool-body .footer {
  background-color: #252525;
  color: #aaa;
  border-top: 1px solid #444;
}

.theme-dark-mode #tool-body .layui-textarea {
  background-color: #3a3a3a;
  border-color: #555;
  color: #e0e0e0;
}

.theme-dark-mode #tool-body .layui-textarea:focus {
  border-color: #8B1A1A;
}

.theme-dark-mode #tool-body .secondary-btn {
  background-color: #444;
  border-color: #555;
  color: #ddd;
}

.theme-dark-mode #tool-body .secondary-btn:hover {
  background-color: #555;
  border-color: #666;
}

.theme-dark-mode #tool-body .debug-info {
  background-color: #373737;
  color: #c2c2c2;
}

@keyframes pulse-dark {
  0% { background-color: #3a3a3a; }
  50% { background-color: #4a4230; }
  100% { background-color: #3a3a3a; }
}

.theme-dark-mode #tool-body .status-playing {
  animation: pulse-dark 1.5s infinite;
}

#tool-help .layui-code {
  border-color: #607D8B;
  background-color: transparent;
  color: inherit;
}