/* 全局样式 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --dark-color: #2d3436;
    --light-color: #f5f6fa;
    --accent-color: #fd79a8;
    --animation-tag: #00cec9;
    --game-tag: #fdcb6e;
    --commercial-tag: #e17055;
    --documentary-tag: #74b9ff;
    --movie-tag: #ff9ff3;          /* 粉紫色 - 电影 */
    --audiobook-tag: #786fa6;      /* 深紫色 - 有声书 */
    --voiceComic-tag: #3dc1d3;     /* 青绿色 - 有声漫 */
    --radioDrama-tag: #f19066;     /* 橙红色 - 广播剧 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f9f9f9;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--secondary-color);
}

/* 头部样式 */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

header h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

header .subtitle {
    font-size: 1rem;
    font-weight: normal;
    color: var(--secondary-color);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* 英雄区域样式 */
#hero {
    background: linear-gradient(rgba(108, 92, 231, 0.8), rgba(162, 155, 254, 0.8)), url('') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

/* 关于我区域 */
#about {
    padding: 80px 0;
    background-color: white;
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-image {
    flex: 1;
}

.about-text {
    flex: 2;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.voice-sample {
    margin-top: 30px;
    padding: 20px;
    background-color: #f5f6fa;
    border-radius: 8px;
}

.voice-sample h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

audio {
    width: 100%;
}

/* 作品集区域 */
#portfolio {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 80px;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--secondary-color);
}

.work-item {
    display: flex;
    margin-bottom: 60px;
    position: relative;
}

.work-date {
    width: 80px;
    text-align: center;
    padding-right: 30px;
}

.work-date span {
    display: inline-block;
    padding: 8px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-weight: bold;
}

.work-content {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-left: 20px;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), 
                box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                background 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform, box-shadow;
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 3px solid transparent;
    transition: border-color 0.3s ease;
}

.work-content::before {
    content: '';
    position: absolute;
    left: 80px;
    top: 10px;
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
}

.work-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    margin-bottom: 15px;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.work-tag.animation {
    background-color: var(--animation-tag);
}

.work-tag.game {
    background-color: var(--game-tag);
}

.work-tag.commercial {
    background-color: var(--commercial-tag);
}

.work-tag.documentary {
    background-color: var(--documentary-tag);
}

.work-tag.movie {
    background-color: var(--movie-tag);
}

.work-tag.audiobook {
    background-color: var(--audiobook-tag);
}

.work-tag.voiceComic {
    background-color: var(--voiceComic-tag);
}

.work-tag.radioDrama {
    background-color: var(--radioDrama-tag);
}

.work-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), 
                color 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.work-details {
    display: flex;
    gap: 20px;
}

.work-image {
    flex: 1;
}

.work-image img {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), 
                filter 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.work-description {
    flex: 1;
}

.work-description p {
    margin-bottom: 10px;
}

/* 联系区域 */
#contact {
    padding: 80px 0;
    background-color: white;
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info, .contact-form {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.form-group {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0071e3;
    box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.2);
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 500;
}

.btn:hover {
    background-color: var(--secondary-color);
}

/* 页脚样式 */
footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 30px 0;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .about-content, 
    .work-details,
    .contact-content {
        flex-direction: column;
    }
    
    .work-item {
        margin-left: 20px;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .work-date {
        width: 60px;
    }
    
    .work-content::before {
        left: 0;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .work-date span {
        padding: 5px 8px;
        font-size: 0.9rem;
    }
    
    .work-content {
        padding: 15px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
}

/* 年份导航样式 */
.year-navigation {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.year-btn {
    background-color: var(--light-color);
    color: var(--dark-color);
    border: 2px solid var(--secondary-color);
    padding: 10px 20px;
    margin: 0 10px 10px 0;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.year-btn:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.year-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 作品项目过渡动画 */
.work-item {
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.work-item.hidden {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    pointer-events: none;
    position: absolute;
    left: -9999px;
}

.work-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 二阶跳动特效 */
@keyframes secondJump {
    0% { transform: translateY(0); }
    20% { transform: translateY(-15px); }
    40% { transform: translateY(0); }
    60% { transform: translateY(-7px); }
    80% { transform: translateY(0); }
    100% { transform: translateY(0); }
}

.second-jump {
    animation: secondJump 1s ease;
}

/* Bilibili图标 */
.fa-bilibili:before {
    content: "\e901";
    font-family: 'Font Awesome 6 Brands';
}

/* 音波背景效果 */
.wave-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* 魔法粒子效果 */
.particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none;
}

.work-content:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.work-image img {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), 
                filter 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.work-content:hover .work-image img {
    transform: translateZ(20px);
    filter: brightness(1.05);
}

.work-content:hover .work-tag {
    transform: translateZ(30px);
}

.work-content:hover h3 {
    transform: translateZ(25px);
    color: var(--primary-color);
}

/* 播放按钮样式增强 */
.play-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, #0066cc, #0088ff);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 
        0 6px 20px rgba(0, 102, 204, 0.3),
        inset 0 2px 6px rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 0 0 10px 0;
    font-size: 20px;
    animation: pulse 2s infinite;
}

.play-btn i {
    font-size: 24px;
    color: white;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
}

/* 改进的播放状态呼吸光效 */
@keyframes playPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 170, 102, 0.7);
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(0, 170, 102, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 170, 102, 0);
        transform: scale(1);
    }
}

