/* 语音识别服务下拉选择框样式 - 只针对特定ID */
#recognitionServiceSelect {
    width: 100% !important;
    padding: 12px 40px 12px 16px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid rgba(106, 17, 203, 0.2) !important;
    border-radius: 8px !important;
    color: #333 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M7 10l5 5 5-5z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 20px !important;
}

/* 确保在所有浏览器中都隐藏默认箭头 - 只针对语音识别服务 */
#recognitionServiceSelect::-webkit-outer-spin-button,
#recognitionServiceSelect::-webkit-inner-spin-button,
#recognitionServiceSelect::-ms-expand {
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
}

/* 额外的浏览器兼容性样式 - 只针对语音识别服务 */
#recognitionServiceSelect::-webkit-dropdown-button {
    display: none !important;
    visibility: hidden !important;
}

/* Firefox 特殊处理 - 只针对语音识别服务 */
@-moz-document url-prefix() {
    #recognitionServiceSelect {
        background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M7 10l5 5 5-5z"/></svg>') !important;
        background-repeat: no-repeat !important;
        background-position: right 12px center !important;
        background-size: 20px !important;
        -moz-appearance: none !important;
    }
}

#recognitionServiceSelect:hover {
    border-color: rgba(106, 17, 203, 0.4) !important;
    background: rgba(255, 255, 255, 1) !important;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M7 10l5 5 5-5z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 20px !important;
    box-shadow: 0 2px 8px rgba(106, 17, 203, 0.1) !important;
    transform: translateY(-1px) !important;
}

#recognitionServiceSelect:focus {
    outline: none !important;
    border-color: rgba(106, 17, 203, 0.6) !important;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M7 10l5 5 5-5z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 20px !important;
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1) !important;
}

#recognitionServiceSelect option {
    padding: 12px 16px !important;
    background: white !important;
    color: #333 !important;
    font-weight: normal !important;
    font-size: 14px !important;
}

#recognitionServiceSelect option:checked {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%) !important;
    color: white !important;
}

/* 服务描述样式 - 隐藏描述文字 */
.service-description,
#serviceDescription {
    display: none !important;
    visibility: hidden !important;
}

/* 深色模式适配 - 只针对语音识别服务 */
@media (prefers-color-scheme: dark) {
    #recognitionServiceSelect {
        background: rgba(40, 42, 52, 0.95) !important;
        color: #fff !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
        background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ccc"><path d="M7 10l5 5 5-5z"/></svg>') !important;
        background-repeat: no-repeat !important;
        background-position: right 12px center !important;
        background-size: 20px !important;
    }
    
    #recognitionServiceSelect:hover {
        background: rgba(50, 52, 62, 0.95) !important;
        border-color: rgba(255, 255, 255, 0.4) !important;
        background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ccc"><path d="M7 10l5 5 5-5z"/></svg>') !important;
        background-repeat: no-repeat !important;
        background-position: right 12px center !important;
        background-size: 20px !important;
    }
    
    #recognitionServiceSelect option {
        background: #2a2c3a !important;
        color: #fff !important;
    }
}

/* 移动端适配 - 只针对语音识别服务 */
@media (max-width: 768px) {
    #recognitionServiceSelect {
        font-size: 16px !important; /* 防止iOS缩放 */
        padding: 14px 40px 14px 16px !important;
        background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M7 10l5 5 5-5z"/></svg>') !important;
        background-repeat: no-repeat !important;
        background-position: right 12px center !important;
        background-size: 20px !important;
    }
    
    .service-description {
        font-size: 11px;
        padding: 6px 10px;
    }
}

/* 服务状态指示器 */
.radio-option::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #666;
    transition: background-color 0.3s ease;
}

.radio-option:has(input[type="radio"]:checked)::after {
    background: #4CAF50;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.5);
}

/* 服务描述 */
.radio-option .service-description {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
    font-weight: normal;
}

/* 推荐标签 */
.radio-option .recommended-tag {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #FF6B6B;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 网络状态指示器 */
.radio-option .network-status {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
}

.radio-option .network-status.online {
    color: #4CAF50;
}

.radio-option .network-status.offline {
    color: #FF6B6B;
}

/* 动画效果 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.radio-option:has(input[type="radio"]:checked) {
    animation: pulse 0.3s ease-in-out;
}

/* 加载状态 */
.radio-option.loading {
    opacity: 0.7;
    pointer-events: none;
}

.radio-option.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
} 