/* ═══════════════════════════════════════════════════════════════════
   TTS 語音合成介紹頁 - 專屬樣式
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --primary-color: #007BFF;
  --secondary-color: #00C6FF;
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  --text-main: #2D3748;
  --text-muted: #718096;
  --grad-main: linear-gradient(135deg, #0077CC, #00AAFF);
}

html {
  scrollbar-gutter: stable;
}

html,
body {
  min-height: 100%;
}

.tts-page {
  --tts-header-offset: 78px;
  --tts-breadcrumbs-height: 78px;
}

body {
  background-color: var(--bg-white) !important;
  color: var(--text-main);
  font-family: 'Poppins', 'Open Sans', sans-serif;
}

body.tts-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 123, 255, 0.08);
  border: 1px solid rgba(0, 123, 255, 0.1);
  padding: 2.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 50px rgba(0, 123, 255, 0.12);
}

/* ─── Hero 區塊 ─── */
.tts-hero-section {
  padding: 100px 0 60px;
  text-align: center;
  background: radial-gradient(circle at center top, rgba(0, 198, 255, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
}

.tts-hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.tts-hero-section p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* ─── 快速情境按鈕 ─── */
.scenario-btn {
  background: var(--bg-white);
  border: 1px solid rgba(0, 123, 255, 0.2);
  border-radius: 50px;
  padding: 10px 24px;
  margin: 0 8px 15px;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.scenario-btn:hover,
.scenario-btn.active {
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 198, 255, 0.1));
  border-color: var(--primary-color);
  color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
}

/* ─── 表單元件 ─── */
.custom-textarea {
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 1.5rem;
  font-size: 1.1rem;
  resize: none;
  background-color: #F7FAFC;
  transition: all 0.3s ease;
  width: 100%;
}

.custom-textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
  outline: none;
  background-color: #FFFFFF;
}

.custom-select-box {
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  padding: 12px;
  background-color: #F7FAFC;
  font-weight: 500;
  height: 50px;
}

.custom-range {
  width: 100%;
  height: 6px;
  border-radius: 5px;
  background: #E2E8F0;
  outline: none;
  opacity: 0.7;
  transition: opacity .2s;
}

.custom-range:hover {
  opacity: 1;
}

.control-label {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
  display: block;
  font-size: 0.95rem;
}

/* ─── 語者卡片微調 ─── */
.speaker-info-card {
  background: #F7FAFC !important;
  border-radius: 12px !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.speaker-info-card h6 {
  color: var(--primary-color) !important;
}

.speaker-info-card[hidden],
#emotionDiv[hidden],
.audio-player-wrapper[hidden] {
  display: none !important;
}

.speaker-meta-item {
  font-size: 0.85rem;
}

/* ─── 按鈕與播放器 ─── */
.play-btn-large {
  border-radius: 50px;
  padding: 15px 40px;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.play-btn-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 123, 255, 0.4);
}

.play-btn-large.is-loading {
  opacity: 0.88;
  pointer-events: none;
}

.play-btn-large.is-playing {
  background: linear-gradient(135deg, #035E8D, #08717D);
}

.play-btn-large.is-paused {
  background: linear-gradient(135deg, #1E6FBF, #2BA4E0);
}

.audio-player-wrapper {
  margin-top: 25px;
  background: var(--bg-white);
  border-radius: 50px;
  padding: 15px 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  display: none;
  border: 1px solid #E2E8F0;
}

.audio-player-wrapper.is-visible {
  display: block;
  animation: fadeInUp 0.35s ease-out;
}

.audio-player-wrapper--compact {
  max-width: 700px;
}

.preview-divider {
  border-color: #EDF2F7 !important;
}

.preview-label {
  font-size: 0.9rem;
}

.hero-form-card {
  max-width: 1050px;
}

audio {
  width: 100%;
  height: 40px;
  outline: none;
}

/* ─── 特色區塊 ─── */
.feature-section {
  padding: 100px 0;
}

.feature-section.bg-alt {
  background-color: var(--bg-light);
}

.feature-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 123, 255, 0.1);
  color: var(--primary-color);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--text-main);
  line-height: 1.3;
}

.feature-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 30px;
}

.feature-check-icon {
  font-size: 1.2rem;
  vertical-align: middle;
}

