/* TikNote Home Page Styles */

/* Main Content Layout */
.main-content {
  min-height: 100vh;
  padding-top: 5rem; /* Account for fixed navbar */
}

/* Hero Section */
.hero-section {
  padding-top: 40px; /* 标题距离导航栏底部 20px，总计约100px */
  padding-bottom: var(--spacing-3xl);
  background: linear-gradient(135deg, var(--tiknote-primary) 0%, var(--tiknote-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(29, 78, 216, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--spacing-xl);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--slate-300);
  line-height: 1.6;
  margin-bottom: var(--spacing-2xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    gap: var(--spacing-lg);
  }
}

/* Demo Section */
.demo-section {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.demo-container {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(71, 85, 105, 0.5);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-xl);
}

.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-xl);
}

.demo-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  margin: 0;
}

.demo-status {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse-slow 2s ease-in-out infinite;
}

.status-text {
  font-size: 0.875rem;
  color: var(--success);
  font-weight: 500;
}

/* Audio Visualizer */
.audio-visualizer {
  background: var(--slate-900);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.wave-container {
  display: flex;
  align-items: end;
  gap: var(--spacing-xs);
  height: 80px;
}

.wave-bar {
  width: 8px;
  background: linear-gradient(to top, var(--tiknote-blue), var(--tiknote-accent));
  border-radius: var(--radius-sm);
  animation: wave 1.5s ease-in-out infinite;
  min-height: 20%;
}

/* Transcription Output */
.transcription-output {
  margin-bottom: var(--spacing-xl);
}

.transcription-line {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

@media (min-width: 640px) {
  .transcription-line {
    flex-direction: row;
    align-items: flex-start;
  }
}

.speaker-label {
  font-size: 0.875rem;
  color: var(--success);
  font-weight: 600;
  flex-shrink: 0;
  min-width: 140px;
}

.transcription-text {
  font-size: 0.875rem;
  color: var(--slate-300);
  line-height: 1.5;
  position: relative;
}

.cursor-blink {
  display: inline-block;
  width: 2px;
  height: 1rem;
  background: var(--tiknote-accent);
  margin-left: 2px;
  animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.transcription-meta {
  font-size: 0.75rem;
  color: var(--slate-500);
  margin-top: var(--spacing-sm);
}

/* Demo Controls */
.demo-controls {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  justify-content: center;
}

.control-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: white;
}

.record-btn {
  background: var(--error);
}

.record-btn:hover {
  background: #dc2626;
  transform: scale(1.05);
}

.pause-btn,
.download-btn {
  background: var(--slate-600);
}

.pause-btn:hover,
.download-btn:hover {
  background: var(--slate-500);
  transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 40px; /* 移动端保持相同间距 */
    padding-bottom: var(--spacing-2xl);
  }
  
  .demo-container {
    padding: var(--spacing-lg);
  }
  
  .demo-header {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }
  
  .audio-visualizer {
    padding: var(--spacing-lg);
    min-height: 100px;
  }
  
  .wave-container {
    height: 60px;
  }
  
  .wave-bar {
    width: 6px;
  }
}

/* Animation Enhancements */
.hero-content {
  animation: fadeIn 0.8s ease-out;
}

.demo-container {
  animation: fadeIn 1s ease-out 0.2s both;
}

/* Hover Effects */
.demo-container:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Loading States */
.demo-loading .wave-bar {
  animation-play-state: paused;
  background: var(--slate-600);
}

.demo-loading .cursor-blink {
  animation-play-state: paused;
  opacity: 0.5;
}
