/* 支付宝到账语音生成工具样式 */
.alipay-voice-tool {
    max-width: 800px;
    margin: 0 auto;
}

.alipay-voice-tool .tool-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.alipay-voice-tool .item-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alipay-voice-tool .item-group label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.alipay-voice-tool .input-text {
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
    background-color: #fff;
}

.alipay-voice-tool .input-text:focus {
    border-color: #1677ff;
    box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.1);
}

.alipay-voice-tool .amount-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: #fff;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.alipay-voice-tool .amount-display .label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.alipay-voice-tool .amount-display .value {
    font-size: 42px;
    font-weight: 700;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 2px;
}

.alipay-voice-tool .operate-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.alipay-voice-tool .btn {
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 24px;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
}

.alipay-voice-tool .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.alipay-voice-tool .btn:active {
    transform: translateY(0);
}

.alipay-voice-tool .btn-alipay {
    color: #fff;
    background: linear-gradient(135deg, #1677ff 0%, #0958d9 100%);
    border: none;
}

.alipay-voice-tool .btn-alipay:hover {
    background: linear-gradient(135deg, #4096ff 0%, #1677ff 100%);
}

.alipay-voice-tool .btn-success {
    color: #fff;
    background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
    border: none;
}

.alipay-voice-tool .btn-success:hover {
    background: linear-gradient(135deg, #73d13d 0%, #52c41a 100%);
}

.alipay-voice-tool .btn svg {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    fill: currentColor;
}

.alipay-voice-tool .audio-player {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.alipay-voice-tool .audio-player audio {
    width: 100%;
    height: 40px;
}

.alipay-voice-tool .tip-text {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin-top: 5px;
}

/* 示例按钮样式 */
.alipay-voice-tool .example-btn {
    background: #f0f5ff;
    border: 1px solid #d6e4ff;
    color: #1677ff;
    font-size: 12px;
    height: 28px;
    padding: 0 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.alipay-voice-tool .example-btn:hover {
    background: #e6f4ff;
    border-color: #91caff;
}

/* 加载状态 */
.alipay-voice-tool .loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.alipay-voice-tool .loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-top-color: #1677ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* 移动端适配 */
@media (max-width: 768px) {
    .alipay-voice-tool .tool-content {
        padding: 15px;
    }
    
    .alipay-voice-tool .amount-display {
        padding: 20px;
        min-height: 150px;
    }
    
    .alipay-voice-tool .amount-display .value {
        font-size: 32px;
    }
    
    .alipay-voice-tool .operate-buttons {
        flex-direction: column;
    }
    
    .alipay-voice-tool .btn {
        width: 100%;
    }
}