.play-btn.playing {
    animation: none;
    background: #0062c2;
}

.play-btn.playing i {
    transform: scale(0.9);
}

/* 音频可视化器样式优化 */
.audio-visualizer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    border-radius: 16px;
    backdrop-filter: blur(2px);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.05);
    background: linear-gradient(to bottom, rgba(240, 249, 255, 0.7), rgba(220, 234, 255, 0.5));
    animation: backgroundPulse 15s infinite alternate;
    mix-blend-mode: hard-light;
}

@keyframes backgroundPulse {
    0% {
        background-color: rgba(240, 249, 255, 0.4);
    }
    50% {
        background-color: rgba(230, 244, 255, 0.5);
    }
    100% {
        background-color: rgba(235, 245, 250, 0.4);
    }
}

/* 播放器容器样式优化 */
.shared-player {
    margin-bottom: 1rem;
    border-radius: 16px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.08),
        inset 0 0 1px rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.shared-player:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        inset 0 0 2px rgba(255, 255, 255, 0.8);
}

.player-wrapper {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
}

.player-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

/* 播放控制区域样式 */
.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    width: 70px;
    padding-top: 10px;
}

.play-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #0071e3;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 18px;
    animation: pulse 2s infinite;
}

.play-btn:hover {
    background: #0077ed;
    transform: scale(1.1);
}

.time-display {
    font-size: 12px;
    color: #636366;
    font-weight: 400;
}

/* 输入区域重新布局 */
.voice-input-area {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 25px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* 表单组样式优化 */
.form-group {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    position: relative;
}

/* 美化输入框样式 */
.voice-textarea {
    width: 100%;
    min-height: 180px;
    flex-grow: 1;
    padding: 15px;
    font-size: 2rem;
    line-height: 1.6;
    border: 1px solid #d1d1d6;
    border-radius: 12px;
    resize: vertical;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    margin-bottom: 55px;
}

.voice-textarea:focus {
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.3);
    outline: none;
}

/* 输入框标签优化 */
.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 16px;
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
    padding: 0 5px;
}

.voice-textarea:focus + label,
.voice-textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 14px;
    color: #0066cc;
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 字符计数器样式优化 */
.character-counter {
    position: absolute;
    bottom: 65px;
    right: 15px;
    font-size: 12px;
    color: #636366;
    background-color: rgba(242, 242, 247, 0.8);
    padding: 3px 8px;
    border-radius: 10px;
    z-index: 1;
}

/* 语音选项区域优化 - 移至顶部 */
.voice-options {
    width: 100%;
    max-width: 800px;
    margin-top: 10px;
    margin-left: 20em;
    padding: 0;
    order: -1; /* 确保它在顶部 */
}

