* { box-sizing: border-box; }
html { 
  scroll-behavior: smooth;
}
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: #1F2D3D;
  min-height: 100vh;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.container { max-width: 980px; margin: 0 auto; padding: 16px; }

.header {
  text-align: center;
  margin-bottom: 24px;
  padding: 24px 20px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: relative;
}

.logout-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(244, 67, 54, 0.9);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.logout-btn:hover {
  background: rgba(244, 67, 54, 1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

.logout-btn:active {
  transform: translateY(0);
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  z-index: -1;
}
.logo { display: flex; align-items: center; justify-content: center; gap: 12px; color: #FF6B6B; position: relative; }
.logo-icon { width: 28px; height: 28px; }
.logo h1 { 
  margin: 0; 
  font-size: 24px; 
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: #2c3e50;
}
.subtitle { 
  margin: 8px 0 0; 
  color: #5a6c7d; 
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  font-weight: 500;
}

/* 设置按钮样式 */
.settings-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  padding: 12px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.settings-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.settings-btn:active {
  transform: translateY(-50%) scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.settings-btn svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.main { display: grid; gap: 20px; }
section { 
  background: rgba(255, 255, 255, 0.1); 
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px; 
  padding: 24px; 
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
section h2 { margin: 0 0 12px; font-size: 18px; }

.config-form, .content-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; align-items: end; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
label { font-size: 13px; color: #475569; }
.form-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #666;
  font-style: italic;
}

/* 信息提示文本 */
.info-text {
  font-size: 13px;
  color: #4CAF50;
  background: rgba(76, 175, 80, 0.1);
  padding: 8px 12px;
  border-radius: 6px;
  border-left: 3px solid #4CAF50;
  margin: 8px 0;
  line-height: 1.4;
}
input, select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #E2E8F0; border-radius: 12px; background: #F8FAFC;
  outline: none; transition: border-color .2s, box-shadow .2s; font-size: 14px;
}
input:focus, select:focus, textarea:focus { border-color: #93C5FD; box-shadow: 0 0 0 3px rgba(147,197,253,.3); }

.btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 8px; 
  border: none; 
  border-radius: 16px; 
  cursor: pointer; 
  padding: 12px 20px; 
  font-size: 14px; 
  font-weight: 600;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::before {
  opacity: 1;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary { 
  background: linear-gradient(135deg, #FF6B6B, #FF5252); 
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

.btn-secondary { 
  background: linear-gradient(135deg, #6B9BFF, #5A8DEE); 
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(107, 155, 255, 0.4);
}

.btn-outline { 
  background: rgba(255, 255, 255, 0.1); 
  color: #1F2D3D; 
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.btn:disabled { opacity: .6; cursor: not-allowed; }

.loading-spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.6); border-top-color: #fff; border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.content-display { display: grid; gap: 12px; }
.content-text-container {
  position: relative;
}

.content-text { 
  white-space: pre-wrap; 
  background: #F8FAFC; 
  padding: 12px; 
  border-radius: 12px; 
  border: 1px solid #E2E8F0; 
  min-height: 100px; 
  line-height: 1.7;
  max-height: 300px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.content-text.expanded {
  max-height: none;
}

.expand-btn {
  display: block;
  margin: 8px auto 0;
  padding: 6px 12px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.2s ease;
}

.expand-btn:hover {
  background: #5a6fd8;
}
.audio-controls { 
  display: flex; 
  flex-direction: column;
  gap: 16px; 
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.voice-settings {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.voice-settings .form-group {
  flex: 1;
  min-width: 220px;
  max-width: 300px;
}

@media (max-width: 768px) {
  .voice-settings {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  
  .voice-settings .form-group {
    min-width: auto;
    max-width: none;
  }
}

.voice-settings .form-group {
  margin: 0;
}

.voice-settings label {
  font-weight: 500;
  color: #2c3e50;
  margin-bottom: 6px;
  display: block;
}

.voice-settings select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #2c3e50;
  font-size: 14px;
  transition: all 0.3s ease;
}

.voice-settings select:focus {
  outline: none;
  border-color: #FF6B6B;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

/* 音频生成控制区域 */
.audio-generation-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.audio-generation-controls .btn {
    flex: 1;
}

/* 试听播放器样式 */
.preview-player {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(138, 92, 246, 0.1);
    border: 1px solid rgba(138, 92, 246, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.preview-label {
    font-weight: 600;
    color: #8b5cf6;
    font-size: 0.9rem;
}

.preview-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

.preview-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.preview-actions .btn {
    flex: 1;
}

/* 音频播放器样式 */
.audio-player {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.audio-player audio {
  width: 100%;
  border-radius: 8px;
}

/* 播放列表控制器样式 */
#playlistControls {
  margin-top: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.playlist-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

#segmentInfo {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.playlist-buttons {
  display: flex;
  gap: 8px;
}

.playlist-buttons .btn {
  padding: 6px 12px;
  font-size: 12px;
  min-height: auto;
}

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

/* 自动播放控制样式 */
.playlist-controls {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auto-play-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  user-select: none;
}

.auto-play-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #4CAF50;
  cursor: pointer;
}

.auto-play-toggle:hover {
  color: rgba(255, 255, 255, 0.9);
}

.toggle-text {
  font-weight: 500;
}

.history-list { display: grid; gap: 10px; }
.history-item {
  background: white;
  border: 1px solid #e0e6ed;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
}

.history-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.history-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.history-text {
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
  margin-bottom: 12px;
  max-height: 120px;
  overflow-y: auto;
}

.history-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 12px;
  border-top: 1px solid #f3f4f6;
  padding-top: 12px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-secondary {
  background: #6b7280;
  color: white;
  border: none;
}

.btn-secondary:hover {
  background: #4b5563;
}

.btn-secondary:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}
.history-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.history-meta { font-size: 12px; color: #64748B; }
.history-actions { display: flex; gap: 8px; }
.empty-state { color: #94A3B8; font-size: 14px; }

/* 声音复刻功能样式 */
.voice-clone-section {
  margin-top: 24px;
}

.voice-clone-section h2 {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
}

.section-description {
  margin: 0 0 20px;
  color: #5a6c7d;
  font-size: 14px;
  line-height: 1.5;
}

.voice-clone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.voice-clone-card {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.voice-clone-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-icon {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.btn-icon svg {
  width: 16px;
  height: 16px;
  color: #2c3e50;
}

/* 音频上传区域样式 */
.upload-area {
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
}

.upload-area:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.upload-area.dragover {
  border-color: #FF6B6B;
  background: rgba(255, 107, 107, 0.1);
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.upload-icon {
  width: 48px;
  height: 48px;
  color: rgba(255, 255, 255, 0.6);
}

.upload-placeholder p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #2c3e50;
}

.upload-placeholder small {
  color: #5a6c7d;
  font-size: 12px;
}

.upload-form {
  margin-top: 20px;
  display: grid;
  gap: 16px;
}

.upload-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* 训练状态样式 */
.status-empty,
.voices-empty {
  text-align: center;
  padding: 32px 20px;
  color: #5a6c7d;
}

.status-empty p,
.voices-empty p {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 500;
}

.status-empty small,
.voices-empty small {
  font-size: 12px;
  opacity: 0.8;
}

.status-list,
.voices-list {
  display: grid;
  gap: 12px;
}

.status-item,
.voice-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s ease;
}

.status-item:hover,
.voice-item:hover {
  background: rgba(255, 255, 255, 0.15);
}

.item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.item-name {
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

.item-status {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.status-training {
  background: rgba(255, 193, 7, 0.2);
  color: #856404;
}

.status-completed {
  background: rgba(40, 167, 69, 0.2);
  color: #155724;
}

.status-failed {
  background: rgba(220, 53, 69, 0.2);
  color: #721c24;
}

.item-progress {
  margin: 8px 0;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF6B6B, #FF5252);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #5a6c7d;
  margin-top: 8px;
}

.voice-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.btn-use {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-use:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-delete {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.3);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-delete:hover {
  background: rgba(220, 53, 69, 0.2);
  transform: translateY(-1px);
}

.btn-preview {
  background: linear-gradient(135deg, #6f42c1, #8b5cf6);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-preview:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(111, 66, 193, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .voice-clone-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .upload-actions {
    flex-direction: column;
  }
  
  .voice-actions {
    flex-direction: column;
  }
  
  .item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .item-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* 模态框样式 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #E2E8F0;
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #1F2D3D;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #64748B;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  background: #F1F5F9;
  color: #1F2D3D;
}

.modal-body {
  padding: 20px 24px;
}

.modal-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid #E2E8F0;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* 复选框样式 */
.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-radius: 3px;
  margin-right: 8px;
  position: relative;
  transition: all 0.2s ease;
}

.checkbox-label:hover .checkmark {
  border-color: #007bff;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background-color: #007bff;
  border-color: #007bff;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* 内容卡片样式 */
.content-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.content-card {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.content-card:hover {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

.content-card:hover::before {
  opacity: 1;
}

.content-card.selected {
  border-color: rgba(255, 107, 107, 0.6);
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.1));
  box-shadow: 0 8px 32px rgba(255, 107, 107, 0.3);
}

.content-card.selected::after {
  content: '✓';
  position: absolute;
  top: 16px;
  right: 20px;
  color: #FF6B6B;
  font-weight: bold;
  font-size: 20px;
  z-index: 2;
}

.card-icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
  position: relative;
  z-index: 1;
}

.content-card h3 {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  position: relative;
  z-index: 1;
}

.content-card p {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* 禁用状态样式 */
.content-card.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: rgba(128, 128, 128, 0.1);
  border-color: rgba(128, 128, 128, 0.2);
}

.content-card.disabled:hover {
  border-color: rgba(128, 128, 128, 0.2);
  box-shadow: none;
  transform: none;
}

.content-card.disabled::before {
  opacity: 0;
}

.content-card.disabled .card-icon,
.content-card.disabled h3,
.content-card.disabled p {
  color: #9ca3af;
}

/* 开发中徽章样式 */
.development-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

/* 历史记录模块样式 */
.history-module {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.history-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 300px;
  width: 100%;
}

.history-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.history-card .card-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.history-card h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
}

.history-card p {
  margin: 0 0 16px 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

/* 历史记录控制按钮 */
.history-controls {
  margin-bottom: 20px;
  text-align: right;
}

.btn-danger {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  color: white;
  border: none;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #ff5252, #e53935);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

/* 历史记录项样式 */
.history-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.history-content {
  flex: 1;
  margin-right: 16px;
}

.history-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.history-type {
  background: rgba(74, 144, 226, 0.2);
  color: #4a90e2;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.history-date {
  color: #64748b;
  font-size: 12px;
}

.history-text {
  color: #2c3e50;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

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

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
}

.empty-state {
  text-align: center;
  color: #64748b;
  font-style: italic;
  padding: 40px 20px;
  margin: 0;
}

/* 隐藏声音复刻模块（保留功能逻辑） */
.voice-clone-section {
  display: none !important;
}

@media (max-width: 640px) {
  .container { padding: 16px; }
  .header { padding: 20px 0; }
  .logo h1 { font-size: 20px; }
  .subtitle { font-size: 14px; }
  .content-section, .result-section, .history-section { padding: 20px; }
  .modal-content { margin: 20px; max-width: calc(100% - 40px); }
  
  .content-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .content-card {
    padding: 20px;
  }
  
  .card-icon {
    font-size: 40px;
    margin-bottom: 12px;
  }
  
  .voice-selector { gap: 8px; }
  .voice-option { padding: 12px; }
}
