/* 翻译服务下拉选择框样式 - 只针对特定ID */
#translationServiceSelect {
    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;
}

/* 确保在所有浏览器中都隐藏默认箭头 - 只针对翻译服务 */
#translationServiceSelect::-webkit-outer-spin-button,
#translationServiceSelect::-webkit-inner-spin-button,
#translationServiceSelect::-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;
}

/* 额外的浏览器兼容性样式 - 只针对翻译服务 */
#translationServiceSelect::-webkit-dropdown-button {
    display: none !important;
    visibility: hidden !important;
}

/* Firefox 特殊处理 - 只针对翻译服务 */
@-moz-document url-prefix() {
    #translationServiceSelect {
        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;
        
    }
}

#translationServiceSelect: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;
}

#translationServiceSelect: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;
}

#translationServiceSelect option {
    padding: 12px 16px !important;
    background: white !important;
    color: #333 !important;
    font-weight: normal !important;
    font-size: 14px !important;
}

#translationServiceSelect option:checked {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%) !important;
    color: white !important;
}

/* 翻译服务状态指示器 */
.translation-service-status {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 8px;
    vertical-align: middle;
}

.translation-service-status.available {
    background: #4CAF50;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.5);
}

.translation-service-status.unavailable {
    background: #f44336;
    box-shadow: 0 0 6px rgba(244, 67, 54, 0.5);
}

.translation-service-status.unknown {
    background: #ff9800;
    box-shadow: 0 0 6px rgba(255, 152, 0, 0.5);
}

/* 深色模式适配 - 只针对翻译服务 */
@media (prefers-color-scheme: dark) {
    #translationServiceSelect {
        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;
    }
    
    #translationServiceSelect: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;
    }
    
    #translationServiceSelect option {
        background: #2a2c3a !important;
        color: #fff !important;
    }
}

/* 移动端适配 - 只针对翻译服务 */
@media (max-width: 768px) {
    #translationServiceSelect {
        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;
    }
}