/* 全局样式和重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-bg: #ffffff;
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.08);
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a68;
    --text-tertiary: #8a8aa0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 背景动画 */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #ffffff;
}

.wave {
    display: none;
}

.wave1 {
    width: 800px;
    height: 800px;
    top: -300px;
    left: -300px;
    animation-duration: 25s;
    animation-delay: 0s;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.5) 0%, rgba(118, 75, 162, 0.3) 50%, transparent 70%);
}

.wave2 {
    width: 700px;
    height: 700px;
    top: 40%;
    right: -250px;
    background: radial-gradient(circle, rgba(245, 87, 108, 0.45) 0%, rgba(118, 75, 162, 0.25) 50%, transparent 70%);
    animation-duration: 30s;
    animation-delay: -8s;
}

.wave3 {
    width: 900px;
    height: 900px;
    bottom: -350px;
    left: 25%;
    background: radial-gradient(circle, rgba(74, 172, 254, 0.4) 0%, rgba(0, 242, 254, 0.25) 50%, transparent 70%);
    animation-duration: 35s;
    animation-delay: -15s;
}

/* 添加网格效果 */
.background-animation::before {
    display: none;
}

/* 添加粒子效果 */
.background-animation::after {
    display: none;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(100px, 100px) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: translate(200px, -50px) scale(0.9);
        opacity: 0.5;
    }
    75% {
        transform: translate(-50px, 150px) scale(1.05);
        opacity: 0.7;
    }
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

@keyframes stars {
    0%, 100% {
        background-position: 0% 0%, 10% 20%, 20% 40%, 30% 60%, 40% 80%, 50% 100%, 60% 30%;
        opacity: 0.8;
    }
    50% {
        background-position: 100% 100%, 90% 80%, 80% 60%, 70% 40%, 60% 20%, 50% 0%, 40% 70%;
        opacity: 1;
    }
}

/* 几何图形装饰 */
.geo-shape {
    display: none;
}

.geo-circle-1 {
    width: 150px;
    height: 150px;
    border: 2px solid rgba(102, 126, 234, 0.5);
    border-radius: 50%;
    top: 15%;
    right: 10%;
    animation: rotate 30s linear infinite, pulse 4s ease-in-out infinite;
}

.geo-circle-2 {
    width: 100px;
    height: 100px;
    border: 2px solid rgba(118, 75, 162, 0.5);
    border-radius: 50%;
    bottom: 20%;
    left: 15%;
    animation: rotate 25s linear infinite reverse, pulse 5s ease-in-out infinite;
}

.geo-circle-3 {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(74, 172, 254, 0.5);
    border-radius: 50%;
    top: 60%;
    right: 25%;
    animation: rotate 35s linear infinite, pulse 3s ease-in-out infinite;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(245, 87, 108, 0.5);
    top: 40%;
    left: 8%;
    transform: rotate(45deg);
    animation: float-slow 40s ease-in-out infinite, rotate 50s linear infinite;
}

.geo-square-2 {
    width: 90px;
    height: 90px;
    border: 2px solid rgba(102, 126, 234, 0.5);
    bottom: 30%;
    right: 15%;
    transform: rotate(25deg);
    animation: float-slow 35s ease-in-out infinite, rotate 45s linear infinite reverse;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(118, 75, 162, 0.3);
    top: 25%;
    left: 45%;
    animation: float-slow 30s ease-in-out infinite, rotate 40s linear infinite;
}

/* 光晕效果 */
.glow {
    display: none;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.6) 0%, transparent 70%);
    top: 5%;
    left: 5%;
    animation: glow-pulse 8s ease-in-out infinite, float-glow 20s ease-in-out infinite;
}

.glow-2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(245, 87, 108, 0.6) 0%, transparent 70%);
    bottom: 10%;
    right: 5%;
    animation: glow-pulse 10s ease-in-out infinite, float-glow 25s ease-in-out infinite reverse;
    animation-delay: -3s;
}

.glow-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(74, 172, 254, 0.6) 0%, transparent 70%);
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: glow-pulse 12s ease-in-out infinite, rotate 60s linear infinite;
    animation-delay: -6s;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes float-slow {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg);
    }
    50% {
        transform: translate(0, -60px) rotate(180deg);
    }
    75% {
        transform: translate(-30px, -30px) rotate(270deg);
    }
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.2);
    }
}

