/* 录制模式选择区域 */
.sr-recording-mode-section {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
}
.sr-recording-mode-section h4 {
  margin-bottom: 15px;
  color: #2c3e50;
  font-size: 16px;
  display: flex;
  align-items: center;
}
.sr-recording-mode-section h4 i {
  margin-right: 10px;
  color: #2196F3;
}
.sr-mode-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.sr-mode-card {
  background: #fff;
  border: 2px solid #e0e3eb;
  border-radius: 10px;
  padding: 20px 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.sr-mode-card:hover {
  border-color: #2196F3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15);
}
.sr-mode-card.sr-mode-active {
  border-color: #2196F3;
  background: #e3f2fd;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}
.sr-mode-card i {
  font-size: 36px;
  color: #2196F3;
  margin-bottom: 10px;
  display: block;
}
.sr-mode-card h5 {
  margin: 8px 0;
  color: #333;
  font-size: 15px;
}
.sr-mode-card p {
  color: #666;
  font-size: 12px;
  margin: 0;
}

/* 录制参数设置区域 */
.sr-recording-params-section {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
}
.sr-recording-params-section h4 {
  margin-bottom: 15px;
  color: #2c3e50;
  font-size: 16px;
  display: flex;
  align-items: center;
}
.sr-recording-params-section h4 i {
  margin-right: 10px;
  color: #2196F3;
}
.sr-params-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.sr-param-item {
  background: #fff;
  border: 2px solid #e0e3eb;
  border-radius: 8px;
  padding: 15px;
}
.sr-param-item label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: #444;
  font-size: 14px;
}
.sr-param-item select,
.sr-param-item input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s;
}
.sr-param-item select:focus,
.sr-param-item input:focus {
  border-color: #2196F3;
  outline: none;
}
.sr-checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background: #fff;
  border: 2px solid #e0e3eb;
  border-radius: 8px;
}
.sr-checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2196F3;
}
.sr-checkbox-group label {
  font-weight: 500;
  color: #444;
  cursor: pointer;
}

/* 状态指示器 */
.sr-status-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 20px;
  background: #fff;
  border: 2px solid #e0e3eb;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 15px;
  color: #666;
}
.sr-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #999;
  transition: background 0.3s;
}
.sr-status-dot.sr-status-ready {
  background: #4CAF50;
}
.sr-status-dot.sr-status-recording {
  background: #F44336;
  animation: sr-blink 1s infinite;
}
.sr-status-dot.sr-status-paused {
  background: #FF9800;
  animation: sr-blink 1.5s infinite;
}
@keyframes sr-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* 录制计时器 */
.sr-timer {
  text-align: center;
  padding: 10px 0;
  font-size: 32px;
  font-weight: bold;
  color: #333;
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
}

/* 控制按钮区域 */
.sr-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
  flex-wrap: wrap;
}

/* 视频预览区域 */
.sr-video-preview-section {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
  display: none;
}
.sr-video-preview-section.sr-show {
  display: block;
}
.sr-video-preview-section h4 {
  margin-bottom: 15px;
  color: #2c3e50;
  font-size: 16px;
  display: flex;
  align-items: center;
}
.sr-video-preview-section h4 i {
  margin-right: 10px;
  color: #2196F3;
}
.sr-video-container {
  position: relative;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 15px;
  max-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sr-video-container video {
  max-width: 100%;
  max-height: 500px;
  display: block;
}

/* 画中画容器 */
.sr-pip-container {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 180px;
  height: 135px;
  border-radius: 8px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background: #000;
  z-index: 10;
}
.sr-pip-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 文件信息区域 */
.sr-file-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 15px;
}
.sr-info-card {
  background: #fff;
  border-radius: 8px;
  padding: 12px 15px;
  text-align: center;
  border: 1px solid #e0e3eb;
}
.sr-info-card span {
  display: block;
  color: #999;
  font-size: 12px;
  margin-bottom: 5px;
}
.sr-info-card strong {
  color: #333;
  font-size: 14px;
}

/* 预览/下载按钮 */
.sr-action-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

/* 响应式 */
@media (max-width: 768px) {
  .sr-mode-options {
    grid-template-columns: 1fr;
  }
  .sr-params-grid {
    grid-template-columns: 1fr;
  }
  .sr-file-info {
    grid-template-columns: 1fr;
  }
  .sr-pip-container {
    width: 120px;
    height: 90px;
    bottom: 10px;
    right: 10px;
  }
}
