.yinbaorec-wrapper {
  max-width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* 主内容区域 */
.yinbaorec-main {
  background: #ffffff;
  border: 1px solid #e1e5e9;
  border-radius: 4px;
  margin-bottom: 24px;
}

/* 状态显示区域 */
.yinbaorec-status {
  padding: 24px;
  border-bottom: 1px solid #f0f2f5;
  background: #fafbfc;
}

.yinbaorec-visualizer {
  height: 60px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 3px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.yinbaorec-time-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.yinbaorec-time {
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 24px;
  font-weight: 600;
  color: #2d3748;
}

.yinbaorec-status-text {
  font-size: 14px;
  color: #718096;
  padding: 4px 12px;
  background: #edf2f7;
  border-radius: 12px;
}

/* 音频播放器 */
.yinbaorec-player {
  padding: 20px 24px;
  border-bottom: 1px solid #f0f2f5;
  background: #f8fafc;
  animation: yinbaorec-fadeIn 0.3s ease;
}

.yinbaorec-audio-element {
  width: 100%;
  margin-bottom: 10px;
}

.yinbaorec-current-play {
  font-size: 13px;
  color: #718096;
  display: flex;
  align-items: center;
  gap: 6px;
}

.yinbaorec-current-play span {
  color: #2d3748;
  font-weight: 500;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 控制按钮 */
.yinbaorec-controls {
  padding: 24px;
  display: flex;
  gap: 12px;
  justify-content: center;
  border-bottom: 1px solid #f0f2f5;
  flex-wrap: wrap;
}

.yinbaorec-btn {
  padding: 12px 24px;
  border: 1px solid #d1d9e0;
  border-radius: 4px;
  background: #ffffff;
  color: #4a5568;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  min-width: 120px;
  justify-content: center;
}

.yinbaorec-btn:hover:not(:disabled) {
  background: #f7fafc;
  border-color: #cbd5e0;
  transform: translateY(-1px);
}

.yinbaorec-btn:active:not(:disabled) {
  transform: translateY(0);
}

.yinbaorec-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.yinbaorec-start {
  border-color: #4299e1;
  background: #4299e1;
  color: white;
}

.yinbaorec-start:hover:not(:disabled) {
  background: #3182ce;
  border-color: #3182ce;
}

.yinbaorec-btn-icon {
  font-size: 14px;
}

/* 录音列表 */
.yinbaorec-list {
  padding: 24px;
}

.yinbaorec-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.yinbaorec-list-header h3 {
  margin: 0;
  font-size: 18px;
  color: #2d3748;
  font-weight: 600;
}

.yinbaorec-clear-btn {
  padding: 6px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #ffffff;
  color: #718096;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.yinbaorec-clear-btn:hover {
  background: #f7fafc;
  border-color: #cbd5e0;
  color: #4a5568;
}

.yinbaorec-list-items {
  min-height: 100px;
}

.yinbaorec-record-item {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  margin-bottom: 12px;
  background: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.2s;
  animation: yinbaorec-fadeIn 0.3s ease;
}

.yinbaorec-record-item:hover {
  border-color: #cbd5e0;
}

.yinbaorec-record-info {
  flex: 1;
  min-width: 0;
}

.yinbaorec-record-name {
  font-weight: 500;
  color: #2d3748;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yinbaorec-record-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #718096;
  flex-wrap: wrap;
}

.yinbaorec-record-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.yinbaorec-play-btn,
.yinbaorec-download-btn {
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  border: 1px solid;
  font-weight: 500;
}

.yinbaorec-play-btn {
  border-color: #4299e1;
  background: #4299e1;
  color: white;
}

.yinbaorec-play-btn:hover {
  background: #3182ce;
  border-color: #3182ce;
  text-decoration: none;
  color: white;
}

.yinbaorec-download-btn {
  border-color: #48bb78;
  background: #48bb78;
  color: white;
}

.yinbaorec-download-btn:hover {
  background: #38a169;
  border-color: #38a169;
  text-decoration: none;
  color: white;
}

/* SEO文案区域 */
.yinbaorseo-content {
  background: #ffffff;
  border: 1px solid #e1e5e9;
  border-radius: 4px;
  padding: 32px;
}

.yinbaorseo-article h2 {
  font-size: 20px;
  color: #2d3748;
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.yinbaorseo-article h3 {
  font-size: 17px;
  color: #4a5568;
  margin-top: 24px;
  margin-bottom: 12px;
  font-weight: 600;
}

.yinbaorseo-article p {
  line-height: 1.8;
  color: #4a5568;
  margin-bottom: 16px;
  font-size: 15px;
}

.yinbaorseo-note {
  padding: 16px;
  background: #fffaf0;
  border: 1px solid #feebc8;
  border-radius: 4px;
  color: #c05621;
  font-size: 14px;
  margin-top: 24px;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
  .yinbaorec-controls {
    flex-direction: row;
  }
  
  .yinbaorec-btn {
    width: auto;
    flex: 1;
    min-width: auto;
  }
  
  .yinbaorec-record-item {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .yinbaorec-record-info {
    width: 100%;
  }
  
  .yinbaorec-record-actions {
    width: 100%;
    justify-content: stretch;
  }
  
  .yinbaorec-play-btn,
  .yinbaorec-download-btn {
    flex: 1;
    justify-content: center;
  }
  
  .yinbaorseo-content {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .yinbaorec-controls {
    flex-direction: column;
  }
  
  .yinbaorec-btn {
    width: 100%;
  }
}