@keyframes float-glow {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(50px, 50px);
    }
    50% {
        transform: translate(100px, -20px);
    }
    75% {
        transform: translate(-30px, 80px);
    }
}

/* 背景更新提示横幅 */
.update-banner {
    display: none;
}

.banner-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: white;
}

.banner-icon {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

.banner-text {
    font-size: 1rem;
    font-weight: 500;
}

.banner-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 导航栏 */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    cursor: pointer;
    transition: var(--transition);
}

.logo:hover .logo-icon {
    transform: scale(1.08);
}

/* Logo图标容器 */
.logo-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    width: 56px;
    height: 56px;
}

/* Logo文字 */
.logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #1a1a2e 0%, #2a2a3e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
}

.logo:hover .logo-text {
    background: linear-gradient(135deg, #1a1a2e 0%, #4a4a5e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.03em;
}

/* Logo圆圈动画 */
.logo-circle-main {
    animation: drawCircle 2s ease-out forwards;
}

@keyframes drawCircle {
    to {
        stroke-dashoffset: 0;
    }
}

/* 声波动画 */
.logo-waves {
    animation: fadeIn 1s ease-out 0.5s both;
}

.wave-line {
    animation: waveMove 2s ease-in-out infinite;
}

.wave-1 {
    animation-delay: 0s;
}

.wave-2 {
    animation-delay: 0.3s;
}

@keyframes waveMove {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-2px);
        opacity: 0.8;
    }
}

/* 播放图标动画 */
.logo-play {
    animation: fadeIn 1s ease-out 1s both;
}

