/**
 * Text to Speech Page Styles
 * 文字转语音页面样式 - 采用BEM命名规范
 * 
 * @author AirMore Team
 * @version 1.0
 */

/* ==========================================================================
   CSS Reset & Override
   重置与覆盖样式
   ========================================================================== */

/* Ensure custom component styles are not overridden by Tailwind */
.text-to-speech .input-wrapper * {
    box-sizing: border-box;
}

/* ==========================================================================
   Icon Container Optimization - 图标容器优化（防止 CLS）
   ========================================================================== */

/* 
 * 为所有图标容器预设固定尺寸，防止图标加载时导致布局抖动
 * Font Awesome 图标通过 CDN 异步加载，容器需要预留空间
 */

/* 通用图标容器 - 为所有 <i> 标签设置默认尺寸 */
.text-to-speech i[class*="fa"] {
    display: inline-block;
    min-width: 1em;
    min-height: 1em;
    text-align: center;
}

/* 按钮内的图标 - 确保有固定尺寸 */
.text-to-speech button i[class*="fa"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
}

/* ==========================================================================
   Base Styles
   基础样式
   ========================================================================== */

.text-to-speech {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #000000;
    min-height: 100vh;
}

/* Hidden utility class */
.text-to-speech__hidden {
    display: none !important;
}

/* Error state */
.text-to-speech__error {
    color: #ef4444 !important;
}

/* ==========================================================================
   Hero Section
   首页英雄区域
   ========================================================================== */

.text-to-speech__hero {
    position: relative;
    padding: 8rem 0 0.5rem;
    background: #000000;
    overflow: hidden;
}

.text-to-speech__hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* Container */
.text-to-speech .container {
    margin: 0 auto;
    padding: 0 1rem;
}

/* Content areas */
.text-to-speech .content {
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
}

/* How to use content - max width 80rem (5xl) */
.text-to-speech__how-to-use .content {
    max-width: 80rem;
}

/* Hero content */
.text-to-speech__hero .content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.text-to-speech__hero .title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.text-to-speech__hero .title__highlight {
    display: block;
    font-size: 1em;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa 0%, #a855f7 50%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-to-speech__hero .subtitle {
    font-size: 1.125rem;
    color: #d1d5db;
    margin-bottom: 0.5rem;
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ==========================================================================
   Main Function Section
   主要功能区域
   ========================================================================== */

.text-to-speech__function {
    padding: 1rem 0 3rem;
    background-color: #000000;
}

/* ==========================================================================
   Input Area
   输入区域
   ========================================================================== */

.text-to-speech__function .input-container {
    margin-bottom: 0rem;
}

.text-to-speech__function .input-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.text-to-speech__function .input__content {
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.text-to-speech__function .input__header {
    margin-bottom: 1.5rem;
}

.text-to-speech__function .input__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.text-to-speech__function .input__subtitle {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.6;
}

.text-to-speech__function .input__textarea-wrapper {
    position: relative;
}

.text-to-speech__function .input__textarea {
    width: 100%;
    min-height: 21rem;
    padding: 1rem;
    background: #374151;
    border: 2px solid #4b5563;
    border-radius: 0.75rem;
    color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
}

.text-to-speech__function .input__textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: #4b5563;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.text-to-speech__function .input__textarea::placeholder {
    color: #6b7280;
}

.text-to-speech__function .input__char-count {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.text-to-speech__function .input__char-count #char-count {
    font-weight: 600;
    color: #9ca3af;
}

.text-to-speech__function .input__char-count__separator {
    color: #4b5563;
    font-weight: 300;
}

.text-to-speech__function .input__credits-preview {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #6b7280;
}

.text-to-speech__function .input__credits-preview #estimated-credits {
    font-weight: 600;
    color: #60a5fa;
}

/* ==========================================================================
   Configuration Panel
   配置面板
   ========================================================================== */

