/* 核心容器 */
.custom-sequencer {
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

/* 输入输出区域 */
.seq-input-container,
.seq-output-container {
  margin-bottom: 20px;
}

.seq-textarea {
  width: 100%;
  min-height: 180px;
  padding: 12px 15px;
  font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background-color: #ffffff;
  color: #374151;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.seq-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.seq-textarea::placeholder {
  color: #9ca3af;
}

.seq-block {
  display: block;
  width: 100%;
}

/* 控制面板 */
.seq-controls-panel {
  padding: 15px 0;
  margin-bottom: 15px;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

/* 标签样式 */
.seq-controls-panel label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #4b5563;
  cursor: pointer;
  white-space: nowrap;
}

.seq-option-label {
  font-size: 13px;
  color: #4b5563;
  font-weight: 500;
}

/* 控制元素 */
.seq-control {
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background-color: #ffffff;
  color: #374151;
  font-size: 13px;
  line-height: 1.4;
  transition: all 0.2s ease;
}

.seq-control:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

select.seq-control {
  cursor: pointer;
  min-width: 80px;
}

input[type="number"].seq-control {
  width: 70px;
  -moz-appearance: textfield;
}

input[type="number"].seq-control::-webkit-outer-spin-button,
input[type="number"].seq-control::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* 单选按钮 */
.seq-radio-option {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #6b7280;
  margin-right: 12px;
  cursor: pointer;
}

.seq-radio-option input[type="radio"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #3b82f6;
}

/* 按钮区域 */
.seq-action-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
}

.seq-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  line-height: 1;
  white-space: nowrap;
}

.seq-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.seq-primary {
  background-color: #10b981;
  color: #ffffff;
}

.seq-primary:hover {
  background-color: #059669;
}

.seq-secondary {
  background-color: #f59e0b;
  color: #ffffff;
}

.seq-secondary:hover {
  background-color: #d97706;
}

/* 消息区域 */
#seqMessageArea {
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 4px;
  font-size: 13px;
  display: none;
  animation: fadeIn 0.3s ease;
}

.seq-error {
  display: block !important;
  background-color: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.seq-success {
  display: block !important;
  background-color: #d1fae5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

/* 提示文本 */
.seq-hint {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 12px;
  padding: 6px 0;
  font-style: italic;
  line-height: 1.4;
}

/* 工具介绍样式 */
.tool-introduction {
  margin-top: 30px;
  padding: 20px;
  background-color: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.tool-introduction h2 {
  color: #1f2937;
  font-size: 1.5rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #10b981;
}

.tool-introduction h3 {
  color: #374151;
  font-size: 1.2rem;
  margin: 20px 0 10px 0;
}

.tool-introduction h4 {
  color: #4b5563;
  font-size: 1.1rem;
  margin: 15px 0 8px 0;
}

.tool-introduction p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 12px;
}

.tool-introduction ul,
.tool-introduction ol {
  color: #6b7280;
  line-height: 1.6;
  margin-left: 20px;
  margin-bottom: 15px;
}

.tool-introduction li {
  margin-bottom: 6px;
}

.tool-introduction strong {
  color: #374151;
  font-weight: 600;
}

/* 使用案例样式 */
.usage-examples {
  display: grid;
  gap: 20px;
  margin: 20px 0;
}

.example-case {
  background-color: #ffffff;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.example-case pre {
  background-color: #f8f9fa;
  padding: 12px;
  border-radius: 4px;
  border-left: 3px solid #10b981;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 13px;
  line-height: 1.4;
  overflow-x: auto;
  margin: 10px 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .seq-controls-panel {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .seq-controls-panel label,
  .seq-option-label {
    width: 100%;
  }
  
  .seq-action-buttons {
    flex-direction: column;
  }
  
  .seq-btn {
    width: 100%;
  }
  
  .seq-radio-option {
    margin-right: 15px;
  }
  
  .tool-introduction {
    padding: 15px;
  }
  
  .usage-examples {
    gap: 15px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}