.logo:hover .logo-play {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* 光晕效果 */
.logo-glow {
    transition: opacity 0.3s ease;
}

.logo:hover .logo-glow {
    opacity: 0.3;
    animation: glow 1.5s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        r: 19;
        opacity: 0.2;
    }
    50% {
        r: 21;
        opacity: 0.4;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #1a1a2e;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* 主容器 */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* 欢迎区域 */
.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.gradient-text {
    color: #1a1a2e;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.cta-button {
    background: #1a1a2e;
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:active {
    transform: translateY(-1px);
}

/* 功能特点 */
.features-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #1a1a2e;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(26, 26, 46, 0.2);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

.feature-card:nth-child(2) .feature-icon {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) .feature-icon {
    animation-delay: 0.4s;
}

.feature-card:nth-child(4) .feature-icon {
    animation-delay: 0.6s;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 配音生成器 */
.generator-section {
    padding: 4rem 0;
}

.generator-container {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

.generator-header {
    text-align: center;
    margin-bottom: 3rem;
}

.generator-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: #1a1a2e;
}

.generator-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.generator-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* 输入面板 */
.input-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.input-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-primary);
}

.label-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.char-count {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    font-weight: 400;
}

.text-input {
    width: 100%;
    min-height: 180px;
    background: var(--bg-light);
    border: 2px solid var(--card-border);
    border-radius: 15px;
    padding: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: var(--transition);
}

.text-input:focus {
    outline: none;
    border-color: rgba(26, 26, 46, 0.5);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.text-input::placeholder {
    color: var(--text-tertiary);
}

.control-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.custom-select {
    width: 100%;
    background: #ffffff;
    border: 2px solid var(--card-border);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    color: #1a1a2e;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%231a1a2e' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.custom-select:focus {
    outline: none;
    border-color: rgba(26, 26, 46, 0.5);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.custom-select option {
    background: #ffffff;
    color: #1a1a2e;
}

.refresh-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.refresh-btn:hover {
    color: var(--text-primary);
    transform: rotate(180deg);
}

.generate-btn {
    background: #1a1a2e;
    border: none;
    border-radius: 15px;
    padding: 1.25rem 2rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.generate-btn:active:not(:disabled) {
    transform: translateY(0);
}

.generate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.generate-btn.loading .btn-content {
    opacity: 0;
}

.btn-loader {
    display: none;
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.generate-btn.loading .btn-loader {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 结果面板 */
.result-panel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.player-container {
    background: var(--bg-light);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state {
    text-align: center;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.empty-state span {
    color: var(--text-tertiary);
}

.audio-player {
    width: 100%;
}

/* 新版音频卡片 */
.audio-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.audio-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.audio-avatar {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.audio-info {
    flex: 1;
}

.audio-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-weight: 600;
}

.audio-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.audio-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-light);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.action-btn:hover {
    background: #1a1a2e;
    color: white;
    border-color: #1a1a2e;
}

.icon-btn {
    background: var(--bg-light);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.icon-btn:hover {
    background: #ffffff;
    color: var(--text-primary);
    border-color: rgba(26, 26, 46, 0.3);
    box-shadow: var(--shadow-sm);
}

/* 波形容器 */
.waveform-container {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* 波形动画 */
.waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    gap: 3px;
}

.wave-bar {
    flex: 1;
    max-width: 4px;
    background: #1a1a2e;
    border-radius: 2px;
    height: 20%;
    transition: var(--transition);
    opacity: 0.3;
}

.wave-bar:nth-child(1) { height: 25%; animation-delay: 0s; }
.wave-bar:nth-child(2) { height: 45%; animation-delay: 0.05s; }
.wave-bar:nth-child(3) { height: 35%; animation-delay: 0.1s; }
.wave-bar:nth-child(4) { height: 60%; animation-delay: 0.15s; }
.wave-bar:nth-child(5) { height: 40%; animation-delay: 0.2s; }
.wave-bar:nth-child(6) { height: 55%; animation-delay: 0.25s; }
.wave-bar:nth-child(7) { height: 30%; animation-delay: 0.3s; }
.wave-bar:nth-child(8) { height: 70%; animation-delay: 0.35s; }
.wave-bar:nth-child(9) { height: 50%; animation-delay: 0.4s; }
.wave-bar:nth-child(10) { height: 65%; animation-delay: 0.45s; }
.wave-bar:nth-child(11) { height: 40%; animation-delay: 0.5s; }
.wave-bar:nth-child(12) { height: 75%; animation-delay: 0.55s; }
.wave-bar:nth-child(13) { height: 55%; animation-delay: 0.6s; }
.wave-bar:nth-child(14) { height: 60%; animation-delay: 0.65s; }
.wave-bar:nth-child(15) { height: 45%; animation-delay: 0.7s; }
.wave-bar:nth-child(16) { height: 80%; animation-delay: 0.75s; }
.wave-bar:nth-child(17) { height: 50%; animation-delay: 0.8s; }
.wave-bar:nth-child(18) { height: 60%; animation-delay: 0.85s; }
.wave-bar:nth-child(19) { height: 35%; animation-delay: 0.9s; }
.wave-bar:nth-child(20) { height: 70%; animation-delay: 0.95s; }
.wave-bar:nth-child(21) { height: 45%; animation-delay: 1s; }
.wave-bar:nth-child(22) { height: 55%; animation-delay: 1.05s; }
.wave-bar:nth-child(23) { height: 40%; animation-delay: 1.1s; }
.wave-bar:nth-child(24) { height: 65%; animation-delay: 1.15s; }
.wave-bar:nth-child(25) { height: 50%; animation-delay: 1.2s; }
.wave-bar:nth-child(26) { height: 75%; animation-delay: 1.25s; }
.wave-bar:nth-child(27) { height: 55%; animation-delay: 1.3s; }
.wave-bar:nth-child(28) { height: 60%; animation-delay: 1.35s; }
.wave-bar:nth-child(29) { height: 40%; animation-delay: 1.4s; }
.wave-bar:nth-child(30) { height: 70%; animation-delay: 1.45s; }

.audio-player.playing .wave-bar {
    animation: waveAnimation 0.6s ease-in-out infinite;
    opacity: 1;
}

@keyframes waveAnimation {
    0%, 100% {
        transform: scaleY(0.5);
    }
    50% {
        transform: scaleY(1);
    }
}

/* 新版播放控制 */
.player-controls-new {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.play-btn-new {
    width: 44px;
    height: 44px;
    background: #1a1a2e;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
    color: white;
}

.play-btn-new:hover {
    background: #2a2a3e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.play-btn-new:active {
    transform: translateY(0);
}

.time-display {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 40px;
    text-align: center;
}

.progress-wrapper {
    flex: 1;
    position: relative;
    height: 24px;
    display: flex;
    align-items: center;
}

.progress-track {
    position: absolute;
    width: 100%;
    height: 4px;
    background: var(--card-border);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill-new {
    height: 100%;
    background: #1a1a2e;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.progress-slider-new {
    position: relative;
    width: 100%;
    height: 4px;
    background: transparent;
    border-radius: 2px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    outline: none;
    z-index: 2;
}

.progress-slider-new::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #1a1a2e;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.progress-slider-new::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.progress-slider-new::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #1a1a2e;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.progress-slider-new::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.volume-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-light);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.volume-btn:hover {
    background: #ffffff;
    color: var(--text-primary);
    border-color: rgba(26, 26, 46, 0.3);
}

.volume-slider-new {
    width: 80px;
    height: 4px;
    background: var(--card-border);
    border-radius: 2px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.volume-slider-new::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #1a1a2e;
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider-new::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #1a1a2e;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.progress-container {
    flex: 1;
}

.progress-bar {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: #1a1a2e;
    border-radius: 3px;
    transition: width 0.1s linear;
}

.progress-slider {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 6px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.progress-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.progress-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.progress-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

/* 快速示例 */
.quick-examples {
    background: var(--bg-light);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 1.5rem;
}

.quick-examples h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.example-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.example-tag {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.example-tag:hover {
    background: rgba(26, 26, 46, 0.05);
    border-color: rgba(26, 26, 46, 0.3);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

/* 历史记录 */
.history-section {
    padding: 4rem 0;
}

.history-container {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.history-header h2 {
    font-size: 2rem;
    color: #1a1a2e;
}

.clear-btn {
    background: rgba(245, 87, 108, 0.1);
    border: 1px solid rgba(245, 87, 108, 0.3);
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    color: #f5576c;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.clear-btn:hover {
    background: rgba(245, 87, 108, 0.2);
    border-color: rgba(245, 87, 108, 0.5);
}

.history-list {
    display: grid;
    gap: 1rem;
}

.empty-history {
    text-align: center;
    padding: 3rem;
}

.empty-history .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-history p {
    color: var(--text-secondary);
}

.history-item {
    background: var(--bg-light);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.history-item:hover {
    background: #ffffff;
    border-color: rgba(26, 26, 46, 0.2);
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.history-info {
    flex: 1;
}

.history-text {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.history-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

.history-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.history-actions {
    display: flex;
    gap: 0.5rem;
}

/* 通知 */
.notification-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
}

.notification {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInRight 0.3s ease-out;
}

.notification.success {
    border-left: 4px solid #4facfe;
}

.notification.error {
    border-left: 4px solid #f5576c;
}

.notification.info {
    border-left: 4px solid #667eea;
}

.notification-icon {
    font-size: 1.5rem;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.notification-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 0.25rem;
    transition: var(--transition);
}

.notification-close:hover {
    color: var(--text-primary);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 页脚 */
.footer {
    margin-top: 4rem;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--card-border);
    background: var(--bg-light);
}

.footer-content p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-note {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .generator-content {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo-icon {
        width: 48px;
        height: 48px;
    }
    
    .logo-icon svg {
        width: 48px;
        height: 48px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .generator-container,
    .history-container {
        padding: 2rem 1.5rem;
    }
    
    .control-grid {
        grid-template-columns: 1fr;
    }
    
    .player-controls-new {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .volume-slider-new {
        width: 60px;
    }
    
    .audio-card {
        padding: 1.5rem;
    }
    
    .audio-card-header {
        flex-wrap: wrap;
    }
    
    .waveform-container {
        padding: 1rem;
    }
    
    .notification-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 1rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .logo-icon {
        width: 44px;
        height: 44px;
    }
    
    .logo-icon svg {
        width: 44px;
        height: 44px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .history-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* 移动端背景优化 - 减少动画元素以提升性能 */
    .geo-shape,
    .glow {
        display: none;
    }
    
    .wave {
        filter: blur(40px);
    }
    
    .background-animation::before,
    .background-animation::after {
        animation: none;
    }
}

/* 性能优化：当用户偏好减少动画时 */
@media (prefers-reduced-motion: reduce) {
    .wave,
    .geo-shape,
    .glow,
    .background-animation::before,
    .background-animation::after,
    .logo-circle-main,
    .logo-waves,
    .logo-play,
    .logo-glow,
    .wave-line {
        animation: none !important;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

