/* ========== 音色克隆页 ========== */

.clone-main {
  padding-top: 20px;
  padding-bottom: 12px;
}

.clone-hero {
  text-align: center;
  margin-bottom: 16px;
}

.clone-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.clone-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 400;
}

/* Tabs */
.clone-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 16px;
  background: var(--bg-elevated);
  border-radius: var(--radius-pill);
  padding: 4px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--border);
}

.clone-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 22px;
  border: none;
  background: transparent;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.clone-tab:hover {
  color: var(--text-primary);
}

.clone-tab.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Panel */
.clone-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 36px 24px;
  text-align: center;
  margin-bottom: 18px;
}

.clone-panel-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.clone-panel-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.clone-help-link {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.85rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.clone-help-link:hover {
  color: var(--brand);
}

/* Waveform - 心跳交织波形 */
.clone-waveform {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  height: 70px;
}

.heartbeat-waves {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 70px;
  animation: heartbeatScale 1.8s ease-in-out infinite;
}

.hb-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hb-base {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.2;
}

.hb-base-1 { stroke: #b8723f; }
.hb-base-2 { stroke: #e0b078; }
.hb-base-3 { stroke: #c98a5c; }

.hb-pulse {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60 440;
  animation: hbPulseFlow 2.8s linear infinite;
}

.hb-pulse-1 {
  stroke: #b8723f;
  filter: drop-shadow(0 0 6px rgba(184, 114, 63, 0.7));
  animation-duration: 2.5s;
}

.hb-pulse-2 {
  stroke: #e0b078;
  filter: drop-shadow(0 0 5px rgba(224, 176, 120, 0.6));
  animation-duration: 3.2s;
  animation-direction: reverse;
  stroke-dasharray: 45 455;
}

.hb-pulse-3 {
  stroke: #c98a5c;
  filter: drop-shadow(0 0 5px rgba(201, 138, 92, 0.5));
  animation-duration: 2.2s;
  stroke-dasharray: 50 450;
}

@keyframes hbPulseFlow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -500; }
}

@keyframes heartbeatScale {
  0%, 100% { transform: scaleY(0.85); }
  10% { transform: scaleY(1.05); }
  20% { transform: scaleY(0.9); }
  30% { transform: scaleY(1.08); }
  40% { transform: scaleY(0.95); }
  50% { transform: scaleY(1.0); }
}

/* 上传态 - 紫色系 */
.heartbeat-waves-upload {
  animation-duration: 2.8s;
}

.heartbeat-waves-upload .hb-base { opacity: 0.18; }
.heartbeat-waves-upload .hb-base-1 { stroke: #9b7fd4; }
.heartbeat-waves-upload .hb-base-2 { stroke: #c4b0e8; }
.heartbeat-waves-upload .hb-base-3 { stroke: #b8a0d8; }

.heartbeat-waves-upload .hb-pulse-1 {
  stroke: #9b7fd4;
  filter: drop-shadow(0 0 6px rgba(155, 127, 212, 0.6));
  animation-duration: 3.5s;
}

.heartbeat-waves-upload .hb-pulse-2 {
  stroke: #c4b0e8;
  filter: drop-shadow(0 0 5px rgba(196, 176, 232, 0.5));
  animation-duration: 4s;
}

.heartbeat-waves-upload .hb-pulse-3 {
  stroke: #b8a0d8;
  filter: drop-shadow(0 0 5px rgba(184, 160, 216, 0.4));
  animation-duration: 3s;
}

/* Action button */
.clone-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 44px;
  background: var(--text-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-sans);
  min-width: 200px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.clone-action-btn:hover {
  background: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(184, 114, 63, 0.35);
}

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

/* Language selector */
.clone-lang {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
}

.clone-lang-label {
  color: var(--text-muted);
}

.clone-lang-select {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  font-family: var(--font-sans);
}

.clone-lang-select:hover {
  background: var(--bg-hover);
}

/* Examples */
.clone-examples {
  margin-bottom: 0;
}

.clone-examples-title {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.clone-examples-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.clone-example-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.clone-example-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--brand-dim);
}

.clone-example-cover {
  width: 100%;
  aspect-ratio: 1.2;
  overflow: hidden;
  background: var(--bg-elevated);
}

.clone-example-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.clone-example-btns {
  display: flex;
  gap: 4px;
  padding: 7px;
}

.clone-play-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-sans);
}

.clone-play-btn:hover {
  background: var(--brand-dim);
  color: var(--brand);
  border-color: var(--brand);
}

.clone-play-btn.playing {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.clone-play-btn svg {
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .clone-main {
    padding: 20px 16px;
  }
  .clone-panel {
    padding: 24px 16px;
  }
  .clone-title {
    font-size: 1.6rem;
  }
  .clone-examples-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