.text-to-speech__function .config-panel {
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.text-to-speech__function .form-group {
    margin-bottom: 1.5rem;
}

.text-to-speech__function .form-group__label {
    display: block;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

.text-to-speech__function .form-group__select {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    background: #374151;
    border: 1px solid #4b5563;
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239CA3AF'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    transition: all 0.3s ease;
}

.text-to-speech__function .form-group__select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%233B82F6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
}

.text-to-speech__function .form-group__range-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.text-to-speech__function .form-group__range {
    flex: 1;
    accent-color: #3b82f6;
}

.text-to-speech__function .form-group__range-display {
    min-width: 45px;
    color: #9ca3af;
    font-weight: 500;
    text-align: right;
}

/* ==========================================================================
   Voice Cards Styles
   音色卡片样式
   ========================================================================== */

.text-to-speech__function .voice-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

/* Skeleton loading placeholders for voice cards - prevents CLS */
.text-to-speech__function .voice-card-skeleton {
    background: #374151;
    border: 2px solid #4b5563;
    border-radius: 0.5rem;
    padding: 0.75rem;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.text-to-speech__function .voice-card-skeleton::before {
    content: '';
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4b5563;
    margin-bottom: 0.5rem;
}

.text-to-speech__function .voice-card-skeleton::after {
    content: '';
    width: 70px;
    height: 14px;
    border-radius: 4px;
    background: #4b5563;
}

@keyframes skeleton-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.text-to-speech__function .voice-card {
    background: #374151;
    border: 2px solid #4b5563;
    border-radius: 0.5rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.text-to-speech__function .voice-card:hover {
    border-color: #3b82f6;
    background: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.text-to-speech__function .voice-card--selected {
    background: linear-gradient(145deg, #2563eb, #1d4ed8);
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.text-to-speech__function .voice-card--selected:hover {
    background: linear-gradient(145deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4), 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.text-to-speech__function .voice-card__avatar {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #f3f4f6;
}

.text-to-speech__function .voice-card__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Voice Preview Play Button Styles */
.text-to-speech__function .voice-card__play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    opacity: 0;
    backdrop-filter: blur(4px);
}

.text-to-speech__function .voice-card:hover .voice-card__play-button {
    opacity: 1;
}

.text-to-speech__function .voice-card__play-button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.text-to-speech__function .voice-card__play-button i {
    width: 9px;
    height: 9px;
    color: #ffffff;
    font-size: 9px;
    margin-left: 1px; /* Fine-tune play icon position */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.text-to-speech__function .voice-card__play-button--loading {
    opacity: 1 !important;
    background: rgba(59, 130, 246, 0.8);
}

.text-to-speech__function .voice-card__play-button--loading:hover {
    background: rgba(59, 130, 246, 0.9);
}

.text-to-speech__function .voice-card__play-button--playing {
    opacity: 1 !important;
    background: rgba(34, 197, 94, 0.8);
}

.text-to-speech__function .voice-card__play-button--playing:hover {
    background: rgba(34, 197, 94, 0.9);
}

.text-to-speech__function .voice-card__play-button--playing i {
    width: 9px;
    height: 9px;
    margin-left: 0; /* Pause icon doesn't need position adjustment */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.text-to-speech__function .voice-card__play-button--error {
    opacity: 1 !important;
    background: rgba(239, 68, 68, 0.8);
}

.text-to-speech__function .voice-card__play-button--error:hover {
    background: rgba(239, 68, 68, 0.9);
}

/* Pulse animation effect when playing */
.text-to-speech__function .voice-card__play-button--playing::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 1px solid #22c55e;
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
    z-index: -1;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.9);
        opacity: 1;
    }
    70% {
        transform: scale(1.3);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.text-to-speech__function .voice-card__info {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.text-to-speech__function .voice-card__gender-icon {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 0.75rem;
    height: 0.75rem;
    font-size: 0.75rem;
    color: #9ca3af;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-to-speech__function .voice-card__gender-icon.fa-mars {
    color: #60a5fa;
}

.text-to-speech__function .voice-card__gender-icon.fa-venus {
    color: #f472b6;
}

.text-to-speech__function .voice-card--selected .voice-card__gender-icon {
    color: #ffffff;
}

.text-to-speech__function .voice-card--selected .voice-card__avatar {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.text-to-speech__function .voice-card__name {
    font-size: 0.75rem;
    color: #d1d5db;
    font-weight: 500;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.text-to-speech__function .voice-card--selected .voice-card__name {
    color: #ffffff;
    font-weight: 600;
}

/* Action Button */
.text-to-speech__function .config__actions {
    margin-top: 1.5rem;
}

.text-to-speech__function .config__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border: none;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Convert button icon - 转换按钮图标固定尺寸 */
.text-to-speech__function .config__button i {
    width: 1.125rem;
    height: 1.125rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.text-to-speech__function .config__button:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.text-to-speech__function .config__button__credits {
    font-weight: 500;
    opacity: 0.9;
    font-size: 0.95em;
}

/* ==========================================================================
   Progress Overlay
   进度覆盖层
   ========================================================================== */

.text-to-speech .progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.text-to-speech .progress-content {
    background: #111827;
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 20px 64px rgba(0, 0, 0, 0.5);
    min-width: 300px;
}

.text-to-speech .progress__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.text-to-speech .progress-bar-container {
    width: 100%;
    height: 8px;
    background: #374151;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.text-to-speech .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.text-to-speech .progress-percent {
    color: #9ca3af;
    font-weight: 500;
}

/* ==========================================================================
   Results Section
   结果区域
   ========================================================================== */

.text-to-speech__function .results__header {
    text-align: center;
    margin-bottom: 1rem;
}

.text-to-speech__function .results__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
}

/* Results Content Wrapper - Vertical Layout */
.text-to-speech__function .results__content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Original Text Preview */
.text-to-speech__function .results__text-preview {
    display: flex;
    flex-direction: column;
}

.text-to-speech__function .results__text-content {
    flex: 1;
    max-height: 40rem;
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    color: #e5e7eb;
    font-size: 0.9375rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.text-to-speech__function .results__text-content::-webkit-scrollbar {
    width: 8px;
}

.text-to-speech__function .results__text-content::-webkit-scrollbar-track {
    background: #1f2937;
    border-radius: 4px;
}

.text-to-speech__function .results__text-content::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

.text-to-speech__function .results__text-content::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Audio Section */
.text-to-speech__function .results__audio-section {
    display: flex;
    flex-direction: column;
}

/* Native Audio Player (Hidden) */
.text-to-speech__function .audio-player-native {
    display: none;
}

/* Custom Audio Player */
.text-to-speech__function .audio-player-custom {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Progress Wrapper */
.text-to-speech__function .audio-player__progress-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

/* Time Display */
.text-to-speech__function .audio-player__time-display {
    color: #cbd5e0;
    font-size: 0.875rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    min-width: 45px;
    text-align: center;
}

/* Progress Bar Container */
.text-to-speech__function .audio-player__progress-container {
    position: relative;
    flex: 1;
    height: 6px;
    background: rgba(75, 85, 99, 0.5);
    border-radius: 3px;
    cursor: pointer;
    overflow: visible;
}

/* Buffered Progress */
.text-to-speech__function .audio-player__progress-buffered {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(107, 114, 128, 0.6);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
    z-index: 1;
}

/* Progress Bar - Played portion (Blue) */
.text-to-speech__function .audio-player__progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
    z-index: 2;
    pointer-events: none;
}

/* Progress Handle */
.text-to-speech__function .audio-player__progress-handle {
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: #ffffff;
    border: 2px solid #3b82f6;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
    opacity: 1;
    transition: all 0.2s ease;
}

.text-to-speech__function .audio-player__progress-handle:hover {
    transform: translateY(-50%) scale(1.2);
    box-shadow: 0 3px 8px rgba(59, 130, 246, 0.6);
}

/* Player Controls Container */
.text-to-speech__function .audio-player__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* Player Buttons */
.text-to-speech__function .audio-player__btn {
    background: rgba(203, 213, 224, 0.1);
    border: none;
    border-radius: 50%;
    color: #cbd5e0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

/* Audio player button icons - 音频播放器按钮图标固定尺寸 */
.text-to-speech__function .audio-player__btn i {
    width: 1rem;
    height: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-to-speech__function .audio-player__btn:hover {
    background: rgba(203, 213, 224, 0.2);
    color: #ffffff;
}

.text-to-speech__function .audio-player__btn:active {
    transform: scale(0.95);
}

/* Play/Pause Button */
.text-to-speech__function .audio-player__btn--play {
    background: rgba(203, 213, 224, 0.9);
    color: #2d3748;
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
    margin: 0 0.5rem;
    position: relative;
}

/* Play/Pause button icon - 播放/暂停按钮图标固定尺寸 */
.text-to-speech__function .audio-player__btn--play i {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-to-speech__function .audio-player__btn--play:hover {
    background: #ffffff;
    color: #2d3748;
}

.text-to-speech__function .audio-player__btn--play:active {
    transform: scale(0.95);
}

/* Speed Button */
.text-to-speech__function .audio-player__btn--speed {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0;
}

/* Speed Control */
.text-to-speech__function .audio-player__speed {
    position: relative;
}

.text-to-speech__function .audio-player__speed-menu {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0.75rem;
    background: #1f2937;
    border: 1px solid #4b5563;
    border-radius: 0.5rem;
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.text-to-speech__function .audio-player__speed-menu.show {
    display: flex;
}

.text-to-speech__function .speed-option {
    background: transparent;
    border: none;
    color: #cbd5e0;
    padding: 0.5rem 1rem;
    text-align: center;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    white-space: nowrap;
}

.text-to-speech__function .speed-option:hover {
    background: #374151;
    color: #ffffff;
}

.text-to-speech__function .speed-option.active {
    background: #60a5fa;
    color: #ffffff;
}

/* Volume Wrapper */
.text-to-speech__function .audio-player__volume-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Volume Control Panel */
.text-to-speech__function .audio-player__volume-control {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.75rem);
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    background: #1f2937;
    padding: 0.75rem 1rem;
    border-radius: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.text-to-speech__function .audio-player__volume-control.show {
    display: flex;
}

/* Volume Value Display */
.text-to-speech__function .audio-player__volume-value {
    color: #cbd5e0;
    font-size: 0.875rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    min-width: 2rem;
    text-align: left;
    line-height: 1;
    display: flex;
    align-items: center;
}

/* Volume Slider */
.text-to-speech__function .audio-player__volume-slider {
    width: 100px;
    height: 6px;
    background: rgba(75, 85, 99, 0.5);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
    vertical-align: middle;
    touch-action: none;
}

.text-to-speech__function .audio-player__volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-top: -4px;
}

.text-to-speech__function .audio-player__volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.text-to-speech__function .audio-player__volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.text-to-speech__function .audio-player__volume-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.text-to-speech__function .audio-player__volume-slider::-webkit-slider-runnable-track {
    height: 6px;
    background: rgba(75, 85, 99, 0.5);
    border-radius: 3px;
    border: none;
}

.text-to-speech__function .audio-player__volume-slider::-moz-range-track {
    height: 6px;
    background: rgba(75, 85, 99, 0.5);
    border-radius: 3px;
    border: none;
}

.text-to-speech__function .results__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.text-to-speech__function .results__button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Results button icons - 结果按钮图标固定尺寸 */
.text-to-speech__function .results__button i {
    width: 1rem;
    height: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.text-to-speech__function .results__button--primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
}

.text-to-speech__function .results__button--primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.text-to-speech__function .results__button--secondary {
    background: #374151;
    color: #d1d5db;
}

.text-to-speech__function .results__button--secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

/* ==========================================================================
   Error Section
   错误区域
   ========================================================================== */

.text-to-speech__function .error-section {
    background: #111827;
    border-radius: 1rem;
    padding: 3rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.text-to-speech__function .error-content {
    text-align: center;
}

.text-to-speech__function .error__icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

.text-to-speech__function .error__icon i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    font-size: 3rem;
    color: #f59e0b;
    line-height: 1;
    flex-shrink: 0;
}

.text-to-speech__function .error__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.text-to-speech__function .error__message {
    color: #9ca3af;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.text-to-speech__function .error__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.text-to-speech__function .error__button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Error button icons - 错误按钮图标固定尺寸 */
.text-to-speech__function .error__button i {
    width: 1rem;
    height: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.text-to-speech__function .error__button--primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
}

.text-to-speech__function .error__button--primary:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.text-to-speech__function .error__button--secondary {
    background: #374151;
    color: #d1d5db;
}

.text-to-speech__function .error__button--secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

/* ==========================================================================
   How to Use Section - 使用步骤区域
   ========================================================================== */

/* How to Use section styling */
.text-to-speech__how-to-use {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: #000000;
}

/* How to Use content wrapper */
.text-to-speech__how-to-use .content {
    max-width: 80rem;
}

/* How to Use header styling */
.text-to-speech__how-to-use .header {
    text-align: center;
    margin-bottom: 5rem;
}

.text-to-speech__how-to-use .title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.text-to-speech__how-to-use .subtitle {
    font-size: 1.25rem;
    color: #9ca3af;
    line-height: 1.5;
}

/* Steps wrapper styling */
.text-to-speech__how-to-use .steps-wrapper {
    position: relative;
}

.text-to-speech__how-to-use .steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Individual step styling */
.text-to-speech__how-to-use .step {
    position: relative;
}

/* ==========================================================================
   Step Card Components - 步骤卡片组件
   ========================================================================== */

/* Step card base styles */
.text-to-speech__how-to-use .step__card {
    background: #000000;
    border: 1px solid #374151;
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.5s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.text-to-speech__how-to-use .step:nth-child(1) .step__card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.2);
}

.text-to-speech__how-to-use .step:nth-child(2) .step__card:hover {
    border-color: #8b5cf6;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.2);
}

.text-to-speech__how-to-use .step:nth-child(3) .step__card:hover {
    border-color: #ec4899;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 25px 50px rgba(236, 72, 153, 0.2);
}

/* Step card content */
.text-to-speech__how-to-use .step__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.text-to-speech__how-to-use .step__header {
    margin-bottom: 1rem;
}

.text-to-speech__how-to-use .step__number {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 auto 2rem auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Step 1 number - Blue to Purple gradient */
.text-to-speech__how-to-use .step:nth-child(1) .step__number {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

/* Step 2 number - Purple to Pink gradient */
.text-to-speech__how-to-use .step:nth-child(2) .step__number {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

/* Step 3 number - Pink to Red gradient */
.text-to-speech__how-to-use .step:nth-child(3) .step__number {
    background: linear-gradient(135deg, #ec4899 0%, #ef4444 100%);
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.4);
}

.text-to-speech__how-to-use .step__title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    transition: color 0.3s ease;
}

/* Step-specific title hover colors */
.text-to-speech__how-to-use .step:nth-child(1) .step__card:hover .step__title {
    color: #93c5fd;
}

.text-to-speech__how-to-use .step:nth-child(2) .step__card:hover .step__title {
    color: #c4b5fd;
}

.text-to-speech__how-to-use .step:nth-child(3) .step__card:hover .step__title {
    color: #f9a8d4;
}

.text-to-speech__how-to-use .step__description {
    color: #9ca3af;
    line-height: 1.625;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    padding: 0;
}

/* ==========================================================================
   Use Cases Section
   使用场景区域
   ========================================================================== */

/* Use Cases section styling */
.text-to-speech__use-cases {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: #000000;
    position: relative;
}

.text-to-speech__use-cases .content {
    max-width: 80rem;
}

/* Use Cases header styling */
.text-to-speech__use-cases .header {
    text-align: center;
    margin-bottom: 4rem;
}

.text-to-speech__use-cases .title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.text-to-speech__use-cases .title__highlight {
    background: linear-gradient(135deg, #60a5fa 0%, #a855f7 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-to-speech__use-cases .subtitle {
    font-size: 1.25rem;
    color: #9ca3af;
    line-height: 1.5;
}

/* Use cases grid styling */
.text-to-speech__use-cases .use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Individual use case styling */
.text-to-speech__use-cases .use-case {
    position: relative;
}

/* ==========================================================================
   Use Case Card Components - 使用场景卡片组件
   ========================================================================== */

/* Use case card base styles */
.text-to-speech__use-cases .use-case__card {
    background: linear-gradient(145deg, #000000 60%, #0f1419 100%);
    border: 1px solid #374151;
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hover effects with different colors for each feature */
.text-to-speech__use-cases .use-case:nth-child(1) .use-case__card:hover {
    border-color: #3b82f6;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

.text-to-speech__use-cases .use-case:nth-child(2) .use-case__card:hover {
    border-color: #8b5cf6;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
}

.text-to-speech__use-cases .use-case:nth-child(3) .use-case__card:hover {
    border-color: #ec4899;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(236, 72, 153, 0.3);
}

.text-to-speech__use-cases .use-case:nth-child(4) .use-case__card:hover {
    border-color: #10b981;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
}

.text-to-speech__use-cases .use-case:nth-child(5) .use-case__card:hover {
    border-color: #f59e0b;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.3);
}

.text-to-speech__use-cases .use-case:nth-child(6) .use-case__card:hover {
    border-color: #ef4444;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.3);
}

/* Feature icon styling */
.text-to-speech__use-cases .use-case__icon {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-to-speech__use-cases .use-case__icon-svg {
    width: 3rem;
    height: 3rem;
    transition: all 0.3s ease;
}

/* Different icon colors for each feature */
.text-to-speech__use-cases .use-case:nth-child(1) .use-case__icon-svg {
    color: #60a5fa;
}

.text-to-speech__use-cases .use-case:nth-child(2) .use-case__icon-svg {
    color: #a78bfa;
}

.text-to-speech__use-cases .use-case:nth-child(3) .use-case__icon-svg {
    color: #f9a8d4;
}

.text-to-speech__use-cases .use-case:nth-child(4) .use-case__icon-svg {
    color: #34d399;
}

.text-to-speech__use-cases .use-case:nth-child(5) .use-case__icon-svg {
    color: #fbbf24;
}

.text-to-speech__use-cases .use-case:nth-child(6) .use-case__icon-svg {
    color: #f87171;
}

/* Icon animation on hover */
.text-to-speech__use-cases .use-case__card:hover .use-case__icon-svg {
    transform: scale(1.1) rotate(5deg);
}

/* Feature title styling */
.text-to-speech__use-cases .use-case__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

/* Feature description styling */
.text-to-speech__use-cases .use-case__description {
    font-size: 1rem;
    color: #9ca3af;
    line-height: 1.625;
    text-align: center;
}

/* Title color changes on hover */
.text-to-speech__use-cases .use-case:nth-child(1):hover .use-case__title {
    color: #93c5fd;
}

.text-to-speech__use-cases .use-case:nth-child(2):hover .use-case__title {
    color: #c4b5fd;
}

.text-to-speech__use-cases .use-case:nth-child(3):hover .use-case__title {
    color: #f9a8d4;
}

.text-to-speech__use-cases .use-case:nth-child(4):hover .use-case__title {
    color: #6ee7b7;
}

.text-to-speech__use-cases .use-case:nth-child(5):hover .use-case__title {
    color: #fcd34d;
}

.text-to-speech__use-cases .use-case:nth-child(6):hover .use-case__title {
    color: #fca5a5;
}

/* ==========================================================================
   Testimonials Section
   用户评价区域
   ========================================================================== */

/* Testimonials section styling */
.text-to-speech__testimonials {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: #000000;
    position: relative;
    overflow: hidden;
}

.text-to-speech__testimonials::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.text-to-speech__testimonials .content {
    position: relative;
    z-index: 1;
    max-width: 80rem;
}

/* Testimonials header styling */
.text-to-speech__testimonials .header {
    text-align: center;
    margin-bottom: 4rem;
}

.text-to-speech__testimonials .header__badge {
    display: inline-block;
    margin-bottom: 1rem;
}

.text-to-speech__testimonials .badge-text {
    background: linear-gradient(to right, #3b82f6, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.text-to-speech__testimonials .title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.text-to-speech__testimonials .title__highlight {
    background: linear-gradient(135deg, #60a5fa 0%, #a855f7 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-to-speech__testimonials .subtitle {
    font-size: 1.25rem;
    color: #9ca3af;
    line-height: 1.5;
}

/* Testimonials grid styling */
.text-to-speech__testimonials .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Individual testimonial styling */
.text-to-speech__testimonials .testimonial {
    position: relative;
}

/* ==========================================================================
   Testimonial Card Components - 评价卡片组件
   ========================================================================== */

/* Testimonial card base styles */
.text-to-speech__testimonials .testimonial__card {
    background: linear-gradient(145deg, #000000 60%, #0f1419 100%);
    border: 1px solid #374151;
    border-radius: 1.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Hover effects with different colors */
.text-to-speech__testimonials .testimonial:nth-child(1) .testimonial__card:hover {
    border-color: #3b82f6;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

.text-to-speech__testimonials .testimonial:nth-child(2) .testimonial__card:hover {
    border-color: #8b5cf6;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
}

.text-to-speech__testimonials .testimonial:nth-child(3) .testimonial__card:hover {
    border-color: #10b981;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
}

/* Testimonial content */
.text-to-speech__testimonials .testimonial__content {
    padding: 2rem;
    flex: 1;
}

.text-to-speech__testimonials .testimonial__quote {
    margin: 0;
}

.text-to-speech__testimonials .testimonial__quote p {
    font-size: 1rem;
    font-style: italic;
    color: #d1d5db;
    line-height: 1.75;
    margin: 0;
}

/* Testimonial footer */
.text-to-speech__testimonials .testimonial__footer {
    padding: 1.5rem 2rem;
    background: rgba(17, 24, 39, 0.5);
    border-top: 1px solid rgba(55, 65, 81, 0.5);
}

.text-to-speech__testimonials .testimonial__author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.text-to-speech__testimonials .testimonial__avatar {
    flex-shrink: 0;
}

.text-to-speech__testimonials .testimonial__avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(59, 130, 246, 0.2);
    object-fit: cover;
}

/* Different border colors for avatars */
.text-to-speech__testimonials .testimonial:nth-child(1) .testimonial__avatar img {
    border-color: rgba(59, 130, 246, 0.3);
}

.text-to-speech__testimonials .testimonial:nth-child(2) .testimonial__avatar img {
    border-color: rgba(139, 92, 246, 0.3);
}

.text-to-speech__testimonials .testimonial:nth-child(3) .testimonial__avatar img {
    border-color: rgba(16, 185, 129, 0.3);
}

.text-to-speech__testimonials .testimonial__author-info {
    flex: 1;
}

.text-to-speech__testimonials .testimonial__author-name {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.25rem 0;
}

.text-to-speech__testimonials .testimonial__author-title {
    font-size: 0.875rem;
    color: #9ca3af;
    margin: 0;
}

/* Specific title colors on hover */
.text-to-speech__testimonials .testimonial:nth-child(1):hover .testimonial__author-title {
    color: #60a5fa;
}

.text-to-speech__testimonials .testimonial:nth-child(2):hover .testimonial__author-title {
    color: #a78bfa;
}

.text-to-speech__testimonials .testimonial:nth-child(3):hover .testimonial__author-title {
    color: #34d399;
}

/* ==========================================================================
   FAQ Components - FAQ组件
   ========================================================================== */

/* FAQ Section */
.text-to-speech__faq {
    background-color: #000000;
    padding-top: 4rem;
    padding-bottom: 4rem;
    position: relative;
}

.text-to-speech__faq::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.text-to-speech__faq .content {
    position: relative;
    z-index: 1;
    max-width: 76rem;
    margin: 0 auto;
    padding: 0 2rem;
}

/* FAQ Header */
.text-to-speech__faq .header {
    text-align: center;
    margin-bottom: 3rem;
}

.text-to-speech__faq .title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.text-to-speech__faq .title__highlight {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-to-speech__faq .subtitle {
    font-size: 1.25rem;
    color: #9ca3af;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* FAQ Wrapper */
.text-to-speech__faq .faq-wrapper {
    max-width: 56rem;
    margin: 0 auto;
}

.text-to-speech__faq .faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* FAQ Item */
.text-to-speech__faq .faq {
    background: linear-gradient(145deg, #000000 60%, #111827 100%);
    border: 1px solid #374151;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.text-to-speech__faq .faq:hover {
    border-color: #4b5563;
    background: linear-gradient(145deg, #111827, #1f2937);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ Button */
.text-to-speech__faq .faq__button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.text-to-speech__faq .faq__button:focus {
    outline: none;
}

.text-to-speech__faq .faq__button:hover .faq__question {
    color: #60a5fa;
}

/* FAQ Question */
.text-to-speech__faq .faq__question {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    flex: 1;
    margin-right: 1rem;
    text-align: left;
    transition: color 0.3s ease;
}

/* FAQ Icon */
.text-to-speech__faq .faq__icon {
    width: 1.5rem;
    height: 1.5rem;
    min-width: 1.5rem;
    min-height: 1.5rem;
    color: #9ca3af;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-to-speech__faq .faq__icon--rotated {
    transform: rotate(180deg);
    color: #60a5fa;
}

/* FAQ Answer */
.text-to-speech__faq .faq__answer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #374151;
    transition: all 0.3s ease;
}

.text-to-speech__faq .faq__text {
    color: #d1d5db;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* FAQ Hover Effects */
.text-to-speech__faq .faq:hover .faq__question {
    color: #e5e7eb;
}

/* ==========================================================================
   Responsive Styles
   响应式样式
   ========================================================================== */

@media (max-width: 768px) {
    /* Hero Section */
    .text-to-speech__hero {
        padding: 6rem 0 1rem;
    }
    
    .text-to-speech__hero .title {
        font-size: 2rem;
    }
    
    .text-to-speech__hero .subtitle {
        font-size: 1rem;
    }
    
    /* Function Section */
    .text-to-speech__function .input-wrapper {
        grid-template-columns: 1fr;
    }
    
    .text-to-speech__function .voice-cards {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    /* Results Section Mobile */
    .text-to-speech__function .results__content-wrapper {
        gap: 1rem;
    }
    
    .text-to-speech__function .results__text-content {
        max-height: 30rem;
        font-size: 0.875rem;
        padding: 0.75rem;
    }
    
    .text-to-speech__function .audio-player-custom {
        gap: 1rem;
    }
    
    .text-to-speech__function .audio-player__progress-wrapper {
        gap: 0.75rem;
    }
    
    .text-to-speech__function .audio-player__time-display {
        font-size: 0.75rem;
        min-width: 40px;
    }
    
    .text-to-speech__function .audio-player__controls {
        gap: 0.5rem;
    }
    
    .text-to-speech__function .audio-player__btn {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }
    
    /* Mobile audio player button icons - 移动端音频播放器按钮图标 */
    .text-to-speech__function .audio-player__btn i {
        width: 0.875rem;
        height: 0.875rem;
    }
    
    .text-to-speech__function .audio-player__btn--play {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }
    
    /* Mobile play/pause button icon - 移动端播放/暂停按钮图标 */
    .text-to-speech__function .audio-player__btn--play i {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .text-to-speech__function .audio-player__btn--speed {
        font-size: 0.7rem;
    }
    
    /* Volume control adjustments for mobile */
    .text-to-speech__function .audio-player__volume-control {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        bottom: calc(100% + 0.5rem);
        padding: 0.375rem 0.625rem;
        gap: 0.5rem;
    }
    
    .text-to-speech__function .audio-player__volume-slider {
        width: 60px;
    }
    
    .text-to-speech__function .audio-player__volume-value {
        font-size: 0.7rem;
        min-width: 1.25rem;
    }
    
    /* Progress bar touch improvements for mobile */
    .text-to-speech__function .audio-player__progress-container {
        height: 5px;
        touch-action: none;
        border-radius: 10px;
    }
    
    .text-to-speech__function .audio-player__progress-buffered {
        border-radius: 10px;
    }
    
    .text-to-speech__function .audio-player__progress-bar {
        border-radius: 10px;
    }
    
    .text-to-speech__function .audio-player__progress-handle {
        width: 18px;
        height: 18px;
        right: -9px;
        border: 2px solid #3b82f6;
        box-shadow: 0 2px 4px rgba(59, 130, 246, 0.4);
    }
    
    /* Increase touch area without affecting visual */
    .text-to-speech__function .audio-player__progress-container::before {
        content: '';
        position: absolute;
        top: -10px;
        left: 0;
        right: 0;
        bottom: -10px;
        cursor: pointer;
    }
    
    .text-to-speech__function .audio-player__volume-slider::-webkit-slider-thumb {
        width: 14px;
        height: 14px;
    }
    
    .text-to-speech__function .audio-player__volume-slider::-moz-range-thumb {
        width: 14px;
        height: 14px;
    }
    
    .text-to-speech__function .results__actions {
        flex-direction: column;
    }
    
    .text-to-speech__function .results__button {
        width: 100%;
        justify-content: center;
    }
    
    /* Error Section Mobile */
    .text-to-speech__function .error-section {
        padding: 1.5rem 1rem;
        border-radius: 0.75rem;
    }
    
    .text-to-speech__function .error-content {
        max-width: 100%;
    }
    
    .text-to-speech__function .error__icon {
        width: 2.5rem;
        height: 2.5rem;
        margin-bottom: 0.75rem;
    }
    
    .text-to-speech__function .error__icon i {
        font-size: 2.5rem;
        width: 1em;
        height: 1em;
    }
    
    .text-to-speech__function .error__title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .text-to-speech__function .error__actions {
        flex-direction: column;
    }
    
    .text-to-speech__function .error__button {
        width: 100%;
        justify-content: center;
    }
    
    /* How to Use Section */
    .text-to-speech__how-to-use {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .text-to-speech__how-to-use .header {
        margin-bottom: 1rem;
        padding: 0 1rem;
    }
    
    .text-to-speech__how-to-use .title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .text-to-speech__how-to-use .subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    /* Steps Layout - 步骤垂直布局 */
    .text-to-speech__how-to-use .steps {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0rem;
    }
    
    .text-to-speech__how-to-use .step__card {
        padding: 1.5rem;
    }
    
    .text-to-speech__how-to-use .step__header {
        margin-bottom: 0.5rem;
    }
    
    /* Remove step card hover effects on mobile */
    .text-to-speech__how-to-use .step:nth-child(1) .step__card:hover,
    .text-to-speech__how-to-use .step:nth-child(2) .step__card:hover,
    .text-to-speech__how-to-use .step:nth-child(3) .step__card:hover {
        border-color: #374151;
        transform: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }
    
    /* Remove step title hover effects on mobile */
    .text-to-speech__how-to-use .step:nth-child(1) .step__card:hover .step__title,
    .text-to-speech__how-to-use .step:nth-child(2) .step__card:hover .step__title,
    .text-to-speech__how-to-use .step:nth-child(3) .step__card:hover .step__title {
        color: #ffffff;
    }
    
    .text-to-speech__how-to-use .step__number {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .text-to-speech__how-to-use .step__title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .text-to-speech__how-to-use .step__description {
        font-size: 0.875rem;
        line-height: 1.5;
        padding: 0 0.5rem;
    }
    
    /* Use Cases Section Mobile - 使用场景移动端 */
    .text-to-speech__use-cases {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .text-to-speech__use-cases .header {
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .text-to-speech__use-cases .title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .text-to-speech__use-cases .subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    /* Use Cases Grid Layout - 使用场景网格垂直布局 */
    .text-to-speech__use-cases .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .text-to-speech__use-cases .use-case__card {
        padding: 1.5rem;
        border-radius: 1rem;
    }
    
    .text-to-speech__use-cases .use-case__icon {
        margin-bottom: 1rem;
    }
    
    .text-to-speech__use-cases .use-case__icon-svg {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .text-to-speech__use-cases .use-case__title {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
    
    .text-to-speech__use-cases .use-case__description {
        font-size: 0.9375rem;
        line-height: 1.5;
    }
    
    /* Remove hover effects on mobile for use cases */
    .text-to-speech__use-cases .use-case:nth-child(1) .use-case__card:hover,
    .text-to-speech__use-cases .use-case:nth-child(2) .use-case__card:hover,
    .text-to-speech__use-cases .use-case:nth-child(3) .use-case__card:hover,
    .text-to-speech__use-cases .use-case:nth-child(4) .use-case__card:hover,
    .text-to-speech__use-cases .use-case:nth-child(5) .use-case__card:hover,
    .text-to-speech__use-cases .use-case:nth-child(6) .use-case__card:hover {
        border-color: #374151;
        transform: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }
    
    .text-to-speech__use-cases .use-case__card:hover .use-case__icon-svg {
        transform: none;
    }
    
    .text-to-speech__use-cases .use-case:nth-child(1):hover .use-case__title,
    .text-to-speech__use-cases .use-case:nth-child(2):hover .use-case__title,
    .text-to-speech__use-cases .use-case:nth-child(3):hover .use-case__title,
    .text-to-speech__use-cases .use-case:nth-child(4):hover .use-case__title,
    .text-to-speech__use-cases .use-case:nth-child(5):hover .use-case__title,
    .text-to-speech__use-cases .use-case:nth-child(6):hover .use-case__title {
        color: #ffffff;
    }
    
    /* Testimonials Section Mobile - 用户评价移动端 */
    .text-to-speech__testimonials {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .text-to-speech__testimonials .header {
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .text-to-speech__testimonials .title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .text-to-speech__testimonials .subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    /* Testimonials Grid Layout - 评价网格垂直布局 */
    .text-to-speech__testimonials .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .text-to-speech__testimonials .testimonial__card {
        border-radius: 1rem;
    }
    
    .text-to-speech__testimonials .testimonial__content {
        padding: 1.5rem;
    }
    
    .text-to-speech__testimonials .testimonial__quote p {
        font-size: 0.9375rem;
        line-height: 1.6;
    }
    
    .text-to-speech__testimonials .testimonial__footer {
        padding: 1rem 1.5rem;
    }
    
    .text-to-speech__testimonials .testimonial__avatar img {
        width: 40px;
        height: 40px;
    }
    
    .text-to-speech__testimonials .testimonial__author-name {
        font-size: 0.9375rem;
    }
    
    .text-to-speech__testimonials .testimonial__author-title {
        font-size: 0.8125rem;
    }
    
    /* Remove testimonial hover effects on mobile */
    .text-to-speech__testimonials .testimonial:nth-child(1) .testimonial__card:hover,
    .text-to-speech__testimonials .testimonial:nth-child(2) .testimonial__card:hover,
    .text-to-speech__testimonials .testimonial:nth-child(3) .testimonial__card:hover {
        border-color: #374151;
        transform: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }
    
    .text-to-speech__testimonials .testimonial:nth-child(1):hover .testimonial__author-title,
    .text-to-speech__testimonials .testimonial:nth-child(2):hover .testimonial__author-title,
    .text-to-speech__testimonials .testimonial:nth-child(3):hover .testimonial__author-title {
        color: #9ca3af;
    }
    
    /* FAQ Section Mobile */
    .text-to-speech__faq {
        padding-top: 0rem;
        padding-bottom: 1rem;
    }
    
    .text-to-speech__faq .content {
        padding: 0rem;
    }
    
    .text-to-speech__faq .header {
        margin-bottom: 1rem;
    }
    
    .text-to-speech__faq .title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .text-to-speech__faq .subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .text-to-speech__faq .faq-wrapper {
        max-width: 100%;
    }
    
    .text-to-speech__faq .faq {
        padding: 1.25rem;
        margin: 0rem;
    }
    
    .text-to-speech__faq .faq:hover {
        border-color: #374151;
        background: linear-gradient(145deg, #000000 60%, #111827 100%);
        transform: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    .text-to-speech__faq .faq__button:hover .faq__question {
        color: #ffffff;
    }
    
    .text-to-speech__faq .faq:hover .faq__question {
        color: #ffffff;
    }
    
    .text-to-speech__faq .faq__question {
        font-size: 1rem;
        margin-right: 0.75rem;
    }
    
    .text-to-speech__faq .faq__icon {
        width: 1.25rem;
        height: 1.25rem;
        min-width: 1.25rem;
        min-height: 1.25rem;
    }
    
    .text-to-speech__faq .faq__text {
        font-size: 0.875rem;
        line-height: 1.5;
    }
}