/* 工具分类下拉菜单样式 */

/* ========== 纯文本式下拉框样式 ========== */
.tool-category-dropdown {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: none;
}

.tool-category-dropdown:hover {
    box-shadow: none;
    background: transparent;
}

.category-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
    font-family: inherit;
    letter-spacing: normal;
}

/* 纯文本式下拉框核心样式 */
.category-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px 30px 10px 14px;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-color);
    cursor: pointer;
    transition: border-color 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    width: 200px;
    height: 44px;
    box-shadow: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

.category-select:focus {
    outline: none;
    border-color: var(--border-color);
    box-shadow: none;
    transform: none;
}

.category-select:hover {
    border-color: var(--border-color);
    color: var(--text-color);
    box-shadow: none;
    transform: none;
}

.category-select:active {
    transform: none;
}

/* 下拉选项样式 */
.category-select option {
    background: white;
    color: var(--text-color);
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    transition: none;
    border-radius: 0;
    margin: 2px 0;
}

.category-select option:hover,
.category-select option:checked {
    background: white;
    color: var(--text-color);
    transform: none;
}

.category-select option:checked {
    font-weight: 500;
    background: rgba(102, 126, 234, 0.05);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tool-category-dropdown {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 0;
    }
    
    .category-select {
        width: 240px;
        height: 46px;
        padding: 11px 35px 11px 16px;
        font-size: 1rem;
    }
    
    .category-label {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .tool-category-dropdown {
        margin: 15px 0;
        padding: 0;
    }
    
    .category-label {
        font-size: 0.95rem;
    }
    
    .category-select {
        width: 200px;
        height: 44px;
        font-size: 0.95rem;
        padding: 10px 30px 10px 14px;
        background-size: 14px;
        background-position: right 10px center;
    }
}
