@import url('css.css');
body {
    font-family: 'Noto Sans SC', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: #fff;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    color: white;
}

.btn-primary {
    background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
}

.btn-danger {
    background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4);
}

.result-container {
    max-height: 400px;
    overflow-y: auto;
    background: rgba(31, 41, 55, 0.8);
    border-radius: 0.5rem;
    padding: 1rem;
}

.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 8rem;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-area:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.recording-indicator {
    display: inline-flex;
    align-items: center;
    color: #ef4444;
    font-weight: 500;
}

/* 替换现有的 .wave 相关样式 */
.wave {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    gap: 2px;
}

.wave span {
    width: 4px;
    height: 16px;
    background-color: #ef4444;
    border-radius: 2px;
    transform-origin: center;
    animation: wave-horizontal 1s infinite ease-in-out;
}

.wave span:nth-child(1) { animation-delay: -0.8s; }
.wave span:nth-child(2) { animation-delay: -0.6s; }
.wave span:nth-child(3) { animation-delay: -0.4s; }
.wave span:nth-child(4) { animation-delay: -0.2s; }
.wave span:nth-child(5) { animation-delay: 0s; }

@keyframes wave-horizontal {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(2);
    }
}

.btn-copy {
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
    transition: all 0.3s ease;
}

.btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.btn-copy.copied {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toast.show {
    opacity: 1;
}

.edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.edit-content {
    background: #1e293b;
    border-radius: 0.75rem;
    width: 90%;
    max-width: 800px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.edit-textarea {
    width: 100%;
    min-height: 500px;
    padding: 1.5rem;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    color: #f8fafc;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.edit-textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.edit-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.edit-buttons button {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .result-container {
        max-height: 300px;
    }

    .edit-content {
        width: 95%;
        padding: 1.5rem;
    }

    .edit-textarea {
        min-height: 400px;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .upload-area {
        height: 6rem;
        padding: 0.5rem;
    }
    
    .result-container {
        max-height: 250px;
    }

    .edit-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .edit-textarea {
        min-height: 300px;
        padding: 0.75rem;
    }

    .