/* ─── 佔位圖 (Placeholder) ─── */
.visual-placeholder {
  background: linear-gradient(135deg, #F1F5F9, #E2E8F0);
  border-radius: 24px;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #718096;
  font-weight: 500;
  border: 2px dashed #CBD5E0;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.02);
}

.visual-placeholder i {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #A0AEC0;
}

.visual-placeholder.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
  animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
  100% {
    left: 200%;
  }
}

/* ─── 底部 CTA ─── */
.cta-section {
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.cta-btn-outline {
  border: 2px solid white;
  color: white;
  background: transparent;
  border-radius: 50px;
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s;
  margin-left: 15px;
}

.cta-btn-outline:hover {
  background: white;
  color: var(--primary-color);
}

.cta-title {
  font-size: 2.8rem;
  letter-spacing: -1px;
}

.cta-description {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.footer-copy {
  color: #A0AEC0;
  font-size: 0.95rem;
}

/* ─── 修正頂部間距問題 ─── */
/* #main.main-mt {
  margin-top: 60px !important;
} */

/* ─── 唯讀表單元件 (改進為無障礙) ─── */
.readonly-control {
  pointer-events: none;
  user-select: none;
  cursor: default !important;
  opacity: 0.8;
}

.readonly-control:disabled {
  background-color: #F7FAFC;
  color: var(--text-muted);
}

/* ─── TTS Breadcrumbs ─── */
.tts-page #breadcrumbs.breadcrumbs {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--tts-header-offset);
  width: 100%;
  margin-top: 0;
  z-index: 996;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

/* ─── VOICE GALLERY ─── */
#voice-gallery {
  padding: 100px 0;
  background: var(--bg-white);
}

.center-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 123, 255, 0.1);
  color: var(--primary-color);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 auto;
  max-width: 800px;
}

.voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
  padding: 0 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Voice Card ─── */
.voice-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 123, 255, 0.1);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 123, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.voice-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 123, 255, 0.12);
  border-color: rgba(0, 123, 255, 0.2);
}

.voice-avatar {
  position: relative;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.voice-avatar-ring {
  width: 84px;
  height: 84px;
  border: 2px dashed rgba(0, 123, 255, 0.3);
  border-radius: 50%;
  position: absolute;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.voice-card:hover .voice-avatar-ring {
  transform: rotate(90deg);
}

.voice-avatar-inner {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
  z-index: 1;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.voice-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.voice-style {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.voice-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 24px;
}

.voice-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 123, 255, 0.08);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ─── 播放按鈕 ─── */
.voice-play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.voice-play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.voice-play-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  margin-left: 3px;
}

.btn-secondary {
  display: inline-block;
  padding: 12px 32px;
  background: var(--bg-white);
  color: var(--primary-color);
  border: 1px solid rgba(0, 123, 255, 0.2);
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(0, 123, 255, 0.05);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* ─── TESTIMONIALS ─── */
#testimonials {
  padding: 100px 0;
  background: var(--bg-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonials-grid--wide {
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--bg-white);
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 123, 255, 0.12);
}

.stars {
  margin-bottom: 12px;
  display: flex;
  gap: 4px;
}

.star {
  color: #ffd700;
  font-size: 1.2rem;
}

.quote-mark {
  display: block;
  font-size: 3rem;
  color: rgba(0, 123, 255, 0.15);
  line-height: 1;
  margin-bottom: 12px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #E2E8F0;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  flex-shrink: 0;
}

.author-name {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.95rem;
}

.author-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ─── SAMPLE GRID（多語言示例） ─── */
.sample-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.sample-card {
  padding: 1.8rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sample-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.text-highlight {
  font-weight: 600;
  color: var(--primary-color);
  background: rgba(0, 123, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-lang {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  background: rgba(0, 123, 255, 0.1);
  color: var(--primary-color);
  border-radius: 50px;
}

.badge-lang--taiwanese {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
}

.badge-lang--hakka {
  background: rgba(245, 158, 11, 0.1);
  color: #F59E0B;
}

.badge-speaker {
  font-size: 0.8rem;
  color: #A0AEC0;
  font-weight: 500;
}

/* ─── 自訂播放器 UI ─── */
.custom-audio-player {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #F7FAFC;
  padding: 10px 15px;
  border-radius: 50px;
  border: 1px solid #E2E8F0;
}

.btn-play-custom {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.btn-play-custom:hover {
  transform: scale(1.05);
}

.btn-play-custom.playing {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.audio-track {
  flex-grow: 1;
  height: 4px;
  background: #E2E8F0;
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.audio-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--primary-color);
  border-radius: 2px;
  transition: width 0.1s linear;
}

.audio-time {
  font-size: 0.75rem;
  color: #718096;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  min-width: 38px;
  text-align: right;
}

.hidden-audio {
  display: none;
}

/* ─── Hero 區塊 ─── */
.hero-section {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center top, rgba(0, 198, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%), var(--bg-white);
  overflow: hidden;
  padding-top: 80px;
  padding-bottom: 40px;
}

.hero-bg-decoration {
  display: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 123, 255, 0.08);
  border-radius: 50px;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-main);
  font-weight: 600;
  margin-bottom: 0.8rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-description {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.hero-cta-group .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-cta-group .btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.2);
}

.hero-cta-group .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 123, 255, 0.3);
}

.hero-cta-group .btn-outline {
  background: var(--bg-white);
  color: var(--primary-color);
  border: 1px solid rgba(0, 123, 255, 0.2);
}

.hero-cta-group .btn-outline:hover {
  background: rgba(0, 123, 255, 0.05);
  border-color: var(--primary-color);
}

/* ─── VOICE GALLERY (NEW LAYOUT) ─── */
#voice-gallery {
  background: var(--bg-light);
  padding: 100px 40px;
}