.option-label {
    font-size: 15px;
    color: #555;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

/* 语音选择器按钮美化 */
.voice-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.voice-option {
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid rgba(200, 220, 240, 0.5);
    background: rgba(255, 255, 255, 0.7);
    color: #666;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.voice-option:hover {
    background: rgba(230, 240, 255, 0.8);
    border-color: rgba(0, 102, 204, 0.3);
}

.voice-option.active {
    background: linear-gradient(to bottom, rgba(0, 102, 204, 0.1), rgba(0, 120, 255, 0.15));
    border-color: rgba(0, 102, 204, 0.5);
    color: #0066cc;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 102, 204, 0.1);
}

/* 调整按钮容器位置和布局 */
.button-container {
    position: absolute;
    bottom: 10px;
    right: 10px;
    left: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 10px;
    z-index: 1;
}

/* 让所有按钮尺寸一致 */
.action-btn, .ai-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 15px;
    min-width: 90px;
    height: 36px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.sample-btn {
    background: #e8f0fe;
    color: #0066cc;
}

/* 下载按钮样式 */
.download-btn {
    background: #f0f0f0;
    color: #444;
}

/* 生成按钮样式 */
.ai-submit-btn {
    background: linear-gradient(to bottom, #0077e6, #0066cc);
    color: white;
}

/* 按钮悬停效果统一 */
.action-btn:hover, .ai-submit-btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* 禁用状态 */
.ai-submit-btn:disabled {
    background: linear-gradient(135deg, #a0a0a0, #c0c0c0);
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

/* 按钮容器位置调整 */
.button-container {
    position: absolute;
    bottom: 10px;
    right: 10px;
    left: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 10px;
    z-index: 1;
}

/* 为作品类型筛选按钮添加样式 - 如果您实现了按类型筛选功能 */
.type-btn.audiobook {
    color: var(--audiobook-tag);
    border-color: var(--audiobook-tag);
}

.type-btn.audiobook:hover,
.type-btn.audiobook.active {
    background-color: var(--audiobook-tag);
    color: white;
}

.type-btn.voiceComic {
    color: var(--voiceComic-tag);
    border-color: var(--voiceComic-tag);
}

.type-btn.voiceComic:hover,
.type-btn.voiceComic.active {
    background-color: var(--voiceComic-tag);
    color: white;
}

.type-btn.radioDrama {
    color: var(--radioDrama-tag);
    border-color: var(--radioDrama-tag);
}

.type-btn.radioDrama:hover,
.type-btn.radioDrama.active {
    background-color: var(--radioDrama-tag);
    color: white;
}

.type-btn.movie {
    color: var(--movie-tag);
    border-color: var(--movie-tag);
}

.type-btn.movie:hover,
.type-btn.movie.active {
    background-color: var(--movie-tag);
    color: white;
}

/* 增强作品卡片样式，为不同类型添加微妙的边框颜色 */
.work-item[data-type="audiobook"] .work-content {
    border-top-color: var(--audiobook-tag);
}

.work-item[data-type="voiceComic"] .work-content {
    border-top-color: var(--voiceComic-tag);
}

.work-item[data-type="radioDrama"] .work-content {
    border-top-color: var(--radioDrama-tag);
}

.work-item[data-type="movie"] .work-content {
    border-top-color: var(--movie-tag);
}

.work-item[data-type="game"] .work-content {
    border-top-color: var(--game-tag);
}

/* 为特殊标记添加样式 - 用于热门作品(🔥)和官方授权作品(👑) */
.special-mark {
    display: inline-block;
    margin-left: 5px;
    font-size: 0.9em;
    vertical-align: top;
}

.official-mark {
    color: #f1c40f; /* 金色 */
}

.popular-mark {
    color: #e74c3c; /* 红色 */
}

/* 类型导航样式 */
.type-navigation {
    display: flex;
    justify-content: center;
    margin: 0 0 30px 0;
    flex-wrap: wrap;
}

.type-btn {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    padding: 8px 15px;
    margin: 0 8px 8px 0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

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

.type-btn.active {
    background-color: var(--secondary-color);
    color: white;
}

.type-btn[data-type="all"] {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.type-btn[data-type="all"]:hover,
.type-btn[data-type="all"].active {
    background-color: var(--primary-color);
    color: white;
}

/* AI试音板块样式 */
.ai-voice-section {
    background-color: var(--apple-light-gray);
}


.section-subtitle {
    text-align: center;
    font-size: 18px;
    margin-top: -40px;
    margin-bottom: 30px;
    color: var(--apple-gray);
}

.voice-textarea {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    resize: none;
    background-color: white;
}

.voice-textarea:focus {
    border-color: var(--apple-primary);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}

.character-counter {
    position: absolute;
    right: 15px;
    bottom: 15px;
    font-size: 14px;
    color: var(--apple-gray);
}

.voice-options {
    margin: 20px 0;
}

.option-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--apple-dark);
}

.voice-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.voice-option {
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.voice-option.active {
    background-color: var(--apple-primary);
    color: white;
    border-color: var(--apple-primary);
    box-shadow: 0 2px 5px rgba(0, 122, 255, 0.3);
}

.ai-submit-btn {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background: linear-gradient(135deg, var(--apple-primary), var(--apple-secondary));
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 122, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.ai-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.3);
}

.ai-submit-btn:disabled {
    background: linear-gradient(135deg, #a0a0a0, #c0c0c0);
    cursor: not-allowed;
    opacity: 0.7;
}

.ai-submit-btn.loading .btn-text {
    visibility: hidden;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    display: none;
}

.ai-submit-btn.loading .btn-loader {
    display: block;
}

.limit-info {
    margin-top: 10px;
    padding: 0 10px;
    font-size: 13px;
    color: #636366;
}

.cooldown-timer {
    color: var(--apple-accent);
    font-weight: 500;
}

.voice-result-area {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 300px;
}

.result-status {
    text-align: center;
    color: var(--apple-gray);
    font-size: 16px;
}

.result-status.error {
    color: var(--apple-accent);
}

.result-status.success {
    color: #34c759;
}

.voice-player-container {
    margin-top: 30px;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.voice-player-container.hidden {
    opacity: 0;
    pointer-events: none;
}

.result-player {
    margin-bottom: 20px;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--apple-light-gray);
    color: var(--apple-primary);
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.download-btn:hover {
    background-color: var(--apple-primary);
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .ai-voice-container {
        grid-template-columns: 1fr;
    }
    
    .voice-result-area {
        min-height: 200px;
    }
}

/* Tab样式 */
.tabs-container {
    margin-top: 2rem;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 1rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #000;
}

.tab-btn.active {
    color: #0066cc;
    border-bottom: 2px solid #0066cc;
    font-weight: 500;
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.tab-pane.active {
    display: block;
    opacity: 1;
}

/* 共享播放器样式 */
.shared-player-container {
    margin-top: 40px;
    margin-bottom: 40px;
}

.apple-player.shared-player {
    margin: 0 auto;
}

.player-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
}

.player-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    background: #f5f5f7;
    color: #333;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: #e5e5e7;
}

.sample-btn {
    background: #e8f0fe;
    color: #0066cc;
}

.sample-btn:hover {
    background: #d0e0fc;
}

.download-btn {
    background: #f0f0f0;
}

.download-btn:hover {
    background: #e0e0e0;
}

/* 优化结果状态显示 */
.result-status-container {
    margin-top: 10px;
    padding: 0 10px;
}

.voice-input-area {
    width: 100%;
    max-width: none;
} 
.player-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.audio-visualizer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* 这确保Canvas不会捕获点击事件 */
}

.player-content {
    position: relative;
    z-index: 2;
    width: 80%;
    height: 80%;
}

.player-controls {
    position: relative;
    z-index: 3; /* 更高的z-index确保按钮可点击 */
}

.play-btn {
    position: relative;
    z-index: 4; /* 给按钮设置最高的z-index */
    cursor: pointer;
}

/* 确保其他元素也有正确的z-index */
.voice-input-area, .voice-options, 
.ai-submit-btn, .player-actions, .limit-info, .result-status-container {
    position: relative;
    z-index: 3;
}

/* 按钮外部容器 */
.buttons-outer-container {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: flex-end;
    width: 100%;
}

/* 生成按钮加载动画 */
.btn-loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s infinite linear;
    margin-left: 5px;
}

.ai-submit-btn.loading .btn-text {
    display: none;
}

.ai-submit-btn.loading .btn-loader {
    display: block;
}

/* 生成等待提示 */
.generating-timer {
    margin-top: 10px;
    padding: 0 10px;
    text-align: right;
    font-size: 13px;
    color: #8e8e93;
}

.generating .generating-timer {
    display: block;
}

/* 为播放按钮添加呼吸效果 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.7);
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 113, 227, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 113, 227, 0);
        transform: scale(1);
    }
}

/* 优化音频输入区布局 */
.voice-input-area {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 15px;
}

/* 修改播放控件样式 - 垂直布局并靠左 */
.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 20px; /* 与文本框顶部对齐 */
}

/* 播放按钮样式优化 */
.play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #0071e3;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-size: 18px;
    animation: pulse 2s infinite;
}

.play-btn:hover {
    background: #0077ed;
    transform: scale(1.1);
}

/* 播放按钮激活状态停止动画 */
.play-btn.playing {
    animation: none;
    background: #0062c2;
}

/* 时间显示样式优化 */
.time-display {
    font-size: 13px;
    color: #666;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

/* 确保表单组撑满剩余空间 */
.form-group {
    flex: 1;
}

.character-counter{
    position: absolute;
    bottom: 70px;
    right: 15px;
    font-size: 12px;
    color: #636366;
    background-color: rgba(242, 242, 247, 0.8);
    
}