.vg-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.vg-lang-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 48px 0 18px;
  padding-left: 12px;
  border-left: 3px solid var(--primary-color);
  list-style: none;
}

.vg-lang-label:first-child {
  margin-top: 0;
}

.vg-scroll-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 40px 24px 40px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.vg-scroll-track::-webkit-scrollbar {
  height: 8px;
}

.vg-scroll-track::-webkit-scrollbar-track {
  background: #F0F4F8;
  border-radius: 4px;
}

.vg-scroll-track::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.vg-scroll-track:hover::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

/* ─── Voice Gallery Card ─── */
.vg-card {
  flex: 0 0 230px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(0, 123, 255, 0.1);
  border-radius: 20px;
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.06);
}

.vg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 123, 255, 0.14);
  border-color: rgba(0, 123, 255, 0.25);
}

.vg-photo {
  width: 100%;
  height: 150px;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.vg-photo-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vg-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 0%, rgba(0, 40, 100, 0.6) 100%);
  z-index: 1;
}

.vg-avatar-circle {
  display: none;
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.55);
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.4rem;
  z-index: 2;
}

.vg-photo-text {
  position: relative;
  z-index: 3;
  padding: 10px 14px;
  width: 100%;
  color: #fff;
}

.vg-photo-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.vg-photo-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 400;
  margin: 0;
  padding: 0;
}

.vg-body {
  padding: 12px 14px 8px;
  flex-grow: 1;
  min-height: 85px;
}

.vg-role {
  font-size: 0.8rem;
  color: var(--text-main);
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.4;
}

.vg-suitable {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.vg-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid rgba(0, 123, 255, 0.08);
  background: rgba(0, 123, 255, 0.02);
}

.vg-footer-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.vg-play-btn {
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 123, 255, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-family: 'Noto Sans TC', sans-serif;
  line-height: 1;
}

.vg-play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 16px rgba(0, 123, 255, 0.4);
}

.vg-play-btn.playing {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.vg-play-btn.is-loading {
  opacity: 0.88;
  pointer-events: none;
}

.vg-play-btn.is-paused {
  background: linear-gradient(135deg, #1E6FBF, #2BA4E0);
}

.vg-play-btn svg {
  width: 11px;
  height: 11px;
  fill: #fff;
}

.vg-progress-panel {
  padding: 10px 14px 14px;
  background: rgba(0, 123, 255, 0.03);
  border-top: 1px solid rgba(0, 123, 255, 0.06);
}

.vg-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(0, 123, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.vg-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  transition: width 0.12s linear;
}

.vg-progress-time {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.vg-card.is-playing .vg-progress-bar {
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.08);
}

.advantage-card {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.advantage-card--primary {
  border-top: 4px solid var(--primary-color);
}

.advantage-card--secondary {
  border-top: 4px solid var(--secondary-color);
}

.advantage-card--success {
  border-top: 4px solid #10B981;
}

.feature-icon-lg {
  font-size: 3rem;
}

.hero-glass-container {
  position: relative;
  width: 100%;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
